(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+Zhm":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("xHZb"),s=n("zB/H"),a=n("AFwO"),c=n("Mxlh"),l=n("FiyT");e.ReplaySubject=function(t){function e(e,n,i){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this)||this;return r.scheduler=i,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=e<1?1:e,r._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return i(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new u(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;if(this.closed)throw new c.ObjectUnsubscribedError;if(this.isStopped||this.hasError?e=s.Subscription.EMPTY:(this.observers.push(t),e=new l.SubjectSubscription(this,t)),r&&t.add(t=new a.ObserveOnSubscriber(t,r)),n)for(var u=0;u<o&&!t.closed;u++)t.next(i[u]);else for(u=0;u<o&&!t.closed;u++)t.next(i[u].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,o=0;o<r&&!(t-i[o].time<n);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i},e}(r.Subject);var u=function(){return function(t,e){this.time=t,this.value=e}}()},"+ntK":function(t,e,n){var i,r=n("Tnqc"),o=n("WLGk"),s=n("U6bO"),a=n("zMFY"),c=n("44nb");"undefined"!=typeof ArrayBuffer&&(i=n("g5Dd"));var l="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),d=l||u;e.protocol=3;var h=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=r(h),m={type:"error",data:"parser error"},f=n("q2jb");function b(t,e,n){for(var i=new Array(t.length),r=a(t.length,n),o=function(t,n,r){e(n,(function(e,n){i[t]=n,r(e,i)}))},s=0;s<t.length;s++)o(s,t[s],r)}e.encodePacket=function(t,n,i,r){"function"==typeof n&&(r=n,n=!1),"function"==typeof i&&(r=i,i=null);var o=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer)return function(t,n,i){if(!n)return e.encodeBase64Packet(t,i);var r=t.data,o=new Uint8Array(r),s=new Uint8Array(1+r.byteLength);s[0]=h[t.type];for(var a=0;a<o.length;a++)s[a+1]=o[a];return i(s.buffer)}(t,n,r);if(void 0!==f&&o instanceof f)return function(t,n,i){if(!n)return e.encodeBase64Packet(t,i);if(d)return function(t,n,i){if(!n)return e.encodeBase64Packet(t,i);var r=new FileReader;return r.onload=function(){e.encodePacket({type:t.type,data:r.result},n,!0,i)},r.readAsArrayBuffer(t.data)}(t,n,i);var r=new Uint8Array(1);return r[0]=h[t.type],i(new f([r.buffer,t.data]))}(t,n,r);if(o&&o.base64)return function(t,n){return n("b"+e.packets[t.type]+t.data.data)}(t,r);var s=h[t.type];return void 0!==t.data&&(s+=i?c.encode(String(t.data),{strict:!1}):String(t.data)),r(""+s)},e.encodeBase64Packet=function(t,n){var i,r="b"+e.packets[t.type];if(void 0!==f&&t.data instanceof f){var o=new FileReader;return o.onload=function(){var t=o.result.split(",")[1];n(r+t)},o.readAsDataURL(t.data)}try{i=String.fromCharCode.apply(null,new Uint8Array(t.data))}catch(l){for(var s=new Uint8Array(t.data),a=new Array(s.length),c=0;c<s.length;c++)a[c]=s[c];i=String.fromCharCode.apply(null,a)}return r+=btoa(i),n(r)},e.decodePacket=function(t,n,i){if(void 0===t)return m;if("string"==typeof t){if("b"===t.charAt(0))return e.decodeBase64Packet(t.substr(1),n);if(i&&!1===(t=function(t){try{t=c.decode(t,{strict:!1})}catch(e){return!1}return t}(t)))return m;var r=t.charAt(0);return Number(r)==r&&p[r]?t.length>1?{type:p[r],data:t.substring(1)}:{type:p[r]}:m}r=new Uint8Array(t)[0];var o=s(t,1);return f&&"blob"===n&&(o=new f([o])),{type:p[r],data:o}},e.decodeBase64Packet=function(t,e){var n=p[t.charAt(0)];if(!i)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=i.decode(t.substr(1));return"blob"===e&&f&&(r=new f([r])),{type:n,data:r}},e.encodePayload=function(t,n,i){"function"==typeof n&&(i=n,n=null);var r=o(t);return n&&r?f&&!d?e.encodePayloadAsBlob(t,i):e.encodePayloadAsArrayBuffer(t,i):t.length?void b(t,(function(t,i){e.encodePacket(t,!!r&&n,!1,(function(t){i(null,function(t){return t.length+":"+t}(t))}))}),(function(t,e){return i(e.join(""))})):i("0:")},e.decodePayload=function(t,n,i){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,i);var r;if("function"==typeof n&&(i=n,n=null),""===t)return i(m,0,1);for(var o,s,a="",c=0,l=t.length;c<l;c++){var u=t.charAt(c);if(":"===u){if(""===a||a!=(o=Number(a)))return i(m,0,1);if(a!=(s=t.substr(c+1,o)).length)return i(m,0,1);if(s.length){if(r=e.decodePacket(s,n,!1),m.type===r.type&&m.data===r.data)return i(m,0,1);if(!1===i(r,c+o,l))return}c+=o,a=""}else a+=u}return""!==a?i(m,0,1):void 0},e.encodePayloadAsArrayBuffer=function(t,n){if(!t.length)return n(new ArrayBuffer(0));b(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){return n(null,t)}))}),(function(t,e){var i=e.reduce((function(t,e){var n;return t+(n="string"==typeof e?e.length:e.byteLength).toString().length+n+2}),0),r=new Uint8Array(i),o=0;return e.forEach((function(t){var e="string"==typeof t,n=t;if(e){for(var i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);n=i.buffer}r[o++]=e?0:1;var a=n.byteLength.toString();for(s=0;s<a.length;s++)r[o++]=parseInt(a[s]);for(r[o++]=255,i=new Uint8Array(n),s=0;s<i.length;s++)r[o++]=i[s]})),n(r.buffer)}))},e.encodePayloadAsBlob=function(t,n){b(t,(function(t,n){e.encodePacket(t,!0,!0,(function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var i=new Uint8Array(t.length),r=0;r<t.length;r++)i[r]=t.charCodeAt(r);t=i.buffer,e[0]=0}var o=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),s=new Uint8Array(o.length+1);for(r=0;r<o.length;r++)s[r]=parseInt(o[r]);if(s[o.length]=255,f){var a=new f([e.buffer,s.buffer,t]);n(null,a)}}))}),(function(t,e){return n(new f(e))}))},e.decodePayloadAsBinary=function(t,n,i){"function"==typeof n&&(i=n,n=null);for(var r=t,o=[];r.byteLength>0;){for(var a=new Uint8Array(r),c=0===a[0],l="",u=1;255!==a[u];u++){if(l.length>310)return i(m,0,1);l+=a[u]}r=s(r,2+l.length),l=parseInt(l);var d=s(r,0,l);if(c)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(f){var h=new Uint8Array(d);for(d="",u=0;u<h.length;u++)d+=String.fromCharCode(h[u])}o.push(d),r=s(r,l)}var p=o.length;o.forEach((function(t,r){i(e.decodePacket(t,n,!0),r,p)}))}},"+vT+":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.audit=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return i(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(i){return this.destination.error(i)}var n=r.innerSubscribe(e,new r.SimpleInnerSubscriber(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(r.SimpleOuterSubscriber)},"/JYr":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("q3Kh"),o=n("gTqA"),s=n("wjEo");e.exhaustMap=function t(e,n){return n?function(i){return i.pipe(t((function(t,i){return o.from(e(t,i)).pipe(r.map((function(e,r){return n(t,e,i,r)})))})))}:function(t){return t.lift(new a(e))}};var a=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project))},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new s.SimpleInnerSubscriber(this),n=this.destination;n.add(e);var i=s.innerSubscribe(t,e);i!==e&&n.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(s.SimpleOuterSubscriber)},0:function(t,e,n){t.exports=n("zUnb")},"05qF":function(t,e,n){"use strict";n.r(e),n.d(e,"RealtimeDatabaseURL",(function(){return i.c})),n.d(e,"DATABASE_URL",(function(){return i.a})),n.d(e,"\u0275ZoneScheduler",(function(){return i.h})),n.d(e,"\u0275BlockUntilFirstOperator",(function(){return i.g})),n.d(e,"\u0275AngularFireSchedulers",(function(){return i.f})),n.d(e,"\u0275keepUnstableUntilFirstFactory",(function(){return i.i})),n.d(e,"runOutsideAngular",(function(){return i.e})),n.d(e,"runInZone",(function(){return i.d})),n.d(e,"FirebaseZoneScheduler",(function(){return i.b})),n.d(e,"\u0275lazySDKProxy",(function(){return i.j})),n.d(e,"FirebaseOptionsToken",(function(){return r.f})),n.d(e,"FirebaseNameOrConfigToken",(function(){return r.e})),n.d(e,"FIREBASE_OPTIONS",(function(){return r.c})),n.d(e,"FIREBASE_APP_NAME",(function(){return r.b})),n.d(e,"FirebaseApp",(function(){return r.d})),n.d(e,"VERSION",(function(){return r.g})),n.d(e,"_firebaseAppFactory",(function(){return r.h})),n.d(e,"AngularFireModule",(function(){return r.a}));var i=n("XU1U"),r=n("Czum")},"067Y":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("1pIY"),s=n("FWf1"),a=n("p0+S"),c=n("nzqU");e.windowTime=function(t){var e=o.async,n=null,i=Number.POSITIVE_INFINITY;return c.isScheduler(arguments[3])&&(e=arguments[3]),c.isScheduler(arguments[2])?e=arguments[2]:a.isNumeric(arguments[2])&&(i=Number(arguments[2])),c.isScheduler(arguments[1])?e=arguments[1]:a.isNumeric(arguments[1])&&(n=Number(arguments[1])),function(r){return r.lift(new l(t,n,i,e))}};var l=function(){function t(t,e,n,i){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return i(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(r.Subject),d=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=i,s.maxWindowSize=r,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==i&&i>=0){var c={windowTimeSpan:n,windowCreationInterval:i,subscriber:s,scheduler:o};s.add(o.schedule(m,n,{subscriber:s,window:a,context:null})),s.add(o.schedule(p,i,c))}else s.add(o.schedule(h,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}return i(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,i=0;i<n;i++){var r=e[i];r.closed||(r.next(t),r.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(r))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new u;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(s.Subscriber);function h(t){var e=t.subscriber,n=t.windowTimeSpan,i=t.window;i&&e.closeWindow(i),t.window=e.openWindow(),this.schedule(t,n)}function p(t){var e=t.windowTimeSpan,n=t.subscriber,i=t.scheduler,r=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=i.schedule(m,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,r)}function m(t){var e=t.subscriber,n=t.window,i=t.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),e.closeWindow(n)}},"0BvR":function(t,e,n){"use strict";var i=n("1pIY"),r=n("+vT+"),o=n("eJ3O");e.auditTime=function(t,e){return void 0===e&&(e=i.async),r.audit((function(){return o.timer(t,e)}))}},"0KJs":function(t,e,n){function i(){var t;try{t=e.storage.debug}catch(n){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=n("FXYA")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var i="color: "+this.color;t.splice(1,0,i,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(r++,"%c"===t&&(o=r))})),t.splice(o,0,i)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}},e.load=i,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},e.enable(i())},"0alx":function(t,e,n){"use strict";var i=n("VKeD");e.isIterable=function(t){return t&&"function"==typeof t[i.iterator]}},"0z0v":function(t,e,n){"use strict";e.EmptyError=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},"0z79":function(t,e,n){var i=n("AdPF"),r=n("CUme"),o=n("cpc2"),s=n("Yvos"),a=n("x7D4")("engine.io-client:polling-xhr"),c=n("2UHX");function l(){}function u(t){if(r.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function d(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function h(){for(var t in d.requests)d.requests.hasOwnProperty(t)&&d.requests[t].abort()}t.exports=u,t.exports.Request=d,s(u,r),u.prototype.supportsBinary=!0,u.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new d(t)},u.prototype.doWrite=function(t,e){var n=this.request({method:"POST",data:t,isBinary:"string"!=typeof t&&void 0!==t}),i=this;n.on("success",e),n.on("error",(function(t){i.onError("xhr post error",t)})),this.sendXhr=n},u.prototype.doPoll=function(){a("xhr poll");var t=this.request(),e=this;t.on("data",(function(t){e.onData(t)})),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t},o(d.prototype),d.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new i(t),n=this;try{a("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var r in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(r)&&e.setRequestHeader(r,this.extraHeaders[r])}catch(o){}if("POST"===this.method)try{e.setRequestHeader("Content-type",this.isBinary?"application/octet-stream":"text/plain;charset=UTF-8")}catch(o){}try{e.setRequestHeader("Accept","*/*")}catch(o){}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&(e.responseType="arraybuffer")}catch(o){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof e.status?e.status:0)}),0))},a("xhr data %s",this.data),e.send(this.data)}catch(o){return void setTimeout((function(){n.onError(o)}),0)}"undefined"!=typeof document&&(this.index=d.requestsCount++,d.requests[this.index]=this)},d.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},d.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},d.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},d.prototype.cleanup=function(t){if(null!=this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=l:this.xhr.onreadystatechange=l,t)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete d.requests[this.index],this.xhr=null}},d.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(n){}t=("application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&this.xhr.response||this.xhr.responseText}catch(n){this.onError(n)}null!=t&&this.onData(t)},d.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},d.prototype.abort=function(){this.cleanup()},d.requestsCount=0,d.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",h):"function"==typeof addEventListener&&addEventListener("onpagehide"in c?"pagehide":"unload",h,!1))},1:function(t,e){},"1VEF":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.skipUntil=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.notifier))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;i.hasValue=!1;var o=new r.SimpleInnerSubscriber(i);i.add(o),i.innerSubscription=o;var s=r.innerSubscribe(n,o);return s!==o&&(i.add(s),i.innerSubscription=s),i}return i(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(r.SimpleOuterSubscriber)},"1Z+e":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(r.Subscriber)},"1pIY":function(t,e,n){"use strict";var i=n("2tF/");e.asyncScheduler=new(n("NTcF").AsyncScheduler)(i.AsyncAction),e.async=e.asyncScheduler},"1uat":function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("MlIO"),function(){var t=i,e=t.lib.Hasher,n=t.x64,r=n.Word,o=n.WordArray,s=t.algo;function a(){return r.create.apply(r,arguments)}var c=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],l=[];!function(){for(var t=0;t<80;t++)l[t]=a()}();var u=s.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],u=n[5],d=n[6],h=n[7],p=i.high,m=i.low,f=r.high,b=r.low,g=o.high,_=o.low,v=s.high,y=s.low,w=a.high,C=a.low,x=u.high,O=u.low,S=d.high,T=d.low,D=h.high,k=h.low,P=p,E=m,A=f,I=b,M=g,U=_,L=v,R=y,N=w,F=C,V=x,j=O,B=S,z=T,q=D,H=k,G=0;G<80;G++){var J,Y,$=l[G];if(G<16)Y=$.high=0|t[e+2*G],J=$.low=0|t[e+2*G+1];else{var W=l[G-15],K=W.high,Q=W.low,X=(Q>>>1|K<<31)^(Q>>>8|K<<24)^(Q>>>7|K<<25),Z=l[G-2],tt=Z.high,et=Z.low,nt=(et>>>19|tt<<13)^(et<<3|tt>>>29)^(et>>>6|tt<<26),it=l[G-7],rt=l[G-16],ot=rt.low;$.high=Y=(Y=(Y=((K>>>1|Q<<31)^(K>>>8|Q<<24)^K>>>7)+it.high+((J=X+it.low)>>>0<X>>>0?1:0))+((tt>>>19|et<<13)^(tt<<3|et>>>29)^tt>>>6)+((J+=nt)>>>0<nt>>>0?1:0))+rt.high+((J+=ot)>>>0<ot>>>0?1:0),$.low=J}var st,at=N&V^~N&B,ct=F&j^~F&z,lt=P&A^P&M^A&M,ut=(E>>>28|P<<4)^(E<<30|P>>>2)^(E<<25|P>>>7),dt=c[G],ht=dt.low,pt=q+((N>>>14|F<<18)^(N>>>18|F<<14)^(N<<23|F>>>9))+((st=H+((F>>>14|N<<18)^(F>>>18|N<<14)^(F<<23|N>>>9)))>>>0<H>>>0?1:0),mt=ut+(E&I^E&U^I&U);q=B,H=z,B=V,z=j,V=N,j=F,N=L+(pt=(pt=(pt=pt+at+((st+=ct)>>>0<ct>>>0?1:0))+dt.high+((st+=ht)>>>0<ht>>>0?1:0))+Y+((st+=J)>>>0<J>>>0?1:0))+((F=R+st|0)>>>0<R>>>0?1:0)|0,L=M,R=U,M=A,U=I,A=P,I=E,P=pt+(((P>>>28|E<<4)^(P<<30|E>>>2)^(P<<25|E>>>7))+lt+(mt>>>0<ut>>>0?1:0))+((E=st+mt|0)>>>0<st>>>0?1:0)|0}m=i.low=m+E,i.high=p+P+(m>>>0<E>>>0?1:0),b=r.low=b+I,r.high=f+A+(b>>>0<I>>>0?1:0),_=o.low=_+U,o.high=g+M+(_>>>0<U>>>0?1:0),y=s.low=y+R,s.high=v+L+(y>>>0<R>>>0?1:0),C=a.low=C+F,a.high=w+N+(C>>>0<F>>>0?1:0),O=u.low=O+j,u.high=x+V+(O>>>0<j>>>0?1:0),T=d.low=T+z,d.high=S+B+(T>>>0<z>>>0?1:0),k=h.low=k+H,h.high=D+q+(k>>>0<H>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(u),t.HmacSHA512=e._createHmacHelper(u)}(),i.SHA512)},"2Dig":function(t,e){t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},"2KeD":function(t,e,n){"use strict";var i=n("Q1FS"),r=n("zB/H"),o=n("zfKp");e.scheduleObservable=function(t,e){return new i.Observable((function(n){var i=new r.Subscription;return i.add(e.schedule((function(){var r=t[o.observable]();i.add(r.subscribe({next:function(t){i.add(e.schedule((function(){return n.next(t)})))},error:function(t){i.add(e.schedule((function(){return n.error(t)})))},complete:function(){i.add(e.schedule((function(){return n.complete()})))}}))}))),i}))}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Sgo":function(t,e,n){"use strict";var i=n("1pIY"),r=n("q3Kh");e.timestamp=function(t){return void 0===t&&(t=i.async),r.map((function(e){return new o(e,t.now())}))};var o=function(){return function(t,e){this.value=t,this.timestamp=e}}();e.Timestamp=o},"2UHX":function(t,e){t.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},"2Yyj":function(t,e,n){var i,r,o;!function(s){if("object"==typeof t.exports){var a=s(0,e);void 0!==a&&(t.exports=a)}else r=[n,e],void 0===(o="function"==typeof(i=s)?i.apply(e,r):i)||(t.exports=o)}((function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["es",[["a.\xa0m.","p.\xa0m."],n,n],n,[["D","L","M","X","J","V","S"],["dom.","lun.","mar.","mi\xe9.","jue.","vie.","s\xe1b."],["domingo","lunes","martes","mi\xe9rcoles","jueves","viernes","s\xe1bado"],["DO","LU","MA","MI","JU","VI","SA"]],n,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],n,[["a. C.","d. C."],n,["antes de Cristo","despu\xe9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1} {0}",n,"{1}, {0}",n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[n,"$"],BRL:[n,"R$"],CNY:[n,"\xa5"],EGP:[],ESP:["\u20a7"],GBP:[n,"\xa3"],HKD:[n,"$"],ILS:[n,"\u20aa"],INR:[n,"\u20b9"],JPY:[n,"\xa5"],KRW:[n,"\u20a9"],MXN:[n,"$"],NZD:[n,"$"],RON:[n,"L"],THB:["\u0e3f"],TWD:[n,"NT$"],USD:["US$","$"],XAF:[],XCD:[n,"$"],XOF:[]},"ltr",function(t){return 1===t?1:5}]}))},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"2hO6":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("Y4kR"),o=n("cSoz");e.withLatestFrom=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new s(t,n))}};var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.observables,this.project))},t}(),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.observables=n,r.project=i,r.toRespond=[];var s=n.length;r.values=new Array(s);for(var a=0;a<s;a++)r.toRespond.push(a);for(a=0;a<s;a++)r.add(o.subscribeToResult(r,n[a],void 0,a));return r}return i(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var i=this.toRespond;if(i.length>0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(r.OuterSubscriber)},"2pII":function(t,e,n){var i=n("akSB"),r=n("cpc2"),o=n("x7D4")("engine.io-client:socket"),s=n("7jRU"),a=n("+ntK"),c=n("Uxeu"),l=n("TypT");function u(t,e){if(!(this instanceof u))return new u(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=c(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=c(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=l.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=u,u.priorWebsocketSuccess=!1,r(u.prototype),u.protocol=a.protocol,u.Socket=u,u.Transport=n("Gbct"),u.transports=n("akSB"),u.parser=n("+ntK"),u.prototype.createTransport=function(t){o('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new i[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},u.prototype.open=function(){var t;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(n){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},u.prototype.setTransport=function(t){o("setting transport %s",t.name);var e=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){e.onDrain()})).on("packet",(function(t){e.onPacket(t)})).on("error",(function(t){e.onError(t)})).on("close",(function(){e.onClose("transport close")}))},u.prototype.probe=function(t){o('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),n=!1,i=this;function r(){i.onlyBinaryUpgrades&&(n=n||!this.supportsBinary&&i.transport.supportsBinary),n||(o('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(r){if(!n)if("pong"===r.type&&"probe"===r.data){if(o('probe transport "%s" pong',t),i.upgrading=!0,i.emit("upgrading",e),!e)return;u.priorWebsocketSuccess="websocket"===e.name,o('pausing current transport "%s"',i.transport.name),i.transport.pause((function(){n||"closed"!==i.readyState&&(o("changing transport and sending upgrade packet"),h(),i.setTransport(e),e.send([{type:"upgrade"}]),i.emit("upgrade",e),e=null,i.upgrading=!1,i.flush())}))}else{o('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,i.emit("upgradeError",s)}})))}function s(){n||(n=!0,h(),e.close(),e=null)}function a(n){var r=new Error("probe error: "+n);r.transport=e.name,s(),o('probe transport "%s" failed because of error: %s',t,n),i.emit("upgradeError",r)}function c(){a("transport closed")}function l(){a("socket closed")}function d(t){e&&t.name!==e.name&&(o('"%s" works - aborting "%s"',t.name,e.name),s())}function h(){e.removeListener("open",r),e.removeListener("error",a),e.removeListener("close",c),i.removeListener("close",l),i.removeListener("upgrading",d)}u.priorWebsocketSuccess=!1,e.once("open",r),e.once("error",a),e.once("close",c),this.once("close",l),this.once("upgrading",d),e.open()},u.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},u.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',t.type,t.data),this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}else o('packet received with socket readyState "%s"',this.readyState)},u.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},u.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout((function(){"closed"!==e.readyState&&e.onClose("ping timeout")}),t||e.pingInterval+e.pingTimeout)},u.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout((function(){o("writing ping packet - expecting pong within %sms",t.pingTimeout),t.ping(),t.onHeartbeat(t.pingTimeout)}),t.pingInterval)},u.prototype.ping=function(){var t=this;this.sendPacket("ping",(function(){t.emit("ping")}))},u.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},u.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},u.prototype.write=u.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},u.prototype.sendPacket=function(t,e,n,i){if("function"==typeof e&&(i=e,e=void 0),"function"==typeof n&&(i=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var r={type:t,data:e,options:n};this.emit("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}},u.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var t=this;this.writeBuffer.length?this.once("drain",(function(){this.upgrading?i():e()})):this.upgrading?i():e()}function e(){t.onClose("forced close"),o("socket closing - telling transport to close"),t.transport.close()}function n(){t.removeListener("upgrade",n),t.removeListener("upgradeError",n),e()}function i(){t.once("upgrade",n),t.once("upgradeError",n)}return this},u.prototype.onError=function(t){o("socket error %j",t),u.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},u.prototype.onClose=function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',t),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)},u.prototype.filterUpgrades=function(t){for(var e=[],n=0,i=t.length;n<i;n++)~s(this.transports,t[n])&&e.push(t[n]);return e}},"2qMH":function(t,e,n){"use strict";var i=n("Q1FS"),r=n("zB/H");e.scheduleArray=function(t,e){return new i.Observable((function(n){var i=new r.Subscription,o=0;return i.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}},"2tF/":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e.AsyncAction=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return i(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(n("Dz+M").Action)},"3/+b":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.debounce=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.durationSelector=n,i.hasValue=!1,i}return i(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=r.innerSubscribe(e,new r.SimpleInnerSubscriber(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(r.SimpleOuterSubscriber)},"30Go":function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return r})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return s})),n.d(e,"__decorate",(function(){return a})),n.d(e,"__param",(function(){return c})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return u})),n.d(e,"__generator",(function(){return d})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return p})),n.d(e,"__values",(function(){return m})),n.d(e,"__read",(function(){return f})),n.d(e,"__spread",(function(){return b})),n.d(e,"__spreadArrays",(function(){return g})),n.d(e,"__await",(function(){return _})),n.d(e,"__asyncGenerator",(function(){return v})),n.d(e,"__asyncDelegator",(function(){return y})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return C})),n.d(e,"__importStar",(function(){return x})),n.d(e,"__importDefault",(function(){return O})),n.d(e,"__classPrivateFieldGet",(function(){return S})),n.d(e,"__classPrivateFieldSet",(function(){return T}));var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function a(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e){return function(n,i){e(n,i,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}function d(t,e){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((r=(r=s.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function p(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function m(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return s}function b(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(f(arguments[e]));return t}function g(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function v(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(t){r[t]&&(i[t]=function(e){return new Promise((function(n,i){o.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{(n=r[t](e)).value instanceof _?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(i){u(o[0][3],i)}var n}function c(t){a("next",t)}function l(t){a("throw",t)}function u(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function y(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,r){e[i]=t[i]?function(e){return(n=!n)?{value:_(t[i](e)),done:"return"===i}:r?r(e):e}:r}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=m(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(e=t[n](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function x(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function O(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function T(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("quSY");class r extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends r{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3n9G":function(t,e,n){"use strict";var i=n("1pIY"),r=n("zk/k"),o=n("Vf9T"),s=n("vLqr");e.timeout=function(t,e){return void 0===e&&(e=i.async),o.timeoutWith(t,s.throwError(new r.TimeoutError),e)}},"3y9D":function(t,e,n){var i,r,o,s,a,c,l;t.exports=(l=n("Ib8C"),o=(r=(i=l).lib).WordArray,a=[],c=i.algo.SHA1=(s=r.Hasher).extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)a[l]=0|t[e+l];else{var u=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=u<<1|u>>>31}var d=(i<<5|i>>>27)+c+a[l];d+=l<20?1518500249+(r&o|~r&s):l<40?1859775393+(r^o^s):l<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,c=s,s=o,o=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),i.SHA1=s._createHelper(c),i.HmacSHA1=s._createHmacHelper(c),l.SHA1)},"44nb":function(t,e){var n,i,r,o=String.fromCharCode;function s(t){for(var e,n,i=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--):i.push(e);return i}function a(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function c(t,e){return o(t>>e&63|128)}function l(t,e){if(0==(4294967168&t))return o(t);var n="";return 0==(4294965248&t)?n=o(t>>6&31|192):0==(4294901760&t)?(a(t,e)||(t=65533),n=o(t>>12&15|224),n+=c(t,6)):0==(4292870144&t)&&(n=o(t>>18&7|240),n+=c(t,12),n+=c(t,6)),n+o(63&t|128)}function u(){if(r>=i)throw Error("Invalid byte index");var t=255&n[r];if(r++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function d(t){var e,o;if(r>i)throw Error("Invalid byte index");if(r==i)return!1;if(e=255&n[r],r++,0==(128&e))return e;if(192==(224&e)){if((o=(31&e)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|u()<<6|u())>=2048)return a(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}t.exports={version:"2.1.2",encode:function(t,e){for(var n=!1!==(e=e||{}).strict,i=s(t),r=i.length,o=-1,a="";++o<r;)a+=l(i[o],n);return a},decode:function(t,e){var a=!1!==(e=e||{}).strict;n=s(t),i=n.length,r=0;for(var c,l=[];!1!==(c=d(a));)l.push(c);return function(t){for(var e,n=t.length,i=-1,r="";++i<n;)(e=t[i])>65535&&(r+=o((e-=65536)>>>10&1023|55296),e=56320|1023&e),r+=o(e);return r}(l)}}},"44p1":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("zB/H");e.finalize=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.callback))},t}(),a=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new o.Subscription(n)),i}return i(e,t),e}(r.Subscriber)},"4ik+":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.filter=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.thisArg=i,r.count=0,r}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(r.Subscriber)},"4mvG":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.refCount=function(){return function(t){return t.lift(new o(t))}};var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new s(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(r.Subscriber)},"4xzy":function(t,e,n){"use strict";var i=n("P+eR");e.subscribeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new r(t,e))}};var r=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new i.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("lJxs"),r=n("Cfvw"),o=n("zx2A");function s(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(s((n,o)=>Object(r.a)(t(n,o)).pipe(Object(i.a)((t,i)=>e(n,t,o,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}class c extends o.b{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)}_innerSub(t){const e=new o.a(this),n=this.destination;n.add(e);const i=Object(o.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5LH7":function(t,e){var n=1e3,i=60*n,r=60*i,o=24*r;function s(t,e,n,i){var r=e>=1.5*n;return Math.round(t/n)+" "+i+(r?"s":"")}t.exports=function(t,e){e=e||{};var a,c,l=typeof t;if("string"===l&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*i;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===l&&isFinite(t))return e.long?(a=t,(c=Math.abs(a))>=o?s(a,c,o,"day"):c>=r?s(a,c,r,"hour"):c>=i?s(a,c,i,"minute"):c>=n?s(a,c,n,"second"):a+" ms"):function(t){var e=Math.abs(t);return e>=o?Math.round(t/o)+"d":e>=r?Math.round(t/r)+"h":e>=i?Math.round(t/i)+"m":e>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},"5hvy":function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("MlIO"),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,s=e.x64.Word,a=e.algo,c=[],l=[],u=[];!function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var i=(2*t+3*e)%5;t=e%5,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var r=1,o=0;o<24;o++){for(var a=0,d=0,h=0;h<7;h++){if(1&r){var p=(1<<h)-1;p<32?d^=1<<p:a^=1<<p-32}128&r?r=r<<1^113:r<<=1}u[o]=s.create(a,d)}}();var d=[];!function(){for(var t=0;t<25;t++)d[t]=s.create()}();var h=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=t[e+2*r],s=t[e+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),(A=n[r]).high^=s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),A.low^=o}for(var a=0;a<24;a++){for(var h=0;h<5;h++){for(var p=0,m=0,f=0;f<5;f++)p^=(A=n[h+5*f]).high,m^=A.low;var b=d[h];b.high=p,b.low=m}for(h=0;h<5;h++){var g=d[(h+4)%5],_=d[(h+1)%5],v=_.high,y=_.low;for(p=g.high^(v<<1|y>>>31),m=g.low^(y<<1|v>>>31),f=0;f<5;f++)(A=n[h+5*f]).high^=p,A.low^=m}for(var w=1;w<25;w++){var C=(A=n[w]).high,x=A.low,O=c[w];O<32?(p=C<<O|x>>>32-O,m=x<<O|C>>>32-O):(p=x<<O-32|C>>>64-O,m=C<<O-32|x>>>64-O);var S=d[l[w]];S.high=p,S.low=m}var T=d[0],D=n[0];for(T.high=D.high,T.low=D.low,h=0;h<5;h++)for(f=0;f<5;f++){var k=d[w=h+5*f],P=d[(h+1)%5+5*f],E=d[(h+2)%5+5*f];(A=n[w]).high=k.high^~P.high&E.high,A.low=k.low^~P.low&E.low}var A,I=u[a];(A=n[0]).high^=I.high,A.low^=I.low}},_doFinalize:function(){var e=this._data,n=e.words,i=8*e.sigBytes,o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(t.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,c=a/8,l=[],u=0;u<c;u++){var d=s[u],h=d.high,p=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),l.push(p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8)),l.push(h)}return new r.init(l,a)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=o._createHelper(h),e.HmacSHA3=o._createHmacHelper(h)}(Math),i.SHA3)},"6aLS":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("q3Kh"),o=n("gTqA"),s=n("wjEo");e.switchMap=function t(e,n){return"function"==typeof n?function(i){return i.pipe(t((function(t,i){return o.from(e(t,i)).pipe(r.map((function(e,r){return n(t,e,i,r)})))})))}:function(t){return t.lift(new a(e))}};var a=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project))},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return i(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new s.SimpleInnerSubscriber(this),i=this.destination;i.add(n),this.innerSubscription=s.innerSubscribe(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(s.SimpleOuterSubscriber)},"6eB1":function(t,e,n){"use strict";var i=n("Q1FS"),r=n("nzqU"),o=n("QtHX"),s=n("zzsZ");e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,a=null,c=t[t.length-1];return r.isScheduler(c)?(a=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===a&&1===t.length&&t[0]instanceof i.Observable?t[0]:o.mergeAll(n)(s.fromArray(t,a))}},"6qA3":function(t,e,n){"use strict";var i=n("OAkW"),r=n("Z5tI"),o=n("poJ0"),s=n("ozli"),a=n("yRPT"),c=n("90cg"),l=n("GMZp"),u=n("VKeD"),d=n("zfKp");e.subscribeTo=function(t){if(t&&"function"==typeof t[d.observable])return s.subscribeToObservable(t);if(a.isArrayLike(t))return i.subscribeToArray(t);if(c.isPromise(t))return r.subscribeToPromise(t);if(t&&"function"==typeof t[u.iterator])return o.subscribeToIterable(t);var e=l.isObject(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},"76/Q":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("IKal"),s=n("aJGj");e.takeLast=function(t){return function(e){return 0===t?s.empty():e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.ring=new Array,i.count=0,i}return i(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var o=e++%n;t.next(i[o])}t.complete()},e}(r.Subscriber)},"7Hc7":function(t,e,n){"use strict";n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return p}));let i=1;const r=(()=>Promise.resolve())(),o={};function s(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=i++;return o[e]=!0,r.then(()=>s(e)&&t()),e},clearImmediate(t){s(t)}};var c=n("3N8a");class l extends c.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var u=n("IjjT");class d extends u.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i<r&&(t=e.shift()));if(this.active=!1,n){for(;++i<r&&(t=e.shift());)t.unsubscribe();throw n}}}const h=new d(l),p=h},"7K7o":function(t,e,n){"use strict";var i=n("Ceu0");e.multicast=function(t,e){return function(n){var o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new r(o,e));var s=Object.create(n,i.connectableObservableDescriptor);return s.source=n,s.subjectFactory=o,s}};var r=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(t);return r.add(e.subscribe(i)),r},t}();e.MulticastOperator=r},"7RJT":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("Mxlh");e.BehaviorSubject=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return i(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(r.Subject)},"7jRU":function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var i=0;i<t.length;++i)if(t[i]===e)return i;return-1}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("n6bG"),r=n("gRHU"),o=n("quSY"),s=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends o.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=r.a;break;case 1:if(!t){this.destination=r.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[s.a](){return this}static create(t,e,n){const i=new l(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,n,o){let s;super(),this._parentSubscriber=t;let a=this;Object(i.a)(e)?s=e:e&&(s=e.next,n=e.error,o=e.complete,e!==r.a&&(a=Object.create(e),Object(i.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(c.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8b5+":function(t,e,n){"use strict";var i=n("zL8a");e.concatMapTo=function(t,e){return i.concatMap((function(){return t}),e)}},"90cg":function(t,e,n){"use strict";e.isPromise=function(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},"9AGB":function(t,e,n){"use strict";var i=n("yoF8");function r(t){return 0===t.length?i.identity:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t)},e.pipeFromArray=r},"9OqN":function(t,e,n){var i,r,o;t.exports=(o=n("Ib8C"),n("OLod"),o.mode.CTR=(r=(i=o.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var a=0;a<i;a++)t[e+a]^=s[a]}}),i.Decryptor=r,i),o.mode.CTR)},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},AFwO:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("xKqS");e.observeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=s;var a=function(t){function e(e,n,i){void 0===i&&(i=0);var r=t.call(this,e)||this;return r.scheduler=n,r.delay=i,r}return i(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete()),this.unsubscribe()},e}(r.Subscriber);e.ObserveOnSubscriber=a;var c=function(){return function(t,e){this.notification=t,this.destination=e}}();e.ObserveOnMessage=c},ALsQ:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("OLod"),i.mode.CFB=function(){var t=i.lib.BlockCipherMode.extend();function e(t,e,n,i){var r,o=this._iv;o?(r=o.slice(0),this._iv=void 0):r=this._prevBlock,i.encryptBlock(r,0);for(var s=0;s<n;s++)t[e+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize;e.call(this,t,n,r,i),this._prevBlock=t.slice(n,n+r)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize,o=t.slice(n,n+r);e.call(this,t,n,r,i),this._prevBlock=o}}),t}(),i.mode.CFB)},AYHy:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("Q1FS"),s=n("Y4kR"),a=n("cSoz");e.delayWhen=function(t,e){return e?function(n){return new u(n,e).lift(new c(t))}:function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delayDurationSelector))},t}(),l=function(t){function e(e,n){var i=t.call(this,e)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(t),this.removeSubscription(r),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=a.subscribeToResult(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(s.OuterSubscriber),u=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subscriptionDelay=n,i}return i(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new d(t,this.source))},e}(o.Observable),d=function(t){function e(e,n){var i=t.call(this)||this;return i.parent=e,i.source=n,i.sourceSubscribed=!1,i}return i(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(r.Subscriber)},AdPF:function(t,e,n){var i=n("yeub"),r=n("2UHX");t.exports=function(t){var e=t.xdomain,n=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||i))return new XMLHttpRequest}catch(s){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(s){}if(!e)try{return new(r[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(s){}}},AmbE:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("zzsZ"),o=n("mbIT"),s=n("FWf1"),a=n("VKeD"),c=n("wjEo");e.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),r.fromArray(t,void 0).lift(new l(n))};var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.resultSelector))},t}();e.ZipOperator=l;var u=function(t){function e(e,n,i){void 0===i&&(i=Object.create(null));var r=t.call(this,e)||this;return r.resultSelector=n,r.iterators=[],r.active=0,r.resultSelector="function"==typeof n?n:void 0,r}return i(e,t),e.prototype._next=function(t){var e=this.iterators;o.isArray(t)?e.push(new h(t)):e.push("function"==typeof t[a.iterator]?new d(t[a.iterator]()):new p(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var i=t[n];i.stillUnsubscribed?this.destination.add(i.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,i=0;i<e;i++)if("function"==typeof(s=t[i]).hasValue&&!s.hasValue())return;var r=!1,o=[];for(i=0;i<e;i++){var s,a=(s=t[i]).next();if(s.hasCompleted()&&(r=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),r&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(s.Subscriber);e.ZipSubscriber=u;var d=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),h=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[a.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),p=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.parent=n,r.observable=i,r.stillUnsubscribed=!0,r.buffer=[],r.isComplete=!1,r}return i(e,t),e.prototype[a.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return c.innerSubscribe(this.observable,new c.SimpleInnerSubscriber(this))},e}(c.SimpleOuterSubscriber)},Aplp:function(t,e,n){"use strict";var i,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},s=0,a=0;function c(t){var e="";do{e=r[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function l(){var t=c(+new Date);return t!==i?(s=0,i=t):t+"."+c(s++)}for(;a<64;a++)o[r[a]]=a;l.encode=c,l.decode=function(t){var e=0;for(a=0;a<t.length;a++)e=64*e+o[t.charAt(a)];return e},t.exports=l},"B/hR":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.distinctUntilChanged=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.keySelector=i,r.hasKey=!1,"function"==typeof n&&(r.compare=n),r}return i(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))},e}(r.Subscriber)},BmJ7:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("zB/H"),s=n("Y4kR"),a=n("cSoz");e.windowToggle=function(t,e){return function(n){return n.lift(new c(t,e))}};var c=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.openings,this.closingSelector))},t}(),l=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.openings=n,r.closingSelector=i,r.contexts=[],r.add(r.openSubscription=a.subscribeToResult(r,n,n)),r}return i(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,i=0;i<n;i++)e[i].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,r=-1;++r<i;){var o=n[r];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,i=-1;++i<n;){var r=e[i];r.window.complete(),r.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var i=t[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,i,s){if(t===this.openings){var c=void 0;try{c=(0,this.closingSelector)(e)}catch(p){return this.error(p)}var l=new r.Subject,u=new o.Subscription,d={window:l,subscription:u};this.contexts.push(d);var h=a.subscribeToResult(this,c,d);h.closed?this.closeWindow(this.contexts.length-1):(h.context=d,u.add(h)),this.destination.next(l)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],i=n.window,r=n.subscription;e.splice(t,1),i.complete(),r.unsubscribe()}},e}(s.OuterSubscriber)},C20g:function(t,e,n){"use strict";e.not=function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}},C2QD:function(t,e){function n(t){this.ms=(t=t||{}).min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},C82C:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("zB/H"),o=n("cSoz"),s=n("Y4kR");e.bufferToggle=function(t,e){return function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.closingSelector=i,r.contexts=[],r.add(o.subscribeToResult(r,n)),r}return i(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,i=0;i<n;i++)e[i].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(n){this._error(n)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new r.Subscription,i={buffer:[],subscription:n};e.push(i);var s=o.subscribeToResult(this,t,i);!s||s.closed?this.closeBuffer(i):(s.context=i,this.add(s),n.add(s))},e}(s.OuterSubscriber)},CIKq:function(t,e,n){var i,r,o=n("Gbct"),s=n("+ntK"),a=n("TypT"),c=n("Yvos"),l=n("Aplp"),u=n("x7D4")("engine.io-client:websocket");if("undefined"!=typeof WebSocket?i=WebSocket:"undefined"!=typeof self&&(i=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{r=n(1)}catch(p){}var d=i||r;function h(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=i&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(d=r),o.call(this,t)}t.exports=h,c(h,o),h.prototype.name="websocket",h.prototype.supportsBinary=!0,h.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new d(t,e):new d(t):new d(t,e,n)}catch(i){return this.emit("error",i)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},h.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},h.prototype.write=function(t){var e=this;this.writable=!1;for(var n=t.length,i=0,r=n;i<r;i++)!function(t){s.encodePacket(t,e.supportsBinary,(function(i){if(!e.usingBrowserWebSocket){var r={};t.options&&(r.compress=t.options.compress),e.perMessageDeflate&&("string"==typeof i?Buffer.byteLength(i):i.length)<e.perMessageDeflate.threshold&&(r.compress=!1)}try{e.usingBrowserWebSocket?e.ws.send(i):e.ws.send(i,r)}catch(p){u("websocket closed before onclose event")}--n||(e.emit("flush"),setTimeout((function(){e.writable=!0,e.emit("drain")}),0))}))}(t[i])},h.prototype.onClose=function(){o.prototype.onClose.call(this)},h.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},h.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"===e&&443!==Number(this.port)||"ws"===e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),(t=a.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},h.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===h.prototype.name)}},CUme:function(t,e,n){var i=n("Gbct"),r=n("TypT"),o=n("+ntK"),s=n("Yvos"),a=n("Aplp"),c=n("x7D4")("engine.io-client:polling");t.exports=u;var l=null!=new(n("AdPF"))({xdomain:!1}).responseType;function u(t){l&&!(t&&t.forceBase64)||(this.supportsBinary=!1),i.call(this,t)}s(u,i),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(t){var e=this;function n(){c("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var i=0;this.polling&&(c("we are currently polling - waiting to pause"),i++,this.once("pollComplete",(function(){c("pre-pause polling complete"),--i||n()}))),this.writable||(c("we are currently writing - waiting to pause"),i++,this.once("drain",(function(){c("pre-pause writing complete"),--i||n()})))}else n()},u.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(t){var e=this;c("polling got data %s",t),o.decodePayload(t,this.socket.binaryType,(function(t,n,i){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var t=this;function e(){c("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),e()):(c("transport not open - deferring close"),this.once("open",e))},u.prototype.write=function(t){var e=this;this.writable=!1;var n=function(){e.writable=!0,e.emit("drain")};o.encodePayload(t,this.supportsBinary,(function(t){e.doWrite(t,n)}))},u.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=a()),this.supportsBinary||t.sid||(t.b64=1),t=r.encode(t),this.port&&("https"===e&&443!==Number(this.port)||"http"===e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},CdcT:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("1pIY"),s=n("EOBV");e.throttleTime=function(t,e,n){return void 0===e&&(e=o.async),void 0===n&&(n=s.defaultThrottleConfig),function(i){return i.lift(new a(t,e,n.leading,n.trailing))}};var a=function(){function t(t,e,n,i){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=i,s.leading=r,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return i(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(l,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(r.Subscriber);function l(t){t.subscriber.clearThrottle()}},Ceu0:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("Q1FS"),s=n("zB/H"),a=n("4mvG"),c=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return i(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.Subscription.EMPTY)),t},e.prototype.refCount=function(){return a.refCount()(this)},e}(o.Observable);e.ConnectableObservable=c,e.connectableObservableDescriptor=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}();var l=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return i(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(r.SubjectSubscriber)},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("HDdC"),r=n("SeVD"),o=n("quSY"),s=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),u=n("I55L");function d(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.a]}(t))return function(t,e){return new i.a(n=>{const i=new o.a;return i.add(e.schedule(()=>{const r=t[s.a]();i.add(r.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(l.a)(t))return function(t,e){return new i.a(n=>{const i=new o.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new o.a;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=t[c.a](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=r.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(r.a)(t))}},Cl5A:function(t,e,n){var i=n("CUme"),r=n("Yvos"),o=n("2UHX");t.exports=u;var s,a=/\n/g,c=/\\n/g;function l(){}function u(t){i.call(this,t),this.query=this.query||{},s||(s=o.___eio=o.___eio||[]),this.index=s.length;var e=this;s.push((function(t){e.onData(t)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){e.script&&(e.script.onerror=l)}),!1)}r(u,i),u.prototype.supportsBinary=!1,u.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),i.prototype.doClose.call(this)},u.prototype.doPoll=function(){var t=this,e=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),e.async=!0,e.src=this.uri(),e.onerror=function(e){t.onError("jsonp poll error",e)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(e,n):(document.head||document.body).appendChild(e),this.script=e,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)}),100)},u.prototype.doWrite=function(t,e){var n=this;if(!this.form){var i,r=document.createElement("form"),o=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index;r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=s,r.method="POST",r.setAttribute("accept-charset","utf-8"),o.name="d",r.appendChild(o),document.body.appendChild(r),this.form=r,this.area=o}function l(){u(),e()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(t){n.onError("jsonp polling iframe removal error",t)}try{i=document.createElement('<iframe src="javascript:0" name="'+n.iframeId+'">')}catch(t){(i=document.createElement("iframe")).name=n.iframeId,i.src="javascript:0"}i.id=n.iframeId,n.form.appendChild(i),n.iframe=i}this.form.action=this.uri(),u(),t=t.replace(c,"\\\n"),this.area.value=t.replace(a,"\\n");try{this.form.submit()}catch(d){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&l()}:this.iframe.onload=l}},Czum:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"d",(function(){return d})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return p})),n.d(e,"a",(function(){return f}));var i,r=n("fXoL"),o=n("Wcq6"),s=n.n(o);const a=new r.s("angularfire2.app.options"),c=new r.s("angularfire2.app.nameOrConfig"),l=a,u=c;class d{}const h=new r.R("5.4.2");function p(t,e,n){const i="object"==typeof n&&n||{};return i.name=i.name||"string"==typeof n&&n||"[DEFAULT]",s.a.apps.filter(t=>t&&t.name===i.name)[0]||e.runOutsideAngular(()=>s.a.initializeApp(t,i))}const m={provide:d,useFactory:p,deps:[l,r.B,[new r.C,u]]};let f=(()=>{let t=i=class{constructor(t){s.a.registerVersion&&(s.a.registerVersion("angularfire",h.full,t.toString()),s.a.registerVersion("angular",r.Q.full))}static initializeApp(t,e){return{ngModule:i,providers:[{provide:l,useValue:t},{provide:u,useValue:e}]}}};return t.\u0275mod=r.Mb({type:t}),t.\u0275inj=r.Lb({factory:function(e){return new(e||t)(r.Yb(r.D))},providers:[m]}),t})()},D0XW:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}));var i=n("3N8a");const r=new(n("IjjT").a)(i.a),o=r},DDzh:function(t,e,n){"use strict";var i=n("q3Kh");function r(t,e){return function(n){for(var i=n,r=0;r<e;r++){var o=null!=i?i[t[r]]:void 0;if(void 0===o)return;i=o}return i}}e.pluck=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return i.map(r(t,n))(e)}}},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},DXMP:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.ignoreElements=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._next=function(t){},e}(r.Subscriber)},Dxa7:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("IKal"),s=n("aJGj");e.take=function(t){return function(e){return 0===t?s.empty():e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(r.Subscriber)},"Dz+M":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e.Action=function(t){function e(e,n){return t.call(this)||this}return i(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n("zB/H").Subscription)},E4JC:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var t=i,e=t.lib.StreamCipher,n=[],r=[],o=[],s=t.algo.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)a.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(e){var o=e.words,s=o[0],c=o[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;for(r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h,n=0;n<4;n++)a.call(this)}},_doProcessBlock:function(t,e){var i=this._X;a.call(this),n[0]=i[0]^i[5]>>>16^i[3]<<16,n[1]=i[2]^i[7]>>>16^i[5]<<16,n[2]=i[4]^i[1]>>>16^i[7]<<16,n[3]=i[6]^i[3]>>>16^i[1]<<16;for(var r=0;r<4;r++)n[r]=16711935&(n[r]<<8|n[r]>>>24)|4278255360&(n[r]<<24|n[r]>>>8),t[e+r]^=n[r]},blockSize:4,ivSize:2});function a(){for(var t=this._X,e=this._C,n=0;n<8;n++)r[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<r[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<r[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<r[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<r[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<r[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<r[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<r[6]>>>0?1:0)|0,this._b=e[7]>>>0<r[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],s=65535&i,a=i>>>16;o[n]=((s*s>>>17)+s*a>>>15)+a*a^((4294901760&i)*i|0)+((65535&i)*i|0)}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),i.Rabbit)},EBtg:function(t,e,n){"use strict";var i=n("2KeD"),r=n("n73p"),o=n("2qMH"),s=n("LJ/p"),a=n("HZF8"),c=n("90cg"),l=n("yRPT"),u=n("0alx");e.scheduled=function(t,e){if(null!=t){if(a.isInteropObservable(t))return i.scheduleObservable(t,e);if(c.isPromise(t))return r.schedulePromise(t,e);if(l.isArrayLike(t))return o.scheduleArray(t,e);if(u.isIterable(t)||"string"==typeof t)return s.scheduleIterable(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},ELcG:function(t,e,n){var i;t.exports=(i=n("Ib8C"),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,s=e.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=s.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,s,p,y,w,C,x,O,S,T,D,k=this._hash.words,P=d.words,E=h.words,A=a.words,I=c.words,M=l.words,U=u.words;for(C=o=k[0],x=s=k[1],O=p=k[2],S=y=k[3],T=w=k[4],n=0;n<80;n+=1)D=o+t[e+A[n]]|0,D+=n<16?m(s,p,y)+P[0]:n<32?f(s,p,y)+P[1]:n<48?b(s,p,y)+P[2]:n<64?g(s,p,y)+P[3]:_(s,p,y)+P[4],D=(D=v(D|=0,M[n]))+w|0,o=w,w=y,y=v(p,10),p=s,s=D,D=C+t[e+I[n]]|0,D+=n<16?_(x,O,S)+E[0]:n<32?g(x,O,S)+E[1]:n<48?b(x,O,S)+E[2]:n<64?f(x,O,S)+E[3]:m(x,O,S)+E[4],D=(D=v(D|=0,U[n]))+T|0,C=T,T=S,S=v(O,10),O=x,x=D;D=k[1]+p+S|0,k[1]=k[2]+y+T|0,k[2]=k[3]+w+C|0,k[3]=k[4]+o+x|0,k[4]=k[0]+s+O|0,k[0]=D},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var r=this._hash,o=r.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return r},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function m(t,e,n){return t^e^n}function f(t,e,n){return t&e|~t&n}function b(t,e,n){return(t|~e)^n}function g(t,e,n){return t&n|e&~n}function _(t,e,n){return t^(e|~n)}function v(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(p),e.HmacRIPEMD160=o._createHmacHelper(p)}(Math),i.RIPEMD160)},EOBV:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(t,n){return void 0===n&&(n=e.defaultThrottleConfig),function(e){return e.lift(new o(t,!!n.leading,!!n.trailing))}};var o=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector,this.leading,this.trailing))},t}(),s=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=i,o._trailing=r,o._hasValue=!1,o}return i(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._sendValue;this._hasValue&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=r.innerSubscribe(e,new r.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(e){return this.destination.error(e),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(r.SimpleOuterSubscriber)},ETIr:function(t,e,n){var i,r;t.exports=(i=n("Ib8C"),r=i.lib.WordArray,i.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var r=[],o=0;o<n;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)r.push(i.charAt(s>>>6*(3-a)&63));var c=i.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(t){var e=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var s=n.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return function(t,e,n){for(var i=[],o=0,s=0;s<e;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2,c=n[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=(a|c)<<24-o%4*8,o++}return r.create(i,o)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("HDdC");const r=new i.a(t=>t.complete());function o(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):r}},EdHE:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("0z0v");e.single=function(t){return function(e){return e.lift(new s(t,e))}};var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},t}(),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.source=i,r.seenValue=!1,r.index=0,r}return i(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new o.EmptyError)},e}(r.Subscriber)},EzyC:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("1pIY");e.sampleTime=function(t,e){return void 0===e&&(e=o.async),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.period,this.scheduler))},t}(),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.period=n,r.scheduler=i,r.hasValue=!1,r.add(i.schedule(c,n,{subscriber:r,period:n})),r}return i(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(r.Subscriber);function c(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}},"F+F2":function(t,e,n){var i;t.exports=(i=n("Ib8C"),function(){if("function"==typeof ArrayBuffer){var t=i.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,i=[],r=0;r<n;r++)i[r>>>2]|=t[r]<<24-r%4*8;e.call(this,i,n)}else e.apply(this,arguments)}).prototype=t}}(),i.lib.WordArray)},F1k1:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("wjEo");e.retryWhen=function(t){return function(e){return e.lift(new s(t,e))}};var s=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier,this.source))},t}(),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.notifier=n,r.source=i,r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new r.Subject;try{i=(0,this.notifier)(n)}catch(a){return t.prototype.error.call(this,a)}s=o.innerSubscribe(i,new o.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=s,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(o.SimpleOuterSubscriber)},FCKb:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("nzqU"),o=n("mbIT"),s=n("Y4kR"),a=n("cSoz"),c=n("zzsZ"),l={};e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,i=void 0;return r.isScheduler(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0]),c.fromArray(t,i).lift(new u(n))};var u=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.resultSelector))},t}();e.CombineLatestOperator=u;var d=function(t){function e(e,n){var i=t.call(this,e)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i(e,t),e.prototype._next=function(t){this.values.push(l),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++)this.add(a.subscribeToResult(this,t[n],void 0,n))}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var i=this.values,r=this.toRespond?i[n]===l?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(s.OuterSubscriber);e.CombineLatestSubscriber=d},FWf1:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("pshJ"),o=n("GiSu"),s=n("zB/H"),a=n("p//D"),c=n("n3uD"),l=n("MkmW"),u=function(t){function e(n,i,r){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.empty;break;case 1:if(!n){s.destination=o.empty;break}if("object"==typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new d(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new d(s,n,i,r)}return s}return i(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,i){var r=new e(t,n,i);return r.syncErrorThrowable=!1,r},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.Subscription);e.Subscriber=u;var d=function(t){function e(e,n,i,s){var a,c=t.call(this)||this;c._parentSubscriber=e;var l=c;return r.isFunction(n)?a=n:n&&(a=n.next,i=n.error,s=n.complete,n!==o.empty&&(l=Object.create(n),r.isFunction(l.unsubscribe)&&c.add(l.unsubscribe.bind(l)),l.unsubscribe=c.unsubscribe.bind(c))),c._context=l,c._next=a,c._error=i,c._complete=s,c}return i(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):l.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;l.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),c.config.useDeprecatedSynchronousErrorHandling)throw n;l.hostReportError(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return c.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(l.hostReportError(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u);e.SafeSubscriber=d},FXYA:function(t,e,n){function i(t){var n;function i(){if(i.enabled){var t=i,r=+new Date,o=r-(n||r);t.diff=o,t.prev=n,t.curr=r,n=r;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=e.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,i){if("%%"===n)return n;c++;var r=e.formatters[i];return"function"==typeof r&&(n=r.call(t,s[c]),s.splice(c,1),c--),n})),e.formatArgs.call(t,s);var l=i.log||e.log||console.log.bind(console);l.apply(t,s)}}return i.namespace=t,i.enabled=e.enabled(t),i.useColors=e.useColors(),i.color=function(t){var n,i=0;for(n in t)i=(i<<5)-i+t.charCodeAt(n),i|=0;return e.colors[Math.abs(i)%e.colors.length]}(t),i.destroy=r,"function"==typeof e.init&&e.init(i),e.instances.push(i),i}function r(){var t=e.instances.indexOf(this);return-1!==t&&(e.instances.splice(t,1),!0)}(e=t.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){e.enable("")},e.enable=function(t){var n;e.save(t),e.names=[],e.skips=[];var i=("string"==typeof t?t:"").split(/[\s,]+/),r=i.length;for(n=0;n<r;n++)i[n]&&("-"===(t=i[n].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.substr(1)+"$")):e.names.push(new RegExp("^"+t+"$")));for(n=0;n<e.instances.length;n++){var o=e.instances[n];o.enabled=e.enabled(o.namespace)}},e.enabled=function(t){if("*"===t[t.length-1])return!0;var n,i;for(n=0,i=e.skips.length;n<i;n++)if(e.skips[n].test(t))return!1;for(n=0,i=e.names.length;n<i;n++)if(e.names[n].test(t))return!0;return!1},e.humanize=n("XuI1"),e.instances=[],e.names=[],e.skips=[],e.formatters={}},FYWq:function(t,e,n){"use strict";var i=n("FCKb");e.combineAll=function(t){return function(e){return e.lift(new i.CombineLatestOperator(t))}}},Fa1C:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("wjEo");e.window=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new a(t),i=e.subscribe(n);return i.closed||n.add(o.innerSubscribe(this.windowBoundaries,new o.SimpleInnerSubscriber(n))),i},t}(),a=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new r.Subject,e.next(n.window),n}return i(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new r.Subject;e.next(n)},e}(o.SimpleOuterSubscriber)},Fh4B:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.distinct=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.keySelector,this.flushes))},t}(),s=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,i&&o.add(r.innerSubscribe(i,new r.SimpleInnerSubscriber(o))),o}return i(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(i){return void n.error(i)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(r.SimpleOuterSubscriber);e.DistinctSubscriber=s},FiyT:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e.SubjectSubscription=function(t){function e(e,n){var i=t.call(this)||this;return i.subject=e,i.subscriber=n,i.closed=!1,i}return i(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n("zB/H").Subscription)},GMZp:function(t,e,n){"use strict";e.isObject=function(t){return null!==t&&"object"==typeof t}},GRuw:function(t,e,n){var i,r,o,s,a,c;t.exports=(c=n("Ib8C"),n("lPiR"),r=(i=c).lib.WordArray,a=(o=i.algo).SHA224=(s=o.SHA256).extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=4,t}}),i.SHA224=s._createHelper(a),i.HmacSHA224=s._createHmacHelper(a),c.SHA224)},Gbct:function(t,e,n){var i=n("+ntK"),r=n("cpc2");function o(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}t.exports=o,r(o.prototype),o.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},o.prototype.onPacket=function(t){this.emit("packet",t)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},GiSu:function(t,e,n){"use strict";var i=n("n3uD"),r=n("MkmW");e.empty={closed:!0,next:function(t){},error:function(t){if(i.config.useDeprecatedSynchronousErrorHandling)throw t;r.hostReportError(t)},complete:function(){}}},GvSz:function(t,e,n){"use strict";var i=n("+Zhm"),r=n("7K7o");e.publishReplay=function(t,e,n,o){n&&"function"!=typeof n&&(o=n);var s="function"==typeof n?n:void 0,a=new i.ReplaySubject(t,e,o);return function(t){return r.multicast((function(){return a}),s)(t)}}},H2PQ:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e.QueueScheduler=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(n("NTcF").AsyncScheduler)},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("7o/Q"),r=n("2QA8"),o=n("gRHU"),s=n("kJWO"),a=n("mCNh"),c=n("2fFW");let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,a=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[r.a])return t[r.a]()}return t||e||n?new i.a(t,e,n):new i.a(o.a)}(t,e,n);if(a.add(s?s.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[s.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},HZF8:function(t,e,n){"use strict";var i=n("zfKp");e.isInteropObservable=function(t){return t&&"function"==typeof t[i.observable]}},HmDv:function(t,e,n){"use strict";var i=n("0z0v"),r=n("4ik+"),o=n("76/Q"),s=n("W96K"),a=n("1Z+e"),c=n("yoF8");e.last=function(t,e){var n=arguments.length>=2;return function(l){return l.pipe(t?r.filter((function(e,n){return t(e,n,l)})):c.identity,o.takeLast(1),n?a.defaultIfEmpty(e):s.throwIfEmpty((function(){return new i.EmptyError})))}}},HzbE:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.buffer=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.closingNotifier))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.buffer=[],i.add(r.innerSubscribe(n,new r.SimpleInnerSubscriber(i))),i}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(r.SimpleOuterSubscriber)},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},I65S:function(t,e,n){"use strict";var i=n("nzqU"),r=n("zzsZ"),o=n("2qMH");e.of=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return i.isScheduler(n)?(t.pop(),o.scheduleArray(t,n)):r.fromArray(t)}},IEvo:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e.QueueAction=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,i):e.flush(this)},e}(n("2tF/").AsyncAction)},IKMM:function(t,e,n){"use strict";var i=n("I65S"),r=n("c4Wt");e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.concatAll()(i.of.apply(void 0,t))}},IKal:function(t,e,n){"use strict";e.ArgumentOutOfRangeError=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},IW2O:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.takeUntil=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new s(t),i=r.innerSubscribe(this.notifier,new r.SimpleInnerSubscriber(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return i(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(r.SimpleOuterSubscriber)},Iab2:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){s(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function n(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,o=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,s){var a=r.URL||r.webkitURL,c=document.createElement("a");c.download=o=o||t.name||"download",c.rel="noopener","string"==typeof t?(c.href=t,c.origin===location.origin?i(c):n(c.href)?e(t,o,s):i(c,c.target="_blank")):(c.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(c.href)}),4e4),setTimeout((function(){i(c)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,r,o){if(r=r||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),r);else if(n(t))e(t,r,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){i(s)}))}}:function(t,n,i,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var a="application/octet-stream"===t.type,c=/constructor/i.test(r.HTMLElement)||r.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=t:location=t,s=null},u.readAsDataURL(t)}else{var d=r.URL||r.webkitURL,h=d.createObjectURL(t);s?s.location=h:location.href=h,s=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});r.saveAs=s.saveAs=s,t.exports=s})?i.apply(e,[]):i)||(t.exports=r)},Ib8C:function(t,e,n){var i;t.exports=i=i||function(t,e){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!=typeof global&&global.crypto&&(i=global.crypto),!i)try{i=n(!function(){var t=new Error("Cannot find module 'crypto'");throw t.code="MODULE_NOT_FOUND",t}())}catch(b){}var r=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(b){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(b){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},a=s.lib={},c=a.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,r=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++)e[i+o>>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(i+o)%4*8;else for(o=0;o<r;o+=4)e[i+o>>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new l.init(e,t)}}),u=s.enc={},d=u.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++){var o=e[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new l.init(n,e/2)}},h=u.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r++)i.push(String.fromCharCode(e[r>>>2]>>>24-r%4*8&255));return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new l.init(n,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},m=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,r=i.words,o=i.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,u=t.min(4*c,o);if(c){for(var d=0;d<c;d+=s)this._doProcessBlock(r,d);n=r.splice(0,c),i.sigBytes-=u}return new l.init(n,u)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),f=(a.Hasher=m.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new f.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math)},IjjT:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));let i=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class r extends i{constructor(t,e=i.now){super(t,()=>r.delegate&&r.delegate!==this?r.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return r.delegate&&r.delegate!==this?r.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},K3mO:function(t,e,n){var i,r,o,s,a,c,l;t.exports=(l=n("Ib8C"),n("3y9D"),n("WYAk"),s=(r=(i=l).lib).WordArray,c=(a=i.algo).EvpKDF=(o=r.Base).extend({cfg:o.extend({keySize:4,hasher:a.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,i=this.cfg,r=i.hasher.create(),o=s.create(),a=o.words,c=i.keySize,l=i.iterations;a.length<c;){n&&r.update(n),n=r.update(t).finalize(e),r.reset();for(var u=1;u<l;u++)n=r.finalize(n),r.reset();o.concat(n)}return o.sigBytes=4*c,o}}),i.EvpKDF=function(t,e,n){return c.create(n).compute(t,e)},l.EvpKDF)},KDZV:function(t,e,n){"use strict";n.r(e),n.d(e,"AngularFireAuth",(function(){return u})),n.d(e,"AngularFireAuthModule",(function(){return d}));var i=n("fXoL"),r=n("HDdC"),o=n("Cfvw"),s=n("LRne"),a=n("eIep"),c=n("XU1U"),l=n("Czum");let u=(()=>{let t=class{constructor(t,e,n,i){const u=Object(c.i)(new c.f(i),n);this.auth=i.runOutsideAngular(()=>Object(l.h)(t,i,e).auth()),this.authState=new r.a(t=>i.runOutsideAngular(()=>this.auth.onAuthStateChanged(t))).pipe(u),this.user=new r.a(t=>i.runOutsideAngular(()=>this.auth.onIdTokenChanged(t))).pipe(u),this.idToken=this.user.pipe(Object(a.a)(t=>t?Object(o.a)(t.getIdToken()):Object(s.a)(null))),this.idTokenResult=this.user.pipe(Object(a.a)(t=>t?Object(o.a)(t.getIdTokenResult()):Object(s.a)(null)))}};return t.\u0275fac=function(e){return new(e||t)(i.Yb(l.c),i.Yb(l.b,8),i.Yb(i.D),i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:function(e){return t.\u0275fac(e)}}),t})();n("LOEa");let d=(()=>{let t=class{};return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[u]}),t})()},KFGy:function(t,e,n){var i=n("Uwu7"),r=n("cpc2"),o=n("kSER"),s=n("2Dig"),a=n("QN7Q"),c=n("x7D4")("socket.io-client:socket"),l=n("TypT"),u=n("WLGk");t.exports=p;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=r.prototype.emit;function p(t,e,n){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}r(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",a(this,"onopen")),s(t,"packet",a(this,"onpacket")),s(t,"close",a(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},p.prototype.send=function(){var t=o(arguments);return t.unshift("message"),this.emit.apply(this,t),this},p.prototype.emit=function(t){if(d.hasOwnProperty(t))return h.apply(this,arguments),this;var e=o(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:u(e))?i.BINARY_EVENT:i.EVENT,data:e,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},p.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},p.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var t="object"==typeof this.query?l.encode(this.query):this.query;c("sending connect packet with query %s",t),this.packet({type:i.CONNECT,query:t})}else this.packet({type:i.CONNECT})},p.prototype.onclose=function(t){c("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},p.prototype.onpacket=function(t){if(t.nsp===this.nsp||t.type===i.ERROR&&"/"===t.nsp)switch(t.type){case i.CONNECT:this.onconnect();break;case i.EVENT:case i.BINARY_EVENT:this.onevent(t);break;case i.ACK:case i.BINARY_ACK:this.onack(t);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",t.data)}},p.prototype.onevent=function(t){var e=t.data||[];c("emitting event %j",e),null!=t.id&&(c("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?h.apply(this,e):this.receiveBuffer.push(e)},p.prototype.ack=function(t){var e=this,n=!1;return function(){if(!n){n=!0;var r=o(arguments);c("sending ack %j",r),e.packet({type:u(r)?i.BINARY_ACK:i.ACK,id:t,data:r})}}},p.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(c("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):c("bad ack %s",t.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},p.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)h.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(t){return this.flags.compress=t,this},p.prototype.binary=function(t){return this.flags.binary=t,this}},KmYQ:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("OLod"),i.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},i.pad.ZeroPadding)},L8wN:function(t,e,n){t.exports=function(t){function e(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return i.colors[Math.abs(e)%i.colors.length]}function i(t){let n;function s(...t){if(!s.enabled)return;const e=s,r=Number(new Date);e.diff=r-(n||r),e.prev=n,e.curr=r,n=r,t[0]=i.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return n;o++;const s=i.formatters[r];return"function"==typeof s&&(n=s.call(e,t[o]),t.splice(o,1),o--),n}),i.formatArgs.call(e,t),(e.log||i.log).apply(e,t)}return s.namespace=t,s.enabled=i.enabled(t),s.useColors=i.useColors(),s.color=e(t),s.destroy=r,s.extend=o,"function"==typeof i.init&&i.init(s),i.instances.push(s),s}function r(){const t=i.instances.indexOf(this);return-1!==t&&(i.instances.splice(t,1),!0)}function o(t,e){const n=i(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function s(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return i.debug=i,i.default=i,i.coerce=function(t){return t instanceof Error?t.stack||t.message:t},i.disable=function(){const t=[...i.names.map(s),...i.skips.map(s).map(t=>"-"+t)].join(",");return i.enable(""),t},i.enable=function(t){let e;i.save(t),i.names=[],i.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),r=n.length;for(e=0;e<r;e++)n[e]&&("-"===(t=n[e].replace(/\*/g,".*?"))[0]?i.skips.push(new RegExp("^"+t.substr(1)+"$")):i.names.push(new RegExp("^"+t+"$")));for(e=0;e<i.instances.length;e++){const t=i.instances[e];t.enabled=i.enabled(t.namespace)}},i.enabled=function(t){if("*"===t[t.length-1])return!0;let e,n;for(e=0,n=i.skips.length;e<n;e++)if(i.skips[e].test(t))return!1;for(e=0,n=i.names.length;e<n;e++)if(i.names[e].test(t))return!0;return!1},i.humanize=n("5LH7"),Object.keys(t).forEach(e=>{i[e]=t[e]}),i.instances=[],i.names=[],i.skips=[],i.formatters={},i.selectColor=e,i.enable(i.load()),i}},LBXl:function(t,e,n){"use strict";e.UnsubscriptionError=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},"LJ/p":function(t,e,n){"use strict";var i=n("Q1FS"),r=n("zB/H"),o=n("VKeD");e.scheduleIterable=function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.Observable((function(n){var i,s=new r.Subscription;return s.add((function(){i&&"function"==typeof i.return&&i.return()})),s.add(e.schedule((function(){i=t[o.iterator](),s.add(e.schedule((function(){if(!n.closed){var t,e;try{var r=i.next();t=r.value,e=r.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),s}))}},LOEa:function(t,e,n){(function(){var t,e=n("wj3C").default,i="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)},r=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global,t];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}return globalThis}(this);function o(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function s(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:o(t)}}!function(t,e){if(e){var n=r;t=t.split(".");for(var o=0;o<t.length-1;o++){var s=t[o];s in n||(n[s]={}),n=n[s]}(e=e(o=n[t=t[t.length-1]]))!=o&&null!=e&&i(n,t,{configurable:!0,writable:!0,value:e})}}("Promise",(function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function n(){this.a=null}function i(t){return t instanceof e?t:new e((function(e){e(t)}))}if(t)return t;n.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c((function(){e.g()}))}this.a.push(t)};var o=r.setTimeout;n.prototype.c=function(t){o(t,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(i){this.f(i)}}}this.a=null},n.prototype.f=function(t){this.c((function(){throw t}))},e.prototype.f=function(){function t(t){return function(i){n||(n=!0,t.call(e,i))}}var e=this,n=!1;return{resolve:t(this.v),reject:t(this.g)}},e.prototype.v=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.o(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.m(t):this.h(t)}},e.prototype.m=function(t){var e=void 0;try{e=t.then}catch(n){return void this.g(n)}"function"==typeof e?this.u(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)a.b(this.a[t]);this.a=null}};var a=new n;return e.prototype.o=function(t){var e=this.f();t.Pa(e.resolve,e.reject)},e.prototype.u=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(i){n.reject(i)}},e.prototype.then=function(t,n){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(n){o(n)}}:e}var r,o,s=new e((function(t,e){r=t,o=e}));return this.Pa(i(t,r),i(n,o)),s},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Pa=function(t,e){function n(){switch(i.b){case 1:t(i.c);break;case 2:e(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?a.b(n):this.a.push(n)},e.resolve=i,e.reject=function(t){return new e((function(e,n){n(t)}))},e.race=function(t){return new e((function(e,n){for(var r=s(t),o=r.next();!o.done;o=r.next())i(o.value).Pa(e,n)}))},e.all=function(t){var n=s(t),r=n.next();return r.done?i([]):new e((function(t,e){function o(e){return function(n){s[e]=n,0==--a&&t(s)}}var s=[],a=0;do{s.push(void 0),a++,i(r.value).Pa(o(s.length-1),e),r=n.next()}while(!r.done)}))},e}));var a=a||{},c=this||self,l=/^[\w+/_-]+[=]{0,2}$/,u=null;function d(){}function h(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function p(t){var e=h(t);return"array"==e||"object"==e&&"number"==typeof t.length}function m(t){return"function"==h(t)}function f(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function b(t){return Object.prototype.hasOwnProperty.call(t,g)&&t[g]||(t[g]=++_)}var g="closure_uid_"+(1e9*Math.random()>>>0),_=0;function v(t,e,n){return t.call.apply(t.bind,arguments)}function y(t,e,n){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,i),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function w(t,e,n){return(w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:y).apply(null,arguments)}function C(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var x=Date.now||function(){return+new Date};function O(t,e){function n(){}n.prototype=e.prototype,t.$a=e.prototype,t.prototype=new n,t.prototype.constructor=t}function S(t,e,n){this.code=k+t,this.message=e||P[t]||"",this.a=n||null}function T(t){var e=t&&t.code;return e?new S(e.substring(k.length),t.message,t.serverResponse):null}O(S,Error),S.prototype.w=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},S.prototype.toJSON=function(){return this.w()};var D,k="auth/",P={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},E={kd:{Sa:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},rd:{Sa:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://securetoken.googleapis.com/v1/token",Va:"https://identitytoolkit.googleapis.com/v2/",id:"p"},td:{Sa:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},ud:{Sa:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ya:"https://test-securetoken.sandbox.googleapis.com/v1/token",Va:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function A(t){for(var e in E)if(E[e].id===t)return{firebaseEndpoint:(t=E[e]).Sa,secureTokenEndpoint:t.Ya,identityPlatformEndpoint:t.Va};return null}function I(t){if(!t)return!1;try{return!!t.$goog_Thenable}catch(e){return!1}}function M(t){if(Error.captureStackTrace)Error.captureStackTrace(this,M);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function U(t,e){for(var n="",i=(t=t.split("%s")).length-1,r=0;r<i;r++)n+=t[r]+(r<e.length?e[r]:"%s");M.call(this,n+t[i])}function L(t,e){throw new U("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function R(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function N(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function F(){this.b=this.a=null}D=A("__EID__")?"__EID__":void 0,O(M,Error),M.prototype.name="CustomError",O(U,M),U.prototype.name="AssertionError",R.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var V=new R((function(){return new B}),(function(t){t.reset()}));function j(){var t=ge,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function B(){this.next=this.b=this.a=null}F.prototype.add=function(t,e){var n=V.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},B.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},B.prototype.reset=function(){this.next=this.b=this.a=null};var z=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},q=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var i=t.length,r="string"==typeof t?t.split(""):t,o=0;o<i;o++)o in r&&e.call(n,r[o],o,t)},H=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=[],r=0,o="string"==typeof t?t.split(""):t,s=0;s<n;s++)if(s in o){var a=o[s];e.call(void 0,a,s,t)&&(i[r++]=a)}return i},G=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,i=Array(n),r="string"==typeof t?t.split(""):t,o=0;o<n;o++)o in r&&(i[o]=e.call(void 0,r[o],o,t));return i},J=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t))return!0;return!1};function Y(t,e){return 0<=z(t,e)}function $(t,e){var n;return(n=0<=(e=z(t,e)))&&Array.prototype.splice.call(t,e,1),n}function W(t,e){!function(t,e){for(var n="string"==typeof t?t.split(""):t,i=t.length-1;0<=i;--i)i in n&&e.call(void 0,n[i],i,t)}(t,(function(n,i){e.call(void 0,n,i,t)&&Array.prototype.splice.call(t,i,1)}))}function K(t){return Array.prototype.concat.apply([],arguments)}function Q(t){var e=t.length;if(0<e){for(var n=Array(e),i=0;i<e;i++)n[i]=t[i];return n}return[]}var X,Z=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},tt=/&/g,et=/</g,nt=/>/g,it=/"/g,rt=/'/g,ot=/\x00/g,st=/[\x00&<>"']/;function at(t,e){return-1!=t.indexOf(e)}function ct(t,e){return t<e?-1:t>e?1:0}t:{var lt=c.navigator;if(lt){var ut=lt.userAgent;if(ut){X=ut;break t}}X=""}function dt(t){return at(X,t)}function ht(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function pt(t){for(var e in t)return!1;return!0}function mt(t){var e,n={};for(e in t)n[e]=t[e];return n}var ft="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function bt(t,e){for(var n,i,r=1;r<arguments.length;r++){for(n in i=arguments[r])t[n]=i[n];for(var o=0;o<ft.length;o++)n=ft[o],Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}}function gt(t,e){t:{try{var n=t&&t.ownerDocument,i=n&&(n.defaultView||n.parentWindow);if((i=i||c).Element&&i.Location){var r=i;break t}}catch(s){}r=null}if(r&&void 0!==r[e]&&(!t||!(t instanceof r[e])&&(t instanceof r.Location||t instanceof r.Element))){if(f(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(s){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;L("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function _t(t,e){this.a=t===wt&&e||"",this.b=yt}function vt(t){return t instanceof _t&&t.constructor===_t&&t.b===yt?t.a:(L("expected object of type Const, got '"+t+"'"),"type_error:Const")}_t.prototype.sa=!0,_t.prototype.ra=function(){return this.a},_t.prototype.toString=function(){return"Const{"+this.a+"}"};var yt={},wt={},Ct=new _t(wt,"");function xt(t,e){this.a=t===Pt&&e||"",this.b=kt}function Ot(t){return t instanceof xt&&t.constructor===xt&&t.b===kt?t.a:(L("expected object of type TrustedResourceUrl, got '"+t+"' of type "+h(t)),"type_error:TrustedResourceUrl")}function St(t,e){var n=vt(t);if(!Dt.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(Tt,(function(t,i){if(!Object.prototype.hasOwnProperty.call(e,i))throw Error('Found marker, "'+i+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[i])instanceof _t?vt(t):encodeURIComponent(String(t))})),new xt(Pt,t)}xt.prototype.sa=!0,xt.prototype.ra=function(){return this.a.toString()},xt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Tt=/%{(\w+)}/g,Dt=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,kt={},Pt={};function Et(t,e){this.a=t===Lt&&e||"",this.b=Ut}function At(t){return t instanceof Et&&t.constructor===Et&&t.b===Ut?t.a:(L("expected object of type SafeUrl, got '"+t+"' of type "+h(t)),"type_error:SafeUrl")}Et.prototype.sa=!0,Et.prototype.ra=function(){return this.a.toString()},Et.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var It=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Mt(t){return t instanceof Et?t:(t="object"==typeof t&&t.sa?t.ra():String(t),It.test(t)||(t="about:invalid#zClosurez"),new Et(Lt,t))}var Ut={},Lt={};function Rt(){this.a="",this.b=Ft}function Nt(t){return t instanceof Rt&&t.constructor===Rt&&t.b===Ft?t.a:(L("expected object of type SafeHtml, got '"+t+"' of type "+h(t)),"type_error:SafeHtml")}Rt.prototype.sa=!0,Rt.prototype.ra=function(){return this.a.toString()},Rt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ft={};function Vt(t){var e=new Rt;return e.a=t,e}Vt("<!DOCTYPE html>");var jt=Vt("");function Bt(t,e){for(var n=t.split("%s"),i="",r=Array.prototype.slice.call(arguments,1);r.length&&1<n.length;)i+=n.shift()+r.shift();return i+n.join("%s")}function zt(t){return st.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(tt,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(et,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(nt,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(it,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(rt,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(ot,"&#0;"))),t}function qt(t){return qt[" "](t),t}Vt("<br>"),qt[" "]=d;var Ht,Gt,Jt=dt("Opera"),Yt=dt("Trident")||dt("MSIE"),$t=dt("Edge"),Wt=$t||Yt,Kt=dt("Gecko")&&!(at(X.toLowerCase(),"webkit")&&!dt("Edge"))&&!(dt("Trident")||dt("MSIE"))&&!dt("Edge"),Qt=at(X.toLowerCase(),"webkit")&&!dt("Edge");function Xt(){var t=c.document;return t?t.documentMode:void 0}t:{var Zt="",te=(Gt=X,Kt?/rv:([^\);]+)(\)|;)/.exec(Gt):$t?/Edge\/([\d\.]+)/.exec(Gt):Yt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Gt):Qt?/WebKit\/(\S+)/.exec(Gt):Jt?/(?:Version)[ \/]?(\S+)/.exec(Gt):void 0);if(te&&(Zt=te?te[1]:""),Yt){var ee=Xt();if(null!=ee&&ee>parseFloat(Zt)){Ht=String(ee);break t}}Ht=Zt}var ne,ie={};function re(t){return function(t,e){var n=ie;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=Z(String(Ht)).split("."),i=Z(String(t)).split("."),r=Math.max(n.length,i.length),o=0;0==e&&o<r;o++){var s=n[o]||"",a=i[o]||"";do{if(s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],0==s[0].length&&0==a[0].length)break;e=ct(0==s[1].length?0:parseInt(s[1],10),0==a[1].length?0:parseInt(a[1],10))||ct(0==s[2].length,0==a[2].length)||ct(s[2],a[2]),s=s[3],a=a[3]}while(0==e)}return 0<=e}))}ne=c.document&&Yt?Xt():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(Gt){}var oe=!Yt||9<=Number(ne);function se(t){var e=document;return"string"==typeof t?e.getElementById(t):t}function ae(t,e){ht(e,(function(e,n){e&&"object"==typeof e&&e.sa&&(e=e.ra()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:ue.hasOwnProperty(n)?t.setAttribute(ue[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e}))}var ce,le,ue={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function de(t,e,n){function i(n){n&&e.appendChild("string"==typeof n?t.createTextNode(n):n)}for(var r=2;r<n.length;r++){var o=n[r];!p(o)||f(o)&&0<o.nodeType?i(o):q(pe(o)?Q(o):o,i)}}function he(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function pe(t){if(t&&"number"==typeof t.length){if(f(t))return"function"==typeof t.item||"string"==typeof t.item;if(m(t))return"function"==typeof t.item}return!1}function me(t){c.setTimeout((function(){throw t}),0)}function fe(t,e){le||function(){if(c.Promise&&c.Promise.resolve){var t=c.Promise.resolve(void 0);le=function(){t.then(_e)}}else le=function(){var t=_e;!m(c.setImmediate)||c.Window&&c.Window.prototype&&!dt("Edge")&&c.Window.prototype.setImmediate==c.setImmediate?(ce||(ce=function(){var t=c.MessageChannel;if(void 0===t&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!dt("Presto")&&(t=function(){var t=he(document,"IFRAME");t.style.display="none",function(t){var e=new xt(Pt,vt(Ct));gt(t,"HTMLIFrameElement"),t.src=Ot(e).toString()}(t),document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(Nt(jt)),t.close();var n="callImmediate"+Math.random(),i="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=w((function(t){"*"!=i&&t.origin!=i||t.data!=n||this.port1.onmessage()}),this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,i)}}}),void 0!==t&&!dt("Trident")&&!dt("MSIE")){var e=new t,n={},i=n;return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).Fb;n.Fb=null,t()}},function(t){i.next={Fb:t},i=i.next,e.port2.postMessage(0)}}return function(t){c.setTimeout(t,0)}}()),ce(t)):c.setImmediate(t)}}(),be||(le(),be=!0),ge.add(t,e)}var be=!1,ge=new F;function _e(){for(var t;t=j();){try{t.a.call(t.b)}catch(e){me(e)}N(V,t)}be=!1}function ve(t,e){if(this.a=ye,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=d)try{var n=this;t.call(e,(function(t){Ie(n,we,t)}),(function(t){if(!(t instanceof Ve))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}Ie(n,Ce,t)}))}catch(i){Ie(this,Ce,i)}}var ye=0,we=2,Ce=3;function xe(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}xe.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Oe=new R((function(){return new xe}),(function(t){t.reset()}));function Se(t,e,n){var i=Oe.get();return i.g=t,i.b=e,i.f=n,i}function Te(t){if(t instanceof ve)return t;var e=new ve(d);return Ie(e,we,t),e}function De(t){return new ve((function(e,n){n(t)}))}function ke(t,e,n){Me(t,e,n,null)||fe(C(e,t))}function Pe(t){return new ve((function(e){var n=t.length,i=[];if(n)for(var r=function(t,r,o){n--,i[t]=r?{Ob:!0,value:o}:{Ob:!1,reason:o},0==n&&e(i)},o=0;o<t.length;o++)ke(t[o],C(r,o,!0),C(r,o,!1));else e(i)}))}function Ee(t,e){t.b||t.a!=we&&t.a!=Ce||Ue(t),t.f?t.f.next=e:t.b=e,t.f=e}function Ae(t,e,n,i){var r=Se(null,null,null);return r.a=new ve((function(t,o){r.g=e?function(n){try{var r=e.call(i,n);t(r)}catch(s){o(s)}}:t,r.b=n?function(e){try{var r=n.call(i,e);void 0===r&&e instanceof Ve?o(e):t(r)}catch(s){o(s)}}:o})),r.a.c=t,Ee(t,r),r.a}function Ie(t,e,n){t.a==ye&&(t===n&&(e=Ce,n=new TypeError("Promise cannot resolve to itself")),t.a=1,Me(n,t.Zc,t.$c,t)||(t.i=n,t.a=e,t.c=null,Ue(t),e!=Ce||n instanceof Ve||function(t,e){t.g=!0,fe((function(){t.g&&Fe.call(null,e)}))}(t,n)))}function Me(t,e,n,i){if(t instanceof ve)return Ee(t,Se(e||d,n||null,i)),!0;if(I(t))return t.then(e,n,i),!0;if(f(t))try{var r=t.then;if(m(r))return function(t,e,n,i,r){function o(t){s||(s=!0,i.call(r,t))}var s=!1;try{e.call(t,(function(t){s||(s=!0,n.call(r,t))}),o)}catch(a){o(a)}}(t,r,e,n,i),!0}catch(o){return n.call(i,o),!0}return!1}function Ue(t){t.h||(t.h=!0,fe(t.fc,t))}function Le(t){var e=null;return t.b&&(t.b=(e=t.b).next,e.next=null),t.b||(t.f=null),e}function Re(t,e,n,i){if(n==Ce&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,Ne(e,n,i);else try{e.c?e.g.call(e.f):Ne(e,n,i)}catch(r){Fe.call(null,r)}N(Oe,e)}function Ne(t,e,n){e==we?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}ve.prototype.then=function(t,e,n){return Ae(this,m(t)?t:null,m(e)?e:null,n)},ve.prototype.$goog_Thenable=!0,(t=ve.prototype).na=function(t,e){return(t=Se(t,t,e)).c=!0,Ee(this,t),this},t.s=function(t,e){return Ae(this,null,t,e)},t.cancel=function(t){if(this.a==ye){var e=new Ve(t);fe((function(){!function t(e,n){if(e.a==ye)if(e.c){var i=e.c;if(i.b){for(var r=0,o=null,s=null,a=i.b;a&&(a.c||(r++,a.a==e&&(o=a),!(o&&1<r)));a=a.next)o||(s=a);o&&(i.a==ye&&1==r?t(i,n):(s?((r=s).next==i.f&&(i.f=r),r.next=r.next.next):Le(i),Re(i,o,Ce,n)))}e.c=null}else Ie(e,Ce,n)}(this,e)}),this)}},t.Zc=function(t){this.a=ye,Ie(this,we,t)},t.$c=function(t){this.a=ye,Ie(this,Ce,t)},t.fc=function(){for(var t;t=Le(this);)Re(this,t,this.a,this.i);this.h=!1};var Fe=me;function Ve(t){M.call(this,t)}function je(){0!=Be&&(ze[b(this)]=this),this.xa=this.xa,this.oa=this.oa}O(Ve,M),Ve.prototype.name="cancel";var Be=0,ze={};function qe(t){if(!t.xa&&(t.xa=!0,t.Da(),0!=Be)){var e=b(t);if(0!=Be&&t.oa&&0<t.oa.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete ze[e]}}je.prototype.xa=!1,je.prototype.Da=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()};var He=Object.freeze||function(t){return t},Ge=!Yt||9<=Number(ne),Je=Yt&&!re("9"),Ye=function(){if(!c.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{c.addEventListener("test",d,e),c.removeEventListener("test",d,e)}catch(n){}return t}();function $e(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function We(t,e){if($e.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var n=this.type=t.type,i=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if(Kt){t:{try{qt(e.nodeName);var r=!0;break t}catch(o){}r=!1}r||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:Ke[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}$e.prototype.preventDefault=function(){this.defaultPrevented=!0},O(We,$e);var Ke=He({2:"touch",3:"pen",4:"mouse"});We.prototype.preventDefault=function(){We.$a.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Je)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},We.prototype.g=function(){return this.a};var Qe="closure_listenable_"+(1e6*Math.random()|0),Xe=0;function Ze(t,e,n,i,r){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!i,this.Ua=r,this.key=++Xe,this.va=this.Oa=!1}function tn(t){t.va=!0,t.listener=null,t.proxy=null,t.src=null,t.Ua=null}function en(t){this.src=t,this.a={},this.b=0}function nn(t,e){var n=e.type;n in t.a&&$(t.a[n],e)&&(tn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function rn(t,e,n,i){for(var r=0;r<t.length;++r){var o=t[r];if(!o.va&&o.listener==e&&o.capture==!!n&&o.Ua==i)return r}return-1}en.prototype.add=function(t,e,n,i,r){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var s=rn(t,e,i,r);return-1<s?(e=t[s],n||(e.Oa=!1)):((e=new Ze(e,this.src,o,!!i,r)).Oa=n,t.push(e)),e};var on="closure_lm_"+(1e6*Math.random()|0),sn={};function an(t,e,n,i,r){if(i&&i.once)ln(t,e,n,i,r);else if(Array.isArray(e))for(var o=0;o<e.length;o++)an(t,e[o],n,i,r);else n=_n(n),t&&t[Qe]?yn(t,e,n,f(i)?!!i.capture:!!i,r):cn(t,e,n,!1,i,r)}function cn(t,e,n,i,r,o){if(!e)throw Error("Invalid event type");var s=f(r)?!!r.capture:!!r,a=bn(t);if(a||(t[on]=a=new en(t)),!(n=a.add(e,n,i,s,o)).proxy)if(i=function(){var t=fn,e=Ge?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=i,i.src=t,i.listener=n,t.addEventListener)Ye||(r=s),void 0===r&&(r=!1),t.addEventListener(e.toString(),i,r);else if(t.attachEvent)t.attachEvent(hn(e.toString()),i);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(i)}}function ln(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)ln(t,e[o],n,i,r);else n=_n(n),t&&t[Qe]?wn(t,e,n,f(i)?!!i.capture:!!i,r):cn(t,e,n,!0,i,r)}function un(t,e,n,i,r){if(Array.isArray(e))for(var o=0;o<e.length;o++)un(t,e[o],n,i,r);else i=f(i)?!!i.capture:!!i,n=_n(n),t&&t[Qe]?(t=t.v,(e=String(e).toString())in t.a&&-1<(n=rn(o=t.a[e],n,i,r))&&(tn(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--))):t&&(t=bn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=rn(e,n,i,r)),(n=-1<t?e[t]:null)&&dn(n))}function dn(t){if("number"!=typeof t&&t&&!t.va){var e=t.src;if(e&&e[Qe])nn(e.v,t);else{var n=t.type,i=t.proxy;e.removeEventListener?e.removeEventListener(n,i,t.capture):e.detachEvent?e.detachEvent(hn(n),i):e.addListener&&e.removeListener&&e.removeListener(i),(n=bn(e))?(nn(n,t),0==n.b&&(n.src=null,e[on]=null)):tn(t)}}}function hn(t){return t in sn?sn[t]:sn[t]="on"+t}function pn(t,e,n,i){var r=!0;if((t=bn(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.va&&(o=mn(o,i),r=r&&!1!==o)}return r}function mn(t,e){var n=t.listener,i=t.Ua||t.src;return t.Oa&&dn(t),n.call(i,e)}function fn(t,e){if(t.va)return!0;if(!Ge){if(!e)t:{e=["window","event"];for(var n=c,i=0;i<e.length;i++)if(null==(n=n[e[i]])){e=null;break t}e=n}if(e=new We(i=e,this),n=!0,!(0>i.keyCode||null!=i.returnValue)){t:{var r=!1;if(0==i.keyCode)try{i.keyCode=-1;break t}catch(s){r=!0}(r||null==i.returnValue)&&(i.returnValue=!0)}for(i=[],r=e.b;r;r=r.parentNode)i.push(r);for(t=t.type,r=i.length-1;0<=r;r--){e.b=i[r];var o=pn(i[r],t,!0,e);n=n&&o}for(r=0;r<i.length;r++)e.b=i[r],o=pn(i[r],t,!1,e),n=n&&o}return n}return mn(t,new We(e,this))}function bn(t){return(t=t[on])instanceof en?t:null}var gn="__closure_events_fn_"+(1e9*Math.random()>>>0);function _n(t){return m(t)?t:(t[gn]||(t[gn]=function(e){return t.handleEvent(e)}),t[gn])}function vn(){je.call(this),this.v=new en(this),this.$b=this,this.fb=null}function yn(t,e,n,i,r){t.v.add(String(e),n,!1,i,r)}function wn(t,e,n,i,r){t.v.add(String(e),n,!0,i,r)}function Cn(t,e,n,i){if(!(e=t.v.a[String(e)]))return!0;e=e.concat();for(var r=!0,o=0;o<e.length;++o){var s=e[o];if(s&&!s.va&&s.capture==n){var a=s.listener,c=s.Ua||s.src;s.Oa&&nn(t.v,s),r=!1!==a.call(c,i)&&r}}return r&&!i.defaultPrevented}function xn(t,e,n){if(m(t))n&&(t=w(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=w(t.handleEvent,t)}return 2147483647<Number(e)?-1:c.setTimeout(t,e||0)}function On(t){var e=null;return new ve((function(n,i){-1==(e=xn((function(){n(void 0)}),t))&&i(Error("Failed to schedule timer."))})).s((function(t){throw c.clearTimeout(e),t}))}function Sn(t){if(t.V&&"function"==typeof t.V)return t.V();if("string"==typeof t)return t.split("");if(p(t)){for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e}for(i in e=[],n=0,t)e[n++]=t[i];return e}function Tn(t){if(t.Y&&"function"==typeof t.Y)return t.Y();if(!t.V||"function"!=typeof t.V){if(p(t)||"string"==typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(var i in e=[],n=0,t)e[n++]=i;return e}}function Dn(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var i=0;i<n;i+=2)this.set(arguments[i],arguments[i+1])}else if(t)if(t instanceof Dn)for(n=t.Y(),i=0;i<n.length;i++)this.set(n[i],t.get(n[i]));else for(i in t)this.set(i,t[i])}function kn(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var i=t.a[e];Pn(t.b,i)&&(t.a[n++]=i),e++}t.a.length=n}if(t.c!=t.a.length){var r={};for(n=e=0;e<t.a.length;)Pn(r,i=t.a[e])||(t.a[n++]=i,r[i]=1),e++;t.a.length=n}}function Pn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}O(vn,je),vn.prototype[Qe]=!0,vn.prototype.addEventListener=function(t,e,n,i){an(this,t,e,n,i)},vn.prototype.removeEventListener=function(t,e,n,i){un(this,t,e,n,i)},vn.prototype.dispatchEvent=function(t){var e,n=this.fb;if(n)for(e=[];n;n=n.fb)e.push(n);n=this.$b;var i=t.type||t;if("string"==typeof t)t=new $e(t,n);else if(t instanceof $e)t.target=t.target||n;else{var r=t;bt(t=new $e(i,n),r)}if(r=!0,e)for(var o=e.length-1;0<=o;o--){var s=t.b=e[o];r=Cn(s,i,!0,t)&&r}if(r=Cn(s=t.b=n,i,!0,t)&&r,r=Cn(s,i,!1,t)&&r,e)for(o=0;o<e.length;o++)r=Cn(s=t.b=e[o],i,!1,t)&&r;return r},vn.prototype.Da=function(){if(vn.$a.Da.call(this),this.v){var t,e=this.v;for(t in e.a){for(var n=e.a[t],i=0;i<n.length;i++)tn(n[i]);delete e.a[t],e.b--}}this.fb=null},(t=Dn.prototype).V=function(){kn(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},t.Y=function(){return kn(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(t,e){return Pn(this.b,t)?this.b[t]:e},t.set=function(t,e){Pn(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},t.forEach=function(t,e){for(var n=this.Y(),i=0;i<n.length;i++){var r=n[i],o=this.get(r);t.call(e,o,r,this)}};var En=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function An(t,e){var n;this.a=this.l=this.f="",this.g=null,this.h=this.c="",this.i=!1,t instanceof An?(this.i=void 0!==e?e:t.i,In(this,t.f),this.l=t.l,this.a=t.a,Mn(this,t.g),this.c=t.c,Un(this,Zn(t.b)),this.h=t.h):t&&(n=String(t).match(En))?(this.i=!!e,In(this,n[1]||"",!0),this.l=Vn(n[2]||""),this.a=Vn(n[3]||"",!0),Mn(this,n[4]),this.c=Vn(n[5]||"",!0),Un(this,n[6]||"",!0),this.h=Vn(n[7]||"")):(this.i=!!e,this.b=new Yn(null,this.i))}function In(t,e,n){t.f=n?Vn(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Mn(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.g=e}else t.g=null}function Un(t,e,n){e instanceof Yn?(t.b=e,function(t,e){e&&!t.f&&($n(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Kn(this,e),Xn(this,n,t))}),t)),t.f=e}(t.b,t.i)):(n||(e=jn(e,Gn)),t.b=new Yn(e,t.i))}function Ln(t,e,n){t.b.set(e,n)}function Rn(t,e){return t.b.get(e)}function Nn(t){return t instanceof An?new An(t):new An(t,void 0)}function Fn(t,e,n,i){var r=new An(null,void 0);return t&&In(r,t),e&&(r.a=e),n&&Mn(r,n),i&&(r.c=i),r}function Vn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function jn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Bn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Bn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}An.prototype.toString=function(){var t=[],e=this.f;e&&t.push(jn(e,zn,!0),":");var n=this.a;return(n||"file"==e)&&(t.push("//"),(e=this.l)&&t.push(jn(e,zn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&t.push(":",String(n))),(n=this.c)&&(this.a&&"/"!=n.charAt(0)&&t.push("/"),t.push(jn(n,"/"==n.charAt(0)?Hn:qn,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.h)&&t.push("#",jn(n,Jn)),t.join("")},An.prototype.resolve=function(t){var e=new An(this),n=!!t.f;n?In(e,t.f):n=!!t.l,n?e.l=t.l:n=!!t.a,n?e.a=t.a:n=null!=t.g;var i=t.c;if(n)Mn(e,t.g);else if(n=!!t.c){if("/"!=i.charAt(0))if(this.a&&!this.c)i="/"+i;else{var r=e.c.lastIndexOf("/");-1!=r&&(i=e.c.substr(0,r+1)+i)}if(".."==(r=i)||"."==r)i="";else if(at(r,"./")||at(r,"/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],s=0;s<r.length;){var a=r[s++];"."==a?i&&s==r.length&&o.push(""):".."==a?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&s==r.length&&o.push("")):(o.push(a),i=!0)}i=o.join("/")}else i=r}return n?e.c=i:n=""!==t.b.toString(),n?Un(e,Zn(t.b)):n=!!t.h,n&&(e.h=t.h),e};var zn=/[#\/\?@]/g,qn=/[#\?:]/g,Hn=/[#\?]/g,Gn=/[#\?@]/g,Jn=/#/g;function Yn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function $n(t){t.a||(t.a=new Dn,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var o=t[n].substring(0,i);r=t[n].substring(i+1)}else o=t[n];e(o,r?decodeURIComponent(r.replace(/\+/g," ")):"")}}}(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function Wn(t){var e=Tn(t);if(void 0===e)throw Error("Keys are undefined");var n=new Yn(null,void 0);t=Sn(t);for(var i=0;i<e.length;i++){var r=e[i],o=t[i];Array.isArray(o)?Xn(n,r,o):n.add(r,o)}return n}function Kn(t,e){$n(t),e=ti(t,e),Pn(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Pn((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&kn(t)))}function Qn(t,e){return $n(t),e=ti(t,e),Pn(t.a.b,e)}function Xn(t,e,n){Kn(t,e),0<n.length&&(t.c=null,t.a.set(ti(t,e),Q(n)),t.b+=n.length)}function Zn(t){var e=new Yn;return e.c=t.c,t.a&&(e.a=new Dn(t.a),e.b=t.b),e}function ti(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function ei(t){var e=[];return function t(e,n,i){if(null==n)i.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var r=n;n=r.length,i.push("[");for(var o="",s=0;s<n;s++)i.push(o),t(e,r[s],i),o=",";return void i.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(r in i.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,r)&&"function"!=typeof(s=n[r])&&(i.push(o),oi(r,i),i.push(":"),t(e,s,i),o=",");return void i.push("}")}n=n.valueOf()}switch(typeof n){case"string":oi(n,i);break;case"number":i.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":i.push(String(n));break;case"function":i.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new ni,t,e),e.join("")}function ni(){}(t=Yn.prototype).add=function(t,e){$n(this),this.c=null,t=ti(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(t,e){$n(this),this.a.forEach((function(n,i){q(n,(function(n){t.call(e,n,i,this)}),this)}),this)},t.Y=function(){$n(this);for(var t=this.a.V(),e=this.a.Y(),n=[],i=0;i<e.length;i++)for(var r=t[i],o=0;o<r.length;o++)n.push(e[i]);return n},t.V=function(t){$n(this);var e=[];if("string"==typeof t)Qn(this,t)&&(e=K(e,this.a.get(ti(this,t))));else{t=this.a.V();for(var n=0;n<t.length;n++)e=K(e,t[n])}return e},t.set=function(t,e){return $n(this),this.c=null,Qn(this,t=ti(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},t.get=function(t,e){return t&&0<(t=this.V(t)).length?String(t[0]):e},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.Y(),n=0;n<e.length;n++){var i=e[n],r=encodeURIComponent(String(i));i=this.V(i);for(var o=0;o<i.length;o++){var s=r;""!==i[o]&&(s+="="+encodeURIComponent(String(i[o]))),t.push(s)}}return this.c=t.join("&")};var ii={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ri=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function oi(t,e){e.push('"',t.replace(ri,(function(t){var e=ii[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),ii[t]=e),e})),'"')}function si(){var t=Oi();return Yt&&!!ne&&11==ne||/Edge\/\d+/.test(t)}function ai(){return c.window&&c.window.location.href||self&&self.location&&self.location.href||""}function ci(t,e){e=e||c.window;var n="about:blank";t&&(n=At(Mt(t))),e.location.href=n}function li(t){return!!((t=(t||Oi()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function ui(t){t=t||c.window;try{t.close()}catch(e){}}function di(t,e,n){var i=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;var r=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-e)/2;for(s in e={width:e,height:n,top:0<r?r:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Oi().toLowerCase(),i&&(e.target=i,at(n,"crios/")&&(e.target="_blank")),wi(Oi())==yi&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),i=window,e=n instanceof Et?n:Mt(void 0!==n.href?n.href:String(n)),n=t.target||n.target,r=[],t)switch(s){case"width":case"height":case"top":case"left":r.push(s+"="+t[s]);break;case"target":case"noopener":case"noreferrer":break;default:r.push(s+"="+(t[s]?1:0))}var s=r.join(",");if((dt("iPhone")&&!dt("iPod")&&!dt("iPad")||dt("iPad")||dt("iPod"))&&i.navigator&&i.navigator.standalone&&n&&"_self"!=n?(gt(s=he(document,"A"),"HTMLAnchorElement"),e instanceof Et||e instanceof Et||(e="object"==typeof e&&e.sa?e.ra():String(e),It.test(e)||(e="about:invalid#zClosurez"),e=new Et(Lt,e)),s.href=At(e),s.setAttribute("target",n),t.noreferrer&&s.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,i,1),s.dispatchEvent(t),s={}):t.noreferrer?(s=i.open("",n,s),t=At(e),s&&(Wt&&at(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),s.opener=null,t=Vt('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+zt(t)+'">'),i=s.document)&&(i.write(Nt(t)),i.close())):(s=i.open(At(e),n,s))&&t.noopener&&(s.opener=null),s)try{s.focus()}catch(a){}return s}var hi=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,pi=/^[^@]+@[^@]+$/;function mi(){var t=null;return new ve((function(e){"complete"==c.document.readyState?e():(t=function(){e()},ln(window,"load",t))})).s((function(e){throw un(window,"load",t),e}))}function fi(t){return t=t||Oi(),!("file:"!==Pi()&&"ionic:"!==Pi()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function bi(){var t=c.window;try{return!(!t||t==t.top)}catch(e){return!1}}function gi(){return void 0!==c.WorkerGlobalScope&&"function"==typeof c.importScripts}function _i(){return e.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":e.INTERNAL.hasOwnProperty("node")?"Node":gi()?"Worker":"Browser"}function vi(){var t=_i();return"ReactNative"===t||"Node"===t}var yi="Firefox";function wi(t){var e=t.toLowerCase();return at(e,"opera/")||at(e,"opr/")||at(e,"opios/")?"Opera":at(e,"iemobile")?"IEMobile":at(e,"msie")||at(e,"trident/")?"IE":at(e,"edge/")?"Edge":at(e,"firefox/")?yi:at(e,"silk/")?"Silk":at(e,"blackberry")?"Blackberry":at(e,"webos")?"Webos":!at(e,"safari/")||at(e,"chrome/")||at(e,"crios/")||at(e,"android")?!at(e,"chrome/")&&!at(e,"crios/")||at(e,"edge/")?at(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":"Chrome":"Safari"}var Ci={ld:"FirebaseCore-web",nd:"FirebaseUI-web"};function xi(t,e){e=e||[];var n,i=[],r={};for(n in Ci)r[Ci[n]]=!0;for(n=0;n<e.length;n++)void 0!==r[e[n]]&&(delete r[e[n]],i.push(e[n]));return i.sort(),(e=i).length||(e=["FirebaseCore-web"]),"Browser"===(i=_i())?i=wi(r=Oi()):"Worker"===i&&(i=wi(r=Oi())+"-"+i),i+"/JsCore/"+t+"/"+e.join(",")}function Oi(){return c.navigator&&c.navigator.userAgent||""}function Si(t,e){t=t.split("."),e=e||c;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function Ti(){try{var t=c.localStorage,e=Ui();if(t)return t.setItem(e,"1"),t.removeItem(e),!si()||!!c.indexedDB}catch(n){return gi()&&!!c.indexedDB}return!1}function Di(){return(ki()||"chrome-extension:"===Pi()||fi())&&!vi()&&Ti()&&!gi()}function ki(){return"http:"===Pi()||"https:"===Pi()}function Pi(){return c.location&&c.location.protocol||null}function Ei(t){return!li(t=t||Oi())&&wi(t)!=yi}function Ai(t){return void 0===t?null:ei(t)}function Ii(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!=t[e]&&(n[e]=t[e]);return n}function Mi(t){if(null!==t)return JSON.parse(t)}function Ui(t){return t||Math.floor(1e9*Math.random()).toString()}function Li(t){return"Safari"!=wi(t=t||Oi())&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function Ri(){var t=c.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function Ni(t,e){if(t>e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Oi(),e=_i(),this.b=li(t)||"ReactNative"===e}function Fi(){var t=c.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function Vi(t){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t)}function ji(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function Bi(){return!(!Si("fireauth.oauthhelper",c)&&!Si("fireauth.iframe",c))}Ni.prototype.get=function(){var t=c.navigator;return!t||"boolean"!=typeof t.onLine||!ki()&&"chrome-extension:"!==Pi()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var zi,qi={};function Hi(t){qi[t]||(qi[t]=!0,Vi(t))}try{var Gi={};Object.defineProperty(Gi,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Gi,"abcd",{configurable:!0,enumerable:!0,value:2}),zi=2==Gi.abcd}catch(Gt){zi=!1}function Ji(t,e,n){zi?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Yi(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Ji(t,n,e[n])}function $i(t){var e={};return Yi(e,t),e}function Wi(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Ji(e,n,Wi(t[n]));return e}function Ki(t){var e=t&&(t[er]?"phone":null);if(!(e&&t&&t[tr]))throw new S("internal-error","Internal assert: invalid MultiFactorInfo object");Ji(this,"uid",t[tr]),Ji(this,"displayName",t[Xi]||null);var n=null;t[Zi]&&(n=new Date(t[Zi]).toUTCString()),Ji(this,"enrollmentTime",n),Ji(this,"factorId",e)}function Qi(t){try{var e=new nr(t)}catch(n){e=null}return e}Ki.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Xi="displayName",Zi="enrolledAt",tr="mfaEnrollmentId",er="phoneInfo";function nr(t){Ki.call(this,t),Ji(this,"phoneNumber",t[er])}function ir(t){var e={},n=t[ar],i=t[lr],r=t[ur];if(t=Qi(t[cr]),!r||r!=or&&r!=sr&&!n||r==sr&&!i||r==rr&&!t)throw Error("Invalid checkActionCode response!");r==sr?(e[hr]=n||null,e[mr]=n||null,e[dr]=i):(e[hr]=i||null,e[mr]=i||null,e[dr]=n||null),e[pr]=t||null,Ji(this,br,r),Ji(this,fr,Wi(e))}O(nr,Ki),nr.prototype.w=function(){var t=nr.$a.w.call(this);return t.phoneNumber=this.phoneNumber,t};var rr="REVERT_SECOND_FACTOR_ADDITION",or="EMAIL_SIGNIN",sr="VERIFY_AND_CHANGE_EMAIL",ar="email",cr="mfaInfo",lr="newEmail",ur="requestType",dr="email",hr="fromEmail",pr="multiFactorInfo",mr="previousEmail",fr="data",br="operation";function gr(t){var e=Rn(t=Nn(t),_r)||null,n=Rn(t,vr)||null,i=Rn(t,Cr)||null;if(i=i&&Or[i]||null,!e||!n||!i)throw new S("argument-error",_r+", "+vr+"and "+Cr+" are required in a valid action code URL.");Yi(this,{apiKey:e,operation:i,code:n,continueUrl:Rn(t,yr)||null,languageCode:Rn(t,wr)||null,tenantId:Rn(t,xr)||null})}var _r="apiKey",vr="oobCode",yr="continueUrl",wr="languageCode",Cr="mode",xr="tenantId",Or={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:rr,signIn:or,verifyAndChangeEmail:sr,verifyEmail:"VERIFY_EMAIL"};function Sr(t){try{return new gr(t)}catch(e){return null}}function Tr(t){var e=t[Ar];if(void 0===e)throw new S("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new S("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Dr];if(n&&"object"==typeof n){e=n[Ur];var i=n[Ir];if(n=n[Mr],"string"==typeof e&&e.length){if(this.a=e,void 0!==i&&"boolean"!=typeof i)throw new S("argument-error",Ir+" property must be a boolean when specified.");if(this.g=!!i,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new S("argument-error",Mr+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new S("argument-error",Ur+" property must be a non empty string when specified.");if(void 0!==i||void 0!==n)throw new S("missing-android-pkg-name")}}else if(void 0!==n)throw new S("argument-error",Dr+" property must be a non null object when specified.");if(this.f=null,(e=t[Er])&&"object"==typeof e){if("string"==typeof(e=e[Lr])&&e.length)this.f=e;else if(void 0!==e)throw new S("argument-error",Lr+" property must be a non empty string when specified.")}else if(void 0!==e)throw new S("argument-error",Er+" property must be a non null object when specified.");if(void 0!==(e=t[Pr])&&"boolean"!=typeof e)throw new S("argument-error",Pr+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[kr])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new S("argument-error",kr+" property must be a non empty string when specified.");this.i=t||null}var Dr="android",kr="dynamicLinkDomain",Pr="handleCodeInApp",Er="iOS",Ar="url",Ir="installApp",Mr="minimumVersion",Ur="packageName",Lr="bundleId";function Rr(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Nr=null;function Fr(t){var e=jr(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,x(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function Vr(t){try{return new Fr(t)}catch(e){return null}}function jr(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n<e;n++)t+=".";try{return JSON.parse(function(t){var e="";return function(t,e){function n(e){for(;i<t.length;){var n=t.charAt(i++),r=Nr[n];if(null!=r)return r;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!Nr){Nr={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var i=t.concat(e[n].split("")),r=0;r<i.length;r++){var o=i[r];void 0===Nr[o]&&(Nr[o]=r)}}}();for(var i=0;;){var r=n(-1),o=n(0),s=n(64),a=n(64);if(64===a&&-1===r)break;e(r<<2|o>>4),64!=s&&(e(o<<4&240|s>>2),64!=a&&e(s<<6&192|a))}}(t,(function(t){e+=String.fromCharCode(t)})),e}(t))}catch(i){}return null}Fr.prototype.S=function(){return this.f},Fr.prototype.i=function(){return this.b},Fr.prototype.toString=function(){return this.g};var Br="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),zr=["client_id","response_type","scope","redirect_uri","state"],qr={md:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Wa:zr},od:{Ja:null,ua:500,ta:750,fa:"github.com",Wa:zr},pd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Wa:zr},vd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Wa:Br},jd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Wa:[]}};function Hr(t){for(var e in qr)if(qr[e].fa==t)return qr[e];return null}function Gr(t){var e={};e["facebook.com"]=Kr,e["google.com"]=Xr,e["github.com"]=Qr,e["twitter.com"]=Zr;var n=t&&t[Yr];try{if(n)return e[n]?new e[n](t):new Wr(t);if(void 0!==t[Jr])return new $r(t)}catch(i){}return null}var Jr="idToken",Yr="providerId";function $r(t){var e=t[Yr];if(!e&&t[Jr]){var n=Vr(t[Jr]);n&&n.a&&(e=n.a)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,void 0!==t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Ji(this,"providerId",e),Ji(this,"isNewUser",n)}function Wr(t){$r.call(this,t),Ji(this,"profile",Wi((t=Mi(t.rawUserInfo||"{}"))||{}))}function Kr(t){if(Wr.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Qr(t){if(Wr.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Ji(this,"username",this.profile&&this.profile.login||null)}function Xr(t){if(Wr.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Zr(t){if(Wr.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Ji(this,"username",t.screenName||null)}function to(t){var e=Nn(t),n=Rn(e,"link"),i=Rn(Nn(n),"link");return e=Rn(e,"deep_link_id"),Rn(Nn(e),"link")||e||i||n||t}function eo(t,e){if(!t&&!e)throw new S("internal-error","Internal assert: no raw session string available");if(t&&e)throw new S("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?no:io}O(Wr,$r),O(Kr,Wr),O(Qr,Wr),O(Xr,Wr),O(Zr,Wr);var no="enroll",io="signin";function ro(){}function oo(t,e){return t.then((function(t){if(t[Gs]){var n=Vr(t[Gs]);if(!n||e!=n.h)throw new S("user-mismatch");return t}throw new S("user-mismatch")})).s((function(t){throw t&&t.code&&t.code==k+"user-not-found"?new S("user-mismatch"):t}))}function so(t,e){if(!e)throw new S("internal-error","failed to construct a credential");this.a=e,Ji(this,"providerId",t),Ji(this,"signInMethod",t)}function ao(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function co(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new so(t.providerId,t.pendingToken)}catch(e){}return null}function lo(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Ji(this,"idToken",e.idToken),e.accessToken&&Ji(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Ji(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new S("internal-error","failed to construct a credential");Ji(this,"accessToken",e.oauthToken),Ji(this,"secret",e.oauthTokenSecret)}Ji(this,"providerId",t),Ji(this,"signInMethod",n)}function uo(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:Wn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function ho(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new lo(t.providerId,e,t.signInMethod)}catch(n){}}return null}function po(t,e){this.Pc=e||[],Yi(this,{providerId:t,isOAuthProvider:!0}),this.Hb={},this.ob=(Hr(t)||{}).Ja||null,this.nb=null}function mo(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new S("argument-error",'SAML provider IDs must be prefixed with "saml."');po.call(this,t,[])}function fo(t){po.call(this,t,zr),this.a=[]}function bo(){fo.call(this,"facebook.com")}function go(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return f(t)&&(e=t.accessToken),(new bo).credential({accessToken:e})}function _o(){fo.call(this,"github.com")}function vo(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return f(t)&&(e=t.accessToken),(new _o).credential({accessToken:e})}function yo(){fo.call(this,"google.com"),this.Ca("profile")}function wo(t,e){var n=t;return f(t)&&(n=t.idToken,e=t.accessToken),(new yo).credential({idToken:n,accessToken:e})}function Co(){po.call(this,"twitter.com",Br)}function xo(t,e){var n=t;if(f(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new S("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new lo("twitter.com",n,"twitter.com")}function Oo(t,e,n){this.a=t,this.f=e,Ji(this,"providerId","password"),Ji(this,"signInMethod",n===To.EMAIL_LINK_SIGN_IN_METHOD?To.EMAIL_LINK_SIGN_IN_METHOD:To.EMAIL_PASSWORD_SIGN_IN_METHOD)}function So(t){return t&&t.email&&t.password?new Oo(t.email,t.password,t.signInMethod):null}function To(){Yi(this,{providerId:"password",isOAuthProvider:!1})}function Do(t,e){if(!(e=ko(e)))throw new S("argument-error","Invalid email link!");return new Oo(t,e.code,To.EMAIL_LINK_SIGN_IN_METHOD)}function ko(t){return(t=Sr(t=to(t)))&&t.operation===or?t:null}function Po(t){if(!(t.cb&&t.bb||t.La&&t.ea))throw new S("internal-error");this.a=t,Ji(this,"providerId","phone"),this.fa="phone",Ji(this,"signInMethod","phone")}function Eo(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return q(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){t[n]&&(e[n]=t[n])})),new Po(e)}return null}function Ao(t){return t.a.La&&t.a.ea?{temporaryProof:t.a.La,phoneNumber:t.a.ea}:{sessionInfo:t.a.cb,code:t.a.bb}}function Io(t){try{this.a=t||e.auth()}catch(n){throw new S("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Yi(this,{providerId:"phone",isOAuthProvider:!1})}function Mo(t,e){if(!t)throw new S("missing-verification-id");if(!e)throw new S("missing-verification-code");return new Po({cb:t,bb:e})}function Uo(t){if(t.temporaryProof&&t.phoneNumber)return new Po({La:t.temporaryProof,ea:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,i=t&&t.oauthTokenSecret,r=t&&t.nonce,o=t&&t.oauthIdToken,s=t&&t.pendingToken;try{switch(e){case"google.com":return wo(o,n);case"facebook.com":return go(n);case"github.com":return vo(n);case"twitter.com":return xo(n,i);default:return n||i||o||s?s?0==e.indexOf("saml.")?new so(e,s):new lo(e,{pendingToken:s,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new fo(e).credential({idToken:o,accessToken:n,rawNonce:r}):null}}catch(a){return null}}function Lo(t){if(!t.isOAuthProvider)throw new S("invalid-oauth-provider")}function Ro(t,e,n,i,r,o,s){if(this.c=t,this.b=e||null,this.g=n||null,this.f=i||null,this.i=o||null,this.h=s||null,this.a=r||null,!this.g&&!this.a)throw new S("invalid-auth-event");if(this.g&&this.a)throw new S("invalid-auth-event");if(this.g&&!this.f)throw new S("invalid-auth-event")}function No(t){return(t=t||{}).type?new Ro(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&T(t.error),t.postBody,t.tenantId):null}function Fo(){this.b=null,this.a=[]}eo.prototype.Ha=function(){return Te(this.a?this.a:this.b)},eo.prototype.w=function(){return this.type==no?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},ro.prototype.ja=function(){},ro.prototype.b=function(){},ro.prototype.c=function(){},ro.prototype.w=function(){},so.prototype.ja=function(t){return ha(t,ao(this))},so.prototype.b=function(t,e){var n=ao(this);return n.idToken=e,pa(t,n)},so.prototype.c=function(t,e){return oo(ma(t,ao(this)),e)},so.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},lo.prototype.ja=function(t){return ha(t,uo(this))},lo.prototype.b=function(t,e){var n=uo(this);return n.idToken=e,pa(t,n)},lo.prototype.c=function(t,e){return oo(ma(t,uo(this)),e)},lo.prototype.w=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},po.prototype.Ka=function(t){return this.Hb=mt(t),this},O(mo,po),O(fo,po),fo.prototype.Ca=function(t){return Y(this.a,t)||this.a.push(t),this},fo.prototype.Pb=function(){return Q(this.a)},fo.prototype.credential=function(t,e){var n;if(!(n=f(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new S("argument-error","credential failed: must provide the ID token and/or the access token.");return new lo(this.providerId,n,this.providerId)},O(bo,fo),Ji(bo,"PROVIDER_ID","facebook.com"),Ji(bo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),O(_o,fo),Ji(_o,"PROVIDER_ID","github.com"),Ji(_o,"GITHUB_SIGN_IN_METHOD","github.com"),O(yo,fo),Ji(yo,"PROVIDER_ID","google.com"),Ji(yo,"GOOGLE_SIGN_IN_METHOD","google.com"),O(Co,po),Ji(Co,"PROVIDER_ID","twitter.com"),Ji(Co,"TWITTER_SIGN_IN_METHOD","twitter.com"),Oo.prototype.ja=function(t){return this.signInMethod==To.EMAIL_LINK_SIGN_IN_METHOD?Wa(t,Ca,{email:this.a,oobCode:this.f}):Wa(t,Ha,{email:this.a,password:this.f})},Oo.prototype.b=function(t,e){return this.signInMethod==To.EMAIL_LINK_SIGN_IN_METHOD?Wa(t,xa,{idToken:e,email:this.a,oobCode:this.f}):Wa(t,Ra,{idToken:e,email:this.a,password:this.f})},Oo.prototype.c=function(t,e){return oo(this.ja(t),e)},Oo.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Yi(To,{PROVIDER_ID:"password"}),Yi(To,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Yi(To,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Po.prototype.ja=function(t){return t.eb(Ao(this))},Po.prototype.b=function(t,e){var n=Ao(this);return n.idToken=e,Wa(t,Ja,n)},Po.prototype.c=function(t,e){var n=Ao(this);return n.operation="REAUTH",oo(t=Wa(t,Ya,n),e)},Po.prototype.w=function(){var t={providerId:"phone"};return this.a.cb&&(t.verificationId=this.a.cb),this.a.bb&&(t.verificationCode=this.a.bb),this.a.La&&(t.temporaryProof=this.a.La),this.a.ea&&(t.phoneNumber=this.a.ea),t},Io.prototype.eb=function(t,e){var n=this.a.a;return Te(e.verify()).then((function(i){if("string"!=typeof i)throw new S("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var r=f(t)?t.session:null,o=f(t)?t.phoneNumber:t;return(r&&r.type==no?r.Ha().then((function(t){return function(t,e){return Wa(t,Fa,e).then((function(t){return t.phoneSessionInfo.sessionInfo}))}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:i}})})):r&&r.type==io?r.Ha().then((function(e){return function(t,e){return Wa(t,Va,e).then((function(t){return t.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:i}})})):function(t,e){return Wa(t,Ua,e)}(n,{phoneNumber:o,recaptchaToken:i})).then((function(t){return"function"==typeof e.reset&&e.reset(),t}),(function(t){throw"function"==typeof e.reset&&e.reset(),t}));default:throw new S("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Yi(Io,{PROVIDER_ID:"phone"}),Yi(Io,{PHONE_SIGN_IN_METHOD:"phone"}),Ro.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Ro.prototype.S=function(){return this.h},Ro.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Vo,jo=null;function Bo(t){var e="unauthorized-domain",n=void 0,i=Nn(t);t=i.a,"chrome-extension"==(i=i.f)?n=Bt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==i||"https"==i?n=Bt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",S.call(this,e,n)}function zo(t,e,n){S.call(this,t,n),(t=e||{}).Ib&&Ji(this,"email",t.Ib),t.ea&&Ji(this,"phoneNumber",t.ea),t.credential&&Ji(this,"credential",t.credential),t.Yb&&Ji(this,"tenantId",t.Yb)}function qo(t){if(t.code){var e=t.code||"";0==e.indexOf(k)&&(e=e.substring(k.length));var n={credential:Uo(t),Yb:t.tenantId};if(t.email)n.Ib=t.email;else if(t.phoneNumber)n.ea=t.phoneNumber;else if(!n.credential)return new S(e,t.message||void 0);return new zo(e,n,t.message)}return null}function Ho(){}function Go(){}function Jo(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var i=e[n];try{return new ActiveXObject(i),t.f=i}catch(r){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function Yo(){}function $o(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=w(this.pc,this),this.a.onerror=w(this.Rb,this),this.a.onprogress=w(this.qc,this),this.a.ontimeout=w(this.uc,this)}function Wo(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Ko(t,e,n){this.reset(t,e,n,void 0,void 0)}function Qo(t){this.f=t,this.b=this.c=this.a=null}function Xo(t,e){this.name=t,this.value=e}O(Bo,S),O(zo,S),zo.prototype.w=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.w();return e&&bt(t,e),t},zo.prototype.toJSON=function(){return this.w()},Ho.prototype.c=null,O(Go,Ho),Go.prototype.a=function(){var t=Jo(this);return t?new ActiveXObject(t):new XMLHttpRequest},Go.prototype.b=function(){var t={};return Jo(this)&&(t[0]=!0,t[1]=!0),t},Vo=new Go,O(Yo,Ho),Yo.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new $o;throw Error("Unsupported browser")},Yo.prototype.b=function(){return{}},(t=$o.prototype).open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},t.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},t.pc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Wo(this,4)},t.Rb=function(){this.status=500,this.response=this.responseText="",Wo(this,4)},t.uc=function(){this.Rb()},t.qc=function(){this.status=200,Wo(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Ko.prototype.a=null,Ko.prototype.reset=function(t,e,n,i,r){i||x(),delete this.a},Xo.prototype.toString=function(){return this.name};var Zo=new Xo("SEVERE",1e3),ts=new Xo("WARNING",900),es=new Xo("CONFIG",700),ns=new Xo("FINE",500);Qo.prototype.log=function(t,e,n){if(t.value>=function t(e){return e.c?e.c:e.a?t(e.a):(L("Root logger has no level set."),null)}(this).value)for(m(e)&&(e=e()),t=new Ko(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var is={},rs=null;function os(t){var e;if(rs||(rs=new Qo(""),is[""]=rs,rs.c=es),!(e=is[t])){e=new Qo(t);var n=t.lastIndexOf("."),i=t.substr(n+1);(n=os(t.substr(0,n))).b||(n.b={}),n.b[i]=e,e.a=n,is[t]=e}return e}function ss(t,e){t&&t.log(ns,e,void 0)}function as(t){this.f=t}function cs(t){vn.call(this),this.o=t,this.readyState=ls,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=os("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}O(as,Ho),as.prototype.a=function(){return new cs(this.f)},as.prototype.b=function(t){return function(){return t}}({}),O(cs,vn);var ls=0;function us(t){t.c.read().then(t.oc.bind(t)).catch(t.Ta.bind(t))}function ds(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,hs(t)}function hs(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ps(t){vn.call(this),this.headers=new Dn,this.O=t||null,this.c=!1,this.A=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.G=!1,this.g=0,this.o=null,this.m=ms,this.u=this.R=!1}(t=cs.prototype).open=function(t,e){if(this.readyState!=ls)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,hs(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.m,credentials:void 0,cache:void 0};t&&(e.body=t),this.o.fetch(new Request(this.g,e)).then(this.tc.bind(this),this.Ta.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,ds(this,!1)),this.readyState=ls},t.tc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,hs(this)),this.a&&(this.readyState=3,hs(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.rc.bind(this),this.Ta.bind(this)):void 0!==c.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,us(this)):t.text().then(this.sc.bind(this),this.Ta.bind(this)))))},t.oc=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?ds(this,!0):hs(this),3==this.readyState&&us(this)}},t.sc=function(t){this.a&&(this.response=this.responseText=t,ds(this,!0))},t.rc=function(t){this.a&&(this.response=t,ds(this,!0))},t.Ta=function(t){var e=this.h;e&&e.log(ts,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&ds(this,!0)},t.setRequestHeader=function(t,e){this.i.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(ts,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(ts,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},O(ps,vn);var ms="";ps.prototype.b=os("goog.net.XhrIo");var fs=/^https?$/i,bs=["POST","PUT"];function gs(t){return"content-type"==t.toLowerCase()}function _s(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,vs(t),ws(t)}function vs(t){t.G||(t.G=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ys(t){if(t.c&&void 0!==a)if(t.A[1]&&4==xs(t)&&2==Os(t))ss(t.b,Ss(t,"Local request error detected and ignored"));else if(t.i&&4==xs(t))xn(t.Ub,0,t);else if(t.dispatchEvent("readystatechange"),4==xs(t)){ss(t.b,Ss(t,"Request complete")),t.c=!1;try{var e,n=Os(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var i=!0;break t;default:i=!1}if(!(e=i)){var r;if(r=0===n){var o=String(t.l).match(En)[1]||null;if(!o&&c.self&&c.self.location){var s=c.self.location.protocol;o=s.substr(0,s.length-1)}r=!fs.test(o?o.toLowerCase():"")}e=r}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var l=2<xs(t)?t.a.statusText:""}catch(u){ss(t.b,"Can not get status: "+u.message),l=""}t.h=l+" ["+Os(t)+"]",vs(t)}}finally{ws(t)}}}function ws(t,e){if(t.a){Cs(t);var n=t.a,i=t.A[0]?d:null;t.a=null,t.A=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=i}catch(r){(t=t.b)&&t.log(Zo,"Problem encountered resetting onreadystatechange: "+r.message,void 0)}}}function Cs(t){t.a&&t.u&&(t.a.ontimeout=null),t.o&&(c.clearTimeout(t.o),t.o=null)}function xs(t){return t.a?t.a.readyState:0}function Os(t){try{return 2<xs(t)?t.a.status:-1}catch(e){return-1}}function Ss(t,e){return e+" ["+t.P+" "+t.l+" "+Os(t)+"]"}function Ts(t){var e=Ns;this.g=[],this.u=e,this.o=t||null,this.f=this.a=!1,this.c=void 0,this.m=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}function Ds(t,e,n){t.a=!0,t.c=n,t.f=!e,As(t)}function ks(t){if(t.a){if(!t.m)throw new Is(t);t.m=!1}}function Ps(t,e,n,i){t.g.push([e,n,i]),t.a&&As(t)}function Es(t){return J(t.g,(function(t){return m(t[1])}))}function As(t){if(t.h&&t.a&&Es(t)){var e=t.h,n=Ls[e];n&&(c.clearTimeout(n.a),delete Ls[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var i=n=!1;t.g.length&&!t.i;){var r=t.g.shift(),o=r[0],s=r[1];if(r=r[2],o=t.f?s:o)try{var a=o.call(r||t.o,e);void 0!==a&&(t.f=t.f&&(a==e||a instanceof Error),t.c=e=a),(I(e)||"function"==typeof c.Promise&&e instanceof c.Promise)&&(i=!0,t.i=!0)}catch(l){e=l,t.f=!0,Es(t)||(n=!0)}}t.c=e,i&&(a=w(t.v,t,!0),i=w(t.v,t,!1),e instanceof Ts?(Ps(e,a,i),e.A=!0):e.then(a,i)),n&&(e=new Us(e),Ls[e.a]=e,t.h=e.a)}function Is(){M.call(this)}function Ms(){M.call(this)}function Us(t){this.a=c.setTimeout(w(this.c,this),0),this.b=t}(t=ps.prototype).Ma=function(){void 0!==a&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ss(this.b,Ss(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(ss(this.b,Ss(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ws(this))},t.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),ws(this,!0)),ps.$a.Da.call(this)},t.Ub=function(){this.xa||(this.N||this.i||this.f?ys(this):this.Ic())},t.Ic=function(){ys(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ms:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(Zo,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return ss(this.b,"Can not get response: "+e.message),null}},Ts.prototype.cancel=function(t){if(this.a)this.c instanceof Ts&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.l--,0>=e.l&&e.cancel())}this.u?this.u.call(this.o,this):this.m=!0,this.a||(t=new Ms(this),ks(this),Ds(this,!1,t))}},Ts.prototype.v=function(t,e){this.i=!1,Ds(this,t,e)},Ts.prototype.then=function(t,e,n){var i,r,o=new ve((function(t,e){i=t,r=e}));return Ps(this,i,(function(t){t instanceof Ms?o.cancel():r(t)})),o.then(t,e,n)},Ts.prototype.$goog_Thenable=!0,O(Is,M),Is.prototype.message="Deferred has already fired",Is.prototype.name="AlreadyCalledError",O(Ms,M),Ms.prototype.message="Deferred was canceled",Ms.prototype.name="CanceledError",Us.prototype.c=function(){throw delete Ls[this.a],this.b};var Ls={};function Rs(t){var e={},n=e.document||document,i=Ot(t).toString(),r=he(document,"SCRIPT"),o={Vb:r,Ma:void 0},s=new Ts(o),a=null,d=null!=e.timeout?e.timeout:5e3;return 0<d&&(a=window.setTimeout((function(){Fs(r,!0);var t=new Bs(js,"Timeout reached for loading script "+i);ks(s),Ds(s,!1,t)}),d),o.Ma=a),r.onload=r.onreadystatechange=function(){r.readyState&&"loaded"!=r.readyState&&"complete"!=r.readyState||(Fs(r,e.wd||!1,a),ks(s),Ds(s,!0,null))},r.onerror=function(){Fs(r,!0,a);var t=new Bs(Vs,"Error while loading script "+i);ks(s),Ds(s,!1,t)},bt(o=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),ae(r,o),function(t,e){gt(t,"HTMLScriptElement"),t.src=Ot(e),null===u&&(u=(e=(e=c.document).querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&l.test(e)?e:""),(e=u)&&t.setAttribute("nonce",e)}(r,t),function(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}(n).appendChild(r),s}function Ns(){if(this&&this.Vb){var t=this.Vb;t&&"SCRIPT"==t.tagName&&Fs(t,!0,this.Ma)}}function Fs(t,e,n){null!=n&&c.clearTimeout(n),t.onload=d,t.onerror=d,t.onreadystatechange=d,e&&window.setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),0)}var Vs=0,js=1;function Bs(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),M.call(this,n),this.code=t}function zs(t){this.f=t}function qs(t,n,i){if(this.c=t,this.l=(t=n||{}).secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.v=t.secureTokenTimeout||Js,this.g=mt(t.secureTokenHeaders||Ys),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.m=t.firebaseTimeout||$s,this.a=mt(t.firebaseHeaders||Ws),i&&(this.a["X-Client-Version"]=i,this.g["X-Client-Version"]=i),i="Node"==_i(),!(i=c.XMLHttpRequest||i&&e.INTERNAL.node&&e.INTERNAL.node.XMLHttpRequest)&&!gi())throw new S("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,this.f=gi()?new as(self):vi()?new zs(i):new Yo,this.b=null}O(Bs,M),O(zs,Ho),zs.prototype.a=function(){return new this.f},zs.prototype.b=function(){return{}};var Hs,Gs="idToken",Js=new Ni(3e4,6e4),Ys={"Content-Type":"application/x-www-form-urlencoded"},$s=new Ni(3e4,6e4),Ws={"Content-Type":"application/json"};function Ks(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function Qs(t,e){e&&(t.l=Xs("https://securetoken.googleapis.com/v1/token",e),t.h=Xs("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",e),t.i=Xs("https://identitytoolkit.googleapis.com/v2/",e))}function Xs(t,e){return t=Nn(t),e=Nn(e.url),t.c=t.a+t.c,In(t,e.f),t.a=e.a,Mn(t,e.g),t.toString()}function Zs(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function ta(t,e,n,i,r,o,s){(function(){var t=Oi();return!((t="Chrome"!=wi(t)?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t||Yt&&ne&&!(9<ne))})()||gi()?t=w(t.u,t):(Hs||(Hs=new ve((function(t,e){!function(t,e){((window.gapi||{}).client||{}).request?t():(c[na]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},function(t,e){Ps(t,null,e,void 0)}(Rs(St(ea,{onload:na})),(function(){e(Error("CORS_UNSUPPORTED"))})))}(t,e)}))),t=w(t.o,t)),t(e,n,i,r,o,s)}qs.prototype.S=function(){return this.b},qs.prototype.u=function(t,e,n,i,r,o){if(gi()&&(void 0===c.fetch||void 0===c.Headers||void 0===c.Request))throw new S("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var s=new ps(this.f);if(o){s.g=Math.max(0,o);var a=setTimeout((function(){s.dispatchEvent("timeout")}),o)}yn(s,"complete",(function(){a&&clearTimeout(a);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return ss(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(n){t=null}e&&e(t)})),wn(s,"ready",(function(){a&&clearTimeout(a),qe(this)})),wn(s,"timeout",(function(){a&&clearTimeout(a),qe(this),e&&e(null)})),function(t,e,n,i,r){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.P=n,t.G=!1,t.c=!0,t.a=t.O?t.O.a():Vo.a(),t.A=function(t){return t.c||(t.c=t.b())}(t.O?t.O:Vo),t.a.onreadystatechange=w(t.Ub,t);try{ss(t.b,Ss(t,"Opening Xhr")),t.N=!0,t.a.open(n,String(e),!0),t.N=!1}catch(s){return ss(t.b,Ss(t,"Error opening Xhr: "+s.message)),void _s(t,s)}e=i||"";var o=new Dn(t.headers);r&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(p(t)||"string"==typeof t)q(t,e,void 0);else for(var n=Tn(t),i=Sn(t),r=i.length,o=0;o<r;o++)e.call(void 0,i[o],n&&n[o],t)}(r,(function(t,e){o.set(e,t)})),r=function(t){t:{for(var e=gs,n=t.length,i="string"==typeof t?t.split(""):t,r=0;r<n;r++)if(r in i&&e.call(void 0,i[r],r,t)){e=r;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(o.Y()),i=c.FormData&&e instanceof c.FormData,!Y(bs,n)||r||i||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,e){this.a.setRequestHeader(e,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{Cs(t),0<t.g&&(t.u=function(t){return Yt&&re(9)&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(t.a),ss(t.b,Ss(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.u)),t.u?(t.a.timeout=t.g,t.a.ontimeout=w(t.Ma,t)):t.o=xn(t.Ma,t.g,t)),ss(t.b,Ss(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(s){ss(t.b,Ss(t,"Send error: "+s.message)),_s(t,s)}}(s,t,n,i,r)};var ea=new _t(wt,"https://apis.google.com/js/client.js?onload=%{onload}"),na="__fcb"+Math.floor(1e6*Math.random()).toString();function ia(t){if("string"!=typeof(t=t.email)||!pi.test(t))throw new S("invalid-email")}function ra(t){"email"in t&&ia(t)}function oa(t){if(!t[Gs]){if(t.mfaPendingCredential)throw new S("multi-factor-auth-required",null,mt(t));throw new S("internal-error")}}function sa(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new S("internal-error")}else{if(!t.sessionInfo)throw new S("missing-verification-id");if(!t.code)throw new S("missing-verification-code")}}qs.prototype.o=function(t,e,n,i,r){var o=this;Hs.then((function(){window.gapi.client.setApiKey(o.c);var s=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:i,headers:r,authType:"none",callback:function(t){window.gapi.auth.setToken(s),e&&e(t)}})})).s((function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})}))},qs.prototype.yb=function(){return Wa(this,Na,{})},qs.prototype.Ab=function(t,e){return Wa(this,La,{idToken:t,email:e})},qs.prototype.Bb=function(t,e){return Wa(this,Ra,{idToken:t,password:e})};var aa={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function ca(t){if(!t.phoneVerificationInfo)throw new S("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new S("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new S("missing-verification-code")}function la(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new S("internal-error")}function ua(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&Qn(t=new Yn(t.postBody),"nonce")&&(e.nonce=t.get("nonce"))),e}function da(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=qo(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=qo(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=qo(t)):t.errorMessage&&(e=Ka(t.errorMessage)),e)throw e;oa(t)}function ha(t,e){return e.returnIdpCredential=!0,Wa(t,ja,e)}function pa(t,e){return e.returnIdpCredential=!0,Wa(t,za,e)}function ma(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Wa(t,Ba,e)}function fa(t){if(!t.oobCode)throw new S("invalid-action-code")}(t=qs.prototype).Cb=function(t,e){var n={idToken:t},i=[];return ht(aa,(function(t,r){var o=e[r];null===o?i.push(t):r in e&&(n[r]=o)})),i.length&&(n.deleteAttribute=i),Wa(this,La,n)},t.ub=function(t,e){return bt(t={requestType:"PASSWORD_RESET",email:t},e),Wa(this,Ea,t)},t.vb=function(t,e){return bt(t={requestType:"EMAIL_SIGNIN",email:t},e),Wa(this,Da,t)},t.tb=function(t,e){return bt(t={requestType:"VERIFY_EMAIL",idToken:t},e),Wa(this,ka,t)},t.Db=function(t,e,n){return bt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Wa(this,Pa,t)},t.eb=function(t){return Wa(this,Ga,t)},t.mb=function(t,e){return Wa(this,Ma,{oobCode:t,newPassword:e})},t.Qa=function(t){return Wa(this,ga,{oobCode:t})},t.ib=function(t){return Wa(this,ba,{oobCode:t})};var ba={endpoint:"setAccountInfo",B:fa,Z:"email",C:!0},ga={endpoint:"resetPassword",B:fa,F:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new S("internal-error")},C:!0},_a={endpoint:"signupNewUser",B:function(t){if(ia(t),!t.password)throw new S("weak-password")},F:oa,U:!0,C:!0},va={endpoint:"createAuthUri",C:!0},ya={endpoint:"deleteAccount",M:["idToken"]},wa={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],B:function(t){if("array"!=h(t.deleteProvider))throw new S("internal-error")}},Ca={endpoint:"emailLinkSignin",M:["email","oobCode"],B:ia,F:oa,U:!0,C:!0},xa={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],B:ia,F:oa,U:!0},Oa={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],B:ca,F:oa,C:!0,Na:!0},Sa={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],B:ca,F:oa,C:!0,Na:!0},Ta={endpoint:"getAccountInfo"},Da={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new S("internal-error");ia(t)},Z:"email",C:!0},ka={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],B:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new S("internal-error")},Z:"email",C:!0},Pa={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],B:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new S("internal-error")},Z:"email",C:!0},Ea={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(t){if("PASSWORD_RESET"!=t.requestType)throw new S("internal-error");ia(t)},Z:"email",C:!0},Aa={kb:!0,endpoint:"getProjectConfig",Tb:"GET"},Ia={kb:!0,endpoint:"getRecaptchaParam",Tb:"GET",F:function(t){if(!t.recaptchaSiteKey)throw new S("internal-error")}},Ma={endpoint:"resetPassword",B:fa,Z:"email",C:!0},Ua={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Z:"sessionInfo",C:!0},La={endpoint:"setAccountInfo",M:["idToken"],B:ra,U:!0},Ra={endpoint:"setAccountInfo",M:["idToken"],B:function(t){if(ra(t),!t.password)throw new S("weak-password")},F:oa,U:!0},Na={endpoint:"signupNewUser",F:oa,U:!0,C:!0},Fa={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],B:function(t){if(!t.phoneEnrollmentInfo)throw new S("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new S("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new S("missing-app-credential")},F:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new S("internal-error")},C:!0,Na:!0},Va={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],B:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new S("missing-app-credential")},F:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new S("internal-error")},C:!0,Na:!0},ja={endpoint:"verifyAssertion",B:la,Xa:ua,F:da,U:!0,C:!0},Ba={endpoint:"verifyAssertion",B:la,Xa:ua,F:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new S("user-not-found");if(t.errorMessage)throw Ka(t.errorMessage);oa(t)},U:!0,C:!0},za={endpoint:"verifyAssertion",B:function(t){if(la(t),!t.idToken)throw new S("internal-error")},Xa:ua,F:da,U:!0},qa={endpoint:"verifyCustomToken",B:function(t){if(!t.token)throw new S("invalid-custom-token")},F:oa,U:!0,C:!0},Ha={endpoint:"verifyPassword",B:function(t){if(ia(t),!t.password)throw new S("wrong-password")},F:oa,U:!0,C:!0},Ga={endpoint:"verifyPhoneNumber",B:sa,F:oa,C:!0},Ja={endpoint:"verifyPhoneNumber",B:function(t){if(!t.idToken)throw new S("internal-error");sa(t)},F:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",qo(t);oa(t)}},Ya={Gb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:sa,F:oa,C:!0},$a={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],F:function(t){if(!!t[Gs]^!!t.refreshToken)throw new S("internal-error")},C:!0,Na:!0};function Wa(t,e,n){if(!function(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var i=t[e[n]];if(null==i||""===i)return!1}return!0}(n,e.M))return De(new S("internal-error"));var i,r=!!e.Na,o=e.Tb||"POST";return Te(n).then(e.B).then((function(){return e.U&&(n.returnSecureToken=!0),e.C&&t.b&&void 0===n.tenantId&&(n.tenantId=t.b),function(t,e,n,i,r,o,s){var a=Nn(e+n);Ln(a,"key",t.c),s&&Ln(a,"cb",x().toString());var c="GET"==i;if(c)for(var l in r)r.hasOwnProperty(l)&&Ln(a,l,r[l]);return new ve((function(e,n){ta(t,a.toString(),(function(t){t?t.error?n(Qa(t,o||{})):e(t):n(new S("network-request-failed"))}),i,c?void 0:ei(Ii(r)),t.a,t.m.get())}))}(t,r?t.i:t.h,e.endpoint,o,n,e.Gb,e.kb||!1)})).then((function(t){return i=t,e.Xa?e.Xa(n,i):i})).then(e.F).then((function(){if(!e.Z)return i;if(!(e.Z in i))throw new S("internal-error");return i[e.Z]}))}function Ka(t){return Qa({error:{errors:[{message:t}],code:400,message:t}})}function Qa(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",i={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=i[n]?new S(i[n]):null)return n;for(var r in n=t.error&&t.error.message||"",bt(i={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},e||{}),e=(e=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0,i)if(0===n.indexOf(r))return new S(i[r],e);return!e&&t&&(e=Ai(t)),new S("internal-error",e)}function Xa(t){this.b=t,this.a=null,this.qb=function(t){return(nc||(nc=new ve((function(t,e){function n(){Ri(),Si("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Ri(),e(Error("Network Error"))},timeout:tc.get()})}if(Si("gapi.iframes.Iframe"))t();else if(Si("gapi.load"))n();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();c[i]=function(){Si("gapi.load")?n():e(Error("Network Error"))},Te(Rs(i=St(Za,{onload:i}))).s((function(){e(Error("Network Error"))}))}})).s((function(t){throw nc=null,t})))).then((function(){return new ve((function(e,n){Si("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:Si("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(i){function r(){clearTimeout(o),e()}t.a=i,t.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){n(Error("Network Error"))}),ec.get());i.ping(r).then(r,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var Za=new _t(wt,"https://apis.google.com/js/api.js?onload=%{onload}"),tc=new Ni(3e4,6e4),ec=new Ni(5e3,15e3),nc=null;function ic(t,e,n,i){this.l=t,this.h=e,this.i=n,this.g=i,this.f=null,t=this.g?Fn((t=Nn(this.g.url)).f,t.a,t.g,"/emulator/auth/iframe"):Fn("https",this.l,null,"/__/auth/iframe"),this.a=t,Ln(this.a,"apiKey",this.h),Ln(this.a,"appName",this.i),this.b=null,this.c=[]}function rc(t,e,n,i,r,o){this.u=t,this.o=e,this.c=n,this.v=i,this.m=o,this.i=this.g=this.l=null,this.a=r,this.h=this.f=null}function oc(t){try{return e.app(t).auth().Ga()}catch(n){return[]}}function sc(t,e,n,i,r,o){this.o=t,this.g=e,this.b=n,this.f=o,this.c=i||null,this.i=r||null,this.l=this.u=this.A=null,this.h=[],this.v=this.a=null}function ac(t){var e=ai();return function(t){return Wa(t,Aa,{}).then((function(t){return t.authorizedDomains||[]}))}(t).then((function(t){t:{var n=Nn(e),i=n.f;n=n.a;for(var r=0;r<t.length;r++){var o=t[r],s=n,a=i;if(0==o.indexOf("chrome-extension://")?s=Nn(o).a==s&&"chrome-extension"==a:"http"!=a&&"https"!=a?s=!1:hi.test(o)?s=s==o:(o=o.split(".").join("\\."),s=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(s)),s){t=!0;break t}}t=!1}if(!t)throw new Bo(ai())}))}function cc(t){return t.v||(t.v=mi().then((function(){if(!t.u){var e=t.c,n=t.i,i=oc(t.b),r=new ic(t.o,t.g,t.b,t.f);r.f=e,r.b=n,r.c=Q(i||[]),t.u=r.toString()}t.m=new Xa(t.u),function(t){if(!t.m)throw Error("IfcHandler must be initialized!");!function(t,e){t.qb.then((function(){t.a.register("authEvent",e,Si("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(t.m,(function(e){var n={};if(e&&e.authEvent){var i=!1;for(e=No(e.authEvent),n=0;n<t.h.length;n++)i=t.h[n](e)||i;return(n={}).status=i?"ACK":"ERROR",Te(n)}return n.status="ERROR",Te(n)}))}(t)}))),t.v}function lc(t){return t.l||(t.A=t.c?xi(t.c,oc(t.b)):null,t.l=new qs(t.g,A(t.i),t.A),t.f&&Qs(t.l,t.f)),t.l}function uc(t,e,n,i,r,o,s,a,c,l,u,d){return(t=new rc(t,e,n,i,r,d)).l=o,t.g=s,t.i=a,t.b=mt(c||null),t.f=l,t.xb(u).toString()}function dc(t){if(this.a=t||e.INTERNAL.reactNative&&e.INTERNAL.reactNative.AsyncStorage,!this.a)throw new S("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function hc(t){this.b=t,this.a={},this.f=w(this.c,this)}ic.prototype.toString=function(){return this.f?Ln(this.a,"v",this.f):Kn(this.a.b,"v"),this.b?Ln(this.a,"eid",this.b):Kn(this.a.b,"eid"),this.c.length?Ln(this.a,"fw",this.c.join(",")):Kn(this.a.b,"fw"),this.a.toString()},rc.prototype.xb=function(t){return this.h=t,this},rc.prototype.toString=function(){if(this.m){var t=Nn(this.m.url);t=Fn(t.f,t.a,t.g,"/emulator/auth/handler")}else t=Fn("https",this.u,null,"/__/auth/handler");if(Ln(t,"apiKey",this.o),Ln(t,"appName",this.c),Ln(t,"authType",this.v),this.a.isOAuthProvider){var n=this.a;try{var i=e.app(this.c).auth().ka()}catch(c){i=null}for(var r in n.nb=i,Ln(t,"providerId",this.a.providerId),n=Ii((i=this.a).Hb))n[r]=n[r].toString();r=i.Pc,n=mt(n);for(var o=0;o<r.length;o++){var s=r[o];s in n&&delete n[s]}i.ob&&i.nb&&!n[i.ob]&&(n[i.ob]=i.nb),pt(n)||Ln(t,"customParameters",Ai(n))}if("function"==typeof this.a.Pb&&(i=this.a.Pb()).length&&Ln(t,"scopes",i.join(",")),this.l?Ln(t,"redirectUrl",this.l):Kn(t.b,"redirectUrl"),this.g?Ln(t,"eventId",this.g):Kn(t.b,"eventId"),this.i?Ln(t,"v",this.i):Kn(t.b,"v"),this.b)for(var a in this.b)this.b.hasOwnProperty(a)&&!Rn(t,a)&&Ln(t,a,this.b[a]);return this.h?Ln(t,"tid",this.h):Kn(t.b,"tid"),this.f?Ln(t,"eid",this.f):Kn(t.b,"eid"),(a=oc(this.c)).length&&Ln(t,"fw",a.join(",")),t.toString()},(t=sc.prototype).Nb=function(t,e,n){var i=new S("popup-closed-by-user"),r=new S("web-storage-unsupported"),o=this,s=!1;return this.la().then((function(){(function(t){var e={type:"webStorageSupport"};return cc(t).then((function(){return function(t,e){return t.qb.then((function(){return new ve((function(n){t.a.send(e.type,e,n,Si("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(t.m,e)})).then((function(t){if(t&&t.length&&void 0!==t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()}))})(o).then((function(n){n||(t&&ui(t),e(r),s=!0)}))})).s((function(){})).then((function(){if(!s)return function(t){return new ve((function(e){return function n(){On(2e3).then((function(){if(t&&!t.closed)return n();e()}))}()}))}(t)})).then((function(){if(!s)return On(n).then((function(){e(i)}))}))},t.Wb=function(){var t=Oi();return!Ei(t)&&!Li(t)},t.Sb=function(){return!1},t.Lb=function(t,e,n,i,r,o,s,a){if(!t)return De(new S("popup-blocked"));if(s&&!Ei())return this.la().s((function(e){ui(t),r(e)})),i(),Te();this.a||(this.a=ac(lc(this)));var c=this;return this.a.then((function(){var e=c.la().s((function(e){throw ui(t),r(e),e}));return i(),e})).then((function(){Lo(n),s||ci(uc(c.o,c.g,c.b,e,n,null,o,c.c,void 0,c.i,a,c.f),t)})).s((function(t){throw"auth/network-request-failed"==t.code&&(c.a=null),t}))},t.Mb=function(t,e,n,i){this.a||(this.a=ac(lc(this)));var r=this;return this.a.then((function(){Lo(e),ci(uc(r.o,r.g,r.b,t,e,ai(),n,r.c,void 0,r.i,i,r.f))})).s((function(t){throw"auth/network-request-failed"==t.code&&(r.a=null),t}))},t.la=function(){var t=this;return cc(this).then((function(){return t.m.qb})).s((function(){throw t.a=null,new S("network-request-failed")}))},t.Zb=function(){return!0},t.Ea=function(t){this.h.push(t)},t.Ra=function(t){W(this.h,(function(e){return e==t}))},(t=dc.prototype).get=function(t){return Te(this.a.getItem(t)).then((function(t){return t&&Mi(t)}))},t.set=function(t,e){return Te(this.a.setItem(t,Ai(e)))},t.T=function(t){return Te(this.a.removeItem(t))},t.ca=function(){},t.ia=function(){};var pc,mc=[];function fc(t,e,n){pt(t.a)&&t.b.addEventListener("message",t.f),void 0===t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function bc(t){this.a=t}function gc(t){this.c=t,this.b=!1,this.a=[]}function _c(t,e,n,i){var r,o,s,a,c=n||{},l=null;if(t.b)return De(Error("connection_unavailable"));var u=i?800:50,d="undefined"!=typeof MessageChannel?new MessageChannel:null;return new ve((function(n,i){d?(r=Math.floor(Math.random()*Math.pow(10,20)).toString(),d.port1.start(),s=setTimeout((function(){i(Error("unsupported_event"))}),u),t.a.push(l={messageChannel:d,onMessage:o=function(t){t.data.eventId===r&&("ack"===t.data.status?(clearTimeout(s),a=setTimeout((function(){i(Error("timeout"))}),3e3)):"done"===t.data.status?(clearTimeout(a),void 0!==t.data.response?n(t.data.response):i(Error("unknown_error"))):(clearTimeout(s),clearTimeout(a),i(Error("invalid_response"))))}}),d.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:r,data:c},[d.port2])):i(Error("connection_unavailable"))})).then((function(e){return vc(t,l),e})).s((function(e){throw vc(t,l),e}))}function vc(t,e){if(e){var n=e.messageChannel;n&&(n.port1.removeEventListener("message",e.onMessage),n.port1.close()),W(t.a,(function(t){return t==e}))}}function yc(){if(!Cc())throw new S("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=c.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var t=this;gi()&&self?(this.l=function(){var t=gi()?self:null;if(q(mc,(function(n){n.b==t&&(e=n)})),!e){var e=new hc(t);mc.push(e)}return e}(),fc(this.l,"keyChanged",(function(e,n){return Dc(t).then((function(e){return 0<e.length&&q(t.a,(function(t){t(e)})),{keyProcessed:Y(e,n.key)}}))})),fc(this.l,"ping",(function(){return Te(["keyChanged"])}))):function(){var t=c.navigator;return t&&t.serviceWorker?Te().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).s((function(){return null})):Te(null)}().then((function(e){(t.h=e)&&(t.g=new gc(new bc(e)),_c(t.g,"ping",null,!0).then((function(e){e[0].fulfilled&&Y(e[0].value,"keyChanged")&&(t.o=!0)})).s((function(){})))}))}function wc(t){return t.v||(t.v=function t(e){return new ve((function(n,i){var r=e.m.open("firebaseLocalStorageDb",1);r.onerror=function(t){try{t.preventDefault()}catch(e){}i(Error(t.target.error))},r.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){i(e)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?n(r):function(t){return new ve((function(e,n){var i=t.m.deleteDatabase("firebaseLocalStorageDb");i.onsuccess=function(){e()},i.onerror=function(t){n(Error(t.target.error))}}))}(e).then((function(){return t(e)})).then((function(t){n(t)})).s((function(t){i(t)}))}}))}(t)),t.v}function Cc(){try{return!!c.indexedDB}catch(Gt){return!1}}function xc(t){return t.objectStore("firebaseLocalStorage")}function Oc(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function Sc(t){return new ve((function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}}))}function Tc(t,e){return t.g&&t.h&&function(){var t=c.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?_c(t.g,"keyChanged",{key:e},t.o).then((function(){})).s((function(){})):Te()}function Dc(t){return wc(t).then((function(t){var e=xc(Oc(t,!1));return e.getAll?Sc(e.getAll()):new ve((function(t,n){var i=[],r=e.openCursor();r.onsuccess=function(e){(e=e.target.result)?(i.push(e.value),e.continue()):t(i)},r.onerror=function(t){n(t.target.error)}}))})).then((function(e){var n={},i=[];if(0==t.b){for(i=0;i<e.length;i++)n[e[i].fbase_key]=e[i].value;i=function t(e,n){var i,r=[];for(i in e)i in n?typeof e[i]!=typeof n[i]?r.push(i):"object"==typeof e[i]&&null!=e[i]&&null!=n[i]?0<t(e[i],n[i]).length&&r.push(i):e[i]!==n[i]&&r.push(i):r.push(i);for(i in n)i in e||r.push(i);return r}(t.c,n),t.c=n}return i}))}function kc(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function Pc(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Te().then((function(){if(Cc()){var t=Ui(),i="__sak"+t;return pc||(pc=new yc),(n=pc).set(i,t).then((function(){return n.get(i)})).then((function(e){if(e!==t)throw Error("indexedDB not supported!");return n.T(i)})).then((function(){return n})).s((function(){return e.c}))}return e.c})).then((function(t){return e.type=t.type,t.ca((function(t){q(e.a,(function(e){e(t)}))})),t}))}function Ec(){this.a={},this.type="inMemory"}function Ac(){if(!function(){var t="Node"==_i();if(!(t=Ic()||t&&e.INTERNAL.node&&e.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==_i())throw new S("internal-error","The LocalStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=Ic()||e.INTERNAL.node.localStorage,this.type="localStorage"}function Ic(){try{var t=c.localStorage,e=Ui();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Mc(){this.type="nullStorage"}function Uc(){if(!function(){var t="Node"==_i();if(!(t=Lc()||t&&e.INTERNAL.node&&e.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==_i())throw new S("internal-error","The SessionStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=Lc()||e.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Lc(){try{var t=c.sessionStorage,e=Ui();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Rc(){var t={};t.Browser=Vc,t.Node=jc,t.ReactNative=Bc,t.Worker=zc,this.a=t[_i()]}hc.prototype.c=function(t){var e=t.data.eventType,n=t.data.eventId,i=this.a[e];if(i&&0<i.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var r=[];q(i,(function(e){r.push(Te().then((function(){return e(t.origin,t.data.data)})))})),Pe(r).then((function(i){var r=[];q(i,(function(t){r.push({fulfilled:t.Ob,value:t.value,reason:t.reason?t.reason.message:void 0})})),q(r,(function(t){for(var e in t)void 0===t[e]&&delete t[e]})),t.ports[0].postMessage({status:"done",eventId:n,eventType:e,response:r})}))}},bc.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},gc.prototype.close=function(){for(;0<this.a.length;)vc(this,this.a[0]);this.b=!0},(t=yc.prototype).set=function(t,e){var n,i=!1,r=this;return wc(this).then((function(e){return Sc((e=xc(Oc(n=e,!0))).get(t))})).then((function(o){var s=xc(Oc(n,!0));return o?(o.value=e,Sc(s.put(o))):(r.b++,i=!0,(o={}).fbase_key=t,o.value=e,Sc(s.add(o)))})).then((function(){return r.c[t]=e,Tc(r,t)})).na((function(){i&&r.b--}))},t.get=function(t){return wc(this).then((function(e){return Sc(xc(Oc(e,!1)).get(t))})).then((function(t){return t&&t.value}))},t.T=function(t){var e=!1,n=this;return wc(this).then((function(i){return e=!0,n.b++,Sc(xc(Oc(i,!0)).delete(t))})).then((function(){return delete n.c[t],Tc(n,t)})).na((function(){e&&n.b--}))},t.ca=function(t){0==this.a.length&&function(t){kc(t),function e(){t.f=setTimeout((function(){t.i=Dc(t).then((function(e){0<e.length&&q(t.a,(function(t){t(e)}))})).then((function(){e()})).s((function(t){"STOP_EVENT"!=t.message&&e()}))}),800)}()}(this),this.a.push(t)},t.ia=function(t){W(this.a,(function(e){return e==t})),0==this.a.length&&kc(this)},(t=Pc.prototype).get=function(t){return this.b.then((function(e){return e.get(t)}))},t.set=function(t,e){return this.b.then((function(n){return n.set(t,e)}))},t.T=function(t){return this.b.then((function(e){return e.T(t)}))},t.ca=function(t){this.a.push(t)},t.ia=function(t){W(this.a,(function(e){return e==t}))},(t=Ec.prototype).get=function(t){return Te(this.a[t])},t.set=function(t,e){return this.a[t]=e,Te()},t.T=function(t){return delete this.a[t],Te()},t.ca=function(){},t.ia=function(){},(t=Ac.prototype).get=function(t){var e=this;return Te().then((function(){return Mi(e.a.getItem(t))}))},t.set=function(t,e){var n=this;return Te().then((function(){var i=Ai(e);null===i?n.T(t):n.a.setItem(t,i)}))},t.T=function(t){var e=this;return Te().then((function(){e.a.removeItem(t)}))},t.ca=function(t){c.window&&an(c.window,"storage",t)},t.ia=function(t){c.window&&un(c.window,"storage",t)},(t=Mc.prototype).get=function(){return Te(null)},t.set=function(){return Te()},t.T=function(){return Te()},t.ca=function(){},t.ia=function(){},(t=Uc.prototype).get=function(t){var e=this;return Te().then((function(){return Mi(e.a.getItem(t))}))},t.set=function(t,e){var n=this;return Te().then((function(){var i=Ai(e);null===i?n.T(t):n.a.setItem(t,i)}))},t.T=function(t){var e=this;return Te().then((function(){e.a.removeItem(t)}))},t.ca=function(){},t.ia=function(){};var Nc,Fc,Vc={D:Ac,ab:Uc},jc={D:Ac,ab:Uc},Bc={D:dc,ab:Mc},zc={D:Ac,ab:Mc},qc={qd:"local",NONE:"none",sd:"session"};function Hc(){var t=!(Li(Oi())||!bi()),e=Ei(),n=Ti();this.v=t,this.h=e,this.l=n,this.a={},Nc||(Nc=new Rc),t=Nc;try{this.g=!si()&&Bi()||!c.indexedDB?new t.a.D:new Pc(gi()?new Ec:new t.a.D)}catch(i){this.g=new Ec,this.h=!0}try{this.i=new t.a.ab}catch(i){this.i=new Ec}this.m=new Ec,this.f=w(this.Xb,this),this.b={}}function Gc(){return Fc||(Fc=new Hc),Fc}function Jc(t,e){switch(e){case"session":return t.i;case"none":return t.m;default:return t.g}}function Yc(t,e){return"firebase:"+t.name+(e?":"+e:"")}function $c(t,e,n){return n=Yc(e,n),"local"==e.D&&(t.b[n]=null),Jc(t,e.D).T(n)}function Wc(t){t.c&&(clearInterval(t.c),t.c=null)}function Kc(t){this.a=t,this.b=Gc()}(t=Hc.prototype).get=function(t,e){return Jc(this,t.D).get(Yc(t,e))},t.set=function(t,e,n){var i=Yc(t,n),r=this,o=Jc(this,t.D);return o.set(i,e).then((function(){return o.get(i)})).then((function(e){"local"==t.D&&(r.b[i]=e)}))},t.addListener=function(t,e,n){t=Yc(t,e),this.l&&(this.b[t]=c.localStorage.getItem(t)),pt(this.a)&&(Jc(this,"local").ca(this.f),this.h||(si()||!Bi())&&c.indexedDB||!this.l||function(t){Wc(t),t.c=setInterval((function(){for(var e in t.a){var n=c.localStorage.getItem(e),i=t.b[e];n!=i&&(t.b[e]=n,n=new We({type:"storage",key:e,target:window,oldValue:i,newValue:n,a:!0}),t.Xb(n))}}),1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},t.removeListener=function(t,e,n){t=Yc(t,e),this.a[t]&&(W(this.a[t],(function(t){return t==n})),0==this.a[t].length&&delete this.a[t]),pt(this.a)&&(Jc(this,"local").ia(this.f),Wc(this))},t.Xb=function(t){if(t&&t.g){var e=t.a.key;if(null==e)for(var n in this.a){var i=this.b[n];void 0===i&&(i=null);var r=c.localStorage.getItem(n);r!==i&&(this.b[n]=r,this.lb(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if(void 0!==t.a.a?Jc(this,"local").ia(this.f):Wc(this),this.v)if(n=c.localStorage.getItem(e),(i=t.a.newValue)!==n)null!==i?c.localStorage.setItem(e,i):c.localStorage.removeItem(e);else if(this.b[e]===i&&void 0===t.a.a)return;var o=this;n=function(){void 0===t.a.a&&o.b[e]===c.localStorage.getItem(e)||(o.b[e]=c.localStorage.getItem(e),o.lb(e))},Yt&&ne&&10==ne&&c.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else q(t,w(this.lb,this))},t.lb=function(t){this.a[t]&&q(this.a[t],(function(t){t()}))};var Qc,Xc={name:"authEvent",D:"local"};function Zc(){this.a=Gc()}function tl(t,e){this.b=el,this.f=c.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=c.Int32Array?new Int32Array(64):Array(64),void 0===Qc&&(Qc=c.Int32Array?new Int32Array(cl):cl),this.reset()}O(tl,(function(){this.b=-1}));for(var el=64,nl=el-1,il=[],rl=0;rl<nl;rl++)il[rl]=0;var ol=K(128,il);function sl(t){for(var e=t.f,n=t.l,i=0,r=0;r<e.length;)n[i++]=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3],r=4*i;for(e=16;64>e;e++){var o=(0|n[e-16])+(((r=0|n[e-15])>>>7|r<<25)^(r>>>18|r<<14)^r>>>3)|0,s=(0|n[e-7])+(((i=0|n[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)|0;n[e]=o+s|0}i=0|t.a[0],r=0|t.a[1];var a=0|t.a[2],c=0|t.a[3],l=0|t.a[4],u=0|t.a[5],d=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var h=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r^i&a^r&a)|0;s=(o=o+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))|0)+((s=(s=l&u^~l&d)+(0|Qc[e])|0)+(0|n[e])|0)|0,o=d,d=u,u=l,l=c+s|0,c=a,a=r,r=i,i=s+h|0}t.a[0]=t.a[0]+i|0,t.a[1]=t.a[1]+r|0,t.a[2]=t.a[2]+a|0,t.a[3]=t.a[3]+c|0,t.a[4]=t.a[4]+l|0,t.a[5]=t.a[5]+u|0,t.a[6]=t.a[6]+d|0,t.a[7]=t.a[7]+o|0}function al(t,e,n){void 0===n&&(n=e.length);var i=0,r=t.c;if("string"==typeof e)for(;i<n;)t.f[r++]=e.charCodeAt(i++),r==t.b&&(sl(t),r=0);else{if(!p(e))throw Error("message must be string or array");for(;i<n;){var o=e[i++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[r++]=o,r==t.b&&(sl(t),r=0)}}t.c=r,t.g+=n}tl.prototype.reset=function(){this.g=this.c=0,this.a=c.Int32Array?new Int32Array(this.h):Q(this.h)};var cl=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ll(){tl.call(this,8,ul)}O(ll,tl);var ul=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function dl(t,e,n,i,r,o){this.m=t,this.i=e,this.l=n,this.v=i||null,this.u=r||null,this.o=o,this.h=e+":"+n,this.A=new Zc,this.g=new Kc(this.h),this.f=null,this.b=[],this.a=this.c=null}function hl(t){return new S("invalid-cordova-configuration",t)}function pl(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(i){}}function ml(t){return t.f||(t.f=t.la().then((function(){return new ve((function(e){t.Ea((function n(i){return e(i),t.Ra(n),!1})),function(t){function e(e){i=!0,r&&r.cancel(),fl(t).then((function(i){var r=n;if(i&&e&&e.url){var o=null;-1!=(r=to(e.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=Mi(Rn(o=Nn(r),"firebaseError")||null))?T(o):null)?new Ro(i.c,i.b,null,null,o,null,i.S()):new Ro(i.c,i.b,r,i.f,null,null,i.S())),r=o||n}pl(t,r)}))}var n=new Ro("unknown",null,null,null,new S("no-auth-event")),i=!1,r=On(500).then((function(){return fl(t).then((function(){i||pl(t,n)}))})),o=c.handleOpenURL;c.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(Si("BuildInfo.packageName",c).toLowerCase()+"://")&&e({url:t}),"function"==typeof o)try{o(t)}catch(n){console.error(n)}},jo||(jo=new Fo),function(t){var e=jo;e.a.push(t),e.b||(e.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},"function"==typeof(t=Si("universalLinks.subscribe",c))&&t(null,e.b))}(e)}(t)}))}))),t.f}function fl(t){var e=null;return function(t){return t.b.get(Xc,t.a).then((function(t){return No(t)}))}(t.g).then((function(n){return e=n,$c((n=t.g).b,Xc,n.a)})).then((function(){return e}))}function bl(t){this.a=t,this.b=Gc()}(t=dl.prototype).la=function(){return this.Ia?this.Ia:this.Ia=(fi(void 0)?mi().then((function(){return new ve((function(t,e){var n=c.document,i=setTimeout((function(){e(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(i),t()}),!1)}))})):De(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!=typeof Si("universalLinks.subscribe",c))throw hl("cordova-universal-links-plugin-fix is not installed");if(void 0===Si("BuildInfo.packageName",c))throw hl("cordova-plugin-buildinfo is not installed");if("function"!=typeof Si("cordova.plugins.browsertab.openUrl",c))throw hl("cordova-plugin-browsertab is not installed");if("function"!=typeof Si("cordova.InAppBrowser.open",c))throw hl("cordova-plugin-inappbrowser is not installed")}),(function(){throw new S("cordova-not-ready")}))},t.Nb=function(t,e){return e(new S("operation-not-supported-in-this-environment")),Te()},t.Lb=function(){return De(new S("operation-not-supported-in-this-environment"))},t.Zb=function(){return!1},t.Wb=function(){return!0},t.Sb=function(){return!0},t.Mb=function(t,e,n,i){if(this.c)return De(new S("redirect-operation-pending"));var r=this,o=c.document,s=null,a=null,l=null,u=null;return this.c=Te().then((function(){return Lo(e),ml(r)})).then((function(){return function(t,e,n,i,r){var o=function(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}(),s=new Ro(e,i,null,o,new S("no-auth-event"),null,r),a=Si("BuildInfo.packageName",c);if("string"!=typeof a)throw new S("invalid-cordova-configuration");var l=Si("BuildInfo.displayName",c),u={};if(Oi().toLowerCase().match(/iphone|ipad|ipod/))u.ibi=a;else{if(!Oi().toLowerCase().match(/android/))return De(new S("operation-not-supported-in-this-environment"));u.apn=a}l&&(u.appDisplayName=l),o=function(t){var e=new ll;al(e,t),t=[];var n=8*e.g;al(e,ol,56>e.c?56-e.c:e.b-(e.c-56));for(var i=63;56<=i;i--)e.f[i]=255&n,n/=256;for(sl(e),i=n=0;i<e.i;i++)for(var r=24;0<=r;r-=8)t[n++]=e.a[i]>>r&255;return function(t){return G(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}(t)}(o),u.sessionId=o;var d=uc(t.m,t.i,t.l,e,n,null,i,t.v,u,t.u,r,t.o);return t.la().then((function(){var e=t.h;return t.A.a.set(Xc,s.w(),e)})).then((function(){var e=Si("cordova.plugins.browsertab.isAvailable",c);if("function"!=typeof e)throw new S("invalid-cordova-configuration");var n=null;e((function(e){if(e){if("function"!=typeof(n=Si("cordova.plugins.browsertab.openUrl",c)))throw new S("invalid-cordova-configuration");n(d)}else{if("function"!=typeof(n=Si("cordova.InAppBrowser.open",c)))throw new S("invalid-cordova-configuration");e=Oi(),t.a=n(d,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(r,t,e,n,i)})).then((function(){return new ve((function(t,e){a=function(){var e=Si("cordova.plugins.browsertab.close",c);return t(),"function"==typeof e&&e(),r.a&&"function"==typeof r.a.close&&(r.a.close(),r.a=null),!1},r.Ea(a),u=function(){Fi()&&l()},o.addEventListener("resume",l=function(){s||(s=On(2e3).then((function(){e(new S("redirect-cancelled-by-user"))})))},!1),Oi().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",u,!1)})).s((function(t){return fl(r).then((function(){throw t}))}))})).na((function(){l&&o.removeEventListener("resume",l,!1),u&&o.removeEventListener("visibilitychange",u,!1),s&&s.cancel(),a&&r.Ra(a),r.c=null}))},t.Ea=function(t){this.b.push(t),ml(this).s((function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Ro("unknown",null,null,null,new S("no-auth-event")),t(e))}))},t.Ra=function(t){W(this.b,(function(e){return e==t}))};var gl={name:"pendingRedirect",D:"session"};function _l(t){return $c(t.b,gl,t.a)}function vl(t,e,n,i){this.i={},this.u=0,this.O=t,this.m=e,this.v=n,this.G=i,this.h=[],this.f=!1,this.l=w(this.o,this),this.b=new Ul,this.A=new Vl,this.g=new bl(Il(this.m,this.v)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.A,this.c.linkViaPopup=this.A,this.c.reauthViaPopup=this.A,this.a=yl(this.O,this.m,this.v,D,this.G)}function yl(t,n,i,r,o){var s=e.SDK_VERSION||null;return fi()?new dl(t,n,i,s,r,o):new sc(t,n,i,s,r,o)}function wl(t){t.f||(t.f=!0,t.a.Ea(t.l));var e=t.a;return t.a.la().s((function(n){throw t.a==e&&t.reset(),n}))}function Cl(t){t.a.Wb()&&wl(t).s((function(e){var n=new Ro("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));kl(e)&&t.o(n)})),t.a.Sb()||Ll(t.b)}function xl(t,e){Y(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(gl,t.a).then((function(t){return"pending"==t}))}(t.g).then((function(e){e?_l(t.g).then((function(){wl(t).s((function(e){var n=new Ro("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));kl(e)&&t.o(n)}))})):Cl(t)})).s((function(){Cl(t)}))}function Ol(t,e){W(t.h,(function(t){return t==e}))}vl.prototype.reset=function(){this.f=!1,this.a.Ra(this.l),this.a=yl(this.O,this.m,this.v,null,this.G),this.i={}},vl.prototype.o=function(t){if(!t)throw new S("invalid-auth-event");if(6e5<=x()-this.u&&(this.i={},this.u=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var i=this.h[n];if(i.Eb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,i),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.u=x())),e=!0;break}}return Ll(this.b),e};var Sl=new Ni(2e3,1e4),Tl=new Ni(3e4,6e4);function Dl(t,e,n,i,r,o,s){return t.a.Lb(e,n,i,(function(){t.f||(t.f=!0,t.a.Ea(t.l))}),(function(){t.reset()}),r,o,s)}function kl(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Pl(t,e,n,i,r){var o;return function(t){return t.b.set(gl,"pending",t.a)}(t.g).then((function(){return t.a.Mb(e,n,i,r).s((function(e){if(kl(e))throw new S("operation-not-supported-in-this-environment");return o=e,_l(t.g).then((function(){throw o}))})).then((function(){return t.a.Zb()?new ve((function(){})):_l(t.g).then((function(){return t.qa()})).then((function(){})).s((function(){}))}))}))}function El(t,e,n,i,r){return t.a.Nb(i,(function(t){e.ma(n,null,t,r)}),Sl.get())}vl.prototype.qa=function(){return this.b.qa()};var Al={};function Il(t,e,n){return t=t+":"+e,n&&(t=t+":"+n.url),t}function Ml(t,e,n,i){var r=Il(e,n,i);return Al[r]||(Al[r]=new vl(t,e,n,i)),Al[r]}function Ul(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Ll(t){t.g||(t.g=!0,Fl(t,!1,null,null))}function Rl(t){t.g&&!t.i&&Fl(t,!1,null,null)}function Nl(t,e){if(t.b=function(){return Te(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function Fl(t,e,n,i){e?i?function(t,e){if(t.b=function(){return De(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,i):Nl(t,n):Nl(t,{user:null}),t.f=[],t.c=[]}function Vl(){}function jl(){this.hb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.hb},set:function(t){this.hb=t},enumerable:!1})}function Bl(t,e){this.a=e,Ji(this,"verificationId",t)}function zl(t,e,n,i){return new Io(t).eb(e,n).then((function(t){return new Bl(t,i)}))}function ql(t){var e=jr(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new S("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Yi(this,{token:t,expirationTime:ji(1e3*e.exp),authTime:ji(1e3*e.auth_time),issuedAtTime:ji(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function Hl(t,e,n){var i=e&&e[Jl];if(!i)throw new S("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=mt(e),this.g=n,this.c=new eo(null,i),this.b=[];var r=this;q(e[Gl]||[],(function(t){(t=Qi(t))&&r.b.push(t)})),Ji(this,"auth",this.a),Ji(this,"session",this.c),Ji(this,"hints",this.b)}Ul.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Ul.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,i=t.b,r=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!r&&!o),"unknown"!=n||r||o?t.a?(Fl(this,!0,null,t.a),Te()):e.Fa(n,i)?function(t,e,n){n=n.Fa(e.c,e.b);var i=e.g,r=e.f,o=e.i,s=e.S(),a=!!e.c.match(/Redirect$/);n(i,r,s,o).then((function(e){Fl(t,a,e,null)})).s((function(e){Fl(t,a,null,e)}))}(this,t,e):De(new S("invalid-auth-event")):(Fl(this,!1,null,null),Te())}else De(new S("invalid-auth-event"))},Ul.prototype.qa=function(){var t=this;return new ve((function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),function(t){var e=new S("timeout");t.a&&t.a.cancel(),t.a=On(Tl.get()).then((function(){t.b||(t.g=!0,Fl(t,!0,null,e))}))}(t))}))},Vl.prototype.h=function(t,e){if(t){var n=t.c,i=t.b;t.a?(e.ma(t.c,null,t.a,t.b),Te()):e.Fa(n,i)?function(t,e){var n=t.b,i=t.c;e.Fa(i,n)(t.g,t.f,t.S(),t.i).then((function(t){e.ma(i,t,null,n)})).s((function(t){e.ma(i,null,t,n)}))}(t,e):De(new S("invalid-auth-event"))}else De(new S("invalid-auth-event"))},Bl.prototype.confirm=function(t){return t=Mo(this.verificationId,t),this.a(t)};var Gl="mfaInfo",Jl="mfaPendingCredential";function Yl(t,e,n,i){S.call(this,"multi-factor-auth-required",i,e),this.b=new Hl(t,e,n),Ji(this,"resolver",this.b)}function $l(t,e,n){if(t&&f(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Yl(e,t.serverResponse,n,t.message)}catch(i){}return null}function Wl(){}function Kl(t){Ji(this,"factorId",t.fa),this.a=t}function Ql(t){if(Kl.call(this,t),this.a.fa!=Io.PROVIDER_ID)throw new S("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function Xl(t,e){for(var n in $e.call(this,t),e)this[n]=e[n]}function Zl(t,e){this.a=t,this.b=[],this.c=w(this.xc,this),an(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&q(e.multiFactor.enrolledFactors,(function(t){var e=null,i={};if(t){t.uid&&(i[tr]=t.uid),t.displayName&&(i[Xi]=t.displayName),t.enrollmentTime&&(i[Zi]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(i[er]=t.phoneNumber);try{e=new nr(i)}catch(r){}t=e}else t=null;t&&n.push(t)})),tu(this,n)}function tu(t,e){t.b=e,Ji(t,"enrolledFactors",e)}function eu(t,e,n){if(this.h=t,this.i=e,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function nu(t){this.c=t,this.b=this.a=null}function iu(t){return t.b&&1e3*t.b.c||0}function ru(t,e){var n=e.refreshToken;t.b=Vr(e[Gs]||""),t.a=n}function ou(t,e){this.a=t||null,this.b=e||null,Yi(this,{lastSignInTime:ji(e||null),creationTime:ji(t||null)})}function su(t,e,n,i,r,o){Yi(this,{uid:t,displayName:i||null,photoURL:r||null,email:n||null,phoneNumber:o||null,providerId:e})}function au(t,n,i){this.G=[],this.l=t.apiKey,this.m=t.appName,this.o=t.authDomain||null;var r=e.SDK_VERSION?xi(e.SDK_VERSION):null;this.a=new qs(this.l,A(D),r),t.emulatorConfig&&Qs(this.a,t.emulatorConfig),this.b=new nu(this.a),fu(this,n[Gs]),ru(this.b,n),Ji(this,"refreshToken",this.b.a),_u(this,i||{}),vn.call(this),this.P=!1,this.o&&Di()&&(this.i=Ml(this.o,this.l,this.m)),this.R=[],this.f=null,this.u=function(t){return new eu((function(){return t.I(!0)}),(function(t){return!(!t||"auth/network-request-failed"!=t.code)}),(function(){var e=iu(t.b)-x()-3e5;return 0<e?e:0}))}(this),this.$=w(this.gb,this);var o=this;this.pa=null,this.Ba=function(t){o.wa(t.h)},this.ba=null,this.za=function(t){Qs(o.a,t.c)},this.W=null,this.X=[],this.Aa=function(t){uu(o,t.f)},this.aa=null,this.N=new Zl(this,i),Ji(this,"multiFactor",this.N)}function cu(t,e){t.ba&&un(t.ba,"languageCodeChanged",t.Ba),(t.ba=e)&&an(e,"languageCodeChanged",t.Ba)}function lu(t,e){t.W&&un(t.W,"emulatorConfigChanged",t.za),(t.W=e)&&an(e,"emulatorConfigChanged",t.za)}function uu(t,n){t.X=n,Zs(t.a,e.SDK_VERSION?xi(e.SDK_VERSION,t.X):null)}function du(t,e){t.aa&&un(t.aa,"frameworkChanged",t.Aa),(t.aa=e)&&an(e,"frameworkChanged",t.Aa)}function hu(t){try{return e.app(t.m).auth()}catch(n){throw new S("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function pu(t){t.A||t.u.b||(t.u.start(),un(t,"tokenChanged",t.$),an(t,"tokenChanged",t.$))}function mu(t){un(t,"tokenChanged",t.$),t.u.stop()}function fu(t,e){t.ya=e,Ji(t,"_lat",e)}function bu(t){for(var e=[],n=0;n<t.R.length;n++)e.push(t.R[n](t));return Pe(e).then((function(){return t}))}function gu(t){t.i&&!t.P&&(t.P=!0,xl(t.i,t))}function _u(t,e){Yi(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new ou(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function vu(){}function yu(t){return Te().then((function(){if(t.A)throw new S("app-deleted")}))}function wu(t){return G(t.providerData,(function(t){return t.providerId}))}function Cu(t,e){e&&(xu(t,e.providerId),t.providerData.push(e))}function xu(t,e){W(t.providerData,(function(t){return t.providerId==e}))}function Ou(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&Ji(t,e,n)}function Su(t,e){t!=e&&(Yi(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),Ji(t,"metadata",e.metadata?function(t){return new ou(t.a,t.b)}(e.metadata):new ou),q(e.providerData,(function(e){Cu(t,e)})),function(t,e){t.b=e.b,t.a=e.a}(t.b,e.b),Ji(t,"refreshToken",t.b.a),tu(t.N,e.N.b))}function Tu(t){return t.I().then((function(e){var n=t.isAnonymous;return function(t,e){return Wa(t.a,Ta,{idToken:e}).then(w(t.Jc,t))}(t,e).then((function(){return n||Ou(t,"isAnonymous",!1),e}))}))}function Du(t,e){e[Gs]&&t.ya!=e[Gs]&&(ru(t.b,e),t.dispatchEvent(new Xl("tokenChanged")),fu(t,e[Gs]),Ou(t,"refreshToken",t.b.a))}function ku(t,e){return Tu(t).then((function(){if(Y(wu(t),e))return bu(t).then((function(){throw new S("provider-already-linked")}))}))}function Pu(t,e,n){return $i({user:t,credential:Uo(e),additionalUserInfo:e=Gr(e),operationType:n})}function Eu(t,e){return Du(t,e),t.reload().then((function(){return t}))}function Au(t,n,i,r,o){if(!Di())return De(new S("operation-not-supported-in-this-environment"));if(t.f&&!o)return De(t.f);var s=Hr(i.providerId),a=Ui(t.uid+":::"),c=null;(!Ei()||bi())&&t.o&&i.isOAuthProvider&&(c=uc(t.o,t.l,t.m,n,i,null,a,e.SDK_VERSION||null,null,null,t.tenantId));var l=di(c,s&&s.ua,s&&s.ta);return r=r().then((function(){if(Mu(t),!o)return t.I().then((function(){}))})).then((function(){return Dl(t.i,l,n,i,a,!!c,t.tenantId)})).then((function(){return new ve((function(e,i){t.ma(n,null,new S("cancelled-popup-request"),t.h||null),t.g=e,t.O=i,t.h=a,t.c=El(t.i,t,n,l,a)}))})).then((function(t){return l&&ui(l),t?$i(t):null})).s((function(t){throw l&&ui(l),t})),Uu(t,r,o)}function Iu(t,e,n,i,r){if(!Di())return De(new S("operation-not-supported-in-this-environment"));if(t.f&&!r)return De(t.f);var o=null,s=Ui(t.uid+":::");return i=i().then((function(){if(Mu(t),!r)return t.I().then((function(){}))})).then((function(){return t.ga=s,bu(t)})).then((function(e){return t.ha&&(e=(e=t.ha).b.set(Nu,t.w(),e.a)),e})).then((function(){return Pl(t.i,e,n,s,t.tenantId)})).s((function(e){if(o=e,t.ha)return Fu(t.ha);throw o})).then((function(){if(o)throw o})),Uu(t,i,r)}function Mu(t){if(!t.i||!t.P){if(t.i&&!t.P)throw new S("internal-error");throw new S("auth-domain-config-required")}}function Uu(t,e,n){var i=function(t,e,n){return t.f&&!n?(e.cancel(),De(t.f)):e.s((function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.f||t.dispatchEvent(new Xl("userInvalidated")),t.f=e),e}))}(t,e,n);return t.G.push(i),i.na((function(){$(t.G,i)})),i.s((function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=$l(e.w(),hu(t),w(t.ic,t))),n||e}))}function Lu(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName,emulatorConfig:t.emulatorConfig},n={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;n[Gs]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var i=new au(e,n,t);return t.providerData&&q(t.providerData,(function(t){t&&Cu(i,$i(t))})),t.redirectEventId&&(i.ga=t.redirectEventId),i}function Ru(t){this.a=t,this.b=Gc()}Hl.prototype.Qc=function(t){var e=this;return t.rb(this.a.a,this.c).then((function(t){var n=mt(e.f);return delete n[Gl],delete n[Jl],bt(n,t),e.g(n)}))},O(Yl,S),Wl.prototype.rb=function(t,e,n){return e.type==no?function(t,e,n,i){return n.Ha().then((function(n){return n={idToken:n},void 0!==i&&(n.displayName=i),bt(n,{phoneVerificationInfo:Ao(t.a)}),Wa(e,Oa,n)}))}(this,t,e,n):function(t,e,n){return n.Ha().then((function(n){return bt(n={mfaPendingCredential:n},{phoneVerificationInfo:Ao(t.a)}),Wa(e,Sa,n)}))}(this,t,e)},O(Kl,Wl),O(Ql,Kl),O(Xl,$e),(t=Zl.prototype).xc=function(t){tu(this,function(t){var e=[];return q(t.mfaInfo||[],(function(t){(t=Qi(t))&&e.push(t)})),e}(t.gd))},t.Qb=function(){return this.a.I().then((function(t){return new eo(t,null)}))},t.ec=function(t,e){var n=this,i=this.a.a;return this.Qb().then((function(n){return t.rb(i,n,e)})).then((function(t){return Du(n.a,t),n.a.reload()}))},t.ad=function(t){var e=this,n="string"==typeof t?t:t.uid,i=this.a.a;return this.a.I().then((function(t){return Wa(i,$a,{idToken:t,mfaEnrollmentId:n})})).then((function(t){var i=H(e.b,(function(t){return t.uid!=n}));return tu(e,i),Du(e.a,t),e.a.reload().s((function(t){if("auth/user-token-expired"!=t.code)throw t}))}))},t.w=function(){return{multiFactor:{enrolledFactors:G(this.b,(function(t){return t.w()}))}}},eu.prototype.start=function(){this.a=this.c,function t(e,n){e.stop(),e.b=On(function(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}(e,n)).then((function(){return function(){var t=c.document,e=null;return Fi()||!t?Te():new ve((function(n){e=function(){Fi()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)})).s((function(n){throw t.removeEventListener("visibilitychange",e,!1),n}))}()})).then((function(){return e.h()})).then((function(){t(e,!0)})).s((function(n){e.i(n)&&t(e,!1)}))}(this,!0)},eu.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},nu.prototype.w=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:iu(this)}},nu.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?De(new S("user-token-expired")):t||!this.b||x()>iu(this)-3e4?this.a?function(t,e){return function(t,e){return new ve((function(n,i){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?ta(t,t.l+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?i(Qa(t)):t.access_token&&t.refresh_token?n(t):i(new S("internal-error")):i(new S("network-request-failed"))}),"POST",Wn(e).toString(),t.g,t.v.get()):i(new S("internal-error"))}))}(t.c,e).then((function(e){return t.b=Vr(e.access_token),t.a=e.refresh_token,{accessToken:t.b.toString(),refreshToken:t.a}})).s((function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e}))}(this,{grant_type:"refresh_token",refresh_token:this.a}):Te(null):Te({accessToken:this.b.toString(),refreshToken:this.a})},ou.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},O(au,vn),au.prototype.wa=function(t){this.pa=t,Ks(this.a,t)},au.prototype.ka=function(){return this.pa},au.prototype.Ga=function(){return Q(this.X)},au.prototype.gb=function(){this.u.b&&(this.u.stop(),this.u.start())},Ji(au.prototype,"providerId","firebase"),(t=au.prototype).reload=function(){var t=this;return Uu(this,yu(this).then((function(){return Tu(t).then((function(){return bu(t)})).then(vu)})))},t.nc=function(t){return this.I(t).then((function(t){return new ql(t)}))},t.I=function(t){var e=this;return Uu(this,yu(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new S("internal-error");return t.accessToken!=e.ya&&(fu(e,t.accessToken),e.dispatchEvent(new Xl("tokenChanged"))),Ou(e,"refreshToken",t.refreshToken),t.accessToken})))},t.Jc=function(t){if(!(t=t.users)||!t.length)throw new S("internal-error");_u(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?G(t,(function(t){return new su(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),n=0;n<e.length;n++)Cu(this,e[n]);Ou(this,"isAnonymous",!(this.email&&t.passwordHash||this.providerData&&this.providerData.length)),this.dispatchEvent(new Xl("userReloaded",{gd:t}))},t.Kc=function(t){return Hi("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.sb(t)},t.sb=function(t){var e=this,n=null;return Uu(this,t.c(this.a,this.uid).then((function(t){return Du(e,t),n=Pu(e,t,"reauthenticate"),e.f=null,e.reload()})).then((function(){return n})),!0)},t.Bc=function(t){return Hi("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.pb(t)},t.pb=function(t){var e=this,n=null;return Uu(this,ku(this,t.providerId).then((function(){return e.I()})).then((function(n){return t.b(e.a,n)})).then((function(t){return n=Pu(e,t,"link"),Eu(e,t)})).then((function(){return n})))},t.Cc=function(t,e){var n=this;return Uu(this,ku(this,"phone").then((function(){return zl(hu(n),t,e,w(n.pb,n))})))},t.Lc=function(t,e){var n=this;return Uu(this,Te().then((function(){return zl(hu(n),t,e,w(n.sb,n))})),!0)},t.Ab=function(t){var e=this;return Uu(this,this.I().then((function(n){return e.a.Ab(n,t)})).then((function(t){return Du(e,t),e.reload()})))},t.dd=function(t){var e=this;return Uu(this,this.I().then((function(n){return t.b(e.a,n)})).then((function(t){return Du(e,t),e.reload()})))},t.Bb=function(t){var e=this;return Uu(this,this.I().then((function(n){return e.a.Bb(n,t)})).then((function(t){return Du(e,t),e.reload()})))},t.Cb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return yu(this);var e=this;return Uu(this,this.I().then((function(n){return e.a.Cb(n,{displayName:t.displayName,photoUrl:t.photoURL})})).then((function(t){return Du(e,t),Ou(e,"displayName",t.displayName||null),Ou(e,"photoURL",t.photoUrl||null),q(e.providerData,(function(t){"password"===t.providerId&&(Ji(t,"displayName",e.displayName),Ji(t,"photoURL",e.photoURL))})),bu(e)})).then(vu))},t.bd=function(t){var e=this;return Uu(this,Tu(this).then((function(n){return Y(wu(e),t)?function(t,e,n){return Wa(t,wa,{idToken:e,deleteProvider:n})}(e.a,n,[t]).then((function(t){var n={};return q(t.providerUserInfo||[],(function(t){n[t.providerId]=!0})),q(wu(e),(function(t){n[t]||xu(e,t)})),n[Io.PROVIDER_ID]||Ji(e,"phoneNumber",null),bu(e)})):bu(e).then((function(){throw new S("no-such-provider")}))})))},t.delete=function(){var t=this;return Uu(this,this.I().then((function(e){return Wa(t.a,ya,{idToken:e})})).then((function(){t.dispatchEvent(new Xl("userDeleted"))}))).then((function(){for(var e=0;e<t.G.length;e++)t.G[e].cancel("app-deleted");cu(t,null),lu(t,null),du(t,null),t.G=[],t.A=!0,mu(t),Ji(t,"refreshToken",null),t.i&&Ol(t.i,t)}))},t.Eb=function(t,e){return!!("linkViaPopup"==t&&(this.h||null)==e&&this.g||"reauthViaPopup"==t&&(this.h||null)==e&&this.g||"linkViaRedirect"==t&&(this.ga||null)==e||"reauthViaRedirect"==t&&(this.ga||null)==e)},t.ma=function(t,e,n,i){"linkViaPopup"!=t&&"reauthViaPopup"!=t||i!=(this.h||null)||(n&&this.O?this.O(n):e&&!n&&this.g&&this.g(e),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},t.Fa=function(t,e){return"linkViaPopup"==t&&e==(this.h||null)?w(this.Jb,this):"reauthViaPopup"==t&&e==(this.h||null)?w(this.Kb,this):"linkViaRedirect"==t&&(this.ga||null)==e?w(this.Jb,this):"reauthViaRedirect"==t&&(this.ga||null)==e?w(this.Kb,this):null},t.Dc=function(t){var e=this;return Au(this,"linkViaPopup",t,(function(){return ku(e,t.providerId).then((function(){return bu(e)}))}),!1)},t.Mc=function(t){return Au(this,"reauthViaPopup",t,(function(){return Te()}),!0)},t.Ec=function(t){var e=this;return Iu(this,"linkViaRedirect",t,(function(){return ku(e,t.providerId)}),!1)},t.Nc=function(t){return Iu(this,"reauthViaRedirect",t,(function(){return Te()}),!0)},t.Jb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Uu(this,this.I().then((function(n){return pa(r.a,{requestUri:t,postBody:i,sessionId:e,idToken:n})})).then((function(t){return o=Pu(r,t,"link"),Eu(r,t)})).then((function(){return o})))},t.Kb=function(t,e,n,i){var r=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Uu(this,Te().then((function(){return oo(ma(r.a,{requestUri:t,sessionId:e,postBody:i,tenantId:n}),r.uid)})).then((function(t){return o=Pu(r,t,"reauthenticate"),Du(r,t),r.f=null,r.reload()})).then((function(){return o})),!0)},t.tb=function(t){var e=this,n=null;return Uu(this,this.I().then((function(e){return n=e,void 0===t||pt(t)?{}:Rr(new Tr(t))})).then((function(t){return e.a.tb(n,t)})).then((function(t){if(e.email!=t)return e.reload()})).then((function(){})))},t.Db=function(t,e){var n=this,i=null;return Uu(this,this.I().then((function(t){return i=t,void 0===e||pt(e)?{}:Rr(new Tr(e))})).then((function(e){return n.a.Db(i,t,e)})).then((function(t){if(n.email!=t)return n.reload()})).then((function(){})))},t.ic=function(t){var e=null,n=this;return Uu(this,t=oo(Te(t),n.uid).then((function(t){return e=Pu(n,t,"reauthenticate"),Du(n,t),n.f=null,n.reload()})).then((function(){return e})),!0)},t.toJSON=function(){return this.w()},t.w=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&bt(t,this.metadata.w()),q(this.providerData,(function(e){t.providerData.push(function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}(e))})),bt(t,this.N.w()),t};var Nu={name:"redirectUser",D:"session"};function Fu(t){return $c(t.b,Nu,t.a)}function Vu(t){this.a=t,this.b=Gc(),this.c=null,this.f=function(t){var e=zu("local"),n=zu("session"),i=zu("none");return function(t,e,n){var i=Yc(e,n),r=Jc(t,e.D);return t.get(e,n).then((function(o){var s=null;try{s=Mi(c.localStorage.getItem(i))}catch(a){}if(s&&!o)return c.localStorage.removeItem(i),t.set(e,s,n);s&&o&&"localStorage"!=r.type&&c.localStorage.removeItem(i)}))}(t.b,e,t.a).then((function(){return t.b.get(n,t.a)})).then((function(r){return r?n:t.b.get(i,t.a).then((function(n){return n?i:t.b.get(e,t.a).then((function(n){return n?e:t.b.get(Bu,t.a).then((function(t){return t?zu(t):e}))}))}))})).then((function(e){return t.c=e,ju(t,e.D)})).s((function(){t.c||(t.c=e)}))}(this),this.b.addListener(zu("local"),this.a,w(this.g,this))}function ju(t,e){var n,i=[];for(n in qc)qc[n]!==e&&i.push($c(t.b,zu(qc[n]),t.a));return i.push($c(t.b,Bu,t.a)),function(t){return new ve((function(e,n){var i=t.length,r=[];if(i)for(var o=function(t,n){i--,r[t]=n,0==i&&e(r)},s=function(t){n(t)},a=0;a<t.length;a++)ke(t[a],C(o,a),s);else e(r)}))}(i)}Vu.prototype.g=function(){var t=this,e=zu("local");Ju(this,(function(){return Te().then((function(){return t.c&&"local"!=t.c.D?t.b.get(e,t.a):null})).then((function(n){if(n)return ju(t,"local").then((function(){t.c=e}))}))}))};var Bu={name:"persistence",D:"session"};function zu(t){return{name:"authUser",D:t}}function qu(t,e){return Ju(t,(function(){return t.b.set(t.c,e.w(),t.a)}))}function Hu(t){return Ju(t,(function(){return $c(t.b,t.c,t.a)}))}function Gu(t,e,n){return Ju(t,(function(){return t.b.get(t.c,t.a).then((function(t){return t&&e&&(t.authDomain=e),t&&n&&(t.emulatorConfig=n),Lu(t||{})}))}))}function Ju(t,e){return t.f=t.f.then(e,e),t.f}function Yu(t){if(this.m=!1,Ji(this,"settings",new jl),Ji(this,"app",t),!ed(this).options||!ed(this).options.apiKey)throw new S("invalid-api-key");t=e.SDK_VERSION?xi(e.SDK_VERSION):null,this.a=new qs(ed(this).options&&ed(this).options.apiKey,A(D),t),this.R=[],this.u=[],this.P=[],this.ac=e.INTERNAL.createSubscribe(w(this.yc,this)),this.X=void 0,this.bc=e.INTERNAL.createSubscribe(w(this.zc,this)),Zu(this,null),this.l=new Vu(ed(this).options.apiKey+":"+ed(this).name),this.G=new Ru(ed(this).options.apiKey+":"+ed(this).name),this.$=od(this,function(t){var e=ed(t).options.authDomain,n=function(t){var e=function(t,e){return t.b.get(Nu,t.a).then((function(t){return t&&e&&(t.authDomain=e),Lu(t||{})}))}(t.G,ed(t).options.authDomain).then((function(e){return(t.o=e)&&(e.ha=t.G),Fu(t.G)}));return od(t,e)}(t).then((function(){return Gu(t.l,e,t.f)})).then((function(e){return e?(e.ha=t.G,t.o&&(t.o.ga||null)==(e.ga||null)?e:e.reload().then((function(){return qu(t.l,e).then((function(){return e}))})).s((function(n){return"auth/network-request-failed"==n.code?e:Hu(t.l)}))):null})).then((function(e){Zu(t,e||null)}));return od(t,n)}(this)),this.i=od(this,function(t){return t.$.then((function(){return Xu(t)})).s((function(){})).then((function(){if(!t.m)return t.pa()})).s((function(){})).then((function(){if(!t.m){t.ba=!0;var e=t.l;e.b.addListener(zu("local"),e.a,t.pa)}}))}(this)),this.ba=!1,this.pa=w(this.Yc,this),this.Ba=w(this.da,this),this.ya=w(this.kc,this),this.za=w(this.vc,this),this.Aa=w(this.wc,this),this.b=null,function(t){var e=ed(t).options.authDomain,n=ed(t).options.apiKey;e&&Di()&&(t.gb=t.$.then((function(){if(!t.m){if(t.b=Ml(e,n,ed(t).name,t.f),xl(t.b,t),nd(t)&&gu(nd(t)),t.o){gu(t.o);var i=t.o;i.wa(t.ka()),cu(i,t),uu(i=t.o,t.N),du(i,t),Qs((i=t.o).a,t.f),lu(i,t),t.o=null}return t.b}})))}(this),this.INTERNAL={},this.INTERNAL.delete=w(this.delete,this),this.INTERNAL.logFramework=w(this.Fc,this),this.A=0,vn.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.ka()},set:function(t){this.wa(t)},enumerable:!1}),t.aa=null,Object.defineProperty(t,"ti",{get:function(){return this.S()},set:function(t){this.xb(t)},enumerable:!1}),t.W=null}(this),this.N=[],this.f=null}function $u(t){$e.call(this,"languageCodeChanged"),this.h=t}function Wu(t){$e.call(this,"emulatorConfigChanged"),this.c=t}function Ku(t){$e.call(this,"frameworkChanged"),this.f=t}function Qu(t){return t.gb||De(new S("auth-domain-config-required"))}function Xu(t){if(!Di())return De(new S("operation-not-supported-in-this-environment"));var e=Qu(t).then((function(){return t.b.qa()})).then((function(t){return t?$i(t):null}));return od(t,e)}function Zu(t,e){nd(t)&&(function(t,e){W(t.R,(function(t){return t==e}))}(nd(t),t.Ba),un(nd(t),"tokenChanged",t.ya),un(nd(t),"userDeleted",t.za),un(nd(t),"userInvalidated",t.Aa),mu(nd(t))),e&&(e.R.push(t.Ba),an(e,"tokenChanged",t.ya),an(e,"userDeleted",t.za),an(e,"userInvalidated",t.Aa),0<t.A&&pu(e)),Ji(t,"currentUser",e),e&&(e.wa(t.ka()),cu(e,t),uu(e,t.N),du(e,t),Qs(e.a,t.f),lu(e,t))}function td(t,e){var n=null,i=null;return od(t,e.then((function(e){return n=Uo(e),i=Gr(e),function(t,e){var n={};return n.apiKey=ed(t).options.apiKey,n.authDomain=ed(t).options.authDomain,n.appName=ed(t).name,t.f&&(n.emulatorConfig=t.f),t.$.then((function(){return function(t,e,n,i){var r=new au(t,e);return n&&(r.ha=n),i&&uu(r,i),r.reload().then((function(){return r}))}(n,e,t.G,t.Ga())})).then((function(e){return nd(t)&&e.uid==nd(t).uid?(Su(nd(t),e),t.da(e)):(Zu(t,e),gu(e),t.da(e))})).then((function(){rd(t)}))}(t,e)}),(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=$l(e.w(),t,w(t.jc,t))),n||e})).then((function(){return $i({user:nd(t),credential:n,additionalUserInfo:i,operationType:"signIn"})})))}function ed(t){return t.app}function nd(t){return t.currentUser}function id(t){return nd(t)&&nd(t)._lat||null}function rd(t){if(t.ba){for(var e=0;e<t.u.length;e++)t.u[e]&&t.u[e](id(t));if(t.X!==t.getUid()&&t.P.length)for(t.X=t.getUid(),e=0;e<t.P.length;e++)t.P[e]&&t.P[e](id(t))}}function od(t,e){return t.R.push(e),e.na((function(){$(t.R,e)})),e}function sd(){}function ad(){this.a={},this.b=1e12}Vu.prototype.wb=function(t){var e=null,n=this;return function(t){var e=new S("invalid-persistence-type"),n=new S("unsupported-persistence-type");t:{for(i in qc)if(qc[i]==t){var i=!0;break t}i=!1}if(!i||"string"!=typeof t)throw e;switch(_i()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!Cc()&&"none"!==t)throw n;break;default:if(!Ti()&&"none"!==t)throw n}}(t),Ju(this,(function(){return t!=n.c.D?n.b.get(n.c,n.a).then((function(i){return e=i,ju(n,t)})).then((function(){if(n.c=zu(t),e)return n.b.set(n.c,e,n.a)})):Te()}))},O(Yu,vn),O($u,$e),O(Wu,$e),O(Ku,$e),(t=Yu.prototype).wb=function(t){return od(this,t=this.l.wb(t))},t.wa=function(t){this.aa===t||this.m||(this.aa=t,Ks(this.a,this.aa),this.dispatchEvent(new $u(this.ka())))},t.ka=function(){return this.aa},t.ed=function(){var t=c.navigator;this.wa(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},t.fd=function(t){if(!this.f){if(!/^https?:\/\//.test(t))throw new S("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");Vi("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),c.document&&mi().then((function(){var t=c.document.createElement("div");t.innerText="Running in emulator mode. Do not use with production credentials.",t.style.position="fixed",t.style.width="100%",t.style.backgroundColor="#ffffff",t.style.border=".1em solid #000000",t.style.color="#ff0000",t.style.bottom="0px",t.style.left="0px",t.style.margin="0px",t.style.zIndex=1e4,t.style.textAlign="center",t.classList.add("firebase-emulator-warning"),c.document.body.appendChild(t)})),this.f={url:t},this.settings.hb=!0,Qs(this.a,this.f),this.dispatchEvent(new Wu(this.f))}},t.Fc=function(t){this.N.push(t),Zs(this.a,e.SDK_VERSION?xi(e.SDK_VERSION,this.N):null),this.dispatchEvent(new Ku(this.N))},t.Ga=function(){return Q(this.N)},t.xb=function(t){this.W===t||this.m||(this.W=t,this.a.b=this.W)},t.S=function(){return this.W},t.toJSON=function(){return{apiKey:ed(this).options.apiKey,authDomain:ed(this).options.authDomain,appName:ed(this).name,currentUser:nd(this)&&nd(this).w()}},t.Eb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.h==e&&!!this.g;default:return!1}},t.ma=function(t,e,n,i){"signInViaPopup"==t&&this.h==i&&(n&&this.O?this.O(n):e&&!n&&this.g&&this.g(e),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},t.Fa=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.h==e&&this.g?w(this.hc,this):null},t.hc=function(t,e,n,i){var r=this,o={requestUri:t,postBody:i,sessionId:e,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),r.$.then((function(){return td(r,ha(r.a,o))}))},t.Wc=function(t){if(!Di())return De(new S("operation-not-supported-in-this-environment"));var n=this,i=Hr(t.providerId),r=Ui(),o=null;(!Ei()||bi())&&ed(this).options.authDomain&&t.isOAuthProvider&&(o=uc(ed(this).options.authDomain,ed(this).options.apiKey,ed(this).name,"signInViaPopup",t,null,r,e.SDK_VERSION||null,null,null,this.S(),this.f));var s=di(o,i&&i.ua,i&&i.ta);return od(this,i=Qu(this).then((function(e){return Dl(e,s,"signInViaPopup",t,r,!!o,n.S())})).then((function(){return new ve((function(t,e){n.ma("signInViaPopup",null,new S("cancelled-popup-request"),n.h),n.g=t,n.O=e,n.h=r,n.c=El(n.b,n,"signInViaPopup",s,r)}))})).then((function(t){return s&&ui(s),t?$i(t):null})).s((function(t){throw s&&ui(s),t})))},t.Xc=function(t){if(!Di())return De(new S("operation-not-supported-in-this-environment"));var e=this;return od(this,Qu(this).then((function(){return function(t){return Ju(t,(function(){return t.b.set(Bu,t.c.D,t.a)}))}(e.l)})).then((function(){return Pl(e.b,"signInViaRedirect",t,void 0,e.S())})))},t.qa=function(){var t=this;return Xu(this).then((function(e){return t.b&&Rl(t.b.b),e})).s((function(e){throw t.b&&Rl(t.b.b),e}))},t.cd=function(t){if(!t)return De(new S("null-user"));if(this.W!=t.tenantId)return De(new S("tenant-id-mismatch"));var e=this,n={};n.apiKey=ed(this).options.apiKey,n.authDomain=ed(this).options.authDomain,n.appName=ed(this).name;var i=function(t,e,n,i){var r=t.b,o={};return o[Gs]=r.b&&r.b.toString(),o.refreshToken=r.a,e=new au(e||{apiKey:t.l,authDomain:t.o,appName:t.m},o),n&&(e.ha=n),i&&uu(e,i),Su(e,t),e}(t,n,e.G,e.Ga());return od(this,this.i.then((function(){if(ed(e).options.apiKey!=t.l)return i.reload()})).then((function(){return nd(e)&&t.uid==nd(e).uid?(Su(nd(e),t),e.da(t)):(Zu(e,i),gu(i),e.da(i))})).then((function(){rd(e)})))},t.zb=function(){var t=this;return od(this,this.i.then((function(){return t.b&&Rl(t.b.b),nd(t)?(Zu(t,null),Hu(t.l).then((function(){rd(t)}))):Te()})))},t.Yc=function(){var t=this;return Gu(this.l,ed(this).options.authDomain).then((function(e){if(!t.m){var n;if(n=nd(t)&&e){n=nd(t).uid;var i=e.uid;n=null!=n&&""!==n&&null!=i&&""!==i&&n==i}if(n)return Su(nd(t),e),nd(t).I();(nd(t)||e)&&(Zu(t,e),e&&(gu(e),e.ha=t.G),t.b&&xl(t.b,t),rd(t))}}))},t.da=function(t){return qu(this.l,t)},t.kc=function(){rd(this),this.da(nd(this))},t.vc=function(){this.zb()},t.wc=function(){this.zb()},t.jc=function(t){var e=this;return this.i.then((function(){return td(e,Te(t))}))},t.yc=function(t){var e=this;this.addAuthTokenListener((function(){t.next(nd(e))}))},t.zc=function(t){var e=this;!function(t,e){t.P.push(e),od(t,t.i.then((function(){!t.m&&Y(t.P,e)&&t.X!==t.getUid()&&(t.X=t.getUid(),e(id(t)))})))}(this,(function(){t.next(nd(e))}))},t.Hc=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then((function(){"function"==typeof t?t(nd(i)):"function"==typeof t.next&&t.next(nd(i))})),this.ac(t,e,n)},t.Gc=function(t,e,n){var i=this;return this.ba&&Promise.resolve().then((function(){i.X=i.getUid(),"function"==typeof t?t(nd(i)):"function"==typeof t.next&&t.next(nd(i))})),this.bc(t,e,n)},t.mc=function(t){var e=this;return od(this,this.i.then((function(){return nd(e)?nd(e).I(t).then((function(t){return{accessToken:t}})):null})))},t.Sc=function(t){var e=this;return this.i.then((function(){return td(e,Wa(e.a,qa,{token:t}))})).then((function(t){var n=t.user;return Ou(n,"isAnonymous",!1),e.da(n),t}))},t.Tc=function(t,e){var n=this;return this.i.then((function(){return td(n,Wa(n.a,Ha,{email:t,password:e}))}))},t.dc=function(t,e){var n=this;return this.i.then((function(){return td(n,Wa(n.a,_a,{email:t,password:e}))}))},t.Za=function(t){var e=this;return this.i.then((function(){return td(e,t.ja(e.a))}))},t.Rc=function(t){return Hi("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Za(t)},t.yb=function(){var t=this;return this.i.then((function(){var e=nd(t);if(e&&e.isAnonymous){var n=$i({providerId:null,isNewUser:!1});return $i({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return td(t,t.a.yb()).then((function(e){var n=e.user;return Ou(n,"isAnonymous",!0),t.da(n),e}))}))},t.getUid=function(){return nd(this)&&nd(this).uid||null},t.cc=function(t){this.addAuthTokenListener(t),this.A++,0<this.A&&nd(this)&&pu(nd(this))},t.Oc=function(t){var e=this;q(this.u,(function(n){n==t&&e.A--})),0>this.A&&(this.A=0),0==this.A&&nd(this)&&mu(nd(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.u.push(t),od(this,this.i.then((function(){e.m||Y(e.u,t)&&t(id(e))})))},t.removeAuthTokenListener=function(t){W(this.u,(function(e){return e==t}))},t.delete=function(){this.m=!0;for(var t=0;t<this.R.length;t++)this.R[t].cancel("app-deleted");return this.R=[],this.l&&(t=this.l).b.removeListener(zu("local"),t.a,this.pa),this.b&&(Ol(this.b,this),Rl(this.b.b)),Promise.resolve()},t.gc=function(t){return od(this,function(t,e){return Wa(t,va,{identifier:e,continueUri:ki()?ai():"http://localhost"}).then((function(t){return t.signinMethods||[]}))}(this.a,t))},t.Ac=function(t){return!!ko(t)},t.vb=function(t,e){var n=this;return od(this,Te().then((function(){var t=new Tr(e);if(!t.c)throw new S("argument-error",Pr+" must be true when sending sign in link to email");return Rr(t)})).then((function(e){return n.a.vb(t,e)})).then((function(){})))},t.hd=function(t){return this.Qa(t).then((function(t){return t.data.email}))},t.mb=function(t,e){return od(this,this.a.mb(t,e).then((function(){})))},t.Qa=function(t){return od(this,this.a.Qa(t).then((function(t){return new ir(t)})))},t.ib=function(t){return od(this,this.a.ib(t).then((function(){})))},t.ub=function(t,e){var n=this;return od(this,Te().then((function(){return void 0===e||pt(e)?{}:Rr(new Tr(e))})).then((function(e){return n.a.ub(t,e)})).then((function(){})))},t.Vc=function(t,e){return od(this,zl(this,t,e,w(this.Za,this)))},t.Uc=function(t,e){var n=this;return od(this,Te().then((function(){var i=e||ai(),r=Do(t,i);if(!(i=ko(i)))throw new S("argument-error","Invalid email link!");if(i.tenantId!==n.S())throw new S("tenant-id-mismatch");return n.Za(r)})))},sd.prototype.render=function(){},sd.prototype.reset=function(){},sd.prototype.getResponse=function(){},sd.prototype.execute=function(){};var cd=null;function ld(t,e){return(e=ud(e))&&t.a[e]||null}function ud(t){return(t=void 0===t?1e12:t)?t.toString():null}function dd(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=se(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():an(this.f,"click",this.i)}function hd(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function pd(){}function md(){}ad.prototype.render=function(t,e){return this.a[this.b.toString()]=new dd(t,e),this.b++},ad.prototype.reset=function(t){var e=ld(this,t);t=ud(t),e&&t&&(e.delete(),delete this.a[t])},ad.prototype.getResponse=function(t){return(t=ld(this,t))?t.getResponse():null},ad.prototype.execute=function(t){(t=ld(this,t))&&t.execute()},dd.prototype.getResponse=function(){return hd(this),this.b},dd.prototype.execute=function(){hd(this);var t=this;this.a||(this.a=setTimeout((function(){t.b=function(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(i){}t.a=setTimeout((function(){if(t.a=null,t.b=null,n)try{n()}catch(i){}t.h&&t.execute()}),6e4)}),500))},dd.prototype.delete=function(){hd(this),this.g=!0,clearTimeout(this.a),this.a=null,un(this.f,"click",this.i)},Ji(pd,"FACTOR_ID","phone"),md.prototype.g=function(){return cd||(cd=new ad),Te(cd)},md.prototype.c=function(){};var fd=null;function bd(){this.b=c.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var gd=new _t(wt,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),_d=new Ni(3e4,6e4);bd.prototype.g=function(t){var e=this;return new ve((function(n,i){var r=setTimeout((function(){i(new S("network-request-failed"))}),_d.get());!c.grecaptcha||t!==e.f&&!e.b?(c[e.a]=function(){if(c.grecaptcha){e.f=t;var o=c.grecaptcha.render;c.grecaptcha.render=function(t,n){return t=o(t,n),e.b++,t},clearTimeout(r),n(c.grecaptcha)}else clearTimeout(r),i(new S("internal-error"));delete c[e.a]},Te(Rs(St(gd,{onload:e.a,hl:t||""}))).s((function(){clearTimeout(r),i(new S("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(r),n(c.grecaptcha))}))},bd.prototype.c=function(){this.b--};var vd=null;function yd(t,e,n,i,r,o,s){if(Ji(this,"type","recaptcha"),this.c=this.f=null,this.A=!1,this.m=e,this.g=null,s?(fd||(fd=new md),s=fd):(vd||(vd=new bd),s=vd),this.v=s,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[xd])throw new S("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Od],!c.document)throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!se(e)||!this.i&&se(e).hasChildNodes())throw new S("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new qs(t,o||null,r||null),this.u=i||function(){return null};var a=this;this.l=[];var l=this.a[wd];this.a[wd]=function(t){if(Sd(a,t),"function"==typeof l)l(t);else if("string"==typeof l){var e=Si(l,c);"function"==typeof e&&e(t)}};var u=this.a[Cd];this.a[Cd]=function(){if(Sd(a,null),"function"==typeof u)u();else if("string"==typeof u){var t=Si(u,c);"function"==typeof t&&t()}}}var wd="callback",Cd="expired-callback",xd="sitekey",Od="size";function Sd(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(i){}}function Td(t,e){return t.h.push(e),e.na((function(){$(t.h,e)})),e}function Dd(t){if(t.A)throw new S("internal-error","RecaptchaVerifier instance has been destroyed.")}function kd(t,n,i){var r=!1;try{this.b=i||e.app()}catch(a){throw new S("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new S("invalid-api-key");i=this.b.options.apiKey;var o=this,s=null;try{s=this.b.auth().Ga()}catch(a){}try{r=this.b.auth().settings.appVerificationDisabledForTesting}catch(a){}s=e.SDK_VERSION?xi(e.SDK_VERSION,s):null,yd.call(this,i,t,n,(function(){try{var t=o.b.auth().ka()}catch(e){t=null}return t}),s,A(D),r)}function Pd(t,e,n,i){t:{n=Array.prototype.slice.call(n);for(var r=0,o=!1,s=0;s<e.length;s++)if(e[s].optional)o=!0;else{if(o)throw new S("internal-error","Argument validator encountered a required argument after an optional argument.");r++}if(o=e.length,n.length<r||o<n.length)i="Expected "+(r==o?1==r?"1 argument":r+" arguments":r+"-"+o+" arguments")+" but got "+n.length+".";else{for(r=0;r<n.length;r++)if(o=e[r].optional&&void 0===n[r],!e[r].K(n[r])&&!o){if(e=e[r],0>r||r>=Ed.length)throw new S("internal-error","Argument validator received an unsupported number of arguments.");n=Ed[r],i=(i?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}i=null}}if(i)throw new S("argument-error",t+" failed: "+i)}(t=yd.prototype).Ia=function(){var t=this;return this.f?this.f:this.f=Td(this,Te().then((function(){if(ki()&&!gi())return mi();throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.v.g(t.u())})).then((function(e){return t.g=e,Wa(t.o,Ia,{})})).then((function(e){t.a[xd]=e.recaptchaSiteKey})).s((function(e){throw t.f=null,e})))},t.render=function(){Dd(this);var t=this;return Td(this,this.Ia().then((function(){if(null===t.c){var e=t.m;if(!t.i){var n=se(e);e=function(t,e,n){var i=arguments,r=document,o=String(i[0]),s=i[1];if(!oe&&s&&(s.name||s.type)){if(o=["<",o],s.name&&o.push(' name="',zt(s.name),'"'),s.type){o.push(' type="',zt(s.type),'"');var a={};bt(a,s),delete a.type,s=a}o.push(">"),o=o.join("")}return o=he(r,o),s&&("string"==typeof s?o.className=s:Array.isArray(s)?o.className=s.join(" "):ae(o,s)),2<i.length&&de(r,o,i),o}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c})))},t.verify=function(){Dd(this);var t=this;return Td(this,this.render().then((function(e){return new ve((function(n){var i=t.g.getResponse(e);if(i)n(i);else{var r=function(e){e&&(function(t,e){W(t.l,(function(t){return t==e}))}(t,r),n(e))};t.l.push(r),t.i&&t.g.execute(t.c)}}))})))},t.reset=function(){Dd(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){Dd(this),this.A=!0,this.v.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=se(this.m);for(var e;e=t.firstChild;)t.removeChild(e)}},O(kd,yd);var Ed="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Ad(t,e){return{name:t||"",J:"a valid string",optional:!!e,K:function(t){return"string"==typeof t}}}function Id(t,e){return{name:t||"",J:"a boolean",optional:!!e,K:function(t){return"boolean"==typeof t}}}function Md(t,e){return{name:t||"",J:"a valid object",optional:!!e,K:f}}function Ud(t,e){return{name:t||"",J:"a function",optional:!!e,K:function(t){return"function"==typeof t}}}function Ld(t,e){return{name:t||"",J:"null",optional:!!e,K:function(t){return null===t}}}function Rd(t){return{name:t?t+"Credential":"credential",J:t?"a valid "+t+" credential":"a valid credential",optional:!1,K:function(e){return!!e&&!(!e.ja||t&&e.providerId!==t)}}}function Nd(t,e){return f(t)&&"string"==typeof t.type&&t.type===e&&"function"==typeof t.Ha}function Fd(t){return f(t)&&"string"==typeof t.uid}function Vd(t,e,n,i){return{name:n||"",J:t.J+" or "+e.J,optional:!!i,K:function(n){return t.K(n)||e.K(n)}}}function jd(t,e){for(var n in e){var i=e[n].name;t[i]=qd(i,t[n],e[n].j)}}function Bd(t,e){for(var n in e){var i=e[n].name;i!==n&&Object.defineProperty(t,i,{get:C((function(t){return this[t]}),n),set:C((function(t,e,n,i){Pd(t,[n],[i],!0),this[e]=i}),i,n,e[n].jb),enumerable:!0})}}function zd(t,e,n,i){t[e]=qd(e,n,i)}function qd(t,e,n){function i(){var t=Array.prototype.slice.call(arguments);return Pd(o,n,t),e.apply(this,t)}if(!n)return e;var r,o=function(t){return(t=t.split("."))[t.length-1]}(t);for(r in e)i[r]=e[r];for(r in e.prototype)i.prototype[r]=e.prototype[r];return i}jd(Yu.prototype,{ib:{name:"applyActionCode",j:[Ad("code")]},Qa:{name:"checkActionCode",j:[Ad("code")]},mb:{name:"confirmPasswordReset",j:[Ad("code"),Ad("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[Ad("email"),Ad("password")]},gc:{name:"fetchSignInMethodsForEmail",j:[Ad("email")]},qa:{name:"getRedirectResult",j:[]},Ac:{name:"isSignInWithEmailLink",j:[Ad("emailLink")]},Gc:{name:"onAuthStateChanged",j:[Vd(Md(),Ud(),"nextOrObserver"),Ud("opt_error",!0),Ud("opt_completed",!0)]},Hc:{name:"onIdTokenChanged",j:[Vd(Md(),Ud(),"nextOrObserver"),Ud("opt_error",!0),Ud("opt_completed",!0)]},ub:{name:"sendPasswordResetEmail",j:[Ad("email"),Vd(Md("opt_actionCodeSettings",!0),Ld(null,!0),"opt_actionCodeSettings",!0)]},vb:{name:"sendSignInLinkToEmail",j:[Ad("email"),Md("actionCodeSettings")]},wb:{name:"setPersistence",j:[Ad("persistence")]},Rc:{name:"signInAndRetrieveDataWithCredential",j:[Rd()]},yb:{name:"signInAnonymously",j:[]},Za:{name:"signInWithCredential",j:[Rd()]},Sc:{name:"signInWithCustomToken",j:[Ad("token")]},Tc:{name:"signInWithEmailAndPassword",j:[Ad("email"),Ad("password")]},Uc:{name:"signInWithEmailLink",j:[Ad("email"),Ad("emailLink",!0)]},Vc:{name:"signInWithPhoneNumber",j:[Ad("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Wc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Xc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},cd:{name:"updateCurrentUser",j:[Vd({name:"user",J:"an instance of Firebase User",optional:!1,K:function(t){return!!(t&&t instanceof au)}},Ld(),"user")]},zb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Ad(null,!0)]},ed:{name:"useDeviceLanguage",j:[]},fd:{name:"useEmulator",j:[Ad("url")]},hd:{name:"verifyPasswordResetCode",j:[Ad("code")]}}),Bd(Yu.prototype,{lc:{name:"languageCode",jb:Vd(Ad(),Ld(),"languageCode")},ti:{name:"tenantId",jb:Vd(Ad(),Ld(),"tenantId")}}),(Yu.Persistence=qc).LOCAL="local",Yu.Persistence.SESSION="session",Yu.Persistence.NONE="none",jd(au.prototype,{delete:{name:"delete",j:[]},nc:{name:"getIdTokenResult",j:[Id("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Id("opt_forceRefresh",!0)]},Bc:{name:"linkAndRetrieveDataWithCredential",j:[Rd()]},pb:{name:"linkWithCredential",j:[Rd()]},Cc:{name:"linkWithPhoneNumber",j:[Ad("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Dc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Ec:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Kc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Rd()]},sb:{name:"reauthenticateWithCredential",j:[Rd()]},Lc:{name:"reauthenticateWithPhoneNumber",j:[Ad("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]},Mc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Nc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},tb:{name:"sendEmailVerification",j:[Vd(Md("opt_actionCodeSettings",!0),Ld(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Ad(null,!0)]},bd:{name:"unlink",j:[Ad("provider")]},Ab:{name:"updateEmail",j:[Ad("email")]},Bb:{name:"updatePassword",j:[Ad("password")]},dd:{name:"updatePhoneNumber",j:[Rd("phone")]},Cb:{name:"updateProfile",j:[Md("profile")]},Db:{name:"verifyBeforeUpdateEmail",j:[Ad("email"),Vd(Md("opt_actionCodeSettings",!0),Ld(null,!0),"opt_actionCodeSettings",!0)]}}),jd(ad.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),jd(sd.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),jd(ve.prototype,{na:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),Bd(jl.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",jb:Id("appVerificationDisabledForTesting")}}),jd(Bl.prototype,{confirm:{name:"confirm",j:[Ad("verificationCode")]}}),zd(ro,"fromJSON",(function(t){t="string"==typeof t?JSON.parse(t):t;for(var e,n=[ho,So,Eo,co],i=0;i<n.length;i++)if(e=n[i](t))return e;return null}),[Vd(Ad(),Md(),"json")]),zd(To,"credential",(function(t,e){return new Oo(t,e)}),[Ad("email"),Ad("password")]),jd(Oo.prototype,{w:{name:"toJSON",j:[Ad(null,!0)]}}),jd(bo.prototype,{Ca:{name:"addScope",j:[Ad("scope")]},Ka:{name:"setCustomParameters",j:[Md("customOAuthParameters")]}}),zd(bo,"credential",go,[Vd(Ad(),Md(),"token")]),zd(To,"credentialWithLink",Do,[Ad("email"),Ad("emailLink")]),jd(_o.prototype,{Ca:{name:"addScope",j:[Ad("scope")]},Ka:{name:"setCustomParameters",j:[Md("customOAuthParameters")]}}),zd(_o,"credential",vo,[Vd(Ad(),Md(),"token")]),jd(yo.prototype,{Ca:{name:"addScope",j:[Ad("scope")]},Ka:{name:"setCustomParameters",j:[Md("customOAuthParameters")]}}),zd(yo,"credential",wo,[Vd(Ad(),Vd(Md(),Ld()),"idToken"),Vd(Ad(),Ld(),"accessToken",!0)]),jd(Co.prototype,{Ka:{name:"setCustomParameters",j:[Md("customOAuthParameters")]}}),zd(Co,"credential",xo,[Vd(Ad(),Md(),"token"),Ad("secret",!0)]),jd(fo.prototype,{Ca:{name:"addScope",j:[Ad("scope")]},credential:{name:"credential",j:[Vd(Ad(),Vd(Md(),Ld()),"optionsOrIdToken"),Vd(Ad(),Ld(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Md("customOAuthParameters")]}}),jd(lo.prototype,{w:{name:"toJSON",j:[Ad(null,!0)]}}),jd(so.prototype,{w:{name:"toJSON",j:[Ad(null,!0)]}}),zd(Io,"credential",Mo,[Ad("verificationId"),Ad("verificationCode")]),jd(Io.prototype,{eb:{name:"verifyPhoneNumber",j:[Vd(Ad(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(t){return!!t&&(t.session&&t.phoneNumber?Nd(t.session,no)&&"string"==typeof t.phoneNumber:t.session&&t.multiFactorHint?Nd(t.session,io)&&Fd(t.multiFactorHint):t.session&&t.multiFactorUid?Nd(t.session,io)&&"string"==typeof t.multiFactorUid:!!t.phoneNumber&&"string"==typeof t.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!=typeof t.type||"function"!=typeof t.verify)}}]}}),jd(Po.prototype,{w:{name:"toJSON",j:[Ad(null,!0)]}}),jd(S.prototype,{toJSON:{name:"toJSON",j:[Ad(null,!0)]}}),jd(zo.prototype,{toJSON:{name:"toJSON",j:[Ad(null,!0)]}}),jd(Bo.prototype,{toJSON:{name:"toJSON",j:[Ad(null,!0)]}}),jd(Yl.prototype,{toJSON:{name:"toJSON",j:[Ad(null,!0)]}}),jd(Hl.prototype,{Qc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.rb}}]}}),jd(Zl.prototype,{Qb:{name:"getSession",j:[]},ec:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.rb}},Ad("displayName",!0)]},ad:{name:"unenroll",j:[Vd({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Fd},Ad(),"multiFactorInfoIdentifier")]}}),jd(kd.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),zd(gr,"parseLink",Sr,[Ad("link")]),zd(pd,"assertion",(function(t){return new Ql(t)}),[Rd("phone")]),function(){if(void 0===e||!e.INTERNAL||!e.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:or,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:rr,VERIFY_AND_CHANGE_EMAIL:sr,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Yu,AuthCredential:ro,Error:S};zd(t,"EmailAuthProvider",To,[]),zd(t,"FacebookAuthProvider",bo,[]),zd(t,"GithubAuthProvider",_o,[]),zd(t,"GoogleAuthProvider",yo,[]),zd(t,"TwitterAuthProvider",Co,[]),zd(t,"OAuthProvider",fo,[Ad("providerId")]),zd(t,"SAMLAuthProvider",mo,[Ad("providerId")]),zd(t,"PhoneAuthProvider",Io,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof Yu)}}]),zd(t,"RecaptchaVerifier",kd,[Vd(Ad(),{name:"",J:"an HTML element",optional:!1,K:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Md("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(t){return!!(t&&t instanceof e.app.App)}}]),zd(t,"ActionCodeURL",gr,[]),zd(t,"PhoneMultiFactorGenerator",pd,[]),e.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new Yu(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),e.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:w((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:w(t.mc,t),addAuthTokenListener:w(t.cc,t),removeAuthTokenListener:w(t.Oc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),e.registerVersion("@firebase/auth","0.15.0"),e.INTERNAL.extendNamespace({User:au})}()}).apply("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("z+Ro"),r=n("yCtX"),o=n("jZKg");function s(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(o.a)(t,e)):Object(r.a)(t)}},Lhse:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return r}));const r=i()},MMa0:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n("05qF"))},MhJ4:function(t,e,n){"use strict";var i=n("6aLS");e.switchMapTo=function(t,e){return e?i.switchMap((function(){return t}),e):i.switchMap((function(){return t}))}},MkmW:function(t,e,n){"use strict";e.hostReportError=function(t){setTimeout((function(){throw t}),0)}},MlIO:function(t,e,n){var i,r,o,s,a;t.exports=(i=n("Ib8C"),o=(r=i.lib).Base,s=r.WordArray,(a=i.x64={}).Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var r=t[i];n.push(r.high),n.push(r.low)}return s.create(n,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),n=e.length,i=0;i<n;i++)e[i]=e[i].clone();return t}}),i)},Mxlh:function(t,e,n){"use strict";e.ObjectUnsubscribedError=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},NFKh:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("MlIO"),n("F+F2"),n("qM6L"),n("ETIr"),n("cv67"),n("3y9D"),n("lPiR"),n("GRuw"),n("1uat"),n("uGsb"),n("5hvy"),n("ELcG"),n("WYAk"),n("e7zE"),n("K3mO"),n("OLod"),n("ALsQ"),n("9OqN"),n("qu8F"),n("S6kV"),n("gb/T"),n("qBft"),n("oRuE"),n("jO9C"),n("KmYQ"),n("uGxW"),n("bQjk"),n("wZgz"),n("pA7S"),n("w7YG"),n("E4JC"),n("PVpz"),i)},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return i}))},NTcF:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ffpz");e.AsyncScheduler=function(t){function e(n,i){void 0===i&&(i=r.Scheduler.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():i()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return i(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(r.Scheduler)},NZaV:function(t,e,n){"use strict";var i=n("7RJT"),r=n("7K7o");e.publishBehavior=function(t){return function(e){return r.multicast(new i.BehaviorSubject(t))(e)}}},Njrz:function(t,e,n){var i=n("luTP"),r=n("qGlh"),o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.deconstructPacket=function(t){var e=[],n=t;return n.data=function t(e,n){if(!e)return e;if(r(e)){var o={_placeholder:!0,num:n.length};return n.push(e),o}if(i(e)){for(var s=new Array(e.length),a=0;a<e.length;a++)s[a]=t(e[a],n);return s}if("object"==typeof e&&!(e instanceof Date)){for(var c in s={},e)s[c]=t(e[c],n);return s}return e}(t.data,e),n.attachments=e.length,{packet:n,buffers:e}},e.reconstructPacket=function(t,e){return t.data=function t(e,n){if(!e)return e;if(e&&e._placeholder)return n[e.num];if(i(e))for(var r=0;r<e.length;r++)e[r]=t(e[r],n);else if("object"==typeof e)for(var o in e)e[o]=t(e[o],n);return e}(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,e){var n=0,o=t;!function t(c,l,u){if(!c)return c;if(s&&c instanceof Blob||a&&c instanceof File){n++;var d=new FileReader;d.onload=function(){u?u[l]=this.result:o=this.result,--n||e(o)},d.readAsArrayBuffer(c)}else if(i(c))for(var h=0;h<c.length;h++)t(c[h],h,c);else if("object"==typeof c&&!r(c))for(var p in c)t(c[p],p,c)}(o),n||e(o)}},OAkW:function(t,e,n){"use strict";e.subscribeToArray=function(t){return function(e){for(var n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}}},OHRA:function(t,e,n){"use strict";var i=n("UNqx");e.mergeMapTo=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?i.mergeMap((function(){return t}),e,n):("number"==typeof e&&(n=e),i.mergeMap((function(){return t}),n))}},OLod:function(t,e,n){var i,r,o,s,a,c,l,u,d,h,p,m,f,b,g,_,v,y;t.exports=(i=n("Ib8C"),n("K3mO"),void(i.lib.Cipher||(r=i,o=r.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,l=r.enc.Base64,u=r.algo.EvpKDF,d=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?y:_}return function(e){return{encrypt:function(n,i,r){return t(i).encrypt(e,n,i,r)},decrypt:function(n,i,r){return t(i).decrypt(e,n,i,r)}}}}()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=r.mode={},p=o.BlockCipherMode=s.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),m=h.CBC=function(){var t=p.extend();function e(t,e,n){var i,r=this._iv;r?(i=r,this._iv=void 0):i=this._prevBlock;for(var o=0;o<n;o++)t[e+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize;e.call(this,t,n,r),i.encryptBlock(t,n),this._prevBlock=t.slice(n,n+r)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize,o=t.slice(n,n+r);i.decryptBlock(t,n),e.call(this,t,n,r),this._prevBlock=o}}),t}(),f=(r.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o.push(r);var c=a.create(o,i);t.concat(c)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:f}),reset:function(){var t;d.reset.call(this);var e=this.cfg,n=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(i,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),b=o.CipherParams=s.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),g=(r.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?a.create([1398893684,1701076831]).concat(n).concat(e):e).toString(l)},parse:function(t){var e,n=l.parse(t),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=a.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),b.create({ciphertext:n,salt:e})}},_=o.SerializableCipher=s.extend({cfg:s.extend({format:g}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var r=t.createEncryptor(n,i),o=r.finalize(e),s=r.cfg;return b.create({ciphertext:o,key:n,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(n,i).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),v=(r.kdf={}).OpenSSL={execute:function(t,e,n,i){i||(i=a.random(8));var r=u.create({keySize:e+n}).compute(t,i),o=a.create(r.words.slice(e),4*n);return r.sigBytes=4*e,b.create({key:r,iv:o,salt:i})}},y=o.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:v}),encrypt:function(t,e,n,i){var r=(i=this.cfg.extend(i)).kdf.execute(n,t.keySize,t.ivSize);i.iv=r.iv;var o=_.encrypt.call(this,t,e,r.key,i);return o.mixIn(r),o},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var r=i.kdf.execute(n,t.keySize,t.ivSize,e.salt);return i.iv=r.iv,_.decrypt.call(this,t,e,r.key,i)}}))))},Oipj:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n("KDZV"))},"P+eR":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("Q1FS"),o=n("zvlq"),s=n("p0+S");e.SubscribeOnObservable=function(t){function e(e,n,i){void 0===n&&(n=0),void 0===i&&(i=o.asap);var r=t.call(this)||this;return r.source=e,r.delayTime=n,r.scheduler=i,(!s.isNumeric(n)||n<0)&&(r.delayTime=0),i&&"function"==typeof i.schedule||(r.scheduler=o.asap),r}return i(e,t),e.create=function(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=o.asap),new e(t,n,i)},e.dispatch=function(t){return this.add(t.source.subscribe(t.subscriber))},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.delayTime,{source:this.source,subscriber:t})},e}(r.Observable)},PVpz:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var t=i,e=t.lib.StreamCipher,n=[],r=[],o=[],s=t.algo.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)a.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,s=o[0],c=o[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),u=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;for(i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h,r=0;r<4;r++)a.call(this)}},_doProcessBlock:function(t,e){var i=this._X;a.call(this),n[0]=i[0]^i[5]>>>16^i[3]<<16,n[1]=i[2]^i[7]>>>16^i[5]<<16,n[2]=i[4]^i[1]>>>16^i[7]<<16,n[3]=i[6]^i[3]>>>16^i[1]<<16;for(var r=0;r<4;r++)n[r]=16711935&(n[r]<<8|n[r]>>>24)|4278255360&(n[r]<<24|n[r]>>>8),t[e+r]^=n[r]},blockSize:4,ivSize:2});function a(){for(var t=this._X,e=this._C,n=0;n<8;n++)r[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<r[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<r[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<r[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<r[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<r[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<r[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<r[6]>>>0?1:0)|0,this._b=e[7]>>>0<r[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],s=65535&i,a=i>>>16;o[n]=((s*s>>>17)+s*a>>>15)+a*a^((4294901760&i)*i|0)+((65535&i)*i|0)}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),i.RabbitLegacy)},Q1FS:function(t,e,n){"use strict";var i=n("yx2s"),r=n("Xwq/"),o=n("zfKp"),s=n("9AGB"),a=n("n3uD");function c(t){if(t||(t=a.config.Promise||Promise),!t)throw new Error("no Promise impl found");return t}e.Observable=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var i=this.operator,o=r.toSubscriber(t,e,n);if(o.add(i?i.call(o,this.source):this.source||a.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.config.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.config.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),i.canReportError(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=c(e))((function(e,i){var r;r=n.subscribe((function(e){try{t(e)}catch(n){i(n),r&&r.unsubscribe()}}),i,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=c(t))((function(t,n){var i;e.subscribe((function(t){return i=t}),(function(t){return n(t)}),(function(){return t(i)}))}))},t.create=function(e){return new t(e)},t}()},QN7Q:function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var i=n.call(arguments,2);return function(){return e.apply(t,i.concat(n.call(arguments)))}}},QUyD:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("1pIY"),o=n("FWf1"),s=n("nzqU");e.bufferTime=function(t){var e=arguments.length,n=r.async;s.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var i=null;e>=2&&(i=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),function(e){return e.lift(new a(t,i,o,n))}};var a=function(){function t(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),c=function(){return function(){this.buffer=[]}}(),l=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=i,s.maxBufferSize=r,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==i||i<0,s.timespanOnly)s.add(a.closeAction=o.schedule(u,n,{subscriber:s,context:a,bufferTimeSpan:n}));else{var c={bufferTimeSpan:n,bufferCreationInterval:i,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(h,n,{subscriber:s,context:a})),s.add(o.schedule(d,i,c))}return s}return i(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,i=n.length,r=0;r<i;r++){var o=n[r],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var i=e.shift();n.next(i.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(u,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new c;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(o.Subscriber);function u(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function d(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,i=t.subscriber,r=t.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=r.schedule(h,n,{subscriber:i,context:o})),this.schedule(t,e))}function h(t){t.subscriber.closeContext(t.context)}},Qlto:function(t,e,n){"use strict";var i=n("B/hR");e.distinctUntilKeyChanged=function(t,e){return i.distinctUntilChanged((function(n,i){return e?e(n[t],i[t]):n[t]===i[t]}))}},QtHX:function(t,e,n){"use strict";var i=n("UNqx"),r=n("yoF8");e.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),i.mergeMap(r.identity,t)}},R7wr:function(t,e,n){"use strict";e.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},RmLz:function(t,e,n){"use strict";var i=n("IKMM"),r=n("nzqU");e.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return r.isScheduler(n)?(t.pop(),function(e){return i.concat(t,e,n)}):function(e){return i.concat(t,e)}}},"S+S0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("30Go"),r=n("zVF4"),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),s=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t="[DEFAULT]");var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new r.Deferred;this.instancesDeferred.set(e,n);try{var i=this.getOrInitializeService(e);i&&n.resolve(i)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=i.__assign({identifier:"[DEFAULT]",optional:!1},t),n=e.optional,r=this.normalizeInstanceIdentifier(e.identifier);try{var o=this.getOrInitializeService(r);if(!o){if(n)return null;throw Error("Service "+this.name+" is not available")}return o}catch(s){if(n)return null;throw s}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService("[DEFAULT]")}catch(u){}try{for(var r=i.__values(this.instancesDeferred.entries()),o=r.next();!o.done;o=r.next()){var s=i.__read(o.value,2),a=s[1],c=this.normalizeInstanceIdentifier(s[0]);try{var l=this.getOrInitializeService(c);a.resolve(l)}catch(u){}}}catch(d){e={error:d}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t="[DEFAULT]"),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(i.__spread(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})),t.filter((function(t){return"_delete"in t})).map((function(t){return t._delete()}))))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,function(t){return"[DEFAULT]"===t?void 0:t}(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:"[DEFAULT]":t},t}(),a=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new s(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=o,e.ComponentContainer=a,e.Provider=s},S6kV:function(t,e,n){var i,r,o;t.exports=(o=n("Ib8C"),n("OLod"),o.mode.OFB=(r=(i=o.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<i;s++)t[e+s]^=o[s]}}),i.Decryptor=r,i),o.mode.OFB)},SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("ngJS"),r=n("NJ4a"),o=n("Lhse"),s=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=t=>{if(t&&"function"==typeof t[s.a])return u=t,t=>{const e=u[s.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(i.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,r.a),t);if(t&&"function"==typeof t[o.a])return e=t,t=>{const n=e[o.a]();for(;;){let e;try{e=n.next()}catch(i){return t.error(i),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},Sp1V:function(t,e,n){(function(t){var n;!function(i,r){var o=function(t){if(!(this instanceof o))return new o(t);for(var e,n,r=this,s=[],a={enable:!0,callbackList:[],interval:5},c=document.getElementsByTagName("script"),l=0;l<c.length;l++)-1===c[l].src.indexOf("keycloak.js")&&-1===c[l].src.indexOf("keycloak.min.js")||-1===c[l].src.indexOf("version=")||(r.iframeVersion=c[l].src.substring(c[l].src.indexOf("version=")+8).split("&")[0]);function u(){return"/"==r.authServerUrl.charAt(r.authServerUrl.length-1)?r.authServerUrl+"realms/"+encodeURIComponent(r.realm):r.authServerUrl+"/realms/"+encodeURIComponent(r.realm)}function d(t,e){var n=t.code,i=t.error,o=t.prompt,s=(new Date).getTime();if(i)if("none"!=o){var a={error:i,error_description:t.error_description};r.onAuthError&&r.onAuthError(a),e&&e.setError(a)}else e&&e.setSuccess();else if("standard"!=r.flow&&(t.access_token||t.id_token)&&p(t.access_token,null,t.id_token,!0),"implicit"!=r.flow&&n){var c="code="+n+"&grant_type=authorization_code",l=u()+"/protocol/openid-connect/token",d=new XMLHttpRequest;d.open("POST",l,!0),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.clientId&&r.clientSecret?d.setRequestHeader("Authorization","Basic "+btoa(r.clientId+":"+r.clientSecret)):c+="&client_id="+encodeURIComponent(r.clientId),c+="&redirect_uri="+t.redirectUri,d.withCredentials=!0,d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status){var t=JSON.parse(d.responseText);p(t.access_token,t.refresh_token,t.id_token,"standard"===r.flow)}else r.onAuthError&&r.onAuthError(),e&&e.setError()},d.send(c)}function p(n,i,o,a){h(n,i,o,s=(s+(new Date).getTime())/2),r.tokenParsed&&r.tokenParsed.nonce!=t.storedNonce||r.refreshTokenParsed&&r.refreshTokenParsed.nonce!=t.storedNonce||r.idTokenParsed&&r.idTokenParsed.nonce!=t.storedNonce?(console.info("[KEYCLOAK] Invalid nonce, clearing token"),r.clearToken(),e&&e.setError()):a&&(r.onAuthSuccess&&r.onAuthSuccess(),e&&e.setSuccess())}}function h(t,e,n,i){if(r.tokenTimeoutHandle&&(clearTimeout(r.tokenTimeoutHandle),r.tokenTimeoutHandle=null),e?(r.refreshToken=e,r.refreshTokenParsed=p(e)):(delete r.refreshToken,delete r.refreshTokenParsed),n?(r.idToken=n,r.idTokenParsed=p(n)):(delete r.idToken,delete r.idTokenParsed),t){if(r.token=t,r.tokenParsed=p(t),r.sessionId=r.tokenParsed.session_state,r.authenticated=!0,r.subject=r.tokenParsed.sub,r.realmAccess=r.tokenParsed.realm_access,r.resourceAccess=r.tokenParsed.resource_access,i&&(r.timeSkew=Math.floor(i/1e3)-r.tokenParsed.iat),null!=r.timeSkew&&(console.info("[KEYCLOAK] Estimated time difference between browser and server is "+r.timeSkew+" seconds"),r.onTokenExpired)){var o=1e3*(r.tokenParsed.exp-(new Date).getTime()/1e3+r.timeSkew);console.info("[KEYCLOAK] Token expires in "+Math.round(o/1e3)+" s"),o<=0?r.onTokenExpired():r.tokenTimeoutHandle=setTimeout(r.onTokenExpired,o)}}else delete r.token,delete r.tokenParsed,delete r.subject,delete r.realmAccess,delete r.resourceAccess,r.authenticated=!1}function p(t){switch((t=(t=(t=t.split(".")[1]).replace("/-/g","+")).replace("/_/g","/")).length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Invalid token"}return t=(t=(t+"===").slice(0,t.length+t.length%4)).replace(/-/g,"+").replace(/_/g,"/"),t=decodeURIComponent(escape(atob(t))),JSON.parse(t)}function m(){for(var t=[],e=0;e<36;e++)t[e]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]="0123456789abcdef".substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}function f(t){var e=new C(t,r.responseMode).parseUri(),i=n.get(e.state);if(i&&(e.code||e.error||e.access_token||e.id_token))return e.redirectUri=i.redirectUri,e.storedNonce=i.nonce,e.prompt=i.prompt,e.fragment&&(e.newUrl+="#"+e.fragment),e}function b(){var t={setSuccess:function(e){t.success=!0,t.result=e,t.successCallback&&t.successCallback(e)},setError:function(e){t.error=!0,t.result=e,t.errorCallback&&t.errorCallback(e)},promise:{success:function(e){return t.success?e(t.result):t.error||(t.successCallback=e),t.promise},error:function(e){return t.error?e(t.result):t.success||(t.errorCallback=e),t.promise}}};return t}function g(){var t=b();if(!a.enable)return t.setSuccess(),t.promise;if(a.iframe)return t.setSuccess(),t.promise;var e=document.createElement("iframe");a.iframe=e,e.onload=function(){var e=u();a.iframeOrigin="/"===e.charAt(0)?i.location.origin?i.location.origin:i.location.protocol+"//"+i.location.hostname+(i.location.port?":"+i.location.port:""):e.substring(0,e.indexOf("/",8)),t.setSuccess(),setTimeout(o,1e3*a.interval)};var n=u()+"/protocol/openid-connect/login-status-iframe.html";r.iframeVersion&&(n=n+"?version="+r.iframeVersion),e.setAttribute("src",n),e.setAttribute("title","keycloak-session-iframe"),e.style.display="none",document.body.appendChild(e),i.addEventListener("message",(function(t){if(t.origin===a.iframeOrigin&&a.iframe.contentWindow===t.source&&("unchanged"==t.data||"changed"==t.data||"error"==t.data)){"unchanged"!=t.data&&r.clearToken();for(var e=a.callbackList.splice(0,a.callbackList.length),n=e.length-1;n>=0;--n){var i=e[n];"unchanged"==t.data?i.setSuccess():i.setError()}}}),!1);var o=function(){_(),r.token&&setTimeout(o,1e3*a.interval)};return t.promise}function _(){var t=b();if(a.iframe&&a.iframeOrigin){var e=r.clientId+" "+r.sessionId;a.callbackList.push(t),1==a.callbackList.length&&a.iframe.contentWindow.postMessage(e,a.iframeOrigin)}else t.setSuccess();return t.promise}function v(t){if(!t||"default"==t)return{login:function(t){return i.location.href=r.createLoginUrl(t),b().promise},logout:function(t){return i.location.href=r.createLogoutUrl(t),b().promise},register:function(t){return i.location.href=r.createRegisterUrl(t),b().promise},accountManagement:function(){return i.location.href=r.createAccountUrl(),b().promise},redirectUri:function(t,e){if(1==arguments.length&&(e=!0),t&&t.redirectUri)return t.redirectUri;if(r.redirectUri)return r.redirectUri;var n=location.href;return location.hash&&e&&(n=n.substring(0,location.href.indexOf("#")),n+=(-1==n.indexOf("?")?"?":"&")+"redirect_fragment="+encodeURIComponent(location.hash.substring(1))),n}};if("cordova"==t){a.enable=!1;var e=function(t,e,n){return i.cordova&&i.cordova.InAppBrowser?i.cordova.InAppBrowser.open(t,e,n):i.open(t,e,n)};return{login:function(t){var n=b(),i="location=no";t&&"none"==t.prompt&&(i+=",hidden=yes");var o=r.createLoginUrl(t),s=e(o,"_blank",i),a=!1;return s.addEventListener("loadstart",(function(t){0==t.url.indexOf("http://localhost")&&(d(f(t.url),n),s.close(),a=!0)})),s.addEventListener("loaderror",(function(t){a||(0==t.url.indexOf("http://localhost")?(d(f(t.url),n),s.close(),a=!0):(n.setError(),s.close()))})),n.promise},logout:function(t){var n,i=b(),o=r.createLogoutUrl(t),s=e(o,"_blank","location=no,hidden=yes");return s.addEventListener("loadstart",(function(t){0==t.url.indexOf("http://localhost")&&s.close()})),s.addEventListener("loaderror",(function(t){0==t.url.indexOf("http://localhost")||(n=!0),s.close()})),s.addEventListener("exit",(function(t){n?i.setError():(r.clearToken(),i.setSuccess())})),i.promise},register:function(){var t=r.createRegisterUrl(),n=e(t,"_blank","location=no");n.addEventListener("loadstart",(function(t){0==t.url.indexOf("http://localhost")&&n.close()}))},accountManagement:function(){var t=r.createAccountUrl(),n=e(t,"_blank","location=no");n.addEventListener("loadstart",(function(t){0==t.url.indexOf("http://localhost")&&n.close()}))},redirectUri:function(t){return"http://localhost"}}}throw"invalid adapter type: "+t}r.init=function(o){if(r.authenticated=!1,n=function(){try{return new y}catch(t){}return new w}(),e=o&&"cordova"===o.adapter?v("cordova"):o&&"default"===o.adapter?v():i.Cordova||i.cordova?v("cordova"):v(),o){if(void 0!==o.checkLoginIframe&&(a.enable=o.checkLoginIframe),o.checkLoginIframeInterval&&(a.interval=o.checkLoginIframeInterval),"login-required"===o.onLoad&&(r.loginRequired=!0),o.responseMode){if("query"!==o.responseMode&&"fragment"!==o.responseMode)throw"Invalid value for responseMode";r.responseMode=o.responseMode}if(o.flow){switch(o.flow){case"standard":r.responseType="code";break;case"implicit":r.responseType="id_token token";break;case"hybrid":r.responseType="code id_token token";break;default:throw"Invalid value for flow"}r.flow=o.flow}null!=o.timeSkew&&(r.timeSkew=o.timeSkew)}r.responseMode||(r.responseMode="fragment"),r.responseType||(r.responseType="code",r.flow="standard");var s=b(),c=b();c.promise.success((function(){r.onReady&&r.onReady(r.authenticated),s.setSuccess(r.authenticated)})).error((function(t){s.setError(t)}));var l=function(e){var n,i=b();if(t?"string"==typeof t&&(n=t):n="keycloak.json",n){var o=new XMLHttpRequest;o.open("GET",n,!0),o.setRequestHeader("Accept","application/json"),o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status||0==(e=o).status&&e.responseText&&e.responseURL.startsWith("file:")){var t=JSON.parse(o.responseText);r.authServerUrl=t["auth-server-url"],r.realm=t.realm,r.clientId=t.resource,r.clientSecret=(t.credentials||{}).secret,i.setSuccess()}else i.setError();var e},o.send()}else{if(!t.url)for(var s=document.getElementsByTagName("script"),a=0;a<s.length;a++)if(s[a].src.match(/.*keycloak\.js/)){t.url=s[a].src.substr(0,s[a].src.indexOf("/js/keycloak.js"));break}if(!t.realm)throw"realm missing";if(!t.clientId)throw"clientId missing";r.authServerUrl=t.url,r.realm=t.realm,r.clientId=t.clientId,r.clientSecret=(t.credentials||{}).secret,i.setSuccess()}return i.promise}();function u(){var t=function(t){t||(e.prompt="none"),r.login(e).success((function(){c.setSuccess()})).error((function(){c.setError()}))},e={};switch(o.onLoad){case"check-sso":a.enable?g().success((function(){_().success((function(){t(!1)})).error((function(){c.setSuccess()}))})):t(!1);break;case"login-required":t(!0);break;default:throw"Invalid value for onLoad"}}return l.success((function(){var t=f(i.location.href);if(t)return g().success((function(){i.history.replaceState({},null,t.newUrl),d(t,c)})).error((function(t){c.setError()}));o?o.token&&o.refreshToken?(h(o.token,o.refreshToken,o.idToken),a.enable?g().success((function(){_().success((function(){r.onAuthSuccess&&r.onAuthSuccess(),c.setSuccess()})).error((function(){h(null,null,null),c.setSuccess()}))})):r.updateToken(-1).success((function(){r.onAuthSuccess&&r.onAuthSuccess(),c.setSuccess()})).error((function(){r.onAuthError&&r.onAuthError(),o.onLoad?u():c.setError()}))):o.onLoad?u():c.setSuccess():c.setSuccess()})),l.error((function(){s.setError()})),s.promise},r.login=function(t){return e.login(t)},r.createLoginUrl=function(t){var i=m(),o=m(),s=e.redirectUri(t),a={state:i,nonce:o,redirectUri:encodeURIComponent(s)};t&&t.prompt&&(a.prompt=t.prompt),n.add(a);var c="auth";t&&"register"==t.action&&(c="registrations");var l=t&&t.scope?"openid "+t.scope:"openid",d=u()+"/protocol/openid-connect/"+c+"?client_id="+encodeURIComponent(r.clientId)+"&redirect_uri="+encodeURIComponent(s)+"&state="+encodeURIComponent(i)+"&nonce="+encodeURIComponent(o)+"&response_mode="+encodeURIComponent(r.responseMode)+"&response_type="+encodeURIComponent(r.responseType)+"&scope="+encodeURIComponent(l);return t&&t.prompt&&(d+="&prompt="+encodeURIComponent(t.prompt)),t&&t.maxAge&&(d+="&max_age="+encodeURIComponent(t.maxAge)),t&&t.loginHint&&(d+="&login_hint="+encodeURIComponent(t.loginHint)),t&&t.idpHint&&(d+="&kc_idp_hint="+encodeURIComponent(t.idpHint)),t&&t.locale&&(d+="&ui_locales="+encodeURIComponent(t.locale)),d},r.logout=function(t){return e.logout(t)},r.createLogoutUrl=function(t){return u()+"/protocol/openid-connect/logout?redirect_uri="+encodeURIComponent(e.redirectUri(t,!1))},r.register=function(t){return e.register(t)},r.createRegisterUrl=function(t){return t||(t={}),t.action="register",r.createLoginUrl(t)},r.createAccountUrl=function(t){return u()+"/account?referrer="+encodeURIComponent(r.clientId)+"&referrer_uri="+encodeURIComponent(e.redirectUri(t))},r.accountManagement=function(){return e.accountManagement()},r.hasRealmRole=function(t){var e=r.realmAccess;return!!e&&e.roles.indexOf(t)>=0},r.hasResourceRole=function(t,e){if(!r.resourceAccess)return!1;var n=r.resourceAccess[e||r.clientId];return!!n&&n.roles.indexOf(t)>=0},r.loadUserProfile=function(){var t=u()+"/account",e=new XMLHttpRequest;e.open("GET",t,!0),e.setRequestHeader("Accept","application/json"),e.setRequestHeader("Authorization","bearer "+r.token);var n=b();return e.onreadystatechange=function(){4==e.readyState&&(200==e.status?(r.profile=JSON.parse(e.responseText),n.setSuccess(r.profile)):n.setError())},e.send(),n.promise},r.loadUserInfo=function(){var t=u()+"/protocol/openid-connect/userinfo",e=new XMLHttpRequest;e.open("GET",t,!0),e.setRequestHeader("Accept","application/json"),e.setRequestHeader("Authorization","bearer "+r.token);var n=b();return e.onreadystatechange=function(){4==e.readyState&&(200==e.status?(r.userInfo=JSON.parse(e.responseText),n.setSuccess(r.userInfo)):n.setError())},e.send(),n.promise},r.isTokenExpired=function(t){if(!r.tokenParsed||!r.refreshToken&&"implicit"!=r.flow)throw"Not authenticated";if(null==r.timeSkew)return console.info("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var e=r.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+r.timeSkew;return t&&(e-=t),e<0},r.updateToken=function(t){var e=b();if(!r.refreshToken)return e.setError(),e.promise;t=t||5;var n=function(){var n=!1;if(-1==t?(n=!0,console.info("[KEYCLOAK] Refreshing token: forced refresh")):r.tokenParsed&&!r.isTokenExpired(t)||(n=!0,console.info("[KEYCLOAK] Refreshing token: token expired")),n){var i="grant_type=refresh_token&refresh_token="+r.refreshToken,o=u()+"/protocol/openid-connect/token";if(s.push(e),1==s.length){var a=new XMLHttpRequest;a.open("POST",o,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.withCredentials=!0,r.clientId&&r.clientSecret?a.setRequestHeader("Authorization","Basic "+btoa(r.clientId+":"+r.clientSecret)):i+="&client_id="+encodeURIComponent(r.clientId);var c=(new Date).getTime();a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){console.info("[KEYCLOAK] Token refreshed"),c=(c+(new Date).getTime())/2;var t=JSON.parse(a.responseText);h(t.access_token,t.refresh_token,t.id_token,c),r.onAuthRefreshSuccess&&r.onAuthRefreshSuccess();for(var e=s.pop();null!=e;e=s.pop())e.setSuccess(!0)}else for(console.warn("[KEYCLOAK] Failed to refresh token"),r.onAuthRefreshError&&r.onAuthRefreshError(),e=s.pop();null!=e;e=s.pop())e.setError(!0)},a.send(i)}}else e.setSuccess(!1)};return a.enable?_().success((function(){n()})).error((function(){e.setError()})):n(),e.promise},r.clearToken=function(){r.token&&(h(null,null,null),r.onAuthLogout&&r.onAuthLogout(),r.loginRequired&&r.login())},r.callback_id=0;var y=function(){if(!(this instanceof y))return new y;function t(){for(var t=(new Date).getTime(),e=0;e<sessionStorage.length;e++){var n=sessionStorage.key(e);if(n&&0==n.indexOf("kc-callback-")){var i=sessionStorage.getItem(n);if(i)try{var r=JSON.parse(i).expires;(!r||r<t)&&sessionStorage.removeItem(n)}catch(o){sessionStorage.removeItem(n)}}}}sessionStorage.setItem("kc-test","test"),sessionStorage.removeItem("kc-test"),this.get=function(e){if(e){var n="kc-callback-"+e,i=sessionStorage.getItem(n);return i&&(sessionStorage.removeItem(n),i=JSON.parse(i)),t(),i}},this.add=function(e){t();var n="kc-callback-"+e.state;e.expires=(new Date).getTime()+36e5,sessionStorage.setItem(n,JSON.stringify(e))}},w=function(){if(!(this instanceof w))return new w;this.get=function(i){if(i){var r=e("kc-callback-"+i);return n("kc-callback-"+i,"",t(-100)),r?JSON.parse(r):void 0}},this.add=function(e){n("kc-callback-"+e.state,JSON.stringify(e),t(60))},this.removeItem=function(e){n(e,"",t(-100))};var t=function(t){var e=new Date;return e.setTime(e.getTime()+60*t*1e3),e},e=function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return""},n=function(t,e,n){var i=t+"="+e+"; expires="+n.toUTCString()+"; ";document.cookie=i}},C=function(t,e){if(!(this instanceof C))return new C(t,e);var n=function(t){for(var e={},n=t.split("&"),i=0;i<n.length;i++){var r=n[i].split("="),o=decodeURIComponent(r[0]),s=decodeURIComponent(r[1]);e[o]=s}return e},i=function(t,e,n){for(var i=["code","state","error","error_description"],r=0;r<i.length;r++)if(t===i[r])return n[t]=e,!0;return!1};this.parseUri=function(){var r,o,s,a,c,l=(r=null,o=null,s=null,a=t.indexOf("?"),c=t.indexOf("#",a+1),-1==a&&-1==c?r=t:-1!=a?(r=t.substring(0,a),o=t.substring(a+1),-1!=c&&(c=o.indexOf("#"),s=o.substring(c+1),o=o.substring(0,c))):(r=t.substring(0,c),s=t.substring(c+1)),{baseUri:r,queryString:o,fragmentString:s}),u={};l.queryString&&(u=n(l.queryString));var d={newUrl:l.baseUri};for(var h in u)switch(h){case"redirect_fragment":d.fragment=u[h];break;default:"query"==e&&i(h,u[h],d)||(d.newUrl+=(-1==d.newUrl.indexOf("?")?"?":"&")+h+"="+encodeURIComponent(u[h]))}if("fragment"===e){var p={};for(var h in l.fragmentString&&(p=n(l.fragmentString)),p)d[h]=p[h]}return d}}};t&&"object"==typeof t.exports?t.exports=o:(i.Keycloak=o,void 0===(n=(function(){return o}).apply(e,[]))||(t.exports=n))}(window)}).call(this,n("YuTi")(t))},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",(function(){return i}))},SqDy:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.count=function(t){return function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.source=i,r.count=0,r.index=0,r}return i(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(r.Subscriber)},Sxl1:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.expand=function(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(i){return i.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=o;var s=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.project=n,o.concurrent=i,o.scheduler=r,o.index=0,o.active=0,o.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return i(e,t),e.dispatch=function(t){t.subscriber.subscribeToProjection(t.result,t.value,t.index)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(t);try{var r=(0,this.project)(t,i);this.scheduler?this.destination.add(this.scheduler.schedule(e.dispatch,0,{subscriber:this,result:r,value:t,index:i})):this.subscribeToProjection(r,t,i)}catch(o){n.error(o)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(r.innerSubscribe(t,new r.SimpleInnerSubscriber(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(r.SimpleOuterSubscriber);e.ExpandSubscriber=s},"T/FJ":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.every=function(t,e){return function(n){return n.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg,this.source))},t}(),s=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(r.Subscriber)},TAn0:function(t,e,n){"use strict";var i=n("6aLS"),r=n("yoF8");e.switchAll=function(){return i.switchMap(r.identity)}},Tkif:function(t,e,n){"use strict";var i=n("YK4L");function r(t,e,n){return 0===n?[e]:(t.push(e),t)}e.toArray=function(){return i.reduce(r,[])}},Tnqc:function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var i in t)n.call(t,i)&&e.push(i);return e}},TypT:function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),i=0,r=n.length;i<r;i++){var o=n[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}},U2p0:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("1pIY"),o=n("R7wr"),s=n("FWf1"),a=n("xKqS");e.delay=function(t,e){void 0===e&&(e=r.async);var n=o.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(n,e))}};var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return i(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete()),this.unsubscribe()},e}(s.Subscriber),u=function(){return function(t,e){this.time=t,this.notification=e}}()},U6bO:function(t,e){t.exports=function(t,e,n){var i=t.byteLength;if(e=e||0,n=n||i,t.slice)return t.slice(e,n);if(e<0&&(e+=i),n<0&&(n+=i),n>i&&(n=i),e>=i||e>=n||0===i)return new ArrayBuffer(0);for(var r=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s<n;s++,a++)o[a]=r[s];return o.buffer}},UGPC:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e.AsapScheduler=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i<r&&(t=n.shift()));if(this.active=!1,e){for(;++i<r&&(t=n.shift());)t.unsubscribe();throw e}},e}(n("NTcF").AsyncScheduler)},UNqx:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("q3Kh"),o=n("gTqA"),s=n("wjEo");function a(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(i){return i.pipe(a((function(n,i){return o.from(t(n,i)).pipe(r.map((function(t,r){return e(n,t,i,r)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}e.mergeMap=a;var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent))},t}();e.MergeMapOperator=c;var l=function(t){function e(e,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var r=t.call(this,e)||this;return r.project=n,r.concurrent=i,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new s.SimpleInnerSubscriber(this),n=this.destination;n.add(e);var i=s.innerSubscribe(t,e);i!==e&&n.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.SimpleOuterSubscriber);e.MergeMapSubscriber=l,e.flatMap=a},Uwu7:function(t,e,n){var i=n("0KJs")("socket.io-parser"),r=n("cpc2"),o=n("Njrz"),s=n("luTP"),a=n("qGlh");function c(){}e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=c,e.Decoder=d;var l=e.ERROR+'"encode error"';function u(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var r=function(t){try{return JSON.stringify(t)}catch(e){return!1}}(t.data);if(!1===r)return l;n+=r}return i("encoded %j as %s",t,n),n}function d(){this.reconstructor=null}function h(t){this.reconPack=t,this.buffers=[]}function p(t){return{type:e.ERROR,data:"parser error: "+t}}c.prototype.encode=function(t,n){i("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type?function(t,e){o.removeBlobs(t,(function(t){var n=o.deconstructPacket(t),i=u(n.packet),r=n.buffers;r.unshift(i),e(r)}))}(t,n):n([u(t)])},r(d.prototype),d.prototype.add=function(t){var n;if("string"==typeof t)n=function(t){var n=0,r={type:Number(t.charAt(0))};if(null==e.types[r.type])return p("unknown packet type "+r.type);if(e.BINARY_EVENT===r.type||e.BINARY_ACK===r.type){for(var o="";"-"!==t.charAt(++n)&&(o+=t.charAt(n),n!=t.length););if(o!=Number(o)||"-"!==t.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===t.charAt(n+1))for(r.nsp="";++n&&","!==(c=t.charAt(n))&&(r.nsp+=c,n!==t.length););else r.nsp="/";var a=t.charAt(n+1);if(""!==a&&Number(a)==a){for(r.id="";++n;){var c;if(null==(c=t.charAt(n))||Number(c)!=c){--n;break}if(r.id+=t.charAt(n),n===t.length)break}r.id=Number(r.id)}if(t.charAt(++n)){var l=function(t){try{return JSON.parse(t)}catch(e){return!1}}(t.substr(n));if(!1===l||r.type!==e.ERROR&&!s(l))return p("invalid payload");r.data=l}return i("decoded %s as %j",t,r),r}(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new h(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!a(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",n))}},d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},h.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},h.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},Uxeu:function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,r=t.indexOf("["),o=t.indexOf("]");-1!=r&&-1!=o&&(t=t.substring(0,r)+t.substring(r,o).replace(/:/g,";")+t.substring(o,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[i[c]]=s[c]||"";return-1!=r&&-1!=o&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},VFZO:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.dematerialize=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(r.Subscriber)},VKeD:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}e.getSymbolIterator=i,e.iterator=i(),e.$$iterator=e.iterator},VLYi:function(t,e,n){"use strict";var i=n("rxKr");e.findIndex=function(t,e){return function(n){return n.lift(new i.FindValueOperator(t,n,!0,e))}}},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("HDdC"),r=n("z+Ro"),o=n("bHdf"),s=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(r.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof i.a?t[0]:Object(o.a)(e)(Object(s.a)(t,n))}},Vf9T:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("1pIY"),o=n("R7wr"),s=n("wjEo");e.timeoutWith=function(t,e,n){return void 0===n&&(n=r.async),function(i){var r=o.isDate(t),s=r?+t-n.now():Math.abs(t);return i.lift(new a(s,r,e,n))}};var a=function(){function t(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),c=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=i,s.withObservable=r,s.scheduler=o,s.scheduleTimeout(),s}return i(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(s.innerSubscribe(e,new s.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(s.SimpleOuterSubscriber)},Vi6O:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e.InnerSubscriber=function(t){function e(e,n,i){var r=t.call(this)||this;return r.parent=e,r.outerValue=n,r.outerIndex=i,r.index=0,r}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("FWf1").Subscriber)},W96K:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("0z0v"),o=n("FWf1");e.throwIfEmpty=function(t){return void 0===t&&(t=c),function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.errorFactory))},t}(),a=function(t){function e(e,n){var i=t.call(this,e)||this;return i.errorFactory=n,i.hasValue=!1,i}return i(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(o.Subscriber);function c(){return new r.EmptyError}},WDqD:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("IKal");e.skipLast=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(0===this._skipCount?new r.Subscriber(t):new a(t,this._skipCount))},t}(),a=function(t){function e(e,n){var i=t.call(this,e)||this;return i._skipCount=n,i._count=0,i._ring=new Array(n),i}return i(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var i=n%e,r=this._ring,o=r[i];r[i]=t,this.destination.next(o)}},e}(r.Subscriber)},WHuz:function(t,e,n){"use strict";var i=n("+Zhm");e.shareReplay=function(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,o=void 0===r?Number.POSITIVE_INFINITY:r,s=t.windowTime,a=void 0===s?Number.POSITIVE_INFINITY:s,c=t.refCount,l=t.scheduler,u=0,d=!1,h=!1;return function(t){var r;u++,!e||d?(d=!1,e=new i.ReplaySubject(o,a,l),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){d=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}),h&&(n=void 0)):r=e.subscribe(this),this.add((function(){u--,r.unsubscribe(),r=void 0,n&&!h&&c&&0===u&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}},WLGk:function(t,e,n){var i=n("luTP"),r=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);t.exports=function t(e){if(!e||"object"!=typeof e)return!1;if(i(e)){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(e)||"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||o&&e instanceof Blob||s&&e instanceof File)return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return!0;return!1}},WMd4:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("EY2u"),r=n("LRne"),o=n("z6cu");let s=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},WYAk:function(t,e,n){var i,r;t.exports=(i=n("Ib8C"),r=i.enc.Utf8,void(i.algo.HMAC=i.lib.Base.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),s=this._iKey=e.clone(),a=o.words,c=s.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})))},Wcq6:function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=i(n("wj3C"));r.default.registerVersion("firebase","7.24.0","app"),t.exports=r.default},Wxhx:function(t,e,n){"use strict";var i=n("ds6q"),r=n("7K7o");e.publish=function(t){return t?r.multicast((function(){return new i.Subject}),t):r.multicast(new i.Subject)}},X7Z7:function(t,e,n){"use strict";var i=n("IKal"),r=n("4ik+"),o=n("W96K"),s=n("1Z+e"),a=n("Dxa7");e.elementAt=function(t,e){if(t<0)throw new i.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(c){return c.pipe(r.filter((function(e,n){return n===t})),a.take(1),n?s.defaultIfEmpty(e):o.throwIfEmpty((function(){return new i.ArgumentOutOfRangeError})))}}},XKtA:function(t,e,n){"use strict";var i=n("7K7o"),r=n("4mvG"),o=n("ds6q");function s(){return new o.Subject}e.share=function(){return function(t){return r.refCount()(i.multicast(s)(t))}}},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("HDdC"),r=n("7o/Q"),o=n("quSY"),s=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends r.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new d(this,this);return e.operator=t,e}next(t){if(this.closed)throw new s.a;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].next(t)}}error(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let r=0;r<n;r++)i[r].error(t);this.observers.length=0}complete(){if(this.closed)throw new s.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new s.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.isStopped?(t.complete(),o.a.EMPTY):(this.observers.push(t),new a.a(this,t))}asObservable(){const t=new i.a;return t.source=this,t}}return t.create=(t,e)=>new d(t,e),t})();class d extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.a.EMPTY}}},XU1U:function(t,e,n){"use strict";n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return f})),n.d(e,"h",(function(){return g})),n.d(e,"g",(function(){return _})),n.d(e,"f",(function(){return v})),n.d(e,"i",(function(){return y})),n.d(e,"e",(function(){return w})),n.d(e,"d",(function(){return C})),n.d(e,"b",(function(){return x})),n.d(e,"j",(function(){return S}));var i=n("fXoL"),r=n("ofXK"),o=n("qgXg"),s=n("D0XW"),a=n("HDdC"),c=n("vkgz"),l=n("7Hc7"),u=n("Y7HM");class d extends a.a{constructor(t,e=0,n=l.a){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!Object(u.a)(e)||e<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=l.a)}static create(t,e=0,n=l.a){return new d(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(d.dispatch,this.delayTime,{source:this.source,subscriber:t})}}class h{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new d(e,this.delay,this.scheduler).subscribe(t)}}var p=n("pxpQ");const m=new i.s("angularfire2.realtimeDatabaseURL"),f=m;function b(){}class g{constructor(t,e=o.b){this.zone=t,this.delegate=e}now(){return this.delegate.now()}schedule(t,e,n){const i=this.zone;return this.delegate.schedule((function(e){i.runGuarded(()=>{t.apply(this,[e])})}),e,n)}}class _{constructor(t){this.zone=t,this.task=null}call(t,e){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",b,{},b,b)),e.pipe(Object(c.a)(n,n,n)).subscribe(t).add(n)}unscheduleTask(){null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)}}class v{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new g(Zone.current)),this.insideAngular=t.run(()=>new g(Zone.current,s.b))}}function y(t,e){return function(n){return Object(r.M)(e)&&(n=n.lift(new _(t.ngZone))),n.pipe(function(t,e=0){return function(n){return n.lift(new h(t,e))}}(t.outsideAngular),Object(p.b)(t.insideAngular))}}const w=t=>e=>new a.a(n=>t.runOutsideAngular(()=>{C(t)(e).subscribe(n)})),C=t=>e=>new a.a(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete())));class x{constructor(t,e){this.zone=t,this.platformId=e}schedule(...t){return this.zone.runGuarded((function(){return o.b.schedule.apply(o.b,t)}))}keepUnstableUntilFirst(t){return Object(r.M)(this.platformId)?new a.a(e=>{const n=()=>{},i=Zone.current.scheduleMacroTask("firebaseZoneBlock",n,{},n,n);t.subscribe(t=>{"scheduled"===i.state&&i.invoke(),e.next(t)},t=>{"scheduled"===i.state&&i.invoke(),e.error(t)},()=>{"scheduled"===i.state&&i.invoke(),e.complete()})}):t}runOutsideAngular(t){return new a.a(e=>this.zone.runOutsideAngular(()=>t.subscribe(t=>this.zone.run(()=>e.next(t)),t=>this.zone.run(()=>e.error(t)),()=>this.zone.run(()=>e.complete()))))}}const O=["ngOnDestroy"],S=(t,e,n)=>new Proxy(t,{get:(i,r)=>n.runOutsideAngular(()=>{if(t[r])return t[r];if(O.includes(r))return()=>{};let i=e.toPromise().then(t=>{const e=t&&t[r];return"function"==typeof e?e.bind(t):e&&e.then?e.then(t=>n.run(()=>t)):n.run(()=>e)});return new Proxy(()=>{},{get:(t,e)=>i[e],apply:(t,e,n)=>i.then(t=>t&&t(...n))})})})},XdTn:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("iFGG");e.AsapAction=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return i(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=r.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(r.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(n("2tF/").AsyncAction)},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return i}))},XoMe:function(t,e,n){"use strict";var i=n("0z0v"),r=n("4ik+"),o=n("Dxa7"),s=n("1Z+e"),a=n("W96K"),c=n("yoF8");e.first=function(t,e){var n=arguments.length>=2;return function(l){return l.pipe(t?r.filter((function(e,n){return t(e,n,l)})):c.identity,o.take(1),n?s.defaultIfEmpty(e):a.throwIfEmpty((function(){return new i.EmptyError})))}}},XuI1:function(t,e){var n=1e3,i=60*n,r=60*i,o=24*r;function s(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}t.exports=function(t,e){e=e||{};var a,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*i;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===c&&!1===isNaN(t))return e.long?s(a=t,o,"day")||s(a,r,"hour")||s(a,i,"minute")||s(a,n,"second")||a+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=r?Math.round(t/r)+"h":t>=i?Math.round(t/i)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},"Xwq/":function(t,e,n){"use strict";var i=n("FWf1"),r=n("p//D"),o=n("GiSu");e.toSubscriber=function(t,e,n){if(t){if(t instanceof i.Subscriber)return t;if(t[r.rxSubscriber])return t[r.rxSubscriber]()}return t||e||n?new i.Subscriber(t,e,n):new i.Subscriber(o.empty)}},Y34a:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.pairwise=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return i(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(r.Subscriber)},Y4kR:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();e.OuterSubscriber=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("FWf1").Subscriber)},Y7HM:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("DH7j");function r(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}},YK4L:function(t,e,n){"use strict";var i=n("vrE+"),r=n("76/Q"),o=n("1Z+e"),s=n("9AGB");e.reduce=function(t,e){return arguments.length>=2?function(n){return s.pipe(i.scan(t,e),r.takeLast(1),o.defaultIfEmpty(e))(n)}:function(e){return s.pipe(i.scan((function(e,n,i){return t(e,n,i+1)})),r.takeLast(1))(e)}}},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("quSY");class r extends i.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},YuTi:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},Yvos:function(t,e){t.exports=function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},Z303:function(t,e,n){"use strict";var i=n("1pIY"),r=n("vrE+"),o=n("b/k1"),s=n("q3Kh");e.timeInterval=function(t){return void 0===t&&(t=i.async),function(e){return o.defer((function(){return e.pipe(r.scan((function(e,n){var i=e.current;return{value:n,current:t.now(),last:i}}),{current:t.now(),value:void 0,last:void 0}),s.map((function(t){return new a(t.value,t.current-t.last)})))}))}};var a=function(){return function(t,e){this.value=t,this.interval=e}}();e.TimeInterval=a},Z5tI:function(t,e,n){"use strict";var i=n("MkmW");e.subscribeToPromise=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,i.hostReportError),e}}},ZHwm:function(t,e,n){"use strict";var i=n("eYLY"),r=n("7K7o");e.publishLast=function(){return function(t){return r.multicast(new i.AsyncSubject)(t)}}},ZTPi:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("aJGj");e.repeat=function(t){return void 0===t&&(t=-1),function(e){return 0===t?o.empty():e.lift(new s(t<0?-1:t-1,e))}};var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.count=n,r.source=i,r}return i(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(r.Subscriber)},a6us:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.retry=function(t){return void 0===t&&(t=-1),function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.count,this.source))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.count=n,r.source=i,r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(r.Subscriber)},a7Bn:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.skip=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return i(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(r.Subscriber)},aJGj:function(t,e,n){"use strict";var i=n("Q1FS");e.EMPTY=new i.Observable((function(t){return t.complete()})),e.empty=function(t){return t?function(t){return new i.Observable((function(e){return t.schedule((function(){return e.complete()}))}))}(t):e.EMPTY}},aOuE:function(t,e,n){"use strict";var i=n("YK4L");e.max=function(t){return i.reduce("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}},akSB:function(t,e,n){var i=n("AdPF"),r=n("0z79"),o=n("Cl5A"),s=n("CIKq");e.polling=function(t){var e=!1,n=!1,s=!1!==t.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,c=location.port;c||(c=a?443:80),e=t.hostname!==location.hostname||c!==t.port,n=t.secure!==a}if(t.xdomain=e,t.xscheme=n,"open"in new i(t)&&!t.forceJSONP)return new r(t);if(!s)throw new Error("JSONP disabled");return new o(t)},e.websocket=s},"b/k1":function(t,e,n){"use strict";var i=n("Q1FS"),r=n("gTqA"),o=n("aJGj");e.defer=function(t){return new i.Observable((function(e){var n;try{n=t()}catch(i){return void e.error(i)}return(n?r.from(n):o.empty()).subscribe(e)}))}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("5+tZ"),r=n("SpAZ");function o(t=Number.POSITIVE_INFINITY){return Object(i.a)(r.a,t)}},bQjk:function(t,e,n){var i,r,o;t.exports=(o=n("Ib8C"),n("OLod"),i=o.lib.CipherParams,r=o.enc.Hex,o.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var e=r.parse(t);return i.create({ciphertext:e})}},o.format.Hex)},bSa5:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.mapTo=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.value=n,i}return i(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(r.Subscriber)},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return i}))},c4Wt:function(t,e,n){"use strict";var i=n("QtHX");e.concatAll=function(){return i.mergeAll(1)}},cHgL:function(t,e,n){"use strict";var i=n("6eB1");e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(i.merge.apply(void 0,[e].concat(t)))}}},cSoz:function(t,e,n){"use strict";var i=n("Vi6O"),r=n("6qA3"),o=n("Q1FS");e.subscribeToResult=function(t,e,n,s,a){if(void 0===a&&(a=new i.InnerSubscriber(t,n,s)),!a.closed)return e instanceof o.Observable?e.subscribe(a):r.subscribeTo(e)(a)}},cmCt:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.mergeScan=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=o;var s=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=i,o.concurrent=r,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,t,e)}catch(r){return n.error(r)}this.active++,this._innerSub(i)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new r.SimpleInnerSubscriber(this),n=this.destination;n.add(e);var i=r.innerSubscribe(t,e);i!==e&&n.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(r.SimpleOuterSubscriber);e.MergeScanSubscriber=s},cnJE:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("zB/H"),o=n("wjEo");e.bufferWhen=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.closingSelector))},t}(),a=function(t){function e(e,n){var i=t.call(this,e)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t,e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{t=(0,this.closingSelector)()}catch(n){return this.error(n)}e=new r.Subscription,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(o.innerSubscribe(t,new o.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(o.SimpleOuterSubscriber)},cpc2:function(t,e,n){function i(t){if(t)return function(t){for(var e in i.prototype)t[e]=i.prototype[e];return t}(t)}t.exports=i,i.prototype.on=i.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},i.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<i.length;r++)if((n=i[r])===e||n.fn===e){i.splice(r,1);break}return this},i.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var i=0,r=(n=n.slice(0)).length;i<r;++i)n[i].apply(this,e);return this},i.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},i.prototype.hasListeners=function(t){return!!this.listeners(t).length}},crnd:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},cv67:function(t,e,n){var i;t.exports=(i=n("Ib8C"),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,s=e.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=s.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,r=t[i];t[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,s=t[e+0],c=t[e+1],p=t[e+2],m=t[e+3],f=t[e+4],b=t[e+5],g=t[e+6],_=t[e+7],v=t[e+8],y=t[e+9],w=t[e+10],C=t[e+11],x=t[e+12],O=t[e+13],S=t[e+14],T=t[e+15],D=o[0],k=o[1],P=o[2],E=o[3];D=l(D,k,P,E,s,7,a[0]),E=l(E,D,k,P,c,12,a[1]),P=l(P,E,D,k,p,17,a[2]),k=l(k,P,E,D,m,22,a[3]),D=l(D,k,P,E,f,7,a[4]),E=l(E,D,k,P,b,12,a[5]),P=l(P,E,D,k,g,17,a[6]),k=l(k,P,E,D,_,22,a[7]),D=l(D,k,P,E,v,7,a[8]),E=l(E,D,k,P,y,12,a[9]),P=l(P,E,D,k,w,17,a[10]),k=l(k,P,E,D,C,22,a[11]),D=l(D,k,P,E,x,7,a[12]),E=l(E,D,k,P,O,12,a[13]),P=l(P,E,D,k,S,17,a[14]),D=u(D,k=l(k,P,E,D,T,22,a[15]),P,E,c,5,a[16]),E=u(E,D,k,P,g,9,a[17]),P=u(P,E,D,k,C,14,a[18]),k=u(k,P,E,D,s,20,a[19]),D=u(D,k,P,E,b,5,a[20]),E=u(E,D,k,P,w,9,a[21]),P=u(P,E,D,k,T,14,a[22]),k=u(k,P,E,D,f,20,a[23]),D=u(D,k,P,E,y,5,a[24]),E=u(E,D,k,P,S,9,a[25]),P=u(P,E,D,k,m,14,a[26]),k=u(k,P,E,D,v,20,a[27]),D=u(D,k,P,E,O,5,a[28]),E=u(E,D,k,P,p,9,a[29]),P=u(P,E,D,k,_,14,a[30]),D=d(D,k=u(k,P,E,D,x,20,a[31]),P,E,b,4,a[32]),E=d(E,D,k,P,v,11,a[33]),P=d(P,E,D,k,C,16,a[34]),k=d(k,P,E,D,S,23,a[35]),D=d(D,k,P,E,c,4,a[36]),E=d(E,D,k,P,f,11,a[37]),P=d(P,E,D,k,_,16,a[38]),k=d(k,P,E,D,w,23,a[39]),D=d(D,k,P,E,O,4,a[40]),E=d(E,D,k,P,s,11,a[41]),P=d(P,E,D,k,m,16,a[42]),k=d(k,P,E,D,g,23,a[43]),D=d(D,k,P,E,y,4,a[44]),E=d(E,D,k,P,x,11,a[45]),P=d(P,E,D,k,T,16,a[46]),D=h(D,k=d(k,P,E,D,p,23,a[47]),P,E,s,6,a[48]),E=h(E,D,k,P,_,10,a[49]),P=h(P,E,D,k,S,15,a[50]),k=h(k,P,E,D,b,21,a[51]),D=h(D,k,P,E,x,6,a[52]),E=h(E,D,k,P,m,10,a[53]),P=h(P,E,D,k,w,15,a[54]),k=h(k,P,E,D,c,21,a[55]),D=h(D,k,P,E,v,6,a[56]),E=h(E,D,k,P,T,10,a[57]),P=h(P,E,D,k,g,15,a[58]),k=h(k,P,E,D,O,21,a[59]),D=h(D,k,P,E,f,6,a[60]),E=h(E,D,k,P,C,10,a[61]),P=h(P,E,D,k,p,15,a[62]),k=h(k,P,E,D,y,21,a[63]),o[0]=o[0]+D|0,o[1]=o[1]+k|0,o[2]=o[2]+P|0,o[3]=o[3]+E|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;n[r>>>5]|=128<<24-r%32;var o=t.floor(i/4294967296),s=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function l(t,e,n,i,r,o,s){var a=t+(e&n|~e&i)+r+s;return(a<<o|a>>>32-o)+e}function u(t,e,n,i,r,o,s){var a=t+(e&i|n&~i)+r+s;return(a<<o|a>>>32-o)+e}function d(t,e,n,i,r,o,s){var a=t+(e^n^i)+r+s;return(a<<o|a>>>32-o)+e}function h(t,e,n,i,r,o,s){var a=t+(n^(e|~i))+r+s;return(a<<o|a>>>32-o)+e}e.MD5=o._createHelper(c),e.HmacMD5=o._createHmacHelper(c)}(Math),i.MD5)},d1Tk:function(t,e,n){"use strict";var i=n("AmbE");e.zipAll=function(t){return function(e){return e.lift(new i.ZipOperator(t))}}},dMDw:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("1pIY");e.debounceTime=function(t,e){return void 0===e&&(e=o.async),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))},t}(),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.dueTime=n,r.scheduler=i,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return i(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(r.Subscriber);function c(t){t.debouncedNext()}},ds6q:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("Q1FS"),o=n("FWf1"),s=n("zB/H"),a=n("Mxlh"),c=n("FiyT"),l=n("p//D"),u=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return i(e,t),e}(o.Subscriber);e.SubjectSubscriber=u;var d=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return i(e,t),e.prototype[l.rxSubscriber]=function(){return new u(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,i=e.slice(),r=0;r<n;r++)i[r].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),i=0;i<e;i++)n[i].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new c.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new r.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(r.Observable);e.Subject=d;var h=function(t){function e(e,n){var i=t.call(this)||this;return i.destination=e,i.source=n,i}return i(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(d);e.AnonymousSubject=h},e7zE:function(t,e,n){var i,r,o,s,a,c,l,u;t.exports=(u=n("Ib8C"),n("3y9D"),n("WYAk"),s=(r=(i=u).lib).WordArray,c=(a=i.algo).HMAC,l=a.PBKDF2=(o=r.Base).extend({cfg:o.extend({keySize:4,hasher:a.SHA1,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,i=c.create(n.hasher,t),r=s.create(),o=s.create([1]),a=r.words,l=o.words,u=n.keySize,d=n.iterations;a.length<u;){var h=i.update(e).finalize(o);i.reset();for(var p=h.words,m=p.length,f=h,b=1;b<d;b++){f=i.finalize(f),i.reset();for(var g=f.words,_=0;_<m;_++)p[_]^=g[_]}r.concat(h),l[0]++}return r.sigBytes=4*u,r}}),i.PBKDF2=function(t,e,n){return l.create(n).compute(t,e)},u.PBKDF2)},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("lJxs"),r=n("Cfvw"),o=n("zx2A");function s(t,e){return"function"==typeof e?n=>n.pipe(s((n,o)=>Object(r.a)(t(n,o)).pipe(Object(i.a)((t,i)=>e(n,t,o,i))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends o.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new o.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(o.c)(t,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},eJ3O:function(t,e,n){"use strict";var i=n("Q1FS"),r=n("1pIY"),o=n("p0+S"),s=n("nzqU");function a(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}e.timer=function(t,e,n){void 0===t&&(t=0);var c=-1;return o.isNumeric(e)?c=Number(e)<1?1:Number(e):s.isScheduler(e)&&(n=e),s.isScheduler(n)||(n=r.async),new i.Observable((function(e){var i=o.isNumeric(t)?t:+t-n.now();return n.schedule(a,i,{index:0,period:c,subscriber:e})}))}},eOtv:function(t,e,n){var i=n("lKxJ"),r=n("KFGy"),o=n("cpc2"),s=n("Uwu7"),a=n("2Dig"),c=n("QN7Q"),l=n("x7D4")("socket.io-client:manager"),u=n("7jRU"),d=n("C2QD"),h=Object.prototype.hasOwnProperty;function p(t,e){if(!(this instanceof p))return new p(t,e);t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}t.exports=p,p.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)h.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},p.prototype.updateSocketIds=function(){for(var t in this.nsps)h.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},p.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},o(p.prototype),p.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},p.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},p.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(t,e){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=i(this.uri,this.opts);var n=this.engine,r=this;this.readyState="opening",this.skipReconnect=!1;var o=a(n,"open",(function(){r.onopen(),t&&t()})),s=a(n,"error",(function(e){if(l("connect_error"),r.cleanup(),r.readyState="closed",r.emitAll("connect_error",e),t){var n=new Error("Connection error");n.data=e,t(n)}else r.maybeReconnectOnOpen()}));if(!1!==this._timeout){var c=this._timeout;l("connect attempt will timeout after %d",c);var u=setTimeout((function(){l("connect attempt timed out after %d",c),o.destroy(),n.close(),n.emit("error","timeout"),r.emitAll("connect_timeout",c)}),c);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(o),this.subs.push(s),this},p.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(a(t,"data",c(this,"ondata"))),this.subs.push(a(t,"ping",c(this,"onping"))),this.subs.push(a(t,"pong",c(this,"onpong"))),this.subs.push(a(t,"error",c(this,"onerror"))),this.subs.push(a(t,"close",c(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(t){this.decoder.add(t)},p.prototype.ondecoded=function(t){this.emit("packet",t)},p.prototype.onerror=function(t){l("error",t),this.emitAll("error",t)},p.prototype.socket=function(t,e){var n=this.nsps[t];if(!n){n=new r(this,t,e),this.nsps[t]=n;var i=this;n.on("connecting",o),n.on("connect",(function(){n.id=i.generateId(t)})),this.autoConnect&&o()}function o(){~u(i.connecting,n)||i.connecting.push(n)}return n},p.prototype.destroy=function(t){var e=u(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},p.prototype.packet=function(t){l("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,(function(n){for(var i=0;i<n.length;i++)e.engine.write(n[i],t.options);e.encoding=!1,e.processPacketQueue()})))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},p.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e<t;e++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(t){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},eThW:function(t,e,n){"use strict";var i=n("AmbE");e.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(i.zip.apply(void 0,[e].concat(t)))}}},eYLY:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("zB/H");e.AsyncSubject=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return i(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(r.Subject)},eeun:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.exhaust=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(r.innerSubscribe(t,new r.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(r.SimpleOuterSubscriber)},f6gv:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.skipWhile=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(n){this.destination.error(n)}},e}(r.Subscriber)},fMhY:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.isEmpty=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(r.Subscriber)},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return Eo})),n.d(e,"b",(function(){return qc})),n.d(e,"c",(function(){return Fc})),n.d(e,"d",(function(){return Rc})),n.d(e,"e",(function(){return Nc})),n.d(e,"f",(function(){return Ll})),n.d(e,"g",(function(){return xl})),n.d(e,"h",(function(){return ho})),n.d(e,"i",(function(){return tl})),n.d(e,"j",(function(){return ga})),n.d(e,"k",(function(){return Jc})),n.d(e,"l",(function(){return _a})),n.d(e,"m",(function(){return Al})),n.d(e,"n",(function(){return Mn})),n.d(e,"o",(function(){return hc})),n.d(e,"p",(function(){return Y})),n.d(e,"q",(function(){return u})),n.d(e,"r",(function(){return m})),n.d(e,"s",(function(){return J})),n.d(e,"t",(function(){return Po})),n.d(e,"u",(function(){return Na})),n.d(e,"v",(function(){return Fa})),n.d(e,"w",(function(){return Gc})),n.d(e,"x",(function(){return ct})),n.d(e,"y",(function(){return Sl})),n.d(e,"z",(function(){return at})),n.d(e,"A",(function(){return _l})),n.d(e,"B",(function(){return il})),n.d(e,"C",(function(){return d})),n.d(e,"D",(function(){return zc})),n.d(e,"E",(function(){return Bc})),n.d(e,"F",(function(){return mc})),n.d(e,"G",(function(){return Ca})),n.d(e,"H",(function(){return ya})),n.d(e,"I",(function(){return wa})),n.d(e,"J",(function(){return Oa})),n.d(e,"K",(function(){return wi})),n.d(e,"L",(function(){return p})),n.d(e,"M",(function(){return kl})),n.d(e,"N",(function(){return za})),n.d(e,"O",(function(){return dl})),n.d(e,"P",(function(){return mo})),n.d(e,"Q",(function(){return Ta})),n.d(e,"R",(function(){return Sa})),n.d(e,"S",(function(){return Ha})),n.d(e,"T",(function(){return gt})),n.d(e,"U",(function(){return vl})),n.d(e,"V",(function(){return _})),n.d(e,"W",(function(){return Qn})),n.d(e,"X",(function(){return A})),n.d(e,"Y",(function(){return it})),n.d(e,"Z",(function(){return Kn})),n.d(e,"ab",(function(){return Ml})),n.d(e,"bb",(function(){return ml})),n.d(e,"cb",(function(){return Hc})),n.d(e,"db",(function(){return fo})),n.d(e,"eb",(function(){return ra})),n.d(e,"fb",(function(){return vi})),n.d(e,"gb",(function(){return ni})),n.d(e,"hb",(function(){return Bn})),n.d(e,"ib",(function(){return qn})),n.d(e,"jb",(function(){return Yn})),n.d(e,"kb",(function(){return Gn})),n.d(e,"lb",(function(){return Hn})),n.d(e,"mb",(function(){return Jn})),n.d(e,"nb",(function(){return ta})),n.d(e,"ob",(function(){return Il})),n.d(e,"pb",(function(){return ea})),n.d(e,"qb",(function(){return na})),n.d(e,"rb",(function(){return zn})),n.d(e,"sb",(function(){return F})),n.d(e,"tb",(function(){return Bo})),n.d(e,"ub",(function(){return us})),n.d(e,"vb",(function(){return ls})),n.d(e,"wb",(function(){return Zs})),n.d(e,"xb",(function(){return ne})),n.d(e,"yb",(function(){return k})),n.d(e,"zb",(function(){return jn})),n.d(e,"Ab",(function(){return Mo})),n.d(e,"Bb",(function(){return Kt})),n.d(e,"Cb",(function(){return ma})),n.d(e,"Db",(function(){return qi})),n.d(e,"Eb",(function(){return Jo})),n.d(e,"Fb",(function(){return Ys})),n.d(e,"Gb",(function(){return As})),n.d(e,"Hb",(function(){return Dc})),n.d(e,"Ib",(function(){return wt})),n.d(e,"Jb",(function(){return Pt})),n.d(e,"Kb",(function(){return g})),n.d(e,"Lb",(function(){return v})),n.d(e,"Mb",(function(){return Tt})),n.d(e,"Nb",(function(){return Et})),n.d(e,"Ob",(function(){return Qo})),n.d(e,"Pb",(function(){return rs})),n.d(e,"Qb",(function(){return as})),n.d(e,"Rb",(function(){return ss})),n.d(e,"Sb",(function(){return os})),n.d(e,"Tb",(function(){return is})),n.d(e,"Ub",(function(){return ns})),n.d(e,"Vb",(function(){return cs})),n.d(e,"Wb",(function(){return Pn})),n.d(e,"Xb",(function(){return $s})),n.d(e,"Yb",(function(){return nt})),n.d(e,"Zb",(function(){return Xo})),n.d(e,"ac",(function(){return Lc})),n.d(e,"bc",(function(){return Zo})),n.d(e,"cc",(function(){return ds})),n.d(e,"dc",(function(){return Ec})),n.d(e,"ec",(function(){return We})),n.d(e,"fc",(function(){return $e})),n.d(e,"gc",(function(){return bs})),n.d(e,"hc",(function(){return ac})),n.d(e,"ic",(function(){return cc})),n.d(e,"jc",(function(){return lc})),n.d(e,"kc",(function(){return vs})),n.d(e,"lc",(function(){return _s})),n.d(e,"mc",(function(){return ts})),n.d(e,"nc",(function(){return ys})),n.d(e,"oc",(function(){return ws})),n.d(e,"pc",(function(){return Cs})),n.d(e,"qc",(function(){return ec})),n.d(e,"rc",(function(){return nc})),n.d(e,"sc",(function(){return ic})),n.d(e,"tc",(function(){return xc})),n.d(e,"uc",(function(){return Ko})),n.d(e,"vc",(function(){return Jt})),n.d(e,"wc",(function(){return Gt})),n.d(e,"xc",(function(){return Ht})),n.d(e,"yc",(function(){return Ce})),n.d(e,"zc",(function(){return Ci})),n.d(e,"Ac",(function(){return Oi})),n.d(e,"Bc",(function(){return xi})),n.d(e,"Cc",(function(){return Ct})),n.d(e,"Dc",(function(){return Dt})),n.d(e,"Ec",(function(){return kc})),n.d(e,"Fc",(function(){return Oc})),n.d(e,"Gc",(function(){return Es})),n.d(e,"Hc",(function(){return hs})),n.d(e,"Ic",(function(){return Ws})),n.d(e,"Jc",(function(){return Wo})),n.d(e,"Kc",(function(){return Uc})),n.d(e,"Lc",(function(){return zs})),n.d(e,"Mc",(function(){return qs})),n.d(e,"Nc",(function(){return Hs})),n.d(e,"Oc",(function(){return Gs})),n.d(e,"Pc",(function(){return Js})),n.d(e,"Qc",(function(){return Sc}));var i=n("XNiG"),r=n("quSY"),o=n("HDdC"),s=n("VRyK"),a=n("w1tV");function c(t){return{toString:t}.toString()}function l(t,e,n){return c(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}const u=l("Inject",t=>({token:t})),d=l("Optional"),h=l("Self"),p=l("SkipSelf");var m=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function f(t){for(let e in t)if(t[e]===f)return e;throw Error("Could not find renamed property on target object.")}function b(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function g(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const _=g;function v(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return w(t,t[x])||w(t,t[T])}function w(t,e){return e&&e.token===t?e:null}function C(t){return t&&(t.hasOwnProperty(O)||t.hasOwnProperty(D))?t[O]:null}const x=f({\u0275prov:f}),O=f({\u0275inj:f}),S=f({\u0275provFallback:f}),T=f({ngInjectableDef:f}),D=f({ngInjectorDef:f});function k(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(k).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function P(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const E=f({__forward_ref__:f});function A(t){return t.__forward_ref__=A,t.toString=function(){return k(this())},t}function I(t){return M(t)?t():t}function M(t){return"function"==typeof t&&t.hasOwnProperty(E)&&t.__forward_ref__===A}const U="undefined"!=typeof globalThis&&globalThis,L="undefined"!=typeof window&&window,R="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,N="undefined"!=typeof global&&global,F=U||N||L||R,V=f({\u0275cmp:f}),j=f({\u0275dir:f}),B=f({\u0275pipe:f}),z=f({\u0275mod:f}),q=f({\u0275loc:f}),H=f({\u0275fac:f}),G=f({__NG_ELEMENT_ID__:f});class J{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=g({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Y=new J("INJECTOR",-1),$={},W=/\n/gm,K=f({provide:String,useValue:f});let Q,X=void 0;function Z(t){const e=X;return X=t,e}function tt(t){const e=Q;return Q=t,e}function et(t,e=m.Default){if(void 0===X)throw new Error("inject() must be called from an injection context");return null===X?rt(t,void 0,e):X.get(t,e&m.Optional?null:void 0,e)}function nt(t,e=m.Default){return(Q||et)(I(t),e)}const it=nt;function rt(t,e,n){const i=y(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&m.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${k(t)}]`)}function ot(t){const e=[];for(let n=0;n<t.length;n++){const i=I(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=m.Default;for(let e=0;e<i.length;e++){const r=i[e];r instanceof d||"Optional"===r.ngMetadataName||r===d?n|=m.Optional:r instanceof p||"SkipSelf"===r.ngMetadataName||r===p?n|=m.SkipSelf:r instanceof h||"Self"===r.ngMetadataName||r===h?n|=m.Self:t=r instanceof u||r===u?r.token:r}e.push(nt(t,n))}else e.push(nt(i))}return e}class st{get(t,e=$){if(e===$){const e=new Error(`NullInjectorError: No provider for ${k(t)}!`);throw e.name="NullInjectorError",e}return e}}class at{}class ct{}function lt(t,e){t.forEach(t=>Array.isArray(t)?lt(t,e):e(t))}function ut(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function dt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ht(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function pt(t,e,n){let i=ft(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function mt(t,e){const n=ft(t,e);if(n>=0)return t[1|n]}function ft(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),o=t[n<<1];if(e===o)return n<<1;o>e?r=n:i=n+1}return~(r<<1)}(t,e)}var bt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),gt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const _t={},vt=[];let yt=0;function wt(t){return c(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||vt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||gt.Emulated,id:"c",styles:t.styles||vt,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=yt++,n.inputs=kt(t.inputs,e),n.outputs=kt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(xt):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ot):null,n})}function Ct(t,e,n){const i=t.\u0275cmp;i.directiveDefs=()=>e.map(xt),i.pipeDefs=()=>n.map(Ot)}function xt(t){return At(t)||function(t){return t[j]||null}(t)}function Ot(t){return function(t){return t[B]||null}(t)}const St={};function Tt(t){const e={type:t.type,bootstrap:t.bootstrap||vt,declarations:t.declarations||vt,imports:t.imports||vt,exports:t.exports||vt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&c(()=>{St[t.id]=t.type}),e}function Dt(t,e){return c(()=>{const n=Mt(t,!0);n.declarations=e.declarations||vt,n.imports=e.imports||vt,n.exports=e.exports||vt})}function kt(t,e){if(null==t)return _t;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}const Pt=wt;function Et(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function At(t){return t[V]||null}function It(t,e){return t.hasOwnProperty(H)?t[H]:null}function Mt(t,e){const n=t[z]||null;if(!n&&!0===e)throw new Error(`Type ${k(t)} does not have '\u0275mod' property.`);return n}function Ut(t){return Array.isArray(t)&&"object"==typeof t[1]}function Lt(t){return Array.isArray(t)&&!0===t[1]}function Rt(t){return 0!=(8&t.flags)}function Nt(t){return 2==(2&t.flags)}function Ft(t){return 1==(1&t.flags)}function Vt(t){return null!==t.template}function jt(t){return 0!=(512&t[2])}function Bt(t){return"string"==typeof t?t:null==t?"":""+t}function zt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Bt(t)}const qt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Ht(t){return{name:"window",target:t.ownerDocument.defaultView}}function Gt(t){return{name:"document",target:t.ownerDocument}}function Jt(t){return{name:"body",target:t.ownerDocument.body}}function Yt(t){return t instanceof Function?t():t}function $t(t,e){const n=e?" in "+e:"";throw new Error(`No provider for ${zt(t)} found${n}`)}class Wt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Kt(){return Qt}function Qt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Zt),Xt}function Xt(){const t=te(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===_t)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Zt(t,e,n,i){const r=te(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:_t,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[n],c=s[a];o[a]=new Wt(c&&c.currentValue,e,s===_t),t[i]=e}function te(t){return t.__ngSimpleChanges__||null}Kt.ngInherit=!0;let ee=void 0;function ne(t){ee=t}function ie(){return void 0!==ee?ee:"undefined"!=typeof document?document:void 0}function re(t){return!!t.listen}const oe={createRenderer:(t,e)=>ie()};function se(t){for(;Array.isArray(t);)t=t[0];return t}function ae(t,e){return se(e[t+20])}function ce(t,e){return se(e[t.index])}function le(t,e){return t.data[e+20]}function ue(t,e){return t[e+20]}function de(t,e){const n=e[t];return Ut(n)?n:n[0]}function he(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function pe(t){return 4==(4&t[2])}function me(t){return 128==(128&t[2])}function fe(t,e){return null===t||null==e?null:t[e]}function be(t){t[18]=0}function ge(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const _e={lFrame:Be(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ve(){return _e.bindingsEnabled}function ye(){return _e.lFrame.lView}function we(){return _e.lFrame.tView}function Ce(t){_e.lFrame.contextLView=t}function xe(){return _e.lFrame.currentTNode}function Oe(t,e){_e.lFrame.currentTNode=t,_e.lFrame.isParent=e}function Se(){return _e.lFrame.isParent}function Te(){_e.lFrame.isParent=!1}function De(){return _e.isInCheckNoChangesMode}function ke(t){_e.isInCheckNoChangesMode=t}function Pe(){const t=_e.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Ee(){return _e.lFrame.bindingIndex}function Ae(){return _e.lFrame.bindingIndex++}function Ie(t){const e=_e.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Me(t,e){const n=_e.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ue(e)}function Ue(t){_e.lFrame.currentDirectiveIndex=t}function Le(t){const e=_e.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Re(){return _e.lFrame.currentQueryIndex}function Ne(t){_e.lFrame.currentQueryIndex=t}function Fe(t,e){const n=je();_e.lFrame=n,n.currentTNode=e,n.lView=t}function Ve(t){const e=je(),n=t[1];_e.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex}function je(){const t=_e.lFrame,e=null===t?null:t.child;return null===e?Be(t):e}function Be(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function ze(){const t=_e.lFrame;return _e.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const qe=ze;function He(){const t=ze();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ge(){return _e.lFrame.selectedIndex}function Je(t){_e.lFrame.selectedIndex=t}function Ye(){const t=_e.lFrame;return le(t.tView,t.selectedIndex)}function $e(){_e.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function We(){_e.lFrame.currentNamespace=null}function Ke(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:i,ngAfterContentChecked:r,ngAfterViewInit:o,ngAfterViewChecked:s,ngOnDestroy:a}=e;i&&(t.contentHooks||(t.contentHooks=[])).push(-n,i),r&&((t.contentHooks||(t.contentHooks=[])).push(n,r),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,r)),o&&(t.viewHooks||(t.viewHooks=[])).push(-n,o),s&&((t.viewHooks||(t.viewHooks=[])).push(n,s),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,s)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Qe(t,e,n){tn(t,e,3,n)}function Xe(t,e,n,i){(3&t[2])===n&&tn(t,e,n,i)}function Ze(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function tn(t,e,n,i){const r=null!=i?i:-1;let o=0;for(let s=void 0!==i?65535&t[18]:0;s<e.length;s++)if("number"==typeof e[s+1]){if(o=e[s],null!=i&&o>=i)break}else e[s]<0&&(t[18]+=65536),(o<r||-1==r)&&(en(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function en(t,e,n,i){const r=n[i]<0,o=n[i+1],s=t[r?-n[i]:n[i]];r?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,o.call(s)):o.call(s)}class nn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function rn(t,e,n){const i=re(t);let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const s=n[r++],a=n[r++],c=n[r++];i?t.setAttribute(e,a,c,s):e.setAttributeNS(s,a,c)}else{const s=o,a=n[++r];sn(s)?i&&t.setProperty(e,s,a):i?t.setAttribute(e,s,a):e.setAttribute(s,a),r++}}return r}function on(t){return 3===t||4===t||6===t}function sn(t){return 64===t.charCodeAt(0)}function an(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?n=r:0===n||cn(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function cn(t,e,n,i,r){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==r&&(t[o+1]=r));if(i===t[o+1])return void(t[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==i&&t.splice(o++,0,i),null!==r&&t.splice(o++,0,r)}function ln(t){return-1!==t}function un(t){return 32767&t}function dn(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let hn=!0;function pn(t){const e=hn;return hn=t,e}let mn=0;function fn(t,e){const n=gn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,bn(i.data,t),bn(e,null),bn(i.blueprint,null));const r=_n(t,e),o=t.injectorIndex;if(ln(r)){const t=un(r),n=dn(r,e),i=n[1].data;for(let r=0;r<8;r++)e[o+r]=n[t+r]|i[t+r]}return e[o+8]=r,o}function bn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function gn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function _n(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function vn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(G)&&(i=n[G]),null==i&&(i=n[G]=mn++);const r=255&i,o=1<<r,s=64&r,a=32&r,c=e.data;128&r?s?a?c[t+7]|=o:c[t+6]|=o:a?c[t+5]|=o:c[t+4]|=o:s?a?c[t+3]|=o:c[t+2]|=o:a?c[t+1]|=o:c[t]|=o}(t,e,n)}function yn(t,e,n,i=m.Default,r){if(null!==t){const r=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(G)?t[G]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof r){Fe(e,t);try{const t=r();if(null!=t||i&m.Optional)return t;$t(n)}finally{qe()}}else if("number"==typeof r){if(-1===r)return new Dn(t,e);let o=null,s=gn(t,e),a=-1,c=i&m.Host?e[16][6]:null;for((-1===s||i&m.SkipSelf)&&(a=-1===s?_n(t,e):e[s+8],-1!==a&&Tn(i,!1)?(o=e[1],s=un(a),e=dn(a,e)):s=-1);-1!==s;){const t=e[1];if(Sn(r,s,t.data)){const t=Cn(s,e,n,o,i,c);if(t!==wn)return t}a=e[s+8],-1!==a&&Tn(i,e[1].data[s+8]===c)&&Sn(r,s,e)?(o=t,s=un(a),e=dn(a,e)):s=-1}}}if(i&m.Optional&&void 0===r&&(r=null),0==(i&(m.Self|m.Host))){const t=e[9],o=tt(void 0);try{return t?t.get(n,r,i&m.Optional):rt(n,r,i&m.Optional)}finally{tt(o)}}if(i&m.Optional)return r;$t(n,"NodeInjector")}const wn={};function Cn(t,e,n,i,r,o){const s=e[1],a=s.data[t+8],c=xn(a,s,n,null==i?Nt(a)&&hn:i!=s&&2===a.type,r&m.Host&&o===a);return null!==c?On(e,s,c,a):wn}function xn(t,e,n,i,r){const o=t.providerIndexes,s=e.data,a=1048575&o,c=t.directiveStart,l=o>>20,u=r?a+l:t.directiveEnd;for(let d=i?a:a+l;d<u;d++){const t=s[d];if(d<c&&n===t||d>=c&&t.type===n)return d}if(r){const t=s[c];if(t&&Vt(t)&&t.type===n)return c}return null}function On(t,e,n,i){let r=t[n];const o=e.data;if(r instanceof nn){const s=r;s.resolving&&function(t,e){throw new Error("Circular dependency in DI detected for "+t)}(zt(o[n]));const a=pn(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?tt(s.injectImpl):null;Fe(t,i);try{r=t[n]=s.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const i=Qt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==c&&tt(c),pn(a),s.resolving=!1,qe()}}return r}function Sn(t,e,n){const i=64&t,r=32&t;let o;return o=128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e],!!(o&1<<t)}function Tn(t,e){return!(t&m.Self||t&m.Host&&e)}class Dn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return yn(this._tNode,this._lView,t,void 0,e)}}function kn(t){const e=t;if(M(t))return()=>{const t=kn(I(e));return t?t():null};let n=It(e);if(null===n){const t=C(e);n=t&&t.factory}return n||null}function Pn(t){return c(()=>{const e=t.prototype.constructor,n=e[H]||kn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[H]||kn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function En(t){return t.ngDebugContext}function An(t){return t.ngOriginalError}function In(t,...e){t.error(...e)}class Mn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||In}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?En(t)?En(t):this._findContext(An(t)):null}_findOriginalError(t){let e=An(t);for(;e&&An(e);)e=An(e);return e}}class Un{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Ln extends Un{getTypeName(){return"HTML"}}class Rn extends Un{getTypeName(){return"Style"}}class Nn extends Un{getTypeName(){return"Script"}}class Fn extends Un{getTypeName(){return"URL"}}class Vn extends Un{getTypeName(){return"ResourceURL"}}function jn(t){return t instanceof Un?t.changingThisBreaksApplicationSecurity:t}function Bn(t,e){const n=zn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function zn(t){return t instanceof Un&&t.getTypeName()||null}function qn(t){return new Ln(t)}function Hn(t){return new Rn(t)}function Gn(t){return new Nn(t)}function Jn(t){return new Fn(t)}function Yn(t){return new Vn(t)}let $n=!0,Wn=!1;function Kn(){return Wn=!0,$n}function Qn(){if(Wn)throw new Error("Cannot enable prod mode after platform setup.");$n=!1}class Xn{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Zn{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const ti=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,ei=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ni(t){return(t=String(t)).match(ti)||t.match(ei)?t:(Kn()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function ii(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function ri(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const oi=ii("area,br,col,hr,img,wbr"),si=ii("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ai=ii("rp,rt"),ci=ri(ai,si),li=ri(oi,ri(si,ii("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(ai,ii("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")),ci),ui=ii("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),di=ii("srcset"),hi=ri(ui,di,ii("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"),ii("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")),pi=ii("script,style,template");class mi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!li.hasOwnProperty(e))return this.sanitizedSomething=!0,!pi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,o=e.toLowerCase();if(!hi.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let s=t.value;ui[o]&&(s=ni(s)),di[o]&&(i=s,s=(i=String(i)).split(",").map(t=>ni(t.trim())).join(", ")),this.buf.push(" ",e,'="',gi(s),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();li.hasOwnProperty(e)&&!oi.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(gi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const fi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,bi=/([^\#-~ |!])/g;function gi(t){return t.replace(/&/g,"&amp;").replace(fi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(bi,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let _i;function vi(t,e){let n=null;try{_i=_i||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Xn:new Zn(t)}(t);let i=e?String(e):"";n=_i.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=_i.getInertBodyElement(i)}while(i!==o);const s=new mi,a=s.sanitizeChildren(yi(n)||n);return Kn()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=yi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function yi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var wi=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Ci(t){const e=Si();return e?e.sanitize(wi.HTML,t)||"":Bn(t,"HTML")?jn(t):vi(ie(),Bt(t))}function xi(t){const e=Si();return e?e.sanitize(wi.URL,t)||"":Bn(t,"URL")?jn(t):ni(Bt(t))}function Oi(t){const e=Si();if(e)return e.sanitize(wi.RESOURCE_URL,t)||"";if(Bn(t,"ResourceURL"))return jn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Si(){const t=ye();return t&&t[12]}function Ti(t,e){t.__ngContext__=e}function Di(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}function ki(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==Di(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Pi(t){return 0===t.type&&"ng-template"!==t.tagName}function Ei(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function Ai(t,e,n){let i=4;const r=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if(on(t[e]))return e;return t.length}(r);let s=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!s)if(4&i){if(i=2|1&i,""!==c&&!Ei(t,c,n)||""===c&&1===e.length){if(Ii(i))return!1;s=!0}}else{const l=8&i?c:e[++a];if(8&i&&null!==t.attrs){if(!ki(t.attrs,l,n)){if(Ii(i))return!1;s=!0}continue}const u=Mi(8&i?"class":c,r,Pi(t),n);if(-1===u){if(Ii(i))return!1;s=!0;continue}if(""!==l){let t;t=u>o?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Di(e,l,0)||2&i&&l!==t){if(Ii(i))return!1;s=!0}}}}else{if(!s&&!Ii(i)&&!Ii(c))return!1;if(s&&Ii(c))continue;s=!1,i=c|1&i}}return Ii(i)||s}function Ii(t){return 0==(1&t)}function Mi(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r<e.length;){const i=e[r];if(i===t)return r;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++r];for(;"string"==typeof t;)t=e[++r];continue}if(4===i)break;if(0===i){r+=4;continue}}r+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function Ui(t,e,n=!1){for(let i=0;i<e.length;i++)if(Ai(t,e[i],n))return!0;return!1}function Li(t,e){t:for(let n=0;n<e.length;n++){const i=e[n];if(t.length===i.length){for(let e=0;e<t.length;e++)if(t[e]!==i[e])continue t;return!0}}return!1}function Ri(t,e){return t?":not("+e.trim()+")":e}function Ni(t){let e=t[0],n=1,i=2,r="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&i){const e=t[++n];r+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""===r||Ii(s)||(e+=Ri(o,r),r=""),i=s,o=o||!Ii(i);n++}return""!==r&&(e+=Ri(o,r)),e}const Fi={};function Vi(t){const e=t[3];return Lt(e)?e[3]:e}function ji(t){return zi(t[13])}function Bi(t){return zi(t[4])}function zi(t){for(;null!==t&&!Lt(t);)t=t[4];return t}function qi(t){Hi(we(),ye(),Ge()+t,De())}function Hi(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Qe(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Xe(e,i,0,n)}Je(n)}function Gi(t,e){return t<<17|e<<2}function Ji(t){return t>>17&32767}function Yi(t){return 2|t}function $i(t){return(131068&t)>>2}function Wi(t,e){return-131069&t|e<<2}function Ki(t){return 1|t}function Qi(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],o=n[i+1];if(-1!==o){const n=t.data[o];Ne(r),n.contentQueries(2,e[o],o)}}}function Xi(t,e,n){return re(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Zi(t,e,n,i,r,o,s,a,c,l){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,be(u),u[3]=u[15]=t,u[8]=n,u[10]=s||t&&t[10],u[11]=a||t&&t[11],u[12]=c||t&&t[12]||null,u[9]=l||t&&t[9]||null,u[6]=o,u[16]=2==e.type?t[16]:u,u}function tr(t,e,n,i,r){const o=e+20,s=t.data[o]||function(t,e,n,i,r){const o=xe(),s=Se(),a=t.data[e]=function(t,e,n,i,r,o){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,n,e,i,r);return null===t.firstChild&&(t.firstChild=a),null!==o&&(s&&null==o.child&&null!==a.parent?o.child=a:s||(o.next=a)),a}(t,o,n,i,r);return Oe(s,!0),s}function er(t,e,n){Ve(e);try{const i=t.viewQuery;null!==i&&Ir(1,i,n);const r=t.template;null!==r&&rr(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Qi(t,e),t.staticViewQueries&&Ir(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)Dr(t,e[n])}(e,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,He()}}function nr(t,e,n,i){const r=e[2];if(256==(256&r))return;Ve(e);const o=De();try{be(e),_e.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&rr(t,e,n,2,i);const s=3==(3&r);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&Qe(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Xe(e,n,0,null),Ze(e,0)}if(function(t){for(let e=ji(t);null!==e;e=Bi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&ge(i,1),n[2]|=1024}}}(e),function(t){for(let e=ji(t);null!==e;e=Bi(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];me(n)&&nr(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Qi(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&Qe(e,n)}else{const n=t.contentHooks;null!==n&&Xe(e,n,1),Ze(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,r=-1,o=-1;for(let t=0;t<n.length;t++){const s=n[t];"number"==typeof s?s<=0?(o=0-s,Je(o),i+=9+n[++t],r=i):i+=s:(null!==s&&(Me(i,r),s(2,e[r])),r++)}}}finally{Je(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Tr(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&Ir(2,c,i),!o)if(s){const n=t.viewCheckHooks;null!==n&&Qe(e,n)}else{const n=t.viewHooks;null!==n&&Xe(e,n,2),Ze(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,ge(e[3],-1))}finally{He()}}function ir(t,e,n,i){const r=e[10],o=!De(),s=pe(e);try{o&&!s&&r.begin&&r.begin(),s&&er(t,e,i),nr(t,e,n,i)}finally{o&&!s&&r.end&&r.end()}}function rr(t,e,n,i,r){const o=Ge();try{Je(-1),2&i&&e.length>20&&Hi(t,e,0,De()),n(i,r)}finally{Je(o)}}function or(t,e,n){if(Rt(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r<i;r++){const e=t.data[r];e.contentQueries&&e.contentQueries(1,n[r],r)}}}function sr(t,e,n){ve()&&(function(t,e,n,i){const r=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||fn(n,e),Ti(i,e);const s=n.initialInputs;for(let a=r;a<o;a++){const i=t.data[a],o=Vt(i);o&&Cr(e,n,i);const c=On(e,t,a,n);Ti(c,e),null!==s&&xr(0,a-r,c,i,0,s),o&&(de(n.index,e)[8]=c)}}(t,e,n,ce(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,o=t.expandoInstructions,s=t.firstCreatePass,a=n.index-20,c=_e.lFrame.currentDirectiveIndex;try{Je(a);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];Ue(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?br(i,r):s&&o.push(null)}}finally{Je(-1),Ue(c)}}(t,e,n))}function ar(t,e,n=ce){const i=e.localNames;if(null!==i){let r=e.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?n(e,t):t[s];t[r++]=a}}}function cr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=lr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function lr(t,e,n,i,r,o,s,a,c,l){const u=20+i,d=u+r,h=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:Fi);return n}(u,d),p="function"==typeof l?l():l;return h[1]={type:t,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1}}function ur(t,e,n,i){const r=Ur(e);r.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(i,r.length-1)}function dr(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,r):n[i]=[e,r]}return n}function hr(t,e,n,i,r,o,s,a){const c=ce(e,n);let l,u=e.inputs;!a&&null!=u&&(l=u[i])?(Nr(t,n,l,i,r),Nt(e)&&function(t,e){const n=de(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):2===e.type&&(i=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=s?s(r,e.tagName||"",i):r,re(o)?o.setProperty(c,i,r):sn(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function pr(t,e,n,i){let r=!1;if(ve()){const o=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let o=0;o<i.length;o++){const s=i[o];Ui(n,s.selectors,!1)&&(r||(r=[]),vn(fn(n,e),t,s.type),Vt(s)?(_r(t,n),r.unshift(s)):r.push(s))}return r}(t,e,n),s=null===i?null:{"":-1};if(null!==o){let i=0;r=!0,yr(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}gr(t,n,o.length);let a=!1,c=!1;for(let r=0;r<o.length;r++){const l=o[r];n.mergedAttrs=an(n.mergedAttrs,l.hostAttrs),wr(t,e,l),vr(t.data.length-1,l,s),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128);const u=l.type.prototype;!a&&(u.ngOnChanges||u.ngOnInit||u.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),a=!0),c||!u.ngOnChanges&&!u.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),c=!0),mr(t,l),i+=l.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,o=[];let s=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=i[c],n=t.inputs,l=null===r||Pi(e)?null:Or(n,r);o.push(l),s=dr(n,c,s),a=dr(t.outputs,c,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=s,e.outputs=a}(t,n),fr(t,e,i)}s&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const r=n[e[t+1]];if(null==r)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],r)}}}(n,i,s)}return n.mergedAttrs=an(n.mergedAttrs,n.attrs),r}function mr(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function fr(t,e,n){for(let i=0;i<n;i++)e.push(Fi),t.blueprint.push(Fi),t.data.push(null)}function br(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function gr(t,e,n){const i=20-e.index,r=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,r,n)}function _r(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function vr(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;Vt(e)&&(n[""]=t)}}function yr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function wr(t,e,n){t.data.push(n);const i=n.factory||(n.factory=It(n.type)),r=new nn(i,Vt(n),null);t.blueprint.push(r),e.push(r)}function Cr(t,e,n){const i=ce(e,t),r=cr(n),o=t[10],s=kr(t,Zi(t,r,null,n.onPush?64:16,i,e,o,o.createRenderer(i,n),null,null));t[e.index]=s}function xr(t,e,n,i,r,o){const s=o[e];if(null!==s){const t=i.setInput;for(let e=0;e<s.length;){const r=s[e++],o=s[e++],a=s[e++];null!==t?i.setInput(n,a,r,o):n[o]=a}}}function Or(t,e){let n=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;t.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,t[r],e[i+1])),i+=2}else i+=2;else i+=4}return n}function Sr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function Tr(t,e){const n=de(e,t);if(me(n)){const t=n[1];80&n[2]?nr(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=ji(e);null!==i;i=Bi(i))for(let e=10;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];nr(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=de(n[i],e);me(r)&&r[5]>0&&t(r)}}(n)}}function Dr(t,e){const n=de(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),er(i,n,n[8])}function kr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Pr(t){for(;t;){t[2]|=64;const e=Vi(t);if(jt(t)&&!e)return t;t=e}return null}function Er(t,e,n){const i=e[10];i.begin&&i.begin();try{nr(t,e,t.template,n)}catch(r){throw Rr(e,r),r}finally{i.end&&i.end()}}function Ar(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=he(n),r=i[1];ir(r,i,r.template,n)}}(t[8])}function Ir(t,e,n){Ne(0),e(t,n)}const Mr=(()=>Promise.resolve(null))();function Ur(t){return t[7]||(t[7]=[])}function Lr(t,e,n){return(null===t||Vt(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Rr(t,e){const n=t[9],i=n?n.get(Mn,null):null;i&&i.handleError(e)}function Nr(t,e,n,i,r){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],c=e[s],l=t.data[s];null!==l.setInput?l.setInput(c,r,i,a):c[a]=r}}function Fr(t,e,n){const i=ae(e,t),r=t[11];re(r)?r.setValue(i,n):i.textContent=n}function Vr(t,e,n,i,r){if(null!=i){let o,s=!1;Lt(i)?o=i:Ut(i)&&(s=!0,i=i[0]);const a=se(i);0===t&&null!==n?null==r?Jr(e,n,a):Gr(e,n,a,r||null):1===t&&null!==n?Gr(e,n,a,r||null):2===t?function(t,e,n){const i=$r(t,e);i&&function(t,e,n,i){re(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,i,r){const o=n[7];o!==se(n)&&Vr(e,t,i,o,r);for(let s=10;s<n.length;s++){const r=n[s];Xr(r[1],r,t,e,i,o)}}(e,t,o,n,r)}}function jr(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,ge(r,-1)),n.splice(i,1)}function Br(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const o=i[17];null!==o&&o!==t&&jr(o,i),e>0&&(t[n-1][4]=i[4]);const s=dt(t,10+e);Xr(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=s[19];null!==a&&a.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function zr(t,e){if(!(256&e[2])){const n=e[11];re(n)&&n.destroyNode&&Xr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return qr(t[1],t);for(;e;){let n=null;if(Ut(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Ut(e)&&qr(e[1],e),e=e[3];null===e&&(e=t),Ut(e)&&qr(e[1],e),n=e&&e[4]}e=n}}(e)}}function qr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof nn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const r=n[i+1],o="function"==typeof r?r(e):se(e[r]),s=t[n[i+2]],a=n[i+3];"boolean"==typeof a?o.removeEventListener(n[i],s,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e),1===e[1].type&&re(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Lt(e[3])){n!==e[3]&&jr(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Hr(t,e,n){let i=e.parent;for(;null!=i&&(3===i.type||4===i.type);)i=(e=i).parent;if(null===i)return n[0];if(e&&4===e.type&&4&e.flags)return ce(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==gt.ShadowDom&&n!==gt.Native)return null}return ce(i,n)}function Gr(t,e,n,i){re(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Jr(t,e,n){re(t)?t.appendChild(e,n):e.appendChild(n)}function Yr(t,e,n,i){null!==i?Gr(t,e,n,i):Jr(t,e,n)}function $r(t,e){return re(t)?t.parentNode(e):e.parentNode}function Wr(t,e){return 3===t.type||4===t.type?ce(t,e):null}function Kr(t,e,n,i){const r=Hr(t,i,e);if(null!=r){const t=e[11],o=Wr(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Yr(t,r,n[e],o);else Yr(t,r,n,o)}}function Qr(t,e,n,i,r,o,s){for(;null!=n;){const a=i[n.index],c=n.type;s&&0===e&&(a&&Ti(se(a),i),n.flags|=4),64!=(64&n.flags)&&(3===c||4===c?(Qr(t,e,n.child,i,r,o,!1),Vr(e,t,r,a,o)):1===c?Zr(t,e,i,n,r,o):Vr(e,t,r,a,o)),n=s?n.projectionNext:n.next}}function Xr(t,e,n,i,r,o){Qr(n,i,t.firstChild,e,r,o,!1)}function Zr(t,e,n,i,r,o){const s=n[16],a=s[6].projection[i.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)Vr(e,t,r,a[c],o);else Qr(t,e,a,s[3],r,o,!0)}function to(t,e,n){re(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function eo(t,e,n){re(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class no{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView,e=t[1];return function t(e,n,i,r,o=!1){for(;null!==i;){const s=n[i.index];if(null!==s&&r.push(se(s)),Lt(s))for(let e=10;e<s.length;e++){const n=s[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,r)}const a=i.type;if(3===a||4===a)t(e,n,i.child,r);else if(1===a){const e=n[16],o=e[6].projection[i.projection];if(Array.isArray(o))r.push(...o);else{const n=Vi(e);t(n[1],n,o,r,!0)}}i=o?i.projectionNext:i.next}return r}(e,t,e.firstChild,[])}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}zr(this._lView[1],this._lView)}onDestroy(t){ur(this._lView[1],this._lView,null,t)}markForCheck(){Pr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Er(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ke(!0);try{Er(t,e,n)}finally{ke(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Xr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class io extends no{constructor(t){super(t),this._view=t}detectChanges(){Ar(this._view)}checkNoChanges(){!function(t){ke(!0);try{Ar(t)}finally{ke(!1)}}(this._view)}get context(){return null}}let ro,oo,so;function ao(t,e,n){return ro||(ro=class extends t{}),new ro(ce(e,n))}function co(t,e,n,i){return oo||(oo=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Zi(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),er(e,n,t),new no(n)}}),0===n.type?new oo(i,n,ao(e,n,i)):null}function lo(t,e,n,i){let r;so||(so=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return ao(e,this._hostTNode,this._hostView)}get injector(){return new Dn(this._hostTNode,this._hostView)}get parentInjector(){const t=_n(this._hostTNode,this._hostView);if(ln(t)){const e=dn(t,this._hostView),n=un(t);return new Dn(e[1].data[n+8],e)}return new Dn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){const t=o.get(at,null);t&&(r=t)}const s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Lt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new so(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,i){const r=10+i,o=n.length;i>0&&(n[r-1][4]=e),i<o-10?(e[4]=n[r],ut(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,o,r);const s=function t(e,n){const i=10+e+1;if(i<n.length){const e=n[i],r=e[1].firstChild;if(null!==r)return function e(n,i){if(null!==i){const r=i.type;if(2===r)return ce(i,n);if(0===r)return t(-1,n[i.index]);if(3===r||4===r){const r=i.child;if(null!==r)return e(n,r);{const e=n[i.index];return Lt(e)?t(-1,e):se(e)}}{const t=n[16],r=t[6],o=Vi(t),s=r.projection[i.projection];return null!=s?e(o,s):e(n,i.next)}}return null}(e,r)}return n[7]}(r,o),a=n[11],c=$r(a,o[7]);return null!==c&&function(t,e,n,i,r,o){i[0]=r,i[6]=e,Xr(t,i,n,1,r,o)}(i,o[6],a,n,c,s),t.attachToViewContainerRef(this),ut(o[8],r,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Br(this._lContainer,e);n&&(dt(this._lContainer[8],e),zr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Br(this._lContainer,e);return n&&null!=dt(this._lContainer[8],e)?new no(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=i[n.index];if(Lt(o))r=o;else{let t;if(3===n.type)t=se(o);else if(t=i[11].createComment(""),jt(i)){const e=i[11],r=ce(n,i);Gr(e,$r(e,r),t,function(t,e){return re(t)?t.nextSibling(e):e.nextSibling}(e,r))}else Kr(i[1],i,t,n);i[n.index]=r=Sr(o,i,t,n),kr(i,r)}return new so(r,n,i)}function uo(t=!1){return function(t,e,n){if(!n&&Nt(t)){const n=de(t.index,e);return new no(n,n)}return 2===t.type||0===t.type||3===t.type||4===t.type?new no(e[16],e):null}(xe(),ye(),t)}let ho=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>po(),t})();const po=uo,mo=Function,fo=new J("Set Injector scope."),bo={},go={},_o=[];let vo=void 0;function yo(){return void 0===vo&&(vo=new st),vo}function wo(t,e=null,n=null,i){return new Co(t,n,e||yo(),i)}class Co{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const r=[];e&&lt(e,n=>this.processProvider(n,t,e)),lt([t],t=>this.processInjectorType(t,[],r)),this.records.set(Y,So(void 0,this));const o=this.records.get(fo);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:k(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=$,n=m.Default){this.assertNotDestroyed();const i=Z(this);try{if(!(n&m.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof J)&&y(t);e=n&&this.injectableDefInScope(n)?So(xo(t),bo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&m.Self?yo():this.parent).get(t,e=n&m.Optional&&e===$?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(k(t)),i)throw o;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e.__source&&r.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=k(e);if(Array.isArray(e))r=e.map(k).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):k(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(W,"\n  ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{Z(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(k(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=I(t)))return!1;let i=C(t);const r=null==i&&t.ngModule||void 0,o=void 0===r?t:r,s=-1!==n.indexOf(o);if(void 0!==r&&(i=C(r)),null==i)return!1;if(null!=i.imports&&!s){let t;n.push(o);try{lt(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];lt(i,t=>this.processProvider(t,n,i||_o))}}this.injectorDefTypes.add(o),this.records.set(o,So(i.factory,bo));const a=i.providers;if(null!=a&&!s){const e=t;lt(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=Do(t=I(t))?t:I(t&&t.provide);const r=function(t,e,n){return To(t)?So(void 0,t.useValue):So(Oo(t),bo)}(t);if(Do(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=So(void 0,bo,!0),e.factory=()=>ot(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){var n;return e.value===bo&&(e.value=go,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function xo(t){const e=y(t),n=null!==e?e.factory:It(t);if(null!==n)return n;const i=C(t);if(null!==i)return i.factory;if(t instanceof J)throw new Error(`Token ${k(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ht(e,"?");throw new Error(`Can't resolve all parameters for ${k(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[x]||t[T]||t[S]&&t[S]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);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.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Oo(t,e,n){let i=void 0;if(Do(t)){const e=I(t);return It(e)||xo(e)}if(To(t))i=()=>I(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...ot(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>nt(I(t.useExisting));else{const e=I(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return It(e)||xo(e);i=()=>new e(...ot(t.deps))}var r;return i}function So(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function To(t){return null!==t&&"object"==typeof t&&K in t}function Do(t){return"function"==typeof t}const ko=function(t,e,n){return function(t,e=null,n=null,i){const r=wo(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let Po=(()=>{class t{static create(t,e){return Array.isArray(t)?ko(t,e,""):ko(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=$,t.NULL=new st,t.\u0275prov=g({token:t,providedIn:"any",factory:()=>nt(Y)}),t.__NG_ELEMENT_ID__=-1,t})();const Eo=new J("AnalyzeForEntryComponents");function Ao(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,o=0;if(null!==e)for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?o=t:1==o?r=P(r,t):2==o&&(i=P(i,t+": "+e[++s]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}function Io(t,e){const n=he(t)[1],i=n.data.length-1;Ke(n,{directiveStart:i,directiveEnd:i+1})}function Mo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r=void 0;if(Vt(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=Uo(t.inputs),e.declaredInputs=Uo(t.declaredInputs),e.outputs=Uo(t.outputs);const n=r.hostBindings;n&&No(t,n);const o=r.viewQuery,s=r.contentQueries;if(o&&Lo(t,o),s&&Ro(t,s),b(t.inputs,r.inputs),b(t.declaredInputs,r.declaredInputs),b(t.outputs,r.outputs),Vt(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i<e.length;i++){const r=e[i];r&&r.ngInherit&&r(t),r===Mo&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=an(r.hostAttrs,n=an(n,r.hostAttrs))}}(i)}function Uo(t){return t===_t?{}:t===vt?[]:t}function Lo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function Ro(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function No(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Fo=null;function Vo(){if(!Fo){const t=F.Symbol;if(t&&t.iterator)Fo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Fo=n)}}}return Fo}class jo{constructor(t){this.wrapped=t}static wrap(t){return new jo(t)}static unwrap(t){return jo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof jo}}function Bo(t){return!!zo(t)&&(Array.isArray(t)||!(t instanceof Map)&&Vo()in t)}function zo(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function qo(t,e,n){return t[e]=n}function Ho(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Go(t,e,n,i){const r=Ho(t,e,n);return Ho(t,e+1,i)||r}function Jo(t,e,n,i){const r=ye();return Ho(r,Ae(),e)&&(we(),function(t,e,n,i,r,o){const s=ce(t,e),a=e[11];if(null==i)re(a)?a.removeAttribute(s,n,o):s.removeAttribute(n);else{const e=null==r?Bt(i):r(i,t.tagName||"",n);re(a)?a.setAttribute(s,n,e,o):o?s.setAttributeNS(o,n,e):s.setAttribute(n,e)}}(Ye(),r,t,e,n,i)),Jo}function Yo(t,e,n,i){return Ho(t,Ae(),n)?e+Bt(n)+i:Fi}function $o(t,e,n,i,r,o){const s=Go(t,Ee(),n,r);return Ie(2),s?e+Bt(n)+i+Bt(r)+o:Fi}function Wo(t,e,n,i,r,o,s,a){const c=ye(),l=we(),u=t+20,d=l.firstCreatePass?function(t,e,n,i,r,o,s,a,c){const l=e.consts,u=tr(e,t,0,s||null,fe(l,a));pr(e,n,u,fe(l,c)),Ke(e,u);const d=u.tViews=lr(2,u,i,r,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(t,l,c,e,n,i,r,o,s):l.data[u];Oe(d,!1);const h=c[11].createComment("");Kr(l,c,h,d),Ti(h,c),kr(c,c[u]=Sr(h,c,h,d)),Ft(d)&&sr(l,c,d),null!=s&&ar(c,d,a)}function Ko(t){return ue(_e.lFrame.contextLView,t)}function Qo(t,e=m.Default){const n=ye();return null===n?nt(t,e):yn(xe(),n,I(t),e)}function Xo(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const r=n[i];if(on(r))break;if(0===r)i+=2;else if("number"==typeof r)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(r===e)return n[i+1];i+=2}}}return null}(xe(),t)}function Zo(){throw new Error("invalid")}function ts(t,e,n){const i=ye();return Ho(i,Ae(),e)&&hr(we(),Ye(),i,t,e,i[11],n,!1),ts}function es(t,e,n,i,r){const o=r?"class":"style";Nr(t,n,e.inputs[o],o,i)}function ns(t,e,n,i){const r=ye(),o=we(),s=20+t,a=r[11],c=r[s]=Xi(e,a,_e.lFrame.currentNamespace),l=o.firstCreatePass?function(t,e,n,i,r,o,s){const a=e.consts,c=tr(e,t,2,r,fe(a,o));return pr(e,n,c,fe(a,s)),null!==c.attrs&&Ao(c,c.attrs,!1),null!==c.mergedAttrs&&Ao(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,o,r,0,e,n,i):o.data[s];Oe(l,!0);const u=l.mergedAttrs;null!==u&&rn(a,c,u);const d=l.classes;null!==d&&eo(a,c,d);const h=l.styles;null!==h&&to(a,c,h),Kr(o,r,c,l),0===_e.lFrame.elementDepthCount&&Ti(c,r),_e.lFrame.elementDepthCount++,Ft(l)&&(sr(o,r,l),or(o,l,r)),null!==i&&ar(r,l)}function is(){let t=xe();Se()?Te():(t=t.parent,Oe(t,!1));const e=t;_e.lFrame.elementDepthCount--;const n=we();n.firstCreatePass&&(Ke(n,t),Rt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&es(n,e,ye(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&es(n,e,ye(),e.stylesWithoutHost,!1)}function rs(t,e,n,i){ns(t,e,n,i),is()}function os(t,e,n){const i=ye(),r=we(),o=t+20,s=r.firstCreatePass?function(t,e,n,i,r){const o=e.consts,s=fe(o,i),a=tr(e,t,3,"ng-container",s);return null!==s&&Ao(a,s,!0),pr(e,n,a,fe(o,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,r,i,e,n):r.data[o];Oe(s,!0);const a=i[o]=i[11].createComment("");Kr(r,i,a,s),Ti(a,i),Ft(s)&&(sr(r,i,s),or(r,s,i)),null!=n&&ar(i,s)}function ss(){let t=xe();const e=we();Se()?Te():(t=t.parent,Oe(t,!1)),e.firstCreatePass&&(Ke(e,t),Rt(t)&&e.queries.elementEnd(t))}function as(t,e,n){os(t,e,n),ss()}function cs(){return ye()}function ls(t){return!!t&&"function"==typeof t.then}function us(t){return!!t&&"function"==typeof t.subscribe}function ds(t,e,n=!1,i){const r=ye(),o=we(),s=xe();return ps(o,r,r[11],s,t,e,n,i),ds}function hs(t,e,n=!1,i){const r=xe(),o=ye(),s=we();return ps(s,o,Lr(Le(s.data),r,o),r,t,e,n,i),hs}function ps(t,e,n,i,r,o,s=!1,a){const c=Ft(i),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=Ur(e);let d=!0;if(2===i.type){const h=ce(i,e),p=a?a(h):_t,m=p.target||h,f=u.length,b=a?t=>a(se(t[i.index])).target:i.index;if(re(n)){let s=null;if(!a&&c&&(s=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const t=r[o];if(t===n&&r[o+1]===i){const t=e[7],n=r[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,r,i.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,d=!1;else{o=fs(i,e,o,!1);const t=n.listen(p.name||m,r,o);u.push(o,t),l&&l.push(r,b,f,f+1)}}else o=fs(i,e,o,!0),m.addEventListener(r,o,s),u.push(o),l&&l.push(r,b,f,s)}const h=i.outputs;let p;if(d&&null!==h&&(p=h[r])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(o),s=u.length;u.push(o,t),l&&l.push(r,i.index,s,-(s+1))}}}function ms(t,e,n){try{return!1!==e(n)}catch(i){return Rr(t,i),!1}}function fs(t,e,n,i){return function r(o){if(o===Function)return n;const s=2&t.flags?de(t.index,e):e;0==(32&e[2])&&Pr(s);let a=ms(e,n,o),c=r.__ngNextListenerFn__;for(;c;)a=ms(e,c,o)&&a,c=c.__ngNextListenerFn__;return i&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function bs(t=1){return function(t){return(_e.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,_e.lFrame.contextLView))[8]}(t)}function gs(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r<e.length;r++){const o=e[r];if("*"!==o){if(null===i?Ui(t,o,!0):Li(i,o))return r}else n=r}return n}function _s(t){const e=ye()[16][6];if(!e.projection){const n=e.projection=ht(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?gs(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function vs(t,e=0,n){const i=ye(),r=we(),o=tr(r,t,1,null,n||null);null===o.projection&&(o.projection=e),Te(),function(t,e,n){Zr(e[11],0,e,n,Hr(t,n,e),Wr(n.parent||e[6],e))}(r,i,o)}function ys(t,e,n){return ws(t,"",e,"",n),ys}function ws(t,e,n,i,r){const o=ye(),s=Yo(o,e,n,i);return s!==Fi&&hr(we(),Ye(),o,t,s,o[11],r,!1),ws}function Cs(t,e,n,i,r,o,s){const a=ye(),c=$o(a,e,n,i,r,o);return c!==Fi&&hr(we(),Ye(),a,t,c,a[11],s,!1),Cs}const xs=[];function Os(t,e,n,i,r){const o=t[n+1],s=null===e;let a=i?Ji(o):$i(o),c=!1;for(;0!==a&&(!1===c||s);){const n=t[a+1];Ss(t[a],e)&&(c=!0,t[a+1]=i?Ki(n):Yi(n)),a=i?Ji(n):$i(n)}c&&(t[n+1]=i?Yi(o):Ki(o))}function Ss(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ft(t,e)>=0}const Ts={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ds(t){return t.substring(Ts.key,Ts.keyEnd)}function ks(t,e){const n=Ts.textEnd;return n===e?-1:(e=Ts.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Ts.key=e,n),Ps(t,e,n))}function Ps(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Es(t,e,n){return Ms(t,e,n,!1),Es}function As(t,e){return Ms(t,e,null,!0),As}function Is(t,e){for(let n=function(t){return function(t){Ts.key=0,Ts.keyEnd=0,Ts.value=0,Ts.valueEnd=0,Ts.textEnd=t.length}(t),ks(t,Ps(t,0,Ts.textEnd))}(e);n>=0;n=ks(e,n))pt(t,Ds(e),!0)}function Ms(t,e,n,i){const r=ye(),o=we(),s=Ie(2);o.firstUpdatePass&&Ls(o,t,s,i),e!==Fi&&Ho(r,s,e)&&Fs(o,o.data[Ge()+20],r,r[11],t,r[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=k(jn(t)))),t}(e,n),i,s)}function Us(t,e){return e>=t.expandoStartIndex}function Ls(t,e,n,i){const r=t.data;if(null===r[n+1]){const o=r[Ge()+20],s=Us(t,n);Bs(o,i)&&null===e&&!s&&(e=!1),e=function(t,e,n,i){const r=Le(t);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Ns(n=Rs(null,t,e,n,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==r)if(n=Rs(r,t,e,n,i),null===o){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==$i(i))return t[Ji(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Rs(null,t,e,n[1],i),n=Ns(n,e.attrs,i),function(t,e,n,i){t[Ji(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else o=function(t,e,n){let i=void 0;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<r;o++)i=Ns(i,t[o].hostAttrs,n);return Ns(i,e.attrs,n)}(t,e,i)}return void 0!==o&&(i?e.residualClasses=o:e.residualStyles=o),n}(r,o,e,i),function(t,e,n,i,r,o){let s=o?e.classBindings:e.styleBindings,a=Ji(s),c=$i(s);t[i]=n;let l,u=!1;if(Array.isArray(n)){const t=n;l=t[1],(null===l||ft(t,l)>0)&&(u=!0)}else l=n;if(r)if(0!==c){const e=Ji(t[a+1]);t[i+1]=Gi(e,a),0!==e&&(t[e+1]=Wi(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Gi(a,0),0!==a&&(t[a+1]=Wi(t[a+1],i)),a=i;else t[i+1]=Gi(c,0),0===a?a=i:t[c+1]=Wi(t[c+1],i),c=i;u&&(t[i+1]=Yi(t[i+1])),Os(t,l,i,!0),Os(t,l,i,!1),function(t,e,n,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ft(o,e)>=0&&(n[i+1]=Ki(n[i+1]))}(e,l,t,i,o),s=Gi(a,c),o?e.classBindings=s:e.styleBindings=s}(r,o,e,n,s,i)}}function Rs(t,e,n,i,r){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],i=Ns(i,o.hostAttrs,r),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Ns(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?r=s:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),pt(t,s,!!n||e[++o]))}return void 0===t?null:t}function Fs(t,e,n,i,r,o,s,a){if(2!==e.type)return;const c=t.data,l=c[a+1];js(1==(1&l)?Vs(c,e,n,r,$i(l),s):void 0)||(js(o)||2==(2&l)&&(o=Vs(c,null,n,r,a,s)),function(t,e,n,i,r){const o=re(t);if(e)r?o?t.addClass(n,i):n.classList.add(i):o?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==r?o?t.removeStyle(n,i,e):n.style.removeProperty(i):o?t.setStyle(n,i,r,e):n.style.setProperty(i,r)}}(i,s,ae(Ge(),n),r,o))}function Vs(t,e,n,i,r,o){const s=null===e;let a=void 0;for(;r>0;){const e=t[r],o=Array.isArray(e),c=o?e[1]:e,l=null===c;let u=n[r+1];u===Fi&&(u=l?xs:void 0);let d=l?mt(u,i):c===i?u:void 0;if(o&&!js(d)&&(d=mt(e,i)),js(d)&&(a=d,s))return a;const h=t[r+1];r=s?Ji(h):$i(h)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=mt(t,i))}return a}function js(t){return void 0!==t}function Bs(t,e){return 0!=(t.flags&(e?16:32))}function zs(t,e=""){const n=ye(),i=we(),r=t+20,o=i.firstCreatePass?tr(i,t,2,null,null):i.data[r],s=n[r]=function(t,e){return re(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Kr(i,n,s,o),Oe(o,!1)}function qs(t){return Hs("",t,""),qs}function Hs(t,e,n){const i=ye(),r=Yo(i,t,e,n);return r!==Fi&&Fr(i,Ge(),r),Hs}function Gs(t,e,n,i,r){const o=ye(),s=$o(o,t,e,n,i,r);return s!==Fi&&Fr(o,Ge(),s),Gs}function Js(t,e,n,i,r,o,s,a,c,l,u){const d=ye(),h=function(t,e,n,i,r,o,s,a,c,l,u,d){const h=Ee();let p=function(t,e,n,i,r,o){const s=Go(t,e,n,i);return Go(t,e+2,r,o)||s}(t,h,n,r,s,c);return p=Ho(t,h+4,u)||p,Ie(5),p?e+Bt(n)+i+Bt(r)+o+Bt(s)+a+Bt(c)+l+Bt(u)+d:Fi}(d,t,e,n,i,r,o,s,a,c,l,u);return h!==Fi&&Fr(d,Ge(),h),Js}function Ys(t,e,n){!function(t,e,n,i){const r=we(),o=Ie(2);r.firstUpdatePass&&Ls(r,null,o,true);const s=ye();if(n!==Fi&&Ho(s,o,n)){const i=r.data[Ge()+20];if(Bs(i,true)&&!Us(r,o)){let t=i.classesWithoutHost;null!==t&&(n=P(t,n||"")),es(r,i,s,n,true)}else!function(t,e,n,i,r,o,s,a){r===Fi&&(r=xs);let c=0,l=0,u=0<r.length?r[0]:null,d=0<o.length?o[0]:null;for(;null!==u||null!==d;){const s=c<r.length?r[c+1]:void 0,h=l<o.length?o[l+1]:void 0;let p=null,m=void 0;u===d?(c+=2,l+=2,s!==h&&(p=d,m=h)):null===d||null!==u&&u<d?(c+=2,p=u):(l+=2,p=d,m=h),null!==p&&Fs(t,e,n,i,p,m,true,a),u=c<r.length?r[c]:null,d=l<o.length?o[l]:null}}(r,i,s,s[11],s[o+1],s[o+1]=function(t,e,n){if(null==n||""===n)return xs;const i=[],r=jn(n);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else"string"==typeof r&&e(i,r);return i}(t,e,n),0,o)}}(pt,Is,Yo(ye(),t,e,n))}function $s(t,e,n){const i=ye();return Ho(i,Ae(),e)&&hr(we(),Ye(),i,t,e,i[11],n,!0),$s}function Ws(t,e,n){const i=ye();if(Ho(i,Ae(),e)){const r=we(),o=Ye();hr(r,o,i,t,e,Lr(Le(r.data),o,i),n,!0)}return Ws}const Ks=void 0;var Qs=["en",[["a","p"],["AM","PM"],Ks],[["AM","PM"],Ks,Ks],[["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"]],Ks,[["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"]],Ks,[["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}",Ks,"{1} 'at' {0}",Ks],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Xs={};function Zs(t,e,n){"string"!=typeof e&&(n=e,e=t[ra.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Xs[e]=t,n&&(Xs[e][ra.ExtraData]=n)}function ta(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ia(e);if(n)return n;const i=e.split("-")[0];if(n=ia(i),n)return n;if("en"===i)return Qs;throw new Error(`Missing locale data for the locale "${t}".`)}function ea(t){return ta(t)[ra.CurrencyCode]||null}function na(t){return ta(t)[ra.PluralCase]}function ia(t){return t in Xs||(Xs[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),Xs[t]}var ra=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});let oa="en-US";function sa(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(oa=t.toLowerCase().replace(/_/g,"-"))}function aa(t,e,n,i,r){if(t=I(t),Array.isArray(t))for(let o=0;o<t.length;o++)aa(t[o],e,n,i,r);else{const o=we(),s=ye();let a=Do(t)?t:I(t.provide),c=Oo(t);const l=xe(),u=1048575&l.providerIndexes,d=l.directiveStart,h=l.providerIndexes>>20;if(Do(t)||!t.multi){const i=new nn(c,r,Qo),p=ua(a,e,r?u:u+h,d);-1===p?(vn(fn(l,s),o,a),ca(o,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=ua(a,e,u+h,d),m=ua(a,e,u,u+h),f=p>=0&&n[p],b=m>=0&&n[m];if(r&&!b||!r&&!f){vn(fn(l,s),o,a);const u=function(t,e,n,i,r){const o=new nn(t,n,Qo);return o.multi=[],o.index=e,o.componentProviders=0,la(o,r,i&&!n),o}(r?ha:da,n.length,r,i,c);!r&&b&&(n[m].providerFactory=u),ca(o,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(u),s.push(u)}else ca(o,t,p>-1?p:m,la(n[r?m:p],c,!r&&i));!r&&i&&b&&n[m].componentProviders++}}}function ca(t,e,n,i){const r=Do(e);if(r||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[i,o]):s[t+1].push(i,o)}else s.push(n,o)}}}function la(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ua(t,e,n,i){for(let r=n;r<i;r++)if(e[r]===t)return r;return-1}function da(t,e,n,i){return pa(this.multi,[])}function ha(t,e,n,i){const r=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=On(n,n[1],this.providerFactory.index,i);o=e.slice(0,t),pa(r,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],pa(r,o);return o}function pa(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function ma(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=we();if(i.firstCreatePass){const r=Vt(t);aa(n,i.data,i.blueprint,r,!0),aa(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class fa{}class ba{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${k(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ga=(()=>{class t{}return t.NULL=new ba,t})(),_a=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>va(t),t})();const va=function(t){return ao(t,xe(),ye())};class ya{}var wa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>xa(),t})();const xa=function(){const t=ye(),e=de(xe().index,t);return function(t){const e=t[11];if(re(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ut(e)?e:t)};let Oa=(()=>{class t{}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>null}),t})();class Sa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Ta=new Sa("10.2.4");class Da{constructor(){}supports(t){return Bo(t)}create(t){return new Pa(t)}}const ka=(t,e)=>e;class Pa{constructor(t){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=t||ka}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const o=!n||e&&e.currentIndex<Ma(n,i,r)?e:n,s=Ma(o,i,r),a=o.currentIndex;if(o===n)i--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)i++;else{r||(r=[]);const t=s-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,o=i+n;e<=o&&o<t&&(r[n]=i+1)}r[o.previousIndex]=e-t}}s!==a&&t(o,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Bo(t))throw new Error(`Error trying to diff '${k(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,r=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==r&&Object.is(r.trackById,i)?(o&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),o=!0),r=r._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Vo()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(o&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),o=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):t=this._addAfter(new Ea(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ia),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ia),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ea{constructor(t,e){this.item=t,this.trackById=e,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 Aa{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ia{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Aa,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ma(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+e+r}class Ua{constructor(){}supports(t){return t instanceof Map||zo(t)}create(){return new La}}class La{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||zo(t)))throw new Error(`Error trying to diff '${k(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new Ra(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Ra{constructor(t){this.key=t,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 Na=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new d]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>new t([new Da])}),t})(),Fa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new d]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>new t([new Ua])}),t})();const Va=[new Ua],ja=new Na([new Da]),Ba=new Fa(Va);let za=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>qa(t,_a),t})();const qa=function(t,e){return co(t,e,xe(),ye())};let Ha=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ga(t,_a),t})();const Ga=function(t,e){return lo(t,e,xe(),ye())},Ja={};class Ya extends ga{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=At(t);return new Ka(e,this.ngModule)}}function $a(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Wa=new J("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qt});class Ka extends fa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ni).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return $a(this.componentDef.inputs)}get outputs(){return $a(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const o=t.get(n,Ja,r);return o!==Ja||i===Ja?o:e.get(n,i,r)}}}(t,i.injector):t,o=r.get(ya,oe),s=r.get(Oa,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(re(t))return t.selectRootElement(e,n===gt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Xi(c,o.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,d={components:[],scheduler:qt,clean:Mr,playerHandler:null,flags:0},h=lr(0,null,null,1,0,null,null,null,null,null),p=Zi(null,h,d,u,null,null,o,a,s,r);let m,f;Ve(p);try{const t=function(t,e,n,i,r,o){const s=n[1];n[20]=t;const a=tr(s,0,2,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Ao(a,c,!0),null!==t&&(rn(r,t,c),null!==a.classes&&eo(r,t,a.classes),null!==a.styles&&to(r,t,a.styles)));const l=i.createRenderer(t,e),u=Zi(n,cr(e),null,e.onPush?64:16,n[20],a,i,l,null,null);return s.firstCreatePass&&(vn(fn(a,n),s,e.type),_r(s,a),yr(a,n.length,1)),kr(n,u),n[20]=u}(l,this.componentDef,p,o,a);if(l)if(n)rn(a,l,["ng-version",Ta.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let o=t[i];if("string"==typeof o)2===r?""!==o&&e.push(o,t[++i]):8===r&&n.push(o);else{if(!Ii(r))break;r=o}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&rn(a,l,t),e&&e.length>0&&eo(a,l,e.join(" "))}if(f=le(h,0),void 0!==e){const t=f.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}m=function(t,e,n,i,r){const o=n[1],s=function(t,e,n){const i=xe();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),gr(t,i,1),wr(t,e,n));const r=On(e,t,e.length-1,i);Ti(r,e);const o=ce(i,e);return o&&Ti(o,e),r}(o,n,e);i.components.push(s),t[8]=s,r&&r.forEach(t=>t(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=xe();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Je(a.index-20);const t=n[1];mr(t,e),fr(t,n,e.hostVars),br(e,s)}return s}(t,this.componentDef,p,d,[Io]),er(h,p,null)}finally{He()}return new Qa(this.componentType,m,ao(_a,f,p),p,f)}}class Qa extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new io(i),this.componentType=t}get injector(){return new Dn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Xa=new Map;class Za extends at{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ya(this);const n=Mt(t),i=t[q]||null;i&&sa(i),this._bootstrapComponents=Yt(n.bootstrap),this._r3Injector=wo(t,e,[{provide:at,useValue:this},{provide:ga,useValue:this.componentFactoryResolver}],k(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Po.THROW_IF_NOT_FOUND,n=m.Default){return t===Po||t===at||t===Y?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class tc extends ct{constructor(t){super(),this.moduleType=t,null!==Mt(t)&&function(t){const e=new Set;!function t(n){const i=Mt(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${k(e)} vs ${k(e.name)}`)}(r,Xa.get(r),n),Xa.set(r,n));const o=Yt(i.imports);for(const s of o)e.has(s)||(e.add(s),t(s))}(t)}(t)}create(t){return new Za(this.moduleType,t)}}function ec(t,e,n){const i=Pe()+t,r=ye();return r[i]===Fi?qo(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function nc(t,e,n,i){return oc(ye(),Pe(),t,e,n,i)}function ic(t,e,n,i,r){return sc(ye(),Pe(),t,e,n,i,r)}function rc(t,e){const n=t[e];return n===Fi?void 0:n}function oc(t,e,n,i,r,o){const s=e+n;return Ho(t,s,r)?qo(t,s+1,o?i.call(o,r):i(r)):rc(t,s+1)}function sc(t,e,n,i,r,o,s){const a=e+n;return Go(t,a,r,o)?qo(t,a+2,s?i.call(s,r,o):i(r,o)):rc(t,a+2)}function ac(t,e){const n=we();let i;const r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const o=i.factory||(i.factory=It(i.type)),s=tt(Qo);try{const e=pn(!1),i=o();return pn(e),function(t,e,n,i){const r=n+20;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(n,ye(),t,i),i}finally{tt(s)}}function cc(t,e,n){const i=ye(),r=ue(i,t);return dc(i,uc(i,t)?oc(i,Pe(),e,r.transform,n,r):r.transform(n))}function lc(t,e,n,i){const r=ye(),o=ue(r,t);return dc(r,uc(r,t)?sc(r,Pe(),e,o.transform,n,i,o):o.transform(n,i))}function uc(t,e){return t[1].data[e+20].pure}function dc(t,e){return jo.isWrapped(e)&&(e=jo.unwrap(e),t[Ee()]=Fi),e}const hc=class extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,o=t=>null,s=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(o=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(o=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,o,s);return t instanceof r.a&&t.add(a),a}};function pc(){return this._results[Vo()]()}class mc{constructor(){this.dirty=!0,this._results=[],this.changes=new hc,this.length=0;const t=Vo(),e=mc.prototype;e[t]||(e[t]=pc)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?(n===e&&(n=e.slice(0,i)),t(r,n)):n!==e&&n.push(r)}return n}(t),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 fc{constructor(t){this.queryList=t,this.matches=null}clone(){return new fc(this.queryList)}setDirty(){this.queryList.setDirty()}}class bc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new bc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Mc(t,e).matches&&this.queries[e].setDirty()}}class gc{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class _c{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,r=this.getByIndex(n).embeddedTView(t,i);r&&(r.indexInDeclarationView=n,null!==e?e.push(r):e=[r])}return null!==e?new _c(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class vc{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new vc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&3===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){const r=n[i];this.matchTNodeWithReadOption(t,e,yc(e,r)),this.matchTNodeWithReadOption(t,e,xn(e,t,r,!1,!1))}else n===za?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,xn(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===_a||i===Ha||i===za&&0===e.type)this.addMatch(e.index,-2);else{const n=xn(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function yc(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function wc(t,e,n,i){return-1===n?function(t,e){return 2===t.type||3===t.type?ao(_a,t,e):0===t.type?co(za,_a,t,e):null}(e,t):-2===n?function(t,e,n){return n===_a?ao(_a,e,t):n===za?co(za,_a,e,t):n===Ha?lo(Ha,_a,e,t):void 0}(t,e,i):On(t,t[1],n,e)}function Cc(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,o=n.matches,s=[];for(let t=0;t<o.length;t+=2){const r=o[t];s.push(r<0?null:wc(e,i[r],o[t+1],n.metadata.read))}r.matches=s}return r.matches}function xc(t){const e=ye(),n=we(),i=Re();Ne(i+1);const r=Mc(n,i);if(t.dirty&&pe(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{const o=r.crossesNgTemplate?function t(e,n,i,r){const o=e.queries.getByIndex(i),s=o.matches;if(null!==s){const a=Cc(e,n,o,i);for(let e=0;e<s.length;e+=2){const i=s[e];if(i>0)r.push(a[e/2]);else{const o=s[e+1],a=n[-i];for(let e=10;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,o,r)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,o,r)}}}}}return r}(n,e,i,[]):Cc(n,e,r,i);t.reset(o),t.notifyOnChanges()}return!0}return!1}function Oc(t,e,n){Tc(we(),ye(),t,e,n,!0)}function Sc(t,e,n){Tc(we(),ye(),t,e,n,!1)}function Tc(t,e,n,i,r,o){t.firstCreatePass&&(Ic(t,new gc(n,i,o,r),-1),o&&(t.staticViewQueries=!0)),Ac(t,e)}function Dc(t,e,n,i){Pc(we(),ye(),e,n,i,!1,xe(),t)}function kc(t,e,n,i){Pc(we(),ye(),e,n,i,!0,xe(),t)}function Pc(t,e,n,i,r,o,s,a){t.firstCreatePass&&(Ic(t,new gc(n,i,o,r),s.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),o&&(t.staticContentQueries=!0)),Ac(t,e)}function Ec(){return t=ye(),e=Re(),t[19].queries[e].queryList;var t,e}function Ac(t,e){const n=new mc;ur(t,e,n,n.destroy),null===e[19]&&(e[19]=new bc),e[19].queries.push(new fc(n))}function Ic(t,e,n){null===t.queries&&(t.queries=new _c),t.queries.track(new vc(e,n))}function Mc(t,e){return t.queries.getByIndex(e)}function Uc(t,e){return co(za,_a,t,e)}function Lc(t=m.Default){const e=uo(!0);if(null!=e||t&m.Optional)return e;$t("ChangeDetectorRef")}const Rc=new J("Application Initializer");let Nc=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();ls(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(nt(Rc,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const Fc=new J("AppId"),Vc={provide:Fc,useFactory:function(){return`${jc()}${jc()}${jc()}`},deps:[]};function jc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bc=new J("Platform Initializer"),zc=new J("Platform ID"),qc=new J("appBootstrapListener");let Hc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const Gc=new J("LocaleId"),Jc=new J("DefaultCurrencyCode");class Yc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const $c=function(t){return new tc(t)},Wc=$c,Kc=function(t){return Promise.resolve($c(t))},Qc=function(t){const e=$c(t),n=Yt(Mt(t).declarations).reduce((t,e)=>{const n=At(e);return n&&t.push(new Ka(n)),t},[]);return new Yc(e,n)},Xc=Qc,Zc=function(t){return Promise.resolve(Qc(t))};let tl=(()=>{class t{constructor(){this.compileModuleSync=Wc,this.compileModuleAsync=Kc,this.compileModuleAndAllComponentsSync=Xc,this.compileModuleAndAllComponentsAsync=Zc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const el=(()=>Promise.resolve(0))();function nl(t){"undefined"==typeof Zone?el.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class il{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new hc(!1),this.onMicrotaskEmpty=new hc(!1),this.onStable=new hc(!1),this.onError=new hc(!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.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,al(t),sl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),al(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,r,o,s,a)=>{try{return cl(t),n.invokeTask(r,o,s,a)}finally{e&&"eventTask"===o.type&&e(),ll(t)}},onInvoke:(e,n,i,r,o,s,a)=>{try{return cl(t),e.invoke(i,r,o,s,a)}finally{ll(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,al(t),sl(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!il.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(il.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,t,ol,rl,rl);try{return r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function rl(){}const ol={};function sl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function al(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function cl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function ll(t){t._nesting--,sl(t)}class ul{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new hc,this.onMicrotaskEmpty=new hc,this.onStable=new hc,this.onError=new hc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let dl=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{il.assertNotInAngularZone(),nl(()=>{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())nl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(nt(il))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})(),hl=(()=>{class t{constructor(){this._applications=new Map,bl.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return bl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();class pl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function ml(t){bl=t}let fl,bl=new pl;const gl=new J("AllowMultipleToken");class _l{constructor(t,e){this.name=t,this.token=e}}function vl(t,e,n=[]){const i="Platform: "+e,r=new J(i);return(e=[])=>{let o=yl();if(!o||o.injector.get(gl,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:fo,useValue:"platform"});!function(t){if(fl&&!fl.destroyed&&!fl.injector.get(gl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");fl=t.get(wl);const e=t.get(Bc,null);e&&e.forEach(t=>t())}(Po.create({providers:t,name:i}))}return function(t){const e=yl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function yl(){return fl&&!fl.destroyed?fl:null}let wl=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new ul:("zone.js"===t?void 0:t)||new il({enableLongStackTrace:Kn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:il,useValue:n}];return n.run(()=>{const e=Po.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),o=r.injector.get(Mn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return r.onDestroy(()=>Ol(this._modules,r)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const i=n();return ls(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(o,n,()=>{const t=r.injector.get(Nc);return t.runInitializers(),t.donePromise.then(()=>(sa(r.injector.get(Gc,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Cl({},e);return function(t,e,n){const i=new tc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(xl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${k(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(nt(Po))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function Cl(t,e){return Array.isArray(e)?e.reduce(Cl,t):Object.assign(Object.assign({},t),e)}let xl=(()=>{class t{constructor(t,e,n,i,r,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Kn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new o.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{il.assertNotInAngularZone(),nl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{il.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(l,u.pipe(Object(a.a)()))}bootstrap(t,e){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=t instanceof fa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(at),r=n.create(Po.NULL,[],e||n.selector,i);r.onDestroy(()=>{this._unloadComponent(r)});const o=r.injector.get(dl,null);return o&&r.injector.get(hl).registerApplication(r.location.nativeElement,o),this._loadComponent(r),Kn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Ol(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(qc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Ol(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(nt(il),nt(Hc),nt(Po),nt(Mn),nt(ga),nt(Nc))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function Ol(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Sl{}class Tl{}const Dl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let kl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Dl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("crnd")(e).then(t=>t[i]).then(t=>Pl(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n("crnd")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>Pl(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(nt(tl),nt(Tl,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function Pl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class El extends ho{}class Al extends El{}const Il=function(t){return null},Ml=vl(null,"core",[{provide:zc,useValue:"unknown"},{provide:wl,deps:[Po]},{provide:hl,deps:[]},{provide:Hc,deps:[]}]),Ul=[{provide:xl,useClass:xl,deps:[il,Hc,Po,Mn,ga,Nc]},{provide:Wa,deps:[il],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Nc,useClass:Nc,deps:[[new d,Rc]]},{provide:tl,useClass:tl,deps:[]},Vc,{provide:Na,useFactory:function(){return ja},deps:[]},{provide:Fa,useFactory:function(){return Ba},deps:[]},{provide:Gc,useFactory:function(t){return sa(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new u(Gc),new d,new p]]},{provide:Jc,useValue:"USD"}];let Ll=(()=>{class t{constructor(t){}}return t.\u0275mod=Tt({type:t}),t.\u0275inj=v({factory:function(e){return new(e||t)(nt(xl))},providers:Ul}),t})()},ffpz:function(t,e,n){"use strict";e.Scheduler=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},fnxQ:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.sequenceEqual=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compareTo,this.comparator))},t}();e.SequenceEqualOperator=o;var s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.compareTo=n,r.comparator=i,r._a=[],r._b=[],r._oneComplete=!1,r.destination.add(n.subscribe(new a(e,r))),r}return i(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var i=t.shift(),r=e.shift(),o=!1;try{o=n?n(i,r):i===r}catch(s){this.destination.error(s)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(r.Subscriber);e.SequenceEqualSubscriber=s;var a=function(t){function e(e,n){var i=t.call(this,e)||this;return i.parent=n,i}return i(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(r.Subscriber)},g5Dd:function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),i=0;i<t.length;i++)n[t.charCodeAt(i)]=i;e.encode=function(e){var n,i=new Uint8Array(e),r=i.length,o="";for(n=0;n<r;n+=3)o+=t[i[n]>>2],o+=t[(3&i[n])<<4|i[n+1]>>4],o+=t[(15&i[n+1])<<2|i[n+2]>>6],o+=t[63&i[n+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,i,r,o,s,a=.75*t.length,c=t.length,l=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var u=new ArrayBuffer(a),d=new Uint8Array(u);for(e=0;e<c;e+=4)i=n[t.charCodeAt(e)],r=n[t.charCodeAt(e+1)],o=n[t.charCodeAt(e+2)],s=n[t.charCodeAt(e+3)],d[l++]=i<<2|r>>4,d[l++]=(15&r)<<4|o>>2,d[l++]=(3&o)<<6|63&s;return u}}()},gFX4:function(t,e,n){var i=n("zJ60"),r=n("Uwu7"),o=n("eOtv"),s=n("x7D4")("socket.io-client");t.exports=e=c;var a=e.managers={};function c(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r=i(t),c=r.source,l=r.id;return e.forceNew||e["force new connection"]||!1===e.multiplex||a[l]&&r.path in a[l].nsps?(s("ignoring socket cache for %s",c),n=o(c,e)):(a[l]||(s("new io instance for %s",c),a[l]=o(c,e)),n=a[l]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}e.protocol=r.protocol,e.connect=c,e.Manager=n("eOtv"),e.Socket=n("KFGy")},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("2fFW"),r=n("NJ4a");const o={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete(){}}},gTqA:function(t,e,n){"use strict";var i=n("Q1FS"),r=n("6qA3"),o=n("EBtg");e.from=function(t,e){return e?o.scheduled(t,e):t instanceof i.Observable?t:new i.Observable(r.subscribeTo(t))}},"gb/T":function(t,e,n){var i,r;t.exports=(r=n("Ib8C"),n("OLod"),r.mode.ECB=((i=r.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),i.Decryptor=i.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),i),r.mode.ECB)},gzDA:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.sample=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new s(t),i=e.subscribe(n);return i.add(r.innerSubscribe(this.notifier,new r.SimpleInnerSubscriber(n))),i},t}(),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return i(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(r.SimpleOuterSubscriber)},i6Cy:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.bufferCount=function(t,e){return void 0===e&&(e=null),function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?a:s}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.bufferSize=n,i.buffer=[],i}return i(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(r.Subscriber),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.bufferSize=n,r.startBufferEvery=i,r.buffers=[],r.count=0,r}return i(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,i=this.buffers,r=this.count;this.count++,r%n==0&&i.push([]);for(var o=i.length;o--;){var s=i[o];s.push(t),s.length===e&&(i.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var i=e.shift();i.length>0&&n.next(i)}t.prototype._complete.call(this)},e}(r.Subscriber)},iFGG:function(t,e,n){"use strict";var i=1,r=function(){return Promise.resolve()}(),o={};function s(t){return t in o&&(delete o[t],!0)}e.Immediate={setImmediate:function(t){var e=i++;return o[e]=!0,r.then((function(){return s(e)&&t()})),e},clearImmediate:function(t){s(t)}},e.TestTools={pending:function(){return Object.keys(o).length}}},jFrH:function(t,e,n){"use strict";var i=n("YK4L");e.min=function(t){return i.reduce("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}},jO9C:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("OLod"),i.pad.Iso97971={pad:function(t,e){t.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(t,e)},unpad:function(t){i.pad.ZeroPadding.unpad(t),t.sigBytes--}},i.pad.Iso97971)},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("HDdC"),r=n("quSY");function o(t,e){return new i.a(n=>{const i=new r.a;let o=0;return i.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kSER:function(t,e){t.exports=function(t,e){for(var n=[],i=(e=e||0)||0;i<t.length;i++)n[i-e]=t[i];return n}},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q");function r(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}class s extends i.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},lKxJ:function(t,e,n){t.exports=n("2pII"),t.exports.parser=n("+ntK")},lPiR:function(t,e,n){var i;t.exports=(i=n("Ib8C"),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,s=e.algo,a=[],c=[];!function(){function e(e){for(var n=t.sqrt(e),i=2;i<=n;i++)if(!(e%i))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var i=2,r=0;r<64;)e(i)&&(r<8&&(a[r]=n(t.pow(i,.5))),c[r]=n(t.pow(i,1/3)),r++),i++}();var l=[],u=s.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)l[p]=0|t[e+p];else{var m=l[p-15],f=l[p-2];l[p]=((m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3)+l[p-7]+((f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10)+l[p-16]}var b=i&r^i&o^r&o,g=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&d)+c[p]+l[p];h=d,d=u,u=a,a=s+g|0,s=o,o=r,r=i,i=g+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+b)|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=t.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(u),e.HmacSHA256=o._createHmacHelper(u)}(Math),i.SHA256)},luTP:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},mCNh:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var i=n("SpAZ");function r(...t){return o(t)}function o(t){return 0===t.length?i.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},mbIT:function(t,e,n){"use strict";e.isArray=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},n3uD:function(t,e,n){"use strict";var i=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",(function(){return i}))},n73p:function(t,e,n){"use strict";var i=n("Q1FS"),r=n("zB/H");e.schedulePromise=function(t,e){return new i.Observable((function(n){var i=new r.Subscription;return i.add(e.schedule((function(){return t.then((function(t){i.add(e.schedule((function(){n.next(t),i.add(e.schedule((function(){return n.complete()})))})))}),(function(t){i.add(e.schedule((function(){return n.error(t)})))}))}))),i}))}},naeu:function(t,e,n){"use strict";var i=n("mbIT"),r=n("rhxD");e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&i.isArray(t[0])&&(t=t[0]),e.lift.call(r.race.apply(void 0,[e].concat(t)))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()}},nz4u:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("wjEo");e.repeatWhen=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier,e))},t}(),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.notifier=n,r.source=i,r.sourceIsBeingSubscribedTo=!0,r}return i(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new r.Subject;try{e=(0,this.notifier)(this.notifications)}catch(n){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=o.innerSubscribe(e,new o.SimpleInnerSubscriber(this))},e}(o.SimpleOuterSubscriber)},nzqU:function(t,e,n){"use strict";e.isScheduler=function(t){return t&&"function"==typeof t.schedule}},o4sL:function(t,e,n){"use strict";var i=n("C20g"),r=n("4ik+");e.partition=function(t,e){return function(n){return[r.filter(t,e)(n),r.filter(i.not(t,e))(n)]}}},o9EK:function(t,e,n){"use strict";e.UUID=function(){function t(){}return t.UUID=function(){if("undefined"!=typeof window&&void 0!==window.crypto&&void 0!==window.crypto.getRandomValues){var t=new Uint16Array(8);return window.crypto.getRandomValues(t),this.pad4(t[0])+this.pad4(t[1])+"-"+this.pad4(t[2])+"-"+this.pad4(t[3])+"-"+this.pad4(t[4])+"-"+this.pad4(t[5])+this.pad4(t[6])+this.pad4(t[7])}return this.random4()+this.random4()+"-"+this.random4()+"-"+this.random4()+"-"+this.random4()+"-"+this.random4()+this.random4()+this.random4()},t.pad4=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e},t.random4=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},t}()},oRuE:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("OLod"),i.pad.Iso10126={pad:function(t,e){var n=4*e,r=n-t.sigBytes%n;t.concat(i.lib.WordArray.random(r-1)).concat(i.lib.WordArray.create([r<<24],1))},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},i.pad.Iso10126)},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return Ut})),n.d(e,"c",(function(){return Xt})),n.d(e,"d",(function(){return $t})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return Vt})),n.d(e,"g",(function(){return Jt})),n.d(e,"h",(function(){return C})),n.d(e,"i",(function(){return Bt})),n.d(e,"j",(function(){return zt})),n.d(e,"k",(function(){return qt})),n.d(e,"l",(function(){return Ht})),n.d(e,"m",(function(){return d})),n.d(e,"n",(function(){return x})),n.d(e,"o",(function(){return _})),n.d(e,"p",(function(){return Lt})),n.d(e,"q",(function(){return pt})),n.d(e,"r",(function(){return mt})),n.d(e,"s",(function(){return bt})),n.d(e,"t",(function(){return _t})),n.d(e,"u",(function(){return St})),n.d(e,"v",(function(){return Tt})),n.d(e,"w",(function(){return Dt})),n.d(e,"x",(function(){return Ct})),n.d(e,"y",(function(){return xt})),n.d(e,"z",(function(){return Ot})),n.d(e,"A",(function(){return kt})),n.d(e,"B",(function(){return I})),n.d(e,"C",(function(){return w})),n.d(e,"D",(function(){return Yt})),n.d(e,"E",(function(){return l})),n.d(e,"F",(function(){return Qt})),n.d(e,"G",(function(){return Nt})),n.d(e,"H",(function(){return Ft})),n.d(e,"I",(function(){return ne})),n.d(e,"J",(function(){return $})),n.d(e,"K",(function(){return R})),n.d(e,"L",(function(){return te})),n.d(e,"M",(function(){return ee})),n.d(e,"N",(function(){return dt})),n.d(e,"O",(function(){return a})),n.d(e,"P",(function(){return Zt})),n.d(e,"Q",(function(){return o})),n.d(e,"R",(function(){return ht})),n.d(e,"S",(function(){return s}));var i=n("fXoL");let r=null;function o(){return r}function s(t){r||(r=t)}class a{}const c=new i.s("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(i.Yb)(h)}const d=new i.s("Location Initialized");let h=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=o().getLocation(),this._history=o().getHistory()}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){o().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){o().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(c))},t.\u0275prov=Object(i.Kb)({factory:m,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function m(){return new h(Object(i.Yb)(c))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function b(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function g(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:v,token:t,providedIn:"root"}),t})();function v(t){const e=Object(i.Yb)(c).location;return new w(Object(i.Yb)(l),e&&e.origin||"")}const y=new i.s("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+g(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+g(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(l),i.Yb(y,8))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+g(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(l),i.Yb(y,8))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=b(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+g(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+g(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(_),i.Yb(l))},t.normalizeQueryParams=g,t.joinWithSlash=f,t.stripTrailingSlash=b,t.\u0275prov=Object(i.Kb)({factory:O,token:t,providedIn:"root"}),t})();function O(){return new x(Object(i.Yb)(_),Object(i.Yb)(l))}function S(t){return t.replace(/\/index.html$/,"")}const T={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var D=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),k=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),P=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),E=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),A=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),I=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function M(t,e){return j(Object(i.nb)(t)[i.eb.DateFormat],e)}function U(t,e){return j(Object(i.nb)(t)[i.eb.TimeFormat],e)}function L(t,e){return j(Object(i.nb)(t)[i.eb.DateTimeFormat],e)}function R(t,e){const n=Object(i.nb)(t),r=n[i.eb.NumberSymbols][e];if(void 0===r){if(e===I.CurrencyDecimal)return n[i.eb.NumberSymbols][I.Decimal];if(e===I.CurrencyGroup)return n[i.eb.NumberSymbols][I.Group]}return r}function N(t,e){return Object(i.nb)(t)[i.eb.NumberFormats][e]}const F=i.qb;function V(t){if(!t[i.eb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.eb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function j(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function B(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q={},H=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var G=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),J=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Y=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function $(t,e,n,r){let o=function(t){if(it(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(z))return function(t){const e=new Date(0);let n=0,i=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,c,l),e}(n)}const e=new Date(t);if(!it(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const r=function(t){return Object(i.nb)(t)[i.eb.LocaleId]}(e);if(q[r]=q[r]||{},q[r][n])return q[r][n];let o="";switch(n){case"shortDate":o=M(e,A.Short);break;case"mediumDate":o=M(e,A.Medium);break;case"longDate":o=M(e,A.Long);break;case"fullDate":o=M(e,A.Full);break;case"shortTime":o=U(e,A.Short);break;case"mediumTime":o=U(e,A.Medium);break;case"longTime":o=U(e,A.Long);break;case"fullTime":o=U(e,A.Full);break;case"short":const n=t(e,"shortTime"),i=t(e,"shortDate");o=W(L(e,A.Short),[n,i]);break;case"medium":const r=t(e,"mediumTime"),s=t(e,"mediumDate");o=W(L(e,A.Medium),[r,s]);break;case"long":const a=t(e,"longTime"),c=t(e,"longDate");o=W(L(e,A.Long),[a,c]);break;case"full":const l=t(e,"fullTime"),u=t(e,"fullDate");o=W(L(e,A.Full),[l,u])}return o&&(q[r][n]=o),o}(n,e)||e;let s,a=[];for(;e;){if(s=H.exec(e),!s){a.push(e);break}{a=a.concat(s.slice(1));const t=a.pop();if(!t)break;e=t}}let c=o.getTimezoneOffset();r&&(c=nt(r,c),o=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,i)-i))}(o,r));let l="";return a.forEach(t=>{const e=function(t){if(et[t])return et[t];let e;switch(t){case"G":case"GG":case"GGG":e=X(Y.Eras,E.Abbreviated);break;case"GGGG":e=X(Y.Eras,E.Wide);break;case"GGGGG":e=X(Y.Eras,E.Narrow);break;case"y":e=Q(J.FullYear,1,0,!1,!0);break;case"yy":e=Q(J.FullYear,2,0,!0,!0);break;case"yyy":e=Q(J.FullYear,3,0,!1,!0);break;case"yyyy":e=Q(J.FullYear,4,0,!1,!0);break;case"M":case"L":e=Q(J.Month,1,1);break;case"MM":case"LL":e=Q(J.Month,2,1);break;case"MMM":e=X(Y.Months,E.Abbreviated);break;case"MMMM":e=X(Y.Months,E.Wide);break;case"MMMMM":e=X(Y.Months,E.Narrow);break;case"LLL":e=X(Y.Months,E.Abbreviated,P.Standalone);break;case"LLLL":e=X(Y.Months,E.Wide,P.Standalone);break;case"LLLLL":e=X(Y.Months,E.Narrow,P.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=Q(J.Date,1);break;case"dd":e=Q(J.Date,2);break;case"E":case"EE":case"EEE":e=X(Y.Days,E.Abbreviated);break;case"EEEE":e=X(Y.Days,E.Wide);break;case"EEEEE":e=X(Y.Days,E.Narrow);break;case"EEEEEE":e=X(Y.Days,E.Short);break;case"a":case"aa":case"aaa":e=X(Y.DayPeriods,E.Abbreviated);break;case"aaaa":e=X(Y.DayPeriods,E.Wide);break;case"aaaaa":e=X(Y.DayPeriods,E.Narrow);break;case"b":case"bb":case"bbb":e=X(Y.DayPeriods,E.Abbreviated,P.Standalone,!0);break;case"bbbb":e=X(Y.DayPeriods,E.Wide,P.Standalone,!0);break;case"bbbbb":e=X(Y.DayPeriods,E.Narrow,P.Standalone,!0);break;case"B":case"BB":case"BBB":e=X(Y.DayPeriods,E.Abbreviated,P.Format,!0);break;case"BBBB":e=X(Y.DayPeriods,E.Wide,P.Format,!0);break;case"BBBBB":e=X(Y.DayPeriods,E.Narrow,P.Format,!0);break;case"h":e=Q(J.Hours,1,-12);break;case"hh":e=Q(J.Hours,2,-12);break;case"H":e=Q(J.Hours,1);break;case"HH":e=Q(J.Hours,2);break;case"m":e=Q(J.Minutes,1);break;case"mm":e=Q(J.Minutes,2);break;case"s":e=Q(J.Seconds,1);break;case"ss":e=Q(J.Seconds,2);break;case"S":e=Q(J.FractionalSeconds,1);break;case"SS":e=Q(J.FractionalSeconds,2);break;case"SSS":e=Q(J.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Z(G.Short);break;case"ZZZZZ":e=Z(G.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Z(G.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Z(G.Long);break;default:return null}return et[t]=e,e}(t);l+=e?e(o,n,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function W(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function K(t,e,n="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=n));let s=String(t);for(;s.length<e;)s="0"+s;return i&&(s=s.substr(s.length-e)),o+s}function Q(t,e,n=0,i=!1,r=!1){return function(o,s){let a=function(t,e){switch(t){case J.FullYear:return e.getFullYear();case J.Month:return e.getMonth();case J.Date:return e.getDate();case J.Hours:return e.getHours();case J.Minutes:return e.getMinutes();case J.Seconds:return e.getSeconds();case J.FractionalSeconds:return e.getMilliseconds();case J.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((n>0||a>-n)&&(a+=n),t===J.Hours)0===a&&-12===n&&(a=12);else if(t===J.FractionalSeconds)return c=e,K(a,3).substr(0,c);var c;const l=R(s,I.MinusSign);return K(a,e,l,i,r)}}function X(t,e,n=P.Format,r=!1){return function(o,s){return function(t,e,n,r,o,s){switch(n){case Y.Months:return function(t,e,n){const r=Object(i.nb)(t),o=j([r[i.eb.MonthsFormat],r[i.eb.MonthsStandalone]],e);return j(o,n)}(e,o,r)[t.getMonth()];case Y.Days:return function(t,e,n){const r=Object(i.nb)(t),o=j([r[i.eb.DaysFormat],r[i.eb.DaysStandalone]],e);return j(o,n)}(e,o,r)[t.getDay()];case Y.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(s){const t=function(t){const e=Object(i.nb)(t);return V(e),(e[i.eb.ExtraData][2]||[]).map(t=>"string"==typeof t?B(t):[B(t[0]),B(t[1])])}(e),n=function(t,e,n){const r=Object(i.nb)(t);V(r);const o=j([r[i.eb.ExtraData][0],r[i.eb.ExtraData][1]],e)||[];return j(o,n)||[]}(e,o,r),s=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&c>=e.minutes,r=a<n.hours||a===n.hours&&c<n.minutes;if(e.hours<n.hours){if(i&&r)return!0}else if(i||r)return!0}else if(t.hours===a&&t.minutes===c)return!0;return!1});if(-1!==s)return n[s]}return function(t,e,n){const r=Object(i.nb)(t),o=j([r[i.eb.DayPeriodsFormat],r[i.eb.DayPeriodsStandalone]],e);return j(o,n)}(e,o,r)[a<12?0:1];case Y.Eras:return function(t,e){return j(Object(i.nb)(t)[i.eb.Eras],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(o,s,t,e,n,r)}}function Z(t){return function(e,n,i){const r=-1*i,o=R(n,I.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case G.Short:return(r>=0?"+":"")+K(s,2,o)+K(Math.abs(r%60),2,o);case G.ShortGMT:return"GMT"+(r>=0?"+":"")+K(s,1,o);case G.Long:return"GMT"+(r>=0?"+":"")+K(s,2,o)+":"+K(Math.abs(r%60),2,o);case G.Extended:return 0===i?"Z":(r>=0?"+":"")+K(s,2,o)+":"+K(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function tt(t,e=!1){return function(n,i){let r;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();r=1+Math.floor((e+t)/7)}else{const t=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),i=t.getTime()-e.getTime();r=1+Math.round(i/6048e5)}var o;return K(r,t,R(i,I.MinusSign))}}const et={};function nt(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function it(t){return t instanceof Date&&!isNaN(t.valueOf())}const rt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ot(t,e,n,i,r,o,s=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,i,r,o,s=Math.abs(t)+"",a=0;for((n=s.indexOf("."))>-1&&(s=s.replace(".","")),(i=s.search(/e/i))>0?(n<0&&(n=i),n+=+s.slice(i+1),s=s.substring(0,i)):n<0&&(n=s.length),i=0;"0"===s.charAt(i);i++);if(i===(o=s.length))e=[0],n=1;else{for(o--;"0"===s.charAt(o);)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=Number(s.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(l=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));let u=e.minInt,d=e.minFrac,h=e.maxFrac;if(o){const t=o.match(rt);if(null===t)throw new Error(o+" is not a valid digit info");const e=t[1],n=t[3],i=t[5];null!=e&&(u=at(e)),null!=n&&(d=at(n)),null!=i?h=at(i):null!=n&&d>h&&(h=d)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,r=i.length-t.integerLen;const o=Math.min(Math.max(e,r),n);let s=o+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let t=s;t<i.length;t++)i[t]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,s=o+1),i[0]=0;for(let t=1;t<s;t++)i[t]=0}if(a>=5)if(s-1<0){for(let e=0;e>s;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;r<Math.max(0,o);r++)i.push(0);let c=0!==o;const l=e+t.integerLen,u=i.reduceRight((function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,c&&(0===i[n]&&n>=l?i.pop():c=!1),e>=10?1:0}),0);u&&(i.unshift(u),t.integerLen++)}(l,d,h);let p=l.digits,m=l.integerLen;const f=l.exponent;let b=[];for(c=p.every(t=>!t);m<u;m++)p.unshift(0);for(;m<0;m++)p.unshift(0);m>0?b=p.splice(m,p.length):(b=p,p=[0]);const g=[];for(p.length>=e.lgSize&&g.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)g.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&g.unshift(p.join("")),a=g.join(R(n,i)),b.length&&(a+=R(n,r)+b.join("")),f&&(a+=R(n,I.Exponential)+"+"+f)}else a=R(n,I.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function st(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],o=i[1],s=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=s[0],c=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<c.length;u++){const t=c.charAt(u);"0"===t?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const l=a.split(",");if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,o){const t=r.length-n.posPre.length-n.posSuf.length,e=o.indexOf("#");n.negPre=o.substr(0,e).replace(/'/g,""),n.negSuf=o.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function at(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ct{}function lt(t,e,n,i){let r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}let ut=(()=>{class t extends ct{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(F(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.w))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function dt(t,e,n){return Object(i.wb)(t,e,n)}function ht(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let pt=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(i.tb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(i.yb)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.u),i.Ob(i.v),i.Ob(i.l),i.Ob(i.G))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),mt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(i.z);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(i.j)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.Bb]}),t})();class ft{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 bt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(i.Z)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}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(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ft(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new gt(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const o=new gt(t,r);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.N),i.Ob(i.u))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class gt{constructor(t,e){this.record=t,this.view=e}}let _t=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new vt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){yt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){yt("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class vt{constructor(){this.$implicit=null,this.ngIf=null}}function yt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.yb)(e)}'.`)}class wt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Ct=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),xt=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new wt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.N),i.Ob(Ct,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Ot=(()=>{class t{constructor(t,e,n){n._addDefault(new wt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.N),i.Ob(Ct,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),St=(()=>{class t{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=lt(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(ct))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),t})(),Tt=(()=>{class t{constructor(t,e,n,i){this.value=t;const r=!isNaN(Number(t));i.addCase(r?"="+t:t,new wt(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb("ngPluralCase"),i.Ob(i.N),i.Ob(i.S),i.Ob(St,1))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngPluralCase",""]]}),t})(),Dt=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.v),i.Ob(i.G))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),kt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Bb]}),t})();function Pt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.yb)(t)}'`)}class Et{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class At{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const It=new At,Mt=new Et;let Ut=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(i.vb)(e))return It;if(Object(i.ub)(e))return Mt;throw Pt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.ac())},t.\u0275pipe=i.Nb({name:"async",type:t,pure:!1}),t})(),Lt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Pt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"lowercase",type:t,pure:!0}),t})();const Rt=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Nt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Pt(t,e);return e.replace(Rt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"titlecase",type:t,pure:!0}),t})(),Ft=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Pt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"uppercase",type:t,pure:!0}),t})(),Vt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,r){if(null==e||""===e||e!=e)return null;try{return $(e,n,r||this.locale,i)}catch(o){throw Pt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w))},t.\u0275pipe=i.Nb({name:"date",type:t,pure:!0}),t})();const jt=/#/g;let Bt=(()=>{class t{constructor(t){this._localization=t}transform(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw Pt(t,n);return n[lt(e,Object.keys(n),this._localization,i)].replace(jt,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(ct))},t.\u0275pipe=i.Nb({name:"i18nPlural",type:t,pure:!0}),t})(),zt=(()=>{class t{transform(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw Pt(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"i18nSelect",type:t,pure:!0}),t})(),qt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"json",type:t,pure:!1}),t})(),Ht=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Gt){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.v))},t.\u0275pipe=i.Nb({name:"keyvalue",type:t,pure:!1}),t})();function Gt(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const r=String(n),o=String(i);return r==o?0:r<o?-1:1}let Jt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(Wt(e))return null;i=i||this._locale;try{return function(t,e,n){return ot(t,st(N(e,D.Decimal),R(e,I.MinusSign)),e,I.Group,I.Decimal,n)}(Kt(e),i,n)}catch(r){throw Pt(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w))},t.\u0275pipe=i.Nb({name:"number",type:t,pure:!0}),t})(),Yt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(Wt(e))return null;i=i||this._locale;try{return function(t,e,n){return ot(t,st(N(e,D.Percent),R(e,I.MinusSign)),e,I.Group,I.Decimal,n,!0).replace(new RegExp("%","g"),R(e,I.PercentSign))}(Kt(e),i,n)}catch(r){throw Pt(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w))},t.\u0275pipe=i.Nb({name:"percent",type:t,pure:!0}),t})(),$t=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n,r="symbol",o,s){if(Wt(e))return null;s=s||this._locale,"boolean"==typeof r&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),r=r?"symbol":"code");let a=n||this._defaultCurrencyCode;"code"!==r&&(a="symbol"===r||"symbol-narrow"===r?function(t,e,n="en"){const r=function(t){return Object(i.nb)(t)[i.eb.Currencies]}(n)[t]||T[t]||[],o=r[1];return"narrow"===e&&"string"==typeof o?o:r[0]||t}(a,"symbol"===r?"wide":"narrow",s):r);try{return function(t,e,n,i,r){const o=st(N(e,D.Currency),R(e,I.MinusSign));return o.minFrac=function(t){let e;const n=T[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),o.maxFrac=o.minFrac,ot(t,o,e,I.CurrencyGroup,I.CurrencyDecimal,r).replace("\xa4",n).replace("\xa4","").trim()}(Kt(e),s,a,n,o)}catch(c){throw Pt(t,c.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.w),i.Ob(i.k))},t.\u0275pipe=i.Nb({name:"currency",type:t,pure:!0}),t})();function Wt(t){return null==t||""===t||t!=t}function Kt(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}let Qt=(()=>{class t{transform(e,n,i){if(null==e)return e;if(!this.supports(e))throw Pt(t,e);return e.slice(n,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"slice",type:t,pure:!1}),t})(),Xt=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:ct,useClass:ut}]}),t})();const Zt="browser";function te(t){return t===Zt}function ee(t){return"server"===t}let ne=(()=>{class t{}return t.\u0275prov=Object(i.Kb)({token:t,providedIn:"root",factory:()=>new ie(Object(i.Yb)(c),window,Object(i.Yb)(i.n))}),t})();class ie{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=re(this.window.history)||re(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function re(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},ozli:function(t,e,n){"use strict";var i=n("zfKp");e.subscribeToObservable=function(t){return function(e){var n=t[i.observable]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}},"p//D":function(t,e,n){"use strict";e.rxSubscriber=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),e.$$rxSubscriber=e.rxSubscriber},"p0+S":function(t,e,n){"use strict";var i=n("mbIT");e.isNumeric=function(t){return!i.isArray(t)&&t-parseFloat(t)+1>=0}},pA7S:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var t=i,e=t.lib,n=e.WordArray,r=e.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var i=s[n]-1;e[n]=t[i>>>5]>>>31-i%32&1}for(var r=this._subKeys=[],o=0;o<16;o++){var l=r[o]=[],u=c[o];for(n=0;n<24;n++)l[n/6|0]|=e[(a[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=e[28+(a[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=r[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,s=this._rBlock,a=0,c=0;c<8;c++)a|=l[c][((s^r[c])&u[c])>>>0];this._lBlock=s,this._rBlock=o^a}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function p(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=r._createHelper(d);var m=o.TripleDES=r.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),r=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=d.createEncryptor(n.create(e)),this._des2=d.createEncryptor(n.create(i)),this._des3=d.createEncryptor(n.create(r))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r._createHelper(m)}(),i.TripleDES)},pWCv:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("w5QO"),s=n("pshJ");e.tap=function(t,e,n){return function(i){return i.lift(new a(t,e,n))}};var a=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,i,r){var a=t.call(this,e)||this;return a._tapNext=o.noop,a._tapError=o.noop,a._tapComplete=o.noop,a._tapError=i||o.noop,a._tapComplete=r||o.noop,s.isFunction(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||o.noop,a._tapError=n.error||o.noop,a._tapComplete=n.complete||o.noop),a}return i(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(r.Subscriber)},poJ0:function(t,e,n){"use strict";var i=n("VKeD");e.subscribeToIterable=function(t){return function(e){for(var n=t[i.iterator]();;){var r=void 0;try{r=n.next()}catch(o){return e.error(o),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e}}},pshJ:function(t,e,n){"use strict";e.isFunction=function(t){return"function"==typeof t}},pxpQ:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var i=n("7o/Q"),r=n("WMd4");function o(t,e=0){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))}}class a extends i.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new c(t,this.destination)))}_next(t){this.scheduleMessage(r.a.createNext(t))}_error(t){this.scheduleMessage(r.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(r.a.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.notification=t,this.destination=e}}},"q/0M":function(t,e,n){"use strict";function i(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i}var r;n.r(e),n.d(e,"LogLevel",(function(){return s})),n.d(e,"Logger",(function(){return d})),n.d(e,"setLogLevel",(function(){return h})),n.d(e,"setUserLogHandler",(function(){return p}));var o=[],s=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}({}),a={debug:s.DEBUG,verbose:s.VERBOSE,info:s.INFO,warn:s.WARN,error:s.ERROR,silent:s.SILENT},c=s.INFO,l=((r={})[s.DEBUG]="log",r[s.VERBOSE]="log",r[s.INFO]="info",r[s.WARN]="warn",r[s.ERROR]="error",r),u=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(e<t.logLevel)){var o=(new Date).toISOString(),s=l[e];if(!s)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[s].apply(console,i(["["+o+"]  "+t.name+":"],n))}},d=function(){function t(t){this.name=t,this._logLevel=c,this._logHandler=u,this._userLogHandler=null,o.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in s))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?a[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.DEBUG],t)),this._logHandler.apply(this,i([this,s.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.VERBOSE],t)),this._logHandler.apply(this,i([this,s.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.INFO],t)),this._logHandler.apply(this,i([this,s.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.WARN],t)),this._logHandler.apply(this,i([this,s.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,i([this,s.ERROR],t)),this._logHandler.apply(this,i([this,s.ERROR],t))},t}();function h(t){o.forEach((function(e){e.setLogLevel(t)}))}function p(t,e){for(var n=function(n){var i=null;e&&e.level&&(i=a[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a=r.map((function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}})).filter((function(t){return t})).join(" ");n>=(null!=i?i:e.logLevel)&&t({level:s[n].toLowerCase(),message:a,args:r,type:e.name})}},i=0,r=o;i<r.length;i++)n(r[i])}},q2jb:function(t,e){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,i=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),r=i&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function s(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t}))}function a(t,e){e=e||{};var i=new n;return s(t).forEach((function(t){i.append(t)})),e.type?i.getBlob(e.type):i.getBlob()}function c(t,e){return new Blob(s(t),e||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,c.prototype=Blob.prototype),t.exports=i?r?Blob:c:o?a:void 0},q3Kh:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.map=function(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();e.MapOperator=o;var s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.project=n,r.count=0,r.thisArg=i||r,r}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(r.Subscriber)},q3SL:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("gTqA"),o=n("mbIT"),s=n("wjEo");e.onErrorResumeNext=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&o.isArray(t[0])&&(t=t[0]),function(e){return e.lift(new a(t))}},e.onErrorResumeNextStatic=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0;return 1===t.length&&o.isArray(t[0])&&(t=t[0]),n=t.shift(),r.from(n).lift(new a(t))};var a=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextSources))},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.destination=e,i.nextSources=n,i}return i(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new s.SimpleInnerSubscriber(this),n=this.destination;n.add(e);var i=s.innerSubscribe(t,e);i!==e&&n.add(i)}else this.destination.complete()},e}(s.SimpleOuterSubscriber)},qBft:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("OLod"),i.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,r=i-n%i,o=n+r-1;t.clamp(),t.words[o>>>2]|=r<<24-o%4*8,t.sigBytes+=r},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},i.pad.Ansix923)},qGlh:function(t,e){t.exports=function(t){return n&&Buffer.isBuffer(t)||i&&(t instanceof ArrayBuffer||function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}(t))};var n="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,i="function"==typeof ArrayBuffer},qM6L:function(t,e,n){var i;t.exports=(i=n("Ib8C"),function(){var t=i.lib.WordArray,e=i.enc;function n(t){return t<<8&4278255360|t>>>8&16711935}e.Utf16=e.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],r=0;r<n;r+=2)i.push(String.fromCharCode(e[r>>>2]>>>16-r%4*8&65535));return i.join("")},parse:function(e){for(var n=e.length,i=[],r=0;r<n;r++)i[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return t.create(i,2*n)}},e.Utf16LE={stringify:function(t){for(var e=t.words,i=t.sigBytes,r=[],o=0;o<i;o+=2){var s=n(e[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var i=e.length,r=[],o=0;o<i;o++)r[o>>>1]|=n(e.charCodeAt(o)<<16-o%2*16);return t.create(r,2*i)}}}(),i.enc.Utf16)},qgXg:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var i=n("3N8a");class r extends i.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("IjjT");class s extends o.a{}const a=new s(r),c=a},qu8F:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("OLod"),i.mode.CTRGladman=function(){var t=i.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}var n=t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,r=i.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(s);var a=s.slice(0);i.encryptBlock(a,0);for(var c=0;c<r;c++)t[n+c]^=a[c]}});return t.Decryptor=n,t}(),i.mode.CTRGladman)},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("DH7j"),r=n("XoHu"),o=n("n6bG");const s=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(o.a)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(d){e=d instanceof s?c(d.errors):[d]}}if(Object(i.a)(u)){let t=-1,n=u.length;for(;++t<n;){const n=u[t];if(Object(r.a)(n))try{n.unsubscribe()}catch(d){e=e||[],d instanceof s?e=e.concat(c(d.errors)):e.push(d)}}}if(e)throw new s(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function c(t){return t.reduce((t,e)=>t.concat(e instanceof s?e.errors:e),[])}},rEZo:function(t,e,n){"use strict";var i=n("IKMM");e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(i.concat.apply(void 0,[e].concat(t)))}}},rNzc:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("wjEo");e.catchError=function(t){return function(e){var n=new o(t),i=e.lift(n);return n.caught=i}};var o=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.selector,this.caught))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(s){return void t.prototype.error.call(this,s)}this._unsubscribeAndRecycle();var i=new r.SimpleInnerSubscriber(this);this.add(i);var o=r.innerSubscribe(n,i);o!==i&&this.add(o)}},e}(r.SimpleOuterSubscriber)},rhxD:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("mbIT"),o=n("zzsZ"),s=n("Y4kR"),a=n("cSoz");e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!r.isArray(t[0]))return t[0];t=t[0]}return o.fromArray(t,void 0).lift(new c)};var c=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}();e.RaceOperator=c;var l=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var i=a.subscribeToResult(this,t[n],void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==n){var r=this.subscriptions[i];r.unsubscribe(),this.remove(r)}this.subscriptions=null}this.destination.next(e)},e}(s.OuterSubscriber);e.RaceSubscriber=l},rxKr:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.find=function(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new o(t,n,!1,e))}};var o=function(){function t(t,e,n,i){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=i}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=o;var s=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=i,s.yieldIndex=r,s.thisArg=o,s.index=0,s}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,i=this.index++;try{e.call(n||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(r.Subscriber);e.FindValueSubscriber=s},"s3+Z":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.takeWhile=function(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.inclusive))},t}(),s=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.predicate=n,r.inclusive=i,r.index=0,r}return i(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(r.Subscriber)},uGsb:function(t,e,n){var i,r,o,s,a,c,l,u;t.exports=(u=n("Ib8C"),n("MlIO"),n("1uat"),o=(r=(i=u).x64).Word,s=r.WordArray,l=(a=i.algo).SHA384=(c=a.SHA512).extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var t=c._doFinalize.call(this);return t.sigBytes-=16,t}}),i.SHA384=c._createHelper(l),i.HmacSHA384=c._createHmacHelper(l),u.SHA384)},uGxW:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("OLod"),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},uXFP:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("ds6q");e.windowCount=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.windowSize,this.startWindowEvery))},t}(),a=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.destination=e,r.windowSize=n,r.startWindowEvery=i,r.windows=[new o.Subject],r.count=0,e.next(r.windows[0]),r}return i(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,r=this.windows,s=r.length,a=0;a<s&&!this.closed;a++)r[a].next(t);var c=this.count-i+1;if(c>=0&&c%e==0&&!this.closed&&r.shift().complete(),++this.count%e==0&&!this.closed){var l=new o.Subject;r.push(l),n.next(l)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(r.Subscriber)},vLqr:function(t,e,n){"use strict";var i=n("Q1FS");function r(t){t.subscriber.error(t.error)}e.throwError=function(t,e){return new i.Observable(e?function(n){return e.schedule(r,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}},vUl8:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("ds6q"),o=n("Y4kR"),s=n("cSoz");e.windowWhen=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.closingSelector))},t}(),c=function(t){function e(e,n){var i=t.call(this,e)||this;return i.destination=e,i.closingSelector=n,i.openWindow(),i}return i(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.openWindow(r)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,i=this.window=new r.Subject;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(o){return this.destination.error(o),void this.window.error(o)}this.add(this.closingNotification=s.subscribeToResult(this,n))},e}(o.OuterSubscriber)},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function r(){}var o=n("n6bG");function s(t,e,n){return function(i){return i.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends i.a{constructor(t,e,n,i){super(t),this._tapNext=r,this._tapError=r,this._tapComplete=r,this._tapError=n||r,this._tapComplete=i||r,Object(o.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||r,this._tapError=e.error||r,this._tapComplete=e.complete||r)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},"vrE+":function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1");e.scan=function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return i(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)},e}(r.Subscriber)},w1o2:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("zB/H"),s=n("Q1FS"),a=n("ds6q");e.groupBy=function(t,e,n,i){return function(r){return r.lift(new c(t,e,n,i))}};var c=function(){function t(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,n,i,r,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=i,s.durationSelector=r,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return i(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(c){this.error(c)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new a.Subject,n.set(e,r);var o=new d(e,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new d(e,r))}catch(c){return void this.error(c)}this.add(s.subscribe(new u(e,r,this)))}}r.closed||r.next(i)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(r.Subscriber),u=function(t){function e(e,n,i){var r=t.call(this,n)||this;return r.key=e,r.group=n,r.parent=i,r}return i(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(r.Subscriber),d=function(t){function e(e,n,i){var r=t.call(this)||this;return r.key=e,r.groupSubject=n,r.refCountSubscription=i,r}return i(e,t),e.prototype._subscribe=function(t){var e=new o.Subscription,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&e.add(new h(n)),e.add(i.subscribe(t)),e},e}(s.Observable);e.GroupedObservable=d;var h=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.Subscription)},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("XNiG"),r=n("HDdC"),o=n("7o/Q"),s=n("quSY");function a(){return function(t){return t.lift(new c(t))}}class c{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new l(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}class l extends o.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class u extends r.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new s.a,t.add(this.source.subscribe(new h(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t}refCount(){return a()(this)}}const d=(()=>{const t=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class h extends i.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function p(){return new i.a}function m(){return t=>{return a()((e=p,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,d);return i.source=t,i.subjectFactory=n,i})(t));var e}}},w5QO:function(t,e,n){"use strict";e.noop=function(){}},w7YG:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var t=i,e=t.lib.StreamCipher,n=t.algo,r=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var s=r%n,a=i[r];i[r]=i[o=(o+i[r]+(e[s>>>2]>>>24-s%4*8&255))%256],i[o]=a}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,n=this._j,i=0,r=0;r<4;r++){var o=t[e=(e+1)%256];t[e]=t[n=(n+t[e])%256],t[n]=o,i|=t[(t[e]+t[n])%256]<<24-8*r}return this._i=e,this._j=n,i}t.RC4=e._createHelper(r);var s=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e._createHelper(s)}(),i.RC4)},wZgz:function(t,e,n){var i;t.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var t=i,e=t.lib.BlockCipher,n=t.algo,r=[],o=[],s=[],a=[],c=[],l=[],u=[],d=[],h=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,i=0;for(e=0;e<256;e++){var m=i^i<<1^i<<2^i<<3^i<<4;r[n]=m=m>>>8^255&m^99,o[m]=n;var f,b=t[n],g=t[b],_=t[g];s[n]=(f=257*t[m]^16843008*m)<<24|f>>>8,a[n]=f<<16|f>>>16,c[n]=f<<8|f>>>24,l[n]=f,u[m]=(f=16843009*_^65537*g^257*b^16843008*n)<<24|f>>>8,d[m]=f<<16|f>>>16,h[m]=f<<8|f>>>24,p[m]=f,n?(n=b^t[t[t[_^b]]],i^=t[t[i]]):n=i=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],f=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],s=0;s<i;s++)s<n?o[s]=e[s]:(l=o[s-1],s%n?n>6&&s%n==4&&(l=r[l>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l]):(l=r[(l=l<<8|l>>>24)>>>24]<<24|r[l>>>16&255]<<16|r[l>>>8&255]<<8|r[255&l],l^=m[s/n|0]<<24),o[s]=o[s-n]^l);for(var a=this._invKeySchedule=[],c=0;c<i;c++){if(s=i-c,c%4)var l=o[s];else l=o[s-4];a[c]=c<4||s<=4?l:u[r[l>>>24]]^d[r[l>>>16&255]]^h[r[l>>>8&255]]^p[r[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,c,l,r)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,u,d,h,p,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,r,o,s,a){for(var c=this._nRounds,l=t[e]^n[0],u=t[e+1]^n[1],d=t[e+2]^n[2],h=t[e+3]^n[3],p=4,m=1;m<c;m++){var f=i[l>>>24]^r[u>>>16&255]^o[d>>>8&255]^s[255&h]^n[p++],b=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^s[255&l]^n[p++],g=i[d>>>24]^r[h>>>16&255]^o[l>>>8&255]^s[255&u]^n[p++],_=i[h>>>24]^r[l>>>16&255]^o[u>>>8&255]^s[255&d]^n[p++];l=f,u=b,d=g,h=_}f=(a[l>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&h])^n[p++],b=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^n[p++],g=(a[d>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&u])^n[p++],_=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^n[p++],t[e]=f,t[e+1]=b,t[e+2]=g,t[e+3]=_},keySize:8});t.AES=e._createHelper(f)}(),i.AES)},wgpc:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("xKqS");e.materialize=function(){return function(t){return t.lift(new s)}};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype._next=function(t){this.destination.next(o.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(o.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(o.Notification.createComplete()),t.complete()},e}(r.Subscriber)},wj3C:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r,o=n("30Go"),s=n("zVF4"),a=n("S+S0"),c=n("q/0M"),l=((i={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",i["bad-app-name"]="Illegal App name: '{$appName}",i["duplicate-app"]="Firebase App named '{$appName}' already exists",i["app-deleted"]="Firebase App named '{$appName}' already deleted",i["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",i["invalid-log-argument"]="First argument to `onLog` must be null or a function.",i),u=new s.ErrorFactory("app","Firebase",l),d=((r={})["@firebase/app"]="fire-core",r["@firebase/analytics"]="fire-analytics",r["@firebase/auth"]="fire-auth",r["@firebase/database"]="fire-rtdb",r["@firebase/functions"]="fire-fn",r["@firebase/installations"]="fire-iid",r["@firebase/messaging"]="fire-fcm",r["@firebase/performance"]="fire-perf",r["@firebase/remote-config"]="fire-rc",r["@firebase/storage"]="fire-gcs",r["@firebase/firestore"]="fire-fst",r["fire-js"]="fire-js",r["firebase-wrapper"]="fire-js-all",r),h=new c.Logger("@firebase/app"),p=function(){function t(t,e,n){var i,r,c=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=s.deepCopy(t),this.container=new a.ComponentContainer(e.name),this._addComponent(new a.Component("app",(function(){return c}),"PUBLIC"));try{for(var l=o.__values(this.firebase_.INTERNAL.components.values()),u=l.next();!u.done;u=l.next())this._addComponent(u.value)}catch(d){i={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){return void 0===e&&(e="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e="[DEFAULT]"),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){h.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw u.create("app-deleted",{appName:this.name_})},t}();p.prototype.name&&p.prototype.options||p.prototype.delete||console.log("dc");var m=function t(){var e=function(t){var e={},n=new Map,i={__esModule:!0,initializeApp:function(n,r){void 0===r&&(r={}),"object"==typeof r&&null!==r||(r={name:r});var o=r;void 0===o.name&&(o.name="[DEFAULT]");var a=o.name;if("string"!=typeof a||!a)throw u.create("bad-app-name",{appName:String(a)});if(s.contains(e,a))throw u.create("duplicate-app",{appName:a});var c=new t(n,o,i);return e[a]=c,c},app:r,registerVersion:function(t,e,n){var i,r=null!==(i=d[t])&&void 0!==i?i:t;n&&(r+="-"+n);var o=r.match(/\s|\//),s=e.match(/\s|\//);if(o||s){var c=['Unable to register library "'+r+'" with version "'+e+'":'];return o&&c.push('library name "'+r+'" contains illegal characters (whitespace or "/")'),o&&s&&c.push("and"),s&&c.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void h.warn(c.join(" "))}l(new a.Component(r+"-version",(function(){return{library:r,version:e}}),"VERSION"))},setLogLevel:c.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw u.create("invalid-log-argument",{appName:name});c.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.20.0",INTERNAL:{registerComponent:l,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function r(t){if(!s.contains(e,t=t||"[DEFAULT]"))throw u.create("no-app",{appName:t});return e[t]}function l(a){var c,l,d=a.name;if(n.has(d))return h.debug("There were multiple attempts to register component "+d+"."),"PUBLIC"===a.type?i[d]:null;if(n.set(d,a),"PUBLIC"===a.type){var p=function(t){if(void 0===t&&(t=r()),"function"!=typeof t[d])throw u.create("invalid-app-argument",{appName:d});return t[d]()};void 0!==a.serviceProps&&s.deepExtend(p,a.serviceProps),i[d]=p,t.prototype[d]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._getService.bind(this,d).apply(this,a.multipleInstances?t:[])}}try{for(var m=o.__values(Object.keys(e)),f=m.next();!f.done;f=m.next())e[f.value]._addComponent(a)}catch(b){c={error:b}}finally{try{f&&!f.done&&(l=m.return)&&l.call(m)}finally{if(c)throw c.error}}return"PUBLIC"===a.type?i[d]:null}return i.default=i,Object.defineProperty(i,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),r.App=t,i}(p);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){s.deepExtend(e,t)},createSubscribe:s.createSubscribe,ErrorFactory:s.ErrorFactory,deepExtend:s.deepExtend}),e}(),f=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null==e?void 0:e.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null})).filter((function(t){return t})).join(" ")},t}();if(s.isBrowser()&&void 0!==self.firebase){h.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var b=self.firebase.SDK_VERSION;b&&b.indexOf("LITE")>=0&&h.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var g=m.initializeApp;m.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s.isNode()&&h.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),g.apply(void 0,t)};var _=m;!function(t,e){t.INTERNAL.registerComponent(new a.Component("platform-logger",(function(t){return new f(t)}),"PRIVATE")),t.registerVersion("@firebase/app","0.6.11",void 0),t.registerVersion("fire-js","")}(_),e.default=_,e.firebase=_},wjEo:function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=n("FWf1"),o=n("Q1FS"),s=n("6qA3");e.SimpleInnerSubscriber=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(r.Subscriber),e.ComplexInnerSubscriber=function(t){function e(e,n,i){var r=t.call(this)||this;return r.parent=e,r.outerValue=n,r.outerIndex=i,r}return i(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(r.Subscriber),e.SimpleOuterSubscriber=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(r.Subscriber),e.ComplexOuterSubscriber=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.notifyNext=function(t,e,n,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r.Subscriber),e.innerSubscribe=function(t,e){if(!e.closed)return t instanceof o.Observable?t.subscribe(e):s.subscribeTo(t)(e)}},x7D4:function(t,e,n){e.log=function(...t){return"object"==typeof console&&console.log&&console.log(...t)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let i=0,r=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(i++,"%c"===t&&(r=i))}),e.splice(r,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n("L8wN")(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},xHZb:function(t,e,n){"use strict";var i=n("IEvo");e.queueScheduler=new(n("H2PQ").QueueScheduler)(i.QueueAction),e.queue=e.queueScheduler},xKqS:function(t,e,n){"use strict";var i=n("aJGj"),r=n("I65S"),o=n("vLqr");e.NotificationKind=function(t){return t.NEXT="N",t.ERROR="E",t.COMPLETE="C",t}(e.NotificationKind||{}),e.Notification=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.of(this.value);case"E":return o.throwError(this.error);case"C":return i.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("HDdC"),r=n("ngJS"),o=n("jZKg");function s(t,e){return e?Object(o.a)(t,e):new i.a(Object(r.a)(t))}},yESu:function(t,e,n){"use strict";var i=n("mbIT"),r=n("FCKb"),o=n("gTqA");e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&i.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(o.from([e].concat(t)),new r.CombineLatestOperator(n))}}},yLV6:function(t,e,n){var i;!function(r,o,s,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=o.createElement("div"),d=Math.round,h=Math.abs,p=Date.now;function m(t,e,n){return setTimeout(w(t,n),e)}function f(t,e,n){return!!Array.isArray(t)&&(b(t,n[e],n),!0)}function b(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function g(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var _=g((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&void 0===t[i[r]])&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),v=g((function(t,e){return _(t,e,!0)}),"merge","Use `assign`.");function y(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&c(i,n)}function w(t,e){return function(){return t.apply(e,arguments)}}function C(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function x(t,e){return void 0===t?e:t}function O(t,e,n){b(k(e),(function(e){t.addEventListener(e,n,!1)}))}function S(t,e,n){b(k(e),(function(e){t.removeEventListener(e,n,!1)}))}function T(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function D(t,e){return t.indexOf(e)>-1}function k(t){return t.trim().split(/\s+/g)}function P(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function E(t){return Array.prototype.slice.call(t,0)}function A(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];P(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function I(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<l.length;){if((i=(n=l[o])?n+r:e)in t)return i;o++}}var M=1;function U(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var L="ontouchstart"in r,R=void 0!==I(r,"PointerEvent"),N=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F=["x","y"],V=["clientX","clientY"];function j(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){C(t.options.enable,[t])&&n.handler(e)},this.init()}function B(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=1&e&&i-r==0,s=12&e&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=z(e)),r>1&&!n.firstMultiple?n.firstMultiple=z(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,c=e.center=q(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Y(a,c),e.distance=J(a,c),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=G(e.deltaX,e.deltaY);var l,u,d=H(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=h(d.x)>h(d.y)?d.x:d.y,e.scale=s?(l=s.pointers,J((u=i)[0],u[1],V)/J(l[0],l[1],V)):1,e.rotation=s?function(t,e){return Y(e[1],e[0],V)+Y(t[1],t[0],V)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(a>25||void 0===s.velocity)){var c=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,u=H(a,c,l);i=u.x,r=u.y,n=h(u.x)>h(u.y)?u.x:u.y,o=G(c,l),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var m=t.element;T(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function z(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:d(t.pointers[n].clientX),clientY:d(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:q(e),deltaX:t.deltaX,deltaY:t.deltaY}}function q(t){var e=t.length;if(1===e)return{x:d(t[0].clientX),y:d(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:d(n/e),y:d(i/e)}}function H(t,e,n){return{x:e/t||0,y:n/t||0}}function G(t,e){return t===e?1:h(t)>=h(e)?t<0?2:4:e<0?8:16}function J(t,e,n){n||(n=F);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function Y(t,e,n){return n||(n=F),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(U(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(U(this.element),this.evWin,this.domHandler)}};var $={mousedown:1,mousemove:2,mouseup:4};function W(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,j.apply(this,arguments)}y(W,j,{handler:function(t){var e=$[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var K={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:"touch",3:"pen",4:"mouse",5:"kinect"},X="pointerdown",Z="pointermove pointerup pointercancel";function tt(){this.evEl=X,this.evWin=Z,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(X="MSPointerDown",Z="MSPointerMove MSPointerUp MSPointerCancel"),y(tt,j,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=K[i],o=Q[t.pointerType]||t.pointerType,s="touch"==o,a=P(e,t.pointerId,"pointerId");1&r&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var et={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function nt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,j.apply(this,arguments)}function it(t,e){var n=E(t.touches),i=E(t.changedTouches);return 12&e&&(n=A(n.concat(i),"identifier",!0)),[n,i]}y(nt,j,{handler:function(t){var e=et[t.type];if(1===e&&(this.started=!0),this.started){var n=it.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},j.apply(this,arguments)}function st(t,e){var n=E(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=E(t.changedTouches),a=[],c=this.target;if(o=n.filter((function(t){return T(t.target,c)})),1===e)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),12&e&&delete i[s[r].identifier],r++;return a.length?[A(o.concat(a),"identifier",!0),a]:void 0}function at(){j.apply(this,arguments);var t=w(this.handler,this);this.touch=new ot(this.manager,t),this.mouse=new W(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ct(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,lt.call(this,e)):12&t&&lt.call(this,e)}function lt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function ut(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}y(ot,j,{handler:function(t){var e=rt[t.type],n=st.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}),y(at,j,{handler:function(t,e,n){var i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)ct.call(this,e,n);else if(i&&ut.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var dt=I(u.style,"touchAction"),ht=void 0!==dt,pt=function(){if(!ht)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}();function mt(t,e){this.manager=t,this.set(e)}function ft(t){this.options=c({},this.defaults,t||{}),this.id=M++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function bt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function gt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function _t(t,e){var n=e.manager;return n?n.get(t):t}function vt(){ft.apply(this,arguments)}function yt(){vt.apply(this,arguments),this.pX=null,this.pY=null}function wt(){vt.apply(this,arguments)}function Ct(){ft.apply(this,arguments),this._timer=null,this._input=null}function xt(){vt.apply(this,arguments)}function Ot(){vt.apply(this,arguments)}function St(){ft.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Tt(t,e){return(e=e||{}).recognizers=x(e.recognizers,Tt.defaults.preset),new Dt(t,e)}function Dt(t,e){this.options=c({},Tt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(R?tt:N?ot:L?at:W))(this,B),this.touchAction=new mt(this,this.options.touchAction),kt(this,!0),b(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function kt(t,e){var n,i=t.element;i.style&&(b(t.options.cssProps,(function(r,o){n=I(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}mt.prototype={set:function(t){"compute"==t&&(t=this.compute()),ht&&this.manager.element.style&&pt[t]&&(this.manager.element.style[dt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return b(this.manager.recognizers,(function(e){C(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(D(t,"none"))return"none";var e=D(t,"pan-x"),n=D(t,"pan-y");return e&&n?"none":e||n?e?"pan-x":"pan-y":D(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=D(i,"none")&&!pt.none,o=D(i,"pan-y")&&!pt["pan-y"],s=D(i,"pan-x")&&!pt["pan-x"];if(r&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!s||!o)return r||o&&6&n||s&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}},ft.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(f(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=_t(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return f(t,"dropRecognizeWith",this)||(t=_t(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(f(t,"requireFailure",this))return this;var e=this.requireFail;return-1===P(e,t=_t(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(f(t,"dropRequireFailure",this))return this;t=_t(t,this);var e=P(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+bt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+bt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=c({},t);if(!C(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},y(vt,ft,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:32}}),y(yt,vt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(6&e.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?1:s<0?8:16,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return vt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=gt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),y(wt,vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(t.scale<1?"in":"out")),this._super.emit.call(this,t)}}),y(Ct,ft,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=m((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),y(xt,vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),y(Ot,vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return yt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&h(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=gt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),y(St,ft,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||J(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=m((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=m((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Tt.VERSION="2.0.7",Tt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[xt,{enable:!1}],[wt,{enable:!1},["rotate"]],[Ot,{direction:6}],[yt,{direction:6},["swipe"]],[St],[St,{event:"doubletap",taps:2},["tap"]],[Ct]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Dt.prototype={set:function(t){return c(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof ft)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(f(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(f(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=P(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(void 0!==t&&void 0!==e){var n=this.handlers;return b(k(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(void 0!==t){var n=this.handlers;return b(k(t),(function(t){e?n[t]&&n[t].splice(P(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Tt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Dt,Input:j,TouchAction:mt,TouchInput:ot,MouseInput:W,PointerEventInput:tt,TouchMouseInput:at,SingleTouchInput:nt,Recognizer:ft,AttrRecognizer:vt,Tap:St,Pan:yt,Swipe:Ot,Pinch:wt,Rotate:xt,Press:Ct,on:O,off:S,each:b,merge:v,extend:_,assign:c,inherit:y,bindFn:w,prefixed:I}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Tt,void 0===(i=(function(){return Tt}).call(e,n,e,t))||(t.exports=i)}(window,document)},yRPT:function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},yeub:function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(n){t.exports=!1}},yoF8:function(t,e,n){"use strict";e.identity=function(t){return t}},yrbL:function(t,e,n){"use strict";e.audit=n("+vT+").audit,e.auditTime=n("0BvR").auditTime,e.buffer=n("HzbE").buffer,e.bufferCount=n("i6Cy").bufferCount,e.bufferTime=n("QUyD").bufferTime,e.bufferToggle=n("C82C").bufferToggle,e.bufferWhen=n("cnJE").bufferWhen,e.catchError=n("rNzc").catchError,e.combineAll=n("FYWq").combineAll,e.combineLatest=n("yESu").combineLatest,e.concat=n("rEZo").concat,e.concatAll=n("c4Wt").concatAll,e.concatMap=n("zL8a").concatMap,e.concatMapTo=n("8b5+").concatMapTo,e.count=n("SqDy").count,e.debounce=n("3/+b").debounce,e.debounceTime=n("dMDw").debounceTime,e.defaultIfEmpty=n("1Z+e").defaultIfEmpty,e.delay=n("U2p0").delay,e.delayWhen=n("AYHy").delayWhen,e.dematerialize=n("VFZO").dematerialize,e.distinct=n("Fh4B").distinct,e.distinctUntilChanged=n("B/hR").distinctUntilChanged,e.distinctUntilKeyChanged=n("Qlto").distinctUntilKeyChanged,e.elementAt=n("X7Z7").elementAt,e.every=n("T/FJ").every,e.exhaust=n("eeun").exhaust,e.exhaustMap=n("/JYr").exhaustMap,e.expand=n("Sxl1").expand,e.filter=n("4ik+").filter,e.finalize=n("44p1").finalize,e.find=n("rxKr").find,e.findIndex=n("VLYi").findIndex,e.first=n("XoMe").first,e.groupBy=n("w1o2").groupBy,e.ignoreElements=n("DXMP").ignoreElements,e.isEmpty=n("fMhY").isEmpty,e.last=n("HmDv").last,e.map=n("q3Kh").map,e.mapTo=n("bSa5").mapTo,e.materialize=n("wgpc").materialize,e.max=n("aOuE").max,e.merge=n("cHgL").merge,e.mergeAll=n("QtHX").mergeAll,e.mergeMap=n("UNqx").mergeMap,e.flatMap=n("UNqx").mergeMap,e.mergeMapTo=n("OHRA").mergeMapTo,e.mergeScan=n("cmCt").mergeScan,e.min=n("jFrH").min,e.multicast=n("7K7o").multicast,e.observeOn=n("AFwO").observeOn,e.onErrorResumeNext=n("q3SL").onErrorResumeNext,e.pairwise=n("Y34a").pairwise,e.partition=n("o4sL").partition,e.pluck=n("DDzh").pluck,e.publish=n("Wxhx").publish,e.publishBehavior=n("NZaV").publishBehavior,e.publishLast=n("ZHwm").publishLast,e.publishReplay=n("GvSz").publishReplay,e.race=n("naeu").race,e.reduce=n("YK4L").reduce,e.repeat=n("ZTPi").repeat,e.repeatWhen=n("nz4u").repeatWhen,e.retry=n("a6us").retry,e.retryWhen=n("F1k1").retryWhen,e.refCount=n("4mvG").refCount,e.sample=n("gzDA").sample,e.sampleTime=n("EzyC").sampleTime,e.scan=n("vrE+").scan,e.sequenceEqual=n("fnxQ").sequenceEqual,e.share=n("XKtA").share,e.shareReplay=n("WHuz").shareReplay,e.single=n("EdHE").single,e.skip=n("a7Bn").skip,e.skipLast=n("WDqD").skipLast,e.skipUntil=n("1VEF").skipUntil,e.skipWhile=n("f6gv").skipWhile,e.startWith=n("RmLz").startWith,e.subscribeOn=n("4xzy").subscribeOn,e.switchAll=n("TAn0").switchAll,e.switchMap=n("6aLS").switchMap,e.switchMapTo=n("MhJ4").switchMapTo,e.take=n("Dxa7").take,e.takeLast=n("76/Q").takeLast,e.takeUntil=n("IW2O").takeUntil,e.takeWhile=n("s3+Z").takeWhile,e.tap=n("pWCv").tap,e.throttle=n("EOBV").throttle,e.throttleTime=n("CdcT").throttleTime,e.timeInterval=n("Z303").timeInterval,e.timeout=n("3n9G").timeout,e.timeoutWith=n("Vf9T").timeoutWith,e.timestamp=n("2Sgo").timestamp,e.toArray=n("Tkif").toArray,e.window=n("Fa1C").window,e.windowCount=n("uXFP").windowCount,e.windowTime=n("067Y").windowTime,e.windowToggle=n("BmJ7").windowToggle,e.windowWhen=n("vUl8").windowWhen,e.withLatestFrom=n("2hO6").withLatestFrom,e.zip=n("eThW").zip,e.zipAll=n("d1Tk").zipAll},yx2s:function(t,e,n){"use strict";var i=n("FWf1");e.canReportError=function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof i.Subscriber?e:null}return!0}},"z+Ro":function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return i}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("HDdC");function r(t,e){return new i.a(e?n=>e.schedule(o,0,{error:t,subscriber:n}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},"zB/H":function(t,e,n){"use strict";var i=n("mbIT"),r=n("GMZp"),o=n("pshJ"),s=n("LBXl");function a(t){return t.reduce((function(t,e){return t.concat(e instanceof s.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,c=this._ctorUnsubscribe,l=this._unsubscribe,u=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var d=0;d<n.length;++d)n[d].remove(this);if(o.isFunction(l)){c&&(this._unsubscribe=void 0);try{l.call(this)}catch(m){e=m instanceof s.UnsubscriptionError?a(m.errors):[m]}}if(i.isArray(u)){d=-1;for(var h=u.length;++d<h;){var p=u[d];if(r.isObject(p))try{p.unsubscribe()}catch(m){e=e||[],m instanceof s.UnsubscriptionError?e=e.concat(a(m.errors)):e.push(m)}}}if(e)throw new s.UnsubscriptionError(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var i=n;(n=new t)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}()},zJ60:function(t,e,n){var i=n("Uxeu"),r=n("x7D4")("socket.io-client:url");t.exports=function(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(r("protocol-less url %s",t),t=void 0!==e?e.protocol+"//"+t:"https://"+t),r("parse %s",t),n=i(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port,n.href=n.protocol+"://"+o+(e&&e.port===n.port?"":":"+n.port),n}},zL8a:function(t,e,n){"use strict";var i=n("UNqx");e.concatMap=function(t,e){return i.mergeMap(t,e,1)}},zMFY:function(t,e){function n(){}t.exports=function(t,e,i){var r=!1;return i=i||n,o.count=t,0===t?e():o;function o(t,n){if(o.count<=0)throw new Error("after called too many times");--o.count,t?(r=!0,e(t),e=i):0!==o.count||r||e(null,n)}}},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("fXoL");n("yLV6");const r={environment:"prod",production:!0,logging:!1,keycloakClientId:"WebCoreJS",apiEndpoint:"https://dblp01id71.execute-api.us-west-2.amazonaws.com/prod/",identityManagementHost:"https://register.enotary.com.co/auth",apiEndpointUploadFileS3:"",apiEndpointSendDocsToSign:"https://api-senddocstosign.autenticsign.com/v1",payuEndpoint:"https://checkout.payulatam.com/ppp-web-gateway-payu",payuApiKey:"L2caPhpyEdJ99I2rJ6iD96SXF7",payuMerchantId:"810436",payuAccountId:"817525",payResponseUrl:"https://{host}/front/",payConfirmationUrl:"https://dblp01id71.execute-api.us-west-2.amazonaws.com/prod/feeder/payu/confirmation",test:"0",urlLanding:"https://enotary.com.co",apiEndpointCreditFactory:"https://apis.prod.fabricacredito.com/bureautu/v1/",urlLogout:"https://enotary.com.co/front/#/corporate/validate/verify-login",apiUploadFilesIdentityValidation:"https://uploadfiles.enotary.com.co/v1/",urlWebsocket:"https://ws.enotary.com.co/",KeyWebSocket:"Tm90YXJpYVNpZ24sYjNLZltmPkNBNyo6NDQ0eExz",keyLocation:"AIzaSyCceSiTlbj6N0nPbjlgp3IduR-uPWnGC10",endpointKeycloak:"register.enotary.com.co",endpointLogger:"https://dblp01id71.execute-api.us-west-2.amazonaws.com/prod/loggermanager",scriptureBucket:"notaria-sign-scriptures",firebaseConfig:{apiKey:"AIzaSyDzYfO_pMs8ArqskMb694_b8Edgjqj02XI",authDomain:"enotary-prod.firebaseapp.com",projectId:"enotary-prod",storageBucket:"enotary-prod.appspot.com",messagingSenderId:"1022840507954",appId:"1:1022840507954:web:263e288446a4c4ac95f62b"},veriffApiKey:"1c4c691d-0dc1-427a-b5f7-59770bd18553"};var o=n("ofXK"),s=n("LRne"),a=n("HDdC"),c=n("5+tZ");function l(t,e){return Object(c.a)(t,e,1)}var u=n("7o/Q");function d(t,e){return function(n){return n.lift(new h(t,e))}}class h{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new p(t,this.predicate,this.thisArg))}}class p extends u.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}var m=n("lJxs");class f{}class b{}class g{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof g?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new g;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof g?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class _{encodeKey(t){return v(t)}encodeValue(t){return v(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function v(t){return encodeURIComponent(t).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 y{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new _,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[r,o]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],s=n.get(r)||[];s.push(o),n.set(r,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new y({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function w(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function C(t){return"undefined"!=typeof Blob&&t instanceof Blob}function x(t){return"undefined"!=typeof FormData&&t instanceof FormData}class O{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new g),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new y,this.urlWithParams=e}serializeBody(){return null===this.body?null:w(this.body)||C(this.body)||x(this.body)||"string"==typeof this.body?this.body:this.body instanceof y?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||x(this.body)?null:C(this.body)?this.body.type||null:w(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof y?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,r=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new O(e,n,r,{params:c,headers:a,reportProgress:s,responseType:i,withCredentials:o})}}var S=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class T{constructor(t,e=200,n="OK"){this.headers=t.headers||new g,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class D extends T{constructor(t={}){super(t),this.type=S.ResponseHeader}clone(t={}){return new D({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class k extends T{constructor(t={}){super(t),this.type=S.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new k({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class P extends T{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function E(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let A=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof O)i=t;else{let r=void 0;r=n.headers instanceof g?n.headers:new g(n.headers);let o=void 0;n.params&&(o=n.params instanceof y?n.params:new y({fromObject:n.params})),i=new O(t,e,void 0!==n.body?n.body:null,{headers:r,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Object(s.a)(i).pipe(l(t=>this.handler.handle(t)));if(t instanceof O||"events"===n.observe)return r;const o=r.pipe(d(t=>t instanceof k));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return o.pipe(Object(m.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe(Object(m.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe(Object(m.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe(Object(m.a)(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new y).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,E(n,e))}post(t,e,n={}){return this.request("POST",t,E(n,e))}put(t,e,n={}){return this.request("PUT",t,E(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(f))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class I{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const M=new i.s("HTTP_INTERCEPTORS");let U=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const L=/^\)\]\}',?\n/;class R{}let N=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new a.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const o=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",o=new g(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new D({headers:o,status:e,statusText:i,url:s}),r},s=()=>{let{headers:i,status:r,statusText:s,url:a}=o(),c=null;204!==r&&(c=void 0===n.response?n.responseText:n.response),0===r&&(r=c?200:0);let l=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(L,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new k({body:c,headers:i,status:r,statusText:s,url:a||void 0})),e.complete()):e.error(new P({error:c,headers:i,status:r,statusText:s,url:a||void 0}))},a=t=>{const{url:i}=o(),r=new P({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let c=!1;const l=i=>{c||(e.next(o()),c=!0);let r={type:S.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:S.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:S.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),t.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(R))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const V=new i.s("XSRF_COOKIE_NAME"),j=new i.s("XSRF_HEADER_NAME");class B{}let z=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(o.R)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e),i.Yb(i.D),i.Yb(V))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),q=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(B),i.Yb(j))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(M,[]);this.chain=t.reduceRight((t,e)=>new I(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(b),i.Yb(i.t))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),G=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:q,useClass:U}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:V,useValue:e.cookieName}:[],e.headerName?{provide:j,useValue:e.headerName}:[]]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[q,{provide:M,useExisting:q,multi:!0},{provide:B,useClass:z},{provide:V,useValue:"XSRF-TOKEN"},{provide:j,useValue:"X-XSRF-TOKEN"}]}),t})(),J=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[A,{provide:f,useClass:H},F,{provide:b,useExisting:F},N,{provide:R,useExisting:N}],imports:[[G.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();var Y=n("2Yyj"),$=n.n(Y);class W extends o.O{constructor(){super()}supportsDOMEvents(){return!0}}class K extends W{static makeCurrent(){Object(o.S)(new K)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=X||(X=document.querySelector("base"),X)?X.getAttribute("href"):null;return null==e?null:(n=e,Q||(Q=document.createElement("a")),Q.setAttribute("href",n),"/"===Q.pathname.charAt(0)?Q.pathname:"/"+Q.pathname);var n}resetBaseElement(){X=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(o.R)(document.cookie,t)}}let Q,X=null;const Z=new i.s("TRANSITION_ID"),tt=[{provide:i.d,useFactory:function(t,e,n){return()=>{n.get(i.e).donePromise.then(()=>{const n=Object(o.Q)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Z,o.e,i.t],multi:!0}];class et{static init(){Object(i.bb)(new et)}addToWindow(t){i.sb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},i.sb.getAllAngularTestabilities=()=>t.getAllTestabilities(),i.sb.getAllAngularRootElements=()=>t.getAllRootElements(),i.sb.frameworkStabilizers||(i.sb.frameworkStabilizers=[]),i.sb.frameworkStabilizers.push(t=>{const e=i.sb.getAllAngularTestabilities();let n=e.length,r=!1;const o=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(o)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Object(o.Q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const nt=new i.s("EventManagerPlugins");let it=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(nt),i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class rt{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Object(o.Q)().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let ot=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),st=(()=>{class t extends ot{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(o.Q)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const at={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/"},ct=/%COMP%/g;function lt(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?lt(t,r,n):(r=r.replace(ct,t),n.push(r))}return n}function ut(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let dt=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new ht(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.T.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new pt(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case i.T.Native:case i.T.ShadowDom:return new mt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=lt(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(it),i.Yb(st),i.Yb(i.c))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class ht{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(at[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=at[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=at[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&i.I.DashCase?t.style.setProperty(e,n,r&i.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&i.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ut(n)):this.eventManager.addEventListener(t,e,ut(n))}}class pt extends ht{constructor(t,e,n,i){super(t),this.component=n;const r=lt(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(ct,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(ct,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class mt extends ht{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===i.T.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const o=lt(r.id,r.styles,[]);for(let i=0;i<o.length;i++){const t=document.createElement("style");t.textContent=o[i],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let ft=(()=>{class t extends rt{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const bt=["alt","control","meta","shift"],gt={"\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"},_t={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"},vt={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let yt=(()=>{class t extends rt{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const r=t.parseEventName(n),s=t.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(o.Q)().onAndCancel(e,r.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let o="";if(bt.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=r,0!=n.length||0===r.length)return null;const s={};return s.domEventName=i,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&_t.hasOwnProperty(e)&&(e=_t[e]))}return gt[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),bt.forEach(i=>{i!=n&&(0,vt[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return Object(i.Yb)(Ct)},token:t,providedIn:"root"}),t})(),Ct=(()=>{class t extends wt{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case i.K.NONE:return e;case i.K.HTML:return Object(i.hb)(e,"HTML")?Object(i.zb)(e):Object(i.fb)(this._doc,String(e));case i.K.STYLE:return Object(i.hb)(e,"Style")?Object(i.zb)(e):e;case i.K.SCRIPT:if(Object(i.hb)(e,"Script"))return Object(i.zb)(e);throw new Error("unsafe value used in a script context");case i.K.URL:return Object(i.rb)(e),Object(i.hb)(e,"URL")?Object(i.zb)(e):Object(i.gb)(String(e));case i.K.RESOURCE_URL:if(Object(i.hb)(e,"ResourceURL"))return Object(i.zb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(i.ib)(t)}bypassSecurityTrustStyle(t){return Object(i.lb)(t)}bypassSecurityTrustScript(t){return Object(i.kb)(t)}bypassSecurityTrustUrl(t){return Object(i.mb)(t)}bypassSecurityTrustResourceUrl(t){return Object(i.jb)(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:function(){return t=Object(i.Yb)(i.p),new Ct(t.get(o.e));var t},token:t,providedIn:"root"}),t})();const xt=[{provide:i.D,useValue:o.P},{provide:i.E,useValue:function(){K.makeCurrent(),et.init()},multi:!0},{provide:o.e,useFactory:function(){return Object(i.xb)(document),document},deps:[]}],Ot=Object(i.U)(i.ab,"browser",xt),St=[[],{provide:i.db,useValue:"root"},{provide:i.n,useFactory:function(){return new i.n},deps:[]},{provide:nt,useClass:ft,multi:!0,deps:[o.e,i.B,i.D]},{provide:nt,useClass:yt,multi:!0,deps:[o.e]},[],{provide:dt,useClass:dt,deps:[it,st,i.c]},{provide:i.H,useExisting:dt},{provide:ot,useExisting:st},{provide:st,useClass:st,deps:[o.e]},{provide:i.O,useClass:i.O,deps:[i.B]},{provide:it,useClass:it,deps:[nt,i.B]},[]];let Tt=(()=>{class t{constructor(t){if(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.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:i.c,useValue:e.appId},{provide:Z,useExisting:i.c},tt]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(t,12))},providers:St,imports:[o.c,i.f]}),t})();function Dt(){return new kt(Object(i.Yb)(o.e))}let kt=(()=>{class t{constructor(t){this._doc=t,this._dom=Object(o.Q)()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTag(e);if(n&&this._containsAttributes(t,n))return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(t,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(n,t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(n)===t[n])}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:Dt,token:t,providedIn:"root"}),t})();function Pt(){return new Et(Object(i.Yb)(o.e))}let Et=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:Pt,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window;class At{}function It(t,e){return{type:7,name:t,definitions:e,options:{}}}function Mt(t,e=null){return{type:4,styles:e,timings:t}}function Ut(t,e=null){return{type:3,steps:t,options:e}}function Lt(t,e=null){return{type:2,steps:t,options:e}}function Rt(t){return{type:6,styles:t,offset:null}}function Nt(t,e,n){return{type:0,name:t,styles:e,options:n}}function Ft(t){return{type:5,steps:t}}function Vt(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function jt(t=null){return{type:9,options:t}}function Bt(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function zt(t){Promise.resolve(null).then(t)}class qt{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){zt(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ht{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?zt(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Gt(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Jt(t){switch(t.length){case 0:return new qt;case 1:return t[0];default:return new Ht(t)}}function Yt(t,e,n,i,r={},o={}){const s=[],a=[];let c=-1,l=null;if(i.forEach(t=>{const n=t.offset,i=n==c,u=i&&l||{};Object.keys(t).forEach(n=>{let i=n,a=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,s),a){case"!":a=r[n];break;case"*":a=o[n];break;default:a=e.normalizeStyleValue(n,i,a,s)}u[i]=a}),i||a.push(u),l=u,c=n}),s.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${s.join(t)}`)}return a}function $t(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&Wt(n,"start",t)));break;case"done":t.onDone(()=>i(n&&Wt(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&Wt(n,"destroy",t)))}}function Wt(t,e,n){const i=n.totalTime,r=Kt(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function Kt(t,e,n,i,r="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Qt(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function Xt(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Zt=(t,e)=>!1,te=(t,e)=>!1,ee=(t,e,n)=>[];const ne=Gt();(ne||"undefined"!=typeof Element)&&(Zt=(t,e)=>t.contains(e),te=(()=>{if(ne||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):te}})(),ee=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let ie=null,re=!1;function oe(t){ie||(ie=("undefined"!=typeof document?document.body:null)||{},re=!!ie.style&&"WebkitAppearance"in ie.style);let e=!0;return ie.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in ie.style,!e&&re)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ie.style),e}const se=te,ae=Zt,ce=ee;function le(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let ue=(()=>{class t{validateStyleProperty(t){return oe(t)}matchesElement(t,e){return se(t,e)}containsElement(t,e){return ae(t,e)}query(t,e,n){return ce(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,o=[],s){return new qt(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),de=(()=>{class t{}return t.NOOP=new ue,t})();function he(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:pe(parseFloat(e[1]),e[2])}function pe(t,e){switch(e){case"s":return 1e3*t;default:return t}}function me(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,o="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=pe(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(r=pe(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else i=t;if(!n){let n=!1,o=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:o}}(t,e,n)}function fe(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function be(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else fe(t,n);return n}function ge(t,e,n){return n?e+":"+n+";":""}function _e(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=ge(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=ge(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function ve(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=De(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),Gt()&&_e(t))}function ye(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=De(e);t.style[n]=""}),Gt()&&_e(t))}function we(t){return Array.isArray(t)?1==t.length?t[0]:Lt(t):t}const Ce=new RegExp("{{\\s*(.+?)\\s*}}","g");function xe(t){let e=[];if("string"==typeof t){let n;for(;n=Ce.exec(t);)e.push(n[1]);Ce.lastIndex=0}return e}function Oe(t,e,n){const i=t.toString(),r=i.replace(Ce,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),r=""),r.toString()});return r==i?t:r}function Se(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Te=/-+([a-z0-9])/g;function De(t){return t.replace(Te,(...t)=>t[1].toUpperCase())}function ke(t,e){return 0===t||0===e}function Pe(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let o=e[0],s=[];if(i.forEach(t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]}),s.length)for(var r=1;r<e.length;r++){let n=e[r];s.forEach((function(e){n[e]=Ae(t,e)}))}}return e}function Ee(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function Ae(t,e){return window.getComputedStyle(t)[e]}function Ie(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],o=i[2],s=i[3];e.push(Le(r,s)),"<"!=o[0]||"*"==r&&"*"==s||e.push(Le(s,r))}(t,n,e)):n.push(t),n}const Me=new Set(["true","1"]),Ue=new Set(["false","0"]);function Le(t,e){const n=Me.has(t)||Ue.has(t),i=Me.has(e)||Ue.has(e);return(r,o)=>{let s="*"==t||t==r,a="*"==e||e==o;return!s&&n&&"boolean"==typeof r&&(s=r?Me.has(t):Ue.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?Me.has(e):Ue.has(e)),s&&a}}const Re=new RegExp("s*:selfs*,?","g");function Ne(t,e,n){return new Fe(t).build(e,n)}class Fe{constructor(t){this._driver=t}build(t,e){const n=new Ve(e);return this._resetContextStyleTimingState(n),Ee(this,we(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,o.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:o,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,o=i||{};if(n.styles.forEach(t=>{if(je(t)){const e=t;Object.keys(e).forEach(t=>{xe(e[t]).forEach(t=>{o.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=Se(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=Ee(this,we(t.animation),e);return{type:1,matchers:Ie(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Be(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Ee(this,t,e)),options:Be(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=Ee(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:Be(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ze(me(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ze(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||me(i,e),ze(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:Rt({});if(5==r.type)i=this.visitKeyframes(r,e);else{let r=t.styles,o=!1;if(!r){o=!0;const t={};n.easing&&(t.easing=n.easing),r=Rt(t)}e.currentTime+=n.duration+n.delay;const s=this.visitStyle(r,e);s.isEmptyStep=o,i=s}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,r=null;return n.forEach(t=>{if(je(t)){const e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(r!=i&&r>=s.startTime&&i<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=s.startTime),a&&(o[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=xe(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let o=!1,s=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(je(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(je(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(i++,l=n.offset=c),s=s||l<0||l>1,o=o||l<a,a=l,r.push(l),n});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");const l=t.steps.length;let u=0;i>0&&i<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(u=1/(l-1));const d=l-1,h=e.currentTime,p=e.currentAnimateTimings,m=p.duration;return c.forEach((t,i)=>{const o=u>0?i==d?1:u*i:r[i],s=o*m;e.currentTime=h+p.delay+s,p.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:Ee(this,we(t.animation),e),options:Be(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Be(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Be(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Re,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,Qt(e.collectedStyles,e.currentQuerySelector,{});const s=Ee(this,we(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:Be(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:me(t.timings,e.errors,!0);return{type:12,animation:Ee(this,we(t.animation),e),timings:n,options:null}}}class Ve{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function je(t){return!Array.isArray(t)&&"object"==typeof t}function Be(t){var e;return t?(t=fe(t)).params&&(t.params=(e=t.params)?fe(e):null):t={},t}function ze(t,e,n){return{duration:t,delay:e,easing:n}}function qe(t,e,n,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class He{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ge=new RegExp(":enter","g"),Je=new RegExp(":leave","g");function Ye(t,e,n,i,r,o={},s={},a,c,l=[]){return(new $e).buildKeyframes(t,e,n,i,r,o,s,a,c,l)}class $e{buildKeyframes(t,e,n,i,r,o,s,a,c,l=[]){c=c||new He;const u=new Ke(t,e,c,i,r,l,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),Ee(this,n,u);const d=u.timelines.filter(t=>t.containsAnimation());if(d.length&&Object.keys(s).length){const t=d[d.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,u.errors,a)}return d.length?d.map(t=>t.buildKeyframes()):[qe(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?he(n.duration):null,o=null!=n.delay?he(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),Ee(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=We);const t=he(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Ee(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?he(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);r&&s.delayNextStep(r),Ee(this,o,s),i=Math.max(i,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return me(e.params?Oe(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?he(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=We);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((n,i)=>{e.currentQueryIndex=i;const s=e.createSubContext(t.options,n);r&&s.delayNextStep(r),n===e.element&&(a=s.currentTimeline),Ee(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;Ee(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const We={};class Ke{constructor(t,e,n,i,r,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=We,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Qe(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=he(n.duration)),null!=n.delay&&(i.delay=he(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=Oe(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new Ke(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=We,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new Xe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,o){let s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(Ge,"."+this._enterClassName)).replace(Je,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),s.push(...e)}return r||0!=s.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class Qe{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Qe(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const r=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]="*"})):be(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=Oe(o[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((r,o)=>{const s=be(r,!0);Object.keys(s).forEach(n=>{const i=s[n];"!"==i?t.add(n):"*"==i&&e.add(n)}),n||(s.offset=o/this.duration),i.push(s)});const r=t.size?Se(t.values()):[],o=e.size?Se(e.values()):[];if(n){const t=i[0],e=fe(t);t.offset=0,e.offset=1,i=[t,e]}return qe(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class Xe extends Qe{constructor(t,e,n,i,r,o,s=!1){super(t,e,o.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=n+e,s=e/o,a=be(t[0],!1);a.offset=0,r.push(a);const c=be(t[0],!1);c.offset=Ze(s),r.push(c);const l=t.length-1;for(let i=1;i<=l;i++){let s=be(t[i],!1);s.offset=Ze((e+s.offset*n)/o),r.push(s)}n=o,e=0,i="",t=r}return qe(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function Ze(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class tn{}class en extends tn{normalizePropertyName(t,e){return De(t)}normalizeStyleValue(t,e,n,i){let r="";const o=n.toString().trim();if(nn[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+r}}const nn=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function rn(t,e,n,i,r,o,s,a,c,l,u,d,h){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:d,errors:h}}const on={};class sn{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}build(t,e,n,i,r,o,s,a,c,l){const u=[],d=this.ast.options&&this.ast.options.params||on,h=this.buildStyles(n,s&&s.params||on,u),p=a&&a.params||on,m=this.buildStyles(i,p,u),f=new Set,b=new Map,g=new Map,_="void"===i,v={params:Object.assign(Object.assign({},d),p)},y=l?[]:Ye(t,e,this.ast.animation,r,o,h,m,v,c,u);let w=0;if(y.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return rn(e,this._triggerName,n,i,_,h,m,[],[],b,g,w,u);y.forEach(t=>{const n=t.element,i=Qt(b,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=Qt(g,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&f.add(n)});const C=Se(f.values());return rn(e,this._triggerName,n,i,_,h,m,y,C,b,g,w)}}class an{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=fe(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let o=r[t];o.length>1&&(o=Oe(o,i,e)),n[t]=o})}}),n}}class cn{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new an(t.style,t.options&&t.options.params||{})}),ln(this.states,"true","1"),ln(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new sn(t,e,this.states))}),this.fallbackTransition=new sn(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function ln(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const un=new He;class dn{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=Ne(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=Yt(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],r=this._animations[t];let o;const s=new Map;if(r?(o=Ye(this._driver,e,r,"ng-enter","ng-leave",{},{},n,un,i),o.forEach(t=>{const e=Qt(s,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));s.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=Jt(o.map(t=>{const e=s.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,i){const r=Kt(e,"","","");return $t(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const hn=[],pn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},mn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class fn{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=fe(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const bn=new fn("void");class gn{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,On(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const o=Qt(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);const a=Qt(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(On(t,"ng-trigger"),On(t,"ng-trigger-"+e),a[e]=bn),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(s);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),o=new vn(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(On(t,"ng-trigger"),On(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const c=new fn(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s[e]=c,a||(a=bn),"void"!==c.value&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!e.hasOwnProperty(i)||t[i]!==e[i])return!1}return!0}(a.params,c.params)){const e=[],n=r.matchStyles(a.value,a.params,e),i=r.matchStyles(c.value,c.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{ye(t,n),ve(t,i)})}return}const l=Qt(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,c.value,t,c.params),d=!1;if(!u){if(!i)return;u=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:o,isFallbackTransition:d}),d||(On(t,"ng-animate-queued"),o.onStart(()=>{Sn(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}}),this.players.push(o),l.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const o=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Jt(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const i=e.name;if(n.has(i))return;n.add(i);const r=this._triggers[i].fallbackTransition,o=this._engine.statesByElement.get(t)[i]||bn,s=new fn("void"),a=new vn(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:o,toState:s,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==pn||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){On(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,o=this._elementListeners.get(r);o&&o.forEach(e=>{if(e.name==n.triggerName){const i=Kt(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,$t(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class _n{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new gn(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=n[t[i]].namespaceId;if(r){const t=this._fetchNamespace(r);t&&e.add(t)}}}return e}trigger(t,e,n,i){if(yn(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!yn(e))return;const r=e.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),On(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Sn(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(yn(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return yn(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Jt(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=pn,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)On(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Jt(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new He,i=[],r=new Map,o=[],s=new Map,a=new Map,c=new Map,l=new Set;this.disabledNodes.forEach(t=>{l.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)l.add(e[n])});const u=this.bodyNode,d=Array.from(this.statesByElement.keys()),h=xn(d,this.collectedEnterElements),p=new Map;let m=0;h.forEach((t,e)=>{const n="ng-enter"+m++;p.set(e,n),t.forEach(t=>On(t,n))});const f=[],b=new Set,g=new Set;for(let E=0;E<this.collectedLeaveElements.length;E++){const t=this.collectedLeaveElements[E],e=t.__ng_removed;e&&e.setForRemoval&&(f.push(t),b.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>b.add(t)):g.add(t))}const _=new Map,v=xn(d,Array.from(b));v.forEach((t,e)=>{const n="ng-leave"+m++;_.set(e,n),t.forEach(t=>On(t,n))}),t.push(()=>{h.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>Sn(t,n))}),v.forEach((t,e)=>{const n=_.get(e);t.forEach(t=>Sn(t,n))}),f.forEach(t=>{this.processLeaveNode(t)})});const y=[],w=[];for(let E=this._namespaceList.length-1;E>=0;E--)this._namespaceList[E].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(y.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const l=!u||!this.driver.containsElement(u,r),d=_.get(r),h=p.get(r),m=this._buildInstruction(t,n,h,d,l);if(m.errors&&m.errors.length)w.push(m);else{if(l)return e.onStart(()=>ye(r,m.fromStyles)),e.onDestroy(()=>ve(r,m.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>ye(r,m.fromStyles)),e.onDestroy(()=>ve(r,m.toStyles)),void i.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,m.timelines),o.push({instruction:m,player:e,element:r}),m.queriedElements.forEach(t=>Qt(s,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),m.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=c.get(e);i||c.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),y.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,x=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(x.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Qt(C,e,[]).push(t),t.destroy()})});const O=f.filter(t=>Dn(t,a,c)),S=new Map;Cn(S,this.driver,g,c,"*").forEach(t=>{Dn(t,a,c)&&O.push(t)});const T=new Map;h.forEach((t,e)=>{Cn(T,this.driver,new Set(t),a,"!")}),O.forEach(t=>{const e=S.get(t),n=T.get(t);S.set(t,Object.assign(Object.assign({},e),n))});const D=[],k=[],P={};o.forEach(t=>{const{element:e,player:o,instruction:s}=t;if(n.has(e)){if(l.has(e))return o.onDestroy(()=>ve(e,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void i.push(o);let t=P;if(x.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=x.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>x.set(e,t))}const n=this._buildAnimation(o.namespaceId,s,C,r,T,S);if(o.setRealPlayer(n),t===P)D.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=Jt(e)),i.push(o)}}else ye(e,s.fromStyles),o.onDestroy(()=>ve(e,s.toStyles)),k.push(o),l.has(e)&&i.push(o)}),k.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=Jt(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let E=0;E<f.length;E++){const t=f[E],e=t.__ng_removed;if(Sn(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(s.size){let e=s.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t<i.length;t++){let e=s.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?Tn(this,t,i):this.processLeaveNode(t)}return f.length=0,D.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),D}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||"void"==r;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&o.push(e)})}}return(n||i)&&(o=o.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),o}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==i,c=Qt(n,t,[]);this._getPreviousPlayers(t,a,r,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}ye(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,o){const s=e.triggerName,a=e.element,c=[],l=new Set,u=new Set,d=e.timelines.map(e=>{const d=e.element;l.add(d);const h=d.__ng_removed;if(h&&h.removedBeforeQueried)return new qt(e.duration,e.delay);const p=d!==a,m=function(t){const e=[];return function t(e,n){for(let i=0;i<e.length;i++){const r=e[i];r instanceof Ht?t(r.players,n):n.push(r)}}(t,e),e}((n.get(d)||hn).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===d),f=r.get(d),b=o.get(d),g=Yt(0,this._normalizer,0,e.keyframes,f,b),_=this._buildPlayer(e,g,m);if(e.subTimeline&&i&&u.add(d),p){const e=new vn(t,s,d);e.setRealPlayer(_),c.push(e)}return _});c.forEach(t=>{Qt(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),l.forEach(t=>On(t,"ng-animating"));const h=Jt(d);return h.onDestroy(()=>{l.forEach(t=>Sn(t,"ng-animating")),ve(a,e.toStyles)}),u.forEach(t=>{Qt(i,t,[]).push(h)}),h}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new qt(t.duration,t.delay)}}class vn{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new qt,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>$t(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Qt(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function yn(t){return t&&1===t.nodeType}function wn(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Cn(t,e,n,i,r){const o=[];n.forEach(t=>o.push(wn(t)));const s=[];i.forEach((n,i)=>{const o={};n.forEach(t=>{const n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=mn,s.push(i))}),t.set(i,o)});let a=0;return n.forEach(t=>wn(t,o[a++])),s}function xn(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let o=r.get(e);if(o)return o;const s=e.parentNode;return o=n.has(s)?s:i.has(s)?1:t(s),r.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}function On(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Sn(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Tn(t,e,n){Jt(n).onDone(()=>t.processLeaveNode(e))}function Dn(t,e,n){const i=n.get(t);if(!i)return!1;let r=e.get(t);return r?i.forEach(t=>r.add(t)):e.set(t,i),n.delete(t),!0}class kn{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new _n(t,e,n),this._timelineEngine=new dn(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const o=t+"-"+i;let s=this._triggerCache[o];if(!s){const t=[],e=Ne(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e){return new cn(t,e)}(i,e),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,i,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=Xt(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=Xt(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Pn(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=An(e[0]),e.length>1&&(i=An(e[e.length-1]))):e&&(n=An(e)),n||i?new En(t,n,i):null}let En=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&ve(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ve(this._element,this._initialStyles),this._endStyles&&(ve(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ye(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ye(this._element,this._endStyles),this._endStyles=null),ve(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function An(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];In(r)&&(e=e||{},e[r]=t[r])}return e}function In(t){return"display"===t||"position"===t}class Mn{constructor(t,e,n,i,r,o,s){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Vn(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i<t.length;i++)","===t.charAt(i)&&n++}(n),e=`${n}, ${e}`),Fn(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Nn(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Un(this._element,this._name,"paused")}resume(){Un(this._element,this._name,"running")}setPosition(t){const e=Ln(this._element,this._name);this._position=t*this._duration,Fn(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Nn(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Vn(t,"").split(","),i=Rn(n,e);i>=0&&(n.splice(i,1),Fn(t,"",n.join(",")))}(this._element,this._name))}}function Un(t,e,n){Fn(t,"PlayState",n,Ln(t,e))}function Ln(t,e){const n=Vn(t,"");return n.indexOf(",")>0?Rn(n.split(","),e):Rn([n],e)}function Rn(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Nn(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Fn(t,e,n,i){const r="animation"+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function Vn(t,e){return t.style["animation"+e]}class jn{constructor(t,e,n,i,r,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Mn(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:Ae(this.element,n))})}this.currentSnapshot=t}}class Bn extends qt{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=le(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class zn{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return oe(t)}matchesElement(t,e){return se(t,e)}containsElement(t,e){return ae(t,e)}query(t,e,n){return ce(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>le(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=r+"}\n"}),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(t,e,n,i,r,o=[],s){s&&this._notifyFaultyScrubber();const a=o.filter(t=>t instanceof jn),c={};ke(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Pe(t,e,c));if(0==n)return new Bn(t,l);const u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(d);const h=Pn(t,e),p=new jn(t,e,u,n,i,r,l,h);return p.onDestroy(()=>{var t;(t=d).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class qn{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:Ae(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Hn{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Gn().toString()),this._cssKeyframesDriver=new zn}validateStyleProperty(t){return oe(t)}matchesElement(t,e){return se(t,e)}containsElement(t,e){return ae(t,e)}query(t,e,n){return ce(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=o.filter(t=>t instanceof qn);ke(n,i)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=Pn(t,e=Pe(t,e=e.map(t=>be(t,!1)),c));return new qn(t,e,a,u)}}function Gn(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Jn=(()=>{class t extends At{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.T.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Lt(t):t;return Wn(this._renderer,null,e,"register",[n]),new Yn(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.H),i.Yb(o.e))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class Yn extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new $n(this._id,t,e||{},this._renderer)}}class $n{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Wn(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Wn(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}let Kn=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Qn("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(o),new Xn(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.H),i.Yb(kn),i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class Qn{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Xn extends Qn{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let r=e.substr(1),o="";return"@"!=r.charAt(0)&&([r,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Zn=(()=>{class t extends kn{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e),i.Yb(de),i.Yb(tn))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const ti=new i.s("AnimationModuleType"),ei=[{provide:de,useFactory:function(){return"function"==typeof Gn()?new Hn:new zn}},{provide:ti,useValue:"BrowserAnimations"},{provide:At,useClass:Jn},{provide:tn,useFactory:function(){return new en}},{provide:kn,useClass:Zn},{provide:i.H,useFactory:function(t,e,n){return new Kn(t,e,n)},deps:[dt,kn,i.B]}];let ni=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:ei,imports:[Tt]}),t})();var ii=n("VRyK"),ri=n("bHdf");function oi(){return Object(ri.a)(1)}function si(...t){return oi()(Object(s.a)(...t))}const ai=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();var ci=n("EY2u");function li(t){return e=>0===t?Object(ci.b)():e.lift(new ui(t))}class ui{constructor(t){if(this.total=t,this.total<0)throw new ai}call(t,e){return e.subscribe(new di(t,this.total))}}class di extends u.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}var hi=n("w1tV");function pi(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new mi(t,e,n))}}class mi{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new fi(t,this.accumulator,this.seed,this.hasSeed))}}class fi extends u.a{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function bi(t){return function(e){return 0===t?Object(ci.b)():e.lift(new gi(t))}}class gi{constructor(t){if(this.total=t,this.total<0)throw new ai}call(t,e){return e.subscribe(new _i(t,this.total))}}class _i extends u.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;r<n;r++){const r=e++%n;t.next(i[r])}}t.complete()}}function vi(t=null){return e=>e.lift(new yi(t))}class yi{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new wi(t,this.defaultValue))}}class wi extends u.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Ci=n("mCNh");function xi(t,e,n){return 0===n?[e]:(t.push(e),t)}var Oi=n("eIep");class Si{}let Ti=(()=>{class t extends Si{getTranslation(t){return Object(s.a)({})}}return t.\u0275fac=function(e){return Di(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Di=i.Wb(Ti);class ki{}let Pi=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();class Ei{}let Ai=(()=>{class t extends Ei{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return Ii(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Ii=i.Wb(Ai);function Mi(t){return null!=t}function Ui(t){return t&&"object"==typeof t&&!Array.isArray(t)}class Li{}let Ri=(()=>{class t extends Li{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n=e.split(".");e="";do{e+=n.shift(),!Mi(t)||!Mi(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let i=this.getValue(e,n);return Mi(i)?i:t}):t}}return t.\u0275fac=function(e){return Ni(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Ni=i.Wb(Ri);class Fi{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.o,this.onLangChange=new i.o,this.onDefaultLangChange=new i.o}}const Vi=new i.s("USE_STORE"),ji=new i.s("USE_DEFAULT_LANG");let Bi=(()=>{class t{constructor(t,e,n,r,o,s=!0,a=!1){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=a,this.pending=!1,this._onTranslationChange=new i.o,this._onLangChange=new i.o,this._onDefaultLangChange=new i.o,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(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(this.defaultLang||(this.defaultLang=t),e.pipe(li(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Object(s.a)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(li(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Object(s.a)(this.translations[t]))}retrieveTranslations(t){let e;return void 0===this.translations[t]&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Object(hi.a)());return this.loadingTranslations=e.pipe(li(1),Object(m.a)(e=>this.compiler.compileTranslations(e,t)),Object(hi.a)()),this.loadingTranslations.subscribe(e=>{this.translations[t]=e,this.updateLangs(),this.pending=!1},t=>{this.pending=!1}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=n&&this.translations[t]?function t(e,n){let i=Object.assign({},e);return Ui(e)&&Ui(n)&&Object.keys(n).forEach(r=>{Ui(n[r])?r in e?i[r]=t(e[r],n[r]):Object.assign(i,{[r]:n[r]}):Object.assign(i,{[r]:n[r]})}),i}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let i;if(e instanceof Array){let i={},r=!1;for(let o of e)i[o]=this.getParsedResult(t,o,n),"function"==typeof i[o].subscribe&&(r=!0);if(r){let t;for(let n of e){let e="function"==typeof i[n].subscribe?i[n]:Object(s.a)(i[n]);t=void 0===t?e:Object(ii.a)(t,e)}return t.pipe(function(t,e){return arguments.length>=2?function(n){return Object(Ci.a)(pi(t,e),bi(1),vi(e))(n)}:function(e){return Object(Ci.a)(pi((e,n,i)=>t(e,n,i+1)),bi(1))(e)}}(xi,[]),Object(m.a)(t=>{let n={};return t.forEach((t,i)=>{n[e[i]]=t}),n}))}return i}if(t&&(i=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===i&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===i){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),i=this.missingTranslationHandler.handle(t)}return void 0!==i?i:e}get(t,e){if(!Mi(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return a.a.create(n=>{let i=t=>{n.next(t),n.complete()},r=t=>{n.error(t)};this.loadingTranslations.subscribe(n=>{"function"==typeof(n=this.getParsedResult(n,t,e)).subscribe?n.subscribe(i,r):i(n)},r)});{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return"function"==typeof n.subscribe?n:Object(s.a)(n)}}stream(t,e){if(!Mi(t)||!t.length)throw new Error('Parameter "key" required');return si(this.get(t,e),this.onLangChange.pipe(Object(Oi.a)(n=>{const i=this.getParsedResult(n.translations,t,e);return"function"==typeof i.subscribe?i:Object(s.a)(i)})))}instant(t,e){if(!Mi(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(void 0!==n.subscribe){if(t instanceof Array){let e={};return t.forEach((n,i)=>{e[t[i]]=t[i]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),this.defaultLang||this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Fi),i.Yb(Si),i.Yb(Ei),i.Yb(Li),i.Yb(ki),i.Yb(ji),i.Yb(Vi))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),zi=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:Si,useClass:Ti},e.compiler||{provide:Ei,useClass:Ai},e.parser||{provide:Li,useClass:Ri},e.missingTranslationHandler||{provide:ki,useClass:Pi},Fi,{provide:Vi,useValue:e.isolate},{provide:ji,useValue:e.useDefaultLang},Bi]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:Si,useClass:Ti},e.compiler||{provide:Ei,useClass:Ai},e.parser||{provide:Li,useClass:Ri},e.missingTranslationHandler||{provide:ki,useClass:Pi},{provide:Vi,useValue:e.isolate},{provide:ji,useValue:e.useDefaultLang},Bi]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();var qi=n("MMa0"),Hi=n("Oipj");let Gi=(()=>{class t{constructor(t){this.production=t}assert(...t){this.production||console.assert(...t)}clear(){this.production||console.clear()}count(...t){this.production||console.count(...t)}debug(...t){this.production||console.debug(...t)}dir(...t){this.production||console.dir(...t)}dirxml(t){this.production||console.dirxml(t)}error(...t){this.production||console.error(...t)}group(...t){this.production||console.group(...t)}groupCollapsed(...t){this.production||console.groupCollapsed(...t)}groupEnd(){this.production||console.groupEnd()}info(...t){this.production||console.info(...t)}log(...t){this.production||console.log(...t)}profile(...t){this.production||console.profile(...t)}profileEnd(...t){this.production||console.profileEnd(...t)}table(...t){this.production||console.table(...t)}warn(...t){this.production||console.warn(...t)}exception(...t){this.production||console.exception(...t)}time(...t){this.production||console.time(...t)}timeEnd(...t){this.production||console.timeEnd(...t)}trace(...t){this.production||console.trace(...t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb("ENV_CONFIG_NG_SMART_CONSOLE"))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(i.V)({factory:function(){return new t(Object(i.Y)("ENV_CONFIG_NG_SMART_CONSOLE"))},token:t,providedIn:"root"}),t})(),Ji=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:"ENV_CONFIG_NG_SMART_CONSOLE",useValue:e.env},Gi]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[]]}),t})();var Yi=n("DH7j"),$i=n("XoHu"),Wi=n("Cfvw");function Ki(...t){if(1===t.length){const e=t[0];if(Object(Yi.a)(e))return Qi(e,null);if(Object($i.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Qi(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Qi(t=1===t.length&&Object(Yi.a)(t[0])?t[0]:t,null).pipe(Object(m.a)(t=>e(...t)))}return Qi(t,null)}function Qi(t,e){return new a.a(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a<i;a++){const c=Object(Wi.a)(t[a]);let l=!1;n.add(c.subscribe({next:t=>{l||(l=!0,s++),r[a]=t},error:t=>n.error(t),complete:()=>{o++,o!==i&&l||(s===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}var Xi=n("zx2A");function Zi(t){return function(e){const n=new tr(t),i=e.lift(n);return n.caught=i}}class tr{constructor(t){this.selector=t}call(t,e){return e.subscribe(new er(t,this.selector,this.caught))}}class er extends Xi.b{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new Xi.a(this);this.add(i);const r=Object(Xi.c)(n,i);r!==i&&this.add(r)}}}var nr=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===ir}(t)}(t)},ir="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function rr(t,e){return!1!==e.clone&&e.isMergeableObject(t)?sr(Array.isArray(t)?[]:{},t,e):t}function or(t,e,n){return t.concat(e).map((function(t){return rr(t,n)}))}function sr(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||or,n.isMergeableObject=n.isMergeableObject||nr;var i=Array.isArray(e);return i===Array.isArray(t)?i?n.arrayMerge(t,e,n):function(t,e,n){var i={};return n.isMergeableObject(t)&&Object.keys(t).forEach((function(e){i[e]=rr(t[e],n)})),Object.keys(e).forEach((function(r){i[r]=n.isMergeableObject(e[r])&&t[r]?sr(t[r],e[r],n):rr(e[r],n)})),i}(t,e,n):rr(e,n)}sr.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return sr(t,n,e)}),{})};var ar=n("Sp1V");let cr=(()=>{class t{static init(e,n){return t.keycloakAuth=ar(e),new Promise((e,i)=>{t.keycloakAuth.init(n).success(()=>{e()}).error(t=>{i(t)})})}client(){return t.keycloakAuth}authenticated(){return t.keycloakAuth.authenticated}login(e){t.keycloakAuth.login(e)}logout(e){t.keycloakAuth.logout({redirectUri:e})}account(){t.keycloakAuth.accountManagement()}accountUserProfile(){return Object(Wi.a)(new Promise((e,n)=>{t.keycloakAuth.loadUserProfile().success(e).error(t=>n(t))}))}accountUserProfile2(){return e=this,void 0,i=function*(){return yield new Promise((e,n)=>{t.keycloakAuth.loadUserProfile().success(e).error(t=>n(t))})},new((n=void 0)||(n=Promise))((function(t,r){function o(t){try{a(i.next(t))}catch(e){r(e)}}function s(t){try{a(i.throw(t))}catch(e){r(e)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,s)}a((i=i.apply(e,[])).next())}));var e,n,i}authServerUrl(){return t.keycloakAuth.authServerUrl}realm(){return t.keycloakAuth.realm}getRegisterUrl(){return t.keycloakAuth.register()}getToken(){return new Promise((e,n)=>{t.keycloakAuth.token?t.keycloakAuth.updateToken(5).success(()=>{e(t.keycloakAuth.token)}).error(()=>{n("Failed to refresh token")}):n("Not loggen in")})}isTokenExpired(){return t.keycloakAuth.isTokenExpired()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();var lr=n("XNiG"),ur=n("9ppp");class dr extends lr.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ur.a;return this._value}next(t){super.next(this._value=t)}}var hr=n("z+Ro");class pr extends u.a{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class mr extends u.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var fr=n("SeVD");function br(t,e,n,i,r=new mr(t,n,i)){if(!r.closed)return e instanceof a.a?e.subscribe(r):Object(fr.a)(e)(r)}var gr=n("yCtX");const _r={};function vr(...t){let e=void 0,n=void 0;return Object(hr.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(Yi.a)(t[0])&&(t=t[0]),Object(gr.a)(t,n).lift(new yr(e))}class yr{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new wr(t,this.resultSelector))}}class wr extends pr{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(_r),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(br(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const i=this.values,r=this.toRespond?i[n]===_r?--this.toRespond:this.toRespond:0;i[n]=e,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const Cr=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function xr(t){return new a.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(Wi.a)(n):Object(ci.b)()).subscribe(e)})}function Or(t=Dr){return e=>e.lift(new Sr(t))}class Sr{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Tr(t,this.errorFactory))}}class Tr extends u.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Dr(){return new Cr}var kr=n("SpAZ");function Pr(...t){const e=t[t.length-1];return Object(hr.a)(e)?(t.pop(),n=>si(t,n,e)):e=>si(t,e)}function Er(t,e){const n=arguments.length>=2;return i=>i.pipe(t?d((e,n)=>t(e,n,i)):kr.a,li(1),n?vi(e):Or(()=>new Cr))}var Ar=n("vkgz"),Ir=n("quSY");function Mr(t){return e=>e.lift(new Ur(t))}class Ur{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Lr(t,this.callback))}}class Lr extends u.a{constructor(t,e){super(t),this.add(new Ir.a(e))}}class Rr{constructor(t,e){this.id=t,this.url=e}}class Nr extends Rr{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Fr extends Rr{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Vr extends Rr{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class jr extends Rr{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Br extends Rr{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zr extends Rr{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qr extends Rr{constructor(t,e,n,i,r){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Hr extends Rr{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gr extends Rr{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jr{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Yr{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class $r{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wr{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kr{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qr{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xr{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Zr{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function to(t){return new Zr(t)}function eo(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function no(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const r={};for(let o=0;o<i.length;o++){const e=i[o],n=t[o];if(e.startsWith(":"))r[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function io(t,e){const n=Object.keys(t),i=Object.keys(e);if(!n||!i||n.length!=i.length)return!1;let r;for(let o=0;o<n.length;o++)if(r=n[o],!ro(t[r],e[r]))return!1;return!0}function ro(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),i=[...e].sort();return n.every((t,e)=>i[e]===t)}return t===e}function oo(t){return Array.prototype.concat.apply([],t)}function so(t){return t.length>0?t[t.length-1]:null}function ao(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function co(t){return Object(i.ub)(t)?t:Object(i.vb)(t)?Object(Wi.a)(Promise.resolve(t)):Object(s.a)(t)}function lo(t,e,n){return n?function(t,e){return io(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!mo(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ro(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!mo(n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!mo(n.segments,r))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=r.slice(0,n.segments.length),o=r.slice(n.segments.length);return!!mo(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,o)}}(e,n,n.segments)}(t.root,e.root)}class uo{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=to(this.queryParams)),this._queryParamMap}toString(){return _o.serialize(this)}}class ho{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ao(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vo(this)}}class po{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=to(this.parameters)),this._parameterMap}toString(){return So(this)}}function mo(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function fo(t,e){let n=[];return ao(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),ao(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class bo{}class go{parse(t){const e=new Eo(t);return new uo(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return vo(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return ao(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=fo(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${vo(e)}/${n[0]}`:`${vo(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${wo(e)}=${wo(t)}`).join("&"):`${wo(e)}=${wo(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const _o=new go;function vo(t){return t.segments.map(t=>So(t)).join("/")}function yo(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wo(t){return yo(t).replace(/%3B/gi,";")}function Co(t){return yo(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xo(t){return decodeURIComponent(t)}function Oo(t){return xo(t.replace(/\+/g,"%20"))}function So(t){return`${Co(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Co(t)}=${Co(e[t])}`).join("")}`;var e}const To=/^[^\/()?;=#]+/;function Do(t){const e=t.match(To);return e?e[0]:""}const ko=/^[^=?&#]+/,Po=/^[^?&#]+/;class Eo{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ho([],{}):new ho([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new ho(t,e)),n}parseSegment(){const t=Do(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new po(xo(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Do(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Do(this.remaining);t&&(n=t,this.capture(n))}t[xo(e)]=xo(n)}parseQueryParam(t){const e=function(t){const e=t.match(ko);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Po);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Oo(e),r=Oo(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Do(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");const o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new ho([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ao{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Io(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Io(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Mo(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Mo(t,this._root).map(t=>t.value)}}function Io(t,e){if(t===e.value)return e;for(const n of e.children){const e=Io(t,n);if(e)return e}return null}function Mo(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Mo(t,n);if(i.length)return i.unshift(e),i}return[]}class Uo{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Lo(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ro extends Ao{constructor(t,e){super(t),this.snapshot=e,zo(this,t)}toString(){return this.snapshot.toString()}}function No(t,e){const n=function(t,e){const n=new jo([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Bo("",new Uo(n,[]))}(t,e),i=new dr([new po("",{})]),r=new dr({}),o=new dr({}),s=new dr({}),a=new dr(""),c=new Fo(i,r,s,a,o,"primary",e,n.root);return c.snapshot=n.root,new Ro(new Uo(c,[]),n)}class Fo{constructor(t,e,n,i,r,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,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(m.a)(t=>to(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(m.a)(t=>to(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vo(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class jo{constructor(t,e,n,i,r,o,s,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}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=to(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=to(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bo extends Ao{constructor(t,e){super(e),this.url=t,zo(this,e)}toString(){return qo(this._root)}}function zo(t,e){e.value._routerState=t,e.children.forEach(e=>zo(t,e))}function qo(t){const e=t.children.length>0?` { ${t.children.map(qo).join(", ")} } `:"";return`${t.value}${e}`}function Ho(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,io(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),io(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!io(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),io(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Go(t,e){var n,i;return io(t.params,e.params)&&mo(n=t.url,i=e.url)&&n.every((t,e)=>io(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Go(t.parent,e.parent))}function Jo(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Yo(t){return"object"==typeof t&&null!=t&&t.outlets}function $o(t,e,n,i,r){let o={};return i&&ao(i,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new uo(n.root===t?e:function t(e,n,i){const r={};return ao(e.children,(e,o)=>{r[o]=e===n?i:t(e,n,i)}),new ho(e.segments,r)}(n.root,t,e),o,r)}class Wo{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Jo(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Yo);if(i&&i!==so(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ko{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Qo(t,e,n){if(t||(t=new ho([],{})),0===t.segments.length&&t.hasChildren())return Xo(t,e,n);const i=function(t,e,n){let i=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=n.length)return o;const e=t.segments[r],s=n[i];if(Yo(s))break;const a=""+s,c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!ns(a,c,e))return o;i+=2}else{if(!ns(a,{},e))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new ho(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new ho(t.segments.slice(i.pathIndex),t.children),Xo(e,0,r)}return i.match&&0===r.length?new ho(t.segments,{}):i.match&&!t.hasChildren()?Zo(t,e,n):i.match?Xo(t,0,r):Zo(t,e,n)}function Xo(t,e,n){if(0===n.length)return new ho(t.segments,{});{const i=function(t){return Yo(t[0])?t[0].outlets:{primary:t}}(n),r={};return ao(i,(n,i)=>{null!==n&&(r[i]=Qo(t.children[i],e,n))}),ao(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new ho(t.segments,r)}}function Zo(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r<n.length;){const o=n[r];if(Yo(o)){const t=ts(o.outlets);return new ho(i,t)}if(0===r&&Jo(n[0])){i.push(new po(t.segments[e].path,n[0])),r++;continue}const s=Yo(o)?o.outlets.primary:""+o,a=r<n.length-1?n[r+1]:null;s&&a&&Jo(a)?(i.push(new po(s,es(a))),r+=2):(i.push(new po(s,{})),r++)}return new ho(i,{})}function ts(t){const e={};return ao(t,(t,n)=>{null!==t&&(e[n]=Zo(new ho([],{}),0,t))}),e}function es(t){const e={};return ao(t,(t,n)=>e[n]=""+t),e}function ns(t,e,n){return t==n.path&&io(e,n.parameters)}class is{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Ho(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Lo(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),ao(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=Lo(t),r=t.value.component?n.children:e;ao(i,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=Lo(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new Qr(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Wr(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Ho(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),rs(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function rs(t){Ho(t.value),t.children.forEach(rs)}class os{constructor(t,e){this.routes=t,this.module=e}}function ss(t){return"function"==typeof t}function as(t){return t instanceof uo}const cs=Symbol("INITIAL_VALUE");function ls(){return Object(Oi.a)(t=>vr(...t.map(t=>t.pipe(li(1),Pr(cs)))).pipe(pi((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==cs)return t;if(i===cs&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||as(i))return i}return t},t)},cs),d(t=>t!==cs),Object(m.a)(t=>as(t)?t:!0===t),li(1)))}class us{constructor(t){this.segmentGroup=t||null}}class ds{constructor(t){this.urlTree=t}}function hs(t){return new a.a(e=>e.error(new us(t)))}function ps(t){return new a.a(e=>e.error(new ds(t)))}function ms(t){return new a.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class fs{constructor(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.z)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(m.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Zi(t=>{if(t instanceof ds)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof us)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(m.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Zi(t=>{if(t instanceof us)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new ho([],{primary:t}):t;return new uo(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(m.a)(t=>new ho([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(s.a)({});const n=[],i=[],r={};return ao(t,(t,o)=>{const s=e(o,t).pipe(Object(m.a)(t=>r[o]=t));"primary"===o?n.push(s):i.push(s)}),s.a.apply(null,n.concat(i)).pipe(oi(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?d((e,n)=>t(e,n,i)):kr.a,bi(1),n?vi(e):Or(()=>new Cr))}(),Object(m.a)(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,r,o){return Object(s.a)(...n).pipe(l(a=>this.expandSegmentAgainstRoute(t,e,n,a,i,r,o).pipe(Zi(t=>{if(t instanceof us)return Object(s.a)(null);throw t}))),Er(t=>!!t),Zi((t,n)=>{if(t instanceof Cr||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,r))return Object(s.a)(new ho([],{}));throw new us(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,r,o,s){return vs(i)!==o?hs(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):hs(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ps(r):this.lineralizeSegments(n,r).pipe(Object(c.a)(n=>{const r=new ho(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:u}=bs(e,i,r);if(!s)return hs(e);const d=this.applyRedirectCommands(a,i.redirectTo,u);return i.redirectTo.startsWith("/")?ps(d):this.lineralizeSegments(i,d).pipe(Object(c.a)(i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),o,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(m.a)(t=>(n._loadedConfig=t,new ho(i,{})))):Object(s.a)(new ho(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=bs(e,n,i);if(!r)return hs(e);const l=i.slice(a);return this.getChildConfig(t,n,i).pipe(Object(c.a)(t=>{const n=t.module,i=t.routes,{segmentGroup:r,slicedSegments:a}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>_s(t,e,n)&&"primary"!==vs(n))}(t,n,i)?{segmentGroup:gs(new ho(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==vs(i)&&(n[vs(i)]=new ho([],{}));return n}(i,new ho(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>_s(t,e,n))}(t,n,i)?{segmentGroup:gs(new ho(t.segments,function(t,e,n,i){const r={};for(const o of n)_s(t,e,o)&&!i[vs(o)]&&(r[vs(o)]=new ho([],{}));return Object.assign(Object.assign({},i),r)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,l,i);return 0===a.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(Object(m.a)(t=>new ho(o,t))):0===i.length&&0===a.length?Object(s.a)(new ho(o,{})):this.expandSegment(n,r,i,a,"primary",!0).pipe(Object(m.a)(t=>new ho(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(s.a)(new os(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(s.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(c.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(m.a)(t=>(e._loadedConfig=t,t))):function(t){return new a.a(e=>e.error(eo(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(s.a)(new os([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>{const r=t.get(i);let o;if(function(t){return t&&ss(t.canLoad)}(r))o=r.canLoad(e,n);else{if(!ss(r))throw new Error("Invalid CanLoad guard");o=r(e,n)}return co(o)});return Object(s.a)(r).pipe(ls(),Object(Ar.a)(t=>{if(!as(t))return;const e=eo(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(m.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(s.a)(n);if(i.numberOfChildren>1||!i.children.primary)return ms(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new uo(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ao(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let o={};return ao(e.children,(e,r)=>{o[r]=this.createSegmentGroup(t,e,n,i)}),new ho(r,o)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function bs(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||no)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function gs(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new ho(t.segments.concat(e.segments),e.children)}return t}function _s(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function vs(t){return t.outlet||"primary"}class ys{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ws{constructor(t,e){this.component=t,this.route=e}}function Cs(t,e,n){const i=t._root;return function t(e,n,i,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Lo(n);return e.children.forEach(e=>{!function(e,n,i,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,a=n?n.value:null,c=i?i.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!mo(t.url,e.url);case"pathParamsOrQueryParamsChange":return!mo(t.url,e.url)||!io(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Go(t,e)||!io(t.queryParams,e.queryParams);case"paramsChange":default:return!Go(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new ys(r)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?c?c.children:null:i,r,o),l&&c&&c.outlet&&c.outlet.isActivated&&o.canDeactivateChecks.push(new ws(c.outlet.component,a))}else a&&Os(n,c,o),o.canActivateChecks.push(new ys(r)),t(e,null,s.component?c?c.children:null:i,r,o)}(e,s[e.value.outlet],i,r.concat([e.value]),o),delete s[e.value.outlet]}),ao(s,(t,e)=>Os(t,i.getContext(e),o)),o}(i,e?e._root:null,n,[i.value])}function xs(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function Os(t,e,n){const i=Lo(t),r=t.value;ao(i,(t,i)=>{Os(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new ws(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Ss(t,e){return null!==t&&e&&e(new Kr(t)),Object(s.a)(!0)}function Ts(t,e){return null!==t&&e&&e(new $r(t)),Object(s.a)(!0)}function Ds(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(s.a)(!0);const r=i.map(i=>xr(()=>{const r=xs(i,e,n);let o;if(function(t){return t&&ss(t.canActivate)}(r))o=co(r.canActivate(e,t));else{if(!ss(r))throw new Error("Invalid CanActivate guard");o=co(r(e,t))}return o.pipe(Er())}));return Object(s.a)(r).pipe(ls())}function ks(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>xr(()=>{const r=e.guards.map(r=>{const o=xs(r,e.node,n);let s;if(function(t){return t&&ss(t.canActivateChild)}(o))s=co(o.canActivateChild(i,t));else{if(!ss(o))throw new Error("Invalid CanActivateChild guard");s=co(o(i,t))}return s.pipe(Er())});return Object(s.a)(r).pipe(ls())}));return Object(s.a)(r).pipe(ls())}class Ps{}class Es{constructor(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){try{const t=Ms(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new jo([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Uo(n,e),r=new Bo(this.url,i);return this.inheritParamsAndData(r._root),Object(s.a)(r)}catch(t){return new a.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Vo(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=fo(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const o of t)try{return this.processSegmentAgainstRoute(o,e,n,i)}catch(r){if(!(r instanceof Ps))throw r}if(this.noLeftoversInUrl(e,n,i))return[];throw new Ps}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new Ps;if((t.outlet||"primary")!==i)throw new Ps;let r,o=[],s=[];if("**"===t.path){const o=n.length>0?so(n).parameters:{};r=new jo(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rs(t),i,t.component,t,As(e),Is(e)+n.length,Ns(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ps;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||no)(n,t,e);if(!i)throw new Ps;const r={};ao(i.posParams,(t,e)=>{r[e]=t.path});const o=i.consumed.length>0?Object.assign(Object.assign({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o}}(e,t,n);o=a.consumedSegments,s=n.slice(a.lastChild),r=new jo(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rs(t),i,t.component,t,As(e),Is(e)+o.length,Ns(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=Ms(e,o,s,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Uo(r,t)]}if(0===a.length&&0===l.length)return[new Uo(r,[])];const u=this.processSegment(a,c,l,"primary");return[new Uo(r,u)]}}function As(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Is(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ms(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some(n=>Us(t,e,n)&&"primary"!==Ls(n))}(t,n,i)){const r=new ho(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&"primary"!==Ls(o)){const n=new ho([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[Ls(o)]=n}return r}(t,e,i,new ho(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Us(t,e,n))}(t,n,i)){const o=new ho(t.segments,function(t,e,n,i,r,o){const s={};for(const a of i)if(Us(t,n,a)&&!r[Ls(a)]){const n=new ho([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Ls(a)]=n}return Object.assign(Object.assign({},r),s)}(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new ho(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Us(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ls(t){return t.outlet||"primary"}function Rs(t){return t.data||{}}function Ns(t){return t.resolve||{}}function Fs(t){return function(e){return e.pipe(Object(Oi.a)(e=>{const n=t(e);return n?Object(Wi.a)(n).pipe(Object(m.a)(()=>e)):Object(Wi.a)([e])}))}}class Vs extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let js=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i.Pb(0,"router-outlet")},directives:function(){return[ra]},encapsulation:2}),t})();function Bs(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];zs(i,qs(e,i))}}function zs(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Bs(t.children,e)}function qs(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Hs(t){const e=t.children&&t.children.map(Hs),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=js),n}const Gs=new i.s("ROUTES");class Js{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(m.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new os(oo(i.injector.get(Gs)).map(Hs),i)}))}loadModuleFactory(t){return"string"==typeof t?Object(Wi.a)(this.loader.load(t)):co(t()).pipe(Object(c.a)(t=>t instanceof i.x?Object(s.a)(t):Object(Wi.a)(this.compiler.compileModuleAsync(t))))}}class Ys{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new $s,this.attachRef=null}}class $s{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Ys,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ws{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Ks(t){throw t}function Qs(t,e,n){return e.parse("/")}function Xs(t,e){return Object(s.a)(null)}let Zs=(()=>{class t{constructor(t,e,n,r,o,s,a,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new lr.a,this.errorHandler=Ks,this.malformedUriErrorHandler=Qs,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Xs,afterPreactivation:Xs},this.urlHandlingStrategy=new Ws,this.routeReuseStrategy=new Vs,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(i.z),this.console=o.get(i.cb);const l=o.get(i.B);this.isNgZoneEnabled=l instanceof i.B,this.resetConfig(c),this.currentUrlTree=new uo(new ho([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Js(s,a,t=>this.triggerEvent(new Jr(t)),t=>this.triggerEvent(new Yr(t))),this.routerState=No(this.currentUrlTree,this.rootComponentType),this.transitions=new dr({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(t){const e=this.events;return t.pipe(d(t=>0!==t.id),Object(m.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(Oi.a)(t=>{let n=!1,i=!1;return Object(s.a)(t).pipe(Object(Ar.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(Oi.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(s.a)(t).pipe(Object(Oi.a)(t=>{const n=this.transitions.getValue();return e.next(new Nr(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?ci.a:[t]}),Object(Oi.a)(t=>Promise.resolve(t)),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(Oi.a)(t=>function(t,e,n,i,r){return new fs(t,e,n,i,r).apply()}(i,r,o,t.extractedUrl,a).pipe(Object(m.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(Ar.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return function(o){return o.pipe(Object(c.a)(o=>function(t,e,n,i,r="emptyOnly",o="legacy"){return new Es(t,e,n,i,r,o).recognize()}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),i,r).pipe(Object(m.a)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(Ar.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(Ar.a)(t=>{const n=new Br(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=t,c=new Nr(n,this.serializeUrl(i),r,o);e.next(c);const l=No(i,this.rootComponentType).snapshot;return Object(s.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),ci.a}),Fs(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})}),Object(Ar.a)(t=>{const e=new zr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(m.a)(t=>Object.assign(Object.assign({},t),{guards:Cs(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(c.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=n;return 0===a.length&&0===o.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(Wi.a)(t).pipe(Object(c.a)(t=>function(t,e,n,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(o=>{const s=xs(o,e,r);let a;if(function(t){return t&&ss(t.canDeactivate)}(s))a=co(s.canDeactivate(t,e,n,i));else{if(!ss(s))throw new Error("Invalid CanDeactivate guard");a=co(s(t,e,n,i))}return a.pipe(Er())});return Object(s.a)(a).pipe(ls())}(t.component,t.route,n,e,i)),Er(t=>!0!==t,!0))}(a,i,r,t).pipe(Object(c.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(Wi.a)(e).pipe(l(e=>Object(Wi.a)([Ts(e.route.parent,i),Ss(e.route,i),ks(t,e.path,n),Ds(t,e.route,n)]).pipe(oi(),Er(t=>!0!==t,!0))),Er(t=>!0!==t,!0))}(i,o,t,e):Object(s.a)(n)),Object(m.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(Ar.a)(t=>{if(as(t.guardsResult)){const e=eo(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(Ar.a)(t=>{const e=new qr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),d(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Vr(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Fs(t=>{if(t.guards.canActivateChecks.length)return Object(s.a)(t).pipe(Object(Ar.a)(t=>{const e=new Hr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(Oi.a)(t=>{let n=!1;return Object(s.a)(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(t){return t.pipe(Object(c.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(s.a)(t);let o=0;return Object(Wi.a)(n).pipe(l(t=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return Object(s.a)({});const o={};return Object(Wi.a)(r).pipe(Object(c.a)(r=>function(t,e,n,i){const r=xs(t,e,i);return co(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(Object(Ar.a)(t=>{o[r]=t}))),bi(1),Object(c.a)(()=>Object.keys(o).length===r.length?Object(s.a)(o):ci.a))}(t._resolve,t,e,i).pipe(Object(m.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Vo(t,n).resolve),null)))}(t.route,e,i,r)),Object(Ar.a)(()=>o++),bi(1),Object(c.a)(e=>o===n.length?Object(s.a)(t):ci.a))}))}),Object(Ar.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new Vr(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,r}),Object(Ar.a)(t=>{const e=new Gr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Fs(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})}),Object(m.a)(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const r=i.value;r._futureSnapshot=n.value;const o=function(e,n,i){return n.children.map(n=>{for(const r of i.children)if(e.shouldReuseRoute(r.value.snapshot,n.value))return t(e,n,r);return t(e,n)})}(e,n,i);return new Uo(r,o)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;i<e.children.length;++i)t(e.children[i],n.children[i])}(n,t),t}{const i=new Fo(new dr((r=n.value).url),new dr(r.params),new dr(r.queryParams),new dr(r.fragment),new dr(r.data),r.outlet,r.component,r),o=n.children.map(n=>t(e,n));return new Uo(i,o)}}var r}(t,e._root,n?n._root:void 0);return new Ro(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(Ar.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),Object(m.a)(t=>(new is(o,t.targetRouterState,t.currentRouterState,a).activate(r),t))),Object(Ar.a)({next(){n=!0},complete(){n=!0}}),Mr(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new Vr(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Zi(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=as(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new Vr(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new jr(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var r;return ci.a}));var r,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Bs(t),this.config=t.map(Hs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:o,preserveQueryParams:s,queryParamsHandling:a,preserveFragment:c}=e;Object(i.Z)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:o;let d=null;if(a)switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}else d=s?this.currentUrlTree.queryParams:r||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,i,r){if(0===n.length)return $o(e.root,e.root,e,i,r);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Wo(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return ao(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Wo(n,e,i)}(n);if(o.toRoot())return $o(e.root,new ho([],{}),e,i,r);const s=function(t,e,n){if(t.isAbsolute)return new Ko(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Ko(t,t===e.root,0)}const i=Jo(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,o=n;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new Ko(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?Xo(s.segmentGroup,s.index,o.commands):Qo(s.segmentGroup,s.index,o.commands);return $o(s.segmentGroup,a,e,i,r)}(l,this.currentUrlTree,t,d,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(i.Z)()&&this.isNgZoneEnabled&&!i.B.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=as(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(as(t))return lo(this.currentUrlTree,t,e);const n=this.parseUrl(t);return lo(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Fr(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,r){const o=this.getTransition(),s="imperative"!==e&&"imperative"===(null==o?void 0:o.source),a=(this.lastSuccessfulId===o.id||this.currentNavigation?o.rawUrl:o.urlAfterRedirects).toString()===t.toString();if(s&&a)return Promise.resolve(!0);let c,l,u;r?(c=r.resolve,l=r.reject,u=r.promise):u=new Promise((t,e)=>{c=t,l=e});const d=++this.navigationId;return this.setTransition({id:d,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const r=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(r)||e?this.location.replaceState(r,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(r,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.P),i.Yb(bo),i.Yb($s),i.Yb(o.n),i.Yb(i.t),i.Yb(i.y),i.Yb(i.i),i.Yb(void 0))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),ta=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new lr.a,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(i.Z)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:na(this.skipLocationChange),replaceUrl:na(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:na(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:na(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(Fo),i.Zb("tabindex"),i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&i.cc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[i.Bb]}),t})(),ea=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new lr.a,this.subscription=t.events.subscribe(t=>{t instanceof Fr&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(i.Z)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:na(this.skipLocationChange),replaceUrl:na(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!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,preserveQueryParams:na(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:na(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(Fo),i.Ob(o.o))},t.\u0275dir=i.Jb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(i.Xb("href",e.href,i.Bc),i.Eb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[i.Bb]}),t})();function na(t){return""===t||!!t}let ia=(()=>{class t{constructor(t,e,n,i,r,o){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof Fr&&this.update()})}ngAfterContentInit(){Object(Wi.a)([this.links.changes,this.linksWithHrefs.changes,Object(s.a)(null)]).pipe(Object(ri.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(Wi.a)(e).pipe(Object(ri.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(i.l),i.Ob(i.G),i.Ob(i.h),i.Ob(ta,8),i.Ob(ea,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,ta,!0),i.Hb(n,ea,!0)),2&t&&(i.tc(r=i.dc())&&(e.links=r),i.tc(r=i.dc())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i.Bb]}),t})(),ra=(()=>{class t{constructor(t,e,n,r,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.o,this.deactivateEvents=new i.o,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.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 t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new oa(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob($s),i.Ob(i.S),i.Ob(i.j),i.Zb("name"),i.Ob(i.h))},t.\u0275dir=i.Jb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class oa{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Fo?this.route:t===$s?this.childContexts:this.parent.get(t,e)}}class sa{}class aa{preload(t,e){return Object(s.a)(null)}}let ca=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new Js(e,n,e=>t.triggerEvent(new Jr(e)),e=>t.triggerEvent(new Yr(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(d(t=>t instanceof Fr),l(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(i.z);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(Wi.a)(n).pipe(Object(ri.a)(),Object(m.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(c.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Zs),i.Yb(i.y),i.Yb(i.i),i.Yb(i.t),i.Yb(sa))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),la=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,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(t=>{t instanceof Nr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Fr&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Xr&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Xr(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Zs),i.Yb(o.I),i.Yb(void 0))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const ua=new i.s("ROUTER_CONFIGURATION"),da=new i.s("ROUTER_FORROOT_GUARD"),ha=[o.n,{provide:bo,useClass:go},{provide:Zs,useFactory:function(t,e,n,i,r,s,a,c={},l,u){const d=new Zs(null,t,e,n,i,r,s,oo(a));if(l&&(d.urlHandlingStrategy=l),u&&(d.routeReuseStrategy=u),c.errorHandler&&(d.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(d.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(o.Q)();d.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(d.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(d.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(d.relativeLinkResolution=c.relativeLinkResolution),d},deps:[bo,$s,o.n,i.t,i.y,i.i,Gs,ua,[class{},new i.C],[class{},new i.C]]},$s,{provide:Fo,useFactory:function(t){return t.routerState.root},deps:[Zs]},{provide:i.y,useClass:i.M},ca,aa,class{preload(t,e){return e().pipe(Zi(()=>Object(s.a)(null)))}},{provide:ua,useValue:{enableTracing:!1}}];function pa(){return new i.A("Router",Zs)}let ma=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[ha,_a(e),{provide:da,useFactory:ga,deps:[[Zs,new i.C,new i.L]]},{provide:ua,useValue:n||{}},{provide:o.o,useFactory:ba,deps:[o.E,[new i.q(o.a),new i.C],ua]},{provide:la,useFactory:fa,deps:[Zs,o.I,ua]},{provide:sa,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:aa},{provide:i.A,multi:!0,useFactory:pa},[va,{provide:i.d,multi:!0,useFactory:ya,deps:[va]},{provide:Ca,useFactory:wa,deps:[va]},{provide:i.b,multi:!0,useExisting:Ca}]]}}static forChild(e){return{ngModule:t,providers:[_a(e)]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(da,8),i.Yb(Zs,8))}}),t})();function fa(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new la(t,e,n)}function ba(t,e,n={}){return n.useHash?new o.h(t,e):new o.C(t,e)}function ga(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function _a(t){return[{provide:i.a,multi:!0,useValue:t},{provide:Gs,multi:!0,useValue:t}]}let va=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new lr.a}appInitializer(){return this.injector.get(o.m,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Zs),i=this.injector.get(ua);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(ua),n=this.injector.get(ca),r=this.injector.get(la),o=this.injector.get(Zs),s=this.injector.get(i.g);t===s.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.t))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();function ya(t){return t.appInitializer.bind(t)}function wa(t){return t.bootstrapListener.bind(t)}const Ca=new i.s("Router Initializer");let xa=(()=>{class t{constructor(t,e){this.keycloakService=t,this.router=e}canActivate(t,e){return!!this.keycloakService.authenticated()||(this.keycloakService.login(),!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(cr),i.Yb(Zs))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Oa=ma.forRoot([{path:"state",redirectTo:"/corporate/pv/documents/upload-files"}],{useHash:!0,onSameUrlNavigation:"reload"});let Sa=(()=>{class t{constructor(t){this.kcSvc=t,this.title="WebCoreFrontEnd"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cr))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-root"]],decls:1,vars:0,template:function(t,e){1&t&&i.Pb(0,"router-outlet")},directives:[ra],styles:[""]}),t})();const Ta=new i.s("NgValueAccessor"),Da={provide:Ta,useExisting:Object(i.X)(()=>ka),multi:!0};let ka=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.cc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[i.Cb([Da])]}),t})();const Pa={provide:Ta,useExisting:Object(i.X)(()=>Aa),multi:!0},Ea=new i.s("CompositionEventMode");let Aa=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(o.Q)()?Object(o.Q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l),i.Ob(Ea,8))},t.\u0275dir=i.Jb({type:t,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(t,e){1&t&&i.cc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[i.Cb([Pa])]}),t})(),Ia=(()=>{class t{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}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t}),t})(),Ma=(()=>{class t extends Ia{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Ua(e||t)},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const Ua=i.Wb(Ma);class La extends Ia{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class Ra{constructor(t){this._cd=t}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}}let Na=(()=>{class t extends Ra{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(La,2))},t.\u0275dir=i.Jb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Gb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.Ab]}),t})(),Fa=(()=>{class t extends Ra{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ma,2))},t.\u0275dir=i.Jb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Gb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[i.Ab]}),t})();function Va(t){return null==t||0===t.length}function ja(t){return null!=t&&"number"==typeof t.length}const Ba=new i.s("NgValidators"),za=new i.s("NgAsyncValidators"),qa=/^(?=.{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 Ha{static min(t){return e=>{if(Va(e.value)||Va(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(Va(e.value)||Va(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Va(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Va(t.value)||qa.test(t.value)?null:{email:!0}}static minLength(t){return e=>Va(e.value)||!ja(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>ja(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return Ha.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Va(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Ga);return 0==e.length?null:function(t){return Ya($a(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Ga);return 0==e.length?null:function(t){return Ki($a(t,e).map(Ja)).pipe(Object(m.a)(Ya))}}}function Ga(t){return null!=t}function Ja(t){const e=Object(i.vb)(t)?Object(Wi.a)(t):t;return Object(i.ub)(e),e}function Ya(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function $a(t,e){return e.map(e=>e(t))}function Wa(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const Ka={provide:Ta,useExisting:Object(i.X)(()=>Qa),multi:!0};let Qa=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.cc("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Cb([Ka])]}),t})();const Xa={provide:Ta,useExisting:Object(i.X)(()=>tc),multi:!0};let Za=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),tc=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(La),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l),i.Ob(Za),i.Ob(i.t))},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.cc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Cb([Xa])]}),t})();const ec={provide:Ta,useExisting:Object(i.X)(()=>nc),multi:!0};let nc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.cc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Cb([ec])]}),t})();const ic={provide:Ta,useExisting:Object(i.X)(()=>oc),multi:!0};function rc(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let oc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=rc(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&i.cc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.Cb([ic])]}),t})(),sc=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(rc(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.G),i.Ob(oc,9))},t.\u0275dir=i.Jb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const ac={provide:Ta,useExisting:Object(i.X)(()=>lc),multi:!0};function cc(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let lc=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const i=t.item(e),r=this._getOptionValue(i.value);n.push(r)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t.item(e);if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&i.cc("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.Cb([ac])]}),t})(),uc=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(cc(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(cc(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.G),i.Ob(lc,9))},t.\u0275dir=i.Jb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function dc(t,e){return[...e.path,t]}function hc(t,e){t.validator=Ha.compose([t.validator,e.validator]),t.asyncValidator=Ha.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&pc(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&pc(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function pc(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function mc(t,e){t.validator=Ha.compose([t.validator,e.validator]),t.asyncValidator=Ha.composeAsync([t.asyncValidator,e.asyncValidator])}function fc(t){return null!=t?Ha.compose(Wa(t)):null}function bc(t){return null!=t?Ha.composeAsync(Wa(t)):null}function gc(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const _c=[ka,nc,Qa,oc,lc,tc];function vc(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function yc(t,e){if(!e)return null;Array.isArray(e);let n=void 0,i=void 0,r=void 0;return e.forEach(t=>{var e;t.constructor===Aa?n=t:(e=t,_c.some(t=>e.constructor===t)?i=t:r=t)}),r||i||n||null}function wc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Cc(t,e,n,r){Object(i.Z)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function xc(t){return(Dc(t)?t.validators:t)||null}function Oc(t){return Array.isArray(t)?fc(t):t||null}function Sc(t,e){return(Dc(e)?e.asyncValidators:t)||null}function Tc(t){return Array.isArray(t)?bc(t):t||null}function Dc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class kc{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Oc(this._rawValidators),this._composedAsyncValidatorFn=Tc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}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(t){this._rawValidators=t,this._composedValidatorFn=Oc(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Tc(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;const e=Ja(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof Ec?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof Ac&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.o,this.statusChanges=new i.o}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Dc(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Pc extends kc{constructor(t=null,e,n){super(xc(e),Sc(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Ec extends kc{constructor(t,e,n){super(xc(e),Sc(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Pc?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Ac extends kc{constructor(t,e,n){super(xc(e),Sc(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Pc?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){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(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Ic={provide:Ma,useExisting:Object(i.X)(()=>Uc)},Mc=(()=>Promise.resolve(null))();let Uc=(()=>{class t extends Ma{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new Ec({},fc(t),bc(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Mc.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),hc(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Mc.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),wc(this._directives,t)})}addFormGroup(t){Mc.then(()=>{const e=this._findContainer(t.path),n=new Ec({});mc(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Mc.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Mc.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,vc(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ba,10),i.Ob(za,10))},t.\u0275dir=i.Jb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.cc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([Ic]),i.Ab]}),t})(),Lc=(()=>{class t extends Ma{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return dc(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fc(this._validators)}get asyncValidator(){return bc(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Rc(e||t)},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const Rc=i.Wb(Lc),Nc={provide:Ma,useExisting:Object(i.X)(()=>Fc)};let Fc=(()=>{class t extends Lc{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ma,5),i.Ob(Ba,10),i.Ob(za,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.Cb([Nc]),i.Ab]}),t})();const Vc={provide:La,useExisting:Object(i.X)(()=>Bc)},jc=(()=>Promise.resolve(null))();let Bc=(()=>{class t extends La{constructor(t,e,n,r){super(),this.control=new Pc,this._registered=!1,this.update=new i.o,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=yc(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),gc(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?dc(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fc(this._rawValidators)}get asyncValidator(){return bc(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){hc(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(t){jc.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;jc.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ma,9),i.Ob(Ba,10),i.Ob(za,10),i.Ob(Ta,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Cb([Vc]),i.Ab,i.Bb]}),t})(),zc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const qc=new i.s("NgModelWithFormControlWarning"),Hc={provide:La,useExisting:Object(i.X)(()=>Gc)};let Gc=(()=>{class t extends La{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.o,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=yc(0,n)}set isDisabled(t){}ngOnChanges(e){this._isControlChanged(e)&&(hc(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),gc(e,this.viewModel)&&(Cc(0,t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return fc(this._rawValidators)}get asyncValidator(){return bc(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ba,10),i.Ob(za,10),i.Ob(Ta,10),i.Ob(qc,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Cb([Hc]),i.Ab,i.Bb]}),t._ngModelWarningSentOnce=!1,t})();const Jc={provide:Ma,useExisting:Object(i.X)(()=>Yc)};let Yc=(()=>{class t extends Ma{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.o}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return hc(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){wc(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);mc(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);mc(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,vc(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&hc(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=fc(this._validators);this.form.validator=Ha.compose([this.form.validator,t]);const e=bc(this._asyncValidators);this.form.asyncValidator=Ha.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ba,10),i.Ob(za,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.cc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([Jc]),i.Ab,i.Bb]}),t})();const $c={provide:Ma,useExisting:Object(i.X)(()=>Wc)};let Wc=(()=>{class t extends Lc{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){Xc(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ma,13),i.Ob(Ba,10),i.Ob(za,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.Cb([$c]),i.Ab]}),t})();const Kc={provide:Ma,useExisting:Object(i.X)(()=>Qc)};let Qc=(()=>{class t extends Ma{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=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 dc(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return fc(this._validators)}get asyncValidator(){return bc(this._asyncValidators)}_checkParentType(){Xc(this._parent)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ma,13),i.Ob(Ba,10),i.Ob(za,10))},t.\u0275dir=i.Jb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.Cb([Kc]),i.Ab]}),t})();function Xc(t){return!(t instanceof Wc||t instanceof Yc||t instanceof Qc)}const Zc={provide:La,useExisting:Object(i.X)(()=>tl)};let tl=(()=>{class t extends La{constructor(t,e,n,r,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new i.o,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=yc(0,r)}set isDisabled(t){}ngOnChanges(e){this._added||this._setUpControl(),gc(e,this.viewModel)&&(Cc(0,t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return dc(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return fc(this._rawValidators)}get asyncValidator(){return bc(this._rawAsyncValidators)}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ma,13),i.Ob(Ba,10),i.Ob(za,10),i.Ob(Ta,10),i.Ob(qc,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Cb([Zc]),i.Ab,i.Bb]}),t._ngModelWarningSentOnce=!1,t})();const el={provide:Ba,useExisting:Object(i.X)(()=>il),multi:!0},nl={provide:Ba,useExisting:Object(i.X)(()=>rl),multi:!0};let il=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?Ha.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("required",e.required?"":null)},inputs:{required:"required"},features:[i.Cb([el])]}),t})(),rl=(()=>{class t extends il{validate(t){return this.required?Ha.requiredTrue(t):null}}return t.\u0275fac=function(e){return ol(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("required",e.required?"":null)},features:[i.Cb([nl]),i.Ab]}),t})();const ol=i.Wb(rl),sl={provide:Ba,useExisting:Object(i.X)(()=>al),multi:!0};let al=(()=>{class t{constructor(){this._enabled=!1}set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?Ha.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.Cb([sl])]}),t})();const cl={provide:Ba,useExisting:Object(i.X)(()=>ll),multi:!0};let ll=(()=>{class t{constructor(){this._validator=Ha.nullValidator}ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Ha.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[i.Cb([cl]),i.Bb]}),t})();const ul={provide:Ba,useExisting:Object(i.X)(()=>dl),multi:!0};let dl=(()=>{class t{constructor(){this._validator=Ha.nullValidator}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Ha.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.Cb([ul]),i.Bb]}),t})();const hl={provide:Ba,useExisting:Object(i.X)(()=>pl),multi:!0};let pl=(()=>{class t{constructor(){this._validator=Ha.nullValidator}ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=Ha.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[i.Cb([hl]),i.Bb]}),t})(),ml=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})(),fl=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,r=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new Ec(n,{asyncValidators:r,updateOn:o,validators:i})}control(t,e,n){return new Pc(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new Ac(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Pc||t instanceof Ec||t instanceof Ac?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),bl=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[Za],imports:[ml]}),t})(),gl=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:qc,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[fl,Za],imports:[ml]}),t})();var _l=new i.s("currency.mask.config"),vl=function(){function t(t){this.htmlInputElement=t}return t.prototype.setCursorAt=function(t){if(this.htmlInputElement.setSelectionRange)this.htmlInputElement.focus(),this.htmlInputElement.setSelectionRange(t,t);else if(this.htmlInputElement.createTextRange){var e=this.htmlInputElement.createTextRange();e.collapse(!0),e.moveEnd("character",t),e.moveStart("character",t),e.select()}},t.prototype.updateValueAndCursor=function(t,e,n){this.rawValue=t,this.setCursorAt(n-=e-t.length)},Object.defineProperty(t.prototype,"canInputMoreNumbers",{get:function(){var t=!(this.rawValue.length>=this.htmlInputElement.maxLength&&this.htmlInputElement.maxLength>=0),e=this.inputSelection.selectionStart,n=this.inputSelection.selectionEnd,i=!(e==n||!this.htmlInputElement.value.substring(e,n).match(/[^0-9\u0660-\u0669\u06F0-\u06F9]/)),r="0"==this.htmlInputElement.value.substring(0,1);return t||i||r},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputSelection",{get:function(){var t=0,e=0;if("number"==typeof this.htmlInputElement.selectionStart&&"number"==typeof this.htmlInputElement.selectionEnd)t=this.htmlInputElement.selectionStart,e=this.htmlInputElement.selectionEnd;else{var n=document.selection.createRange();if(n&&n.parentElement()==this.htmlInputElement){var i=this.htmlInputElement.value.length,r=this.htmlInputElement.value.replace(/\r\n/g,"\n"),o=this.htmlInputElement.createTextRange();o.moveToBookmark(n.getBookmark());var s=this.htmlInputElement.createTextRange();s.collapse(!1),o.compareEndPoints("StartToEnd",s)>-1?t=e=i:(t=-o.moveStart("character",-i),t+=r.slice(0,t).split("\n").length-1,o.compareEndPoints("EndToEnd",s)>-1?e=i:(e=-o.moveEnd("character",-i),e+=r.slice(0,e).split("\n").length-1))}}return{selectionStart:t,selectionEnd:e}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.htmlInputElement&&this.htmlInputElement.value},set:function(t){this._storedRawValue=t,this.htmlInputElement&&(this.htmlInputElement.value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storedRawValue",{get:function(){return this._storedRawValue},enumerable:!0,configurable:!0}),t}(),yl=function(){function t(t,e){this.htmlInputElement=t,this.options=e,this.PER_AR_NUMBER=new Map,this.inputManager=new vl(t),this.initialize()}return t.prototype.initialize=function(){this.PER_AR_NUMBER.set("\u06f0","0"),this.PER_AR_NUMBER.set("\u06f1","1"),this.PER_AR_NUMBER.set("\u06f2","2"),this.PER_AR_NUMBER.set("\u06f3","3"),this.PER_AR_NUMBER.set("\u06f4","4"),this.PER_AR_NUMBER.set("\u06f5","5"),this.PER_AR_NUMBER.set("\u06f6","6"),this.PER_AR_NUMBER.set("\u06f7","7"),this.PER_AR_NUMBER.set("\u06f8","8"),this.PER_AR_NUMBER.set("\u06f9","9"),this.PER_AR_NUMBER.set("\u0660","0"),this.PER_AR_NUMBER.set("\u0661","1"),this.PER_AR_NUMBER.set("\u0662","2"),this.PER_AR_NUMBER.set("\u0663","3"),this.PER_AR_NUMBER.set("\u0664","4"),this.PER_AR_NUMBER.set("\u0665","5"),this.PER_AR_NUMBER.set("\u0666","6"),this.PER_AR_NUMBER.set("\u0667","7"),this.PER_AR_NUMBER.set("\u0668","8"),this.PER_AR_NUMBER.set("\u0669","9")},t.prototype.addNumber=function(t){this.rawValue||(this.rawValue=this.applyMask(!1,"0"));var e=String.fromCharCode(t),n=this.inputSelection.selectionStart,i=this.inputSelection.selectionEnd;this.rawValue=this.rawValue.substring(0,n)+e+this.rawValue.substring(i,this.rawValue.length),this.updateFieldValue(n+1)},t.prototype.applyMask=function(t,e){var n=this.options,i=n.allowNegative,r=n.decimal,o=n.precision,s=n.prefix,a=n.suffix,c=n.thousands,l=(e=t?new Number(e).toFixed(o):e).replace(/[^0-9\u0660-\u0669\u06F0-\u06F9]/g,"");if(!l)return"";var u=l.slice(0,l.length-o).replace(/^\u0660*/g,"").replace(/^\u06F0*/g,"").replace(/^0*/g,"").replace(/\B(?=([0-9\u0660-\u0669\u06F0-\u06F9]{3})+(?![0-9\u0660-\u0669\u06F0-\u06F9]))/g,c);c&&u.startsWith(c)&&(u=u.substring(1)),""==u&&(u="0");var d=u,h=l.slice(l.length-o);o>0&&(d+=r+h);var p=0==parseInt(u)&&(0==parseInt(h)||""==h);return(e.indexOf("-")>-1&&i&&!p?"-":"")+s+d+a},t.prototype.clearMask=function(t){if(this.isNullable()&&""===t)return null;var e=(t||"0").replace(this.options.prefix,"").replace(this.options.suffix,"");return this.options.thousands&&(e=e.replace(new RegExp("\\"+this.options.thousands,"g"),"")),this.options.decimal&&(e=e.replace(this.options.decimal,".")),this.PER_AR_NUMBER.forEach((function(t,n){var i=new RegExp(n,"g");e=e.replace(i,t)})),parseFloat(e)},t.prototype.changeToNegative=function(){this.options.allowNegative&&""!=this.rawValue&&"-"!=this.rawValue.charAt(0)&&0!=this.value&&(this.rawValue="-"+this.rawValue)},t.prototype.changeToPositive=function(){this.rawValue=this.rawValue.replace("-","")},t.prototype.removeNumber=function(t){if(this.isNullable()&&0==this.value)this.rawValue=null;else{var e=this.inputSelection.selectionEnd,n=this.inputSelection.selectionStart;n>this.rawValue.length-this.options.suffix.length&&(e=this.rawValue.length-this.options.suffix.length,n=this.rawValue.length-this.options.suffix.length);var i=this.rawValue.substr(n-1,1).match(/\d/)?0:-1;(8!=t||n-1!=0||this.rawValue.substr(n,1).match(/\d/))&&(46!=t&&63272!=t||0!==n||this.rawValue.substr(n+1,1).match(/\d/))||(i=1),e=46==t||63272==t?e+1:e,this.rawValue=this.rawValue.substring(0,n=8==t?n-1:n)+this.rawValue.substring(e,this.rawValue.length),this.updateFieldValue(n+i)}},t.prototype.updateFieldValue=function(t){var e=this.applyMask(!1,this.rawValue||"");this.inputManager.updateValueAndCursor(e,this.rawValue.length,t=null==t?this.rawValue.length:t)},t.prototype.updateOptions=function(t){var e=this.value;this.options=t,this.value=e},t.prototype.prefixLength=function(){return this.options.prefix.length},t.prototype.isNullable=function(){return this.options.nullable},Object.defineProperty(t.prototype,"canInputMoreNumbers",{get:function(){return this.inputManager.canInputMoreNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputSelection",{get:function(){return this.inputManager.inputSelection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rawValue",{get:function(){return this.inputManager.rawValue},set:function(t){this.inputManager.rawValue=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storedRawValue",{get:function(){return this.inputManager.storedRawValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.clearMask(this.rawValue)},set:function(t){this.rawValue=this.applyMask(!0,""+t)},enumerable:!0,configurable:!0}),t}(),wl=function(){function t(t,e){this.inputService=new yl(t,e)}return t.prototype.handleCut=function(t){var e=this;setTimeout((function(){e.inputService.updateFieldValue(),e.setValue(e.inputService.value),e.onModelChange(e.inputService.value)}),0)},t.prototype.handleInput=function(t){var e=this.inputService.rawValue.charCodeAt(this.inputService.rawValue.length-1),n=this.inputService.rawValue.length,i=this.inputService.inputSelection.selectionEnd,r=this.inputService.storedRawValue.length;if(this.inputService.rawValue=this.inputService.storedRawValue,n==i&&1==Math.abs(n-r)){if(n<r&&this.inputService.removeNumber(8),n>r)switch(e){case 43:this.inputService.changeToPositive();break;case 45:this.inputService.changeToNegative();break;default:if(!this.inputService.canInputMoreNumbers)return;this.inputService.addNumber(e)}this.setCursorPosition(t),this.onModelChange(this.inputService.value)}else this.setCursorPosition(t)},t.prototype.handleKeydown=function(t){var e=t.which||t.charCode||t.keyCode;if(8==e||46==e||63272==e){t.preventDefault();var n=Math.abs(this.inputService.inputSelection.selectionEnd-this.inputService.inputSelection.selectionStart);0==n&&(this.inputService.removeNumber(e),this.onModelChange(this.inputService.value)),n>=this.inputService.rawValue.length-this.inputService.prefixLength()&&this.clearValue()}},t.prototype.clearValue=function(){this.setValue(this.inputService.isNullable()?null:0),this.onModelChange(this.inputService.value)},t.prototype.handleKeypress=function(t){var e=t.which||t.charCode||t.keyCode;if(97!==e||!t.ctrlKey){switch(e){case void 0:case 9:case 13:case 37:case 39:return;case 43:this.inputService.changeToPositive();break;case 45:this.inputService.changeToNegative();break;default:this.inputService.canInputMoreNumbers&&(Math.abs(this.inputService.inputSelection.selectionEnd-this.inputService.inputSelection.selectionStart)==this.inputService.rawValue.length&&this.setValue(0),this.inputService.addNumber(e))}t.preventDefault(),this.onModelChange(this.inputService.value)}},t.prototype.handlePaste=function(t){var e=this;setTimeout((function(){e.inputService.updateFieldValue(),e.setValue(e.inputService.value),e.onModelChange(e.inputService.value)}),1)},t.prototype.updateOptions=function(t){this.inputService.updateOptions(t)},t.prototype.getOnModelChange=function(){return this.onModelChange},t.prototype.setOnModelChange=function(t){this.onModelChange=t},t.prototype.getOnModelTouched=function(){return this.onModelTouched},t.prototype.setOnModelTouched=function(t){this.onModelTouched=t},t.prototype.setValue=function(t){this.inputService.value=t},t.prototype.setCursorPosition=function(t){setTimeout((function(){t.target.setSelectionRange(t.target.value.length,t.target.value.length)}),0)},t}(),Cl={provide:Ta,useExisting:Object(i.X)((function(){return xl})),multi:!0},xl=function(){function t(t,e,n){this.currencyMaskConfig=t,this.elementRef=e,this.keyValueDiffers=n,this.options={},this.optionsTemplate={align:"right",allowNegative:!0,allowZero:!0,decimal:".",precision:2,prefix:"$ ",suffix:"",thousands:",",nullable:!1},t&&(this.optionsTemplate=t),this.keyValueDiffer=n.find({}).create()}return t.prototype.ngAfterViewInit=function(){this.elementRef.nativeElement.style.textAlign=this.options?this.options.align:this.optionsTemplate.align},t.prototype.ngDoCheck=function(){this.keyValueDiffer.diff(this.options)&&(this.elementRef.nativeElement.style.textAlign=this.options.align?this.options.align:this.optionsTemplate.align,this.inputHandler.updateOptions(Object.assign({},this.optionsTemplate,this.options)))},t.prototype.ngOnInit=function(){this.inputHandler=new wl(this.elementRef.nativeElement,Object.assign({},this.optionsTemplate,this.options))},t.prototype.handleBlur=function(t){this.inputHandler.getOnModelTouched().apply(t)},t.prototype.handleCut=function(t){this.isChromeAndroid()||this.inputHandler.handleCut(t)},t.prototype.handleInput=function(t){this.isChromeAndroid()&&this.inputHandler.handleInput(t)},t.prototype.handleKeydown=function(t){this.isChromeAndroid()||this.inputHandler.handleKeydown(t)},t.prototype.handleKeypress=function(t){this.isChromeAndroid()||this.inputHandler.handleKeypress(t)},t.prototype.handlePaste=function(t){this.isChromeAndroid()||this.inputHandler.handlePaste(t)},t.prototype.isChromeAndroid=function(){return/chrome/i.test(navigator.userAgent)&&/android/i.test(navigator.userAgent)},t.prototype.registerOnChange=function(t){this.inputHandler.setOnModelChange(t)},t.prototype.registerOnTouched=function(t){this.inputHandler.setOnModelTouched(t)},t.prototype.setDisabledState=function(t){this.elementRef.nativeElement.disabled=t},t.prototype.writeValue=function(t){this.inputHandler.setValue(t)},t.\u0275fac=function(e){return new(e||t)(i.Ob(_l,8),i.Ob(i.l),i.Ob(i.v))},t.\u0275dir=i.Jb({type:t,selectors:[["","currencyMask",""]],hostBindings:function(t,e){1&t&&i.cc("blur",(function(t){return e.handleBlur(t)}))("cut",(function(t){return e.handleCut(t)}))("input",(function(t){return e.handleInput(t)}))("keydown",(function(t){return e.handleKeydown(t)}))("keypress",(function(t){return e.handleKeypress(t)}))("paste",(function(t){return e.handlePaste(t)}))},inputs:{options:"options"},features:[i.Cb([Cl])]}),t}(),Ol=function(){function t(){}return t.forRoot=function(e){return{ngModule:t,providers:[{provide:_l,useValue:e}]}},t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,bl]]}),t}();let Sl=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-footer-private"]],decls:17,vars:0,consts:[[1,"footer"],[1,"container"],[1,"row"],[1,"col"],[1,"nav","justify-content-center"],[1,"nav-item"],["href","#",1,"nav-link","active"],["href","#",1,"nav-link"],[1,"row","text-center"]],template:function(t,e){1&t&&(i.Ub(0,"footer",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Ub(4,"ul",4),i.Ub(5,"li",5),i.Ub(6,"a",6),i.Lc(7,"T\xe9rminos y Condiciones"),i.Tb(),i.Tb(),i.Ub(8,"li",5),i.Ub(9,"a",7),i.Lc(10,"Pol\xedtica de privacidad"),i.Tb(),i.Tb(),i.Ub(11,"li",5),i.Ub(12,"a",7),i.Lc(13,"Preguntas frecuentes"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(14,"div",8),i.Ub(15,"div",3),i.Lc(16,"Copyright \xa9 2020. Todos los derechos reservados."),i.Tb(),i.Tb(),i.Tb(),i.Tb())},styles:[".footer[_ngcontent-%COMP%]{border-top:1px solid rgba(38,82,118,.085);padding:1.5rem 0;font-size:12px}.footer[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{color:#8a8d90;padding:.2rem 1rem}.footer[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{border-right:1px solid #8a8d90}.footer[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]:last-child{border-right:none}@media (max-width:576px){.cnt-avatar-header[_ngcontent-%COMP%]{min-height:56px;min-width:auto}.mat-button[_ngcontent-%COMP%]{padding:0}.mat-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:0}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{margin:0 auto}}@media (max-width:768px){.footer[_ngcontent-%COMP%]{margin-bottom:76px}}"]}),t})();class Tl{}var Dl=n("z6cu"),kl=n("qgXg"),Pl=n("pxpQ"),El=n("Ylt2");class Al extends lr.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new Il(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,r=n.length;let o;if(this.closed)throw new ur.a;if(this.isStopped||this.hasError?o=Ir.a.EMPTY:(this.observers.push(t),o=new El.a(this,t)),i&&t.add(t=new Pl.a(t,i)),e)for(let s=0;s<r&&!t.closed;s++)t.next(n[s]);else for(let s=0;s<r&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),o}_getNow(){return(this.scheduler||kl.a).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let o=0;for(;o<r&&!(t-i[o].time<n);)o++;return r>e&&(o=Math.max(o,r-e)),o>0&&i.splice(0,o),i}}class Il{constructor(t,e){this.time=t,this.value=e}}function Ml(t,e,n){let i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let r,o,s=0,a=!1,c=!1;return function(l){let u;s++,!r||a?(a=!1,r=new Al(t,e,i),u=r.subscribe(this),o=l.subscribe({next(t){r.next(t)},error(t){a=!0,r.error(t)},complete(){c=!0,o=void 0,r.complete()}}),c&&(o=void 0)):u=r.subscribe(this),this.add(()=>{s--,u.unsubscribe(),u=void 0,o&&!c&&n&&0===s&&(o.unsubscribe(),o=void 0,r=void 0)})}}(i))}const Ul=r.apiEndpoint+"saveprocesssign",Ll=r.apiEndpoint+"getsignatureprocesses",Rl=r.apiEndpoint+"testaments",Nl=r.apiEndpoint+"deletesignatureprocess",Fl=r.apiEndpoint+"senddocstosign",Vl=r.apiEndpoint+"massive-signature/sendmessage",jl=r.apiEndpoint+"invitationsign",Bl=r.apiEndpoint+"signaturecategory/",zl=r.apiEndpoint+"getfiles",ql=r.apiEndpoint+"files",Hl=r.apiEndpoint+"feeder/",Gl=r.apiEndpoint+"billing/",Jl=r.apiEndpoint+"questions/",Yl=r.apiEndpoint+"registrations-invitations/",$l=r.apiEndpoint+"notary/",Wl=r.apiEndpoint+"enterprise/",Kl=r.apiEndpoint+"contacts-enterprise/",Ql=r.apiEndpoint+"users/",Xl=r.apiEndpoint+"roles/",Zl=r.apiEndpoint+"geography/",tu=r.apiEndpoint+"authentication-by-mati/",eu=r.apiEndpoint+"authentication-by-veriff/",nu=r.apiEndpoint+"authentication-code-by-email/",iu=r.apiEndpoint+"authentication-code-by-sms/",ru=r.apiEndpoint+"enrollment/",ou=r.apiEndpoint+"userScheduling/",su=r.apiEndpoint+"reject-process/",au=r.apiEndpoint+"process-status/",cu=r.apiEndpoint+"paymentGatewayCredibanco/",lu=r.apiUploadFilesIdentityValidation,uu=r.identityManagementHost+"/realms/NotariaSignXCore/protocol/openid-connect/token",du=r.identityManagementHost+"/admin/realms/NotariaSignXCore/users",hu=r.apiEndpoint+"signerdocuser";var pu=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};let mu,fu=(()=>{class t{constructor(t){this.httpClient=t}createUser(t,e){const n={headers:(new g).append("Authorization","bearer "+e).append("Content-type","application/json")};return this.httpClient.post(du,t,n).pipe(Object(m.a)(e=>this.httpClient.get(du+"?email="+t.email,n).pipe(Object(m.a)(t=>this.httpClient.put(du+"/"+t[0].id+"/send-verify-email",null,n).subscribe()))))}getAuthTokenObservable(){const t=(new y).append("client_id","admin-cli").append("username","x8Cjrp8qAX6NJFDD").append("password","xA33jySzuhESmubF").append("grant_type","password"),e=(new g).append("Content-Type","application/x-www-form-urlencoded"),n={headers:e};return console.log("getAuthTokenObservable",t,e,uu),this.httpClient.post(uu,t,n).pipe(Ml())}getAuthToken(){return pu(this,void 0,void 0,(function*(){const t=(new y).append("client_id","admin-cli").append("password","xA33jySzuhESmubF").append("username","x8Cjrp8qAX6NJFDD").append("grant_type","password"),e={headers:(new g).append("Content-Type","application/x-www-form-urlencoded")};return yield this.httpClient.post(uu,t,e).catch(this.handleError).toPromise()}))}getUserInfo(t,e){return pu(this,void 0,void 0,(function*(){const n={headers:(new g).append("Authorization","bearer "+e)};return yield this.httpClient.get(du+"?email="+t,n).catch(this.handleError).toPromise()}))}updateUser(t,e){const n={headers:(new g).append("Authorization","bearer "+e)};return this.httpClient.get(du+"?email="+t.email,n).pipe(Object(m.a)(e=>this.httpClient.put(du+"/"+e[0].id,t,n).subscribe()))}disableUser(t,e,n){const i={headers:(new g).append("Authorization","bearer "+n)};return this.httpClient.get(du+"?email="+t,i).map(t=>{if(void 0!==t[0])return t[0].enabled=e,this.httpClient.put(du+"/"+t[0].id,t[0],i).subscribe()})}validateUserCredentials(t,e){const n=(new y).append("client_id","WebCoreJS").append("username",t).append("password",e).append("grant_type","password"),i=(new g).append("Content-Type","application/x-www-form-urlencoded");return this.httpClient.post(uu,n,{headers:i}).pipe(Ml())}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bu=(()=>{class t{constructor(t){this.http=t}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}extractData(t){return t||{}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),gu=(()=>{class t{constructor(t){this.httpClient=t}CreateCustomer(t){return this.httpClient.post(Hl+"addcustomer",t)}GetCustomer(t){return this.httpClient.get(Hl+"get/getcustomer/"+t)}GetCurrentBalance(t){return this.httpClient.get(Hl+"get/getbalance/"+t)}GetOperationPrice(t){return this.httpClient.post(Hl+"getprice",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();try{mu="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(HX){mu=!1}let _u,vu=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(o.L)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!mu)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.D))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.D))},token:t,providedIn:"root"}),t})(),yu=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();const wu=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Cu(){if(_u)return _u;if("object"!=typeof document||!document)return _u=new Set(wu),_u;let t=document.createElement("input");return _u=new Set(wu.filter(e=>(t.setAttribute("type",e),t.type===e))),_u}let xu,Ou,Su;function Tu(t){return function(){if(null==xu&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>xu=!0}))}finally{xu=xu||!1}return xu}()?t:!!t.capture}function Du(){if("object"!=typeof document||!document)return 0;if(null==Ou){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),i=n.style;i.width="2px",i.height="1px",t.appendChild(n),document.body.appendChild(t),Ou=0,0===t.scrollLeft&&(t.scrollLeft=1,Ou=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return Ou}function ku(t){if(function(){if(null==Su){const t="undefined"!=typeof document?document.head:null;Su=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Su}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Pu(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Eu=n("D0XW");function Au(t,e=Eu.a){return n=>n.lift(new Iu(t,e))}class Iu{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Mu(t,this.dueTime,this.scheduler))}}class Mu extends u.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Uu,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Uu(t){t.debouncedNext()}function Lu(t){return null!=t&&""+t!="false"}function Ru(t,e=0){return Nu(t)?Number(t):e}function Nu(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Fu(t){return Array.isArray(t)?t:[t]}function Vu(t){return null==t?"":"string"==typeof t?t:t+"px"}function ju(t){return t instanceof i.l?t.nativeElement:t}let Bu=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),zu=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=ju(t);return new a.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new lr.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Bu))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Bu))},token:t,providedIn:"root"}),t})(),qu=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new i.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Lu(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Ru(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Au(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zu),i.Ob(i.l),i.Ob(i.B))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Hu=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[Bu]}),t})();function Gu(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let Ju=0;const Yu=new Map;let $u=null,Wu=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Yu.set(e,{messageElement:e,referenceCount:0})):Yu.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Yu.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}$u&&0===$u.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");$u&&this._deleteMessagesContainer(),Yu.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),$u.appendChild(e),Yu.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+Ju++)}_deleteMessageElement(t){const e=Yu.get(t),n=e&&e.messageElement;$u&&n&&$u.removeChild(n),Yu.delete(t)}_createMessagesContainer(){if(!$u){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById("cdk-describedby-message-container");e&&e.parentNode.removeChild(e),$u=this._document.createElement("div"),$u.id="cdk-describedby-message-container",$u.classList.add("cdk-visually-hidden"),$u.setAttribute("aria-hidden",t+""),this._document.body.appendChild($u)}}_deleteMessagesContainer(){$u&&$u.parentNode&&($u.parentNode.removeChild($u),$u=null)}_removeCdkDescribedByReferenceIds(t){const e=Gu(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Yu.get(e);!function(t,e,n){const i=Gu(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=Yu.get(e);n.referenceCount--,function(t,e,n){const i=Gu(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=Gu(t,"aria-describedby"),i=Yu.get(e),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e),i.Yb(vu))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o.e),Object(i.Yb)(vu))},token:t,providedIn:"root"}),t})();class Ku{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new lr.a,this._typeaheadSubscription=Ir.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new lr.a,this.change=new lr.a,t instanceof i.F&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(Ar.a)(t=>this._pressedLetters.push(t)),Au(t),d(()=>this._pressedLetters.length>0),Object(m.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const i=(this._activeItemIndex+n)%e.length,r=e[i];if(!this._skipPredicateFn(r)&&0===r.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(i);break}}this._pressedLetters=[]}),this}withHomeAndEnd(){return this._homeAndEnd=!0,this}setActiveItem(t){const e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&n){this.setNextItemActive();break}return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Pu(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof i.F?this._items.toArray():this._items}}class Qu extends Ku{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class Xu extends Ku{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let Zu=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(HX){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===ed(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),r=ed(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||td(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(vu))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(vu))},token:t,providedIn:"root"}),t})();function td(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function ed(t){if(!td(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class nd{constructor(t,e,n,i,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),Object(i.Z)()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(t)}}let id=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new nd(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Zu),i.Yb(i.B),i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Zu),Object(i.Yb)(i.B),Object(i.Yb)(o.e))},token:t,providedIn:"root"}),t})(),rd=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Lu(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Lu(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(id),i.Ob(o.e))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.Bb]}),t})();"undefined"!=typeof Element&&Element;const od=new i.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),sd=new i.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let ad=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,r;return 1===e.length&&"number"==typeof e[0]?r=e[0]:[i,r]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==r&&n&&(r=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof r&&(this._previousTimeout=setTimeout(()=>this.clear(),r))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(od,8),i.Yb(i.B),i.Yb(o.e),i.Yb(sd,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(od,8),Object(i.Yb)(i.B),Object(i.Yb)(o.e),Object(i.Yb)(sd,8))},token:t,providedIn:"root"}),t})(),cd=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="off"}get politeness(){return this._politeness}set politeness(t){this._politeness="polite"===t||"assertive"===t?t:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(ad),i.Ob(zu),i.Ob(i.B))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function ld(t){return 0===t.buttons}const ud=new i.s("cdk-focus-monitor-default-options"),dd=Tu({passive:!0,capture:!0});let hd=(()=>{class t{constructor(t,e,n,i){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=ld(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=pd(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=pd(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Object(s.a)(null);const n=ju(t),i=ku(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject.asObservable();const o={checkChildren:e,subject:new lr.a,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject.asObservable()}stopMonitoring(t){const e=ju(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const i=ju(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=pd(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==pd(t))return;const i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,dd),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,dd)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,dd),t.addEventListener("mousedown",this._documentMousedownListener,dd),t.addEventListener("touchstart",this._documentTouchstartListener,dd),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,dd),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,dd),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,dd),t.removeEventListener("mousedown",this._documentMousedownListener,dd),t.removeEventListener("touchstart",this._documentTouchstartListener,dd),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.B),i.Yb(vu),i.Yb(o.e,8),i.Yb(ud,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.B),Object(i.Yb)(vu),Object(i.Yb)(o.e,8),Object(i.Yb)(ud,8))},token:t,providedIn:"root"}),t})();function pd(t){return t.composedPath?t.composedPath()[0]:t.target}let md=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new i.o}ngAfterViewInit(){this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(hd))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),fd=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(vu),i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(vu),Object(i.Yb)(o.e))},token:t,providedIn:"root"}),t})(),bd=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(fd))},imports:[[yu,Hu]]}),t})();const gd=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.Y)(o.e)}});let _d=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.o,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(gd,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(gd,8))},token:t,providedIn:"root"}),t})(),vd=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new i.o}get dir(){return this._dir}set dir(t){const e=this._dir,n=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[i.Cb([{provide:_d,useExisting:t}])]}),t})(),yd=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();const wd=new i.R("10.1.3"),Cd=["*",[["mat-option"],["ng-container"]]],xd=["*","mat-option, ng-container"];function Od(t,e){if(1&t&&i.Pb(0,"mat-pseudo-checkbox",3),2&t){const t=i.gc();i.mc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const Sd=["*"];let Td=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),Dd=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const kd=new i.R("10.1.3"),Pd=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ed=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(i.Z)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&kd.full!==wd.full&&console.warn("The Angular Material version ("+kd.full+") does not match the Angular CDK version ("+wd.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(fd),i.Yb(Pd,8),i.Yb(o.e,8))},imports:[[yd],yd]}),t})();function Ad(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Lu(t)}}}function Id(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)}}}function Md(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Lu(t)}}}function Ud(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Ru(t):e}}}function Ld(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new lr.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function Rd(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new a.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const Nd=new i.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(i.Y)(i.w)}});class Fd{constructor(){this._localeChanges=new lr.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const Vd=new i.s("mat-date-formats");let jd;try{jd="undefined"!=typeof Intl}catch(HX){jd=!1}const Bd={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},zd=Gd(31,t=>String(t+1)),qd={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Hd=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Gd(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let Jd=(()=>{class t extends Fd{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(jd){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Gd(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return Bd[t]}getDateNames(){if(jd){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Gd(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return zd}getDayOfWeekNames(t){if(jd){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Gd(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return qd[t]}getYearName(t){if(jd){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(n<1)throw Error(`Invalid date "${n}". Date has to be greater than 0.`);let i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error(`Invalid date "${n}" for month with index "${e}".`);return i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(jd){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(Hd.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Nd,8),i.Yb(vu))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Yd=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:Fd,useClass:Jd}],imports:[[yu]]}),t})();const $d={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Wd=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:Vd,useValue:$d}],imports:[[Yd]]}),t})(),Kd=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Qd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function Xd(t,e,n="mat"){t.changes.pipe(Pr(t)).subscribe(({length:t})=>{Zd(e,n+"-2-line",!1),Zd(e,n+"-3-line",!1),Zd(e,n+"-multi-line",!1),2===t||3===t?Zd(e,`${n}-${t}-line`,!0):t>3&&Zd(e,n+"-multi-line",!0)})}function Zd(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let th=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Ed],Ed]}),t})();class eh{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const nh={enterDuration:450,exitDuration:400},ih=Tu({passive:!0}),rh=["mousedown","touchstart"],oh=["mouseup","mouseleave","touchend","touchcancel"];class sh{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=ju(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},nh),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const o=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}(t,e,i),s=t-i.left,a=e-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-o+"px",l.style.top=a-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const u=new eh(this,l,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,i=Object.assign(Object.assign({},nh),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=ju(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(rh))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(oh),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=ld(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,ih)})})}_removeTriggerEvents(){this._triggerElement&&(rh.forEach(t=>{this._triggerElement.removeEventListener(t,this,ih)}),this._pointerUpEventsRegistered&&oh.forEach(t=>{this._triggerElement.removeEventListener(t,this,ih)}))}}const ah=new i.s("mat-ripple-global-options");let ch=(()=>{class t{constructor(t,e,n,i,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new sh(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(vu),i.Ob(ah,8),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),lh=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Ed,yu],Ed]}),t})(),uh=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Gb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),dh=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();class hh{}const ph=Ad(hh);let mh=0,fh=(()=>{class t extends ph{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+mh++}}return t.\u0275fac=function(e){return bh(e||t)},t.\u0275dir=i.Jb({type:t,inputs:{label:"label"},features:[i.Ab]}),t})();const bh=i.Wb(fh),gh=new i.s("MatOptgroup");let _h=(()=>{class t extends fh{}return t.\u0275fac=function(e){return vh(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Eb("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),i.Gb("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[i.Cb([{provide:gh,useExisting:t}]),i.Ab],ngContentSelectors:xd,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(i.lc(Cd),i.Ub(0,"label",0),i.Lc(1),i.kc(2),i.Tb(),i.kc(3,1)),2&t&&(i.mc("id",e._labelId),i.Db(1),i.Nc("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const vh=i.Wb(_h);let yh=0;class wh{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const Ch=new i.s("MAT_OPTION_PARENT_COMPONENT");let xh=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+yh++,this.onSelectionChange=new i.o,this._stateChanges=new lr.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Lu(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||Pu(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new wh(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(void 0),i.Ob(fh))},t.\u0275dir=i.Jb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Oh=(()=>{class t extends xh{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(Ch,8),i.Ob(gh,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.cc("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(i.Xb("id",e.id),i.Eb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Gb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.Ab],ngContentSelectors:Sd,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(i.lc(),i.Jc(0,Od,1,2,"mat-pseudo-checkbox",0),i.Ub(1,"span",1),i.kc(2),i.Tb(),i.Pb(3,"div",2)),2&t&&(i.mc("ngIf",e.multiple),i.Db(3),i.mc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[o.t,ch,uh],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function Sh(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),o=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===r[o]&&o++;return o}return 0}function Th(t,e,n,i){const r=t*e;return r<n?r:r+e>n+i?Math.max(0,r-i+e):n}let Dh=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[lh,o.c,dh]]}),t})();const kh=new i.s("mat-label-global-options"),Ph=["*",[["mat-toolbar-row"]]],Eh=["*","mat-toolbar-row"];class Ah{constructor(t){this._elementRef=t}}const Ih=Id(Ah);let Mh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),Uh=(()=>{class t extends Ih{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){Object(i.Z)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(t=>!(t.classList&&t.classList.contains("mat-toolbar-row"))).filter(t=>t.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(t=>!(!t.textContent||!t.textContent.trim()))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(vu),i.Ob(o.e))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,Mh,!0),2&t&&i.tc(r=i.dc())&&(e._toolbarRows=r)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&i.Gb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.Ab],ngContentSelectors:Eh,decls:2,vars:0,template:function(t,e){1&t&&(i.lc(Ph),i.kc(0),i.kc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),Lh=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Ed],Ed]}),t})();var Rh=n("7Hc7"),Nh=n("n6bG");function Fh(t,e,n,i){return Object(Nh.a)(n)&&(i=n,n=void 0),i?Fh(t,e,n).pipe(Object(m.a)(t=>Object(Yi.a)(t)?i(...t):i(t))):new a.a(i=>{!function t(e,n,i,r,o){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,o),s=()=>t.removeEventListener(n,i,o)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),s=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),s=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,a=e.length;s<a;s++)t(e[s],n,i,r,o)}r.add(s)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)})}function Vh(t){return e=>e.lift(new jh(t))}class jh{constructor(t){this.notifier=t}call(t,e){const n=new Bh(t),i=Object(Xi.c)(this.notifier,new Xi.a(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class Bh extends Xi.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const zh={provide:i.b,useFactory:function(t,e){return()=>{if(Object(o.L)(e)){const e=Array.from(t.querySelectorAll(`[class*=${qh}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(qh+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[o.e,i.D],multi:!0},qh="flex-layout-";let Hh=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[zh]}),t})();class Gh{constructor(t=!1,e="all",n="",i="",r=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=i,this.priority=r,this.property=""}clone(){return new Gh(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Jh=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const i=this.stylesheet.get(t);i?i.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let i="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(i=t+"")}return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Yh={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},$h=new i.s("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>Yh}),Wh=new i.s("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),Kh=new i.s("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Qh(t,e){return t=t?t.clone():new Gh,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const Xh=["row","column","row-reverse","column-reverse"];function Zh(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let tp=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=i,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new lr.a,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,i=n.shouldCache;let r=this.styleCache.get(t);r&&i||(r=n.buildStyles(t,e),i&&this.styleCache.set(t,r)),this.mru=Object.assign({},r),this.applyStyleToElement(r),n.sideEffect(t,r,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,i]=this.styler.getFlowDirection(t);if(!i&&e){const e=function(t){let[e,n,i]=function(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return Xh.find(t=>t===e)||(e=Xh[0]),"inline"===n&&(n="inline"!==i?i:"",i="inline"),[e,Zh(n),!!i]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){i.bc()},t.\u0275dir=i.Jb({type:t,features:[i.Bb]}),t})();const ep=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],np="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",ip="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",rp="(orientation: portrait) and (min-width: 840px)",op="(orientation: landscape) and (min-width: 1280px)",sp={HANDSET:"(orientation: portrait) and (max-width: 599.9px), (orientation: landscape) and (max-width: 959.9px)",TABLET:`${np} , ${ip}`,WEB:`${rp}, ${op} `,HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599.9px)",TABLET_PORTRAIT:np+" ",WEB_PORTRAIT:""+rp,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959.9px)",TABLET_LANDSCAPE:""+ip,WEB_LANDSCAPE:""+op},ap=[{alias:"handset",priority:2e3,mediaQuery:sp.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:sp.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:sp.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:sp.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:sp.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:sp.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:sp.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:sp.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:sp.WEB_PORTRAIT,overlapping:!0}],cp=/(\.|-|_)/g;function lp(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const up=new i.s("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Object(i.Y)(Kh),e=Object(i.Y)($h),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(i=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=function(t){return t.replace(cp,"|").split("|").map(lp).join("")}(t.alias),t.overlapping=!!t.overlapping)}),i;var i}((e.disableDefaultBps?[]:ep).concat(e.addOrientationBps?ap:[]),n)}});function dp(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function hp(t,e){return(t.priority||0)-(e.priority||0)}let pp=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(hp)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(up))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(up))},token:t,providedIn:"root"}),t})(),mp=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new dr(new Gh(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe(d(n=>!e||t.indexOf(n.mediaQuery)>-1)),i=new a.a(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return Object(ii.a)(i,n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!fp[t]);if(n.length>0){const t=n.join(", ");try{const i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode(`\n/*\n  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n  see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(i),n.forEach(t=>fp[t]=i)}catch(i){console.error(i)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new Gh(e.matches,t)))};let i=this.registry.get(t);i||(i=this.buildMQL(t),i.addListener(e),this.pendingRemoveListenerFns.push(()=>i.removeListener(e)),this.registry.set(t,i)),i.matches&&n.push(new Gh(!0,t))}),n}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Object(o.L)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.B),i.Yb(i.D),i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.B),Object(i.Yb)(i.D),Object(i.Yb)(o.e))},token:t,providedIn:"root"}),t})();const fp={},bp={alias:"print",mediaQuery:"print",priority:1e3};let gp=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new _p,this.deactivations=[]}withPrintQuery(t){return[...t,"print"]}isPrintEvent(t){return t.mediaQuery.startsWith("print")}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(dp)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),Qh(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new Gh(!0,"print"))),t.updateStyles())},n=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(n)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(dp))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(pp),i.Yb($h),i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(pp),Object(i.Yb)($h),Object(i.Yb)(o.e))},token:t,providedIn:"root"}),t})();class _p{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(bp),t.sort(dp),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith("print")}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function vp(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let yp=(()=>{class t{constructor(t,e,n,i){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=i}applyStyleToElement(t,e,n=null){let i={};"string"==typeof e&&(i[e]=n,e=i),i=this.layoutConfig.disableVendorPrefixes?e:vp(e),this._applyMultiValueStyleToElement(i,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:vp(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){let e=this.lookupStyle(t,"flex-direction");return[e||"row",this.lookupInlineStyle(t,"flex-direction")||Object(o.M)(this._platformId)&&this._serverModuleLoaded?e:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Object(o.L)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let i="";return t&&((i=this.lookupInlineStyle(t,e))||(Object(o.L)(this._platformId)?n||(i=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,e)))),i?i.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const i=t[n],r=Array.isArray(i)?i:[i];r.sort();for(let t of r)t=t?t+"":"",Object(o.L)(this._platformId)||!this._serverModuleLoaded?Object(o.L)(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const i=this._readStyleAttribute(t);i[e]=n||"",this._writeStyleAttribute(t,i)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n<t.length;n++){const i=t[n].trim();if(i.length>0){const t=i.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+i);e[i.substr(0,t).trim()]=i.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const i in e)e[i]&&(n+=i+":"+e[i]+";");t.setAttribute("style",n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Jh),i.Yb(Wh),i.Yb(i.D),i.Yb($h))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Jh),Object(i.Yb)(Wh),Object(i.Yb)(i.D),Object(i.Yb)($h))},token:t,providedIn:"root"}),t})();class wp{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}function Cp(t,e="1",n="1"){let i=[e,n,t],r=t.indexOf("calc");if(r>0){i[2]=xp(t.substring(r).trim());let e=t.substr(0,r).trim().split(" ");2==e.length&&(i[0]=e[0],i[1]=e[1])}else if(0==r)i[2]=xp(t.trim());else{let r=t.split(" ");i=3===r.length?r:[e,n,t]}return i}function xp(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let Op=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new lr.a,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=Qh(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(dp),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(dp),this.updateStyles()))}init(t,e,n,i,r=[]){Sp(this.updateMap,t,e,n),Sp(this.clearMap,t,e,i),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,r)}getValue(t,e,n){const i=this.elementMap.get(t);if(i){const t=void 0!==n?i.get(n):this.getActivatedValues(i,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,i){let r=this.elementMap.get(t);if(r){const o=(r.get(i)||new Map).set(e,n);r.set(i,o),this.elementMap.set(t,r)}else r=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,r);const o=this.getValue(t,e);void 0!==o&&this.updateElement(t,e,o)}trackValue(t,e){return this.subject.asObservable().pipe(d(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let i=this.getActivatedValues(t);i&&i.forEach((t,i)=>{this.updateElement(e,i,t),n.delete(i)}),n.forEach(n=>{if(i=this.getActivatedValues(t,n),i){const t=i.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const i=n.get(e);i&&(i(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const i=this.updateMap.get(t);if(i){const r=i.get(e);r&&(r(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const i=this.getActivatedValues(n,e);i&&(e?this.updateElement(t,e,i.get(e)):i.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let i=this.watcherMap.get(t);if(i||(i=new Map,this.watcherMap.set(t,i)),!i.get(e)){const r=Object(ii.a)(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});i.set(e,r)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let i=0;i<this.activatedBreakpoints.length;i++){const n=t.get(this.activatedBreakpoints[i].alias);if(n&&(void 0===e||n.has(e)&&null!=n.get(e)))return n}const n=t.get("");return void 0===e||n&&n.has(e)?n:void 0}observeActivations(){const t=this.breakpoints.items.map(t=>t.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Object(Ar.a)(this.hook.interceptEvents(this)),d(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(mp),i.Yb(pp),i.Yb(gp))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(mp),Object(i.Yb)(pp),Object(i.Yb)(gp))},token:t,providedIn:"root"}),t})();function Sp(t,e,n,i){if(void 0!==i){let r=t.get(e);r||(r=new Map,t.set(e,r)),r.set(n,i)}}const Tp=["row","column","row-reverse","column-reverse"];function Dp(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return Tp.find(t=>t===e)||(e=Tp[0]),"inline"===n&&(n="inline"!==i?i:"",i="inline"),[e,Pp(n),!!i]}function kp(t){let[e]=Dp(t);return e.indexOf("row")>-1}function Pp(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let Ep=(()=>{class t extends wp{buildStyles(t){return function(t){let[e,n,i]=Dp(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,i)}(t)}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})();const Ap=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let Ip=(()=>{class t extends tp{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout",this.styleCache=Up,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(Ep),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})(),Mp=(()=>{class t extends Ip{constructor(){super(...arguments),this.inputs=Ap}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})();const Up=new Map,Lp={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null};let Rp=(()=>{class t extends wp{constructor(t){super(),this._styler=t}buildStyles(t,e){return t.endsWith(Hp)?function(t,e){const[n,i]=t.split(" "),r=t=>"-"+t;let o="0px",s=r(i||n),a="0px";return"rtl"===e?a=r(n):o=r(n),{margin:`0px ${o} ${s} ${a}`}}(t=t.slice(0,t.indexOf(Hp)),e.directionality):{}}sideEffect(t,e,n){const i=n.items;if(t.endsWith(Hp)){const e=function(t,e){const[n,i]=t.split(" ");let r="0px",o="0px";return"rtl"===e?o=n:r=n,{padding:`0px ${r} ${i||n} ${o}`}}(t=t.slice(0,t.indexOf(Hp)),n.directionality);this._styler.applyStyleToElements(e,n.items)}else{const e=i.pop(),r=function(t,e){const n=Gp(e.directionality,e.layout),i=Object.assign({},Lp);return i[n]=t,i}(t,n);this._styler.applyStyleToElements(r,i),this._styler.applyStyleToElements(Lp,[e])}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(yp))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(yp))},token:t,providedIn:"root"}),t})();const Np=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];let Fp=(()=>{class t extends tp{constructor(t,e,n,i,r,o){super(t,r,i,o),this.zone=e,this.directionality=n,this.styleUtils=i,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new lr.a;const s=[this.directionality.change,this.observerSubject.asObservable()];this.init(s),this.marshal.trackValue(this.nativeElement,"layout").pipe(Vh(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){const t=this.nativeElement.children,e=[];for(let n=t.length;n--;)e[n]=t[n];return e}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],Tp.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(t){const e=this.childrenNodes.filter(t=>1===t.nodeType&&this.willDisplay(t)).sort((t,e)=>{const n=+this.styler.lookupStyle(t,"order"),i=+this.styler.lookupStyle(e,"order");return isNaN(n)||isNaN(i)||n===i?0:n>i?1:-1});if(e.length>0){const n=this.directionality.value,i=this.layout;"row"===i&&"rtl"===n?this.styleCache=jp:"row"===i&&"rtl"!==n?this.styleCache=zp:"column"===i&&"rtl"===n?this.styleCache=Bp:"column"===i&&"rtl"!==n&&(this.styleCache=qp),this.addStyles(t,{directionality:n,items:e,layout:i})}}clearStyles(){const t=Object.keys(this.mru).length>0,e=t?"padding":Gp(this.directionality.value,this.layout);t&&super.clearStyles(),this.styleUtils.applyStyleToElements({[e]:""},this.childrenNodes)}willDisplay(t){const e=this.marshal.getValue(t,"show-hide");return!0===e||void 0===e&&"none"!==this.styleUtils.lookupStyle(t,"display")}buildChildObservable(){this.zone.runOutsideAngular(()=>{"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver(t=>{t.some(t=>t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(_d),i.Ob(yp),i.Ob(Rp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})(),Vp=(()=>{class t extends Fp{constructor(){super(...arguments),this.inputs=Np}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm":"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})();const jp=new Map,Bp=new Map,zp=new Map,qp=new Map,Hp=" grid";function Gp(t,e){switch(e){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return"rtl"===t?"margin-left":"margin-right";case"row-reverse":return"rtl"===t?"margin-right":"margin-left";default:return"rtl"===t?"margin-left":"margin-right"}}function Jp(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}let Yp=(()=>{class t extends wp{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[n,i,...r]=t.split(" "),o=r.join(" ");const s=e.direction.indexOf("column")>-1?"column":"row",a=kp(s)?"max-width":"max-height",c=kp(s)?"min-width":"min-height",l=String(o).indexOf("calc")>-1,u=l||"auto"===o,d=String(o).indexOf("%")>-1&&!l,h=String(o).indexOf("px")>-1||String(o).indexOf("rem")>-1||String(o).indexOf("em")>-1||String(o).indexOf("vw")>-1||String(o).indexOf("vh")>-1;let p=l||h;n="0"==n?0:n,i="0"==i?0:i;const m=!n&&!i;let f={};const b={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(o||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;o="row"===s?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":n=0,o="auto";break;case"grow":o="100%";break;case"noshrink":i=0,o="auto";break;case"auto":break;case"none":n=0,i=0,o="auto";break;default:p||d||isNaN(o)||(o+="%"),"0%"===o&&(p=!0),"0px"===o&&(o="0%"),f=Jp(b,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":p?o:"100%"}:{flex:`${n} ${i} ${p?o:"100%"}`})}return f.flex||f["flex-grow"]||(f=Jp(b,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":o}:{flex:`${n} ${i} ${o}`})),"0%"!==o&&"0px"!==o&&"0.000000001px"!==o&&"auto"!==o&&(f[c]=m||p&&n?o:null,f[a]=m||!u&&i?o:null),f[c]||f[a]?e.hasWrap&&(f[l?"flex-basis":"flex"]=f[a]?l?f[a]:`${n} ${i} ${f[a]}`:l?f[c]:`${n} ${i} ${f[c]}`):f=Jp(b,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":o}:{flex:`${n} ${i} ${o}`}),Jp(f,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(i.Yb($h))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)($h))},token:t,providedIn:"root"}),t})();const $p=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let Wp=(()=>{class t extends tp{constructor(t,e,n,i,r){super(t,i,e,r),this.layoutConfig=n,this.marshal=r,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Vh(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Vh(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,n=e.startsWith("row"),i=this.wrap;n&&i?this.styleCache=Zp:n&&!i?this.styleCache=Qp:!n&&i?this.styleCache=tm:n||i||(this.styleCache=Xp);const r=Cp(String(t).replace(";",""),this.flexGrow,this.flexShrink);this.addStyles(r.join(" "),{direction:e,hasWrap:i})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=Cp(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob($h),i.Ob(Yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[i.Ab]}),t})(),Kp=(()=>{class t extends Wp{constructor(){super(...arguments),this.inputs=$p}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})();const Qp=new Map,Xp=new Map,Zp=new Map,tm=new Map;let em=(()=>{class t extends wp{buildStyles(t){return{order:t&&parseInt(t,10)||""}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})();const nm=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"];let im=(()=>{class t extends tp{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="flex-order",this.styleCache=rm,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(em),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const rm=new Map;let om=(()=>{class t extends im{constructor(){super(...arguments),this.inputs=nm}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),sm=(()=>{class t extends wp{buildStyles(t,e){""===t&&(t="0");const n=String(t).indexOf("%")>-1;String(t).indexOf("px")>-1||n||isNaN(+t)||(t+="%");const i=e.isRtl?"margin-right":"margin-left";return kp(e.layout)?{[i]:""+t}:{"margin-top":""+t}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})();const am=["fxFlexOffset","fxFlexOffset.xs","fxFlexOffset.sm","fxFlexOffset.md","fxFlexOffset.lg","fxFlexOffset.xl","fxFlexOffset.lt-sm","fxFlexOffset.lt-md","fxFlexOffset.lt-lg","fxFlexOffset.lt-xl","fxFlexOffset.gt-xs","fxFlexOffset.gt-sm","fxFlexOffset.gt-md","fxFlexOffset.gt-lg"];let cm=(()=>{class t extends tp{constructor(t,e,n,i,r){super(t,n,r,i),this.directionality=e,this.DIRECTIVE_KEY="flex-offset",this.init([this.directionality.change]),this.parentElement&&this.marshal.trackValue(this.parentElement,"layout-gap").pipe(Vh(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))}updateWithValue(t=""){const e=this.getFlexFlowDirection(this.parentElement,!0),n="rtl"===this.directionality.value;"row"===e&&n?this.styleCache=um:"row"!==e||n?"column"===e&&n?this.styleCache=dm:"column"!==e||n||(this.styleCache=pm):this.styleCache=hm,this.addStyles(t+"",{layout:e,isRtl:n})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(_d),i.Ob(sm),i.Ob(Op),i.Ob(yp))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})(),lm=(()=>{class t extends cm{constructor(){super(...arguments),this.inputs=am}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxFlexOffset",""],["","fxFlexOffset.xs",""],["","fxFlexOffset.sm",""],["","fxFlexOffset.md",""],["","fxFlexOffset.lg",""],["","fxFlexOffset.xl",""],["","fxFlexOffset.lt-sm",""],["","fxFlexOffset.lt-md",""],["","fxFlexOffset.lt-lg",""],["","fxFlexOffset.lt-xl",""],["","fxFlexOffset.gt-xs",""],["","fxFlexOffset.gt-sm",""],["","fxFlexOffset.gt-md",""],["","fxFlexOffset.gt-lg",""]],inputs:{fxFlexOffset:"fxFlexOffset","fxFlexOffset.xs":"fxFlexOffset.xs","fxFlexOffset.sm":"fxFlexOffset.sm","fxFlexOffset.md":"fxFlexOffset.md","fxFlexOffset.lg":"fxFlexOffset.lg","fxFlexOffset.xl":"fxFlexOffset.xl","fxFlexOffset.lt-sm":"fxFlexOffset.lt-sm","fxFlexOffset.lt-md":"fxFlexOffset.lt-md","fxFlexOffset.lt-lg":"fxFlexOffset.lt-lg","fxFlexOffset.lt-xl":"fxFlexOffset.lt-xl","fxFlexOffset.gt-xs":"fxFlexOffset.gt-xs","fxFlexOffset.gt-sm":"fxFlexOffset.gt-sm","fxFlexOffset.gt-md":"fxFlexOffset.gt-md","fxFlexOffset.gt-lg":"fxFlexOffset.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})();const um=new Map,dm=new Map,hm=new Map,pm=new Map;let mm=(()=>{class t extends wp{buildStyles(t){const e={};switch(t=t||"stretch"){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=t}return e}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})();const fm=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let bm=(()=>{class t extends tp{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="flex-align",this.styleCache=gm,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(mm),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const gm=new Map;let _m=(()=>{class t extends bm{constructor(){super(...arguments),this.inputs=fm}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})();const vm={margin:0,width:"100%",height:"100%","min-width":"100%","min-height":"100%"};let ym=(()=>{class t extends wp{buildStyles(t){return vm}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),wm=(()=>{class t extends tp{constructor(t,e,n,i){super(t,n,e,i),this.styleCache=Cm,this.addStyles("")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(ym),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,selectors:[["","fxFill",""],["","fxFlexFill",""]],features:[i.Ab]}),t})();const Cm=new Map;let xm=(()=>{class t extends wp{buildStyles(t,e){const n={},[i,r]=t.split(" ");switch(i){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(r){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"space-between":n["align-content"]="space-between",n["align-items"]="stretch";break;case"space-around":n["align-content"]="space-around",n["align-items"]="stretch";break;case"baseline":n["align-content"]="stretch",n["align-items"]="baseline";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return Jp(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===r?kp(e.layout)?null:"100%":null,"max-height":"stretch"===r&&kp(e.layout)?"100%":null})}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})();const Om=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let Sm=(()=>{class t extends tp{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Vh(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=Am:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=Mm:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=Im:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=Um:"column-reverse"!==e||n||(this.styleCache=Em):this.styleCache=km:this.styleCache=Pm:this.styleCache=Dm,this.addStyles(t,{layout:e,inline:n})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),Tp.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(xm),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})(),Tm=(()=>{class t extends Sm{constructor(){super(...arguments),this.inputs=Om}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})();const Dm=new Map,km=new Map,Pm=new Map,Em=new Map,Am=new Map,Im=new Map,Mm=new Map,Um=new Map;let Lm=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Hh,yd]]}),t})();const Rm=["mat-button",""],Nm=["*"],Fm=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n",Vm=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class jm{constructor(t){this._elementRef=t}}const Bm=Id(Ad(Md(jm)));let zm=(()=>{class t extends Bm{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of Vm)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(hd),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&i.Qc(ch,!0),2&t&&i.tc(n=i.dc())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(i.Eb("disabled",e.disabled||null),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.Ab],attrs:Rm,ngContentSelectors:Nm,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"span",0),i.kc(1),i.Tb(),i.Pb(2,"div",1),i.Pb(3,"div",2)),2&t&&(i.Db(2),i.Gb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.mc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[ch],styles:[Fm],encapsulation:2,changeDetection:0}),t})(),qm=(()=>{class t extends zm{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(hd),i.Ob(i.l),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&i.cc("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(i.Eb("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.Ab],attrs:Rm,ngContentSelectors:Nm,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"span",0),i.kc(1),i.Tb(),i.Pb(2,"div",1),i.Pb(3,"div",2)),2&t&&(i.Db(2),i.Gb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.mc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[ch],styles:[Fm],encapsulation:2,changeDetection:0}),t})(),Hm=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[lh,Ed],Ed]}),t})();var Gm=n("WMd4");function Jm(t,e=Eu.a){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new Ym(i,e))}class Ym{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new $m(t,this.delay,this.scheduler))}}class $m extends u.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,r=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule($m.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new Wm(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Gm.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Gm.a.createComplete()),this.unsubscribe()}}class Wm{constructor(t,e){this.time=t,this.notification=e}}function Km(){throw Error("Host already has a portal attached")}class Qm{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&Km(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Xm extends Qm{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class Zm extends Qm{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class tf extends Qm{constructor(t){super(),this.element=t instanceof i.l?t.nativeElement:t}}class ef{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&Km(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof Xm?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Zm?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof tf?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class nf extends ef{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=r}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let rf=(()=>{class t extends Zm{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N),i.Ob(i.S))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.Ab]}),t})(),of=(()=>{class t extends ef{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.o,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.j),i.Ob(i.S),i.Ob(o.e))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Ab]}),t})(),sf=(()=>{class t extends of{}return t.\u0275fac=function(e){return af(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[i.Cb([{provide:of,useExisting:t}]),i.Ab]}),t})();const af=i.Wb(sf);let cf=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();class lf{constructor(t,e){this._parentInjector=t,this._customTokens=e}get(t,e){const n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}function uf(t){return!!t&&(t instanceof a.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function df(t,e){return n=>n.lift(new hf(t,e))}n("3N8a"),n("IjjT");class hf{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new pf(t,this.compare,this.keySelector))}}class pf extends u.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}class mf{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new ff(t,this.durationSelector))}}class ff extends Xi.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(Xi.c)(n,new Xi.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var bf=n("Y7HM");function gf(t=0,e,n){let i=-1;return Object(bf.a)(e)?i=Number(e)<1?1:Number(e):Object(hr.a)(e)&&(n=e),Object(hr.a)(n)||(n=Eu.a),new a.a(e=>{const r=Object(bf.a)(t)?t:+t-n.now();return n.schedule(_f,r,{index:0,period:i,subscriber:e})})}function _f(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function vf(t,e=Eu.a){return n=()=>gf(t,e),function(t){return t.lift(new mf(n))};var n}class yf{}function wf(t){return t&&"function"==typeof t.connect}class Cf{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new lr.a,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let xf=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Of=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new lr.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new a.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(vf(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(s.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(d(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Fh(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.B),i.Yb(vu),i.Yb(o.e,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(i.B),Object(i.Yb)(vu),Object(i.Yb)(o.e,8))},token:t,providedIn:"root"}),t})(),Sf=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new lr.a,this._elementScrolled=new a.a(t=>this.ngZone.runOutsideAngular(()=>Fh(this.elementRef.nativeElement,"scroll").pipe(Vh(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Du()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Du()?t.left=t.right:1==Du()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;"object"==typeof document&&"scrollBehavior"in document.documentElement.style?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Du()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Du()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Of),i.Ob(i.B),i.Ob(_d,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),Tf=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new lr.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(vf(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(vu),i.Yb(i.B),i.Yb(o.e,8))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(vu),Object(i.Yb)(i.B),Object(i.Yb)(o.e,8))},token:t,providedIn:"root"}),t})(),Df=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})(),kf=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[yd,yu,Df],yd,Df]}),t})();class Pf{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new Ef(t,this.predicate,this.inclusive))}}class Ef extends u.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}class Af{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Vu(-this._previousScrollPosition.left),t.style.top=Vu(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function If(){return Error("Scroll strategy has already been attached.")}class Mf{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw If();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Uf{enable(){}disable(){}attach(){}}function Lf(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function Rf(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class Nf{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw If();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();Lf(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Ff=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new Uf,this.close=t=>new Mf(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new Af(this._viewportRuler,this._document),this.reposition=t=>new Nf(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Of),i.Yb(Tf),i.Yb(i.B),i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Of),Object(i.Yb)(Tf),Object(i.Yb)(i.B),Object(i.Yb)(o.e))},token:t,providedIn:"root"}),t})();class Vf{constructor(t){if(this.scrollStrategy=new Uf,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,this.excludeFromOutsideClick=[],t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class jf{constructor(t,e,n,i,r){this.offsetX=n,this.offsetY=i,this.panelClass=r,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class Bf{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function zf(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "top", "bottom" or "center".`)}function qf(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "start", "end" or "center".`)}let Hf=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o.e))},token:t,providedIn:"root"}),t})(),Gf=(()=>{class t extends Hf{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o.e))},token:t,providedIn:"root"}),t})(),Jf=(()=>{class t extends Hf{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays;for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)){if([...r.getConfig().excludeFromOutsideClick,r.overlayElement].some(t=>t.contains(e)))break;r._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e),i.Yb(vu))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o.e),Object(i.Yb)(vu))},token:t,providedIn:"root"}),t})();const Yf=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let $f=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||Yf){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),Yf?e.setAttribute("platform","test"):t||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(o.e),i.Yb(vu))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(o.e),Object(i.Yb)(vu))},token:t,providedIn:"root"}),t})();class Wf{constructor(t,e,n,i,r,o,s,a,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=o,this._document=s,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new lr.a,this._attachments=new lr.a,this._detachments=new lr.a,this._locationChanges=Ir.a.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new lr.a,this._outsidePointerEvents=new lr.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEvents.asObservable()}outsidePointerEvents(){return this._outsidePointerEvents.asObservable()}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Vu(this._config.width),t.height=Vu(this._config.height),t.minWidth=Vu(this._config.minWidth),t.minHeight=Vu(this._config.minHeight),t.maxWidth=Vu(this._config.maxWidth),t.maxHeight=Vu(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Fu(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Vh(Object(ii.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const Kf=/([A-Za-z%]+)$/;class Qf{constructor(t,e,n,i,r){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new lr.a,this._resizeSubscription=Ir.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let r;for(let o of this._preferredPositions){let s=this._getOriginPoint(t,o),a=this._getOverlayPoint(s,e,o),c=this._getOverlayFit(a,e,n,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!r||r.overlayFit.visibleArea<c.visibleArea)&&(r={overlayFit:c,overlayPoint:a,originPoint:s,position:o,overlayRect:e})}if(i.length){let t=null,e=-1;for(const n of i){const i=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);i>e&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(r.position,r.originPoint);this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Xf(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,r;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,r="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+r}}_getOverlayFit(t,e,n,i){let{x:r,y:o}=t,s=this._getOffset(i,"x"),a=this._getOffset(i,"y");s&&(r+=s),a&&(o+=a);let c=0-o,l=o+e.height-n.height,u=this._subtractOverflows(e.width,0-r,r+e.width-n.width),d=this._subtractOverflows(e.height,c,l),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:e.width*e.height===h,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,o=Zf(this._overlayRef.getConfig().minHeight),s=Zf(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=s&&s<=r;return(t.fitsInViewportVertically||null!=o&&o<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,r=Math.max(t.x+e.width-i.width,0),o=Math.max(t.y+e.height-i.height,0),s=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let c=0,l=0;return c=e.width<=i.width?a||-r:t.x<this._viewportMargin?i.left-n.left-t.x:0,l=e.height<=i.height?s||-o:t.y<this._viewportMargin?i.top-n.top-t.y:0,this._previousPushAmount={x:c,y:l},{x:t.x+c,y:t.y+l}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new Bf(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let r=0;r<e.length;r++)e[r].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,i=this._isRtl();let r,o,s,a,c,l;if("top"===e.overlayY)o=t.y,r=n.height-o+this._viewportMargin;else if("bottom"===e.overlayY)s=n.height-t.y+2*this._viewportMargin,r=n.height-s+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;r=2*e,o=t.y-e,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)l=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:o,left:c,bottom:s,right:l,width:a,height:r}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;i.height=Vu(n.height),i.top=Vu(n.top),i.bottom=Vu(n.bottom),i.width=Vu(n.width),i.left=Vu(n.left),i.right=Vu(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Vu(t)),r&&(i.maxWidth=Vu(r))}this._lastBoundingBoxSize=n,Xf(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Xf(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Xf(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();Xf(n,this._getExactOverlayY(e,t,i)),Xf(n,this._getExactOverlayX(e,t,i))}else n.position="static";let s="",a=this._getOffset(e,"x"),c=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),c&&(s+=`translateY(${c}px)`),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=Vu(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=Vu(o.maxWidth):r&&(n.maxWidth="")),Xf(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Vu(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=Vu(o.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Rf(t,n),isOriginOutsideView:Lf(t,n),isOverlayClipped:Rf(e,n),isOverlayOutsideView:Lf(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{qf("originX",t.originX),zf("originY",t.originY),qf("overlayX",t.overlayX),zf("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Fu(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof i.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Xf(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Zf(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Kf);return n&&"px"!==n?null:parseFloat(e)}return t||null}class tb{constructor(t,e,n,i,r,o,s){this._preferredPositions=[],this._positionStrategy=new Qf(n,i,r,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const r=new jf(t,e,n,i);return this._preferredPositions.push(r),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class eb{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:r,maxWidth:o,maxHeight:s}=n,a=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==r&&"100vh"!==r||s&&"100%"!==s&&"100vh"!==s);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let nb=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new eb}connectedTo(t,e,n){return new tb(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Qf(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Tf),i.Yb(o.e),i.Yb(vu),i.Yb($f))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Tf),Object(i.Yb)(o.e),Object(i.Yb)(vu),Object(i.Yb)($f))},token:t,providedIn:"root"}),t})(),ib=0,rb=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=o,this._ngZone=s,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new Vf(t);return r.direction=r.direction||this._directionality.value,new Wf(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+ib++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(i.g)),new nf(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Ff),i.Yb($f),i.Yb(i.j),i.Yb(nb),i.Yb(Gf),i.Yb(i.t),i.Yb(i.B),i.Yb(o.e),i.Yb(_d),i.Yb(o.n,8),i.Yb(Jf,8))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const ob=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],sb=new i.s("cdk-connected-overlay-scroll-strategy");let ab=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),cb=(()=>{class t{constructor(t,e,n,r,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Ir.a.EMPTY,this._attachSubscription=Ir.a.EMPTY,this._detachSubscription=Ir.a.EMPTY,this._positionSubscription=Ir.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new i.o,this.positionChange=new i.o,this.attach=new i.o,this.detach=new i.o,this.overlayKeydown=new i.o,this.overlayOutsideClick=new i.o,this._templatePortal=new Zm(e,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Lu(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Lu(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Lu(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Lu(t)}get push(){return this._push}set push(t){this._push=Lu(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=ob);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27!==t.keyCode||Pu(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Vf({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new Pf(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(rb),i.Ob(i.N),i.Ob(i.S),i.Ob(sb),i.Ob(_d,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.Bb]}),t})();const lb={provide:sb,deps:[rb],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ub=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[rb,lb],imports:[[yd,cf,kf],kf]}),t})();const db=["mat-menu-item",""],hb=["*"];function pb(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",0),i.cc("keydown",(function(e){return i.yc(t),i.gc()._handleKeydown(e)}))("click",(function(){return i.yc(t),i.gc().closed.emit("click")}))("@transformMenu.start",(function(e){return i.yc(t),i.gc()._onAnimationStart(e)}))("@transformMenu.done",(function(e){return i.yc(t),i.gc()._onAnimationDone(e)})),i.Ub(1,"div",1),i.kc(2),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),i.Eb("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const mb={transformMenu:It("transformMenu",[Nt("void",Rt({opacity:0,transform:"scale(0.8)"})),Vt("void => enter",Ut([Bt(".mat-menu-content, .mat-mdc-menu-content",Mt("100ms linear",Rt({opacity:1}))),Mt("120ms cubic-bezier(0, 0, 0.2, 1)",Rt({transform:"scale(1)"}))])),Vt("* => void",Mt("100ms 25ms linear",Rt({opacity:0})))]),fadeInItems:It("fadeInItems",[Nt("showing",Rt({opacity:1})),Vt("void => *",[Rt({opacity:0}),Mt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fb=new i.s("MatMenuContent");let bb=(()=>{class t{constructor(t,e,n,i,r,o,s){this._template=t,this._componentFactoryResolver=e,this._appRef=n,this._injector=i,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=s,this._attached=new lr.a}attach(t={}){this._portal||(this._portal=new Zm(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new nf(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N),i.Ob(i.j),i.Ob(i.g),i.Ob(i.t),i.Ob(i.S),i.Ob(o.e),i.Ob(i.h))},t.\u0275dir=i.Jb({type:t,selectors:[["ng-template","matMenuContent",""]],features:[i.Cb([{provide:fb,useExisting:t}])]}),t})();const gb=new i.s("MAT_MENU_PANEL");class _b{}const vb=Md(Ad(_b));let yb=(()=>{class t extends vb{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new lr.a,this._focused=new lr.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this),this._document=e}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3;let n="";if(t.childNodes){const i=t.childNodes.length;for(let r=0;r<i;r++)t.childNodes[r].nodeType===e&&(n+=t.childNodes[r].textContent)}return n.trim()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(o.e),i.Ob(hd),i.Ob(gb,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&i.cc("click",(function(t){return e._checkDisabled(t)}))("mouseenter",(function(){return e._handleMouseEnter()})),2&t&&(i.Eb("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),i.Gb("mat-menu-item",!0)("mat-menu-item-highlighted",e._highlighted)("mat-menu-item-submenu-trigger",e._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[i.Ab],attrs:db,ngContentSelectors:hb,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(i.lc(),i.kc(0),i.Pb(1,"div",0)),2&t&&(i.Db(1),i.mc("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[ch],encapsulation:2,changeDetection:0}),t})();const wb=new i.s("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Cb=0,xb=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._ngZone=e,this._defaultOptions=n,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.F,this._tabSubscription=Ir.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new lr.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.o,this.close=this.closed,this.panelId="mat-menu-panel-"+Cb++}get xPosition(){return this._xPosition}set xPosition(t){Object(i.Z)()&&"before"!==t&&"after"!==t&&function(){throw Error('xPosition value must be either \'before\' or after\'.\n      Example: <mat-menu xPosition="before" #menu="matMenu"></mat-menu>')}(),this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){Object(i.Z)()&&"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n      Example: <mat-menu yPosition="above" #menu="matMenu"></mat-menu>')}(),this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Lu(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Lu(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Xu(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Pr(this._directDescendantItems),Object(Oi.a)(t=>Object(ii.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Pr(this._directDescendantItems),Object(Oi.a)(t=>Object(ii.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case 27:Pu(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:Pu(t)||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),n=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Pr(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(wb))},t.\u0275dir=i.Jb({type:t,contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,fb,!0),i.Hb(n,yb,!0),i.Hb(n,yb,!1)),2&t&&(i.tc(r=i.dc())&&(e.lazyContent=r.first),i.tc(r=i.dc())&&(e._allItems=r),i.tc(r=i.dc())&&(e.items=r))},viewQuery:function(t,e){var n;1&t&&i.Qc(i.N,!0),2&t&&i.tc(n=i.dc())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),Ob=(()=>{class t extends xb{}return t.\u0275fac=function(e){return Sb(e||t)},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const Sb=i.Wb(Ob);let Tb=(()=>{class t extends Ob{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(wb))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[i.Cb([{provide:gb,useExisting:Ob},{provide:Ob,useExisting:t}]),i.Ab],ngContentSelectors:hb,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(i.lc(),i.Jc(0,pb,3,6,"ng-template"))},directives:[o.q],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[mb.transformMenu,mb.fadeInItems]},changeDetection:0}),t})();const Db=new i.s("mat-menu-scroll-strategy"),kb={provide:Db,deps:[rb],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},Pb=Tu({passive:!0});let Eb=(()=>{class t{constructor(t,e,n,r,o,s,a,c){this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=o,this._menuItemInstance=s,this._dir=a,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ir.a.EMPTY,this._hoverSubscription=Ir.a.EMPTY,this._menuCloseSubscription=Ir.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new i.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.o,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,Pb),s&&(s._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=r}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(Object(i.Z)()&&t===this._parentMenu&&function(){throw Error("matMenuTriggerFor: menu cannot contain its own trigger. Assign a menu that is not a parent of the trigger or move the trigger outside of the menu.")}(),this._menuCloseSubscription=t.close.asObservable().subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMenu||this._parentMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Pb),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ob&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof Ob?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(d(t=>"void"===t.toState),li(1),Vh(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){Object(i.Z)()&&!this.menu&&function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n    Example:\n      <mat-menu #menu="matMenu"></mat-menu>\n      <button [matMenuTriggerFor]="menu"></button>')}()}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Vf({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,n]="before"===this.menu.xPosition?["end","start"]:["start","end"],[i,r]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[i,r],[a,c]=[e,n],l=0;this.triggersSubmenu()?(c=e="before"===this.menu.xPosition?"start":"end",n=a="end"===e?"start":"end",l="bottom"===i?8:-8):this.menu.overlapTrigger||(o="top"===i?"bottom":"top",s="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:o,overlayX:a,overlayY:i,offsetY:l},{originX:n,originY:o,overlayX:c,overlayY:i,offsetY:l},{originX:e,originY:s,overlayX:a,overlayY:r,offsetY:-l},{originX:n,originY:s,overlayX:c,overlayY:r,offsetY:-l}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMenu?this._parentMenu.closed:Object(s.a)(),i=this._parentMenu?this._parentMenu._hovered().pipe(d(t=>t!==this._menuItemInstance),d(()=>this._menuOpen)):Object(s.a)();return Object(ii.a)(t,n,i,e)}_handleMousedown(t){ld(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(d(t=>t===this._menuItemInstance&&!t.disabled),Jm(0,Rh.b)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ob&&this.menu._isAnimating?this.menu._animationDone.pipe(li(1),Jm(0,Rh.b),Vh(this._parentMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Zm(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(rb),i.Ob(i.l),i.Ob(i.S),i.Ob(Db),i.Ob(Ob,8),i.Ob(yb,10),i.Ob(_d,8),i.Ob(hd))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&i.Eb("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),Ab=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[kb],imports:[Ed]}),t})(),Ib=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[kb],imports:[[o.c,Ed,lh,ub,Ab],Df,Ed,Ab]}),t})(),Mb=(()=>{class t{constructor(t,e,n,i,r){this.kcSvc=t,this.balanceAccountService=e,this.keycloakAdminService=n,this.cn=i,this.feederService=r,this.user=new Tl,this.currentBalance="0"}ngOnInit(){this.kcSvc.accountUserProfile().subscribe(t=>{this.user.firstName=t.firstName,this.user.lastName=t.lastName,this.user.email=t.email,this.user.identificationNumber=t.attributes.identificationNumber[0],sessionStorage.setItem("userData",JSON.stringify(this.user)),this.loadBalanceUser()})}isUserRegistered(){return t=this,void 0,n=function*(){const t=yield this.keycloakAdminService.getAuthToken();this.cn.log("Forced Wait/IO blocked: "+t)},new((e=void 0)||(e=Promise))((function(i,r){function o(t){try{a(n.next(t))}catch(e){r(e)}}function s(t){try{a(n.throw(t))}catch(e){r(e)}}function a(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}a((n=n.apply(t,[])).next())}));var t,e,n}loadBalanceUser(){this.cn.log("loadBalanceUser()"),this.feederService.GetCurrentBalance(this.user.enterpriseId).subscribe(t=>{"0000"===t.code&&(this.currentBalance=t.currentBalance.toString())})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cr),i.Ob(bu),i.Ob(fu),i.Ob(Gi),i.Ob(gu))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-common-user-header-private"]],decls:53,vars:11,consts:[[1,"se-pre-con",2,"display","none"],[1,"cabecera-sitio","sticky-top"],[1,"container-fluid"],[1,"row","justify-content-between","align-items-center"],[1,"col-6","col-md"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logotipo_header"],[1,"col-md-auto","d-none","d-md-block"],["fxLayout","row"],["mat-button","","routerLink","/common-user/pv/documents/upload-files"],["mat-button","","title","No disponible en la versi\xf3n de prueba","routerLink","","disabled",""],[1,"col-6","col-md","text-right"],["mat-button","",1,"cnt-avatar-header",3,"matMenuTriggerFor"],[1,"avatar-header"],[1,"cnt-name-user","d-none","d-sm-block"],[1,"name-user"],[1,"welcome-lbl"],[1,"imgprofile_bnn"],["alt","","src","/assets/images/default_img_profile.jpg"],["OPuserMenu","matMenu"],[1,"sub-menu-avatar","align-items-center"],[1,"cnt-name-user"],[1,"name-lbl"],[1,"doc-lbl"],["mat-menu-item","","disabled","","title","No disponible en la versi\xf3n de prueba"],["mat-menu-item","",3,"hidden","click"],[1,"cnt-mobile-menu","fixed-bottom","d-block","d-md-none"],[1,"nav","nav-pills","nav-fill"],["routerLink","/documentos/cargar-documentos",1,"nav-item","nav-link","active"],[1,"material-icons","ico-nav-mobile"],[1,"tag-ico-mobile"],["routerLink","/documentos/lista-de-documentos",1,"nav-item","nav-link"]],template:function(t,e){if(1&t&&(i.Pb(0,"div",0),i.Ub(1,"header",1),i.Ub(2,"mat-toolbar"),i.Ub(3,"div",2),i.Ub(4,"div",3),i.Ub(5,"div",4),i.Pb(6,"img",5),i.Tb(),i.Ub(7,"div",6),i.Ub(8,"div",7),i.Ub(9,"button",8),i.Lc(10,"INICIO"),i.Tb(),i.Ub(11,"button",9),i.Lc(12,"DOCUMENTOS"),i.Tb(),i.Tb(),i.Tb(),i.Ub(13,"div",10),i.Ub(14,"button",11),i.Ub(15,"div",12),i.Ub(16,"div",13),i.Ub(17,"span",14),i.Lc(18),i.Tb(),i.Ub(19,"span",15),i.Lc(20),i.hc(21,"currency"),i.Tb(),i.Tb(),i.Ub(22,"div",16),i.Pb(23,"img",17),i.Tb(),i.Tb(),i.Tb(),i.Ub(24,"mat-menu",null,18),i.Ub(26,"div"),i.Ub(27,"div",19),i.Ub(28,"div",16),i.Pb(29,"img",17),i.Tb(),i.Ub(30,"div",20),i.Ub(31,"span",21),i.Lc(32),i.Tb(),i.Ub(33,"span",22),i.Lc(34),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(35,"button",23),i.Lc(36,"Perfil"),i.Tb(),i.Ub(37,"button",24),i.cc("click",(function(){return e.kcSvc.logout("http://localhost:4200/")})),i.Lc(38,"Cerrar Sesi\xf3n"),i.Tb(),i.Ub(39,"button",24),i.cc("click",(function(){return e.kcSvc.login()})),i.Lc(40,"Iniciar Sesi\xf3n"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(41,"section",25),i.Ub(42,"nav",26),i.Ub(43,"a",27),i.Ub(44,"i",28),i.Lc(45,"home"),i.Tb(),i.Ub(46,"span",29),i.Lc(47,"Inicio"),i.Tb(),i.Tb(),i.Ub(48,"a",30),i.Ub(49,"i",28),i.Lc(50,"folder"),i.Tb(),i.Ub(51,"span",29),i.Lc(52,"Documentos"),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.uc(25);i.Db(14),i.mc("matMenuTriggerFor",t),i.Db(4),i.Oc("",e.user.firstName," ",e.user.lastName,""),i.Db(2),i.Nc("Saldo: ",i.ic(21,9,e.currentBalance),""),i.Db(12),i.Oc("",e.user.firstName," ",e.user.lastName,""),i.Db(2),i.Nc("CC. ",e.user.identificationNumber,""),i.Db(3),i.mc("hidden",!e.kcSvc.authenticated()),i.Db(2),i.mc("hidden",e.kcSvc.authenticated())}},directives:[Uh,Mp,zm,ta,Eb,Tb,yb,ea],pipes:[o.d],styles:[".sticky-top[_ngcontent-%COMP%]{z-index:999}.logotipo_header[_ngcontent-%COMP%]{width:84px}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.mat-toolbar[_ngcontent-%COMP%]{background:#fff;box-shadow:0 5px 14px 0 rgba(0,0,0,.12)}.mat-toolbar-row[_ngcontent-%COMP%], .mat-toolbar-single-row[_ngcontent-%COMP%]{padding:0;height:90px}.mat-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:6px}.mat-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-right:0}.sub-menu-avatar[_ngcontent-%COMP%]{background:#22385e;background-size:cover;color:#fff;width:240px;padding:1.6rem 1rem;text-align:center}.sub-menu-avatar[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{margin:0 auto;width:40px;height:40px;border-radius:100%;position:relative;overflow:hidden}.sub-menu-avatar[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]{margin-top:.8rem}.sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .doc-lbl[_ngcontent-%COMP%], .sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .name-lbl[_ngcontent-%COMP%]{display:block}.sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .name-lbl[_ngcontent-%COMP%]{text-transform:capitalize}.sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .doc-lbl[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.7);font-size:.8rem}.cnt-mobile-menu[_ngcontent-%COMP%]{background:#2b323b;color:#fff;box-shadow:0 -1px 8px 0 rgba(0,0,0,.37)}.cnt-mobile-menu[_ngcontent-%COMP%]   .nav-pills[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{border-radius:0;color:hsla(0,0%,100%,.35);cursor:pointer}.cnt-mobile-menu[_ngcontent-%COMP%]   .nav-pills[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%]{background-color:#22282b;color:#fff}.cnt-mobile-menu[_ngcontent-%COMP%]   .ico-nav-mobile[_ngcontent-%COMP%]{display:block}.cnt-mobile-menu[_ngcontent-%COMP%]   .tag-ico-mobile[_ngcontent-%COMP%]{font-size:.6rem}.cnt-avatar-header[_ngcontent-%COMP%]{min-height:64px;text-transform:capitalize;line-height:1.2rem;border-radius:0}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]{align-items:center;display:flex}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .name-user[_ngcontent-%COMP%], .cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .welcome-lbl[_ngcontent-%COMP%]{display:block}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]{text-align:left}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .welcome-lbl[_ngcontent-%COMP%]{font-size:.8rem;color:#8b8d90}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .name-user[_ngcontent-%COMP%]{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{margin-left:.5rem;width:40px;height:40px;border-radius:100%;position:relative;overflow:hidden}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.no-js[_ngcontent-%COMP%]   #loader[_ngcontent-%COMP%]{display:none}.js[_ngcontent-%COMP%]   #loader[_ngcontent-%COMP%]{display:block;position:absolute;left:100px;top:0}.se-pre-con[_ngcontent-%COMP%]{position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999;background:url(/assets/images/loader-64x/Preloader_2.gif) 50% no-repeat #fff;opacity:.5;filter:alpha(opacity=50)}@media (max-width:576px){.cnt-avatar-header[_ngcontent-%COMP%]{min-height:56px;min-width:auto}.mat-button[_ngcontent-%COMP%]{padding:0}.mat-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:0}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{margin:0 auto}}"]}),t})();function Ub(t,e){}class Lb{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const Rb={dialogContainer:It("dialogContainer",[Nt("void, exit",Rt({opacity:0,transform:"scale(0.7)"})),Nt("enter",Rt({transform:"none"})),Vt("* => enter",Mt("150ms cubic-bezier(0, 0, 0.2, 1)",Rt({transform:"none",opacity:1}))),Vt("* => void, * => exit",Mt("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Rt({opacity:0})))])};function Nb(){throw Error("Attempting to attach dialog content after content is already attached")}let Fb=(()=>{class t extends ef{constructor(t,e,n,r,o,s){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=o,this._focusMonitor=s,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._state="enter",this._animationStateChanged=new i.o,this.attachDomPortal=t=>(this._portalOutlet.hasAttached()&&Nb(),this._setupFocusTrap(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=o.ariaLabelledBy||null,this._document=r}attachComponentPortal(t){return this._portalOutlet.hasAttached()&&Nb(),this._setupFocusTrap(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached()&&Nb(),this._setupFocusTrap(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_onAnimationDone(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(id),i.Ob(i.h),i.Ob(o.e,8),i.Ob(Lb),i.Ob(hd))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&i.Fc(of,!0),2&t&&i.tc(n=i.dc())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&i.Hc("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(i.Eb("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),i.Ic("@dialogContainer",e._state))},features:[i.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&i.Jc(0,Ub,0,0,"ng-template",0)},directives:[of],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Rb.dialogContainer]}}),t})(),Vb=0;class jb{constructor(t,e,n="mat-dialog-"+Vb++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new lr.a,this._afterClosed=new lr.a,this._beforeClosed=new lr.a,this._state=0,e._id=n,e._animationStateChanged.pipe(d(t=>"done"===t.phaseName&&"enter"===t.toState),li(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(d(t=>"done"===t.phaseName&&"exit"===t.toState),li(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(d(t=>27===t.keyCode&&!this.disableClose&&!Pu(t))).subscribe(t=>{t.preventDefault(),Bb(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Bb(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(d(t=>"start"===t.phaseName),li(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Bb(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const zb=new i.s("MatDialogData"),qb=new i.s("mat-dialog-default-options"),Hb=new i.s("mat-dialog-scroll-strategy"),Gb={provide:Hb,deps:[rb],useFactory:function(t){return()=>t.scrollStrategies.block()}};let Jb=(()=>{class t{constructor(t,e,n,i,r,o,s){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new lr.a,this._afterOpenedAtThisLevel=new lr.a,this._ariaHiddenElements=new Map,this.afterAllClosed=xr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Pr(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){if((e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new Lb)).id&&this.getDialogById(e.id))throw Error(`Dialog with id "${e.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),r=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(()=>this._removeOpenDialog(r)),this.afterOpened.next(r),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new Vf({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=i.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:Lb,useValue:e}]}),r=new Xm(Fb,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(r).instance}_attachDialogContent(t,e,n,r){const o=new jb(n,e,r.id);if(t instanceof i.N)e.attachTemplatePortal(new Zm(t,null,{$implicit:r.data,dialogRef:o}));else{const n=this._createInjector(r,o,e),i=e.attachComponentPortal(new Xm(t,r.viewContainerRef,n));o.componentInstance=i.instance}return o.updateSize(r.width,r.height).updatePosition(r.position),o}_createInjector(t,e,n){const r=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=[{provide:Fb,useValue:n},{provide:zb,useValue:t.data},{provide:jb,useValue:e}];return!t.direction||r&&r.get(_d,null)||o.push({provide:_d,useValue:{value:t.direction,change:Object(s.a)()}}),i.t.create({parent:r||this._injector,providers:o})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(rb),i.Yb(i.t),i.Yb(o.n,8),i.Yb(qb,8),i.Yb(Hb),i.Yb(t,12),i.Yb($f))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),Yb=0,$b=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Xb(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){Bb(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb,8),i.Ob(i.l),i.Ob(Jb))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("click",(function(t){return e._onButtonClick(t)})),2&t&&i.Eb("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.Bb]}),t})(),Wb=(()=>{class t{constructor(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+Yb++}ngOnInit(){this._dialogRef||(this._dialogRef=Xb(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb,8),i.Ob(i.l),i.Ob(Jb))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&i.Xb("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),Kb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),Qb=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function Xb(t,e){let n=t.nativeElement.parentElement;for(;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(t=>t.id===n.id):null}let Zb=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[Jb,Gb],imports:[[ub,cf,Ed],Ed]}),t})(),tg=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-text-terms-and-conditions"]],decls:442,vars:0,consts:[["href","https://eNotary.com.co","target","_black"],["type","disc",2,"margin-bottom","0in"],[2,"font-size","16px","font-family",'"Arial",sans-serif',"color","black"]],template:function(t,e){1&t&&(i.Ub(0,"p"),i.Ub(1,"span"),i.Lc(2,'Este contrato describe los t\xe9rminos y condiciones generales (los "T\xe9rminos y Condiciones Generales") aplicables al uso de la plataforma eNotary ("El Servicio") dentro del sitio\xa0'),i.Ub(3,"a",0),i.Lc(4,"enotary.com.co"),i.Tb(),i.Lc(5,". Cualquier persona que desee acceder y/o usar el sitio o el servicio podr\xe1 hacerlo sujet\xe1ndose a los T\xe9rminos y Condiciones Generales, junto con todas las dem\xe1s pol\xedticas y principios que rige ENOTARY, y que son incorporados al presente por referencia, entre ellos la pol\xedtica general de privacidad y de protecci\xf3n de datos personales, los t\xe9rminos y condiciones de uso generales."),i.Tb(),i.Tb(),i.Ub(6,"p"),i.Ub(7,"span"),i.Lc(8,"CUALQUIER PERSONA QUE NO ACEPTE ESTOS T\xc9RMINOS Y CONDICIONES GENERALES, LOS CUALES TIENEN UN CAR\xc1CTER OBLIGATORIO Y VINCULANTE, DEBER\xc1 ABSTENERSE DE UTILIZAR EL SITIO Y/O LOS SERVICIOS."),i.Tb(),i.Tb(),i.Ub(9,"p"),i.Ub(10,"span"),i.Lc(11,"El Usuario debe leer, entender y aceptar todas las condiciones establecidas en los T\xe9rminos y Condiciones Generales y en las Pol\xedticas de Privacidad, as\xed como en los dem\xe1s documentos incorporados a los mismos por referencia, previo a su registro ante ENOTARY."),i.Tb(),i.Tb(),i.Ub(12,"p"),i.Ub(13,"span"),i.Lc(14,"VISI\xd3N GENERAL DE LOS SERVICIOS"),i.Tb(),i.Tb(),i.Ub(15,"p"),i.Ub(16,"span"),i.Lc(17,'eNotary ofrece un conjunto de productos y servicios que permiten a los clientes optimizar transacciones complejas, en especial, notariales a trav\xe9s de firma electr\xf3nica y la automatizaci\xf3n del flujo de trabajo. ENotary tambi\xe9n proporciona interfaces de programaci\xf3n de aplicaciones ( "API") que permiten a los clientes crear soluciones integradas de firma electr\xf3nica dentro del sitio web, aplicaciones u otras propiedades de un cliente ("Propiedades del cliente").'),i.Tb(),i.Tb(),i.Ub(18,"p"),i.Ub(19,"span"),i.Lc(20,"CONDICIONES ESPEC\xcdFICAS DEL SERVICIO."),i.Tb(),i.Tb(),i.Ub(21,"ul",1),i.Ub(22,"li"),i.Ub(23,"strong"),i.Ub(24,"span"),i.Lc(25,"Descripci\xf3n del servicio.\xa0"),i.Tb(),i.Tb(),i.Ub(26,"span"),i.Lc(27,"ENotary es un servicio que permite a los Clientes mostrar, entregar, reconocer, almacenar y firmar documentos electr\xf3nicamente a trav\xe9s de flujos de trabajo enfocados al sector notarial colombiano.\xa0"),i.Tb(),i.Tb(),i.Ub(28,"li"),i.Ub(29,"strong"),i.Ub(30,"span"),i.Lc(31,"Autenticaci\xf3n.\xa0"),i.Tb(),i.Tb(),i.Ub(32,"span"),i.Lc(33,"Una persona que firma un documento a trav\xe9s de eNotary debe tener una cuenta o haber recibido una solicitud de firma en su cuenta de correo electr\xf3nico, por el diferente m\xe9todo de autenticaci\xf3n solicitado, de conformidad a los est\xe1ndares exigidos por la Superintendencia de Notariado y Registro de Colombia."),i.Tb(),i.Tb(),i.Ub(34,"li"),i.Ub(35,"strong"),i.Ub(36,"span"),i.Lc(37,"Rutas de auditor\xeda.\xa0"),i.Tb(),i.Tb(),i.Ub(38,"span"),i.Lc(39,"Los documentos completados en eNotary incluyen una pista de auditor\xeda que contiene informaci\xf3n que ayuda a rastrear su documento a lo largo de su ciclo de vida. Esta informaci\xf3n incluye, pero no se limita a, ID de documento \xfanico generado por eNotary, direcciones de correo electr\xf3nico del remitente y destinatario (s), eventos de seguimiento (como fecha, hora y ubicado cuando ocurren los siguientes eventos: documento cargado, documento enviado, documento firmado, rechazar firmar, c\xf3digo de acceso del firmante autenticado, solicitud de firma cancelada)."),i.Tb(),i.Tb(),i.Tb(),i.Ub(40,"p"),i.Ub(41,"span"),i.Lc(42,"DERECHOS DE USO Y ACCESO"),i.Tb(),i.Tb(),i.Ub(43,"ul",1),i.Ub(44,"li"),i.Ub(45,"strong"),i.Ub(46,"span"),i.Lc(47,"Elegibilidad para Utilizar."),i.Tb(),i.Tb(),i.Ub(48,"span"),i.Lc(49,'\xa0Usted declara y garantiza que: (a) es mayor de edad (tiene 18 a\xf1os) y que es competente o cuenta las facultades necesarias para aceptar estos T\xe9rminos; si est\xe1 aceptando estos T\xe9rminos en nombre de una organizaci\xf3n o entidad, usted declara y garantiza que est\xe1 debidamente autorizado para aceptar estos T\xe9rminos, en nombre y representaci\xf3n de esa organizaci\xf3n o entidad, por lo cual los obliga a cumplir con estos T\xe9rminos (en cuyo caso, las referencias a "usted" y "su"" en estos T\xe9rminos, se refieren a dicha organizaci\xf3n o entidad).'),i.Tb(),i.Tb(),i.Ub(50,"li"),i.Ub(51,"strong"),i.Ub(52,"span"),i.Lc(53,"Limitaci\xf3n respecto de la licencia."),i.Tb(),i.Tb(),i.Ub(54,"span"),i.Lc(55,"\xa0Tras su aceptaci\xf3n de estos T\xe9rminos, le otorgamos una licencia limitada de acuerdo al monto de dinero que posea en su cuenta, no exclusiva e intransferible para acceder y utilizar el Sitio para sus fines comerciales internos y solo seg\xfan lo expresamente permitido en estos T\xe9rminos, que permita el registro de una cuenta para el uso de un servicio de eNotary, seg\xfan corresponda. No deber\xe1 utilizar, ni permitir el uso del sitio, para ning\xfan prop\xf3sito ilegal o que de cualquier manera sea incompatible con las disposiciones previstas por estos T\xe9rminos. Si usted es o se convierte en un competidor directo de eNotary, no puede acceder, ni utilizar los servicios de eNotary, sin el consentimiento expl\xedcito, previo y por escrito de eNotary, y solo podr\xe1n ser utilizados para los fines que expresamente sean autorizados por escrito. Excepto que est\xe9 restringido de otra manera por estos T\xe9rminos, eNotary le otorga permiso de forma no exclusiva, intransferible y limitada para mostrar, copiar y descargar contenido y materiales en el sitio siempre que usted: (a) sea titular de los derechos de autor y otros derechos de propiedad intelectual seg\xfan los avisos sobre el contenido y materiales; (b) los utilice \xfanicamente para uso personal o interno. Cualquier violaci\xf3n, por su parte, de las disposiciones de licencia contenidas en este documento, puede resultar en la terminaci\xf3n inmediata de su derecho para utilizar el sitio, as\xed como la responsabilidad potencial por infracci\xf3n de derechos de autor u otros reclamos dependiendo de las circunstancias."),i.Tb(),i.Tb(),i.Tb(),i.Ub(56,"p"),i.Ub(57,"span"),i.Lc(58,"PROPIEDAD"),i.Tb(),i.Tb(),i.Ub(59,"ul",1),i.Ub(60,"li"),i.Ub(61,"strong"),i.Ub(62,"span"),i.Lc(63,"Propiedad Intelectual."),i.Tb(),i.Tb(),i.Ub(64,"span"),i.Lc(65,"\xa0El sitio contiene materiales que son propiedad de AutenTIC Latam y est\xe1n protegidos por las leyes de derechos de autor de la Republica de Colombia, disposiciones de tratados internacionales, marcas y otras leyes y tratados de propiedad intelectual."),i.Tb(),i.Tb(),i.Ub(66,"li"),i.Ub(67,"strong"),i.Ub(68,"span"),i.Lc(69,"El sitio."),i.Tb(),i.Tb(),i.Ub(70,"span"),i.Lc(71,"\xa0Est\xe1 protegido como una obra colectiva o una compilaci\xf3n, de acuerdo con los derechos de autor, as\xed como otras leyes y tratados internacionales. Usted acepta cumplir con todas las leyes de derechos de autor y cualquier otra ley aplicable, as\xed como con cualquier aviso o restricci\xf3n respecto de los derechos de autor adicionales contenidos en el Sitio. Usted reconoce que el Sitio contiene obras originales que han sido desarrolladas, compiladas, preparadas, revisadas, seleccionadas y organizadas por AutenTIC Latam y por otros a trav\xe9s de la aplicaci\xf3n de m\xe9todos y est\xe1ndares, mediante la inversi\xf3n sustancial de tiempo, esfuerzo y dinero, y por lo cual constituye propiedad intelectual valiosa que pertenece a AutenTIC Latam. Todos los derechos presentes y futuros respecto de secretos comerciales, patentes, dise\xf1os, derechos de autor, marcas, derechos sobre las bases de datos, conocimientos t\xe9cnicos y otros derechos de propiedad intelectual u otros derechos de propiedad de cualquier tipo, documentaci\xf3n, mejoras, contribuciones de dise\xf1o u obras derivados, as\xed como cualquier conocimiento o proceso relacionado con los mismos, incluidos los derechos en y para todas las aplicaciones y registros relacionados con el Sitio, ser\xe1n, para usted y AutenTIC Latam, en todo momento propiedad \xfanica y exclusiva de AutenTIC Latam."),i.Tb(),i.Tb(),i.Ub(72,"li"),i.Ub(73,"strong"),i.Ub(74,"span"),i.Lc(75,"Marcas."),i.Tb(),i.Tb(),i.Ub(76,"span"),i.Lc(77,'\xa0Las marcas, logotipos y esl\xf3ganes o avisos comerciales que se muestran en el Sitio (colectivamente, las "Marcas") son marcas registradas y no registradas, propiedad de AutenTIC Latam. Por lo general, las marcas no deben ser utilizadas en ning\xfan tipo de campa\xf1a o publicidad, ni para indicar el patrocinio o la afiliaci\xf3n de ENotary con ning\xfan producto, servicio, evento u organizaci\xf3n sin la autorizaci\xf3n previa y por escrito de AutenTIC Latam. AutenTIC Latam reconoce las marcas de otras organizaciones para sus respectivos productos o servicios mencionados en el sitio. Todos los derechos no expresamente otorgados en estos T\xe9rminos o en las P\xe1ginas de PI est\xe1n reservados por AutenTIC Latam. Salvo de lo dispuesto en estos T\xe9rminos o en las p\xe1ginas de PI, incorporadas a este documento como referencia, cualquier uso de las marcas o de cualquier otro contenido propiedad de AutenTIC Latam est\xe1 estrictamente prohibido.'),i.Tb(),i.Tb(),i.Ub(78,"li"),i.Ub(79,"strong"),i.Ub(80,"span"),i.Lc(81,"Derechos de Autor."),i.Tb(),i.Tb(),i.Ub(82,"span"),i.Lc(83,"\xa0AutenTIC Latam respeta las leyes de derechos de autor y espera que sus usuarios hagan lo mismo. Si usted considera que alg\xfan contenido o material que se muestra en el sitio viola derechos de autor, de su propiedad, por favor notif\xedquenoslo de acuerdo con nuestra Pol\xedtica de Derechos de Autor."),i.Tb(),i.Tb(),i.Ub(84,"li"),i.Ub(85,"strong"),i.Ub(86,"span"),i.Lc(87,"Restricciones para el Uso del Software."),i.Tb(),i.Tb(),i.Ub(88,"span"),i.Lc(89,"\xa0Es propiedad intelectual de AutenTIC Latam. El uso del software se rige por estos t\xe9rminos. La reproducci\xf3n o distribuci\xf3n no autorizada del software est\xe1 expresamente prohibida por la ley y puede dar lugar a sanciones tanto civiles, como penales. Se podr\xe1 iniciar procedimientos en contra de los infractores."),i.Tb(),i.Tb(),i.Ub(90,"li"),i.Ub(91,"strong"),i.Ub(92,"span"),i.Lc(93,"Presentaciones."),i.Tb(),i.Tb(),i.Ub(94,"span"),i.Lc(95,'\xa0El Sitio o los Servicios de AutenTIC Latam pueden permitirle enviar, publicar, cargar o poner a disposici\xf3n (colectivamente, publicar) contenido como preguntas, mensajes p\xfablicos, ideas, comentarios de productos, comentarios y otro contenido (colectivamente, "Contenido del Usuario"), mismo que puede o no ser visibles por otros usuarios. Si usted publica Contenido de Usuario, a menos que indiquemos lo contrario, usted nos otorga una licencia no exclusiva, libre del pago de regal\xedas y totalmente sublicenciable para acceder, ver, usar, reproducir, modificar, adaptar, publicar, traducir, crear obras derivados, distribuir, copiar y mostrar dicho Contenido de Usuario en todo el mundo en cualquier forma, medio o tecnolog\xeda ahora conocida o desarrollada en el futuro. Tambi\xe9n permite que cualquier otro usuario vea, copie, acceda, almacene o reproduzca dicho Contenido de Usuario para el uso personal de ese usuario. Usted nos otorga el derecho de utilizar el nombre y otra informaci\xf3n sobre usted que env\xede en relaci\xf3n con dicho Contenido de Usuario. Usted declara y garantiza que: (a) posee o controla de otro modo todos los derechos sobre el Contenido del Usuario que publica; (b) el contenido del usuario que publica es veraz y exacto; y (c) el uso del Contenido del Usuario que publica no infringe estos T\xe9rminos ni ninguna ley aplicable. Para evitar dudas, el Contenido del Usuario, no incluye ning\xfan documento, como un contrato, divulgaci\xf3n o aviso que deposite en el servicio de Firma de ENotary para su procesamiento ("Documentos Electr\xf3nicos").'),i.Tb(),i.Tb(),i.Ub(96,"li"),i.Ub(97,"strong"),i.Ub(98,"span"),i.Lc(99,"Detecci\xf3n y Eliminaci\xf3n."),i.Tb(),i.Tb(),i.Ub(100,"span"),i.Lc(101,"\xa0Usted reconoce y acepta que eNotary y las personas que AutemTIC designe pueden o no, realizar una revisi\xf3n previa del Contenido del Usuario, antes de su aparici\xf3n en el Sitio o los Servicios de eNotary. Sin embargo, eNotary no tiene la obligaci\xf3n de hacerlo. Adem\xe1s, reconoce y acepta que eNotary se reserva el derecho (pero no asume la obligaci\xf3n), a su exclusivo criterio, de rechazar, mover, editar o eliminar cualquier Contenido de Usuario que se haya contribuido al Sitio o a los Servicios de eNotary. Sin perjuicio de lo anterior, eNotary y sus designados tendr\xe1n derecho a eliminar cualquier Contenido de Usuario que infrinja estos T\xe9rminos o que sea objetable, a entera discreci\xf3n de eNotary. Usted reconoce y acepta que eNotary no verifica, adopta, ratifica, ni sanciona el Contenido del Usuario, y acepta que debe evaluar y asumir todos los riesgos asociados con su uso del Contenido del Usuario o su confianza en la precisi\xf3n, integridad o utilidad del Contenido del Usuario."),i.Tb(),i.Tb(),i.Tb(),i.Ub(102,"p"),i.Ub(103,"span"),i.Lc(104,"RESTRICCIONES DE USO DEL SITIO"),i.Tb(),i.Tb(),i.Ub(105,"p"),i.Ub(106,"span"),i.Lc(107,"Al utilizar el Sitio, incluido cualquier Servicio de eNotary, usted acepta espec\xedficamente, no participar en ninguna actividad, ni transmitir ninguna informaci\xf3n que a nuestro exclusivo criterio:"),i.Tb(),i.Tb(),i.Ub(108,"ul",1),i.Ub(109,"li"),i.Ub(110,"span"),i.Lc(111,"Sea ilegal, o viole cualquier ley o disposici\xf3n colombiana."),i.Tb(),i.Tb(),i.Ub(112,"li"),i.Ub(113,"span"),i.Lc(114,"Incite actividades ilegales o discuta actividades ilegales con la intenci\xf3n de cometerlas"),i.Tb(),i.Tb(),i.Ub(115,"li"),i.Ub(116,"span"),i.Lc(117,"Viole cualquier derecho de terceros, incluidos, entre otros, el derecho a la privacidad, el derecho a la propia imagen, el derecho de autor, derechos de marca, patentes, secretos comerciales o industriales; o cualquier otra propiedad intelectual o derechos de propiedad"),i.Tb(),i.Tb(),i.Ub(118,"li"),i.Ub(119,"span"),i.Lc(120,"Sea da\xf1ino, amenazante, abusivo, acosador, indecente, difamatorio, sexualmente expl\xedcito o pornogr\xe1fico, discriminatorio, vulgar, profano, obsceno, calumnioso, incita al odio o violencia, o de otra manera objetable"),i.Tb(),i.Tb(),i.Ub(121,"li"),i.Ub(122,"span"),i.Lc(123,"Interfiera con el uso y disfrute de los Servicios por parte de terceros"),i.Tb(),i.Tb(),i.Ub(124,"li"),i.Ub(125,"span"),i.Lc(126,"Se proponga hacerse pasar por otra persona o entidad"),i.Tb(),i.Tb(),i.Ub(127,"li"),i.Ub(128,"span"),i.Lc(129,"Sea comercial de tal manera que infrinja estos T\xe9rminos, incluidos, entre otros, el uso del Sitio para correo no deseado, encuestas, concursos, esquemas piramidales u otros materiales publicitarios"),i.Tb(),i.Tb(),i.Ub(130,"li"),i.Ub(131,"span"),i.Lc(132,"Declare falsamente, tergiverse u oculte su afiliaci\xf3n con otra persona o entidad"),i.Tb(),i.Tb(),i.Ub(133,"li"),i.Ub(134,"span"),i.Lc(135,"Acceda o utilice la cuenta de otro usuario sin permiso"),i.Tb(),i.Tb(),i.Ub(136,"li"),i.Ub(137,"span"),i.Lc(138,"Distribuya virus inform\xe1ticos u otros c\xf3digos, archivos o programas que interrumpan, destruyan o limiten la funcionalidad de cualquier software o hardware o equipo de comunicaciones electr\xf3nicas"),i.Tb(),i.Tb(),i.Ub(139,"li"),i.Ub(140,"span"),i.Lc(141,"Interfiera, interrumpa, deshabilite, sobrecargue o destruya la funcionalidad o el uso de cualquier caracter\xedstica del Sitio, o los servidores o redes conectadas al Sitio, o cualquiera de los Servicios de ENotary"),i.Tb(),i.Tb(),i.Ub(142,"li"),i.Ub(143,"span"),i.Lc(144,'"Hackea" o accede sin permiso a nuestros registros privados o confidenciales, los de otro usuario, o los de cualquier otra persona'),i.Tb(),i.Tb(),i.Ub(145,"li"),i.Ub(146,"span"),i.Lc(147,"Solicita informaci\xf3n personal o confidencial de otros usuarios, incluyendo, entre otros, la direcci\xf3n, la informaci\xf3n de la tarjeta de cr\xe9dito o informaci\xf3n financiera, o las contrase\xf1as"),i.Tb(),i.Tb(),i.Ub(148,"li"),i.Ub(149,"span"),i.Lc(150,"Descompilar, hace ingenier\xeda inversa, desensambla o intenta obtener el c\xf3digo fuente del Sitio, excepto lo expresamente permitido en estos T\xe9rminos o por ley, a menos que sea permitido por la ley aplicable sin que exista consentimiento"),i.Tb(),i.Tb(),i.Ub(151,"li"),i.Ub(152,"span"),i.Lc(153,"Elimine, eluda, inhabilite, da\xf1e o interfiera de cualquier otro modo con las caracter\xedsticas relacionadas con la seguridad, o las caracter\xedsticas que hagan cumplir las limitaciones de uso del sitio"),i.Tb(),i.Tb(),i.Ub(154,"li"),i.Ub(155,"span"),i.Lc(156,"Utiliza medios autom\xe1ticos o manuales para violar las restricciones en los encabezados de exclusi\xf3n de robots en el sitio, si los hay, o evita o elude otras medidas empleadas para prevenir o limitar el acceso, por ejemplo, al participar en pr\xe1cticas como \u201cscreen scraping\u201d, \u201cdatabase scraping,\u201d o cualquier otra actividad, con el prop\xf3sito de obtener listas de usuarios u otra informaci\xf3n;"),i.Tb(),i.Tb(),i.Ub(157,"li"),i.Ub(158,"span"),i.Lc(159,"Modifique, copie, raspe u obtenga, exhibe, distribuye, publique, licencie, venda, alquile, arriende, preste, transfiera o comercialice cualquier material o contenido en el sitio"),i.Tb(),i.Tb(),i.Ub(160,"li"),i.Ub(161,"span"),i.Lc(162,"Utilice los servicios para realizar evaluaciones comparativas, o para compilar informaci\xf3n para un producto o servicio"),i.Tb(),i.Tb(),i.Ub(163,"li"),i.Ub(164,"span"),i.Lc(165,"Descargue (que no sean a trav\xe9s del almacenamiento en cach\xe9 de p\xe1ginas necesario para uso personal, o seg\xfan lo expresamente permitido por estos T\xe9rminos), distribuya, publique, transmita, realice, reproduzca, difunda, duplique, cargue, licencie, cree obras derivadas u ofrezca vender cualquier contenido u otra informaci\xf3n contenida u obtenida a trav\xe9s del Sitio o los Servicios de ENotary, por cualquier medio, excepto seg\xfan lo estipulado en estos T\xe9rminos o con el consentimiento previo por escrito de ENotary; o se propone hacer cualquiera de los anteriores."),i.Tb(),i.Tb(),i.Tb(),i.Ub(166,"p"),i.Ub(167,"span"),i.Lc(168,"Adem\xe1s, los Clientes no deber\xe1n, y no permitir\xe1n que otros lleven cabo, las siguientes actividades con respecto a los Servicios de eNotary:"),i.Tb(),i.Tb(),i.Ub(169,"ul",1),i.Ub(170,"li"),i.Ub(171,"span"),i.Lc(172,"Permitir el acceso a ellos, de una manera que evite las restricciones contractuales de uso; que excedan las m\xe9tricas de uso; o uso autorizado establecidas en estos T\xe9rminos, cualquier Plan de Suscripci\xf3n aplicable o la Pol\xedtica de Uso Razonable de eNotary"),i.Tb(),i.Tb(),i.Ub(173,"li"),i.Ub(174,"span"),i.Lc(175,'Licenciar, sublicenciar, vender, revender, alquilar, arrendar, transferir, distribuir o compartir en el tiempo, o realizar cualquier parte de los Servicios de eNotary o la documentaci\xf3n t\xe9cnica y funcional actual de eNotary para los Servicios de eNotary ("Documentaci\xf3n") disponibles para el acceso de terceros, a menos que se indique lo contrario en estos T\xe9rminos; o'),i.Tb(),i.Tb(),i.Ub(176,"li"),i.Ub(177,"span"),i.Lc(178,"Acceda o utilice los Servicios o la Documentaci\xf3n de eNotary con el fin de desarrollar u operar productos o servicios destinados a ser ofrecidos a terceros como competencia de los Servicios de eNotary o permita el acceso a un competidor directo de eNotary"),i.Tb(),i.Tb(),i.Ub(179,"li"),i.Ub(180,"span"),i.Lc(181,'No puede enmarcar "frame" el sitio, colocar ventanas emergentes sobre sus p\xe1ginas o de cualquier manera afectar la visualizaci\xf3n de sus p\xe1ginas. Puede vincular al sitio, siempre que reconozca y acepte que no vincular\xe1 el sitio a ning\xfan sitio web que contenga ning\xfan tema, nombre, material o informaci\xf3n inapropiada, profana, difamatoria, infractora, obscena, indecente o ilegal o que viole cualquier propiedad intelectual, propiedad, privacidad o derechos de imagen. Cualquier violaci\xf3n de esta disposici\xf3n puede, a nuestro exclusivo criterio, dar como resultado la terminaci\xf3n inmediata de su uso y acceso al Sitio.'),i.Tb(),i.Tb(),i.Ub(182,"li"),i.Ub(183,"span"),i.Lc(184,"Usted reconoce que no tenemos la obligaci\xf3n de monitorear su acceso o uso del sitio, o el de cualquier otra persona, para identificar violaciones de estos t\xe9rminos, o para revisar o editar cualquier contenido. Sin embargo, tenemos el derecho de hacerlo, con el fin de operar y mejorar el sitio (incluyendo, entre otros, prevenci\xf3n de fraude, evaluaci\xf3n de riesgos, investigaci\xf3n y soporte al cliente, an\xe1lisis y publicidad), para garantizar el cumplimiento de estos t\xe9rminos y para cumplir con la ley aplicable o la orden o requisito de un tribunal, decreto de consentimiento, agencia administrativa u otro organismo gubernamental."),i.Tb(),i.Tb(),i.Tb(),i.Ub(185,"p"),i.Ub(186,"span"),i.Lc(187,"POLITICA DE PRIVACIDAD"),i.Tb(),i.Tb(),i.Ub(188,"p"),i.Ub(189,"strong"),i.Ub(190,"span"),i.Lc(191,"Pol\xedtica de privacidad de\xa0"),i.Tb(),i.Tb(),i.Ub(192,"span"),i.Lc(193,"eNotary Usted reconoce que, a excepci\xf3n de lo descrito en estos T\xe9rminos o los T\xe9rminos Corporativos aplicables, la informaci\xf3n que nos proporcione o que recolectemos se usar\xe1 y se proteger\xe1 tal como se describe en el Aviso de Privacidad de eNotary. Por favor, lea la el Aviso de Privacidad atentamente."),i.Tb(),i.Tb(),i.Ub(194,"ul",1),i.Ub(195,"li"),i.Ub(196,"strong"),i.Ub(197,"span"),i.Lc(198,"Acceso y Divulgaci\xf3n."),i.Tb(),i.Tb(),i.Ub(199,"span"),i.Lc(200,"\xa0Podemos acceder, preservar o compartir su informaci\xf3n cuando creemos, de buena fe, que tal intercambio es razonablemente necesario para investigar, prevenir o tomar medidas con respecto a posibles actividades ilegales o para cumplir con procesos legales (por ejemplo, un requerimiento u otro proceso legal). Tambi\xe9n podemos compartir su informaci\xf3n en situaciones que impliquen amenazas potenciales a la seguridad f\xedsica de cualquier persona, violaciones al Aviso de Privacidad de ENotary o de los contratos o t\xe9rminos de los usuarios; o para responder a reclamaciones respecto posibles violaci\xf3n de derechos de terceros y/o para proteger los derechos, propiedad y seguridad de ENotary, nuestros empleados, usuarios o el p\xfablico en general. Esto puede implicar el intercambio de su informaci\xf3n con la polic\xeda, agencias o autoridades gubernamentales, tribunales y/u otras organizaciones."),i.Tb(),i.Tb(),i.Tb(),i.Ub(201,"p"),i.Ub(202,"span"),i.Lc(203,"T\xc9RMINOS ESPEC\xcdFICOS DE LOS SERVICIOS DE ENOTARY"),i.Tb(),i.Tb(),i.Ub(204,"ul",1),i.Ub(205,"li"),i.Ub(206,"span"),i.Lc(207,"Derecho a usar los Servicios de eNotary."),i.Tb(),i.Tb(),i.Ub(208,"li"),i.Ub(209,"strong"),i.Ub(210,"span"),i.Lc(211,"Sujeto a estos T\xe9rminos."),i.Tb(),i.Tb(),i.Ub(212,"span"),i.Lc(213,"\xa0eNotary proporcionar\xe1 los Servicios de eNotary a los Clientes, otorga a cada Cliente un derecho y una licencia, ambos limitados, de acuerdo al monto de dinero que posea en su cuenta, no exclusivos e intransferibles, durante el plazo estipulado, \xfanicamente para fines comerciales internos y en todo momento de acuerdo con la documentaci\xf3n, para: (a) utilizar los Servicios de eNotary; (b) implementar, configurar y, por medio de su Administrador(es) de Cuenta, permitir a sus Usuarios Autorizados acceder y usar los Servicios de eNotary, hasta cualquier l\xedmite o m\xe1ximo aplicable; y (c) para acceder y usar la Documentaci\xf3n."),i.Tb(),i.Tb(),i.Ub(214,"li"),i.Ub(215,"strong"),i.Ub(216,"span"),i.Lc(217,"Administrador de Cuenta."),i.Tb(),i.Tb(),i.Ub(218,"span"),i.Lc(219,'\xa0El Cliente podr\xe1 asignar y expresamente autorizar a Usuarios Autorizados como su agente para administrar la Cuenta del Cliente y la administraci\xf3n de la Cuenta del Cliente, misma que incluye de manera enunciativa m\xe1s no limitativa, la configuraci\xf3n de los ajustes de administraci\xf3n, asignaci\xf3n de acceso y de autorizaci\xf3n de uso, solicitar servicios adicionales o diferentes, proporcionando registros de utilizaci\xf3n y rendimiento, ejecutando campa\xf1as y eventos aprobados, asistiendo en la integraci\xf3n de productos de terceros y aceptando avisos, divulgaciones y t\xe9rminos y condiciones ("Administrador de Cuenta"). El Cliente podr\xe1 designar a un empleado o a un tercero como socio comercial o a un contratista para actuar como su Administrador(es) de Cuenta y podr\xe1 cambiar dichas asignaciones en cualquier momento por medio de su Cuenta.'),i.Tb(),i.Tb(),i.Tb(),i.Ub(220,"p"),i.Ub(221,"span"),i.Lc(222,"DATOS"),i.Tb(),i.Tb(),i.Ub(223,"ul",1),i.Ub(224,"li"),i.Ub(225,"strong"),i.Ub(226,"span"),i.Lc(227,"Datos en General."),i.Tb(),i.Tb(),i.Ub(228,"span"),i.Lc(229,"\xa0Usted es el \xfanico responsable de determinar la idoneidad de los Servicios de eNotary para su empresa u organizaci\xf3n, as\xed como de cumplir con todas las disposiciones, leyes o convenciones aplicables a los datos que proporciona, y su uso de los Servicios y el Sitio de eNotary"),i.Tb(),i.Tb(),i.Ub(230,"li"),i.Ub(231,"strong"),i.Ub(232,"span"),i.Lc(233,"Datos Personales."),i.Tb(),i.Tb(),i.Ub(234,"span"),i.Lc(235,"\xa0El Cliente garantiza que su recolecci\xf3n y uso de cualquier informaci\xf3n personal o datos proporcionados durante el uso del Sitio, cumple con todas las leyes, normas y reglamentos de protecci\xf3n de datos aplicables. El Cliente y sus Usuarios Autorizados reconocen que eNotary puede procesar o tratar dichos datos personales de conformidad con la Pol\xedtica de Privacidad de eNotary."),i.Tb(),i.Tb(),i.Ub(236,"li"),i.Ub(237,"strong"),i.Ub(238,"span"),i.Lc(239,"Garant\xedas del Cliente."),i.Tb(),i.Tb(),i.Ub(240,"span"),i.Lc(241,"\xa0El Cliente declara y garantiza a eNotary que: (a) tiene todos los derechos y las facultades necesarias para utilizar los Servicios de eNotary en virtud de estos T\xe9rminos y para otorgar todos los derechos y autorizaciones aplicables, seg\xfan se describe en estos T\xe9rminos; (b) es responsable de todo y cualquier uso de los Servicios de eNotary asociados con su Cuenta; (c) es el \xfanico responsable de mantener la confidencialidad de sus nombres de Cuenta y contrase\xf1a(s); (d) acepta notificar inmediatamente a eNotary sobre cualquier uso no autorizado de la Cuenta del Cliente del que tenga conocimiento; (e) acepta que eNotary no ser\xe1 responsable de las p\xe9rdidas sufridas como resultado del uso por parte de un tercero de su Cuenta, independientemente de si dicho uso es con o sin su conocimiento y consentimiento; (f) usar\xe1 los Servicios de eNotary solo para fines legales y sujetos a estos T\xe9rminos; (g) cualquier informaci\xf3n que env\xede a ENotary es verdadera, precisa y correcta; y (h) no intentar\xe1 obtener acceso no autorizado al Sistema ni a los Servicios de ENotary, a otras cuentas, sistemas inform\xe1ticos o redes bajo el control o la responsabilidad de ENotary mediante pirater\xeda inform\xe1tica, descifrado, extracci\xf3n de contrase\xf1as o cualquier otro medio no autorizado."),i.Tb(),i.Tb(),i.Ub(242,"li"),i.Ub(243,"strong"),i.Ub(244,"span"),i.Lc(245,"Confidencialidad.Informaci\xf3n Confidencial."),i.Tb(),i.Tb(),i.Ub(246,"span"),i.Lc(247,'\xa0"Informaci\xf3n Confidencial" se refiere (a) para ENotary, los Servicios y Documentaci\xf3n de ENotary, (b) para el Cliente, los Datos del Cliente; (c) cualquier otra informaci\xf3n de una de las partes que sea divulgada de manera escrita o verbal y que est\xe1 sea designada como confidencial o propietaria en el tiempo en que dicha informaci\xf3n fue divulgada (y, en el caso de divulgaciones verbales, resumidas por escrito en los treinta (30) d\xedas siguientes a la divulgaci\xf3n inicial y entregadas al Receptor), o que debido a la naturaleza de la informaci\xf3n, el Receptor debiera claramente entender que dicha informaci\xf3n divulgada por la parte, es informaci\xf3n confidencial de dicha parte; y (d) los t\xe9rminos y condiciones espec\xedficas de estos T\xe9rminos, y cualquier modificaci\xf3n y anexo del mismo, entre las partes. La Informaci\xf3n Confidencial no deber\xe1 incluir ninguna informaci\xf3n que: (i) haya sido o llegue a ser de conocimiento p\xfablico, sin que el receptor tenga la culpa de esto o sea como resultado de incumplimiento de estos T\xe9rminos; (ii) estaba leg\xedtimamente en posesi\xf3n del Receptor en el momento de dicha divulgaci\xf3n, sin restricci\xf3n alguna de uso o divulgaci\xf3n; (iii) fue desarrollada independientemente por el Receptor sin la utilizaci\xf3n de la Informaci\xf3n Confidencial de la parte divulgadora; o (iv) fue obtenida leg\xedtimamente por el Receptor por medio de un tercero que no ten\xeda obligaci\xf3n de confidencialidad y sin restricciones de uso o divulgaci\xf3n. Toda la informaci\xf3n proporcionada a ENotary que no sea Informaci\xf3n Confidencial se tratar\xe1 de acuerdo con la Pol\xedtica de Privacidad de ENotary'),i.Tb(),i.Tb(),i.Ub(248,"li"),i.Ub(249,"strong"),i.Ub(250,"span"),i.Lc(251,"Uso Restringido y No Divulgaci\xf3n."),i.Tb(),i.Tb(),i.Ub(252,"span"),i.Lc(253,'\xa0Durante y despu\xe9s del Periodo de Suscripci\xf3n, la parte receptora de la Informaci\xf3n Confidencial ("Receptor") deber\xe1: utilizar la Informaci\xf3n Confidencial de la otra parte solo para los prop\xf3sitos para los cuales se proporcion\xf3 dicha informaci\xf3n; (b) no divulgar dicha Informaci\xf3n Confidencial a un tercero, salvo que sea necesario, a sus abogados, auditores, consultores y proveedores de servicios, que est\xe9n bajo obligaciones de confidencialidad al menos tan restrictivas como las que se incluyen en este documento; y (c) proteger dicha Informaci\xf3n Confidencial del uso y divulgaci\xf3n no autorizado en la misma medida (pero utilizando un grado de cuidado no menor al razonable) que protege su propia Informaci\xf3n Confidencial o de naturaleza similar. Sin perjuicio de lo anterior, el Cliente autoriza expresamente a ENotary a utilizar y procesar o tratar los Datos del Cliente tal como se describe en la Pol\xedtica de Privacidad de ENotary, la cual incluye, entre otros, la entrega de Documentos Electr\xf3nicos seg\xfan lo indicado por el Cliente al usar los Servicios de ENotary y compartir los Datos de la Transacci\xf3n (como se define en el Programa de Firmas) con personas que est\xe1n autorizadas a ver, aprobar o firmar Documentos Electr\xf3nicos creados por el Cliente.'),i.Tb(),i.Tb(),i.Ub(254,"li"),i.Ub(255,"strong"),i.Ub(256,"span"),i.Lc(257,"Divulgaci\xf3n Necesaria."),i.Tb(),i.Tb(),i.Ub(258,"span"),i.Lc(259,"\xa0Si la ley exige que ENotary revele Informaci\xf3n Confidencial, ENotary dar\xe1 aviso por escrito al Cliente antes de hacer la divulgaci\xf3n, a menos dicho aviso est\xe9 prohibido por alguna disposici\xf3n o procedimiento legal o administrativo, y ENotary ayudar\xe1 al Cliente a obtener, cuando est\xe9 disponible, una orden que proteja la Informaci\xf3n Confidencial de la divulgaci\xf3n p\xfablica."),i.Tb(),i.Tb(),i.Ub(260,"li"),i.Ub(261,"strong"),i.Ub(262,"span"),i.Lc(263,"Propiedad."),i.Tb(),i.Tb(),i.Ub(264,"span"),i.Lc(265,"\xa0Sin perjuicio de cualquier otra disposici\xf3n de estos T\xe9rminos, eNotary reconoce que, entre las partes, toda la Informaci\xf3n Confidencial que recibe del Cliente, incluidas todas las copias que posee o controla el Receptor, por cualquier medio, es propiedad exclusiva del Cliente. Nada en estos T\xe9rminos confiere a ENotary ning\xfan derecho, t\xedtulo o inter\xe9s sobre la Informaci\xf3n Confidencial del Cliente. La incorporaci\xf3n de ENotary de la Informaci\xf3n Confidencial de la parte divulgadora a cualquiera de sus propios materiales no har\xe1 que la Informaci\xf3n Confidencial sea considerada como no confidencial."),i.Tb(),i.Tb(),i.Tb(),i.Ub(266,"p"),i.Ub(267,"span"),i.Lc(268,"PLAZO Y TERMINACI\xd3N"),i.Tb(),i.Tb(),i.Ub(269,"ul",1),i.Ub(270,"li"),i.Ub(271,"strong"),i.Ub(272,"span"),i.Lc(273,"Terminaci\xf3n \u2013 Visitantes del Sitio."),i.Tb(),i.Tb(),i.Ub(274,"span"),i.Lc(275,"\xa0Un Visitante del Sitio podr\xe1 finalizar su uso del Sitio en cualquier momento al dejar de usar el Sitio. eNotary puede cancelar el uso del Sitio, a quien as\xed lo determine, y negar el acceso al Sitio a su entera discreci\xf3n, por cualquier raz\xf3n o inclusive sin raz\xf3n alguna, incluyendo la violaci\xf3n a estos T\xe9rminos."),i.Tb(),i.Tb(),i.Ub(276,"li"),i.Ub(277,"strong"),i.Ub(278,"span"),i.Lc(279,"Suspensi\xf3n del Acceso a los Servicios de eNotary.\xa0"),i.Tb(),i.Tb(),i.Ub(280,"span"),i.Lc(281,"eNotary podr\xe1 suspender el uso de cualquiera de los servicios, remover cualquier contenido o deshabilitar o terminar cualquier Cuenta o Usuario Autorizado que ENotary, razonablemente y en buena fe, crea que ha violado estos T\xe9rminos. ENotary usar\xe1 esfuerzos comercialmente razonables para notificar a dicho Usuario antes de cualquier suspensi\xf3n o des habilitaci\xf3n, a menos que ENotary crea que: (a) le esta prohibido de actuar de esa manera en base a la ley aplicable o bajo alg\xfan procedimiento legal, tal como proceso un administrativo, gubernamental o judicial, ordenes, mandatos o similares; (b) sea necesario el retraso de dicha notificaci\xf3n para evitar da\xf1o eminente a los Servicios de ENotary o a terceros. En las circunstancias en donde la notificaci\xf3n haya sido retrasada, ENotary har\xe1 dicha notificaci\xf3n cuando, y solamente cuando, dichas restricciones indicadas en el p\xe1rrafo anterior ya no sean aplicables."),i.Tb(),i.Tb(),i.Ub(282,"li"),i.Ub(283,"strong"),i.Ub(284,"span"),i.Lc(285,"T\xe9rmino."),i.Tb(),i.Tb(),i.Ub(286,"span"),i.Lc(287,'\xa0El per\xedodo de vigencia de estos T\xe9rminos (el "Plazo") con respecto a los Servicios de ENotary, comienza en la fecha en que el Cliente los acepta y contin\xfaa hasta que deje de realizar transacciones o cese el uso de los Servicios de eNotary.'),i.Tb(),i.Tb(),i.Ub(288,"li"),i.Ub(289,"strong"),i.Ub(290,"span"),i.Lc(291,"Terminaci\xf3n por Parte del Cliente."),i.Tb(),i.Tb(),i.Ub(292,"span"),i.Lc(293,"\xa0Usted puede rescindir su Cuenta, en cualquier momento, mediante un aviso por escrito a ENotary con diez (10) d\xedas de anticipaci\xf3n. Si usted desea rescindir, debe notificarlo, poni\xe9ndose en contacto con nosotros."),i.Tb(),i.Tb(),i.Ub(294,"li"),i.Ub(295,"strong"),i.Ub(296,"span"),i.Lc(297,"Terminaci\xf3n por parte de eNotary."),i.Tb(),i.Tb(),i.Ub(298,"span"),i.Lc(299,'\xa0Un Cliente estar\xe1 en incumplimiento de estos T\xe9rminos si: (a) no paga oportunamente cualquier cantidad que se nos adeude a nosotros o una Afiliada nuestra; (b) \xe9l o un Usuario Autorizado asociado con su Cuenta incumple cualquier disposici\xf3n de estos T\xe9rminos o viola cualquier pol\xedtica publicada y que sea aplicable a los Servicios de ENotary; (c) est\xe1 o queda sujeto a cualquier procedimiento bajo el C\xf3digo de Bancarrota o leyes similares; o (d) si, a nuestro exclusivo criterio, consideramos que el uso continuo de los Servicios de ENotary por parte del Cliente (o sus Usuarios o Usuarios Autorizados) crea un riesgo legal para ENotary representa una amenaza para la seguridad de los Servicios de ENotary o los Clientes de ENotary. Si un Cliente se encuentre en incumplimiento, podemos, sin previo aviso: (i) suspender su Cuenta y el uso de los Servicios de ENotary; (ii) finalizar su Cuenta; (iii) cobrar tarifas de reactivaci\xf3n para reactivar su Cuenta; y (iv) buscar cualquier otro remedio disponible para nosotros. Un "Afiliado" de ENotary significa cualquier entidad legal que sea propiedad de ENotary, o que posea ENotary. o que est\xe1 bajo el control com\xfan de ENotary Un Cliente "Filial" significa cualquier entidad legal que el Cliente sea due\xf1o de, o que la misma sea due\xf1o del Cliente o que este bajo el control del Cliente. "Control" y "propiedad" significa que posee m\xe1s del 50% de participaci\xf3n accionaria en una entidad o que tiene el derecho a dirigir la administraci\xf3n de la entidad.'),i.Tb(),i.Tb(),i.Tb(),i.Ub(300,"p"),i.Ub(301,"span"),i.Lc(302,"GARANT\xcdAS Y LIMITACIONES DE RESPONSABILIDAD"),i.Tb(),i.Tb(),i.Ub(303,"p"),i.Ub(304,"span"),i.Lc(305,'Los servicios de eNotary, la documentaci\xf3n y el sitio se proporcionan "tal cual" y "seg\xfan su disponibilidad". El uso que usted haga de los servicios, la documentaci\xf3n y el sitio de eNotary, ser\xe1 bajo su propio riesgo. eNotary y sus respectivos oficiales, directores, empleados, miembros, accionistas, agentes, afiliados, subsidiarias ("partes de d eNotary "): (a) no realizan ninguna declaraci\xf3n o garant\xeda de ning\xfan tipo, ya sea expresa, impl\xedcita (ya sea de hecho o derecho), o legal, en cuanto a cualquier asunto; (b) excluyen expresamente todas y cualquier garant\xeda impl\xedcita de comerciabilidad, idoneidad para un prop\xf3sito particular, calidad, precisi\xf3n y propiedad; y (c) no garantizan que los servicios, la documentaci\xf3n, o el sitio de ENotary est\xe9n o estar\xe1n libres de errores, cumplir\xe1n con todos los requisitos, o ser\xe1n oportunos o seguros. usted ser\xe1 el \xfanico responsable por cualquier da\xf1o resultante del uso de los servicios, documentaci\xf3n, o del sitio de ENotary.'),i.Tb(),i.Tb(),i.Ub(306,"p"),i.Ub(307,"span"),i.Lc(308,'Las partes de ENotary no ofrecen ninguna garant\xeda o declaraci\xf3n respecto de que los servicios, la documentaci\xf3n y el sitio de ENotary se han proporcionado con debida competencia, cuidado y diligencia o respecto de la exactitud o integridad de los servicios de ENotary, la documentaci\xf3n y el contenido del sitio; y no asume ninguna responsabilidad por cualquier: (i) error o imprecisiones en el contenido; (ii) lesiones personales o da\xf1os materiales, de cualquier naturaleza, como resultado de su acceso y uso de los servicios, la documentaci\xf3n y el sitio de ENotary; (iii) cualquier acceso no autorizado o uso de nuestros servidores y/o cualquier informaci\xf3n personal y/o informaci\xf3n financiera almacenada en el mismo; (iv) cualquier interrupci\xf3n o suspensi\xf3n de la transmisi\xf3n al o desde el sitio; (v) cualquier error, virus, "trojan" o similares, mismas que pudieran ser transmitidas a o desde del sitio, mediante la participaci\xf3n de terceros; (vi) cualquier p\xe9rdida de sus datos o contenidos del sitio; y/o (vii) cualquier error u omisi\xf3n en cualquier contenido o cualquier p\xe9rdida o da\xf1o de cualquier tipo, incurrido como resultado del uso de cualquier contenido publicado, enviado por correo electr\xf3nico, transmitido o de otra forma disponible a trav\xe9s de los servicios de ENotary, la documentaci\xf3n, y el sitio. usted no tendr\xe1 derecho a realizar o eximirse de ninguna declaraci\xf3n o garant\xeda en nombre de ENotary a un tercero. debido a que algunos estados y jurisdicciones no permiten limitaciones en las garant\xedas impl\xedcitas, la limitaci\xf3n antedicha puede no aplicarse a usted. en ese caso, dichas garant\xedas est\xe1n limitadas al m\xe1ximo alcance permitido por ley, y por el periodo m\xednimo, permitido por las leyes, para el periodo de la garant\xeda obligatoria aplicable.'),i.Tb(),i.Tb(),i.Ub(309,"p"),i.Ub(310,"span"),i.Lc(311,"Las partes de documentos no garantizan, respaldan, avalan, ni asumen la responsabilidad por ning\xfan producto o servicio anunciado o ofrecido por un tercero a trav\xe9s del sitio, y las partes en cualquier documento, no ser\xe1n parte, ni de ninguna manera responsables de supervisar ninguna transacci\xf3n entre usted y los proveedores de productos o servicios de terceros. usted es el \xfanico responsable de todas sus comunicaciones e interacciones con otras personas con las que se comunica o interact\xfaa como resultado de su uso del sitio."),i.Tb(),i.Tb(),i.Ub(312,"ul",1),i.Ub(313,"li"),i.Ub(314,"strong"),i.Ub(315,"span"),i.Lc(316,"Limitaci\xf3n de responsabilidad por da\xf1os consecuenciales.\xa0"),i.Tb(),i.Tb(),i.Ub(317,"span",2),i.Lc(318,'sin perjuicio de lo contrario incluido en estos t\xe9rminos, eNotary no ser\xe1 responsable ante usted por ning\xfan da\xf1o consecuente, incidental, especial, cubierto, punitivo o que sea utilizado a manera de ejemplo, en cuanto al pago de da\xf1os, derivado o relacionado con las transacciones contempladas bajo estos t\xe9rminos, incluyendo, pero no limitado a, buena fama, p\xe9rdida de trabajo, p\xe9rdida de beneficios o p\xe9rdida de negocios, incluso si se pudo prever de la probabilidad de tales p\xe9rdidas, y de si dichas reclamaciones se hacen valer con base en un contrato, agravio (incluyendo negligencia) o cualquier otra teor\xeda legal,hasta el m\xe1ximo permitido por la ley, en ning\xfan caso las partes de ENotary ser\xe1n responsables ante usted por cualquier da\xf1o directo, indirecto, incidental, especial, punitivo o consecuencial que resulte de cualquiera: (a) uso del sitio, documentaci\xf3n, o servicios de ENotary; (b) errores, faltas o imprecisiones en el contenido; (c) da\xf1os personales o da\xf1os materiales, de cualquier naturaleza, resultantes de su acceso y uso del sitio, la documentaci\xf3n o los servicios de ENotary; (d) cualquier acceso no autorizado o uso de nuestros servidores y/o cualquier informaci\xf3n personal y/o informaci\xf3n financiera almacenada en el mismo; (e) cualquier interrupci\xf3n o suspensi\xf3n de transmisi\xf3n a o desde nuestros servidores; (f) cualquier error, virus, "trojan", o similares, que puedan ser transmitidos por o desde el sitio, la documentaci\xf3n o los servicios de ENotary mediante la participaci\xf3n de un tercero; (g) cualquier p\xe9rdida de sus datos o contenido desde el sitio, la documentaci\xf3n o los servicios de ENotary; (h) cualquier error u omisi\xf3n en cualquier contenido o cualquier p\xe9rdida o da\xf1o de cualquier tipo, incurrido como resultado del uso de cualquier contenido publicado, transmitido o de otro modo puesto a disposici\xf3n, a trav\xe9s del sitio, la documentaci\xf3n o los servicios de, ya sea ENotary basado en una garant\xeda, contrato, agravio (incluyendo negligencia), o cualquier otra teor\xeda legal, ya sea que las partes de ENotary hubieran sido advertidas de la posibilidad de dichos da\xf1os; y/o (i) la divulgaci\xf3n de informaci\xf3n de conformidad con estos t\xe9rminos o con nuestro aviso de privacidad.'),i.Tb(),i.Tb(),i.Ub(319,"li"),i.Ub(320,"strong"),i.Ub(321,"span"),i.Lc(322,"Asignaciones Independientes de Riesgo."),i.Tb(),i.Tb(),i.Ub(323,"span"),i.Lc(324,"\xa0Cada disposici\xf3n de estos T\xe9rminos establece una limitaci\xf3n de responsabilidad, exenci\xf3n de garant\xedas o exclusi\xf3n de da\xf1os y perjuicios que representan una asignaci\xf3n acordada entre las partes, de los riesgos de estos T\xe9rminos. Esta asignaci\xf3n es un elemento esencial de las bases de la negociaci\xf3n entre las partes. Cada una de estas disposiciones es divisible e independiente de todas las dem\xe1s disposiciones de estos T\xe9rminos, y cada una de estas disposiciones se aplicar\xe1 incluso si las garant\xedas en estos T\xe9rminos han fallado en su prop\xf3sito esencial."),i.Tb(),i.Tb(),i.Tb(),i.Ub(325,"p"),i.Ub(326,"span"),i.Lc(327,"GENERAL"),i.Tb(),i.Tb(),i.Ub(328,"ul",1),i.Ub(329,"li"),i.Ub(330,"strong"),i.Ub(331,"span"),i.Lc(332,"Contenido de Terceros."),i.Tb(),i.Tb(),i.Ub(333,"span"),i.Lc(334,"\xa0Podemos proporcionar, o terceros pueden proporcionar, enlaces a sitios web de terceros, servicios o recursos que est\xe1n fuera de nuestro control. No hacemos ninguna declaraci\xf3n en cuanto a la calidad, idoneidad, funcionalidad o legalidad de cualquier contenido de terceros de los cuales se hayan proporcionado enlaces, y usted renuncia a cualquier reclamaci\xf3n que pueda tener contra nosotros con respecto a dichos servicios. eNotary NO ES RESPONSABLE DEL CONTENIDO EN INTERNET O DE LAS P\xc1GINAS WEB QUE SE ENCUENTRAN FUERA DEL SITIO O DE LAS PUBLICACIONES DE CONTENIDO CREADAS POR LOS USUARIOS. Su correspondencia o tratos comerciales, o la participaci\xf3n en promociones de anunciantes o socios encontrados en o a trav\xe9s del Sitio, incluido el pago y la entrega de bienes o servicios relacionados, y cualquier otro t\xe9rmino, condici\xf3n, garant\xeda o representaci\xf3n asociada con tales transacciones, son \xfanicamente entre usted y dicho anunciante o socio. Usted acepta que no somos responsables de ninguna p\xe9rdida o da\xf1o de ning\xfan tipo incurrido como resultado de tales transacciones o como resultado de la presencia de dichos anunciantes o enlaces a sitios web o recursos de terceros en el Sitio."),i.Tb(),i.Tb(),i.Ub(335,"li"),i.Ub(336,"strong"),i.Ub(337,"span"),i.Lc(338,"Relaci\xf3n."),i.Tb(),i.Tb(),i.Ub(339,"span"),i.Lc(340,"\xa0En todo momento, usted y ENotary son contratistas independientes, y no son los agentes o representantes del otro. Estos t\xe9rminos no pretenden crear una relaci\xf3n de negocio conjunto, sociedad o franquicia entre las partes. Los que no son partes no se benefician y no pueden hacer cumplir estos T\xe9rminos. No hay terceros beneficiarios de estos T\xe9rminos. No se debe manifestar a nadie que usted es un agente de ENotary o que est\xe1n autorizado para vincular o comprometer a ENotary de cualquier forma sin la autorizaci\xf3n previa por escrito de ENotary."),i.Tb(),i.Tb(),i.Ub(341,"li"),i.Ub(342,"strong"),i.Ub(343,"span"),i.Lc(344,"Transmisibilidad."),i.Tb(),i.Tb(),i.Ub(345,"span"),i.Lc(346,"\xa0No puede transmitir o ceder sus derechos u obligaciones en virtud de estos T\xe9rminos sin el previo consentimiento por escrito de ENotary. Si se otorgara el consentimiento, estos T\xe9rminos obligar\xe1n a sus sucesores y cesionarios. Cualquier intento de su parte para transferir sus derechos, obligaciones u obligaciones en virtud de estos T\xe9rminos, salvo lo expresamente estipulado en estos T\xe9rminos, ser\xe1 nulo. ENotary podr\xe1 libremente transmitir, bajo estos T\xe9rminos, sus derechos, deberes y obligaciones."),i.Tb(),i.Tb(),i.Ub(347,"li"),i.Ub(348,"strong"),i.Ub(349,"span"),i.Lc(350,"Fuerza Mayor."),i.Tb(),i.Tb(),i.Ub(351,"span"),i.Lc(352,"\xa0Excepto por cualquier obligaci\xf3n de pago, ni usted ni ENotary ser\xe1 responsable por el incumplimiento de cualquier obligaci\xf3n bajo estos T\xe9rminos en la medida en que dicha falla sea causada por un evento de fuerza mayor (incluidos casos fortuitos, desastres naturales, guerra, disturbios civiles, acci\xf3n de entidad gubernamental, huelga y otras causas fuera del control razonable de la parte afectada). La parte afectada por el evento de fuerza mayor proporcionar\xe1 un aviso a la otra parte dentro de un plazo comercialmente razonable y est\xe1 har\xe1 los esfuerzos comercialmente razonables para reanudar el funcionamiento tan pronto como sea posible. Las obligaciones no realizadas debido a un evento de fuerza mayor se realizar\xe1n tan pronto como sea razonablemente posible cuando dicho evento de fuerza mayor concluya."),i.Tb(),i.Tb(),i.Ub(353,"li"),i.Ub(354,"strong"),i.Ub(355,"span"),i.Lc(356,"Exenci\xf3n."),i.Tb(),i.Tb(),i.Ub(357,"span"),i.Lc(358,"\xa0La renuncia por usted o por parte de ENotary de cualquier incumplimiento o de cualquier disposici\xf3n de estos T\xe9rminos no exime de ning\xfan otro incumplimiento. El incumplimiento de cualquiera de las partes en estos T\xe9rminos para insistir en el cumplimiento estricto de cualquier convenio u obligaci\xf3n de conformidad con estos T\xe9rminos no ser\xe1 una renuncia al derecho de dicha parte a exigir un cumplimiento estricto en el futuro, ni tampoco se interpretar\xe1 como una novaci\xf3n de estos t\xe9rminos."),i.Tb(),i.Tb(),i.Ub(359,"li"),i.Ub(360,"strong"),i.Ub(361,"span"),i.Lc(362,"Divisibilidad."),i.Tb(),i.Tb(),i.Ub(363,"span"),i.Lc(364,"\xa0Si se determina que alguna parte de estos T\xe9rminos es ilegal, no exigible o inv\xe1lida, las partes restantes de estos T\xe9rminos permanecer\xe1n en pleno vigor y efecto. Si se determina que cualquier limitaci\xf3n o restricci\xf3n importante en la concesi\xf3n de una licencia para usted en virtud de estos T\xe9rminos es ilegal, inaplicable o no v\xe1lida, la licencia terminar\xe1 inmediatamente."),i.Tb(),i.Tb(),i.Tb(),i.Ub(365,"p"),i.Ub(366,"span"),i.Lc(367,"LIMITACIONES ADICIONALES PARA EL USO Y RESPONSABILIDADES DEL CLIENTE"),i.Tb(),i.Tb(),i.Ub(368,"p"),i.Ub(369,"span"),i.Lc(370,"La autorizaci\xf3n de eNotary respecto del servicio est\xe1 condicionada a que el Cliente reconozca y acepte lo siguiente:"),i.Tb(),i.Tb(),i.Ub(371,"ul",1),i.Ub(372,"li"),i.Ub(373,"span"),i.Lc(374,"eNotary facilita la firma o formalizaci\xf3n de Documentos Electr\xf3nicos entre las partes de esos Documentos Electr\xf3nicos. No se puede interpretar que nada en este Anexo haga que eNotary sea parte de ning\xfan Documento Electr\xf3nico que sea procesado a trav\xe9s de la Firma de eNotary, y por lo tanto, eNotary no realiza ninguna declaraci\xf3n, ni garant\xeda con respecto a las transacciones que se pretende realizar mediante cualquier Documento Electr\xf3nico."),i.Tb(),i.Tb(),i.Ub(375,"li"),i.Ub(376,"span"),i.Lc(377,"Entre eNotary y el Cliente, el Cliente el \xfanico que tiene el control y la responsabilidad sobre el contenido, la calidad y el formato de cualquier Documento Electr\xf3nico. Los documentos almacenados por eNotary en el Sistema se mantienen en forma encriptada, y eNotary no tiene control ni acceso a ninguno de sus contenidos."),i.Tb(),i.Tb(),i.Ub(378,"li"),i.Ub(379,"span"),i.Lc(380,"Ciertos tipos de contratos y documentos pueden estar exceptuados de la aplicaci\xf3n de las leyes de firma electr\xf3nica (por ejemplo, testamentos y contratos relacionados con el derecho familiar), o pueden estar sujetos a regulaciones espec\xedficas que sean promulgadas por distintas autoridades gubernamentales, con respecto a la utilizaci\xf3n de firmas electr\xf3nicas y registros electr\xf3nicos. ENotary no es responsable de determinar si un Documento Electr\xf3nico, en particular est\xe1 (i) sujeto a una excepci\xf3n a las leyes de firma electr\xf3nica aplicables; (ii) sujeto a promulgaciones de autoridades particulares; o (iii) si se puede formar o crear legalmente mediante el uso de firmas electr\xf3nicas."),i.Tb(),i.Tb(),i.Ub(381,"li"),i.Ub(382,"span"),i.Lc(383,"eNotary no es responsable de determinar durante cu\xe1nto tiempo se requiere que los contratos, documentos y otros registros se conserven o almacenen bajo cualquier ley, disposici\xf3n o proceso legal o de autoridad administrativa seg\xfan sea aplicable. Adem\xe1s, ENotary no es responsable de proporcionar los Documentos Electr\xf3nicos u otros documentos del Cliente a terceros;"),i.Tb(),i.Tb(),i.Ub(384,"li"),i.Ub(385,"span"),i.Lc(386,'Ciertas leyes o reglamentos de protecci\xf3n al consumidor o similares pueden imponer requisitos especiales con respecto a las transacciones electr\xf3nicas que involucren a uno o m\xe1s "consumidores", tales como (entre otros) requisitos para que el consumidor acepte el m\xe9todo de contrataci\xf3n y/o que al consumidor se le proporcione una copia, o acceso a una copia, de un documento u otro registro escrito de la transacci\xf3n que no sea electr\xf3nico. ENotary no es, ni ser\xe1 responsable de: (i) determinar si una transacci\xf3n en particular involucra a un "consumidor"; (ii) proporcionar u obtener dichos consentimientos o determinar si dichos consentimientos han sido retirados; (iii) proporcionar informaci\xf3n o divulgaciones en relaci\xf3n con cualquier intento de obtener dichos consentimientos; (iv) proporcionar revisi\xf3n legal para, actualizar o corregir cualquier informaci\xf3n o divulgaci\xf3n dada en el momento o de manera previa; (v) proporcionar tales copias o acceso, excepto a como se indica expresamente en la Documentaci\xf3n para todas las transacciones, del consumidor o de otro modo; o (vi) en caso contrario, cumplir con tales requisitos especiales.'),i.Tb(),i.Tb(),i.Ub(387,"li"),i.Ub(388,"span"),i.Lc(389,'El Cliente se compromete a determinar si un "consumidor" est\xe1 involucrado en cualquier documento electr\xf3nico presentado por sus Usuarios Autorizados para su procesamiento y, de ser as\xed, a cumplir con todos los requisitos impuestos por la ley sobre dichos Documentos Electr\xf3nicos o para su formaci\xf3n.'),i.Tb(),i.Tb(),i.Ub(390,"li"),i.Ub(391,"span"),i.Lc(392,"El Cliente acepta que su Administrador(es) de Cuenta asignado tiene la autoridad para proporcionarle a ENotary con y aceptar de ENotary cualquier acuse de recibo, autorizaciones, solicitudes, o consentimientos en nombre del Cliente respecto a la Cuenta del Cliente."),i.Tb(),i.Tb(),i.Ub(393,"li"),i.Ub(394,"span"),i.Lc(395,"El Cliente acepta que es el \xfanico responsable de la precisi\xf3n e idoneidad de las instrucciones proporcionadas por \xe9l y por su personal a eNotary en relaci\xf3n con los Servicios, incluyendo sin limitaci\xf3n alguna, a trav\xe9s de su Cuenta, como las realizadas por el Administrador(es) de Cuenta asignado."),i.Tb(),i.Tb(),i.Ub(396,"li"),i.Ub(397,"span"),i.Lc(398,"El CLIENTE es consiente y acepta que eNotary es un servicio regulado por la Superintendencia de Notariado y Registro de Colombia, por lo que cualquier cambio a nivel regulatorio que impida, limite o modifique el servicio no ser\xe1 responsabilidad de AutenTIC."),i.Tb(),i.Tb(),i.Tb(),i.Ub(399,"p"),i.Ub(400,"span"),i.Lc(401,"ALMACENAMIENTO Y ELIMINACI\xd3N DE DOCUMENTOS ELECTR\xd3NICOS"),i.Tb(),i.Tb(),i.Ub(402,"ul",1),i.Ub(403,"li"),i.Ub(404,"strong"),i.Ub(405,"span"),i.Lc(406,"Env\xedo, Almacenamiento."),i.Tb(),i.Tb(),i.Ub(407,"span"),i.Lc(408,"\xa0Durante el Plazo, eNotary enviar\xe1 y almacenar\xe1 los Documentos Electr\xf3nicos seg\xfan se describe en LTV. Sin embargo, eNotary puede establecer y aplicar l\xedmites para un uso razonable, con el fin de evitar el uso abusivo o indebidamente oneroso de la Firma de ENotary. El Cliente, por medio de su Administrador(es) de Cuenta, puede recuperar y almacenar copias de los Documentos Electr\xf3nicos, para su almacenamiento fuera del Sistema en cualquier momento durante el Periodo de Suscripci\xf3n, siempre y cuando el Cliente est\xe9 en buena situaci\xf3n financiera bajo estos T\xe9rminos, y puede eliminar o depurar Documentos Electr\xf3nicos del Sistema a su propia discreci\xf3n."),i.Tb(),i.Tb(),i.Ub(409,"li"),i.Ub(410,"strong"),i.Ub(411,"span"),i.Lc(412,"Eliminaci\xf3n."),i.Tb(),i.Tb(),i.Ub(413,"span"),i.Lc(414,"\xa0ENotary puede eliminar una Cuenta y los Datos del Cliente, incluidos,entre otros, Documentos Electr\xf3nicos (completos o no), al vencimiento de"),i.Tb(),i.Tb(),i.Ub(415,"li"),i.Ub(416,"strong"),i.Ub(417,"span"),i.Lc(418,"Retenci\xf3n de Datos de Transacci\xf3n."),i.Tb(),i.Tb(),i.Ub(419,"span"),i.Lc(420,"\xa0ENotary puede retener Datos de la Transacci\xf3n por tiempo indeterminado, mientras que tenga una justificaci\xf3n comercial para hacerlo."),i.Tb(),i.Tb(),i.Ub(421,"li"),i.Ub(422,"span"),i.Lc(423,"No obstante, a lo anterior ENotary se encuentra autorizado para almacenar todos los documentos iniciados, en tr\xe1mite o finalizados durante un periodo de 3 meses, con el prop\xf3sito de ofrecer respaldo frente a cada uno de los usuarios."),i.Tb(),i.Tb(),i.Tb(),i.Ub(424,"p"),i.Ub(425,"span"),i.Lc(426,"SEGURIDAD DE LA INFORMACI\xd3N"),i.Tb(),i.Tb(),i.Ub(427,"ul",1),i.Ub(428,"li"),i.Ub(429,"strong"),i.Ub(430,"span"),i.Lc(431,"Seguridad de la Informaci\xf3n."),i.Tb(),i.Tb(),i.Ub(432,"span"),i.Lc(433,"\xa0ENotary emplear\xe1 las medidas t\xe9cnicas y organizacionales que sean comercialmente razonables, mismas que est\xe1n dise\xf1adas para evitar el acceso, uso, alteraci\xf3n o divulgaci\xf3n il\xedcita o no autorizada de los Datos del Cliente."),i.Tb(),i.Tb(),i.Ub(434,"li"),i.Ub(435,"strong"),i.Ub(436,"span"),i.Lc(437,"Asociaci\xf3n de cuenta."),i.Tb(),i.Tb(),i.Ub(438,"span"),i.Lc(439,'\xa0Cada cuenta est\xe1 asociada a una sola direcci\xf3n de correo electr\xf3nico. Si el dominio de la direcci\xf3n de correo electr\xf3nico principal, asociada con una Cuenta, es propiedad de una empresa u otra organizaci\xf3n ("Entidad") y se le asign\xf3 al Cliente como empleado, contratista o miembro de la Entidad, ("Direcci\xf3n de Correo Electr\xf3nico de la Entidad"), el Cliente otorga a la Entidad y su(s) Administrador(es) de Cuenta permiso para: (a) identificar las Cuentas creadas con una Direcci\xf3n de Correo electr\xf3nico de la Entidad; y (b) restringir o terminar el acceso a una Cuenta creada con una Direcci\xf3n de Correo electr\xf3nico de la Entidad. El Cliente reconoce y acepta que ENotary puede ayudar a la Entidad con dicha administraci\xf3n.'),i.Tb(),i.Tb(),i.Tb(),i.Ub(440,"p"),i.Lc(441,"\xa0"),i.Tb())},styles:[""]}),t})(),eg=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}close(t){this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(zb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-terms-and-conditions"]],inputs:{modalContent:"modalContent",modalTitle:"modalTitle"},decls:7,vars:1,consts:[["mat-dialog-title",""],[1,"mat-typography"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1),i.Tb(),i.Ub(2,"mat-dialog-content",1),i.Pb(3,"aswc-text-terms-and-conditions"),i.Tb(),i.Ub(4,"mat-dialog-actions",2),i.Ub(5,"button",3),i.Lc(6,"Cerrar"),i.Tb(),i.Tb()),2&t&&(i.Db(1),i.Mc(e.data.title))},directives:[Wb,Kb,tg,Qb,zm,$b],styles:[".notification-modal[_ngcontent-%COMP%]{text-align:center}.notification-modal[_ngcontent-%COMP%]   .mat-dialog-content[_ngcontent-%COMP%]{overflow:initial}.notification-modal[_ngcontent-%COMP%]   .box-ico-notification[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-24px -24px 2rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.notification-modal[_ngcontent-%COMP%]   .box-ico-notification[_ngcontent-%COMP%]   .ico-notification[_ngcontent-%COMP%]{max-width:6.4rem}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:1rem}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-right:0}"]}),t})(),ng=(()=>{class t{constructor(t){this.dialog=t}openDialogTermsAndConditions(){this.dialog.open(eg,{width:"70%",data:{title:"T\xc9RMINOS Y CONDICIONES DE USO DE ENOTARY"}}).afterClosed().subscribe(t=>{console.log("The dialog was closed: ",t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-footer-public"]],decls:11,vars:0,consts:[[1,"footer"],[1,"container"],[1,"row"],[1,"col"],[1,"nav","justify-content-center"],[1,"nav-item"],[1,"nav-link","active",3,"click"],[1,"row","text-center"]],template:function(t,e){1&t&&(i.Ub(0,"footer",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Ub(4,"ul",4),i.Ub(5,"li",5),i.Ub(6,"a",6),i.cc("click",(function(){return e.openDialogTermsAndConditions()})),i.Lc(7,"T\xe9rminos y Condiciones - Pol\xedtica de privacidad"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"div",7),i.Ub(9,"div",3),i.Lc(10,"Copyright \xa9 2020. Todos los derechos reservados."),i.Tb(),i.Tb(),i.Tb(),i.Tb())},styles:[".mat-drawer-container[_ngcontent-%COMP%]{background-color:red!important}.footer[_ngcontent-%COMP%]{padding:1.5rem 0;font-size:12px;border-top:1px solid rgba(38,82,118,.085)}.footer[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{color:#8a8d90;padding:.2rem 1rem;cursor:pointer}.footer[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{border-right:1px solid #8a8d90}.footer[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]:last-child{border-right:none}"]}),t})(),ig=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-common-user-header-public"]],decls:28,vars:1,consts:[[1,"cabecera-sitio","sticky-top"],[1,"mat-toolbar"],[1,"container"],[1,"row","align-items-center"],[1,"col"],["href","/"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logotipo_header"],[1,"col","text-right"],["fxShow","false","fxShow.gt-sm","",1,"ml-auto"],["mat-button","","routerLink","/login",1,"mr-2"],["mat-raised-button","","color","primary","routerLink","/register"],["mat-button","","fxHide","false","fxHide.gt-sm","",1,"ml-auto",3,"mat-menu-trigger-for"],["x-position","before",1,"ml-auto"],["menuResponsive","matMenu"],["mat-menu-item","","routerLink","/register"],["mat-menu-item","","routerLink","/login"],[1,"w-app-FButton"],["href","","matTooltip","\xbfTienes dudas?, escr\xedbenos en Whatsapp","matTooltipPosition","left"]],template:function(t,e){if(1&t&&(i.Pb(0,"aswc-page-loader-sign"),i.Pb(1,"aswc-page-loader-default"),i.Ub(2,"header",0),i.Ub(3,"div",1),i.Ub(4,"div",2),i.Ub(5,"div",3),i.Ub(6,"div",4),i.Ub(7,"a",5),i.Pb(8,"img",6),i.Tb(),i.Tb(),i.Ub(9,"div",7),i.Ub(10,"div",8),i.Ub(11,"button",9),i.Lc(12,"INICIAR SESI\xd3N"),i.Tb(),i.Ub(13,"button",10),i.Lc(14,"REG\xcdSTRATE"),i.Tb(),i.Tb(),i.Ub(15,"button",11),i.Ub(16,"mat-icon"),i.Lc(17,"menu"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(18,"mat-menu",12,13),i.Ub(20,"button",14),i.Lc(21,"REG\xcdSTRATE"),i.Tb(),i.Ub(22,"button",15),i.Lc(23,"INICIAR SESI\xd3N"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(24,"div",16),i.Ub(25,"a",17),i.Ub(26,"mat-icon"),i.Lc(27,"whatsapp"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.uc(19);i.Db(15),i.mc("mat-menu-trigger-for",t)}},styles:[".sticky-top[_ngcontent-%COMP%]{z-index:999}.logotipo_header[_ngcontent-%COMP%]{width:160px}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.mat-toolbar[_ngcontent-%COMP%]{padding:8px 0;background:#fff;box-shadow:0 5px 14px 0 rgba(0,0,0,.12)}.mat-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-right:0}.w-app-FButton[_ngcontent-%COMP%]{position:fixed;bottom:1.8rem;right:2.8rem;z-index:100}.w-app-FButton[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;transition:all .3s linear}.w-app-FButton[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:3rem;width:3rem;height:3rem}.w-app-FButton[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#00bb2d}"]}),t})();var rg=n("gFX4");let og=(()=>{class t{constructor(){this.url="http://35.161.221.244:8080",this.eventName="receive-private-message"}connectToWS(){this.socket=rg(this.url)}joinPrivateRoom(t){this.socket.emit("join-room",t),console.log("joinPrivateRoom: "+JSON.stringify(t))}listenSecureKeyNotification(t){return new a.a(e=>(this.connectToWS(),this.joinPrivateRoom(t),this.socket.on(this.eventName,t=>{e.next(t)}),()=>{this.socket.disconnect()}))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),sg=(()=>{class t{constructor(){this.oculto="oculto",this.notificacion=new i.o}ocultarModal(){this.oculto="oculto"}mostrarModal(){this.oculto=""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ag=(()=>{class t{constructor(t){this.httpClient=t}saveProcess(t){return console.log(t),this.httpClient.post(Ul,t).pipe(Zi(this.handleError))}updateSigningInvitation(t){return this.httpClient.put(Ul,t).pipe(Zi(this.handleError))}deleteSigningInvitation(t,e){return this.httpClient.delete(Ul+"/"+t+"/"+e).pipe(Zi(this.handleError))}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cg=(()=>{class t{constructor(){}get signatureProcesses(){return this._signatureProcesses}set signatureProcesses(t){this._signatureProcesses=t}get selected_auth_method(){return this._selected_auth_method}set selected_auth_method(t){this._selected_auth_method=t}get processState(){return this._processState}set processState(t){this._processState=t}get inSDN(){return this._inSDN}set inSDN(t){this._inSDN=t}get acceptedAndSigned(){return this._acceptedAndSigned}set acceptedAndSigned(t){this._acceptedAndSigned=t}get sesId(){return this._sesId}set sesId(t){this._sesId=t}get cc(){return this._cc}set cc(t){this._cc=t}get select_signers_type(){return this._select_signers_type}set select_signers_type(t){this._select_signers_type=t}get type_signature(){return this._type_signature}set type_signature(t){this._type_signature=t}get pdf_array(){return this._pdf_array}set pdf_array(t){this._pdf_array=t}get pdf_userStarted(){return this._pdf_userStarted}set pdf_userStarted(t){this._pdf_userStarted=t}get path_route(){return this._processState}set path_route(t){this._processState=t}get type_sign(){return this._type_sign}set type_sign(t){this._type_sign=t}get processId(){return this._processId}set processId(t){this._processId=t}get state_docs(){return this._state_docs}set state_docs(t){this._state_docs=t}get dateProcessSign(){return this._dateProcessSign}set dateProcessSign(t){this._dateProcessSign=t}get idCardFront(){return this._idCardFront}set idCardFront(t){this._idCardFront=t}get idCardRear(){return this._idCardRear}set idCardRear(t){this._idCardRear=t}get idCardFrontFile(){return this._idCardFrontFile}set idCardFrontFile(t){this._idCardFrontFile=t}get idCardRearFile(){return this._idCardRearFile}set idCardRearFile(t){this._idCardRearFile=t}get typeProcedure(){return this._typeProcedure}set typeProcedure(t){this._typeProcedure=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class lg{constructor(){this.userEmail="",this.userDocument="",this.typeLog="",this.module="",this.textLog="",this.notaryId="",this.notaryName="",this.ipAddress=""}get _userEmail(){return this.userEmail}set _userEmail(t){this.userEmail=t}get _userDocument(){return this.userDocument}set _userDocument(t){this.userDocument=t}get _module(){return this.module}set _module(t){this.module=t}get _typeLog(){return this.typeLog}set _typeLog(t){this.typeLog=t}get _notaryId(){return this.notaryId}set _notaryId(t){this.notaryId=t}get _notaryName(){return this.notaryName}set _notaryName(t){this.notaryName=t}get _textLog(){return this.textLog}set _textLog(t){this.textLog=t}get _ipAddress(){return this.ipAddress}set _ipAddress(t){this.ipAddress=t}}let ug=(()=>{class t{constructor(t){this.httpClient=t}getIP(){return this.httpClient.get("https://api.ipify.org?format=json")}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dg=(()=>{class t{constructor(){}static info(t,e="",n="",i="",r="",o="",s=""){const a=jX.get(A);jX.get(ug),a.get("https://api.ipify.org?format=json").subscribe(a=>{null!=a&&null!=a.ip&&(console.log("IpAddress data => "+a),s=a.ip),this.postLog(t,e,n,i,r,o,s,"INFO")},a=>{console.log("IpAddress error => "+a.message),this.postLog(t,e,n,i,r,o,s,"INFO")})}static error(t,e="",n="",i="",r="",o="",s=""){jX.get(A).get("https://api.ipify.org?format=json").subscribe(a=>{null!=a&&null!=a.ip&&(console.log("IpAddress data => "+a),s=a.ip),this.postLog(t,e,n,i,r,o,s,"ERROR")},a=>{console.log("IpAddress error => "+a),this.postLog(t,e,n,i,r,o,s,"ERROR")})}static postLog(t,e="",n="",i="",o="",s="",a="",c){if(""===n){const t=JSON.parse(sessionStorage.getItem("notaryData")),e=JSON.parse(sessionStorage.getItem("userData"));n=e.email,i=e.identificationNumber,o=t.enterpriseId,s=t.enterpriseName}console.log(t);const l=new lg;l._textLog=t,l._module=e,l._typeLog=c,l._userEmail=n,l._userDocument=i,l._notaryId=o,l._notaryName=s,l._ipAddress=a,console.log(l),console.log(r.endpointLogger),jX.get(A).post(r.endpointLogger,l).subscribe(t=>{console.log(t)},t=>{console.log(t)})}get(t,e){const n=JSON.parse(sessionStorage.getItem("userData")).enterpriseId;return jX.get(A).get(r.endpointLogger+"?idnotary="+n+"&dateini="+t+"&dateend="+e,{responseType:"json"}).pipe(Zi(this.handleError))}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hg=(()=>{class t{constructor(){this._loading=!1,this.notify=new i.o}hide(){this._loading=!1}show(){this._loading=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pg=(()=>{class t{constructor(){this._loading=!1,this.notify=new i.o}hide(){this._loading=!1}show(){this._loading=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mg=(()=>{class t{constructor(t){this.httpClient=t}createAuthCodeOTP(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(iu+"new-auth",t,e).pipe(Ml())}getAuthCodeOTP(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.get(iu+"get/verify-code/"+t,e).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),fg=(()=>{class t{constructor(t){this.httpClient=t}getTransactionInfo(t){return this.httpClient.get(eu+t)}addDataProcessVeriff(t){return this.httpClient.post(eu+"add-data-process",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),bg=(()=>{class t{constructor(t){this.httpClient=t}add(t){return this.httpClient.post(lu+"uploadFiles/",t).pipe(Ml())}addFilesIdCard(t){return this.httpClient.post(lu+"idCard/",t).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),gg=(()=>{class t{constructor(t){this.httpClient=t}deleteSignatureProcess(t){return console.log(t),this.httpClient.delete(Nl+"/"+t).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_g=(()=>{class t{constructor(t){this.httpClient=t}createEnrollment(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(ru,t,e).pipe(Ml())}updateEnrollment(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.put(ru,t,e).pipe(Ml())}getEnrollment(t,e){const n={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.get(ru+"get/get-enrollment/"+t+"/"+e,n).pipe(Ml())}requestEnrollmentValidation(t){return this.httpClient.get(ru+"get/request-enrollment-validation/"+t).pipe(Ml())}getPendingEnrollmentValidationRequests(t){return this.httpClient.get(ru+"get/get-enrollment-validation-requests/"+t).pipe(Ml())}getUserToEnroll(t){return this.httpClient.get(ru+"get/get-enrollment-validation-user/"+t).pipe(Ml())}validateUser(t,e,n,i){return this.httpClient.post(ru+"validate-user",{identificationNumber:e,nut:n,nutDate:i,email:t}).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vg=(()=>{class t{constructor(t){this.httpClient=t}createContactEnterprise(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(Kl+"post/create",t,e).pipe()}getContactEnterprise(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(Kl+"post/getContact",t,e).pipe()}getContactsEnterprise(t){return this.httpClient.get(Kl+"get/list/"+t)}deleteContactEnterprise(t){return this.httpClient.delete(Kl+"delete/"+t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class yg{constructor(){this.attorneyPowerDocs="",this.contractDocs="",this.insuranceCoverDocs="",this.payStubDoc="",this.errorCode=""}}let wg=(()=>{class t{constructor(t){this.http=t,this.subject=new lr.a}getDocsToSign(t){const e=zl;return new Headers({"x-api-key":""}),this.http.post(e,t).pipe(Ml())}getDocsToSignByIdProcess(t){const e=zl;return new Headers({"x-api-key":""}),this.http.get(e+"/"+t).pipe(Ml())}saveDocToSign(t){const e=ql;return new Headers({"x-api-key":""}),this.http.put(e,t).pipe(Ml())}initPostGetDocsToSign_Burned(t){new Headers({"x-api-key":""});const e=new yg;return e.attorneyPowerDocs="a",e.contractDocs="a",e.errorCode="",e.insuranceCoverDocs="a",e.payStubDoc="a",this.subject.next(e),this.subject.asObservable()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Cg=(()=>{class t{constructor(t){this.httpClient=t}IsInvitedToSign(t){return this.httpClient.post(jl,t,{observe:"response"}).pipe(Object(m.a)(t=>{const e=t.headers.get("x-token");return sessionStorage.setItem("x-token-external",e),t}),Ml())}UpdateAuthAttempt(t){return this.httpClient.put(jl,t)}UpdateAuthMethod(t){return this.httpClient.patch(jl,t)}GetInvitationSignUser(t,e){return this.httpClient.get(jl+"/"+t+"/"+e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),xg=(()=>{class t{constructor(t){this.httpClient=t}sendMassiveSignature(t){return console.log(t),this.httpClient.post(Vl,t).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Og=(()=>{class t{constructor(t){this.httpClient=t}getNotaries(){return this.httpClient.get($l+"free/").pipe(Ml())}getNotariesPrivate(){return this.httpClient.get($l).pipe(Ml())}getOne(){return""}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sg=(()=>{class t{constructor(){this.url=r.urlWebsocket,console.log(this.url),this.socket=rg(this.url,{transport:"websocket"})}joinPrivateRoom(t){this.socket.emit("create:room",t),console.debug("joinPrivateRoom: "+JSON.stringify(t)),this.socket.emit("message:getall",t)}listengetmessage(){return new a.a(t=>{this.socket.on("message:send",e=>{t.next(e)})})}listengetmessages(){return new a.a(t=>{this.socket.on("message:getall",e=>{t.next(e)})})}updateState(t){this.socket.emit("message:update",{notificationId:t,readed:!0}),console.debug("updated: ",t)}sendMessage(t,e,n){t.dateMessage=(new Date).toString(),this.socket.emit("message:send",{users:e,userOrigin:n,message:t}),console.log("send: ",t,"-",e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Tg=(()=>{class t{constructor(t){this.httpClient=t}register(t){return this.httpClient.post(cu,t).pipe(Ml())}getInformation(t){return this.httpClient.get(cu+"get/"+t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Dg=(()=>{class t{constructor(t){this.httpClient=t}getProcessStatusById(t,e){return this.httpClient.get(`${au}${t}/${e}`)}addProcessState(t){return this.httpClient.post(au,t)}updateProcessState(t){return this.httpClient.put(au,t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),kg=(()=>{class t{constructor(t){this.httpClient=t}RejectSignature(t){return this.httpClient.post(su,t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Pg=(()=>{class t{constructor(t){this.httpClient=t}getRoleInRegistrationInvitations(t){return this.httpClient.post(Xl,t).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Eg=(()=>{class t{constructor(t){this.http=t}initPostSecureKey(t){return new Headers({"x-api-key":""}),this.http.post("https://7ma7tbb2ta.execute-signing-core.us-west-2.amazonaws.com/test/session-secure-key/",t,{params:null,headers:null}).map(this.extractData).pipe(Ml(),Zi(this.handleError))}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),e}extractData(t){return t.json()||{}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Ag=(()=>{class t{constructor(t){this.httpClient=t}sendDocsToSign(t){return console.log(t),this.httpClient.post(Fl,t).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Ig=function(t){return t.Administrator="Administrator",t.AdministrativeOfficer="AdministrativeOfficer",t.Officer="Officer",t.Person="Person",t.LegalPerson="LegalPerson",t}({}),Mg=function(t){return t.Administrator="Administrador",t.AdministrativeOfficer="Funcionario Administrador",t.Officer="Funcionario",t}({});let Ug=(()=>{class t{constructor(){this.menuSideEnterprise=[{role:Ig.Administrator,menu:[{title:"Tr\xe1mites",url:"/corporate/pv/documents/my-transactions",icon:"all_inbox"},{title:"Agendamientos",url:"/corporate/notary-scheduling/scheduling-requests",icon:"perm_contact_calendar"},{title:"Enrolamiento",url:"/corporate/notary-enrollment/enrollment-requests",icon:"person"},{title:"Usuarios",url:"/corporate/pv/users",icon:"people"},{title:"Testamentos",url:"/corporate/pv/testaments/consult",icon:"all_inbox"},{title:"Logs",url:"/corporate/pv/logs/consult",icon:"all_inbox"}]},{role:Ig.AdministrativeOfficer,menu:[{title:"Inicio",url:"/corporate/pv/documents/list-of-formalities",icon:"home"},{title:"Tr\xe1mites",url:"/corporate/pv/documents/my-transactions",icon:"all_inbox"},{title:"Agendamientos",url:"/corporate/notary-scheduling/scheduling-requests",icon:"perm_contact_calendar"},{title:"Enrolamiento",url:"/corporate/notary-enrollment/enrollment-requests",icon:"person"},{title:"Usuarios",url:"/corporate/pv/users",icon:"people"},{title:"Logs",url:"/corporate/pv/logs/consult",icon:"all_inbox"}]},{role:Ig.Officer,menu:[{title:"Inicio",url:"/corporate/pv/documents/list-of-formalities",icon:"home"},{title:"Tr\xe1mites",url:"/corporate/pv/documents/my-transactions",icon:"all_inbox"},{title:"Agendamientos",url:"/corporate/notary-scheduling/scheduling-requests",icon:"perm_contact_calendar"},{title:"Enrolamiento",url:"/corporate/notary-enrollment/enrollment-requests",icon:"person"},{title:"Logs",url:"/corporate/pv/logs/consult",icon:"all_inbox"}]},{role:Ig.LegalPerson,menu:[{title:"Inicio",url:"/corporate/pv/documents/list-of-formalities",icon:"home"},{title:"Enrolamiento",url:"/corporate/pv/enrollment/user-enrollment",icon:"person"},{title:"Mis tr\xe1mites",url:"/corporate/pv/documents/my-transactions",icon:"all_inbox"},{title:"Agendamientos",url:"/corporate/scheduling/consultation-scheduling/user-list-scheduling",icon:"perm_contact_calendar"}]},{role:Ig.Person,menu:[{title:"Inicio",url:"/corporate/pv/documents/list-of-formalities",icon:"home"},{title:"Enrolamiento",url:"/corporate/pv/enrollment/user-enrollment",icon:"person"},{title:"Mis tr\xe1mites",url:"/corporate/pv/documents/my-transactions",icon:"all_inbox"},{title:"Agendamientos",url:"/corporate/scheduling/consultation-scheduling/user-list-scheduling",icon:"perm_contact_calendar"}]}]}loadEnterpriseMenu(t){return this.menuSideEnterprise.filter(e=>e.role===t)[0].menu}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Lg=(()=>{class t{constructor(t){this.httpClient=t}getSignatureProcesses(t){return console.log(t),this.httpClient.post(Ll,t).catch(this.handleError)}getSignatureProcessesByUser(t,e,n=0,i=10,r="",o="",s="",a=""){const c=(new y).set("pageNumber",n.toString()).set("pageSize",i.toString()).set("date",r).set("status",o).set("categories",s).set("search",a);return this.httpClient.get(Ll+"/"+t+"/"+e,{params:c}).pipe(Ml())}getDetailSignatureProcesses(t){return console.log(t),this.httpClient.get(Ll+"/detail/"+t).pipe(Ml())}getSignatureProcessByIdProcess(t){return console.log(t),this.httpClient.get(Ll+"/get/getByIdProcess/"+t).pipe(Ml())}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Rg=[{tbid:1,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"},{tbid:2,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"},{tbid:3,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"},{tbid:4,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"},{tbid:5,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"},{tbid:6,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"},{tbid:7,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"},{tbid:8,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"},{tbid:9,tbcodEstado:200,tbestado:"Correcto",tbrespuesta:"POST/v3/signature...",tbfecha:"10/02/2018",tbhora:"10:00:00"}];let Ng=(()=>{class t{constructor(){}getReponseApiSign(){return new Headers({"x-api-key":""}),Object(s.a)(Rg)}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}extractData(t){return t.json()||{}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Fg=(()=>{class t{constructor(t){this.http=t}initPostProcessState(t){return new Headers({"x-api-key":""}),this.http.post("https://7ma7tbb2ta.execute-signing-core.us-west-2.amazonaws.com/test/getprocessstate",t,{params:null,headers:null}).map(this.extractData).catch(this.handleError)}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}extractData(t){return t.json()||{}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Vg={headers:new g({"Content-Type":"application/json","x-api-key":""})};let jg=(()=>{class t{constructor(t){this.httpClient=t}createUser(t){return this.httpClient.post(Ql,t,Vg).pipe(Ml())}udpateUser(t){return this.httpClient.put(Ql,t,Vg).pipe(Ml())}getUsers(t,e,n){return this.httpClient.get(Ql+(n?"free":"get")+"/"+t+"/"+e,Vg).pipe(Ml())}verifyUserRegister(t,e,n){return this.httpClient.get(Ql+(n?"free":"get")+"/verifyUserRegister/"+t+"/"+e,Vg).pipe(Ml())}verifyUserOfficer(t,e,n){return this.httpClient.get(Ql+(n?"free":"get")+"/verifyUserOfficer/"+t+"/"+e,Vg).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Bg=(()=>{class t{constructor(t){this.httpClient=t,this.httpOptions={headers:new g({"Content-Type":"application/json","x-api-key":""})}}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}extractData(t){return t.json()||{}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),zg=(()=>{class t{constructor(t){this.httpClient=t}getPosition(){return new Promise((t,e)=>{navigator.geolocation.getCurrentPosition(e=>{t({lng:e.coords.longitude,lat:e.coords.latitude,err:""})},(function(e){switch(e.code){case e.PERMISSION_DENIED:t({err:"Debe autorizar la localizaci\xf3n."});break;case e.POSITION_UNAVAILABLE:t({err:"No es posible obtener la localizaci\xf3n"});break;case e.TIMEOUT:t({err:"Error de Time Out, por favor verifique el servicio de geolocalizaci\xf3n de su navegador."});break;default:t({err:e})}}),{enableHighAccuracy:!0,timeout:3e3,maximumAge:0})})}getCity(t,e){return this.httpClient.get(`https://maps.googleapis.com/maps/api/geocode/json?latlng=${t},${e}&key=${r.keyLocation}`,{responseType:"json"}).pipe(Zi(this.handleError))}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),qg=(()=>{class t extends wp{buildStyles(t){return{content:t?`url(${t})`:""}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),Hg=(()=>{class t extends tp{constructor(t,e,n,i,r,s){super(t,e,n,i),this.platformId=r,this.serverModuleLoaded=s,this.DIRECTIVE_KEY="img-src",this.defaultSrc="",this.styleCache=Gg,this.init(),this.setValue(this.nativeElement.getAttribute("src")||"",""),Object(o.M)(this.platformId)&&this.serverModuleLoaded&&this.nativeElement.setAttribute("src","")}set src(t){this.defaultSrc=t,this.setValue(this.defaultSrc,"")}updateWithValue(t){const e=t||this.defaultSrc;Object(o.M)(this.platformId)&&this.serverModuleLoaded?this.addStyles(e):this.nativeElement.setAttribute("src",e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(qg),i.Ob(yp),i.Ob(Op),i.Ob(i.D),i.Ob(Wh))},t.\u0275dir=i.Jb({type:t,inputs:{src:"src"},features:[i.Ab]}),t})();const Gg=new Map,Jg=["src.xs","src.sm","src.md","src.lg","src.xl","src.lt-sm","src.lt-md","src.lt-lg","src.lt-xl","src.gt-xs","src.gt-sm","src.gt-md","src.gt-lg"];let Yg=(()=>{class t extends Hg{constructor(){super(...arguments),this.inputs=Jg}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["img","src.xs",""],["img","src.sm",""],["img","src.md",""],["img","src.lg",""],["img","src.xl",""],["img","src.lt-sm",""],["img","src.lt-md",""],["img","src.lt-lg",""],["img","src.lt-xl",""],["img","src.gt-xs",""],["img","src.gt-sm",""],["img","src.gt-md",""],["img","src.gt-lg",""]],inputs:{"src.xs":"src.xs","src.sm":"src.sm","src.md":"src.md","src.lg":"src.lg","src.xl":"src.xl","src.lt-sm":"src.lt-sm","src.lt-md":"src.lt-md","src.lt-lg":"src.lt-lg","src.lt-xl":"src.lt-xl","src.gt-xs":"src.gt-xs","src.gt-sm":"src.gt-sm","src.gt-md":"src.gt-md","src.gt-lg":"src.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),$g=(()=>{class t extends tp{constructor(t,e,n,i,r,s,a){super(t,null,e,n),this.ngClassInstance=a,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new o.q(i,r,t,s)),this.init(),this.setValue("","")}set klass(t){this.ngClassInstance.klass=t,this.setValue(t,"")}updateWithValue(t){this.ngClassInstance.ngClass=t,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(Op),i.Ob(i.u),i.Ob(i.v),i.Ob(i.G),i.Ob(o.q,10))},t.\u0275dir=i.Jb({type:t,inputs:{klass:["class","klass"]},features:[i.Ab]}),t})();const Wg=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let Kg=(()=>{class t extends $g{constructor(){super(...arguments),this.inputs=Wg}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),Qg=(()=>{class t extends wp{buildStyles(t,e){return{display:"true"===t?e.display||(e.isServer?"initial":""):"none"}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),Xg=(()=>{class t extends tp{constructor(t,e,n,i,r,o,s){super(t,e,n,i),this.layoutConfig=r,this.platformId=o,this.serverModuleLoaded=s,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();const t=Array.from(this.nativeElement.children);for(let n=0;n<t.length;n++)if(this.marshal.hasValue(t[n],"flex")){this.hasFlexChild=!0;break}Zg.has(this.nativeElement)?this.display=Zg.get(this.nativeElement):(this.display=this.getDisplayStyle(),Zg.set(this.nativeElement,this.display)),this.init();const e=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");void 0===e||""===e?this.setValue(!0,""):this.triggerUpdate()}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split("."),i=n.slice(1).join("."),r=t[e].currentValue;let o=""===r||0!==r&&Lu(r);"fxHide"===n[0]&&(o=!o),this.setValue(o,i)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(t=>{this.marshal.trackValue(this.nativeElement,t).pipe(Vh(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(t=!0){if(""===t)return;const e=Object(o.M)(this.platformId);this.addStyles(t?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Qg),i.Ob(yp),i.Ob(Op),i.Ob($h),i.Ob(i.D),i.Ob(Wh))},t.\u0275dir=i.Jb({type:t,features:[i.Ab,i.Bb]}),t})();const Zg=new WeakMap,t_=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];let e_=(()=>{class t extends Xg{constructor(){super(...arguments),this.inputs=t_}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})();class n_{constructor(t,e,n=!0){this.key=t,this.value=e,this.key=n?t.replace(/['"]/g,"").trim():t.trim(),this.value=n?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function i_(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function r_(t){const[e,...n]=t.split(":");return new n_(e,n.join(":"))}function o_(t,e){return e.key&&(t[e.key]=e.value),t}let s_=(()=>{class t extends tp{constructor(t,e,n,i,r,s,a,c,l){super(t,null,e,n),this.sanitizer=i,this.ngStyleInstance=a,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new o.w(t,r,s)),this.init();const u=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(u),this.isServer=c&&Object(o.M)(l)}updateWithValue(t){const e=this.buildStyleMap(t);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(t){const e=t=>this.sanitizer.sanitize(i.K.STYLE,t)||"";if(t)switch(i_(t)){case"string":return l_(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return l_(t,e);case"set":default:return function(t,e){let n=[];return"set"===i_(t)?t.forEach(t=>n.push(t)):Object.keys(t).forEach(e=>{n.push(`${e}:${t[e]}`)}),function(t,e){return t.map(r_).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(o_,{})}(n,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(Op),i.Ob(wt),i.Ob(i.v),i.Ob(i.G),i.Ob(o.w,10),i.Ob(Wh),i.Ob(i.D))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const a_=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let c_=(()=>{class t extends s_{constructor(){super(...arguments),this.inputs=a_}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})();function l_(t,e){return t.map(r_).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(o_,{})}let u_=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Hh]]}),t})(),d_=(()=>{class t{constructor(t,e,n,i){this._modalSecureKeyService=t,this.globalVarsService=e,this._webSocketService=n,this.sanitizer=i,this.urlSrc={baseUrl:"https://sobreflex.certicamara.com/imaginamos/AutenticacionIMG.aspx?id=",sesId:"",formedUrl:""}}ngOnInit(){console.log("Init modal secure key"),this.connectionWS=this._webSocketService.listenSecureKeyNotification(this.globalVarsService.cc).subscribe(t=>{console.log("listenSecureKeyNotification: "+JSON.stringify(t))}),this.buildSecureUrl()}ngOnDestroy(){this.connectionWS.unsubscribe()}buildSecureUrl(){this.urlSrc.sesId=this.globalVarsService.sesId,this.urlSrc.formedUrl=this.urlSrc.baseUrl+this.urlSrc.sesId,this.url=this.sanitizer.bypassSecurityTrustResourceUrl(this.urlSrc.formedUrl)}cerrarModal(){this._modalSecureKeyService.ocultarModal(),this.buildSecureUrl()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(sg),i.Ob(cg),i.Ob(og),i.Ob(wt))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-modal-secure-key"]],decls:23,vars:2,consts:[[1,"fondo-negro","animated","fadeIn",3,"ngClass"],["tabindex","-1","role","dialog",1,"modal",2,"display","block"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content","square"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"mensaje-alerta"],[1,"info_moda_nomargin"],["id","modalSecureKeyId","frameborder","0",2,"width","100%","height","400px",3,"src"],[1,"mensaje_espera"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Ub(4,"div",4),i.Ub(5,"h5",5),i.Lc(6,"Preguntas Reto"),i.Tb(),i.Ub(7,"button",6),i.cc("click",(function(){return e.cerrarModal()})),i.Ub(8,"span",7),i.Lc(9,"\xd7"),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"div",8),i.Ub(11,"p"),i.Lc(12,"Diligencie las siguientes preguntas reto para generar la Clave Segura."),i.Tb(),i.Ub(13,"div",9),i.Pb(14,"ul"),i.Tb(),i.Ub(15,"div",10),i.Pb(16,"iframe",11),i.Tb(),i.Ub(17,"div"),i.Ub(18,"p",12),i.Lc(19,"La clave segura se est\xe1 generando, por favor, espere... Una vez se complete el proceso "),i.Ub(20,"u"),i.Lc(21,"ser\xe1 redirigido autom\xe1ticamente"),i.Tb(),i.Lc(22,". "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.mc("ngClass",e._modalSecureKeyService.oculto),i.Db(16),i.mc("src",e.url,i.Ac))},directives:[o.q,Kg],encapsulation:2}),t})();const h_=["*",[["mat-card-footer"]]],p_=["*","mat-card-footer"],m_=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],f_=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","*"],b_=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["img"]],"*"],g_=["mat-card-title, mat-card-subtitle,\n      [mat-card-title], [mat-card-subtitle],\n      [matCardTitle], [matCardSubtitle]","img","*"];let __=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),v_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),y_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),w_=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),C_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-card-footer"]],hostAttrs:[1,"mat-card-footer"]}),t})(),x_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-card-image"]}),t})(),O_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-card-sm-image"]}),t})(),S_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-card-md-image"]}),t})(),T_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-card-lg-image",""],["","matCardImageLarge",""]],hostAttrs:[1,"mat-card-lg-image"]}),t})(),D_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-card-xl-image",""],["","matCardImageXLarge",""]],hostAttrs:[1,"mat-card-xl-image"]}),t})(),k_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),t})(),P_=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:p_,decls:2,vars:0,template:function(t,e){1&t&&(i.lc(h_),i.kc(0),i.kc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),E_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:f_,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(i.lc(m_),i.kc(0),i.Ub(1,"div",0),i.kc(2,1),i.Tb(),i.kc(3,2))},encapsulation:2,changeDetection:0}),t})(),A_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-card-title-group"],ngContentSelectors:g_,decls:4,vars:0,template:function(t,e){1&t&&(i.lc(b_),i.Ub(0,"div"),i.kc(1),i.Tb(),i.kc(2,1),i.kc(3,2))},encapsulation:2,changeDetection:0}),t})(),I_=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Ed],Ed]}),t})();const M_=["input"],U_=function(){return{enterDuration:150}},L_=["*"],R_=new i.s("mat-checkbox-default-options",{providedIn:"root",factory:function(){return{color:"accent",clickAction:"check-indeterminate"}}}),N_=new i.s("mat-checkbox-click-action");let F_=0;const V_={provide:Ta,useExisting:Object(i.X)(()=>q_),multi:!0};class j_{}class B_{constructor(t){this._elementRef=t}}const z_=Ud(Id(Md(Ad(B_))));let q_=(()=>{class t extends z_{constructor(t,e,n,r,o,s,a,c){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=r,this._clickAction=s,this._animationMode=a,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++F_,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.o,this.indeterminateChange=new i.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||{},this._options.color&&(this.color=this._options.color),this.tabIndex=parseInt(o)||0,this._clickAction=this._clickAction||this._options.clickAction}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=Lu(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Lu(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Lu(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new j_;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let n="";switch(t){case 0:if(1===e)n="unchecked-checked";else{if(3!=e)return"";n="unchecked-indeterminate"}break;case 2:n=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(hd),i.Ob(i.B),i.Zb("tabindex"),i.Ob(N_,8),i.Ob(ti,8),i.Ob(R_,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(i.Qc(M_,!0),i.Qc(ch,!0)),2&t&&(i.tc(n=i.dc())&&(e._inputElement=n.first),i.tc(n=i.dc())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(i.Xb("id",e.id),i.Eb("tabindex",null),i.Gb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i.Cb([V_]),i.Ab],ngContentSelectors:L_,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(i.lc(),i.Ub(0,"label",0,1),i.Ub(2,"div",2),i.Ub(3,"input",3,4),i.cc("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),i.Tb(),i.Ub(5,"div",5),i.Pb(6,"div",6),i.Tb(),i.Pb(7,"div",7),i.Ub(8,"div",8),i.fc(),i.Ub(9,"svg",9),i.Pb(10,"path",10),i.Tb(),i.ec(),i.Pb(11,"div",11),i.Tb(),i.Tb(),i.Ub(12,"span",12,13),i.cc("cdkObserveContent",(function(){return e._onLabelTextChange()})),i.Ub(14,"span",14),i.Lc(15,"\xa0"),i.Tb(),i.kc(16),i.Tb(),i.Tb()),2&t){const t=i.uc(1),n=i.uc(13);i.Eb("for",e.inputId),i.Db(2),i.Gb("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),i.Db(1),i.mc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),i.Eb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),i.Db(2),i.mc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.qc(19,U_))}},directives:[ch,qu],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const H_={provide:Ba,useExisting:Object(i.X)(()=>G_),multi:!0};let G_=(()=>{class t extends rl{}return t.\u0275fac=function(e){return J_(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[i.Cb([H_]),i.Ab]}),t})();const J_=i.Wb(G_);let Y_=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})(),$_=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[lh,Ed,Hu,Y_],Ed,Y_]}),t})(),W_=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Lu(t)}get inset(){return this._inset}set inset(t){this._inset=Lu(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Eb("aria-orientation",e.vertical?"vertical":"horizontal"),i.Gb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),K_=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Ed],Ed]}),t})();const Q_=["underline"],X_=["connectionContainer"],Z_=["inputContainer"],tv=["label"];function ev(t,e){1&t&&(i.Sb(0),i.Ub(1,"div",14),i.Pb(2,"div",15),i.Pb(3,"div",16),i.Pb(4,"div",17),i.Tb(),i.Ub(5,"div",18),i.Pb(6,"div",15),i.Pb(7,"div",16),i.Pb(8,"div",17),i.Tb(),i.Rb())}function nv(t,e){1&t&&(i.Ub(0,"div",19),i.kc(1,1),i.Tb())}function iv(t,e){if(1&t&&(i.Sb(0),i.kc(1,2),i.Ub(2,"span"),i.Lc(3),i.Tb(),i.Rb()),2&t){const t=i.gc(2);i.Db(3),i.Mc(t._control.placeholder)}}function rv(t,e){1&t&&i.kc(0,3,["*ngSwitchCase","true"])}function ov(t,e){1&t&&(i.Ub(0,"span",23),i.Lc(1," *"),i.Tb())}function sv(t,e){if(1&t){const t=i.Vb();i.Ub(0,"label",20,21),i.cc("cdkObserveContent",(function(){return i.yc(t),i.gc().updateOutlineGap()})),i.Jc(2,iv,4,1,"ng-container",12),i.Jc(3,rv,1,0,"ng-content",12),i.Jc(4,ov,2,0,"span",22),i.Tb()}if(2&t){const t=i.gc();i.Gb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),i.mc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),i.Eb("for",t._control.id)("aria-owns",t._control.id),i.Db(2),i.mc("ngSwitchCase",!1),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function av(t,e){1&t&&(i.Ub(0,"div",24),i.kc(1,4),i.Tb())}function cv(t,e){if(1&t&&(i.Ub(0,"div",25,26),i.Pb(2,"span",27),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Gb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function lv(t,e){if(1&t&&(i.Ub(0,"div"),i.kc(1,5),i.Tb()),2&t){const t=i.gc();i.mc("@transitionMessages",t._subscriptAnimationState)}}function uv(t,e){if(1&t&&(i.Ub(0,"div",31),i.Lc(1),i.Tb()),2&t){const t=i.gc(2);i.mc("id",t._hintLabelId),i.Db(1),i.Mc(t.hintLabel)}}function dv(t,e){if(1&t&&(i.Ub(0,"div",28),i.Jc(1,uv,2,2,"div",29),i.kc(2,6),i.Pb(3,"div",30),i.kc(4,7),i.Tb()),2&t){const t=i.gc();i.mc("@transitionMessages",t._subscriptAnimationState),i.Db(1),i.mc("ngIf",t.hintLabel)}}const hv=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],pv=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let mv=0;const fv=new i.s("MatError");let bv=(()=>{class t{constructor(){this.id="mat-error-"+mv++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("id",e.id)},inputs:{id:"id"},features:[i.Cb([{provide:fv,useExisting:t}])]}),t})();const gv={transitionMessages:It("transitionMessages",[Nt("enter",Rt({opacity:1,transform:"translateY(0%)"})),Vt("void => enter",[Rt({opacity:0,transform:"translateY(-100%)"}),Mt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let _v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t}),t})();function vv(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let yv=0;const wv=new i.s("MatHint");let Cv=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+yv++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Eb("id",e.id)("align",null),i.Gb("mat-right","end"==e.align))},inputs:{align:"align",id:"id"},features:[i.Cb([{provide:wv,useExisting:t}])]}),t})(),xv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-label"]]}),t})(),Ov=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-placeholder"]]}),t})();const Sv=new i.s("MatPrefix");let Tv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matPrefix",""]],features:[i.Cb([{provide:Sv,useExisting:t}])]}),t})();const Dv=new i.s("MatSuffix");let kv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matSuffix",""]],features:[i.Cb([{provide:Dv,useExisting:t}])]}),t})(),Pv=0;class Ev{constructor(t){this._elementRef=t}}const Av=Id(Ev,"primary"),Iv=new i.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Mv=new i.s("MatFormField");let Uv=(()=>{class t extends Av{constructor(t,e,n,i,r,o,s,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=r,this._platform=o,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new lr.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Pv++,this._labelId="mat-form-field-label-"+Pv++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Lu(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Pr(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Vh(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Vh(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(ii.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Pr(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Pr(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Vh(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Fh(this._label.nativeElement,"transitionend").pipe(li(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(n=>{if("start"===n.align){if(t||this.hintLabel)throw vv("start");t=n}else if("end"===n.align){if(e)throw vv("end");e=n}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const r=i.getBoundingClientRect();if(0===r.width&&0===r.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(r),s=t.children,a=this._getStartEnd(s[0].getBoundingClientRect());let c=0;for(let t=0;t<s.length;t++)c+=s[t].offsetWidth;e=Math.abs(a-o)-5,n=c>0?.75*c+10:0}for(let s=0;s<r.length;s++)r[s].style.width=e+"px";for(let s=0;s<o.length;s++)o[s].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(kh,8),i.Ob(_d,8),i.Ob(Iv,8),i.Ob(vu),i.Ob(i.B),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,_v,!0),i.Ec(n,_v,!0),i.Hb(n,xv,!0),i.Ec(n,xv,!0),i.Hb(n,Ov,!0),i.Hb(n,fv,!0),i.Hb(n,wv,!0),i.Hb(n,Sv,!0),i.Hb(n,Dv,!0)),2&t&&(i.tc(r=i.dc())&&(e._controlNonStatic=r.first),i.tc(r=i.dc())&&(e._controlStatic=r.first),i.tc(r=i.dc())&&(e._labelChildNonStatic=r.first),i.tc(r=i.dc())&&(e._labelChildStatic=r.first),i.tc(r=i.dc())&&(e._placeholderChild=r.first),i.tc(r=i.dc())&&(e._errorChildren=r),i.tc(r=i.dc())&&(e._hintChildren=r),i.tc(r=i.dc())&&(e._prefixChildren=r),i.tc(r=i.dc())&&(e._suffixChildren=r))},viewQuery:function(t,e){var n;1&t&&(i.Qc(Q_,!0),i.Fc(X_,!0),i.Qc(Z_,!0),i.Qc(tv,!0)),2&t&&(i.tc(n=i.dc())&&(e.underlineRef=n.first),i.tc(n=i.dc())&&(e._connectionContainerRef=n.first),i.tc(n=i.dc())&&(e._inputContainerRef=n.first),i.tc(n=i.dc())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&i.Gb("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Cb([{provide:Mv,useExisting:t}]),i.Ab],ngContentSelectors:pv,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(i.lc(hv),i.Ub(0,"div",0),i.Ub(1,"div",1,2),i.cc("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),i.Jc(3,ev,9,0,"ng-container",3),i.Jc(4,nv,2,0,"div",4),i.Ub(5,"div",5,6),i.kc(7),i.Ub(8,"span",7),i.Jc(9,sv,5,16,"label",8),i.Tb(),i.Tb(),i.Jc(10,av,2,0,"div",9),i.Tb(),i.Jc(11,cv,3,4,"div",10),i.Ub(12,"div",11),i.Jc(13,lv,2,1,"div",12),i.Jc(14,dv,5,2,"div",13),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("ngIf","outline"==e.appearance),i.Db(1),i.mc("ngIf",e._prefixChildren.length),i.Db(5),i.mc("ngIf",e._hasFloatingLabel()),i.Db(1),i.mc("ngIf",e._suffixChildren.length),i.Db(1),i.mc("ngIf","outline"!=e.appearance),i.Db(1),i.mc("ngSwitch",e._getDisplayedMessages()),i.Db(1),i.mc("ngSwitchCase","error"),i.Db(1),i.mc("ngSwitchCase","hint"))},directives:[o.t,o.x,o.y,qu],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[gv.transitionMessages]},changeDetection:0}),t})(),Lv=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,Ed,Hu],Ed]}),t})();const Rv=["*"];function Nv(t){return Error(`Unable to find icon with the name "${t}"`)}function Fv(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function Vv(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class jv{constructor(t,e){this.options=e,t.nodeName?this.svgElement=t:this.url=t}}let Bv=(()=>{class t{constructor(t,e,n,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,i){return this._addSvgIconConfig(t,e,new jv(n,i))}addSvgIconLiteralInNamespace(t,e,n,r){const o=this._sanitizer.sanitize(i.K.HTML,n);if(!o)throw Vv(n);const s=this._createSvgElementForSingleIcon(o,r);return this._addSvgIconConfig(t,e,new jv(s,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new jv(e,n))}addSvgIconSetLiteralInNamespace(t,e,n){const r=this._sanitizer.sanitize(i.K.HTML,e);if(!r)throw Vv(e);const o=this._svgElementFromString(r);return this._addSvgIconSetConfig(t,new jv(o,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(i.K.RESOURCE_URL,t);if(!e)throw Fv(t);const n=this._cachedIconsByUrl.get(e);return n?Object(s.a)(zv(n)):this._loadSvgIconFromConfig(new jv(t)).pipe(Object(Ar.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(m.a)(t=>zv(t)))}getNamedSvgIcon(t,e=""){const n=qv(e,t),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);const r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(Dl.a)(Nv(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgElement?Object(s.a)(zv(t.svgElement)):this._loadSvgIconFromConfig(t).pipe(Object(Ar.a)(e=>t.svgElement=e),Object(m.a)(t=>zv(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?Object(s.a)(n):Ki(e.filter(t=>!t.svgElement).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Zi(e=>{const n=this._sanitizer.sanitize(i.K.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Object(s.a)(null)})))).pipe(Object(m.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw Nv(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgElement){const e=this._extractSvgIconFromSet(i.svgElement,t,i.options);if(e)return e}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(m.a)(e=>this._createSvgElementForSingleIcon(e,t.options)))}_loadSvgIconSetFromConfig(t){return t.svgElement?Object(s.a)(t.svgElement):this._fetchIcon(t).pipe(Object(m.a)(e=>(t.svgElement||(t.svgElement=this._svgElementFromString(e)),t.svgElement)))}_createSvgElementForSingleIcon(t,e){const n=this._svgElementFromString(t);return this._setSvgAttributes(n,e),n}_extractSvgIconFromSet(t,e,n){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const r=i.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const o=this._svgElementFromString("<svg></svg>");return o.appendChild(r),this._setSvgAttributes(o,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let i=0;i<n.length;i++){const{name:t,value:r}=n[i];"id"!==t&&e.setAttribute(t,r)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:r}=t,o=null!==(e=null==r?void 0:r.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const s=this._sanitizer.sanitize(i.K.RESOURCE_URL,n);if(!s)throw Fv(n);const a=this._inProgressUrlFetches.get(s);if(a)return a;const c=this._httpClient.get(s,{responseType:"text",withCredentials:o}).pipe(Mr(()=>this._inProgressUrlFetches.delete(s)),Object(hi.a)());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(qv(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A,8),i.Yb(wt),i.Yb(o.e,8),i.Yb(i.n))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(A,8),Object(i.Yb)(wt),Object(i.Yb)(o.e,8),Object(i.Yb)(i.n))},token:t,providedIn:"root"}),t})();function zv(t){return t.cloneNode(!0)}function qv(t,e){return t+":"+e}class Hv{constructor(t){this._elementRef=t}}const Gv=Id(Hv),Jv=new i.s("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(i.Y)(o.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Yv=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],$v=Yv.map(t=>`[${t}]`).join(", "),Wv=/^url\(['"]?#(.*?)['"]?\)$/;let Kv=(()=>{class t extends Gv{constructor(t,e,n,i,r){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=r,this._inline=!1,this._currentIconFetch=Ir.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Lu(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(li(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll($v),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)Yv.forEach(t=>{const r=e[i],o=r.getAttribute(t),s=o?o.match(Wv):null;if(s){let e=n.get(r);e||(e=[],n.set(r,e)),e.push({name:t,value:s[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Bv),i.Zb("aria-hidden"),i.Ob(Jv),i.Ob(i.n))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(t,e){2&t&&i.Gb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[i.Ab,i.Bb],ngContentSelectors:Rv,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.kc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Qv=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Ed],Ed]}),t})();const Xv=Tu({passive:!0});let Zv=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return ci.a;const e=ju(t),n=this._monitoredElements.get(e);if(n)return n.subject.asObservable();const i=new lr.a,r="cdk-text-field-autofilled",o=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(r)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(r)&&(e.classList.remove(r),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(r),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",o,Xv),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",o,Xv)}}),i.asObservable()}stopMonitoring(t){const e=ju(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(vu),i.Yb(i.B))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(vu),Object(i.Yb)(i.B))},token:t,providedIn:"root"}),t})(),ty=(()=>{class t{constructor(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new i.o}ngOnInit(){this._autofillMonitor.monitor(this._elementRef).subscribe(t=>this.cdkAutofill.emit(t))}ngOnDestroy(){this._autofillMonitor.stopMonitoring(this._elementRef)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Zv))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t})(),ey=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new lr.a,this._enabled=!0,this._previousMinRows=-1,this._document=i,this._textareaElement=this._elementRef.nativeElement,this._measuringClass=e.FIREFOX?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring"}get minRows(){return this._minRows}set minRows(t){this._minRows=Ru(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Ru(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=Lu(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}_setMinHeight(){const t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){const t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Fh(this._getWindow(),"resize").pipe(vf(16),Vh(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0))}))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled)return;if(this._cacheTextareaLineHeight(),!this._cachedLineHeight)return;const e=this._elementRef.nativeElement,n=e.value;if(!t&&this._minRows===this._previousMinRows&&n===this._previousValue)return;const i=e.placeholder;e.classList.add(this._measuringClass),e.placeholder="",e.style.height=e.scrollHeight-4+"px",e.classList.remove(this._measuringClass),e.placeholder=i,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(e)):setTimeout(()=>this._scrollToCaretPosition(e))}),this._previousValue=n,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(t){const{selectionStart:e,selectionEnd:n}=t,i=this._getDocument();this._destroyed.isStopped||i.activeElement!==t||t.setSelectionRange(e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(vu),i.Ob(i.B),i.Ob(o.e,8))},t.\u0275dir=i.Jb({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&i.cc("input",(function(){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),ny=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[yu]]}),t})(),iy=(()=>{class t extends ey{get matAutosizeMinRows(){return this.minRows}set matAutosizeMinRows(t){this.minRows=t}get matAutosizeMaxRows(){return this.maxRows}set matAutosizeMaxRows(t){this.maxRows=t}get matAutosize(){return this.enabled}set matAutosize(t){this.enabled=t}get matTextareaAutosize(){return this.enabled}set matTextareaAutosize(t){this.enabled=t}}return t.\u0275fac=function(e){return ry(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[i.Ab]}),t})();const ry=i.Wb(iy),oy=new i.s("MAT_INPUT_VALUE_ACCESSOR"),sy=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ay=0;class cy{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const ly=Ld(cy);let uy=(()=>{class t extends ly{constructor(t,e,n,i,r,o,s,a,c,l){super(o,i,r,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=l,this._uid="mat-input-"+ay++,this.focused=!1,this.stateChanges=new lr.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Cu().has(t));const u=this._elementRef.nativeElement,d=u.nodeName.toLowerCase();this._inputValueAccessor=s||u,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&c.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===d,this._isTextarea="textarea"===d,this._isNativeSelect&&(this.controlType=u.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Lu(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Lu(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Cu().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Lu(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const t=this._formField,e=t&&t._hideControlPlaceholder()?null:this.placeholder;if(e!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){if(sy.indexOf(this._type)>-1)throw Error(`Input type "${this._type}" isn't supported by matInput.`)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(vu),i.Ob(La,10),i.Ob(Uc,8),i.Ob(Yc,8),i.Ob(Kd),i.Ob(oy,10),i.Ob(Zv),i.Ob(i.B),i.Ob(Uv,8))},t.\u0275dir=i.Jb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&i.cc("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(i.Xb("disabled",e.disabled)("required",e.required),i.Eb("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),i.Gb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[i.Cb([{provide:_v,useExisting:t}]),i.Ab,i.Bb]}),t})(),dy=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[Kd],imports:[[ny,Lv],ny,Lv]}),t})();const hy=["*"],py='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',my=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],fy=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],by=["text"];function gy(t,e){if(1&t&&i.Pb(0,"mat-pseudo-checkbox",5),2&t){const t=i.gc();i.mc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const _y=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],vy=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class yy{}const wy=Ad(Md(yy));class Cy{}const xy=Md(Cy),Oy=new i.s("MatList"),Sy=new i.s("MatNavList");let Ty=(()=>{class t extends wy{constructor(){super(...arguments),this._stateChanges=new lr.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return Dy(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i.Cb([{provide:Sy,useExisting:t}]),i.Ab,i.Bb],ngContentSelectors:hy,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.kc(0))},styles:[py],encapsulation:2,changeDetection:0}),t})();const Dy=i.Wb(Ty);let ky=(()=>{class t extends wy{constructor(t){super(),this._elementRef=t,this._stateChanges=new lr.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i.Cb([{provide:Oy,useExisting:t}]),i.Ab,i.Bb],ngContentSelectors:hy,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.kc(0))},styles:[py],encapsulation:2,changeDetection:0}),t})(),Py=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),Ey=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),Ay=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-subheader"]}),t})(),Iy=(()=>{class t extends xy{constructor(t,e,n,i){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new lr.a,this._disabled=!1,this._isInteractiveList=!!(n||i&&"action-list"===i._getListType()),this._list=n||i;const r=this._getHostElement();"button"!==r.nodeName.toLowerCase()||r.hasAttribute("type")||r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Vh(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Lu(t)}ngAfterContentInit(){Xd(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(Sy,8),i.Ob(Oy,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,Py,!0),i.Hb(n,Ey,!0),i.Hb(n,Qd,!0)),2&t&&(i.tc(r=i.dc())&&(e._avatar=r.first),i.tc(r=i.dc())&&(e._icon=r.first),i.tc(r=i.dc())&&(e._lines=r))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&i.Gb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.Ab],ngContentSelectors:fy,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(i.lc(my),i.Ub(0,"div",0),i.Pb(1,"div",1),i.kc(2),i.Ub(3,"div",2),i.kc(4,1),i.Tb(),i.kc(5,2),i.Tb()),2&t&&(i.Db(1),i.mc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[ch],encapsulation:2,changeDetection:0}),t})();class My{}const Uy=Md(My);class Ly{}const Ry=Md(Ly),Ny={provide:Ta,useExisting:Object(i.X)(()=>jy),multi:!0};class Fy{constructor(t,e){this.source=t,this.option=e}}let Vy=(()=>{class t extends Ry{constructor(t,e,n){super(),this._element=t,this._changeDetector=e,this.selectionList=n,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&t!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=Lu(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=Lu(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){Xd(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent(this))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(Object(i.X)(()=>jy)))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,Py,!0),i.Hb(n,Ey,!0),i.Hb(n,Qd,!0)),2&t&&(i.tc(r=i.dc())&&(e._avatar=r.first),i.tc(r=i.dc())&&(e._icon=r.first),i.tc(r=i.dc())&&(e._lines=r))},viewQuery:function(t,e){var n;1&t&&i.Qc(by,!0),2&t&&i.tc(n=i.dc())&&(e._text=n.first)},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&i.cc("focus",(function(){return e._handleFocus()}))("blur",(function(){return e._handleBlur()}))("click",(function(){return e._handleClick()})),2&t&&(i.Eb("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),i.Gb("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[i.Ab],ngContentSelectors:vy,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(i.lc(_y),i.Ub(0,"div",0),i.Pb(1,"div",1),i.Jc(2,gy,1,2,"mat-pseudo-checkbox",2),i.Ub(3,"div",3,4),i.kc(5),i.Tb(),i.kc(6,1),i.Tb()),2&t&&(i.Gb("mat-list-item-content-reverse","after"==e.checkboxPosition),i.Db(1),i.mc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),i.Db(1),i.mc("ngIf",e.selectionList.multiple))},directives:[ch,o.t,uh],encapsulation:2,changeDetection:0}),t})(),jy=(()=>{class t extends Uy{constructor(t,e,n){super(),this._element=t,this._changeDetector=n,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new i.o,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new Cf(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new lr.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=Lu(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=Lu(t);if(e!==this._multiple){if(Object(i.Z)()&&this._contentInitialized)throw new Error("Cannot change `multiple` mode of mat-selection-list after initialization.");this._multiple=e,this.selectedOptions=new Cf(this._multiple,this.selectedOptions.selected)}}ngAfterContentInit(){this._contentInitialized=!0,this._keyManager=new Xu(this.options).withWrap().withTypeAhead().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Vh(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(Pr(null),Vh(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Vh(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1})}ngOnChanges(t){const e=t.disableRipple,n=t.color;(e&&!e.firstChange||n&&!n.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,n=this._keyManager,i=n.activeItemIndex,r=Pu(t);switch(e){case 32:case 13:r||n.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;case 36:case 35:r||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:if(65===e&&this.multiple&&Pu(t,"ctrlKey")&&!n.isTyping()){const e=this.options.some(t=>!t.disabled&&!t.selected);this._setAllOptionsSelected(e,!0),t.preventDefault()}else n.onKeydown(t)}this.multiple&&(38===e||40===e)&&t.shiftKey&&n.activeItemIndex!==i&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new Fy(this,t))}_onFocus(){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent(e))}}_setAllOptionsSelected(t,e){let n=!1;this.options.forEach(i=>{e&&i.disabled||!i._setSelected(t)||(n=!0)}),n&&this._reportValueChange()}_isValidIndex(t){return t>=0&&t<this.options.length}_getOptionIndex(t){return this.options.toArray().indexOf(t)}_markOptionsForCheck(){this.options&&this.options.forEach(t=>t._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Zb("tabindex"),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,Vy,!0),2&t&&i.tc(r=i.dc())&&(e.options=r)},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&i.cc("focus",(function(){return e._onFocus()}))("keydown",(function(t){return e._keydown(t)})),2&t&&i.Eb("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[i.Cb([Ny]),i.Ab,i.Bb],ngContentSelectors:hy,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.kc(0))},styles:[py],encapsulation:2,changeDetection:0}),t})(),By=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[th,lh,Ed,dh,o.c],th,Ed,dh,K_]}),t})();const zy=["trigger"],qy=["panel"];function Hy(t,e){if(1&t&&(i.Ub(0,"span",8),i.Lc(1),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Mc(t.placeholder||"\xa0")}}function Gy(t,e){if(1&t&&(i.Ub(0,"span"),i.Lc(1),i.Tb()),2&t){const t=i.gc(2);i.Db(1),i.Mc(t.triggerValue||"\xa0")}}function Jy(t,e){1&t&&i.kc(0,0,["*ngSwitchCase","true"])}function Yy(t,e){if(1&t&&(i.Ub(0,"span",9),i.Jc(1,Gy,2,1,"span",10),i.Jc(2,Jy,1,0,"ng-content",11),i.Tb()),2&t){const t=i.gc();i.mc("ngSwitch",!!t.customTrigger),i.Db(2),i.mc("ngSwitchCase",!0)}}function $y(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",12),i.Ub(1,"div",13,14),i.cc("@transformPanel.done",(function(e){return i.yc(t),i.gc()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return i.yc(t),i.gc()._handleKeydown(e)})),i.kc(3,1),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("@transformPanelWrap",void 0),i.Db(1),i.Fb("mat-select-panel ",t._getPanelTheme(),""),i.Gc("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),i.mc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),i.Eb("id",t.id+"-panel")}}const Wy=[[["mat-select-trigger"]],"*"],Ky=["mat-select-trigger","*"],Qy={transformPanelWrap:It("transformPanelWrap",[Vt("* => void",Bt("@transformPanel",[jt()],{optional:!0}))]),transformPanel:It("transformPanel",[Nt("void",Rt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Nt("showing",Rt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Nt("showing-multiple",Rt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Vt("void => *",Mt("120ms cubic-bezier(0, 0, 0.2, 1)")),Vt("* => void",Mt("100ms 25ms linear",Rt({opacity:0})))])};let Xy=0;const Zy=new i.s("mat-select-scroll-strategy"),tw=new i.s("MAT_SELECT_CONFIG"),ew={provide:Zy,deps:[rb],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class nw{constructor(t,e){this.source=t,this.value=e}}class iw{constructor(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}const rw=Md(Ud(Ad(Ld(iw)))),ow=new i.s("MatSelectTrigger");let sw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-select-trigger"]],features:[i.Cb([{provide:ow,useExisting:t}])]}),t})(),aw=(()=>{class t extends rw{constructor(t,e,n,r,o,s,a,c,l,u,h,p,f,b){super(o,r,a,c,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=s,this._parentFormField=l,this.ngControl=u,this._liveAnnouncer=f,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+Xy++,this._destroy=new lr.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new lr.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=xr(()=>{const t=this.options;return t?t.changes.pipe(Pr(t),Object(Oi.a)(()=>Object(ii.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(li(1),Object(Oi.a)(()=>this.optionSelectionChanges))}),this.openedChange=new i.o,this._openedStream=this.openedChange.pipe(d(t=>t),Object(m.a)(()=>{})),this._closedStream=this.openedChange.pipe(d(t=>!t),Object(m.a)(()=>{})),this.selectionChange=new i.o,this.valueChange=new i.o,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=p,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,b&&(null!=b.disableOptionCentering&&(this.disableOptionCentering=b.disableOptionCentering),null!=b.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=b.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Lu(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Lu(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Lu(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Ru(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Cf(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(df(),Vh(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Vh(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Vh(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Pr(null),Vh(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=40===e||38===e||37===e||39===e,i=13===e||32===e,r=this._keyManager;if(!r.isTyping()&&i&&!Pu(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;36===e||35===e?(36===e?r.setFirstItemActive():r.setLastItemActive(),t.preventDefault()):r.onKeydown(t);const i=this.selected;i&&n!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=40===n||38===n,r=e.isTyping();if(36===n||35===n)t.preventDefault(),36===n?e.setFirstItemActive():e.setLastItemActive();else if(i&&t.altKey)t.preventDefault(),this.close();else if(r||13!==n&&32!==n||!e.activeItem||Pu(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(li(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return Object(i.Z)()&&console.warn(n),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new Qu(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Vh(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Vh(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(ii.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Vh(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(ii.a)(...this.options.map(t=>t._stateChanges)).pipe(Vh(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new nw(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=Sh(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Th(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,n,i)=>void 0!==e?e:t===n?i:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=Sh(r,this.options,this.optionGroups);const o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let r;if(this.multiple)r=40;else{let t=this._selectionModel.selected[0]||this.options.first;r=t&&t.group?32:16}n||(r*=-1);const o=0-(t.left+r-(n?i:0)),s=t.right+r-e.width+(n?0:i);o>0?r+=o+8:s>0&&(r-=s+8),this.overlayDir.offsetX=Math.round(r),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),r=(i-this._triggerRect.height)/2,o=Math.floor(256/i);let s;return this._disableOptionCentering?0:(s=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-o))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*s-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;s>r?this._adjustPanelUp(s,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Tf),i.Ob(i.h),i.Ob(i.B),i.Ob(Kd),i.Ob(i.l),i.Ob(_d,8),i.Ob(Uc,8),i.Ob(Yc,8),i.Ob(Mv,8),i.Ob(La,10),i.Zb("tabindex"),i.Ob(Zy),i.Ob(ad),i.Ob(tw,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,ow,!0),i.Hb(n,Oh,!0),i.Hb(n,gh,!0)),2&t&&(i.tc(r=i.dc())&&(e.customTrigger=r.first),i.tc(r=i.dc())&&(e.options=r),i.tc(r=i.dc())&&(e.optionGroups=r))},viewQuery:function(t,e){var n;1&t&&(i.Qc(zy,!0),i.Qc(qy,!0),i.Qc(cb,!0)),2&t&&(i.tc(n=i.dc())&&(e.trigger=n.first),i.tc(n=i.dc())&&(e.panel=n.first),i.tc(n=i.dc())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&i.cc("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(i.Eb("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),i.Gb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[i.Cb([{provide:_v,useExisting:t},{provide:Ch,useExisting:t}]),i.Ab,i.Bb],ngContentSelectors:Ky,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(i.lc(Wy),i.Ub(0,"div",0,1),i.cc("click",(function(){return e.toggle()})),i.Ub(3,"div",2),i.Jc(4,Hy,2,1,"span",3),i.Jc(5,Yy,3,2,"span",4),i.Tb(),i.Ub(6,"div",5),i.Pb(7,"div",6),i.Tb(),i.Tb(),i.Jc(8,$y,4,11,"ng-template",7),i.cc("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=i.uc(1);i.Db(3),i.mc("ngSwitch",e.empty),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1),i.Db(3),i.mc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[ab,o.x,o.y,cb,o.z,o.q],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[Qy.transformPanelWrap,Qy.transformPanel]},changeDetection:0}),t})(),cw=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[ew],imports:[[o.c,ub,Dh,Ed],Df,Lv,Dh,Ed]}),t})();function lw(t,e){1&t&&i.kc(0)}const uw=["*"];let dw=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),hw=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),pw=0;const mw=new i.s("STEPPER_GLOBAL_OPTIONS");let fw=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=Lu(t)}get optional(){return this._optional}set optional(t){this._optional=Lu(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=Lu(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=Lu(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Object(i.X)(()=>bw)),i.Ob(mw,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,hw,!0),2&t&&i.tc(r=i.dc())&&(e.stepLabel=r.first)},viewQuery:function(t,e){var n;1&t&&i.Fc(i.N,!0),2&t&&i.tc(n=i.dc())&&(e.content=n.first)},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[i.Bb],ngContentSelectors:uw,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.Jc(0,lw,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),bw=(()=>{class t{constructor(t,e,n,r){this._dir=t,this._changeDetectorRef=e,this._elementRef=n,this._destroyed=new lr.a,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.o,this._orientation="horizontal",this._groupId=pw++,this._document=r}get steps(){return this._steps}get linear(){return this._linear}set linear(t){this._linear=Lu(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Ru(t);if(this.steps){if(e<0||e>this.steps.length-1)throw Error("cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.");this._selectedIndex!=e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)}else this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}ngAfterViewInit(){this._keyManager=new Xu(this._stepHeader).withWrap().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(s.a)()).pipe(Pr(this._layoutDirection()),Vh(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.pipe(Vh(this._destroyed)).subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const n=this.steps.toArray()[t],i=this._isCurrentStep(t);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,i):this._getGuidelineLogic(n,i,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?"error":!t.completed||e?"number":t.editable?"edit":"done"}_getGuidelineLogic(t,e,n="number"){return t._showError&&t.hasError&&!e?"error":t.completed&&!e?"done":t.completed&&e?n:t.editable&&e?"edit":n}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=Pu(t),n=t.keyCode,i=this._keyManager;null==i.activeItemIndex||e||32!==n&&13!==n?36===n?(i.setFirstItemActive(),t.preventDefault()):35===n?(i.setLastItemActive(),t.preventDefault()):i.onKeydown(t):(this.selectedIndex=i.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){const e=this.steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(_d,8),i.Ob(i.h),i.Ob(i.l),i.Ob(o.e))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,fw,!0),i.Hb(n,dw,!0)),2&t&&(i.tc(r=i.dc())&&(e._steps=r),i.tc(r=i.dc())&&(e._stepHeader=r))},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),t})(),gw=(()=>{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(bw))},t.\u0275dir=i.Jb({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&i.cc("click",(function(){return e._handleClick()})),2&t&&i.Xb("type",e.type)},inputs:{type:"type"}}),t})(),_w=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(bw))},t.\u0275dir=i.Jb({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&i.cc("click",(function(){return e._handleClick()})),2&t&&i.Xb("type",e.type)},inputs:{type:"type"}}),t})(),vw=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[yd]]}),t})();function yw(t,e){if(1&t&&i.Qb(0,9),2&t){const t=i.gc();i.mc("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function ww(t,e){if(1&t&&(i.Ub(0,"span"),i.Lc(1),i.Tb()),2&t){const t=i.gc(2);i.Db(1),i.Mc(t._getDefaultTextForState(t.state))}}function Cw(t,e){if(1&t&&(i.Ub(0,"mat-icon"),i.Lc(1),i.Tb()),2&t){const t=i.gc(2);i.Db(1),i.Mc(t._getDefaultTextForState(t.state))}}function xw(t,e){if(1&t&&(i.Sb(0,10),i.Jc(1,ww,2,1,"span",11),i.Jc(2,Cw,2,1,"mat-icon",12),i.Rb()),2&t){const t=i.gc();i.mc("ngSwitch",t.state),i.Db(1),i.mc("ngSwitchCase","number")}}function Ow(t,e){if(1&t&&i.Qb(0,13),2&t){const t=i.gc();i.mc("ngTemplateOutlet",t._templateLabel().template)}}function Sw(t,e){if(1&t&&(i.Ub(0,"div",14),i.Lc(1),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Mc(t.label)}}function Tw(t,e){if(1&t&&(i.Ub(0,"div",15),i.Lc(1),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Mc(t._intl.optionalLabel)}}function Dw(t,e){if(1&t&&(i.Ub(0,"div",16),i.Lc(1),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Mc(t.errorMessage)}}function kw(t,e){1&t&&i.kc(0)}const Pw=["*"];function Ew(t,e){1&t&&i.Pb(0,"div",6)}function Aw(t,e){if(1&t){const t=i.Vb();i.Sb(0),i.Ub(1,"mat-step-header",4),i.cc("click",(function(){return e.$implicit.select()}))("keydown",(function(e){return i.yc(t),i.gc()._onKeydown(e)})),i.Tb(),i.Jc(2,Ew,1,0,"div",5),i.Rb()}if(2&t){const t=e.$implicit,n=e.index,r=e.last,o=i.gc();i.Db(1),i.mc("tabIndex",o._getFocusIndex()===n?0:-1)("id",o._getStepLabelId(n))("index",n)("state",o._getIndicatorType(n,t.state))("label",t.stepLabel||t.label)("selected",o.selectedIndex===n)("active",t.completed||o.selectedIndex===n||!o.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",o._iconOverrides)("disableRipple",o.disableRipple),i.Eb("aria-posinset",n+1)("aria-setsize",o.steps.length)("aria-controls",o._getStepContentId(n))("aria-selected",o.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),i.Db(1),i.mc("ngIf",!r)}}function Iw(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",7),i.cc("@stepTransition.done",(function(e){return i.yc(t),i.gc()._animationDone.next(e)})),i.Qb(1,8),i.Tb()}if(2&t){const t=e.$implicit,n=e.index,r=i.gc();i.mc("@stepTransition",r._getAnimationDirection(n))("id",r._getStepContentId(n)),i.Eb("aria-labelledby",r._getStepLabelId(n))("aria-expanded",r.selectedIndex===n),i.Db(1),i.mc("ngTemplateOutlet",t.content)}}function Mw(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",1),i.Ub(1,"mat-step-header",2),i.cc("click",(function(){return e.$implicit.select()}))("keydown",(function(e){return i.yc(t),i.gc()._onKeydown(e)})),i.Tb(),i.Ub(2,"div",3),i.Ub(3,"div",4),i.cc("@stepTransition.done",(function(e){return i.yc(t),i.gc()._animationDone.next(e)})),i.Ub(4,"div",5),i.Qb(5,6),i.Tb(),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=e.index,r=e.last,o=i.gc();i.Db(1),i.mc("tabIndex",o._getFocusIndex()==n?0:-1)("id",o._getStepLabelId(n))("index",n)("state",o._getIndicatorType(n,t.state))("label",t.stepLabel||t.label)("selected",o.selectedIndex===n)("active",t.completed||o.selectedIndex===n||!o.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",o._iconOverrides)("disableRipple",o.disableRipple),i.Eb("aria-posinset",n+1)("aria-setsize",o.steps.length)("aria-controls",o._getStepContentId(n))("aria-selected",o.selectedIndex===n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),i.Db(1),i.Gb("mat-stepper-vertical-line",!r),i.Db(1),i.mc("@stepTransition",o._getAnimationDirection(n))("id",o._getStepContentId(n)),i.Eb("aria-labelledby",o._getStepLabelId(n))("aria-expanded",o.selectedIndex===n),i.Db(2),i.mc("ngTemplateOutlet",t.content)}}const Uw='.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n';let Lw=(()=>{class t extends hw{}return t.\u0275fac=function(e){return Rw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matStepLabel",""]],features:[i.Ab]}),t})();const Rw=i.Wb(Lw);let Nw=(()=>{class t{constructor(){this.changes=new lr.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Fw={provide:Nw,deps:[[new i.C,new i.L,Nw]],useFactory:function(t){return t||new Nw}};let Vw=(()=>{class t extends dw{constructor(t,e,n,i){super(n),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(){this._focusMonitor.focusVia(this._elementRef,"program")}_stringLabel(){return this.label instanceof Lw?null:this.label}_templateLabel(){return this.label instanceof Lw?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?""+(this.index+1):"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Nw),i.Ob(hd),i.Ob(i.l),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[i.Ab],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],[3,"ngTemplateOutlet",4,"ngIf"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"ngTemplateOutlet"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(i.Pb(0,"div",0),i.Ub(1,"div"),i.Ub(2,"div",1),i.Jc(3,yw,1,2,"ng-container",2),i.Jc(4,xw,3,2,"ng-container",3),i.Tb(),i.Tb(),i.Ub(5,"div",4),i.Jc(6,Ow,1,1,"ng-container",5),i.Jc(7,Sw,2,1,"div",6),i.Jc(8,Tw,2,1,"div",7),i.Jc(9,Dw,2,1,"div",8),i.Tb()),2&t&&(i.mc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),i.Db(1),i.Fb("mat-step-icon-state-",e.state," mat-step-icon"),i.Gb("mat-step-icon-selected",e.selected),i.Db(1),i.mc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(2),i.Gb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),i.Db(1),i.mc("ngIf",e._templateLabel()),i.Db(1),i.mc("ngIf",e._stringLabel()),i.Db(1),i.mc("ngIf",e.optional&&"error"!=e.state),i.Db(1),i.mc("ngIf","error"==e.state))},directives:[ch,o.x,o.y,o.z,o.t,o.A,Kv],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const jw={horizontalStepTransition:It("stepTransition",[Nt("previous",Rt({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Nt("current",Rt({transform:"none",visibility:"visible"})),Nt("next",Rt({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Vt("* => *",Mt("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:It("stepTransition",[Nt("previous",Rt({height:"0px",visibility:"hidden"})),Nt("next",Rt({height:"0px",visibility:"hidden"})),Nt("current",Rt({height:"*",visibility:"visible"})),Vt("* <=> current",Mt("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let Bw=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),zw=(()=>{class t extends fw{constructor(t,e,n){super(t,n),this._errorStateMatcher=e}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Object(i.X)(()=>qw)),i.Ob(Kd,4),i.Ob(mw,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,Lw,!0),2&t&&i.tc(r=i.dc())&&(e.stepLabel=r.first)},exportAs:["matStep"],features:[i.Cb([{provide:Kd,useExisting:t},{provide:fw,useExisting:t}]),i.Ab],ngContentSelectors:Pw,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.Jc(0,kw,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),qw=(()=>{class t extends bw{constructor(){super(...arguments),this.animationDone=new i.o,this._iconOverrides={},this._animationDone=new lr.a}ngAfterContentInit(){this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this._steps.changes.pipe(Vh(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(df((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Vh(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return Hw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,zw,!0),i.Hb(n,Bw,!0)),2&t&&(i.tc(r=i.dc())&&(e._steps=r),i.tc(r=i.dc())&&(e._icons=r))},viewQuery:function(t,e){var n;1&t&&i.Qc(Vw,!0),2&t&&i.tc(n=i.dc())&&(e._stepHeader=n)},inputs:{disableRipple:"disableRipple"},outputs:{animationDone:"animationDone"},features:[i.Cb([{provide:bw,useExisting:t}]),i.Ab]}),t})();const Hw=i.Wb(qw);let Gw=(()=>{class t extends qw{constructor(){super(...arguments),this.labelPosition="end"}}return t.\u0275fac=function(e){return Jw(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(t,e){2&t&&i.Gb("mat-stepper-label-position-end","end"==e.labelPosition)("mat-stepper-label-position-bottom","bottom"==e.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[i.Cb([{provide:qw,useExisting:t},{provide:bw,useExisting:t}]),i.Ab],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Jc(1,Aw,3,18,"ng-container",1),i.Tb(),i.Ub(2,"div",2),i.Jc(3,Iw,2,5,"div",3),i.Tb()),2&t&&(i.Db(1),i.mc("ngForOf",e.steps),i.Db(2),i.mc("ngForOf",e.steps))},directives:[o.s,Vw,o.t,o.A],styles:[Uw],encapsulation:2,data:{animation:[jw.horizontalStepTransition]},changeDetection:0}),t})();const Jw=i.Wb(Gw);let Yw=(()=>{class t extends qw{constructor(t,e,n,i){super(t,e,n,i),this._orientation="vertical"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(_d,8),i.Ob(i.h),i.Ob(i.l),i.Ob(o.e))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[i.Cb([{provide:qw,useExisting:t},{provide:bw,useExisting:t}]),i.Ab],decls:1,vars:1,consts:[["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","click","keydown"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&i.Jc(0,Mw,6,24,"div",0),2&t&&i.mc("ngForOf",e.steps)},directives:[o.s,Vw,o.A],styles:[Uw],encapsulation:2,data:{animation:[jw.verticalStepTransition]},changeDetection:0}),t})(),$w=(()=>{class t extends gw{}return t.\u0275fac=function(e){return Ww(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["button","matStepperNext",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Xb("type",e.type)},inputs:{type:"type"},features:[i.Ab]}),t})();const Ww=i.Wb($w);let Kw=(()=>{class t extends _w{}return t.\u0275fac=function(e){return Qw(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["button","matStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Xb("type",e.type)},inputs:{type:"type"},features:[i.Ab]}),t})();const Qw=i.Wb(Kw);let Xw=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[Fw,Kd],imports:[[Ed,o.c,cf,Hm,vw,Qv,lh],Ed]}),t})();const Zw=[[["caption"]],[["colgroup"],["col"]]],tC=["caption","colgroup, col"];function eC(t,e){if(1&t&&(i.Ub(0,"th",3),i.Lc(1),i.Tb()),2&t){const t=i.gc();i.Gc("text-align",t.justify),i.Db(1),i.Nc(" ",t.headerText," ")}}function nC(t,e){if(1&t&&(i.Ub(0,"td",4),i.Lc(1),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Gc("text-align",n.justify),i.Db(1),i.Nc(" ",n.dataAccessor(t,n.name)," ")}}function iC(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Lu(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const rC=new i.s("CDK_TABLE"),oC=new i.s("text-column-options");let sC=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),aC=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),cC=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class lC{}const uC=iC(lC);let dC=(()=>{class t extends uC{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Lu(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(rC,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,sC,!0),i.Hb(n,aC,!0),i.Hb(n,cC,!0)),2&t&&(i.tc(r=i.dc())&&(e.cell=r.first),i.tc(r=i.dc())&&(e.headerCell=r.first),i.tc(r=i.dc())&&(e.footerCell=r.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i.Cb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),i.Ab]}),t})();class hC{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let pC=(()=>{class t extends hC{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(dC),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.Ab]}),t})(),mC=(()=>{class t extends hC{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(dC),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[i.Ab]}),t})(),fC=(()=>{class t extends hC{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(dC),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[i.Ab]}),t})();class bC{constructor(){this.tasks=[],this.endTasks=[]}}let gC=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new lr.a}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new bC,this._getScheduleObservable().pipe(Vh(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new bC;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(Wi.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(li(1))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.B))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),_C=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof wC?t.headerCell.template:this instanceof OC?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N),i.Ob(i.u))},t.\u0275dir=i.Jb({type:t,features:[i.Bb]}),t})();class vC extends _C{}const yC=iC(vC);let wC=(()=>{class t extends yC{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N),i.Ob(i.u),i.Ob(rC,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.Ab,i.Bb]}),t})();class CC extends _C{}const xC=iC(CC);let OC=(()=>{class t extends xC{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N),i.Ob(i.u),i.Ob(rC,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.Ab,i.Bb]}),t})(),SC=(()=>{class t extends _C{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N),i.Ob(i.u),i.Ob(rC,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.Ab]}),t})(),TC=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),DC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[TC],encapsulation:2}),t})(),kC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[TC],encapsulation:2}),t})(),PC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[TC],encapsulation:2}),t})(),EC=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const AC=["top","bottom","left","right"];class IC{constructor(t,e,n,i,r=!0,o=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=r,this._needsPositionStickyOnElement=o}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t<i.children.length;t++)n.push(i.children[t])}this._coalescedStyleScheduler.schedule(()=>{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const i=t[0],r=i.children.length,o=this._getCellWidths(i),s=this._getStickyStartColumnPositions(o,e),a=this._getStickyEndColumnPositions(o,n);this._coalescedStyleScheduler.schedule(()=>{const i="rtl"===this.direction,o=i?"right":"left",c=i?"left":"right";for(const l of t)for(let t=0;t<r;t++){const i=l.children[t];e[t]&&this._addStickyStyle(i,o,s[t]),n[t]&&this._addStickyStyle(i,c,a[t])}})}stickRows(t,e,n){if(!this._isBrowser)return;const i="bottom"===n?t.slice().reverse():t,r="bottom"===n?e.slice().reverse():e,o=[],s=[];for(let a=0,c=0;a<i.length;a++){if(o[a]=c,!r[a])continue;const t=i[a];s[a]=this._isNativeHtmlTable?Array.from(t.children):[t],a!==i.length-1&&(c+=t.getBoundingClientRect().height)}this._coalescedStyleScheduler.schedule(()=>{for(let t=0;t<i.length;t++){if(!r[t])continue;const e=o[t];for(const i of s[t])this._addStickyStyle(i,n,e)}})}updateStickyFooterContainer(t,e){if(!this._isNativeHtmlTable)return;const n=t.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";AC.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n){t.classList.add(this._stickCellCss),t.style[e]=n+"px",t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const i of AC)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t){const e=[],n=t.children;for(let i=0;i<n.length;i++)e.push(n[i].getBoundingClientRect().width);return e}_getStickyStartColumnPositions(t,e){const n=[];let i=0;for(let r=0;r<t.length;r++)e[r]&&(n[r]=i,i+=t[r]);return n}_getStickyEndColumnPositions(t,e){const n=[];let i=0;for(let r=t.length;r>0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}function MC(t){return Error(`Could not find column with id "${t}".`)}let UC=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","rowOutlet",""]]}),t})(),LC=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),RC=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),NC=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),FC=(()=>{class t{constructor(t,e,n,i,r,o,s,a){this._differs=t,this._changeDetectorRef=e,this._coalescedStyleScheduler=n,this._elementRef=i,this._dir=o,this._platform=a,this._onDestroy=new lr.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new dr({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){Object(i.Z)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}.`),this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Lu(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():t&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),wf(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;t.forEachOperation((t,n,i)=>{if(null==t.previousIndex)this._insertRow(t.item,i);else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let i=0;i<e.length;i++)this._renderRows[i].rowDef===t&&n.push(e[i]);this._addStickyColumnStyles(n,t)}),n.forEach((t,e)=>{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n<this._data.length;n++){let i=this._data[n];const r=this._getRenderRowsForData(i,n,e.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(let e=0;e<r.length;e++){let n=r[e];const i=this._cachedRenderRowsMap.get(n.data);i.has(n.rowDef)?i.get(n.rowDef).push(n):i.set(n.rowDef,[n]),t.push(n)}}return t}_getRenderRowsForData(t,e,n){return this._getRowDefs(t,e).map(i=>{const r=n&&n.has(i)?n.get(i):[];if(r.length){const t=r.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),VC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{if(this._columnDefsByName.has(t.name))throw function(t){return Error(`Duplicate column definition name provided: "${t}".`)}(t.name);this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=VC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=VC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=VC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);if(!this.multiTemplateDataRows&&t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],wf(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;if(wf(this.dataSource)?t=this.dataSource.connect(this):uf(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(s.a)(this.dataSource)),void 0===t)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=t.pipe(Vh(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>{const e=this._columnDefsByName.get(t);if(!e)throw MC(t);return e}),i=n.map(t=>t.sticky),r=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,r)}_getRenderedRows(t){const e=[];for(let n=0;n<t.viewContainer.length;n++){const i=t.viewContainer.get(n);e.push(i.rootNodes[0])}return e}_getRowDefs(t,e){if(1==this._rowDefs.length)return[this._rowDefs[0]];let n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(n=>!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}if(!n.length)throw function(t){return Error("Could not find a matching row definition for theprovided row data: "+JSON.stringify(t))}(t);return n}_insertRow(t,e){this._renderRow(this._rowOutlet,t.rowDef,e,{$implicit:t.data})}_renderRow(t,e,n,i={}){t.viewContainer.createEmbeddedView(e.template,i,n);for(let r of this._getCellTemplates(e))TC.mostRecentCellOutlet&&TC.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,i);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e<n;e++){const i=t.get(e).context;i.count=n,i.first=0===e,i.last=e===n-1,i.even=e%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[e].dataIndex,i.renderIndex=e):i.index=this._renderRows[e].dataIndex}}_getCellTemplates(t){return t&&t.columns?Array.from(t.columns,e=>{const n=this._columnDefsByName.get(e);if(!n)throw MC(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new IC(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(s.a)()).pipe(Vh(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){if(this._noDataRow){const t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){const e=this._noDataRowOutlet.viewContainer;t?e.createEmbeddedView(this._noDataRow.templateRef):e.clear(),this._isShowingNoDataRow=t}}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.u),i.Ob(i.h),i.Ob(gC),i.Ob(i.l),i.Zb("role"),i.Ob(_d,8),i.Ob(o.e),i.Ob(vu))},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,EC,!0),i.Hb(n,dC,!0),i.Hb(n,SC,!0),i.Hb(n,wC,!0),i.Hb(n,OC,!0)),2&t&&(i.tc(r=i.dc())&&(e._noDataRow=r.first),i.tc(r=i.dc())&&(e._contentColumnDefs=r),i.tc(r=i.dc())&&(e._contentRowDefs=r),i.tc(r=i.dc())&&(e._contentHeaderRowDefs=r),i.tc(r=i.dc())&&(e._contentFooterRowDefs=r))},viewQuery:function(t,e){var n;1&t&&(i.Fc(UC,!0),i.Fc(LC,!0),i.Fc(RC,!0),i.Fc(NC,!0)),2&t&&(i.tc(n=i.dc())&&(e._rowOutlet=n.first),i.tc(n=i.dc())&&(e._headerRowOutlet=n.first),i.tc(n=i.dc())&&(e._footerRowOutlet=n.first),i.tc(n=i.dc())&&(e._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[i.Cb([{provide:rC,useExisting:t},gC])],ngContentSelectors:tC,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(i.lc(Zw),i.kc(0),i.kc(1,1),i.Qb(2,0),i.Qb(3,1),i.Qb(4,2),i.Qb(5,3))},directives:[LC,UC,NC,RC],encapsulation:2}),t})();function VC(t,e){return t.concat(Array.from(e))}let jC=(()=>{class t{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){if(this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),!this._table)throw Error("Text column could not find a parent table for registration.");this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef)}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;if(Object(i.Z)()&&!t)throw Error("Table text column must have a name.");return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(FC,8),i.Ob(oC,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var n;1&t&&(i.Fc(dC,!0),i.Fc(sC,!0),i.Fc(aC,!0)),2&t&&(i.tc(n=i.dc())&&(e.columnDef=n.first),i.tc(n=i.dc())&&(e.cell=n.first),i.tc(n=i.dc())&&(e.headerCell=n.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(i.Sb(0,0),i.Jc(1,eC,2,3,"th",1),i.Jc(2,nC,2,3,"td",2),i.Rb())},directives:[dC,aC,sC,pC,fC],encapsulation:2}),t})(),BC=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();const zC=[[["caption"]],[["colgroup"],["col"]]],qC=["caption","colgroup, col"];function HC(t,e){if(1&t&&(i.Ub(0,"th",3),i.Lc(1),i.Tb()),2&t){const t=i.gc();i.Gc("text-align",t.justify),i.Db(1),i.Nc(" ",t.headerText," ")}}function GC(t,e){if(1&t&&(i.Ub(0,"td",4),i.Lc(1),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Gc("text-align",n.justify),i.Db(1),i.Nc(" ",n.dataAccessor(t,n.name)," ")}}let JC=(()=>{class t extends FC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return YC(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[i.Cb([{provide:FC,useExisting:t},{provide:rC,useExisting:t},gC]),i.Ab],ngContentSelectors:qC,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(i.lc(zC),i.kc(0),i.kc(1,1),i.Qb(2,0),i.Qb(3,1),i.Qb(4,2),i.Qb(5,3))},directives:[LC,UC,NC,RC],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type,[dir=rtl] mat-header-cell:first-of-type,[dir=rtl] mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type,[dir=rtl] mat-header-cell:last-of-type,[dir=rtl] mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type,[dir=rtl] td.mat-cell:first-of-type,[dir=rtl] td.mat-footer-cell:first-of-type{padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type,[dir=rtl] td.mat-cell:last-of-type,[dir=rtl] td.mat-footer-cell:last-of-type{padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}\n'],encapsulation:2}),t})();const YC=i.Wb(JC);let $C=(()=>{class t extends sC{}return t.\u0275fac=function(e){return WC(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matCellDef",""]],features:[i.Cb([{provide:sC,useExisting:t}]),i.Ab]}),t})();const WC=i.Wb($C);let KC=(()=>{class t extends aC{}return t.\u0275fac=function(e){return QC(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matHeaderCellDef",""]],features:[i.Cb([{provide:aC,useExisting:t}]),i.Ab]}),t})();const QC=i.Wb(KC);let XC=(()=>{class t extends cC{}return t.\u0275fac=function(e){return ZC(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matFooterCellDef",""]],features:[i.Cb([{provide:cC,useExisting:t}]),i.Ab]}),t})();const ZC=i.Wb(XC);let tx=(()=>{class t extends dC{_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)}}return t.\u0275fac=function(e){return ex(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.Cb([{provide:dC,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),i.Ab]}),t})();const ex=i.Wb(tx);let nx=(()=>{class t extends pC{}return t.\u0275fac=function(e){return ix(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.Ab]}),t})();const ix=i.Wb(nx);let rx=(()=>{class t extends mC{}return t.\u0275fac=function(e){return ox(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.Ab]}),t})();const ox=i.Wb(rx);let sx=(()=>{class t extends fC{}return t.\u0275fac=function(e){return ax(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.Ab]}),t})();const ax=i.Wb(sx);let cx=(()=>{class t extends wC{}return t.\u0275fac=function(e){return lx(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.Cb([{provide:wC,useExisting:t}]),i.Ab]}),t})();const lx=i.Wb(cx);let ux=(()=>{class t extends OC{}return t.\u0275fac=function(e){return dx(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.Cb([{provide:OC,useExisting:t}]),i.Ab]}),t})();const dx=i.Wb(ux);let hx=(()=>{class t extends SC{}return t.\u0275fac=function(e){return px(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.Cb([{provide:SC,useExisting:t}]),i.Ab]}),t})();const px=i.Wb(hx);let mx=(()=>{class t extends DC{}return t.\u0275fac=function(e){return fx(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i.Cb([{provide:DC,useExisting:t}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[TC],encapsulation:2}),t})();const fx=i.Wb(mx);let bx=(()=>{class t extends kC{}return t.\u0275fac=function(e){return gx(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.Cb([{provide:kC,useExisting:t}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[TC],encapsulation:2}),t})();const gx=i.Wb(bx);let _x=(()=>{class t extends PC{}return t.\u0275fac=function(e){return vx(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i.Cb([{provide:PC,useExisting:t}]),i.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[TC],encapsulation:2}),t})();const vx=i.Wb(_x);let yx=(()=>{class t extends EC{}return t.\u0275fac=function(e){return wx(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[i.Cb([{provide:EC,useExisting:t}]),i.Ab]}),t})();const wx=i.Wb(yx);let Cx=(()=>{class t extends jC{}return t.\u0275fac=function(e){return xx(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-text-column"]],features:[i.Ab],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(t,e){1&t&&(i.Sb(0,0),i.Jc(1,HC,2,3,"th",1),i.Jc(2,GC,2,3,"td",2),i.Rb())},directives:[tx,KC,$C,nx,sx],encapsulation:2}),t})();const xx=i.Wb(Cx);let Ox=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[BC,Ed],Ed]}),t})();class Sx extends yf{constructor(t=[]){super(),this._renderData=new dr([]),this._filter=new dr(""),this._internalPageChanges=new lr.a,this._renderChangesSubscription=Ir.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(Nu(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,i=e.direction;return n&&""!=i?t.sort((t,e)=>{let r=this.sortingDataAccessor(t,n),o=this.sortingDataAccessor(e,n),s=0;return null!=r&&null!=o?r>o?s=1:r<o&&(s=-1):null!=r?s=1:null!=o&&(s=-1),s*("asc"==i?1:-1)}):t},this.filterPredicate=(t,e)=>{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),i=e.trim().toLowerCase();return-1!=n.indexOf(i)},this._data=new dr(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Object(ii.a)(this._sort.sortChange,this._sort.initialized):Object(s.a)(null),e=this._paginator?Object(ii.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(s.a)(null),n=vr([this._data,this._filter]).pipe(Object(m.a)(([t])=>this._filterData(t))),i=vr([n,t]).pipe(Object(m.a)(([t])=>this._orderData(t))),r=vr([i,e]).pipe(Object(m.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}class Tx{constructor(t){this.total=t}call(t,e){return e.subscribe(new Dx(t,this.total))}}class Dx extends u.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}let kx=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();const Px=new Set;let Ex,Ax=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ix}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Px.has(t))try{Ex||(Ex=document.createElement("style"),Ex.setAttribute("type","text/css"),document.head.appendChild(Ex)),Ex.sheet&&(Ex.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Px.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(vu))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(vu))},token:t,providedIn:"root"}),t})();function Ix(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let Mx=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new lr.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Ux(Fu(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=vr(Ux(Fu(t)).map(t=>this._registerQuery(t).observable));return e=si(e.pipe(li(1)),e.pipe(t=>t.lift(new Tx(1)),Au(0))),e.pipe(Object(m.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new a.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Pr(e),Object(m.a)(e=>({query:t,matches:e.matches})),Vh(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Ax),i.Yb(i.B))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(Ax),Object(i.Yb)(i.B))},token:t,providedIn:"root"}),t})();function Ux(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const Lx="(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Rx={tooltipState:It("state",[Nt("initial, void, hidden",Rt({opacity:0,transform:"scale(0)"})),Nt("visible",Rt({transform:"scale(1)"})),Vt("* => visible",Mt("200ms cubic-bezier(0, 0, 0.2, 1)",Ft([Rt({opacity:0,transform:"scale(0)",offset:0}),Rt({opacity:.5,transform:"scale(0.99)",offset:.5}),Rt({opacity:1,transform:"scale(1)",offset:1})]))),Vt("* => hidden",Mt("100ms cubic-bezier(0, 0, 0.2, 1)",Rt({opacity:0})))])},Nx=Tu({passive:!0});function Fx(t){return Error(`Tooltip position "${t}" is invalid.`)}const Vx=new i.s("mat-tooltip-scroll-strategy"),jx={provide:Vx,deps:[rb],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},Bx=new i.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let zx=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=o,this._ariaDescriber=s,this._focusMonitor=a,this._dir=l,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new lr.a,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!Pu(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),r.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Lu(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Vh(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,Nx)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Xm(qx,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Vh(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Vh(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Vh(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;if("above"==e||"below"==e)n={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)n={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Fx(e);n={originX:"end",originY:"center"}}const{x:i,y:r}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:r}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;if("above"==e)n={overlayX:"center",overlayY:"bottom"};else if("below"==e)n={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)n={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw Fx(e);n={overlayX:"start",overlayY:"center"}}const{x:i,y:r}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(li(1),Vh(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,Nx)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(rb),i.Ob(i.l),i.Ob(Of),i.Ob(i.S),i.Ob(i.B),i.Ob(vu),i.Ob(Wu),i.Ob(hd),i.Ob(Vx),i.Ob(_d,8),i.Ob(Bx,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),qx=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new lr.a,this._isHandset=this._breakpointObserver.observe(Lx)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(Mx))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("click",(function(){return e._handleBodyInteraction()}),!1,i.vc),2&t&&i.Gc("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(i.Ub(0,"div",0),i.cc("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),i.hc(1,"async"),i.Lc(2),i.Tb()),2&t&&(i.Gb("mat-tooltip-handset",null==(n=i.ic(1,5,e._isHandset))?null:n.matches),i.mc("ngClass",e.tooltipClass)("@state",e._visibility),i.Db(2),i.Mc(e.message))},directives:[o.q],pipes:[o.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Rx.tooltipState]},changeDetection:0}),t})(),Hx=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[jx],imports:[[bd,o.c,ub,Ed],Ed,Df]}),t})(),Gx=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Hm,$_,Lh,Qv,Ib,I_,Lv,cw,dy,By,K_,Xw,Ox,Hx],Hm,$_,Lh,Qv,Ib,I_,Lv,cw,dy,By,K_,Xw,Ox,Hx]}),t})(),Jx=(()=>{class t extends wp{buildStyles(t){return function(t=""){const e={},[n,i]=t.split(" ");switch(n){case"end":e["justify-self"]="end";break;case"center":e["justify-self"]="center";break;case"stretch":e["justify-self"]="stretch";break;case"start":e["justify-self"]="start";break;default:e["justify-self"]="stretch"}switch(i){case"end":e["align-self"]="end";break;case"center":e["align-self"]="center";break;case"stretch":e["align-self"]="stretch";break;case"start":e["align-self"]="start";break;default:e["align-self"]="stretch"}return e}(t||"stretch")}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),Yx=(()=>{class t extends tp{constructor(t,e,n,i){super(t,e,n,i),this.DIRECTIVE_KEY="grid-align",this.styleCache=$x,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Jx),i.Ob(yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const $x=new Map,Wx=["gdGridAlign","gdGridAlign.xs","gdGridAlign.sm","gdGridAlign.md","gdGridAlign.lg","gdGridAlign.xl","gdGridAlign.lt-sm","gdGridAlign.lt-md","gdGridAlign.lt-lg","gdGridAlign.lt-xl","gdGridAlign.gt-xs","gdGridAlign.gt-sm","gdGridAlign.gt-md","gdGridAlign.gt-lg"];let Kx=(()=>{class t extends Yx{constructor(){super(...arguments),this.inputs=Wx}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdGridAlign",""],["","gdGridAlign.xs",""],["","gdGridAlign.sm",""],["","gdGridAlign.md",""],["","gdGridAlign.lg",""],["","gdGridAlign.xl",""],["","gdGridAlign.lt-sm",""],["","gdGridAlign.lt-md",""],["","gdGridAlign.lt-lg",""],["","gdGridAlign.lt-xl",""],["","gdGridAlign.gt-xs",""],["","gdGridAlign.gt-sm",""],["","gdGridAlign.gt-md",""],["","gdGridAlign.gt-lg",""]],inputs:{gdGridAlign:"gdGridAlign","gdGridAlign.xs":"gdGridAlign.xs","gdGridAlign.sm":"gdGridAlign.sm","gdGridAlign.md":"gdGridAlign.md","gdGridAlign.lg":"gdGridAlign.lg","gdGridAlign.xl":"gdGridAlign.xl","gdGridAlign.lt-sm":"gdGridAlign.lt-sm","gdGridAlign.lt-md":"gdGridAlign.lt-md","gdGridAlign.lt-lg":"gdGridAlign.lt-lg","gdGridAlign.lt-xl":"gdGridAlign.lt-xl","gdGridAlign.gt-xs":"gdGridAlign.gt-xs","gdGridAlign.gt-sm":"gdGridAlign.gt-sm","gdGridAlign.gt-md":"gdGridAlign.gt-md","gdGridAlign.gt-lg":"gdGridAlign.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),Qx=(()=>{class t extends wp{buildStyles(t,e){return function(t,e){const n={},[i,r]=t.split(" ");switch(i){case"center":n["align-content"]="center";break;case"space-around":n["align-content"]="space-around";break;case"space-between":n["align-content"]="space-between";break;case"space-evenly":n["align-content"]="space-evenly";break;case"end":n["align-content"]="end";break;case"start":n["align-content"]="start";break;case"stretch":n["align-content"]="stretch";break;default:n["align-content"]="start"}switch(r){case"start":n["align-items"]="start";break;case"center":n["align-items"]="center";break;case"end":n["align-items"]="end";break;case"stretch":default:n["align-items"]="stretch"}return n.display=e?"inline-grid":"grid",n}(t||"start stretch",e.inline)}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),Xx=(()=>{class t extends tp{constructor(t,e,n,i){super(t,e,n,i),this.DIRECTIVE_KEY="grid-align-columns",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=Lu(t)}updateWithValue(t){this.styleCache=this.inline?tO:Zx,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Qx),i.Ob(yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,inputs:{inline:["gdInline","inline"]},features:[i.Ab]}),t})();const Zx=new Map,tO=new Map,eO=["gdAlignColumns","gdAlignColumns.xs","gdAlignColumns.sm","gdAlignColumns.md","gdAlignColumns.lg","gdAlignColumns.xl","gdAlignColumns.lt-sm","gdAlignColumns.lt-md","gdAlignColumns.lt-lg","gdAlignColumns.lt-xl","gdAlignColumns.gt-xs","gdAlignColumns.gt-sm","gdAlignColumns.gt-md","gdAlignColumns.gt-lg"];let nO=(()=>{class t extends Xx{constructor(){super(...arguments),this.inputs=eO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdAlignColumns",""],["","gdAlignColumns.xs",""],["","gdAlignColumns.sm",""],["","gdAlignColumns.md",""],["","gdAlignColumns.lg",""],["","gdAlignColumns.xl",""],["","gdAlignColumns.lt-sm",""],["","gdAlignColumns.lt-md",""],["","gdAlignColumns.lt-lg",""],["","gdAlignColumns.lt-xl",""],["","gdAlignColumns.gt-xs",""],["","gdAlignColumns.gt-sm",""],["","gdAlignColumns.gt-md",""],["","gdAlignColumns.gt-lg",""]],inputs:{gdAlignColumns:"gdAlignColumns","gdAlignColumns.xs":"gdAlignColumns.xs","gdAlignColumns.sm":"gdAlignColumns.sm","gdAlignColumns.md":"gdAlignColumns.md","gdAlignColumns.lg":"gdAlignColumns.lg","gdAlignColumns.xl":"gdAlignColumns.xl","gdAlignColumns.lt-sm":"gdAlignColumns.lt-sm","gdAlignColumns.lt-md":"gdAlignColumns.lt-md","gdAlignColumns.lt-lg":"gdAlignColumns.lt-lg","gdAlignColumns.lt-xl":"gdAlignColumns.lt-xl","gdAlignColumns.gt-xs":"gdAlignColumns.gt-xs","gdAlignColumns.gt-sm":"gdAlignColumns.gt-sm","gdAlignColumns.gt-md":"gdAlignColumns.gt-md","gdAlignColumns.gt-lg":"gdAlignColumns.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),iO=(()=>{class t extends wp{buildStyles(t,e){return function(t,e){const n={},[i,r]=t.split(" ");switch(i){case"center":case"space-around":case"space-between":case"space-evenly":case"end":case"start":case"stretch":n["justify-content"]=i;break;default:n["justify-content"]="start"}switch(r){case"start":case"center":case"end":case"stretch":n["justify-items"]=r;break;default:n["justify-items"]="stretch"}return n.display=e?"inline-grid":"grid",n}(t||"start stretch",e.inline)}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),rO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,e,n,i),this.DIRECTIVE_KEY="grid-align-rows",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=Lu(t)}updateWithValue(t){this.styleCache=this.inline?sO:oO,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(iO),i.Ob(yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,inputs:{inline:["gdInline","inline"]},features:[i.Ab]}),t})();const oO=new Map,sO=new Map,aO=["gdAlignRows","gdAlignRows.xs","gdAlignRows.sm","gdAlignRows.md","gdAlignRows.lg","gdAlignRows.xl","gdAlignRows.lt-sm","gdAlignRows.lt-md","gdAlignRows.lt-lg","gdAlignRows.lt-xl","gdAlignRows.gt-xs","gdAlignRows.gt-sm","gdAlignRows.gt-md","gdAlignRows.gt-lg"];let cO=(()=>{class t extends rO{constructor(){super(...arguments),this.inputs=aO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdAlignRows",""],["","gdAlignRows.xs",""],["","gdAlignRows.sm",""],["","gdAlignRows.md",""],["","gdAlignRows.lg",""],["","gdAlignRows.xl",""],["","gdAlignRows.lt-sm",""],["","gdAlignRows.lt-md",""],["","gdAlignRows.lt-lg",""],["","gdAlignRows.lt-xl",""],["","gdAlignRows.gt-xs",""],["","gdAlignRows.gt-sm",""],["","gdAlignRows.gt-md",""],["","gdAlignRows.gt-lg",""]],inputs:{gdAlignRows:"gdAlignRows","gdAlignRows.xs":"gdAlignRows.xs","gdAlignRows.sm":"gdAlignRows.sm","gdAlignRows.md":"gdAlignRows.md","gdAlignRows.lg":"gdAlignRows.lg","gdAlignRows.xl":"gdAlignRows.xl","gdAlignRows.lt-sm":"gdAlignRows.lt-sm","gdAlignRows.lt-md":"gdAlignRows.lt-md","gdAlignRows.lt-lg":"gdAlignRows.lt-lg","gdAlignRows.lt-xl":"gdAlignRows.lt-xl","gdAlignRows.gt-xs":"gdAlignRows.gt-xs","gdAlignRows.gt-sm":"gdAlignRows.gt-sm","gdAlignRows.gt-md":"gdAlignRows.gt-md","gdAlignRows.gt-lg":"gdAlignRows.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),lO=(()=>{class t extends wp{buildStyles(t){return{"grid-area":t||"auto"}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),uO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="grid-area",this.styleCache=dO,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(lO),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const dO=new Map,hO=["gdArea","gdArea.xs","gdArea.sm","gdArea.md","gdArea.lg","gdArea.xl","gdArea.lt-sm","gdArea.lt-md","gdArea.lt-lg","gdArea.lt-xl","gdArea.gt-xs","gdArea.gt-sm","gdArea.gt-md","gdArea.gt-lg"];let pO=(()=>{class t extends uO{constructor(){super(...arguments),this.inputs=hO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdArea",""],["","gdArea.xs",""],["","gdArea.sm",""],["","gdArea.md",""],["","gdArea.lg",""],["","gdArea.xl",""],["","gdArea.lt-sm",""],["","gdArea.lt-md",""],["","gdArea.lt-lg",""],["","gdArea.lt-xl",""],["","gdArea.gt-xs",""],["","gdArea.gt-sm",""],["","gdArea.gt-md",""],["","gdArea.gt-lg",""]],inputs:{gdArea:"gdArea","gdArea.xs":"gdArea.xs","gdArea.sm":"gdArea.sm","gdArea.md":"gdArea.md","gdArea.lg":"gdArea.lg","gdArea.xl":"gdArea.xl","gdArea.lt-sm":"gdArea.lt-sm","gdArea.lt-md":"gdArea.lt-md","gdArea.lt-lg":"gdArea.lt-lg","gdArea.lt-xl":"gdArea.lt-xl","gdArea.gt-xs":"gdArea.gt-xs","gdArea.gt-sm":"gdArea.gt-sm","gdArea.gt-md":"gdArea.gt-md","gdArea.gt-lg":"gdArea.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),mO=(()=>{class t extends wp{buildStyles(t,e){const n=(t||"none").split("|").map(t=>`"${t.trim()}"`);return{display:e.inline?"inline-grid":"grid","grid-template-areas":n.join(" ")}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),fO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="grid-areas",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=Lu(t)}updateWithValue(t){this.styleCache=this.inline?gO:bO,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(mO),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,inputs:{inline:["gdInline","inline"]},features:[i.Ab]}),t})();const bO=new Map,gO=new Map,_O=["gdAreas","gdAreas.xs","gdAreas.sm","gdAreas.md","gdAreas.lg","gdAreas.xl","gdAreas.lt-sm","gdAreas.lt-md","gdAreas.lt-lg","gdAreas.lt-xl","gdAreas.gt-xs","gdAreas.gt-sm","gdAreas.gt-md","gdAreas.gt-lg"];let vO=(()=>{class t extends fO{constructor(){super(...arguments),this.inputs=_O}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdAreas",""],["","gdAreas.xs",""],["","gdAreas.sm",""],["","gdAreas.md",""],["","gdAreas.lg",""],["","gdAreas.xl",""],["","gdAreas.lt-sm",""],["","gdAreas.lt-md",""],["","gdAreas.lt-lg",""],["","gdAreas.lt-xl",""],["","gdAreas.gt-xs",""],["","gdAreas.gt-sm",""],["","gdAreas.gt-md",""],["","gdAreas.gt-lg",""]],inputs:{gdAreas:"gdAreas","gdAreas.xs":"gdAreas.xs","gdAreas.sm":"gdAreas.sm","gdAreas.md":"gdAreas.md","gdAreas.lg":"gdAreas.lg","gdAreas.xl":"gdAreas.xl","gdAreas.lt-sm":"gdAreas.lt-sm","gdAreas.lt-md":"gdAreas.lt-md","gdAreas.lt-lg":"gdAreas.lt-lg","gdAreas.lt-xl":"gdAreas.lt-xl","gdAreas.gt-xs":"gdAreas.gt-xs","gdAreas.gt-sm":"gdAreas.gt-sm","gdAreas.gt-md":"gdAreas.gt-md","gdAreas.gt-lg":"gdAreas.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),yO=(()=>{class t extends wp{buildStyles(t,e){let[n,i]=(t||"initial").split(" ");return"column"!==n&&"row"!==n&&"dense"!==n&&(n="row"),i="dense"===i&&"dense"!==n?" dense":"",{display:e.inline?"inline-grid":"grid","grid-auto-flow":n+i}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),wO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,e,n,i),this._inline=!1,this.DIRECTIVE_KEY="grid-auto",this.init()}get inline(){return this._inline}set inline(t){this._inline=Lu(t)}updateWithValue(t){this.styleCache=this.inline?xO:CO,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yO),i.Ob(yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,inputs:{inline:["gdInline","inline"]},features:[i.Ab]}),t})();const CO=new Map,xO=new Map,OO=["gdAuto","gdAuto.xs","gdAuto.sm","gdAuto.md","gdAuto.lg","gdAuto.xl","gdAuto.lt-sm","gdAuto.lt-md","gdAuto.lt-lg","gdAuto.lt-xl","gdAuto.gt-xs","gdAuto.gt-sm","gdAuto.gt-md","gdAuto.gt-lg"];let SO=(()=>{class t extends wO{constructor(){super(...arguments),this.inputs=OO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdAuto",""],["","gdAuto.xs",""],["","gdAuto.sm",""],["","gdAuto.md",""],["","gdAuto.lg",""],["","gdAuto.xl",""],["","gdAuto.lt-sm",""],["","gdAuto.lt-md",""],["","gdAuto.lt-lg",""],["","gdAuto.lt-xl",""],["","gdAuto.gt-xs",""],["","gdAuto.gt-sm",""],["","gdAuto.gt-md",""],["","gdAuto.gt-lg",""]],inputs:{gdAuto:"gdAuto","gdAuto.xs":"gdAuto.xs","gdAuto.sm":"gdAuto.sm","gdAuto.md":"gdAuto.md","gdAuto.lg":"gdAuto.lg","gdAuto.xl":"gdAuto.xl","gdAuto.lt-sm":"gdAuto.lt-sm","gdAuto.lt-md":"gdAuto.lt-md","gdAuto.lt-lg":"gdAuto.lt-lg","gdAuto.lt-xl":"gdAuto.lt-xl","gdAuto.gt-xs":"gdAuto.gt-xs","gdAuto.gt-sm":"gdAuto.gt-sm","gdAuto.gt-md":"gdAuto.gt-md","gdAuto.gt-lg":"gdAuto.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),TO=(()=>{class t extends wp{buildStyles(t){return{"grid-column":t||"auto"}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),DO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,e,n,i),this.DIRECTIVE_KEY="grid-column",this.styleCache=kO,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(TO),i.Ob(yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const kO=new Map,PO=["gdColumn","gdColumn.xs","gdColumn.sm","gdColumn.md","gdColumn.lg","gdColumn.xl","gdColumn.lt-sm","gdColumn.lt-md","gdColumn.lt-lg","gdColumn.lt-xl","gdColumn.gt-xs","gdColumn.gt-sm","gdColumn.gt-md","gdColumn.gt-lg"];let EO=(()=>{class t extends DO{constructor(){super(...arguments),this.inputs=PO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdColumn",""],["","gdColumn.xs",""],["","gdColumn.sm",""],["","gdColumn.md",""],["","gdColumn.lg",""],["","gdColumn.xl",""],["","gdColumn.lt-sm",""],["","gdColumn.lt-md",""],["","gdColumn.lt-lg",""],["","gdColumn.lt-xl",""],["","gdColumn.gt-xs",""],["","gdColumn.gt-sm",""],["","gdColumn.gt-md",""],["","gdColumn.gt-lg",""]],inputs:{gdColumn:"gdColumn","gdColumn.xs":"gdColumn.xs","gdColumn.sm":"gdColumn.sm","gdColumn.md":"gdColumn.md","gdColumn.lg":"gdColumn.lg","gdColumn.xl":"gdColumn.xl","gdColumn.lt-sm":"gdColumn.lt-sm","gdColumn.lt-md":"gdColumn.lt-md","gdColumn.lt-lg":"gdColumn.lt-lg","gdColumn.lt-xl":"gdColumn.lt-xl","gdColumn.gt-xs":"gdColumn.gt-xs","gdColumn.gt-sm":"gdColumn.gt-sm","gdColumn.gt-md":"gdColumn.gt-md","gdColumn.gt-lg":"gdColumn.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),AO=(()=>{class t extends wp{buildStyles(t,e){let n=!1;(t=t||"none").endsWith("!")&&(t=t.substring(0,t.indexOf("!")),n=!0);const i={display:e.inline?"inline-grid":"grid","grid-auto-columns":"","grid-template-columns":""};return i[n?"grid-auto-columns":"grid-template-columns"]=t,i}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),IO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,e,n,i),this.DIRECTIVE_KEY="grid-columns",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=Lu(t)}updateWithValue(t){this.styleCache=this.inline?UO:MO,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(AO),i.Ob(yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,inputs:{inline:["gdInline","inline"]},features:[i.Ab]}),t})();const MO=new Map,UO=new Map,LO=["gdColumns","gdColumns.xs","gdColumns.sm","gdColumns.md","gdColumns.lg","gdColumns.xl","gdColumns.lt-sm","gdColumns.lt-md","gdColumns.lt-lg","gdColumns.lt-xl","gdColumns.gt-xs","gdColumns.gt-sm","gdColumns.gt-md","gdColumns.gt-lg"];let RO=(()=>{class t extends IO{constructor(){super(...arguments),this.inputs=LO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdColumns",""],["","gdColumns.xs",""],["","gdColumns.sm",""],["","gdColumns.md",""],["","gdColumns.lg",""],["","gdColumns.xl",""],["","gdColumns.lt-sm",""],["","gdColumns.lt-md",""],["","gdColumns.lt-lg",""],["","gdColumns.lt-xl",""],["","gdColumns.gt-xs",""],["","gdColumns.gt-sm",""],["","gdColumns.gt-md",""],["","gdColumns.gt-lg",""]],inputs:{gdColumns:"gdColumns","gdColumns.xs":"gdColumns.xs","gdColumns.sm":"gdColumns.sm","gdColumns.md":"gdColumns.md","gdColumns.lg":"gdColumns.lg","gdColumns.xl":"gdColumns.xl","gdColumns.lt-sm":"gdColumns.lt-sm","gdColumns.lt-md":"gdColumns.lt-md","gdColumns.lt-lg":"gdColumns.lt-lg","gdColumns.lt-xl":"gdColumns.lt-xl","gdColumns.gt-xs":"gdColumns.gt-xs","gdColumns.gt-sm":"gdColumns.gt-sm","gdColumns.gt-md":"gdColumns.gt-md","gdColumns.gt-lg":"gdColumns.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),NO=(()=>{class t extends wp{buildStyles(t,e){return{display:e.inline?"inline-grid":"grid","grid-gap":t||"0"}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),FO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="grid-gap",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=Lu(t)}updateWithValue(t){this.styleCache=this.inline?jO:VO,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(yp),i.Ob(NO),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,inputs:{inline:["gdInline","inline"]},features:[i.Ab]}),t})();const VO=new Map,jO=new Map,BO=["gdGap","gdGap.xs","gdGap.sm","gdGap.md","gdGap.lg","gdGap.xl","gdGap.lt-sm","gdGap.lt-md","gdGap.lt-lg","gdGap.lt-xl","gdGap.gt-xs","gdGap.gt-sm","gdGap.gt-md","gdGap.gt-lg"];let zO=(()=>{class t extends FO{constructor(){super(...arguments),this.inputs=BO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdGap",""],["","gdGap.xs",""],["","gdGap.sm",""],["","gdGap.md",""],["","gdGap.lg",""],["","gdGap.xl",""],["","gdGap.lt-sm",""],["","gdGap.lt-md",""],["","gdGap.lt-lg",""],["","gdGap.lt-xl",""],["","gdGap.gt-xs",""],["","gdGap.gt-sm",""],["","gdGap.gt-md",""],["","gdGap.gt-lg",""]],inputs:{gdGap:"gdGap","gdGap.xs":"gdGap.xs","gdGap.sm":"gdGap.sm","gdGap.md":"gdGap.md","gdGap.lg":"gdGap.lg","gdGap.xl":"gdGap.xl","gdGap.lt-sm":"gdGap.lt-sm","gdGap.lt-md":"gdGap.lt-md","gdGap.lt-lg":"gdGap.lt-lg","gdGap.lt-xl":"gdGap.lt-xl","gdGap.gt-xs":"gdGap.gt-xs","gdGap.gt-sm":"gdGap.gt-sm","gdGap.gt-md":"gdGap.gt-md","gdGap.gt-lg":"gdGap.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),qO=(()=>{class t extends wp{buildStyles(t){return{"grid-row":t||"auto"}}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),HO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,e,n,i),this.DIRECTIVE_KEY="grid-row",this.styleCache=GO,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(qO),i.Ob(yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})();const GO=new Map,JO=["gdRow","gdRow.xs","gdRow.sm","gdRow.md","gdRow.lg","gdRow.xl","gdRow.lt-sm","gdRow.lt-md","gdRow.lt-lg","gdRow.lt-xl","gdRow.gt-xs","gdRow.gt-sm","gdRow.gt-md","gdRow.gt-lg"];let YO=(()=>{class t extends HO{constructor(){super(...arguments),this.inputs=JO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdRow",""],["","gdRow.xs",""],["","gdRow.sm",""],["","gdRow.md",""],["","gdRow.lg",""],["","gdRow.xl",""],["","gdRow.lt-sm",""],["","gdRow.lt-md",""],["","gdRow.lt-lg",""],["","gdRow.lt-xl",""],["","gdRow.gt-xs",""],["","gdRow.gt-sm",""],["","gdRow.gt-md",""],["","gdRow.gt-lg",""]],inputs:{gdRow:"gdRow","gdRow.xs":"gdRow.xs","gdRow.sm":"gdRow.sm","gdRow.md":"gdRow.md","gdRow.lg":"gdRow.lg","gdRow.xl":"gdRow.xl","gdRow.lt-sm":"gdRow.lt-sm","gdRow.lt-md":"gdRow.lt-md","gdRow.lt-lg":"gdRow.lt-lg","gdRow.lt-xl":"gdRow.lt-xl","gdRow.gt-xs":"gdRow.gt-xs","gdRow.gt-sm":"gdRow.gt-sm","gdRow.gt-md":"gdRow.gt-md","gdRow.gt-lg":"gdRow.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),$O=(()=>{class t extends wp{buildStyles(t,e){let n=!1;(t=t||"none").endsWith("!")&&(t=t.substring(0,t.indexOf("!")),n=!0);const i={display:e.inline?"inline-grid":"grid","grid-auto-rows":"","grid-template-rows":""};return i[n?"grid-auto-rows":"grid-template-rows"]=t,i}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"});const e=i.Wb(t);return t})(),WO=(()=>{class t extends tp{constructor(t,e,n,i){super(t,e,n,i),this.DIRECTIVE_KEY="grid-rows",this._inline=!1,this.init()}get inline(){return this._inline}set inline(t){this._inline=Lu(t)}updateWithValue(t){this.styleCache=this.inline?QO:KO,this.addStyles(t,{inline:this.inline})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob($O),i.Ob(yp),i.Ob(Op))},t.\u0275dir=i.Jb({type:t,inputs:{inline:["gdInline","inline"]},features:[i.Ab]}),t})();const KO=new Map,QO=new Map,XO=["gdRows","gdRows.xs","gdRows.sm","gdRows.md","gdRows.lg","gdRows.xl","gdRows.lt-sm","gdRows.lt-md","gdRows.lt-lg","gdRows.lt-xl","gdRows.gt-xs","gdRows.gt-sm","gdRows.gt-md","gdRows.gt-lg"];let ZO=(()=>{class t extends WO{constructor(){super(...arguments),this.inputs=XO}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","gdRows",""],["","gdRows.xs",""],["","gdRows.sm",""],["","gdRows.md",""],["","gdRows.lg",""],["","gdRows.xl",""],["","gdRows.lt-sm",""],["","gdRows.lt-md",""],["","gdRows.lt-lg",""],["","gdRows.lt-xl",""],["","gdRows.gt-xs",""],["","gdRows.gt-sm",""],["","gdRows.gt-md",""],["","gdRows.gt-lg",""]],inputs:{gdRows:"gdRows","gdRows.xs":"gdRows.xs","gdRows.sm":"gdRows.sm","gdRows.md":"gdRows.md","gdRows.lg":"gdRows.lg","gdRows.xl":"gdRows.xl","gdRows.lt-sm":"gdRows.lt-sm","gdRows.lt-md":"gdRows.lt-md","gdRows.lt-lg":"gdRows.lt-lg","gdRows.lt-xl":"gdRows.lt-xl","gdRows.gt-xs":"gdRows.gt-xs","gdRows.gt-sm":"gdRows.gt-sm","gdRows.gt-md":"gdRows.gt-md","gdRows.gt-lg":"gdRows.gt-lg"},features:[i.Ab]});const e=i.Wb(t);return t})(),tS=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Hh]]}),t})(),eS=(()=>{class t{constructor(t,e){Object(o.M)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:$h,useValue:Object.assign(Object.assign({},Yh),e)},{provide:Kh,useValue:n,multi:!0},{provide:Wh,useValue:!0}]:[{provide:$h,useValue:Object.assign(Object.assign({},Yh),e)},{provide:Kh,useValue:n,multi:!0}]}}}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(Wh),i.Yb(i.D))},imports:[[Lm,u_,tS],Lm,u_,tS]}),t})(),nS=(()=>{class t{constructor(t,e,n){this.router=t,this.title=e,this.meta=n,this.getDataRoute().subscribe(t=>{this.title.setTitle(t.snapshot.data.titulo+" - eNotary")})}ngOnInit(){}getDataRoute(){return this.router.events.pipe(d(t=>t instanceof Qr)).pipe(d(t=>null===t.snapshot.firstChild))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(Et),i.Ob(kt))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-breadcrumbs"]],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),iS=0;class rS{}const oS=Ad(rS);let sS=(()=>{class t extends oS{constructor(t,e,n,r,o){if(super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=n,this._renderer=r,this._animationMode=o,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=iS++,Object(i.Z)()){const t=e.nativeElement;if(t.nodeType!==t.ELEMENT_NODE)throw Error("matBadge must be attached to an element node.")}}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=Lu(t)}get description(){return this._description}set description(t){if(t!==this._description){const e=this._badgeElement;this._updateHostAriaDescription(t,this._description),this._description=t,e&&(t?e.setAttribute("aria-label",t):e.removeAttribute("aria-label"))}}get hidden(){return this._hidden}set hidden(t){this._hidden=Lu(t)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}ngOnChanges(t){const e=t.content;if(e){const t=e.currentValue;this._hasContent=null!=t&&(""+t).trim().length>0,this._updateTextContent()}}ngOnDestroy(){const t=this._badgeElement;t&&(this.description&&this._ariaDescriber.removeDescription(t,this.description),this._renderer.destroyNode&&this._renderer.destroyNode(t))}getBadgeElement(){return this._badgeElement}_updateTextContent(){return this._badgeElement?this._badgeElement.textContent=this.content:this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span");return this._clearExistingBadges("mat-badge-content"),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add("mat-badge-content"),t.textContent=this.content,"NoopAnimations"===this._animationMode&&t.classList.add("_mat-animation-noopable"),this.description&&t.setAttribute("aria-label",this.description),this._elementRef.nativeElement.appendChild(t),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add("mat-badge-active")})}):t.classList.add("mat-badge-active"),t}_updateHostAriaDescription(t,e){const n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)}_setColor(t){t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-badge-"+this._color),t&&this._elementRef.nativeElement.classList.add("mat-badge-"+t))}_clearExistingBadges(t){const e=this._elementRef.nativeElement;let n=e.children.length;for(;n--;){const i=e.children[n];i.classList.contains(t)&&e.removeChild(i)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.B),i.Ob(i.l),i.Ob(Wu),i.Ob(i.G),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&i.Gb("mat-badge-overlap",e.overlap)("mat-badge-above",e.isAbove())("mat-badge-below",!e.isAbove())("mat-badge-before",!e.isAfter())("mat-badge-after",e.isAfter())("mat-badge-small","small"===e.size)("mat-badge-medium","medium"===e.size)("mat-badge-large","large"===e.size)("mat-badge-hidden",e.hidden||!e._hasContent)("mat-badge-disabled",e.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],position:["matBadgePosition","position"],size:["matBadgeSize","size"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],description:["matBadgeDescription","description"],hidden:["matBadgeHidden","hidden"],content:["matBadge","content"]},features:[i.Ab,i.Bb]}),t})(),aS=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[bd,Ed],Ed]}),t})();const cS=["*"];function lS(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",2),i.cc("click",(function(){return i.yc(t),i.gc()._onBackdropClicked()})),i.Tb()}if(2&t){const t=i.gc();i.Gb("mat-drawer-shown",t._isShowingBackdrop())}}function uS(t,e){1&t&&(i.Ub(0,"mat-drawer-content"),i.kc(1,2),i.Tb())}const dS=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],hS=["mat-drawer","mat-drawer-content","*"];function pS(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",2),i.cc("click",(function(){return i.yc(t),i.gc()._onBackdropClicked()})),i.Tb()}if(2&t){const t=i.gc();i.Gb("mat-drawer-shown",t._isShowingBackdrop())}}function mS(t,e){1&t&&(i.Ub(0,"mat-sidenav-content",3),i.kc(1,2),i.Tb())}const fS=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],bS=["mat-sidenav","mat-sidenav-content","*"],gS=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",_S={transformDrawer:It("transform",[Nt("open, open-instant",Rt({transform:"none",visibility:"visible"})),Nt("void",Rt({"box-shadow":"none",visibility:"hidden"})),Vt("void => open-instant",Mt("0ms")),Vt("void <=> open, open-instant => void",Mt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function vS(t){throw Error(`A drawer was already declared for 'position="${t}"'`)}const yS=new i.s("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),wS=new i.s("MAT_DRAWER_CONTAINER");let CS=(()=>{class t extends Sf{constructor(t,e,n,i,r){super(n,i,r),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(Object(i.X)(()=>OS)),i.Ob(i.l),i.Ob(Of),i.Ob(i.B))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&i.Gc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[i.Ab],ngContentSelectors:cS,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.kc(0))},encapsulation:2,changeDetection:0}),t})(),xS=(()=>{class t{constructor(t,e,n,r,o,s,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=r,this._ngZone=o,this._doc=s,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new lr.a,this._animationEnd=new lr.a,this._animationState="void",this.openedChange=new i.o(!0),this._openedStream=this.openedChange.pipe(d(t=>t),Object(m.a)(()=>{})),this._closedStream=this.openedChange.pipe(d(t=>!t),Object(m.a)(()=>{})),this._destroyed=new lr.a,this.onPositionChanged=new i.o,this._modeChanged=new lr.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Fh(this._elementRef.nativeElement,"keydown").pipe(d(t=>27===t.keyCode&&!this.disableClose&&!Pu(t)),Vh(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(df((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Lu(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Lu(t)}get opened(){return this._opened}set opened(t){this.toggle(Lu(t))}get openedStart(){return this._animationStarted.pipe(d(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(m.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(d(t=>t.fromState!==t.toState&&"void"===t.toState),Object(m.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,n="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(li(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(id),i.Ob(hd),i.Ob(vu),i.Ob(i.B),i.Ob(o.e,8),i.Ob(wS,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&i.Hc("@transform.start",(function(t){return e._animationStartListener(t)}))("@transform.done",(function(t){return e._animationDoneListener(t)})),2&t&&(i.Eb("align",null),i.Ic("@transform",e._animationState),i.Gb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",onPositionChanged:"positionChanged",openedStart:"openedStart",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:cS,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.kc(1),i.Tb())},encapsulation:2,data:{animation:[_S.transformDrawer]},changeDetection:0}),t})(),OS=(()=>{class t{constructor(t,e,n,r,o,s=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=a,this._drawers=new i.F,this.backdropClick=new i.o,this._destroyed=new lr.a,this._doCheckSubject=new lr.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new lr.a,t&&t.change.pipe(Vh(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),o.change().pipe(Vh(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Lu(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Lu(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Pr(this._allDrawers),Vh(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Pr(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Au(10),Vh(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(d(t=>t.fromState!==t.toState),Vh(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Vh(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Vh(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(li(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Vh(Object(ii.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?(null!=this._end&&vS("end"),this._end=t):(null!=this._start&&vS("start"),this._start=t)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(_d,8),i.Ob(i.l),i.Ob(i.B),i.Ob(i.h),i.Ob(Tf),i.Ob(yS),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,CS,!0),i.Hb(n,xS,!0)),2&t&&(i.tc(r=i.dc())&&(e._content=r.first),i.tc(r=i.dc())&&(e._allDrawers=r))},viewQuery:function(t,e){var n;1&t&&i.Qc(CS,!0),2&t&&i.tc(n=i.dc())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i.Cb([{provide:wS,useExisting:t}])],ngContentSelectors:hS,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(i.lc(dS),i.Jc(0,lS,1,2,"div",0),i.kc(1),i.kc(2,1),i.Jc(3,uS,2,0,"mat-drawer-content",1)),2&t&&(i.mc("ngIf",e.hasBackdrop),i.Db(3),i.mc("ngIf",!e._content))},directives:[o.t,CS],styles:[gS],encapsulation:2,changeDetection:0}),t})(),SS=(()=>{class t extends CS{constructor(t,e,n,i,r){super(t,e,n,i,r)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(Object(i.X)(()=>kS)),i.Ob(i.l),i.Ob(Of),i.Ob(i.B))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&i.Gc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[i.Ab],ngContentSelectors:cS,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.kc(0))},encapsulation:2,changeDetection:0}),t})(),TS=(()=>{class t extends xS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Lu(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Ru(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Ru(t)}}return t.\u0275fac=function(e){return DS(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(i.Eb("align",null),i.Gc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),i.Gb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.Ab],ngContentSelectors:cS,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.kc(1),i.Tb())},encapsulation:2,data:{animation:[_S.transformDrawer]},changeDetection:0}),t})();const DS=i.Wb(TS);let kS=(()=>{class t extends OS{}return t.\u0275fac=function(e){return PS(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,SS,!0),i.Hb(n,TS,!0)),2&t&&(i.tc(r=i.dc())&&(e._content=r.first),i.tc(r=i.dc())&&(e._allDrawers=r))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[i.Cb([{provide:wS,useExisting:t}]),i.Ab],ngContentSelectors:bS,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(i.lc(fS),i.Jc(0,pS,1,2,"div",0),i.kc(1),i.kc(2,1),i.Jc(3,mS,2,0,"mat-sidenav-content",1)),2&t&&(i.mc("ngIf",e.hasBackdrop),i.Db(3),i.mc("ngIf",!e._content))},directives:[o.t,SS,Sf],styles:[gS],encapsulation:2,changeDetection:0}),t})();const PS=i.Wb(kS);let ES=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,Ed,yu,Df],Df,Ed]}),t})();class AS{constructor(){this.email="",this.idNotary=0,this.identificationNumber="",this.validPhoneNumber=!1,this.validIdentificationNumber=!1,this.validInNotary=!1,this.stateValidedInNotary=""}}class IS{}class MS{}let US=(()=>{class t{constructor(t){this.httpClient=t}createEnterprise2(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(Wl,t,e).pipe()}createEnterprise(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(Wl,t,e).pipe()}getEnterprise(t){return this.httpClient.get(Wl+"free/"+t)}getEnterpriseById(t){return this.httpClient.get(Wl+"get/getById/"+t)}getEnterpriseByIdPublic(t){return this.httpClient.get(Wl+"free/get/getById/"+t)}getEnterpriseByIdNotaryPublic(t){return this.httpClient.get(Wl+"free/get/getByIdNotary/"+t)}getNotaryByDomainPublic(t){return this.httpClient.get(Wl+"free/get/getByDomain/"+t)}getEnterpriseByIdNotary(t){return this.httpClient.get(Wl+"get/getByIdNotary/"+t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class LS{constructor(){this.email="",this.enterpriseId="",this.enterpriseName=""}}let RS=(()=>{class t{constructor(t){this.httpClient=t}addRegistrationInvitations(t){return this.httpClient.post(Yl,t).pipe(Ml())}getRegistrationInvitations(t,e,n){return this.httpClient.get(Yl+(n?"free":"get")+"/"+t+"/"+e)}updatePartialRegistrationInvitations(t){return this.httpClient.patch(Yl,t).pipe(Ml())}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const NS={headers:new g({"Content-Type":"application/json","x-api-key":""})};let FS=(()=>{class t{constructor(t){this.httpClient=t}createPdfTyC(t){return console.log(" ====== Datos User ====="),console.log(t),console.log(hu+" direccion"),this.httpClient.post(hu,t,NS).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var VS=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};let jS=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l){this.cn=t,this.router=e,this.sidebarService=n,this.enterpriseService=i,this.usersService=r,this.registrationInvitationsService=o,this.roleService=s,this._pageLoaderService=a,this.enrollmentService=c,this.signerDocUser=l,this.twoFactor=new MS}flowCreateEnterprise(){return VS(this,void 0,void 0,(function*(){this.cn.log("flowCreateEnterprise()"),this._pageLoaderService.show();try{const t=yield this.enterpriseService.getEnterprise(this.user.enterpriseId).toPromise();this.cn.log("getEnterprise() response:",t),this.cn.log("Enterprise with id",this.user.enterpriseId,"exists"),yield this.flowRolesInUser()}catch(t){404===t.status&&(yield this.createEnterprise(),this.menuEnterprise=this.sidebarService.loadEnterpriseMenu(this.user.role))}this._pageLoaderService.hide()}))}createEnterprise(){return VS(this,void 0,void 0,(function*(){this.cn.log("createEnterprise()");const t=new LS;t.enterpriseId=this.user.enterpriseId,t.email=this.user.email,t.enterpriseName=this.user.enterpriseName;try{const e=yield this.enterpriseService.createEnterprise2(t).toPromise();yield this.flowCreateUser(),this.cn.log("createEnterprise() response:",e)}catch(e){this.cn.error("createEnterprise() error:",e)}}))}flowRolesInUser(){return VS(this,void 0,void 0,(function*(){this.cn.log("flowRolesInUser()"),this.menuEnterprise=this.sidebarService.loadEnterpriseMenu(this.user.role),yield this.flowCreateUser()}))}flowCreateUser(){return VS(this,void 0,void 0,(function*(){this.cn.log("flowCreateUser()"),this.cn.log("getUser()");try{const t=yield this.usersService.getUsers("email",this.user.email).toPromise();this.cn.log("getUser() response:",t),t.operationBody[0].registered||(yield this.createUser()),this.cn.log("User with email",this.user.email,"exists"),"Administrator"===t.operationBody[0].role&&(this.user.notary=t.operationBody[0].enterprise,this.saveInLocalStorage("notaryData",t.operationBody[0].enterprise))}catch(t){this.cn.error("getUser() error:",t),404===t.status&&(yield this.createUser())}}))}createUser(){return VS(this,void 0,void 0,(function*(){this.cn.log("createUser()",this.user);try{this.user.signerDoc=!0;const t=yield this.usersService.createUser(this.user).toPromise();this.cn.log("createUser() response:",t),this.createEnrollment()}catch(t){this.cn.error("createUser() error:",t)}}))}createEnrollment(){return VS(this,void 0,void 0,(function*(){const t=new AS;t.email=this.user.email,t.idNotary=+this.user.notaryId,t.identificationNumber=this.user.identificationNumber;try{const e=yield this.enrollmentService.createEnrollment(t).toPromise();this.cn.log("createEnrollment() response:",e)}catch(e){this.cn.log("createEnrollment() err:",e)}}))}twoFactorVerify(){switch(this.twoFactor.mail=this.user.email,this.twoFactor.dialCode=this.user.dialCode.toString(),this.twoFactor.phone=this.user.phone,this.twoFactor.role=this.user.role,this.twoFactor.twoFactorVerify=!1,this.twoFactor.idNotary=+this.user.notaryId,this.user.role){case Ig.Administrator:this.router.navigate(["corporate/validate/two-factor"]),this.enterpriseService.getEnterprise(this.user.enterpriseId).subscribe(t=>{const e=t.operationBody[0];dg.info("Inicio de sesi\xf3n","General",this.user.email,this.user.identificationNumber,e.enterpriseId,e.enterpriseName)},t=>{this.cn.error("getUser() error:",t)});break;case Ig.Person:this.enterpriseService.getEnterprise(this.user.notaryId.toString()).subscribe(t=>{const e=t.operationBody[0];dg.info("Inicio de sesi\xf3n","General",this.user.email,this.user.identificationNumber,e.enterpriseId,e.enterpriseName)},t=>{this.cn.error("getUser() error:",t)}),this.router.navigate(["corporate/validate/two-factor"]);break;case Ig.LegalPerson:this.enterpriseService.getEnterprise(this.user.notaryId.toString()).subscribe(t=>{const e=t.operationBody[0];dg.info("Inicio de sesi\xf3n","General",this.user.email,this.user.identificationNumber,e.enterpriseId,e.enterpriseName)},t=>{this.cn.error("getUser() error:",t)}),this.router.navigate(["corporate/validate/two-factor"]);break;default:this.enterpriseService.getEnterprise(this.user.enterpriseId).subscribe(t=>{const e=t.operationBody[0];dg.info("Inicio de sesi\xf3n","General",this.user.email,this.user.identificationNumber,e.enterpriseId,e.enterpriseName)},t=>{this.cn.error("getUser() error:",t)}),this.router.navigate(["corporate/validate/two-factor"])}this.saveInLocalStorage("userTwoFactor",this.twoFactor)}signDocumentsRegister(t,e){if(!1===t&&(e===Ig.Person||e===Ig.LegalPerson)){const t=new IS;t.name=this.user.firstName+" "+this.user.lastName,t.id=this.user.identificationNumber,this.signerDocUser.createPdfTyC(t).subscribe(t=>{this.cn.log("Documents pdfs has been created")},t=>{this.cn.log("Error created Documents pdfs",t)})}}saveInLocalStorage(t,e){this.cn.log("saveInLocalStorage()",e),sessionStorage.setItem(t,JSON.stringify(e))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Gi),i.Yb(Zs),i.Yb(Ug),i.Yb(US),i.Yb(jg),i.Yb(RS),i.Yb(Pg),i.Yb(pg),i.Yb(_g),i.Yb(FS))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),BS=(()=>{class t{constructor(){this._loading=!1,this.notify=new i.o}hide(){this._loading=!1}show(){this._loading=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var zS=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};let qS=(()=>{class t{constructor(t){this.firebaseAuth=t,this.user=t.auth.currentUser,this.auth=t.auth}signup(t,e){return zS(this,void 0,void 0,(function*(){return yield this.firebaseAuth.auth.createUserWithEmailAndPassword(t,e)}))}login(t,e){return zS(this,void 0,void 0,(function*(){return yield this.firebaseAuth.auth.signInWithEmailAndPassword(t,e)}))}sendVerificationEmail(){return zS(this,void 0,void 0,(function*(){return(yield this.firebaseAuth.auth.currentUser).sendEmailVerification()}))}logout(){this.firebaseAuth.auth.signOut(),this.token=""}isAutenticated(){return null!==JSON.parse(sessionStorage.getItem("userData"))}getUser(){return JSON.parse(sessionStorage.getItem("userData"))}GetToken(){return zS(this,void 0,void 0,(function*(){const t=this.firebaseAuth.auth.currentUser;return this.token=yield t.getIdToken(),this.token}))}valiteToken(){return zS(this,void 0,void 0,(function*(){return new Promise((t,e)=>{this.firebaseAuth.authState.subscribe(e=>{e&&e.uid?(this.user=e,e.getIdToken().then(e=>{this.token=e,t(!0)}).catch(e=>{t(!1)})):t(!1)})})}))}updatePassword(t){return new Promise((e,n)=>{this.firebaseAuth.authState.subscribe(n=>{n&&n.uid?(this.user=n,n.updatePassword(t).then((function(){e(!0)})).catch((function(t){e(!1)}))):e(!1)})})}deleteUser(){return zS(this,void 0,void 0,(function*(){const t=this.firebaseAuth.auth.currentUser;yield t.delete()}))}sendPasswordResetEmail(t){return zS(this,void 0,void 0,(function*(){return yield this.firebaseAuth.auth.sendPasswordResetEmail(t)}))}handleVerifyEmail(t,e,n){return zS(this,void 0,void 0,(function*(){return yield this.firebaseAuth.auth.applyActionCode(t)}))}handleResetPassword(t,e,n){return zS(this,void 0,void 0,(function*(){return yield this.firebaseAuth.auth.verifyPasswordResetCode(t)}))}confirmPasswordReset(t,e){return zS(this,void 0,void 0,(function*(){return yield this.firebaseAuth.auth.confirmPasswordReset(t,e)}))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Hi.AngularFireAuth))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class HS{constructor(){this.Items=[new GS]}}class GS{}class JS{}function YS(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",41),i.cc("click",(function(){return i.yc(t),i.gc(),i.uc(49).toggle()})),i.Ub(1,"mat-icon",42),i.Lc(2,"menu"),i.Tb(),i.Tb()}}function $S(t,e){1&t&&(i.Ub(0,"mat-icon",43),i.Lc(1,"notifications"),i.Tb())}function WS(t,e){if(1&t&&(i.Ub(0,"div"),i.Ub(1,"mat-icon",44),i.Lc(2,"notifications"),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(1),i.nc("matBadge",t.unread)}}function KS(t,e){1&t&&(i.Ub(0,"li",45),i.Lc(1,"No hay notificaciones en este momento."),i.Tb())}function QS(t,e){if(1&t){const t=i.Vb();i.Ub(0,"li"),i.Ub(1,"button",51),i.cc("click",(function(){i.yc(t);const e=i.gc(2).$implicit;return i.gc(2).deleteNotification(e.notificationId,e.email)})),i.Ub(2,"mat-icon"),i.Lc(3,"close"),i.Tb(),i.Tb(),i.Ub(4,"a",52),i.Ub(5,"span",53),i.Ub(6,"span",54),i.Pb(7,"img",55),i.Tb(),i.Ub(8,"span",56),i.Ub(9,"b"),i.Lc(10),i.Tb(),i.Lc(11),i.Tb(),i.Tb(),i.Tb(),i.Ub(12,"span",57),i.Lc(13,"Se elimin\xf3 esta notificaci\xf3n. "),i.Ub(14,"button"),i.Lc(15,"Deshacer"),i.Tb(),i.Lc(16,"."),i.Tb(),i.Tb()}if(2&t){const t=i.gc(2).$implicit;i.Db(4),i.nc("href",t.urlMessage,i.Bc),i.Db(6),i.Mc(t.detail),i.Db(1),i.Nc(" ",t.textMessage," ")}}function XS(t,e){if(1&t){const t=i.Vb();i.Ub(0,"li"),i.Ub(1,"button",51),i.cc("click",(function(){i.yc(t);const e=i.gc(2).$implicit;return i.gc(2).deleteNotification(e.notificationId,e.email)})),i.Ub(2,"mat-icon"),i.Lc(3,"close"),i.Tb(),i.Tb(),i.Ub(4,"a",58),i.Ub(5,"span",53),i.Ub(6,"span",54),i.Pb(7,"img",55),i.Tb(),i.Ub(8,"span",56),i.Ub(9,"b"),i.Lc(10),i.Tb(),i.Lc(11),i.Tb(),i.Tb(),i.Tb(),i.Ub(12,"span",57),i.Lc(13,"Se elimin\xf3 esta notificaci\xf3n. "),i.Ub(14,"button"),i.Lc(15,"Deshacer"),i.Tb(),i.Lc(16,"."),i.Tb(),i.Tb()}if(2&t){const t=i.gc(2).$implicit;i.Db(4),i.nc("href",t.urlMessage,i.Bc),i.Db(6),i.Mc(t.detail),i.Db(1),i.Nc(" ",t.textMessage," ")}}function ZS(t,e){if(1&t&&(i.Ub(0,"div"),i.Jc(1,QS,17,3,"ng-template",null,50,i.Kc),i.Jc(3,XS,17,3,"li",11),i.Tb()),2&t){const t=i.uc(2),e=i.gc().$implicit;i.Db(3),i.mc("ngIf",0==e.readed)("ngIfElse",t)}}function tT(t,e){if(1&t){const t=i.Vb();i.Ub(0,"li"),i.Ub(1,"button",51),i.cc("click",(function(){i.yc(t);const e=i.gc(2).$implicit;return i.gc(2).deleteNotification(e.notificationId,e.email)})),i.Ub(2,"mat-icon"),i.Lc(3,"close"),i.Tb(),i.Tb(),i.Ub(4,"a",52),i.Ub(5,"span",53),i.Ub(6,"span",54),i.Pb(7,"img",59),i.Tb(),i.Ub(8,"span",56),i.Ub(9,"b"),i.Lc(10),i.Tb(),i.Lc(11," a firmado el documento N\xb0 "),i.Ub(12,"b"),i.Lc(13),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(14,"span",57),i.Lc(15,"Se elimin\xf3 esta notificaci\xf3n. "),i.Ub(16,"button"),i.Lc(17,"Deshacer"),i.Tb(),i.Lc(18,"."),i.Tb(),i.Tb()}if(2&t){const t=i.gc(2).$implicit;i.Db(4),i.nc("href",t.urlMessage,i.Bc),i.Db(6),i.Mc(t.textMessage),i.Db(3),i.Mc(t.detail)}}function eT(t,e){if(1&t){const t=i.Vb();i.Ub(0,"li"),i.Ub(1,"button",51),i.cc("click",(function(){i.yc(t);const e=i.gc(2).$implicit;return i.gc(2).deleteNotification(e.notificationId,e.email)})),i.Ub(2,"mat-icon"),i.Lc(3,"close"),i.Tb(),i.Tb(),i.Ub(4,"a",58),i.Ub(5,"span",53),i.Ub(6,"span",54),i.Pb(7,"img",59),i.Tb(),i.Ub(8,"span",56),i.Ub(9,"b"),i.Lc(10),i.Tb(),i.Lc(11," a firmado el documento N\xb0 "),i.Ub(12,"b"),i.Lc(13),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(14,"span",57),i.Lc(15,"Se elimin\xf3 esta notificaci\xf3n. "),i.Ub(16,"button"),i.Lc(17,"Deshacer"),i.Tb(),i.Lc(18,"."),i.Tb(),i.Tb()}if(2&t){const t=i.gc(2).$implicit;i.Db(4),i.nc("href",t.urlMessage,i.Bc),i.Db(6),i.Mc(t.textMessage),i.Db(3),i.Mc(t.detail)}}function nT(t,e){if(1&t&&(i.Ub(0,"div"),i.Jc(1,tT,19,3,"ng-template",null,50,i.Kc),i.Jc(3,eT,19,3,"li",11),i.Tb()),2&t){const t=i.uc(2),e=i.gc().$implicit;i.Db(3),i.mc("ngIf",0==e.readed)("ngIfElse",t)}}function iT(t,e){if(1&t){const t=i.Vb();i.Ub(0,"li"),i.Ub(1,"button",51),i.cc("click",(function(){i.yc(t);const e=i.gc(2).$implicit;return i.gc(2).deleteNotification(e.notificationId,e.email)})),i.Ub(2,"mat-icon"),i.Lc(3,"close"),i.Tb(),i.Tb(),i.Ub(4,"a",52),i.Ub(5,"span",53),i.Ub(6,"span",54),i.Pb(7,"img",60),i.Tb(),i.Ub(8,"span",56),i.Lc(9," El proceso N\xb0 "),i.Ub(10,"b"),i.Lc(11),i.Tb(),i.Lc(12," se ha completado con \xe9xito. "),i.Tb(),i.Tb(),i.Tb(),i.Ub(13,"span",57),i.Lc(14,"Se elimin\xf3 esta notificaci\xf3n. "),i.Ub(15,"button"),i.Lc(16,"Deshacer"),i.Tb(),i.Lc(17,"."),i.Tb(),i.Tb()}if(2&t){const t=i.gc(2).$implicit;i.Db(4),i.nc("href",t.urlMessage,i.Bc),i.Db(7),i.Mc(t.textMessage)}}function rT(t,e){if(1&t){const t=i.Vb();i.Ub(0,"li"),i.Ub(1,"button",51),i.cc("click",(function(){i.yc(t);const e=i.gc(2).$implicit;return i.gc(2).deleteNotification(e.notificationId,e.email)})),i.Ub(2,"mat-icon"),i.Lc(3,"close"),i.Tb(),i.Tb(),i.Ub(4,"a",58),i.Ub(5,"span",53),i.Ub(6,"span",54),i.Pb(7,"img",60),i.Tb(),i.Ub(8,"span",56),i.Lc(9," El proceso N\xb0 "),i.Ub(10,"b"),i.Lc(11),i.Tb(),i.Lc(12," se ha completado con \xe9xito. "),i.Tb(),i.Tb(),i.Tb(),i.Ub(13,"span",57),i.Lc(14,"Se elimin\xf3 esta notificaci\xf3n. "),i.Ub(15,"button"),i.Lc(16,"Deshacer"),i.Tb(),i.Lc(17,"."),i.Tb(),i.Tb()}if(2&t){const t=i.gc(2).$implicit;i.Db(4),i.nc("href",t.urlMessage,i.Bc),i.Db(7),i.Mc(t.textMessage)}}function oT(t,e){if(1&t&&(i.Ub(0,"div"),i.Jc(1,iT,18,2,"ng-template",null,50,i.Kc),i.Jc(3,rT,18,2,"li",11),i.Tb()),2&t){const t=i.uc(2),e=i.gc().$implicit;i.Db(3),i.mc("ngIf",0==e.readed)("ngIfElse",t)}}function sT(t,e){if(1&t&&(i.Ub(0,"li"),i.Ub(1,"a",52),i.Lc(2),i.Tb(),i.Tb()),2&t){const t=i.gc(2).$implicit;i.Db(1),i.nc("href",t.urlMessage,i.Bc),i.Db(1),i.Oc(" ",t.textMessage,", ",t.detail," ")}}function aT(t,e){if(1&t&&(i.Ub(0,"li"),i.Ub(1,"a",58),i.Lc(2),i.Tb(),i.Tb()),2&t){const t=i.gc(2).$implicit;i.Db(1),i.nc("href",t.urlMessage,i.Bc),i.Db(1),i.Oc(" ",t.textMessage,", ",t.detail," ")}}function cT(t,e){if(1&t&&(i.Ub(0,"div"),i.Jc(1,sT,3,3,"ng-template",null,50,i.Kc),i.Jc(3,aT,3,3,"li",11),i.Tb()),2&t){const t=i.uc(2),e=i.gc().$implicit;i.Db(3),i.mc("ngIf",0==e.readed)("ngIfElse",t)}}function lT(t,e){if(1&t&&(i.Ub(0,"div"),i.Ub(1,"div",47),i.Jc(2,ZS,4,2,"div",48),i.Jc(3,nT,4,2,"div",48),i.Jc(4,oT,4,2,"div",48),i.Jc(5,cT,4,2,"div",49),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.mc("ngSwitch",t.type),i.Db(1),i.mc("ngSwitchCase","PendingSign"),i.Db(1),i.mc("ngSwitchCase","SignedSome"),i.Db(1),i.mc("ngSwitchCase","FinalSign")}}function uT(t,e){if(1&t&&(i.Ub(0,"ul",46),i.Jc(1,lT,6,4,"div",38),i.Tb()),2&t){const t=i.gc();i.Db(1),i.mc("ngForOf",t.messages.Items)}}function dT(t,e){if(1&t&&(i.Ub(0,"span",61),i.Ub(1,"span",62),i.Ub(2,"mat-icon"),i.Lc(3,"history_edu"),i.Tb(),i.Tb(),i.Ub(4,"span",63),i.Lc(5),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(5),i.Nc(" ",t.user.enterpriseName," ")}}function hT(t,e){if(1&t&&(i.Ub(0,"span"),i.Ub(1,"a",64),i.Ub(2,"mat-icon"),i.Lc(3),i.Tb(),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.nc("routerLink",t.url),i.Db(2),i.Mc(t.icon),i.Db(1),i.Nc(" ",t.title," ")}}const pT=["*"];let mT=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d,h,p,f,b){this.breakpointObserver=t,this.kcSvc=e,this.enterpriseService=n,this.usersService=i,this.registrationInvitationsService=r,this.roleService=o,this.keycloakAdminService=s,this.sidebarService=a,this.cn=c,this._pageLoaderServiceInitial=l,this.router=u,this.notificationsService=d,this.feederService=h,this.enrollmentService=p,this.authService=f,this.userLogin=b,this.rolEnum=Ig,this.user=new Tl,this.messages=new HS,this.message=new GS,this.unread=0,this.isHandset$=this.breakpointObserver.observe(Lx).pipe(Object(m.a)(t=>t.matches))}ngOnInit(){this.user=this.authService.getUser(),this.notificationsService.joinPrivateRoom(this.user.email),this.menuEnterprise=this.sidebarService.loadEnterpriseMenu(this.user.role),this.updateRegistrationInvitations(),this.notificationsService.listengetmessages().subscribe(t=>{this.messages=JSON.parse(JSON.stringify(t)),console.debug("listenNotification: "+JSON.stringify(t));for(let e=0;e<this.messages.Items.length;e++)console.debug(this.messages.Items[e].readed),this.messages.Items[e].readed||this.unread++;this.messages.Items=this.messages.Items.sort((function(t,e){return Date.parse(t.dateMessage)<Date.parse(e.dateMessage)?1:Date.parse(t.dateMessage)>Date.parse(e.dateMessage)?-1:0})),console.debug(this.unread)}),this.notificationsService.listengetmessage().subscribe(t=>{this.message=JSON.parse(JSON.stringify(t)),this.messages.Items.unshift(this.message),this.unread++,console.log("listenNotification one to one: "+JSON.stringify(t))})}initSetup(){return t=this,void 0,n=function*(){this.cn.log("initSetup()"),this.kcSvc.accountUserProfile().subscribe(t=>{this.userRole=t.attributes.role[0],this.user.id=t.id,this.user.firstName=t.firstName,this.user.lastName=t.lastName,this.user.email=t.email,this.user.role=t.attributes.role[0],this.user.address=t.attributes.address[0],this.user.identificationNumber=t.attributes.identificationNumber[0],this.user.phone=t.attributes.phone[0],this.user.enterpriseId=t.attributes.enterpriseId[0],this.user.city=void 0!==t.attributes.city&&t.attributes.city.length>0?t.attributes.city[0]:"",this.user.country=void 0!==t.attributes.country&&t.attributes.country.length>0?t.attributes.country[0]:"",this.user.notaryId=void 0!==t.attributes.notaryId&&t.attributes.notaryId.length>0?t.attributes.notaryId[0]:null,this.user.notaryName=void 0!==t.attributes.notaryName&&t.attributes.notaryName.length>0?t.attributes.notaryName[0]:null,this.user.typeDocument=void 0!==t.attributes.typeDocument&&t.attributes.typeDocument.length>0?t.attributes.typeDocument[0]:null,this.user.sexo=void 0!==t.attributes.sexo&&t.attributes.sexo.length>0?t.attributes.sexo[0]:null,this.user.dialCode=void 0!==t.attributes.dialCode&&t.attributes.dialCode.length>0?t.attributes.dialCode[0]:null,this.user.maritalStatus=void 0!==t.attributes.maritalStatus&&t.attributes.maritalStatus.length>0?t.attributes.maritalStatus[0]:null,this.user.dateBirth=void 0!==t.attributes.dateBirth&&t.attributes.dateBirth.length>0?t.attributes.dateBirth[0]:null,this.user.enterpriseName=void 0!==t.attributes.enterpriseName&&t.attributes.enterpriseName.length>0?t.attributes.enterpriseName[0]:null,this.saveInLocalStorage(),this.callMethodInitial()})},new((e=void 0)||(e=Promise))((function(i,r){function o(t){try{a(n.next(t))}catch(e){r(e)}}function s(t){try{a(n.throw(t))}catch(e){r(e)}}function a(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}a((n=n.apply(t,[])).next())}));var t,e,n}callMethodInitial(){this.suscription=Object(Wi.a)([this.flowCreateEnterprise(),this.updateRegistrationInvitations()]).pipe().subscribe(t=>{}),this.getDataRoute().subscribe(()=>{this.kcSvc.authenticated()||this.kcSvc.login()})}createEnterprise(){this.cn.log("createEnterprise()");const t=new LS;t.enterpriseId=this.user.enterpriseId,t.email=this.user.email,t.enterpriseName=this.user.enterpriseName,this._pageLoaderServiceInitial.show(),this.suscription=this.enterpriseService.createEnterprise2(t).subscribe(t=>{this.flowCreateUser(),this.cn.log("createEnterprise() response:",t)},t=>{this.cn.error("createEnterprise() error:",t),this._pageLoaderServiceInitial.hide()})}flowCreateEnterprise(){this.cn.log("flowCreateEnterprise()"),this._pageLoaderServiceInitial.show(),this.suscription=this.enterpriseService.getEnterprise(this.user.enterpriseId).subscribe(t=>{this.cn.log("getEnterprise() response:",t),this.cn.log("Enterprise with id",this.user.enterpriseId,"exists"),this.flowRolesInUser()},t=>{this.cn.error("getEnterprise() error: ",t),404===t.status?(this.createEnterprise(),this.menuEnterprise=this.sidebarService.loadEnterpriseMenu(this.user.role),this.saveInLocalStorage()):this._pageLoaderServiceInitial.hide()})}flowRolesInUser(){this.cn.log("flowRolesInUser()"),this.menuEnterprise=this.sidebarService.loadEnterpriseMenu(this.user.role),this.flowCreateUser()}createUser(){this.cn.log("createUser()",this.user),this._pageLoaderServiceInitial.show(),this.suscription=this.usersService.createUser(this.user).subscribe(t=>{this.cn.log("createUser() response:",t),this.createEnrollment()},t=>{this.cn.error("createUser() error:",t)}),this.suscription.add(this._pageLoaderServiceInitial.hide())}createEnrollment(){const t=new AS;t.email=this.user.email,t.idNotary=+this.user.notaryId,t.identificationNumber=this.user.identificationNumber,this.enrollmentService.createEnrollment(t).subscribe(t=>{this.cn.log("createEnrollment() response:",t)},t=>{this.cn.log("createEnrollment() err:",t)})}flowCreateUser(){this.cn.log("flowCreateUser()"),this.cn.log("getUser()"),this._pageLoaderServiceInitial.show(),this.suscription=this.usersService.getUsers("email",this.user.email).subscribe(t=>{this.cn.log("getUser() response:",t),t.operationBody[0].registered||this.createUser(),this.cn.log("User with email",this.user.email,"exists"),this.cn.log("acaaaaa",t),"Administrator"===t.operationBody[0].role&&(this.user.notary=t.operationBody[0].enterprise,this.saveNotaryInLocalStorage())},t=>{this.cn.error("getUser() error:",t),404===t.status&&this.createUser()}),this.suscription.add(this._pageLoaderServiceInitial.hide())}updateRegistrationInvitations(){this.cn.log("updateRegistrationInvitations()");const t=new JS;t.email=this.user.email,t.state="Registrado",this.registrationInvitationsService.updatePartialRegistrationInvitations(t).subscribe(t=>{this.cn.log("updatePartialRegistrationInvitations() response:",t)},t=>{this.cn.error("updatePartialRegistrationInvitations() error:",t)})}logOut(){sessionStorage.clear(),this.authService.logout(),this.router.navigate(["login"])}getDataRoute(){return this.router.events.pipe(d(t=>t instanceof Qr)).pipe(d(t=>null===t.snapshot.firstChild)).map(t=>t.snapshot.data)}saveInLocalStorage(){this.cn.log("saveInLocalStorage()"),sessionStorage.setItem("userData",JSON.stringify(this.user)),this.notificationsService.joinPrivateRoom(this.user.email)}saveNotaryInLocalStorage(){this.cn.log("saveInLocalStorageNotary(): "),console.log(this.user.notary),sessionStorage.setItem("notaryData",JSON.stringify(this.user.notary))}readed(){for(let t=0;t<this.messages.Items.length;t++)this.messages.Items[t].readed||(this.notificationsService.updateState(this.messages.Items[t].notificationId),this.unread=0)}deleteNotification(t,e){const n=document.getElementsByName("dev");console.log("::::::Elimina"),n[0].style.display="none"===n[0].style.display?"block":"none",n[1].style.display="none"===n[1].style.display?"block":"none"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Mx),i.Ob(cr),i.Ob(US),i.Ob(jg),i.Ob(RS),i.Ob(Pg),i.Ob(fu),i.Ob(Ug),i.Ob(Gi),i.Ob(BS),i.Ob(Zs),i.Ob(Sg),i.Ob(gu),i.Ob(_g),i.Ob(qS),i.Ob(jS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-corporate-header-private"]],ngContentSelectors:pT,decls:76,vars:27,consts:[[1,"sidenav-container"],["color","basic",1,"header-nav-api"],[1,"container-fluid"],[1,"row","justify-content-between","align-items-center"],[1,"col"],["type","button","aria-label","Toggle sidenav","mat-icon-button","",3,"click",4,"ngIf"],["src","./assets/images/Logotipo_Color.png","alt","eNotary API",1,"logotipo_header"],[1,"col","text-right","cont-actionsHeader"],[1,"icons-actionsHeader"],["mat-icon-button","","color","accent",3,"matMenuTriggerFor","click"],["elseBlock",""],[4,"ngIf","ngIfElse"],["elseBlock2",""],["xPosition","before",1,"menuNotification"],["notofocationsMenu","matMenu"],["class","opt-notifications",4,"ngIf","ngIfElse"],["mat-button","",1,"cnt-avatar-header","d-none","d-md-inline-block",3,"matMenuTriggerFor"],[1,"avatar-header"],[1,"imgprofile_bnn"],["alt","","src","/assets/images/default_img_profile.jpg"],["xPosition","before"],["OPuserMenu","matMenu"],[1,"sub-menu-avatar","align-items-center"],[1,"cnt-name-user"],[1,"name-lbl","ellipsis"],[1,"doc-lbl","ellipsis"],["mat-menu-item","","title","Perfil","routerLink","/corporate/pv/profile/edit-profile"],["mat-menu-item","",3,"click"],["fixedInViewport","true",1,"sidenav",3,"mode","opened"],["drawer",""],[1,"profile-slidenav"],[1,"img-profile-slidenav"],["alt","","src","/assets/images/Iconos/default-profile.svg"],[1,"info-profile-slidenav"],[1,"name-profile-slidenav","ellipsis"],[1,"doc-profile-slidenav","ellipsis"],["class","cont_tagname_company",4,"ngIf"],[1,"email-profile-slidenav","ellipsis"],[4,"ngFor","ngForOf"],[1,"d-block","d-md-none"],["mat-menu-item","","routerLink","/corporate/pv/profile/edit-profile"],["type","button","aria-label","Toggle sidenav","mat-icon-button","",3,"click"],["aria-label","Side nav toggle icon"],["aria-label","Example icon-button with a heart icon"],["aria-label","Example icon-button with a heart icon",3,"matBadge"],[1,"noNotifications"],[1,"opt-notifications"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["elseBlockunread",""],[1,"delNotification",2,"display","none",3,"click"],[1,"Notification",3,"href"],[1,"cnt-itemNotification"],[1,"iconNotification"],["src","/assets/images/Iconos/notifications/invitationSignature.png","alt",""],["name","del",1,"descNotidication"],["name","del",1,"undoDel",2,"display","none"],[1,"newNotification",3,"href"],["src","/assets/images/Iconos/notifications/signUser.png","alt",""],["src","/assets/images/Iconos/notifications/completeProcess.png","alt",""],[1,"cont_tagname_company"],[1,"ico_tagname_company"],[1,"tagname_company"],["mat-menu-item","",3,"routerLink"]],template:function(t,e){if(1&t&&(i.lc(),i.Pb(0,"aswc-page-loader-default"),i.Pb(1,"aswc-page-loader-initial"),i.Pb(2,"aswc-page-loader-sign"),i.Pb(3,"aswc-page-loader-mati"),i.Ub(4,"mat-sidenav-container",0),i.Ub(5,"mat-sidenav-content"),i.Ub(6,"mat-toolbar",1),i.Ub(7,"div",2),i.Ub(8,"div",3),i.Ub(9,"div",4),i.Jc(10,YS,3,0,"button",5),i.hc(11,"async"),i.Ub(12,"span"),i.Pb(13,"img",6),i.Tb(),i.Tb(),i.Ub(14,"div",7),i.Ub(15,"div",8),i.Ub(16,"button",9),i.cc("click",(function(){return e.readed()})),i.Jc(17,$S,2,0,"ng-template",null,10,i.Kc),i.Jc(19,WS,3,1,"div",11),i.Tb(),i.Jc(20,KS,2,0,"ng-template",null,12,i.Kc),i.Ub(22,"mat-menu",13,14),i.Jc(24,uT,2,1,"ul",15),i.Tb(),i.Tb(),i.Ub(25,"div"),i.Ub(26,"button",16),i.Ub(27,"div",17),i.Ub(28,"div",18),i.Pb(29,"img",19),i.Tb(),i.Ub(30,"mat-icon"),i.Lc(31,"keyboard_arrow_down"),i.Tb(),i.Tb(),i.Tb(),i.Ub(32,"mat-menu",20,21),i.Ub(34,"div"),i.Ub(35,"div",22),i.Ub(36,"div",18),i.Pb(37,"img",19),i.Tb(),i.Ub(38,"div",23),i.Ub(39,"span",24),i.Lc(40),i.Tb(),i.Ub(41,"span",25),i.Lc(42),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(43,"button",26),i.Lc(44,"Perfil"),i.Tb(),i.Ub(45,"button",27),i.cc("click",(function(){return e.logOut()})),i.Lc(46,"Cerrar Sesi\xf3n"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.kc(47),i.Tb(),i.Ub(48,"mat-sidenav",28,29),i.hc(50,"async"),i.hc(51,"async"),i.hc(52,"async"),i.Ub(53,"div",30),i.Ub(54,"div",31),i.Pb(55,"img",32),i.Tb(),i.Ub(56,"div",33),i.Ub(57,"span",34),i.Lc(58),i.Tb(),i.Ub(59,"span",35),i.Lc(60),i.Tb(),i.Jc(61,dT,6,1,"span",36),i.Ub(62,"span",37),i.Lc(63),i.Tb(),i.Tb(),i.Tb(),i.Ub(64,"mat-nav-list"),i.Jc(65,hT,5,3,"span",38),i.Pb(66,"hr",39),i.Ub(67,"span",39),i.Ub(68,"a",40),i.Ub(69,"mat-icon"),i.Lc(70,"person"),i.Tb(),i.Lc(71," Perfil "),i.Tb(),i.Ub(72,"a",27),i.cc("click",(function(){return e.logOut()})),i.Ub(73,"mat-icon"),i.Lc(74,"exit_to_app"),i.Tb(),i.Lc(75," Cerrar sesi\xf3n "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.uc(18),n=i.uc(21),r=i.uc(23),o=i.uc(33);i.Db(10),i.mc("ngIf",i.ic(11,19,e.isHandset$)),i.Db(6),i.mc("matMenuTriggerFor",r),i.Db(3),i.mc("ngIf",e.unread>0)("ngIfElse",t),i.Db(5),i.mc("ngIf",e.messages.Items.length>0)("ngIfElse",n),i.Db(2),i.mc("matMenuTriggerFor",o),i.Db(14),i.Oc("",e.user.firstName," ",e.user.lastName,""),i.Db(2),i.Nc("",e.user.identificationNumber," "),i.Db(6),i.mc("mode",i.ic(51,23,e.isHandset$)?"over":"side")("opened",!i.ic(52,25,e.isHandset$)),i.Eb("role",i.ic(50,21,e.isHandset$)?"dialog":"navigation"),i.Db(10),i.Oc("",e.user.firstName," ",e.user.lastName,""),i.Db(2),i.Mc(e.user.identificationNumber),i.Db(1),i.mc("ngIf",e.userRole!==e.rolEnum.Person),i.Db(2),i.Mc(e.user.email),i.Db(2),i.mc("ngForOf",e.menuEnterprise)}},styles:[".sidenav-container[_ngcontent-%COMP%]{height:100%}.logotipo_header[_ngcontent-%COMP%]{width:144px}.header-nav-api[_ngcontent-%COMP%]{border-bottom:1px solid #dde2e6;background:#fff}.mt-header[_ngcontent-%COMP%]{margin-top:0}.cont-actionsHeader[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.cont-actionsHeader[_ngcontent-%COMP%]   .icons-actionsHeader[_ngcontent-%COMP%]{margin-right:10px}.opt-notifications[_ngcontent-%COMP%]{max-height:284px;list-style:none;padding-left:0;margin-bottom:0;overflow-y:auto}.opt-notifications[_ngcontent-%COMP%]   li.noNotifications[_ngcontent-%COMP%]{color:#333;padding:12px;font-size:.85rem}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;border-bottom:1px solid rgba(0,0,0,.1)}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-bottom:none}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .delNotification[_ngcontent-%COMP%]{position:absolute;top:4px;right:4px;text-align:right;background:transparent;border:none;padding:0}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .delNotification[_ngcontent-%COMP%]:hover   .mat-icon[_ngcontent-%COMP%]{cursor:pointer}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .delNotification[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:16px;color:rgba(0,0,0,.5)}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .delNotification[_ngcontent-%COMP%]:hover   .mat-icon[_ngcontent-%COMP%]{color:#4fbfd3}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;color:#333;text-decoration:none;padding:8px 10px;font-size:.85rem}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .undoDel[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;font-size:.85rem}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .undoDel[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background:transparent;padding:0;border:none;color:#4fbfd3;text-decoration:underline}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .undoDel[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:hover{cursor:pointer}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{cursor:pointer;background:rgba(239,234,229,.6)}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .cnt-itemNotification[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .cnt-itemNotification[_ngcontent-%COMP%]   .descNotidication[_ngcontent-%COMP%], .opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .cnt-itemNotification[_ngcontent-%COMP%]   .iconNotification[_ngcontent-%COMP%]{display:block}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .cnt-itemNotification[_ngcontent-%COMP%]   .iconNotification[_ngcontent-%COMP%]{background-color:#efeae4;overflow:hidden;width:35px;height:35px;border-radius:50%;margin-right:8px;text-align:center}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover   .cnt-itemNotification[_ngcontent-%COMP%]   .iconNotification[_ngcontent-%COMP%]{box-shadow:4px 4px 10px 0 rgba(0,0,0,.3)}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .cnt-itemNotification[_ngcontent-%COMP%]   .iconNotification[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .cnt-itemNotification[_ngcontent-%COMP%]   .descNotidication[_ngcontent-%COMP%]{flex-basis:0;flex-grow:1;max-width:100%}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a.newNotification[_ngcontent-%COMP%]{background:rgba(38,82,118,.085)}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .txt-bNoti[_ngcontent-%COMP%], .opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .txt-codeNoti[_ngcontent-%COMP%]{font-weight:700}.opt-notifications[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .txt-codeNoti[_ngcontent-%COMP%]{display:inline-block;max-width:70px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:12px}.sidenav[_ngcontent-%COMP%]{width:240px;box-shadow:6px 0 8px 0 rgba(0,0,0,.08)}.sidenav[_ngcontent-%COMP%]   .mat-menu-item[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:#86d2df}.profile-slidenav[_ngcontent-%COMP%]{background:#22385e;padding:1rem}.profile-slidenav[_ngcontent-%COMP%]   .img-profile-slidenav[_ngcontent-%COMP%]{margin:0;width:60px;height:60px;border-radius:100%;position:relative;overflow:hidden;border:2px solid #172847}.profile-slidenav[_ngcontent-%COMP%]   .img-profile-slidenav[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]{color:#fff;margin-top:1rem;text-align:left}.profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]   .name-profile-slidenav[_ngcontent-%COMP%]{display:block;font-size:1rem}.profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]   .email-profile-slidenav[_ngcontent-%COMP%]{margin-top:1rem;display:block;font-size:.8rem}.profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]   .doc-profile-slidenav[_ngcontent-%COMP%]{display:block;font-size:.8rem}.profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]   .cont_tagname_company[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:1rem}.profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]   .cont_tagname_company[_ngcontent-%COMP%]   .ico_tagname_company[_ngcontent-%COMP%], .profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]   .cont_tagname_company[_ngcontent-%COMP%]   .tagname_company[_ngcontent-%COMP%]{display:block}.profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]   .cont_tagname_company[_ngcontent-%COMP%]   .ico_tagname_company[_ngcontent-%COMP%]{margin-right:8px}.profile-slidenav[_ngcontent-%COMP%]   .info-profile-slidenav[_ngcontent-%COMP%]   .cont_tagname_company[_ngcontent-%COMP%]   .tagname_company[_ngcontent-%COMP%]{font-size:.8rem}.mat-toolbar.mat-primary[_ngcontent-%COMP%]{position:sticky;top:0}.cnt-avatar-header[_ngcontent-%COMP%]{min-height:64px;line-height:1.2rem;border-radius:0}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]{align-items:center;display:flex}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .name-user[_ngcontent-%COMP%], .cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .welcome-lbl[_ngcontent-%COMP%]{display:block}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]{text-align:right}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .welcome-lbl[_ngcontent-%COMP%]{font-size:.8rem;color:#8b8d90}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .name-user[_ngcontent-%COMP%]{text-transform:capitalize}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{margin-left:.5rem;width:40px;height:40px;border-radius:100%;position:relative;overflow:hidden}.cnt-avatar-header[_ngcontent-%COMP%]   .avatar-header[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.sub-menu-avatar[_ngcontent-%COMP%]{background:#22385e;background-size:cover;color:#fff;width:240px;padding:1.6rem 1rem;text-align:center}.sub-menu-avatar[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{margin:0 auto;width:40px;height:40px;border-radius:100%;position:relative;overflow:hidden}.sub-menu-avatar[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]{margin-top:.8rem}.sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .doc-lbl[_ngcontent-%COMP%], .sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .name-lbl[_ngcontent-%COMP%]{display:block}.sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .name-lbl[_ngcontent-%COMP%]{text-transform:capitalize}.sub-menu-avatar[_ngcontent-%COMP%]   .cnt-name-user[_ngcontent-%COMP%]   .doc-lbl[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.7);font-size:.8rem}@-webkit-keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}@keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}@media screen and (max-width:599px){.sidenav[_ngcontent-%COMP%]{width:240px;z-index:4;box-shadow:4px 0 10px 0 rgba(0,0,0,.08)}.cnt-avatar-header[_ngcontent-%COMP%]{min-height:58px}}"]}),t})();const fT=["panel"];function bT(t,e){if(1&t&&(i.Ub(0,"div",0,1),i.kc(2),i.Tb()),2&t){const t=i.gc();i.mc("id",t.id)("ngClass",t._classList)}}const gT=["*"];let _T=0;class vT{constructor(t,e){this.source=t,this.option=e}}class yT{}const wT=Md(yT),CT=new i.s("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let xT=(()=>{class t extends wT{constructor(t,e,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=Ir.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.o,this.opened=new i.o,this.closed=new i.o,this.optionActivated=new i.o,this._classList={},this.id="mat-autocomplete-"+_T++,this._autoActiveFirstOption=!!n.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Lu(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Qu(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new vT(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(i.l),i.Ob(CT))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,Oh,!0),i.Hb(n,gh,!0)),2&t&&(i.tc(r=i.dc())&&(e.options=r),i.tc(r=i.dc())&&(e.optionGroups=r))},viewQuery:function(t,e){var n;1&t&&(i.Fc(i.N,!0),i.Qc(fT,!0)),2&t&&(i.tc(n=i.dc())&&(e.template=n.first),i.tc(n=i.dc())&&(e.panel=n.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[i.Cb([{provide:Ch,useExisting:t}]),i.Ab],ngContentSelectors:gT,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(i.lc(),i.Jc(0,bT,3,2,"ng-template"))},directives:[o.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),OT=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t})();const ST=new i.s("mat-autocomplete-scroll-strategy"),TT={provide:ST,deps:[rb],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},DT={provide:Ta,useExisting:Object(i.X)(()=>kT),multi:!0};let kT=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=r,this._dir=s,this._formField=a,this._document=c,this._viewportRuler=l,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Ir.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new lr.a,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=xr(()=>this.autocomplete&&this.autocomplete.options?Object(ii.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.asObservable().pipe(li(1),Object(Oi.a)(()=>this.optionSelections))),this._scrollStrategy=o}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Lu(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Object(ii.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(d(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(d(()=>this._overlayAttached)):Object(s.a)()).pipe(Object(m.a)(t=>t instanceof wh?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(ii.a)(Fh(this._document,"click"),Fh(this._document,"touchend")).pipe(d(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=this._formField?this._formField._elementRef.nativeElement:null,i=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!n||!n.contains(e))&&(!i||!i.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}}_handleInput(t){let e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_scrollToOption(){const t=this.autocomplete._keyManager.activeItemIndex||0,e=Sh(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{const n=Th(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}}_subscribeToClosingActions(){const t=this._zone.onStable.asObservable().pipe(li(1)),e=this.autocomplete.options.changes.pipe(Object(Ar.a)(()=>this._positionStrategy.reapplyLastPosition()),Jm(0));return Object(ii.a)(t,e).pipe(Object(Oi.a)(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),li(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!=t&&e.selected&&e.deselect()})}_attachOverlay(){if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!ku(this._element.nativeElement));let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new Zm(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(27===t.keyCode||38===t.keyCode&&t.altKey)&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})})),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new Vf({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"}];let i;i="above"===this.position?n:"below"===this.position?e:[...e,...n],t.withPositions(i)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(rb),i.Ob(i.S),i.Ob(i.B),i.Ob(i.h),i.Ob(ST),i.Ob(_d,8),i.Ob(Mv,9),i.Ob(o.e,8),i.Ob(Tf))},t.\u0275dir=i.Jb({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&i.cc("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&i.Eb("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[i.Cb([DT]),i.Bb]}),t})(),PT=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[TT],imports:[[Dh,ub,Ed,o.c],Df,Dh,Ed]}),t})();function ET(t,e){}class AT{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.closeOnNavigation=!0,this.autoFocus=!1,this.restoreFocus=!0}}const IT={bottomSheetState:It("state",[Nt("void, hidden",Rt({transform:"translateY(100%)"})),Nt("visible",Rt({transform:"translateY(0%)"})),Vt("visible => void, visible => hidden",Mt(`${Dd.COMPLEX} ${Td.ACCELERATION_CURVE}`)),Vt("void => visible",Mt(`${Dd.EXITING} ${Td.DECELERATION_CURVE}`))])};let MT=(()=>{class t extends ef{constructor(t,e,n,r,o,s){super(),this._elementRef=t,this._changeDetectorRef=e,this._focusTrapFactory=n,this.bottomSheetConfig=s,this._animationState="void",this._animationStateChanged=new i.o,this._elementFocusedBeforeOpened=null,this.attachDomPortal=t=>(this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachDomPortal(t)),this._document=o,this._breakpointSubscription=r.observe(["(min-width: 960px) and (max-width: 1279.99px)","(min-width: 1280px) and (max-width: 1919.99px)","(min-width: 1920px)"]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",r.isMatched("(min-width: 960px) and (max-width: 1279.99px)")),this._toggleClass("mat-bottom-sheet-container-large",r.isMatched("(min-width: 1280px) and (max-width: 1919.99px)")),this._toggleClass("mat-bottom-sheet-container-xlarge",r.isMatched("(min-width: 1920px)"))})}attachComponentPortal(t){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._validatePortalAttached(),this._setPanelClass(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(t){"hidden"===t.toState?this._restoreFocus():"visible"===t.toState&&this._trapFocus(),this._animationStateChanged.emit(t)}_onAnimationStart(t){this._animationStateChanged.emit(t)}_toggleClass(t,e){const n=this._elementRef.nativeElement.classList;e?n.add(t):n.remove(t)}_validatePortalAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach bottom sheet content after content is already attached")}_setPanelClass(){const t=this._elementRef.nativeElement,e=this.bottomSheetConfig.panelClass;Array.isArray(e)?e.forEach(e=>t.classList.add(e)):e&&t.classList.add(e)}_trapFocus(){const t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this.bottomSheetConfig.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const e=this._document.activeElement;e===t||t.contains(e)||t.focus()}}_restoreFocus(){const t=this._elementFocusedBeforeOpened;if(this.bottomSheetConfig.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||t.focus()}this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._elementFocusedBeforeOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(id),i.Ob(Mx),i.Ob(o.e,8),i.Ob(AT))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-bottom-sheet-container"]],viewQuery:function(t,e){var n;1&t&&i.Fc(of,!0),2&t&&i.tc(n=i.dc())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","role","dialog","aria-modal","true",1,"mat-bottom-sheet-container"],hostVars:2,hostBindings:function(t,e){1&t&&i.Hc("@state.start",(function(t){return e._onAnimationStart(t)}))("@state.done",(function(t){return e._onAnimationDone(t)})),2&t&&(i.Eb("aria-label",null==e.bottomSheetConfig?null:e.bottomSheetConfig.ariaLabel),i.Ic("@state",e._animationState))},features:[i.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&i.Jc(0,ET,0,0,"ng-template",0)},directives:[of],styles:[".mat-bottom-sheet-container{padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:4px;border-top-right-radius:4px}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}\n"],encapsulation:2,data:{animation:[IT.bottomSheetState]},changeDetection:0}),t})(),UT=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[ub,Ed,cf],Ed]}),t})();const LT=["button"],RT=["*"],NT=new i.s("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),FT=new i.s("MatButtonToggleGroup"),VT={provide:Ta,useExisting:Object(i.X)(()=>zT),multi:!0};let jT=0;class BT{constructor(t,e){this.source=t,this.value=e}}let zT=(()=>{class t{constructor(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=()=>{},this._onTouched=()=>{},this._name="mat-button-toggle-group-"+jT++,this.valueChange=new i.o,this.change=new i.o,this.appearance=e&&e.appearance?e.appearance:"standard"}get name(){return this._name}set name(t){this._name=t,this._buttonToggles&&this._buttonToggles.forEach(t=>{t.name=this._name,t._markForCheck()})}get vertical(){return this._vertical}set vertical(t){this._vertical=Lu(t)}get value(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map(t=>t.value):t[0]?t[0].value:void 0}set value(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)}get selected(){const t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null}get multiple(){return this._multiple}set multiple(t){this._multiple=Lu(t)}get disabled(){return this._disabled}set disabled(t){this._disabled=Lu(t),this._buttonToggles&&this._buttonToggles.forEach(t=>t._markForCheck())}ngOnInit(){this._selectionModel=new Cf(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(t=>t.checked))}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_emitChangeEvent(){const t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new BT(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(t,e,n=!1,i=!1){this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):i=!0,i?Promise.resolve().then(()=>this._updateModelValue(n)):this._updateModelValue(n)}_isSelected(t){return this._selectionModel&&this._selectionModel.isSelected(t)}_isPrechecked(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(e=>null!=t.value&&e===t.value):t.value===this._rawValue)}_setSelectionByValue(t){if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach(t=>this._selectValue(t))}else this._clearSelection(),this._selectValue(t)}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(t=>t.checked=!1)}_selectValue(t){const e=this._buttonToggles.find(e=>null!=e.value&&e.value===t);e&&(e.checked=!0,this._selectionModel.select(e))}_updateModelValue(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(NT,8))},t.\u0275dir=i.Jb({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,GT,!0),2&t&&i.tc(r=i.dc())&&(e._buttonToggles=r)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(i.Eb("aria-disabled",e.disabled),i.Gb("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[i.Cb([VT,{provide:FT,useExisting:t}])]}),t})();class qT{}const HT=Md(qT);let GT=(()=>{class t extends HT{constructor(t,e,n,r,o,s){super(),this._changeDetectorRef=e,this._elementRef=n,this._focusMonitor=r,this._isSingleSelector=!1,this._checked=!1,this.ariaLabelledby=null,this._disabled=!1,this.change=new i.o;const a=Number(o);this.tabIndex=a||0===a?a:null,this.buttonToggleGroup=t,this.appearance=s&&s.appearance?s.appearance:"standard"}get buttonId(){return this.id+"-button"}get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(t){this._appearance=t}get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(t){const e=Lu(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(t){this._disabled=Lu(t)}ngOnInit(){const t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-"+jT++,this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}focus(t){this._buttonElement.nativeElement.focus(t)}_onButtonClick(){const t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new BT(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(FT,8),i.Ob(i.h),i.Ob(i.l),i.Ob(hd),i.Zb("tabindex"),i.Ob(NT,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&i.Qc(LT,!0),2&t&&i.tc(n=i.dc())&&(e._buttonElement=n.first)},hostAttrs:[1,"mat-button-toggle"],hostVars:11,hostBindings:function(t,e){1&t&&i.cc("focus",(function(){return e.focus()})),2&t&&(i.Eb("tabindex",-1)("id",e.id)("name",null),i.Gb("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[i.Ab],ngContentSelectors:RT,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(i.lc(),i.Ub(0,"button",0,1),i.cc("click",(function(){return e._onButtonClick()})),i.Ub(2,"div",2),i.kc(3),i.Tb(),i.Tb(),i.Pb(4,"div",3),i.Pb(5,"div",4)),2&t){const t=i.uc(1);i.mc("id",e.buttonId)("disabled",e.disabled||null),i.Eb("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),i.Db(5),i.mc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[ch],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t})(),JT=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Ed,lh],Ed]}),t})();const YT=["*"],$T=new i.s("MatChipRemove"),WT=new i.s("MatChipAvatar"),KT=new i.s("MatChipTrailingIcon");class QT{constructor(t){this._elementRef=t}}const XT=Ud(Id(Md(QT),"primary"),-1);let ZT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[i.Cb([{provide:WT,useExisting:t}])]}),t})(),tD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[i.Cb([{provide:KT,useExisting:t}])]}),t})(),eD=(()=>{class t extends XT{constructor(t,e,n,r,o,s,a,c){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=s,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new lr.a,this._onBlur=new lr.a,this.selectionChange=new i.o,this.destroyed=new i.o,this.removed=new i.o,this._addHostClassName(),this._chipRippleTarget=(c||document).createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new sh(this,e,this._chipRippleTarget,n),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=r||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=a&&parseInt(a)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Lu(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Lu(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Lu(t)}get removable(){return this._removable}set removable(t){this._removable=Lu(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}_markForCheck(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(vu),i.Ob(ah,8),i.Ob(ti,8),i.Ob(i.h),i.Zb("tabindex"),i.Ob(o.e,8))},t.\u0275dir=i.Jb({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,WT,!0),i.Hb(n,KT,!0),i.Hb(n,$T,!0)),2&t&&(i.tc(r=i.dc())&&(e.avatar=r.first),i.tc(r=i.dc())&&(e.trailingIcon=r.first),i.tc(r=i.dc())&&(e.removeIcon=r.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&i.cc("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()})),2&t&&(i.Eb("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),i.Gb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.Ab]}),t})(),nD=(()=>{class t{constructor(t,e){this._parentChip=t,e&&"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(eD),i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&i.cc("click",(function(t){return e._handleClick(t)}))},features:[i.Cb([{provide:$T,useExisting:t}])]}),t})();const iD=new i.s("mat-chips-default-options");class rD{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const oD=Ld(rD);let sD=0;class aD{constructor(t,e){this.source=t,this.value=e}}let cD=(()=>{class t extends oD{constructor(t,e,n,r,o,s,a){super(s,r,o,a),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this.ngControl=a,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new lr.a,this._uid="mat-chip-list-"+sD++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.o,this.valueChange=new i.o,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Lu(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Lu(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Lu(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Lu(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(ii.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(ii.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(ii.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(ii.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new Xu(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Vh(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Vh(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Pr(null),Vh(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new Cf(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&t<this.chips.length}_isInputEmpty(t){return!(!t||"input"!==t.nodeName.toLowerCase()||t.value)}_setSelectionByValue(t,e=!0){if(this._clearSelection(),this.chips.forEach(t=>t.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const n=this._selectValue(t,e);n&&e&&this._keyManager.setActiveItem(n)}}_selectValue(t,e=!0){const n=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return n&&(e?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new aD(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,n=this.chips.toArray().indexOf(t.chip);this._isValidIndex(n)&&e._hasFocus&&(this._lastDestroyedChipIndex=n)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(_d,8),i.Ob(Uc,8),i.Ob(Yc,8),i.Ob(Kd),i.Ob(La,10))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,eD,!0),2&t&&i.tc(r=i.dc())&&(e.chips=r)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&i.cc("focus",(function(){return e.focus()}))("blur",(function(){return e._blur()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(i.Xb("id",e._uid),i.Eb("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),i.Gb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i.Cb([{provide:_v,useExisting:t}]),i.Ab],ngContentSelectors:YT,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.kc(1),i.Tb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),lD=0,uD=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new i.o,this.placeholder="",this.id="mat-chip-list-input-"+lD++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=Lu(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=Lu(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&9===t.keyCode&&!Pu(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){if(Pu(t))return!1;const e=this.separatorKeyCodes,n=t.keyCode;return Array.isArray(e)?e.indexOf(n)>-1:e.has(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(iD))},t.\u0275dir=i.Jb({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&i.cc("keydown",(function(t){return e._keydown(t)}))("blur",(function(){return e._blur()}))("focus",(function(){return e._focus()}))("input",(function(){return e._onInput()})),2&t&&(i.Xb("id",e.id),i.Eb("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[i.Bb]}),t})();const dD={separatorKeyCodes:[13]};let hD=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[Kd,{provide:iD,useValue:dD}]}),t})();const pD=["mat-calendar-body",""];function mD(t,e){if(1&t&&(i.Ub(0,"tr",2),i.Ub(1,"td",3),i.Lc(2),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Gc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),i.Eb("colspan",t.numCols),i.Db(1),i.Nc(" ",t.label," ")}}function fD(t,e){if(1&t&&(i.Ub(0,"td",7),i.Lc(1),i.Tb()),2&t){const t=i.gc(2);i.Gc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),i.Eb("colspan",t._firstRowOffset),i.Db(1),i.Nc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function bD(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",8),i.cc("click",(function(n){i.yc(t);const r=e.$implicit;return i.gc(2)._cellClicked(r,n)})),i.Ub(1,"div",9),i.Lc(2),i.Tb(),i.Pb(3,"div",10),i.Tb()}if(2&t){const t=e.$implicit,n=e.index,r=i.gc().index,o=i.gc();i.Gc("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),i.Gb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",o._isActiveCell(r,n))("mat-calendar-body-range-start",o._isRangeStart(t.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",o._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(t.compareValue,r,n))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(t.compareValue,r,n))("mat-calendar-body-comparison-start",o._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",o._isInPreview(t.compareValue)),i.mc("ngClass",t.cssClasses)("tabindex",o._isActiveCell(r,n)?0:-1),i.Eb("data-mat-row",r)("data-mat-col",n)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",o._isSelected(t)),i.Db(1),i.Gb("mat-calendar-body-selected",o._isSelected(t))("mat-calendar-body-today",o.todayValue===t.compareValue),i.Db(1),i.Nc(" ",t.displayValue," ")}}function gD(t,e){if(1&t&&(i.Ub(0,"tr",4),i.Jc(1,fD,2,6,"td",5),i.Jc(2,bD,4,44,"td",6),i.Tb()),2&t){const t=e.$implicit,n=e.index,r=i.gc();i.Db(1),i.mc("ngIf",0===n&&r._firstRowOffset),i.Db(1),i.mc("ngForOf",t)}}function _D(t,e){if(1&t&&(i.Ub(0,"th",5),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Eb("aria-label",t.long),i.Db(1),i.Mc(t.narrow)}}const vD=["*"];function yD(t,e){}function wD(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-month-view",5),i.cc("activeDateChange",(function(e){return i.yc(t),i.gc().activeDate=e}))("_userSelection",(function(e){return i.yc(t),i.gc()._dateSelected(e)})),i.Tb()}if(2&t){const t=i.gc();i.mc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function CD(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-year-view",6),i.cc("activeDateChange",(function(e){return i.yc(t),i.gc().activeDate=e}))("monthSelected",(function(e){return i.yc(t),i.gc()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return i.yc(t),i.gc()._goToDateInView(e,"month")})),i.Tb()}if(2&t){const t=i.gc();i.mc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}function xD(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-multi-year-view",7),i.cc("activeDateChange",(function(e){return i.yc(t),i.gc().activeDate=e}))("yearSelected",(function(e){return i.yc(t),i.gc()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return i.yc(t),i.gc()._goToDateInView(e,"year")})),i.Tb()}if(2&t){const t=i.gc();i.mc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}const OD=["button"];function SD(t,e){1&t&&(i.fc(),i.Ub(0,"svg",3),i.Pb(1,"path",4),i.Tb())}const TD=[[["","matDatepickerToggleIcon",""]]],DD=["[matDatepickerToggleIcon]"],kD=[[["input","matStartDate",""]],[["input","matEndDate",""]]],PD=["input[matStartDate]","input[matEndDate]"];function ED(t){return Error(`MatDatepicker: No provider found for ${t}. You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.`)}let AD=(()=>{class t{constructor(){this.changes=new lr.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class ID{constructor(t,e,n,i,r={},o=t,s){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasses=r,this.compareValue=o,this.rawValue=s}}let MD=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.o,this.previewChange=new i.o,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&UD(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t.compareValue||this.endValue===t.compareValue}ngOnChanges(t){const e=t.numCols,{rows:n,numCols:i}=this;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!e&&this._cellWidth||(this._cellWidth=100/i+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return LD(t,this.startValue,this.endValue)}_isRangeEnd(t){return RD(t,this.startValue,this.endValue)}_isInRange(t){return ND(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return LD(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let i=this.rows[e][n-1];if(!i){const t=this.rows[e-1];i=t&&t[t.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let i=this.rows[e][n+1];if(!i){const t=this.rows[e+1];i=t&&t[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(t){return RD(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return ND(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isPreviewStart(t){return LD(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return RD(t,this.previewStart,this.previewEnd)}_isInPreview(t){return ND(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(UD(t)?e=t:UD(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(t&&n)return this.rows[parseInt(t)][parseInt(n)]}return null}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B))},t.\u0275cmp=i.Ib({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[i.Bb],attrs:pD,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(i.Jc(0,mD,3,6,"tr",0),i.Jc(1,gD,3,2,"tr",1)),2&t&&(i.mc("ngIf",e._firstRowOffset<e.labelMinRequiredCells),i.Db(1),i.mc("ngForOf",e.rows))},directives:[o.t,o.s,o.q],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function UD(t){return"TD"===t.nodeName}function LD(t,e,n){return null!==n&&e!==n&&t<n&&t===e}function RD(t,e,n){return null!==e&&e!==n&&t>=e&&t===n}function ND(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}class FD{constructor(t,e){this.start=t,this.end=e}}let VD=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new lr.a,this.selectionChanged=this._selectionChanged.asObservable(),this.selection=t}updateSelection(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(void 0),i.Ob(Fd))},t.\u0275dir=i.Jb({type:t}),t})(),jD=(()=>{class t extends VD{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Fd))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),BD=(()=>{class t extends VD{constructor(t){super(new FD(null,null),t)}add(t){let{start:e,end:n}=this.selection;null==e?e=t:null==n?n=t:(e=t,n=null),super.updateSelection(new FD(e,n),this)}isValid(){const{start:t,end:e}=this.selection;return null==t&&null==e||(null!=t&&null!=e?this._isValidDateInstance(t)&&this._isValidDateInstance(e)&&this._adapter.compareDate(t,e)<=0:(null==t||this._isValidDateInstance(t))&&(null==e||this._isValidDateInstance(e)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Fd))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const zD={provide:VD,deps:[[new i.C,new i.L,VD],Fd],useFactory:function(t,e){return t||new jD(e)}},qD={provide:VD,deps:[[new i.C,new i.L,VD],Fd],useFactory:function(t,e){return t||new BD(e)}},HD=new i.s("MAT_DATE_RANGE_SELECTION_STRATEGY");let GD=(()=>{class t{constructor(t){this._dateAdapter=t}selectionFinished(t,e){let{start:n,end:i}=e;return null==n?n=t:null==i&&t&&this._dateAdapter.compareDate(t,n)>=0?i=t:(n=t,i=null),new FD(n,i)}createPreview(t,e){let n=null,i=null;return e.start&&!e.end&&t&&(n=e.start,i=t),new FD(n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Fd))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),JD=(()=>{class t{constructor(t,e,n,r,o){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=Ir.a.EMPTY,this.selectedChange=new i.o,this._userSelection=new i.o,this.activeDateChange=new i.o,!this._dateAdapter)throw ED("DateAdapter");if(!this._dateFormats)throw ED("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof FD?t:this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Pr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,n=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.createDate(n,i,e);let o,s;this._selected instanceof FD?(o=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):o=s=this._getDateInCurrentMonth(this._selected),o===e&&s===e||this.selectedChange.emit(r),this._userSelection.emit({value:r,event:t.event})}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case 27:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((t,n)=>({long:t,narrow:e[n]}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,i=this._firstWeekOffset;n<t;n++,i++){7==i&&(this._weeks.push([]),i=0);const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),r=this._shouldEnableDate(t),o=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel),s=this.dateClass?this.dateClass(t):void 0;this._weeks[this._weeks.length-1].push(new ID(n+1,e[n],o,r,s,this._getCellCompareValue(t),t))}}_shouldEnableDate(t){return!!t&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof FD?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(Vd,8),i.Ob(Fd,8),i.Ob(_d,8),i.Ob(HD,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&i.Qc(MD,!0),2&t&&i.tc(n=i.dc())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(i.Ub(0,"table",0),i.Ub(1,"thead",1),i.Ub(2,"tr"),i.Jc(3,_D,2,2,"th",2),i.Tb(),i.Ub(4,"tr"),i.Pb(5,"th",3),i.Tb(),i.Tb(),i.Ub(6,"tbody",4),i.cc("selectedValueChange",(function(t){return e._dateSelected(t)}))("previewChange",(function(t){return e._previewChanged(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("ngForOf",e._weekdays),i.Db(3),i.mc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[o.s,MD],encapsulation:2,changeDetection:0}),t})(),YD=(()=>{class t{constructor(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this._rerenderSubscription=Ir.a.EMPTY,this.selectedChange=new i.o,this.yearSelected=new i.o,this.activeDateChange=new i.o,!this._dateAdapter)throw ED("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),$D(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof FD?t:this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Pr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-WD(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];e<24;e++)n.push(t+e),4==n.length&&(this._years.push(n.map(t=>this._createCellForYear(t))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));this.selectedChange.emit(this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-WD(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-WD(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return WD(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){let e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new ID(t,e,e,this._shouldEnableYear(t))}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let e=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(t){if(this._selectedYear=null,t instanceof FD){const e=t.start||t.end;e&&(this._selectedYear=this._dateAdapter.getYear(e))}else t&&(this._selectedYear=this._dateAdapter.getYear(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(Fd,8),i.Ob(_d,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(t,e){var n;1&t&&i.Qc(MD,!0),2&t&&i.tc(n=i.dc())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(i.Ub(0,"table",0),i.Ub(1,"thead",1),i.Ub(2,"tr"),i.Pb(3,"th",2),i.Tb(),i.Tb(),i.Ub(4,"tbody",3),i.cc("selectedValueChange",(function(t){return e._yearSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.mc("rows",e._years)("todayValue",e._todayYear)("startValue",e._selectedYear)("endValue",e._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._getActiveCell()))},directives:[MD],encapsulation:2,changeDetection:0}),t})();function $D(t,e,n,i,r){const o=t.getYear(e),s=t.getYear(n),a=KD(t,i,r);return Math.floor((o-a)/24)===Math.floor((s-a)/24)}function WD(t,e,n,i){return((t.getYear(e)-KD(t,n,i))%24+24)%24}function KD(t,e,n){let i=0;return n?i=t.getYear(n)-24+1:e&&(i=t.getYear(e)),i}let QD=(()=>{class t{constructor(t,e,n,r){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=r,this._rerenderSubscription=Ir.a.EMPTY,this.selectedChange=new i.o,this.monthSelected=new i.o,this.activeDateChange=new i.o,!this._dateAdapter)throw ED("DateAdapter");if(!this._dateFormats)throw ED("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof FD?t:this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Pr(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(n);const i=this._dateAdapter.getNumDaysInMonth(n);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:case 32:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){let n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new ID(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t))}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>i}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t<n||t===n&&e<i}return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(t){this._selectedMonth=t instanceof FD?this._getMonthInCurrentYear(t.start)||this._getMonthInCurrentYear(t.end):this._getMonthInCurrentYear(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(Vd,8),i.Ob(Fd,8),i.Ob(_d,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-year-view"]],viewQuery:function(t,e){var n;1&t&&i.Qc(MD,!0),2&t&&i.tc(n=i.dc())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(i.Ub(0,"table",0),i.Ub(1,"thead",1),i.Ub(2,"tr"),i.Pb(3,"th",2),i.Tb(),i.Tb(),i.Ub(4,"tbody",3),i.cc("selectedValueChange",(function(t){return e._monthSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.mc("label",e._yearLabel)("rows",e._months)("todayValue",e._todayMonth)("startValue",e._selectedMonth)("endValue",e._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._dateAdapter.getMonth(e.activeDate)))},directives:[MD],encapsulation:2,changeDetection:0}),t})(),XD=(()=>{class t{constructor(t,e,n,i,r){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=i,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-WD(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(n,i)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):$D(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(AD),i.Ob(Object(i.X)(()=>ZD)),i.Ob(Fd,8),i.Ob(Vd,8),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:vD,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"button",2),i.cc("click",(function(){return e.currentPeriodClicked()})),i.Lc(3),i.Pb(4,"div",3),i.Tb(),i.Pb(5,"div",4),i.kc(6),i.Ub(7,"button",5),i.cc("click",(function(){return e.previousClicked()})),i.Tb(),i.Ub(8,"button",6),i.cc("click",(function(){return e.nextClicked()})),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(2),i.Eb("aria-label",e.periodButtonLabel),i.Db(1),i.Nc(" ",e.periodButtonText," "),i.Db(1),i.Gb("mat-calendar-invert","month"!=e.calendar.currentView),i.Db(3),i.mc("disabled",!e.previousEnabled()),i.Eb("aria-label",e.prevButtonLabel),i.Db(1),i.mc("disabled",!e.nextEnabled()),i.Eb("aria-label",e.nextButtonLabel))},directives:[zm,cd],encapsulation:2,changeDetection:0}),t})(),ZD=(()=>{class t{constructor(t,e,n,r){if(this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=r,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.o,this.yearSelected=new i.o,this.monthSelected=new i.o,this._userSelection=new i.o,this.stateChanges=new lr.a,!this._dateAdapter)throw ED("DateAdapter");if(!this._dateFormats)throw ED("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe(()=>{r.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof FD?t:this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new Xm(this.headerComponent||XD),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof FD||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(AD),i.Ob(Fd,8),i.Ob(Vd,8),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){var n;1&t&&(i.Qc(JD,!0),i.Qc(QD,!0),i.Qc(YD,!0)),2&t&&(i.tc(n=i.dc())&&(e.monthView=n.first),i.tc(n=i.dc())&&(e.yearView=n.first),i.tc(n=i.dc())&&(e.multiYearView=n.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[i.Cb([zD]),i.Bb],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(i.Jc(0,yD,0,0,"ng-template",0),i.Ub(1,"div",1),i.Jc(2,wD,1,8,"mat-month-view",2),i.Jc(3,CD,1,5,"mat-year-view",3),i.Jc(4,xD,1,5,"mat-multi-year-view",4),i.Tb()),2&t&&(i.mc("cdkPortalOutlet",e._calendarHeaderPortal),i.Db(1),i.mc("ngSwitch",e.currentView),i.Db(1),i.mc("ngSwitchCase","month"),i.Db(1),i.mc("ngSwitchCase","year"),i.Db(1),i.mc("ngSwitchCase","multi-year"))},directives:[of,md,o.x,o.y,JD,QD,YD],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const tk={transformPanel:It("transformPanel",[Nt("void",Rt({opacity:0,transform:"scale(1, 0.8)"})),Vt("void => enter",Mt("120ms cubic-bezier(0, 0, 0.2, 1)",Rt({opacity:1,transform:"scale(1, 1)"}))),Vt("* => void",Mt("100ms linear",Rt({opacity:0})))]),fadeInCalendar:It("fadeInCalendar",[Nt("void",Rt({opacity:0})),Nt("enter",Rt({opacity:1})),Vt("void => *",Mt("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ek=0;const nk=new i.s("mat-datepicker-scroll-strategy"),ik={provide:nk,deps:[rb],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class rk{constructor(t){this._elementRef=t}}const ok=Id(rk);let sk=(()=>{class t extends ok{constructor(t,e,n,i,r){super(t),this._changeDetectorRef=e,this._model=n,this._dateAdapter=i,this._rangeSelectionStrategy=r,this._subscriptions=new Ir.a,this._animationState="enter",this._animationDone=new lr.a}ngAfterViewInit(){this._changeDetectorRef&&this._subscriptions.add(this.datepicker._stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){if(this._model&&this._dateAdapter){const e=this._model.selection,n=t.value,i=e instanceof FD;if(i&&this._rangeSelectionStrategy){const i=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(i,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n)}this._model&&!this._model.isComplete()||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}_getSelected(){return this._model?this._model.selection:null}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(VD),i.Ob(Fd),i.Ob(HD,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&i.Qc(ZD,!0),2&t&&i.tc(n=i.dc())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&i.Hc("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(i.Ic("@transformPanel",e._animationState),i.Gb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.Ab],decls:1,vars:13,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(i.Ub(0,"mat-calendar",0),i.cc("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(t){return e._handleUserSelection(t)})),i.Tb()),2&t&&i.mc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter")},directives:[ZD,rd,o.q],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[tk.transformPanel,tk.fadeInCalendar]},changeDetection:0}),t})(),ak=(()=>{class t{constructor(t,e,n,r,o,s,a,c,l){if(this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=r,this._dateAdapter=s,this._dir=a,this._document=c,this._model=l,this._inputStateChanges=Ir.a.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new i.o,this.monthSelected=new i.o,this.openedStream=new i.o,this.closedStream=new i.o,this._opened=!1,this.id="mat-datepicker-"+ek++,this._focusedElementBeforeOpen=null,this._stateChanges=new lr.a,!this._dateAdapter)throw ED("DateAdapter");this._scrollStrategy=o}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=Lu(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=Lu(t);e!==this._disabled&&(this._disabled=e,this._stateChanges.next(void 0))}get opened(){return this._opened}set opened(t){t?this.open():this.close()}_getMinDate(){return this._datepickerInput&&this._datepickerInput.min}_getMaxDate(){return this._datepickerInput&&this._datepickerInput.max}_getDateFilter(){return this._datepickerInput&&this._datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_registerInput(t){if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");return this._inputStateChanges.unsubscribe(),this._datepickerInput=t,this._inputStateChanges=t._stateChanges.subscribe(()=>this._stateChanges.next(void 0)),this._model}open(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(li(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(sk,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._forwardContentValues(this._dialogRef.componentInstance)}_openAsPopup(){const t=new Xm(sk,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(()=>{this._popupRef.updatePosition()})}_forwardContentValues(t){t.datepicker=this,t.color=this.color}_createPopup(){const t=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),e=new Vf({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(ii.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(d(t=>27===t.keyCode||this._datepickerInput&&t.altKey&&38===t.keyCode))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(rb),i.Ob(i.B),i.Ob(i.S),i.Ob(nk),i.Ob(Fd,8),i.Ob(_d,8),i.Ob(o.e,8),i.Ob(VD))},t.\u0275dir=i.Jb({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},features:[i.Bb]}),t})(),ck=(()=>{class t extends ak{}return t.\u0275fac=function(e){return lk(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i.Cb([zD]),i.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const lk=i.Wb(ck);class uk{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let dk=(()=>{class t{constructor(t,e,n){if(this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this.dateChange=new i.o,this.dateInput=new i.o,this._valueChange=new i.o,this._stateChanges=new lr.a,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=Ir.a.EMPTY,this._localeSubscription=Ir.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getDateFilter();return n&&e&&!n(e)?{matDatepickerFilter:!0}:null},this._minValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getMinDate();return!n||!e||this._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getMaxDate();return!n||!e||this._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,!this._dateAdapter)throw ED("DateAdapter");if(!this._dateFormats)throw ED("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe(()=>{this.value=this.value})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._getValidDateOrNull(t);const e=this.value;this._assignValue(t),this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=Lu(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(t.source!==this){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this._canEmitChangeEvent(t)&&(this.dateInput.emit(new uk(this,this._elementRef.nativeElement)),this.dateChange.emit(new uk(this,this._elementRef.nativeElement))),this._outsideValueChanged&&this._outsideValueChanged()}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(){this._stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this.value=t}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let n=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._getValidDateOrNull(n),this._dateAdapter.sameDate(n,this.value)?(t&&!this.value&&this._cvaOnChange(n),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(n),this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new uk(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new uk(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Fd,8),i.Ob(Vd,8))},t.\u0275dir=i.Jb({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.Bb]}),t})();const hk={provide:Ta,useExisting:Object(i.X)(()=>mk),multi:!0},pk={provide:Ba,useExisting:Object(i.X)(()=>mk),multi:!0};let mk=(()=>{class t extends dk{constructor(t,e,n,i){super(t,e,n),this._formField=i,this._validator=Ha.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._registerModel(t._registerInput(this)))}get min(){return this._min}set min(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get max(){return this._max}set max(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get dateFilter(){return this._dateFilter}set dateFilter(t){this._dateFilter=t,this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_canEmitChangeEvent(){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(Fd,8),i.Ob(Vd,8),i.Ob(Mv,8))},t.\u0275dir=i.Jb({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&i.cc("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(i.Xb("disabled",e.disabled),i.Eb("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[i.Cb([hk,pk,{provide:oy,useExisting:t}]),i.Ab]}),t})(),fk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),bk=(()=>{class t{constructor(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=Ir.a.EMPTY;const i=Number(n);this.tabIndex=i||0===i?i:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=Lu(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker._stateChanges:Object(s.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._stateChanges:Object(s.a)(),n=this.datepicker?Object(ii.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(s.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(ii.a)(this._intl.changes,t,e,n).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(AD),i.Ob(i.h),i.Zb("tabindex"))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,fk,!0),2&t&&i.tc(r=i.dc())&&(e._customIcon=r.first)},viewQuery:function(t,e){var n;1&t&&i.Qc(OD,!0),2&t&&i.tc(n=i.dc())&&(e._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&i.cc("focus",(function(){return e._button.focus()})),2&t&&(i.Eb("tabindex",e.disabled?null:-1),i.Gb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[i.Bb],ngContentSelectors:DD,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(i.lc(TD),i.Ub(0,"button",0,1),i.cc("click",(function(t){return e._open(t)})),i.Jc(2,SD,2,0,"svg",2),i.kc(3),i.Tb()),2&t&&(i.mc("disabled",e.disabled)("disableRipple",e.disableRipple),i.Eb("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),i.Db(2),i.mc("ngIf",!e._customIcon))},directives:[zm,o.t],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})();const gk=new i.s("MAT_DATE_RANGE_INPUT_PARENT"),_k=Ld((()=>{class t extends dk{constructor(t,e,n,i,r,o,s,a){super(e,s,a),this._rangeInput=t,this._defaultErrorStateMatcher=n,this._injector=i,this._parentForm=r,this._parentFormGroup=o,this._outsideValueChanged=()=>{this._validatorOnChange()}}ngOnInit(){const t=this._injector.get(La,null,i.r.Self);t&&(this.ngControl=t)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(t){super._onInput(t),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(gk),i.Ob(i.l),i.Ob(Kd),i.Ob(i.t),i.Ob(Uc,8),i.Ob(Yc,8),i.Ob(Fd,8),i.Ob(Vd,8))},t.\u0275dir=i.Jb({type:t,features:[i.Ab]}),t})());let vk=(()=>{class t extends _k{constructor(t,e,n,i,r,o,s,a){super(t,e,n,i,r,o,s,a),this._startValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._model?this._model.selection.end:null;return!e||!n||this._dateAdapter.compareDate(e,n)<=0?null:{matStartDateInvalid:{end:n,actual:e}}},this._validator=Ha.compose([...super._getValidators(),this._startValidator]),this._canEmitChangeEvent=t=>t.source!==this._rangeInput._endInput}_getValueFromModel(t){return t.start}_assignValueToModel(t){if(this._model){const e=new FD(t,this._model.selection.end);this._model.updateSelection(e,this),this._cvaOnChange(t)}}_formatValue(t){super._formatValue(t),this._rangeInput._handleChildValueChange()}getMirrorValue(){const t=this._elementRef.nativeElement,e=t.value;return e.length>0?e:t.placeholder}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(gk),i.Ob(i.l),i.Ob(Kd),i.Ob(i.t),i.Ob(Uc,8),i.Ob(Yc,8),i.Ob(Fd,8),i.Ob(Vd,8))},t.\u0275dir=i.Jb({type:t,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-date-range-input-inner"],hostVars:6,hostBindings:function(t,e){1&t&&i.cc("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("keydown",(function(t){return e._onKeydown(t)}))("blur",(function(){return e._onBlur()})),2&t&&(i.Xb("disabled",e.disabled),i.Eb("id",e._rangeInput.id)("aria-haspopup",e._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==e._rangeInput.rangePicker?null:e._rangeInput.rangePicker.opened)&&e._rangeInput.rangePicker.id||null)("min",e._getMinDate()?e._dateAdapter.toIso8601(e._getMinDate()):null)("max",e._getMaxDate()?e._dateAdapter.toIso8601(e._getMaxDate()):null))},features:[i.Cb([{provide:Ta,useExisting:t,multi:!0},{provide:Ba,useExisting:t,multi:!0}]),i.Ab]}),t})(),yk=(()=>{class t extends _k{constructor(t,e,n,i,r,o,s,a){super(t,e,n,i,r,o,s,a),this._endValidator=t=>{const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._model?this._model.selection.start:null;return!e||!n||this._dateAdapter.compareDate(e,n)>=0?null:{matEndDateInvalid:{start:n,actual:e}}},this._validator=Ha.compose([...super._getValidators(),this._endValidator]),this._canEmitChangeEvent=t=>t.source!==this._rangeInput._startInput}_getValueFromModel(t){return t.end}_assignValueToModel(t){if(this._model){const e=new FD(this._model.selection.start,t);this._model.updateSelection(e,this),this._cvaOnChange(t)}}_onKeydown(t){8!==t.keyCode||this._elementRef.nativeElement.value||this._rangeInput._startInput.focus(),super._onKeydown(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(gk),i.Ob(i.l),i.Ob(Kd),i.Ob(i.t),i.Ob(Uc,8),i.Ob(Yc,8),i.Ob(Fd,8),i.Ob(Vd,8))},t.\u0275dir=i.Jb({type:t,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-date-range-input-inner"],hostVars:5,hostBindings:function(t,e){1&t&&i.cc("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("keydown",(function(t){return e._onKeydown(t)}))("blur",(function(){return e._onBlur()})),2&t&&(i.Xb("disabled",e.disabled),i.Eb("aria-haspopup",e._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==e._rangeInput.rangePicker?null:e._rangeInput.rangePicker.opened)&&e._rangeInput.rangePicker.id||null)("min",e._getMinDate()?e._dateAdapter.toIso8601(e._getMinDate()):null)("max",e._getMaxDate()?e._dateAdapter.toIso8601(e._getMaxDate()):null))},features:[i.Cb([{provide:Ta,useExisting:t,multi:!0},{provide:Ba,useExisting:t,multi:!0}]),i.Ab]}),t})(),wk=(()=>{class t extends ak{_forwardContentValues(t){super._forwardContentValues(t);const e=this._datepickerInput;e&&(t.comparisonStart=e.comparisonStart,t.comparisonEnd=e.comparisonEnd)}}return t.\u0275fac=function(e){return Ck(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[i.Cb([qD]),i.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const Ck=i.Wb(wk);let xk=0,Ok=(()=>{class t{constructor(t,e,n,i,r){if(this._changeDetectorRef=t,this._elementRef=e,this._dateAdapter=i,this._formField=r,this.stateChanges=new lr.a,this.id="mat-date-range-input-"+xk++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this._stateChanges=new lr.a,!i)throw ED("DateAdapter");this.ngControl=n}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){var t,e;const n=(null===(t=this._startInput)||void 0===t?void 0:t._getPlaceholder())||"",i=(null===(e=this._endInput)||void 0===e?void 0:e._getPlaceholder())||"";return n||i?`${n} ${this.separator} ${i}`:""}get rangePicker(){return this._rangePicker}set rangePicker(t){t&&(this._model=t._registerInput(this),this._rangePicker=t,this._registerModel(this._model))}get required(){return!!this._required}set required(t){this._required=Lu(t)}get dateFilter(){return this._dateFilter}set dateFilter(t){this._dateFilter=t,this._revalidate()}get min(){return this._min}set min(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._revalidate()}get max(){return this._max}set max(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._revalidate()}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(t){const e=Lu(t);e!==this._groupDisabled&&(this._groupDisabled=e,this._stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const t=!!this._startInput&&this._startInput.isEmpty(),e=!!this._endInput&&this._endInput.isEmpty();return t&&e}setDescribedByIds(t){this._ariaDescribedBy=t.length?t.join(" "):null}onContainerClick(){this.focused||this.disabled||(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){if(!this._startInput)throw Error("mat-date-range-input must contain a matStartDate input");if(!this._endInput)throw Error("mat-date-range-input must contain a matEndDate input");this._model&&this._registerModel(this._model),Object(ii.a)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this._stateChanges.next(void 0)})}ngOnChanges(){this._stateChanges.next(void 0)}ngOnDestroy(){this.stateChanges.complete(),this._stateChanges.unsubscribe()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField._hideControlPlaceholder())&&this.empty}_getAriaLabelledby(){const t=this._formField;return t&&t._hasFloatingLabel()?t._labelId:null}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(t){this._startInput&&this._startInput._registerModel(t),this._endInput&&this._endInput._registerModel(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(i.l),i.Ob(Ma,10),i.Ob(Fd,8),i.Ob(Mv,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-date-range-input"]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,vk,!0),i.Hb(n,yk,!0)),2&t&&(i.tc(r=i.dc())&&(e._startInput=r.first),i.tc(r=i.dc())&&(e._endInput=r.first))},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:5,hostBindings:function(t,e){2&t&&(i.Eb("id",null)("aria-labelledby",e._getAriaLabelledby())("aria-describedby",e._ariaDescribedBy),i.Gb("mat-date-range-input-hide-placeholders",e._shouldHidePlaceholders()))},inputs:{separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled"},exportAs:["matDateRangeInput"],features:[i.Cb([{provide:_v,useExisting:t},{provide:gk,useExisting:t}]),i.Bb],ngContentSelectors:PD,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(t,e){1&t&&(i.lc(kD),i.Ub(0,"div",0),i.cc("cdkFocusChange",(function(t){return e.focused=null!==t})),i.Ub(1,"div",1),i.kc(2),i.Ub(3,"span",2),i.Lc(4),i.Tb(),i.Tb(),i.Ub(5,"span",3),i.Lc(6),i.Tb(),i.Ub(7,"div",4),i.kc(8,1),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.Mc(e._getInputMirrorValue()),i.Db(1),i.Gb("mat-date-range-input-separator-hidden",e._shouldHideSeparator()),i.Db(1),i.Mc(e.separator))},directives:[md],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}\n"],encapsulation:2,changeDetection:0}),t})(),Sk=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[AD,ik,{provide:HD,useClass:GD}],imports:[[o.c,Hm,Zb,ub,bd,cf],Df]}),t})(),Tk=0;const Dk=new i.s("CdkAccordion");let kk=(()=>{class t{constructor(){this._stateChanges=new lr.a,this._openCloseAllActions=new lr.a,this.id="cdk-accordion-"+Tk++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=Lu(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i.Cb([{provide:Dk,useExisting:t}]),i.Bb]}),t})(),Pk=0,Ek=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=Ir.a.EMPTY,this.closed=new i.o,this.opened=new i.o,this.destroyed=new i.o,this.expandedChange=new i.o,this.id="cdk-accordion-child-"+Pk++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=Lu(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=Lu(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Dk,12),i.Ob(i.h),i.Ob(xf))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Cb([{provide:Dk,useValue:void 0}])]}),t})(),Ak=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})();const Ik=["body"];function Mk(t,e){}const Uk=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Lk=["mat-expansion-panel-header","*","mat-action-row"];function Rk(t,e){if(1&t&&i.Pb(0,"span",2),2&t){const t=i.gc();i.mc("@indicatorRotate",t._getExpandedState())}}const Nk=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],Fk=["mat-panel-title","mat-panel-description","*"],Vk=new i.s("MAT_ACCORDION"),jk={indicatorRotate:It("indicatorRotate",[Nt("collapsed, void",Rt({transform:"rotate(0deg)"})),Nt("expanded",Rt({transform:"rotate(180deg)"})),Vt("expanded <=> collapsed, void => collapsed",Mt("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:It("bodyExpansion",[Nt("collapsed, void",Rt({height:"0px",visibility:"hidden"})),Nt("expanded",Rt({height:"*",visibility:"visible"})),Vt("expanded <=> collapsed, void => collapsed",Mt("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let Bk=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),zk=0;const qk=new i.s("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Hk=(()=>{class t extends Ek{constructor(t,e,n,r,o,s,a){super(t,e,n),this._viewContainerRef=r,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.o,this.afterCollapse=new i.o,this._inputChanges=new lr.a,this._headerId="mat-expansion-panel-header-"+zk++,this._bodyAnimationDone=new lr.a,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe(df((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),a&&(this.hideToggle=a.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=Lu(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(Pr(null),d(()=>this.expanded&&!this._portal),li(1)).subscribe(()=>{this._portal=new Zm(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Vk,12),i.Ob(i.h),i.Ob(xf),i.Ob(i.S),i.Ob(o.e),i.Ob(ti,8),i.Ob(qk,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,Bk,!0),2&t&&i.tc(r=i.dc())&&(e._lazyContent=r.first)},viewQuery:function(t,e){var n;1&t&&i.Qc(Ik,!0),2&t&&i.tc(n=i.dc())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&i.Gb("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Cb([{provide:Vk,useValue:void 0}]),i.Ab,i.Bb],ngContentSelectors:Lk,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(i.lc(Uk),i.kc(0),i.Ub(1,"div",0,1),i.cc("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),i.Ub(3,"div",2),i.kc(4,1),i.Jc(5,Mk,0,0,"ng-template",3),i.Tb(),i.kc(6,2),i.Tb()),2&t&&(i.Db(1),i.mc("@bodyExpansion",e._getExpandedState())("id",e.id),i.Eb("aria-labelledby",e._headerId),i.Db(4),i.mc("cdkPortalOutlet",e._portal))},directives:[of],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[jk.bodyExpansion]},changeDetection:0}),t})(),Gk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t})(),Jk=(()=>{class t{constructor(t,e,n,i,r,o){this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=o,this._parentChangeSubscription=Ir.a.EMPTY;const s=t.accordion?t.accordion._stateChanges.pipe(d(t=>!(!t.hideToggle&&!t.togglePosition))):ci.a;this._parentChangeSubscription=Object(ii.a)(t.opened,t.closed,s,t._inputChanges.pipe(d(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(d(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case 32:case 13:Pu(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Hk,1),i.Ob(i.l),i.Ob(hd),i.Ob(i.h),i.Ob(qk,8),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&i.cc("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(i.Eb("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),i.Gc("height",e._getHeaderHeight()),i.Gb("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:Fk,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(i.lc(Nk),i.Ub(0,"span",0),i.kc(1),i.kc(2,1),i.kc(3,2),i.Tb(),i.Jc(4,Rk,1,1,"span",1)),2&t&&(i.Db(4),i.mc("ngIf",e._showToggle()))},directives:[o.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[jk.indicatorRotate]},changeDetection:0}),t})(),Yk=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),$k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),Wk=(()=>{class t extends kk{constructor(){super(...arguments),this._ownHeaders=new i.F,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=Lu(t)}ngAfterContentInit(){this._headers.changes.pipe(Pr(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Xu(this._ownHeaders).withWrap()}_handleHeaderKeydown(t){const{keyCode:e}=t,n=this._keyManager;36===e?Pu(t)||(n.setFirstItemActive(),t.preventDefault()):35===e?Pu(t)||(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return Kk(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,Jk,!0),2&t&&i.tc(r=i.dc())&&(e._headers=r)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[i.Cb([{provide:Vk,useExisting:t}]),i.Ab]}),t})();const Kk=i.Wb(Wk);let Qk=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,Ak,cf]]}),t})();const Xk=["*"],Zk=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],tP=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"],eP=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n",nP=new i.s("MAT_GRID_LIST");let iP=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(Ru(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(Ru(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(nP,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&i.Eb("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Xk,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"figure",0),i.kc(1),i.Tb())},styles:[eP],encapsulation:2,changeDetection:0}),t})(),rP=(()=>{class t{constructor(t){this._element=t}ngAfterContentInit(){Xd(this._lines,this._element)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,Qd,!0),2&t&&i.tc(r=i.dc())&&(e._lines=r)},ngContentSelectors:tP,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(t,e){1&t&&(i.lc(Zk),i.kc(0),i.Ub(1,"div",0),i.kc(2,1),i.Tb(),i.kc(3,2))},encapsulation:2,changeDetection:0}),t})(),oP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}),t})(),sP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}),t})(),aP=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}),t})();class cP{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new lP(this.rowIndex,e)}_findMatchingGap(t){if(t>this.tracker.length)throw Error(`mat-grid-list: tile with colspan ${t} is wider than grid with cols="${this.tracker.length}".`);let e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)))}while(n-e<t||0==n);return Math.max(e,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)}_findGapEndIndex(t){for(let e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length}_markTilePosition(t,e){for(let n=0;n<e.colspan;n++)this.tracker[t+n]=e.rowspan}}class lP{constructor(t,e){this.row=t,this.col=e}}const uP=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class dP{constructor(){this._rows=0,this._rowspan=0}init(t,e,n,i){this._gutterSize=bP(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=i}getBaseTileSize(t,e){return`(${t}% - (${this._gutterSize} * ${e}))`}getTilePosition(t,e){return 0===e?"0":fP(`(${t} + ${this._gutterSize}) * ${e}`)}getTileSize(t,e){return`(${t} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(t,e,n){let i=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(t,n,i,r),this.setRowStyles(t,e,i,r)}setColStyles(t,e,n,i){let r=this.getBaseTileSize(n,i);t._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(r,e)),t._setStyle("width",fP(this.getTileSize(r,t.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(t){return`${this._rowspan} * ${this.getTileSize(t,1)}`}getComputedHeight(){return null}}class hP extends dP{constructor(t){super(),this.fixedRowHeight=t}init(t,e,n,i){if(super.init(t,e,n,i),this.fixedRowHeight=bP(this.fixedRowHeight),!uP.test(this.fixedRowHeight))throw Error(`Invalid value "${this.fixedRowHeight}" set as rowHeight.`)}setRowStyles(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",fP(this.getTileSize(this.fixedRowHeight,t.rowspan)))}getComputedHeight(){return["height",fP(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}class pP extends dP{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",fP(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",fP(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");if(2!==e.length)throw Error(`mat-grid-list: invalid ratio given for row-height: "${t}"`);this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class mP extends dP{setRowStyles(t,e){let n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",fP(this.getTileSize(n,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function fP(t){return`calc(${t})`}function bP(t){return t.match(/([A-Za-z%]+)$/)?t:t+"px"}let gP=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(Ru(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=""+(null==t?"":t)}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=""+(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){if(!this.cols)throw Error('mat-grid-list: must pass in number of columns. Example: <mat-grid-list cols="3">')}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new mP:t&&t.indexOf(":")>-1?new pP(t):new hP(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new cP);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,n),e.forEach((e,n)=>{const i=t.positions[n];this._tileStyler.setStyle(e,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(_d,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,iP,!0),2&t&&i.tc(r=i.dc())&&(e._tiles=r)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&i.Eb("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[i.Cb([{provide:nP,useExisting:t}])],ngContentSelectors:Xk,decls:2,vars:0,template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div"),i.kc(1),i.Tb())},styles:[eP],encapsulation:2,changeDetection:0}),t})(),_P=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[th,Ed],th,Ed]}),t})();function vP(t,e){if(1&t&&(i.Ub(0,"mat-option",19),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t," ")}}function yP(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-form-field",16),i.Ub(1,"mat-select",17),i.cc("selectionChange",(function(e){return i.yc(t),i.gc(2)._changePageSize(e.value)})),i.Jc(2,vP,2,2,"mat-option",18),i.Tb(),i.Tb()}if(2&t){const t=i.gc(2);i.mc("color",t.color),i.Db(1),i.mc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),i.Db(1),i.mc("ngForOf",t._displayedPageSizeOptions)}}function wP(t,e){if(1&t&&(i.Ub(0,"div",20),i.Lc(1),i.Tb()),2&t){const t=i.gc(2);i.Db(1),i.Mc(t.pageSize)}}function CP(t,e){if(1&t&&(i.Ub(0,"div",12),i.Ub(1,"div",13),i.Lc(2),i.Tb(),i.Jc(3,yP,3,5,"mat-form-field",14),i.Jc(4,wP,2,1,"div",15),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Nc(" ",t._intl.itemsPerPageLabel," "),i.Db(1),i.mc("ngIf",t._displayedPageSizeOptions.length>1),i.Db(1),i.mc("ngIf",t._displayedPageSizeOptions.length<=1)}}function xP(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",21),i.cc("click",(function(){return i.yc(t),i.gc().firstPage()})),i.fc(),i.Ub(1,"svg",7),i.Pb(2,"path",22),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.Eb("aria-label",t._intl.firstPageLabel)}}function OP(t,e){if(1&t){const t=i.Vb();i.fc(),i.ec(),i.Ub(0,"button",23),i.cc("click",(function(){return i.yc(t),i.gc().lastPage()})),i.fc(),i.Ub(1,"svg",7),i.Pb(2,"path",24),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.Eb("aria-label",t._intl.lastPageLabel)}}let SP=(()=>{class t{constructor(){this.changes=new lr.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return"0 of "+n;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const TP={provide:SP,deps:[[new i.C,new i.L,SP]],useFactory:function(t){return t||new SP}},DP=new i.s("MAT_PAGINATOR_DEFAULT_OPTIONS");class kP{}const PP=Ad(Rd(kP));let EP=(()=>{class t extends PP{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.o,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:r}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=r&&(this._showFirstLastButtons=r)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Ru(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Ru(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Ru(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Ru(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Lu(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Lu(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(SP),i.Ob(i.h),i.Ob(DP,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[i.Ab],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Jc(2,CP,5,3,"div",2),i.Ub(3,"div",3),i.Ub(4,"div",4),i.Lc(5),i.Tb(),i.Jc(6,xP,3,5,"button",5),i.Ub(7,"button",6),i.cc("click",(function(){return e.previousPage()})),i.fc(),i.Ub(8,"svg",7),i.Pb(9,"path",8),i.Tb(),i.Tb(),i.ec(),i.Ub(10,"button",9),i.cc("click",(function(){return e.nextPage()})),i.fc(),i.Ub(11,"svg",7),i.Pb(12,"path",10),i.Tb(),i.Tb(),i.Jc(13,OP,3,5,"button",11),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(2),i.mc("ngIf",!e.hidePageSize),i.Db(3),i.Nc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),i.Db(1),i.mc("ngIf",e.showFirstLastButtons),i.Db(1),i.mc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.Eb("aria-label",e._intl.previousPageLabel),i.Db(3),i.mc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.Eb("aria-label",e._intl.nextPageLabel),i.Db(3),i.mc("ngIf",e.showFirstLastButtons))},directives:[o.t,zm,zx,Uv,aw,o.s,Oh],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),AP=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[TP],imports:[[o.c,Hm,cw,Hx]]}),t})();const IP=["primaryValueBar"];class MP{constructor(t){this._elementRef=t}}const UP=Id(MP,"primary"),LP=new i.s("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(i.Y)(o.e),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let RP=0,NP=(()=>{class t extends UP{constructor(t,e,n,r){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=n,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new i.o,this._animationEndSubscription=Ir.a.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+RP++;const o=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${o}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===n}get value(){return this._value}set value(t){this._value=FP(Ru(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=FP(t||0)}_primaryTransform(){return{transform:`scaleX(${this.value/100})`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scaleX(${this.bufferValue/100})`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Fh(t,"transitionend").pipe(d(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(ti,8),i.Ob(LP,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){var n;1&t&&i.Qc(IP,!0),2&t&&i.tc(n=i.dc())&&(e._primaryValueBar=n.first)},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(i.Eb("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),i.Gb("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.Ab],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(i.fc(),i.Ub(0,"svg",0),i.Ub(1,"defs"),i.Ub(2,"pattern",1),i.Pb(3,"circle",2),i.Tb(),i.Tb(),i.Pb(4,"rect",3),i.Tb(),i.ec(),i.Pb(5,"div",4),i.Pb(6,"div",5,6),i.Pb(8,"div",7)),2&t&&(i.Db(2),i.mc("id",e.progressbarId),i.Db(2),i.Eb("fill",e._rectangleFillValue),i.Db(1),i.mc("ngStyle",e._bufferTransform()),i.Db(1),i.mc("ngStyle",e._primaryTransform()))},directives:[o.w],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function FP(t,e=0,n=100){return Math.max(e,Math.min(n,t))}let VP=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,Ed],Ed]}),t})();function jP(t,e){if(1&t&&(i.fc(),i.Pb(0,"circle",3)),2&t){const t=i.gc();i.Gc("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function BP(t,e){if(1&t&&(i.fc(),i.Pb(0,"circle",3)),2&t){const t=i.gc();i.Gc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function zP(t,e){if(1&t&&(i.fc(),i.Pb(0,"circle",3)),2&t){const t=i.gc();i.Gc("animation-name","mat-progress-spinner-stroke-rotate-"+t.diameter)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function qP(t,e){if(1&t&&(i.fc(),i.Pb(0,"circle",3)),2&t){const t=i.gc();i.Gc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}const HP=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class GP{constructor(t){this._elementRef=t}}const JP=Id(GP,"primary"),YP=new i.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let $P=(()=>{class t extends JP{constructor(e,n,i,r,o){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const s=t._diameters;s.has(i.head)||s.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===r&&!!o&&!o._forceAnimations,o&&(o.diameter&&(this.diameter=o.diameter),o.strokeWidth&&(this.strokeWidth=o.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Ru(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Ru(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Ru(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=ku(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,n=this._diameter,i=t._diameters;let r=i.get(e);if(!r||!r.has(n)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",n+""),t.textContent=this._getAnimationText(),e.appendChild(t),r||(r=new Set,i.set(e,r)),r.add(n)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this.diameter)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(vu),i.Ob(o.e,8),i.Ob(ti,8),i.Ob(YP))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(i.Eb("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Gc("width",e.diameter,"px")("height",e.diameter,"px"),i.Gb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[i.Ab],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(i.fc(),i.Ub(0,"svg",0),i.Jc(1,jP,1,9,"circle",1),i.Jc(2,BP,1,7,"circle",2),i.Tb()),2&t&&(i.Gc("width",e.diameter,"px")("height",e.diameter,"px"),i.mc("ngSwitch","indeterminate"===e.mode),i.Eb("viewBox",e._getViewBox()),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1))},directives:[o.x,o.y],styles:[HP],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),WP=(()=>{class t extends $P{constructor(t,e,n,i,r){super(t,e,n,i,r),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(vu),i.Ob(o.e,8),i.Ob(ti,8),i.Ob(YP))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(i.Gc("width",e.diameter,"px")("height",e.diameter,"px"),i.Gb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[i.Ab],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(i.fc(),i.Ub(0,"svg",0),i.Jc(1,zP,1,9,"circle",1),i.Jc(2,qP,1,7,"circle",2),i.Tb()),2&t&&(i.Gc("width",e.diameter,"px")("height",e.diameter,"px"),i.mc("ngSwitch","indeterminate"===e.mode),i.Eb("viewBox",e._getViewBox()),i.Db(1),i.mc("ngSwitchCase",!0),i.Db(1),i.mc("ngSwitchCase",!1))},directives:[o.x,o.y],styles:[HP],encapsulation:2,changeDetection:0}),t})(),KP=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[Ed,o.c],Ed]}),t})();const QP=["input"],XP=function(){return{enterDuration:150}},ZP=["*"],tE=new i.s("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let eE=0;const nE={provide:Ta,useExisting:Object(i.X)(()=>sE),multi:!0};class iE{constructor(t,e){this.source=t,this.value=e}}const rE=new i.s("MatRadioGroup");let oE=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+eE++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.o}get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=Lu(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=Lu(t),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new iE(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h))},t.\u0275dir=i.Jb({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),sE=(()=>{class t extends oE{}return t.\u0275fac=function(e){return aE(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,dE,!0),2&t&&i.tc(r=i.dc())&&(e._radios=r)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i.Cb([nE,{provide:rE,useExisting:t}]),i.Ab]}),t})();const aE=i.Wb(sE);class cE{constructor(t){this._elementRef=t}}const lE=Md(Ud(cE));let uE=(()=>{class t extends lE{constructor(t,e,n,r,o,s,a){super(e),this._changeDetector=n,this._focusMonitor=r,this._radioDispatcher=o,this._animationMode=s,this._providerOverride=a,this._uniqueId="mat-radio-"+ ++eE,this.id=this._uniqueId,this.change=new i.o,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,this._removeUniqueSelectionListener=o.listen((t,e)=>{t!==this.id&&e===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(t){const e=Lu(t);this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(Lu(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=Lu(t)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(t){this._color=t}get inputId(){return(this.id||this._uniqueId)+"-input"}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new iE(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(t){t.stopPropagation()}_onInputChange(t){t.stopPropagation();const e=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),e&&this.radioGroup._emitChangeEvent())}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(oE),i.Ob(i.l),i.Ob(i.h),i.Ob(hd),i.Ob(xf),i.Ob(String),i.Ob(void 0))},t.\u0275dir=i.Jb({type:t,viewQuery:function(t,e){var n;1&t&&i.Qc(QP,!0),2&t&&i.tc(n=i.dc())&&(e._inputElement=n.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[i.Ab]}),t})(),dE=(()=>{class t extends uE{constructor(t,e,n,i,r,o,s){super(t,e,n,i,r,o,s)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(rE,8),i.Ob(i.l),i.Ob(i.h),i.Ob(hd),i.Ob(xf),i.Ob(ti,8),i.Ob(tE,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&i.cc("focus",(function(){return e._inputElement.nativeElement.focus()})),2&t&&(i.Eb("tabindex",-1)("id",e.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.Gb("mat-radio-checked",e.checked)("mat-radio-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-primary","primary"===e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.Ab],ngContentSelectors:ZP,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(t,e){if(1&t&&(i.lc(),i.Ub(0,"label",0,1),i.Ub(2,"div",2),i.Pb(3,"div",3),i.Pb(4,"div",4),i.Ub(5,"input",5,6),i.cc("change",(function(t){return e._onInputChange(t)}))("click",(function(t){return e._onInputClick(t)})),i.Tb(),i.Ub(7,"div",7),i.Pb(8,"div",8),i.Tb(),i.Tb(),i.Ub(9,"div",9),i.Ub(10,"span",10),i.Lc(11,"\xa0"),i.Tb(),i.kc(12),i.Tb(),i.Tb()),2&t){const t=i.uc(1);i.Eb("for",e.inputId),i.Db(5),i.mc("id",e.inputId)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("required",e.required),i.Eb("name",e.name)("value",e.value)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby)("aria-describedby",e.ariaDescribedby),i.Db(2),i.mc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.qc(18,XP)),i.Db(2),i.Gb("mat-radio-label-before","before"==e.labelPosition)}},directives:[ch],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),t})(),hE=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[lh,Ed],Ed]}),t})();const pE=["thumbContainer"],mE=["toggleBar"],fE=["input"],bE=function(){return{enterDuration:150}},gE=["*"],_E=new i.s("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let vE=0;const yE={provide:Ta,useExisting:Object(i.X)(()=>OE),multi:!0};class wE{constructor(t,e){this.source=t,this.checked=e}}class CE{constructor(t){this._elementRef=t}}const xE=Ud(Id(Md(Ad(CE)),"accent"));let OE=(()=>{class t extends xE{constructor(t,e,n,r,o,s){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this.defaults=o,this._animationMode=s,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++vE,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.o,this.toggleChange=new i.o,this.tabIndex=parseInt(r)||0}get required(){return this._required}set required(t){this._required=Lu(t)}get checked(){return this._checked}set checked(t){this._checked=Lu(t),this._changeDetectorRef.markForCheck()}get inputId(){return(this.id||this._uniqueId)+"-input"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new wE(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(hd),i.Ob(i.h),i.Zb("tabindex"),i.Ob(_E),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(i.Qc(pE,!0),i.Qc(mE,!0),i.Qc(fE,!0)),2&t&&(i.tc(n=i.dc())&&(e._thumbEl=n.first),i.tc(n=i.dc())&&(e._thumbBarEl=n.first),i.tc(n=i.dc())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(i.Xb("id",e.id),i.Eb("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),i.Gb("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[i.Cb([yE]),i.Ab],ngContentSelectors:gE,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(i.lc(),i.Ub(0,"label",0,1),i.Ub(2,"div",2,3),i.Ub(4,"input",4,5),i.cc("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),i.Tb(),i.Ub(6,"div",6,7),i.Pb(8,"div",8),i.Ub(9,"div",9),i.Pb(10,"div",10),i.Tb(),i.Tb(),i.Tb(),i.Ub(11,"span",11,12),i.cc("cdkObserveContent",(function(){return e._onLabelTextChange()})),i.Ub(13,"span",13),i.Lc(14,"\xa0"),i.Tb(),i.kc(15),i.Tb(),i.Tb()),2&t){const t=i.uc(1),n=i.uc(12);i.Eb("for",e.inputId),i.Db(2),i.Gb("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),i.Db(2),i.mc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),i.Eb("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),i.Db(5),i.mc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.qc(17,bE))}},directives:[ch,qu],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})();const SE={provide:Ba,useExisting:Object(i.X)(()=>TE),multi:!0};let TE=(()=>{class t extends rl{}return t.\u0275fac=function(e){return DE(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[i.Cb([SE]),i.Ab]}),t})();const DE=i.Wb(TE);let kE=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)}}),t})(),PE=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[kE,lh,Ed,Hu],kE,Ed]}),t})();const EE=["sliderWrapper"],AE=Tu({passive:!1}),IE={provide:Ta,useExisting:Object(i.X)(()=>RE),multi:!0};class ME{}class UE{constructor(t){this._elementRef=t}}const LE=Ud(Id(Ad(UE),"accent"));let RE=(()=>{class t extends LE{constructor(t,e,n,r,o,s,a,c){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this._dir=r,this._ngZone=s,this._animationMode=c,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new i.o,this.input=new i.o,this.valueChange=new i.o,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=Ir.a.EMPTY,this._pointerDown=t=>{this.disabled||this._isSliding||!NE(t)&&0!==t.button||this._ngZone.run(()=>{const e=this.value,n=FE(t);this._isSliding=!0,this._lastPointerEvent=t,t.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(t),this._focusHostElement(),this._updateValueFromPosition(n),this._valueOnSlideStart=this.value,this._pointerPositionOnStart=n,e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())})},this._pointerMove=t=>{if(this._isSliding){t.preventDefault();const e=this.value;this._lastPointerEvent=t,this._updateValueFromPosition(FE(t)),e!=this.value&&this._emitInputEvent()}},this._pointerUp=t=>{if(this._isSliding){const e=this._pointerPositionOnStart,n=FE(t);t.preventDefault(),this._removeGlobalEvents(),this._valueOnSlideStart=this._pointerPositionOnStart=this._lastPointerEvent=null,this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||!e||e.x===n.x&&e.y===n.y||this._emitChangeEvent()}},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=a,this.tabIndex=parseInt(o)||0,s.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mousedown",this._pointerDown,AE),e.addEventListener("touchstart",this._pointerDown,AE)})}get invert(){return this._invert}set invert(t){this._invert=Lu(t)}get max(){return this._max}set max(t){this._max=Ru(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(t){this._min=Ru(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(t){this._step=Ru(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(t){this._thumbLabel=Lu(t)}get tickInterval(){return this._tickInterval}set tickInterval(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?Ru(t,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(t){if(t!==this._value){let e=Ru(t);this._roundToDecimal&&(e=parseFloat(e.toFixed(this._roundToDecimal))),this._value=e,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(t){this._vertical=Lu(t)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(t){this._focusHostElement(t)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const t=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${t})`}}_getTrackFillStyles(){const t=this.percent,e=this.vertical?`1, ${t}, 1`:t+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${e})`,display:0===t?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?`2px ${t}%`:t+"% 2px",transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${t/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const t=this._shouldInvertAxis();let n;n=this.vertical?t?"Bottom":"Top":t?"Right":"Left",e["padding"+n]=this._getThumbGap()+"px"}return e}_getThumbContainerStyles(){const t=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?t:!t)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const t=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?t:!t}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{this._isActive=!!t&&"keyboard"!==t,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mousedown",this._pointerDown,AE),t.removeEventListener("touchstart",this._pointerDown,AE),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(t){if(this.disabled||Pu(t))return;const e=this.value;switch(t.keyCode){case 33:this._increment(10);break;case 34:this._increment(-10);break;case 35:this.value=this.max;break;case 36:this.value=this.min;break;case 37:this._increment("rtl"==this._getDirection()?1:-1);break;case 38:this._increment(1);break;case 39:this._increment("rtl"==this._getDirection()?-1:1);break;case 40:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}_onKeyup(){this._isSliding=!1}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(t){const e=this._document,n=NE(t),i=n?"touchend":"mouseup";e.addEventListener(n?"touchmove":"mousemove",this._pointerMove,AE),e.addEventListener(i,this._pointerUp,AE),n&&e.addEventListener("touchcancel",this._pointerUp,AE);const r=this._getWindow();void 0!==r&&r&&r.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const t=this._document;t.removeEventListener("mousemove",this._pointerMove,AE),t.removeEventListener("mouseup",this._pointerUp,AE),t.removeEventListener("touchmove",this._pointerMove,AE),t.removeEventListener("touchend",this._pointerUp,AE),t.removeEventListener("touchcancel",this._pointerUp,AE);const e=this._getWindow();void 0!==e&&e&&e.removeEventListener("blur",this._windowBlur)}_increment(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)}_updateValueFromPosition(t){if(!this._sliderDimensions)return;let e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{const t=this._calculateValue(e),n=Math.round((t-this.min)/this.step)*this.step+this.min;this.value=this._clamp(n,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(30/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(t=this.value){let e=new ME;return e.source=this,e.value=t,e}_calculatePercentage(t){return((t||0)-this.min)/(this.max-this.min)}_calculateValue(t){return this.min+t*(this.max-this.min)}_clamp(t,e=0,n=1){return Math.max(e,Math.min(t,n))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(t){this._elementRef.nativeElement.focus(t)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(t){this.value=t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(hd),i.Ob(i.h),i.Ob(_d,8),i.Zb("tabindex"),i.Ob(i.B),i.Ob(o.e),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-slider"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EE,!0),2&t&&i.tc(n=i.dc())&&(e._sliderWrapper=n.first)},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:28,hostBindings:function(t,e){1&t&&i.cc("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)}))("keyup",(function(){return e._onKeyup()}))("mouseenter",(function(){return e._onMouseenter()}))("selectstart",(function(t){return t.preventDefault()})),2&t&&(i.Xb("tabIndex",e.tabIndex),i.Eb("aria-disabled",e.disabled)("aria-valuemax",e.max)("aria-valuemin",e.min)("aria-valuenow",e.value)("aria-orientation",e.vertical?"vertical":"horizontal"),i.Gb("mat-slider-disabled",e.disabled)("mat-slider-has-ticks",e.tickInterval)("mat-slider-horizontal",!e.vertical)("mat-slider-axis-inverted",e._shouldInvertAxis())("mat-slider-invert-mouse-coords",e._shouldInvertMouseCoords())("mat-slider-sliding",e._isSliding)("mat-slider-thumb-label-showing",e.thumbLabel)("mat-slider-vertical",e.vertical)("mat-slider-min-value",e._isMinValue())("mat-slider-hide-last-tick",e.disabled||e._isMinValue()&&e._getThumbGap()&&e._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",value:"value",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",vertical:"vertical",displayWith:"displayWith"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[i.Cb([IE]),i.Ab],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(t,e){1&t&&(i.Ub(0,"div",0,1),i.Ub(2,"div",2),i.Pb(3,"div",3),i.Pb(4,"div",4),i.Tb(),i.Ub(5,"div",5),i.Pb(6,"div",6),i.Tb(),i.Ub(7,"div",7),i.Pb(8,"div",8),i.Pb(9,"div",9),i.Ub(10,"div",10),i.Ub(11,"span",11),i.Lc(12),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("ngStyle",e._getTrackBackgroundStyles()),i.Db(1),i.mc("ngStyle",e._getTrackFillStyles()),i.Db(1),i.mc("ngStyle",e._getTicksContainerStyles()),i.Db(1),i.mc("ngStyle",e._getTicksStyles()),i.Db(1),i.mc("ngStyle",e._getThumbContainerStyles()),i.Db(5),i.Mc(e.displayValue))},directives:[o.w],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),t})();function NE(t){return"t"===t.type[0]}function FE(t){const e=NE(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.clientX,y:e.clientY}}let VE=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,Ed],Ed]}),t})();function jE(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",1),i.Ub(1,"button",2),i.cc("click",(function(){return i.yc(t),i.gc().action()})),i.Lc(2),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.Db(2),i.Mc(t.data.action)}}function BE(t,e){}const zE=new i.s("MatSnackBarData");class qE{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const HE=Math.pow(2,31)-1;class GE{constructor(t,e){this._overlayRef=e,this._afterDismissed=new lr.a,this._afterOpened=new lr.a,this._onAction=new lr.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,HE))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed.asObservable()}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction.asObservable()}}let JE=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(GE),i.Ob(zE))},t.\u0275cmp=i.Ib({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1),i.Tb(),i.Jc(2,jE,3,1,"div",0)),2&t&&(i.Db(1),i.Mc(e.data.message),i.Db(1),i.mc("ngIf",e.hasAction))},directives:[o.t,zm],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const YE={snackBarState:It("state",[Nt("void, hidden",Rt({transform:"scale(0.8)",opacity:0})),Nt("visible",Rt({transform:"scale(1)",opacity:1})),Vt("* => visible",Mt("150ms cubic-bezier(0, 0, 0.2, 1)")),Vt("* => void, * => hidden",Mt("75ms cubic-bezier(0.4, 0.0, 1, 1)",Rt({opacity:0})))])};let $E=(()=>{class t extends ef{constructor(t,e,n,i){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this.snackBarConfig=i,this._destroyed=!1,this._onExit=new lr.a,this._onEnter=new lr.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==i.politeness||i.announcementMessage?"off"===i.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.asObservable().pipe(li(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.B),i.Ob(i.l),i.Ob(i.h),i.Ob(qE))},t.\u0275cmp=i.Ib({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&i.Fc(of,!0),2&t&&i.tc(n=i.dc())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&i.Hc("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(i.Eb("role",e._role),i.Ic("@state",e._animationState))},features:[i.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&i.Jc(0,BE,0,0,"ng-template",0)},directives:[of],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[YE.snackBarState]}}),t})(),WE=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[ub,cf,o.c,Hm,Ed],Ed]}),t})();const KE=new i.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new qE}});let QE=(()=>{class t{constructor(t,e,n,i,r,o){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=JE,this.snackBarContainerComponent=$E,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=new lf(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[qE,e]])),i=new Xm(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new qE),this._defaultConfig),e),r=this._createOverlay(n),o=this._attachSnackBarContainer(r,n),s=new GE(o,r);if(t instanceof i.N){const e=new Zm(t,null,{$implicit:n.data,snackBarRef:s});s.instance=o.attachTemplatePortal(e)}else{const e=this._createInjector(n,s),i=new Xm(t,void 0,e),r=o.attachComponentPortal(i);s.instance=r.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(Vh(r.detachments())).subscribe(t=>{const e=r.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),this._animateSnackBar(s,n),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new Vf;e.direction=t.direction;let n=this._overlay.position().global();const i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return new lf(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[GE,e],[zE,t.data]]))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(rb),i.Yb(ad),i.Yb(i.t),i.Yb(Mx),i.Yb(t,12),i.Yb(KE))},t.\u0275prov=Object(i.Kb)({factory:function(){return new t(Object(i.Yb)(rb),Object(i.Yb)(ad),Object(i.Yb)(i.p),Object(i.Yb)(Mx),Object(i.Yb)(t,12),Object(i.Yb)(KE))},token:t,providedIn:WE}),t})();const XE=["mat-sort-header",""];function ZE(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",3),i.cc("@arrowPosition.start",(function(){return i.yc(t),i.gc()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return i.yc(t),i.gc()._disableViewStateAnimation=!1})),i.Pb(1,"div",4),i.Ub(2,"div",5),i.Pb(3,"div",6),i.Pb(4,"div",7),i.Pb(5,"div",8),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.mc("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),i.Db(2),i.mc("@indicator",t._getArrowDirectionState()),i.Db(1),i.mc("@leftPointer",t._getArrowDirectionState()),i.Db(1),i.mc("@rightPointer",t._getArrowDirectionState())}}const tA=["*"];class eA{}const nA=Rd(Ad(eA));let iA=(()=>{class t extends nA{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new lr.a,this.start="asc",this._direction="",this.sortChange=new i.o}get direction(){return this._direction}set direction(t){if(Object(i.Z)()&&t&&"asc"!==t&&"desc"!==t)throw function(t){return Error(t+" is not a valid sort direction ('asc' or 'desc').")}(t);this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Lu(t)}register(t){if(!t.id)throw Error("MatSortHeader must be provided with a unique id.");if(this.sortables.has(t.id))throw Error(`Cannot have two MatSortables with the same id (${t.id}).`);this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return rA(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.Ab,i.Bb]}),t})();const rA=i.Wb(iA),oA=Dd.ENTERING+" "+Td.STANDARD_CURVE,sA={indicator:It("indicator",[Nt("active-asc, asc",Rt({transform:"translateY(0px)"})),Nt("active-desc, desc",Rt({transform:"translateY(10px)"})),Vt("active-asc <=> active-desc",Mt(oA))]),leftPointer:It("leftPointer",[Nt("active-asc, asc",Rt({transform:"rotate(-45deg)"})),Nt("active-desc, desc",Rt({transform:"rotate(45deg)"})),Vt("active-asc <=> active-desc",Mt(oA))]),rightPointer:It("rightPointer",[Nt("active-asc, asc",Rt({transform:"rotate(45deg)"})),Nt("active-desc, desc",Rt({transform:"rotate(-45deg)"})),Vt("active-asc <=> active-desc",Mt(oA))]),arrowOpacity:It("arrowOpacity",[Nt("desc-to-active, asc-to-active, active",Rt({opacity:1})),Nt("desc-to-hint, asc-to-hint, hint",Rt({opacity:.54})),Nt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Rt({opacity:0})),Vt("* => asc, * => desc, * => active, * => hint, * => void",Mt("0ms")),Vt("* <=> *",Mt(oA))]),arrowPosition:It("arrowPosition",[Vt("* => desc-to-hint, * => desc-to-active",Mt(oA,Ft([Rt({transform:"translateY(-25%)"}),Rt({transform:"translateY(0)"})]))),Vt("* => hint-to-desc, * => active-to-desc",Mt(oA,Ft([Rt({transform:"translateY(0)"}),Rt({transform:"translateY(25%)"})]))),Vt("* => asc-to-hint, * => asc-to-active",Mt(oA,Ft([Rt({transform:"translateY(25%)"}),Rt({transform:"translateY(0)"})]))),Vt("* => hint-to-asc, * => active-to-asc",Mt(oA,Ft([Rt({transform:"translateY(0)"}),Rt({transform:"translateY(-25%)"})]))),Nt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Rt({transform:"translateY(0)"})),Nt("hint-to-desc, active-to-desc, desc",Rt({transform:"translateY(-25%)"})),Nt("hint-to-asc, active-to-asc, asc",Rt({transform:"translateY(25%)"}))]),allowChildren:It("allowChildren",[Vt("* <=> *",[Bt("@*",jt(),{optional:!0})])])};let aA=(()=>{class t{constructor(){this.changes=new lr.a,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Kb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const cA={provide:aA,deps:[[new i.C,new i.L,aA]],useFactory:function(t){return t||new aA}};class lA{}const uA=Ad(lA);let dA=(()=>{class t extends uA{constructor(t,e,n,i,r,o){if(super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=r,this._elementRef=o,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",!n)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");this._rerenderSubscription=Object(ii.a)(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Lu(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(aA),i.Ob(i.h),i.Ob(iA,8),i.Ob("MAT_SORT_HEADER_COLUMN_DEF",8),i.Ob(hd),i.Ob(i.l))},t.\u0275cmp=i.Ib({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&i.cc("click",(function(){return e._handleClick()}))("keydown",(function(t){return e._handleKeydown(t)}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(i.Eb("aria-sort",e._getAriaSortAttribute()),i.Gb("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[i.Ab],attrs:XE,ngContentSelectors:tA,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0),i.Ub(1,"div",1),i.kc(2),i.Tb(),i.Jc(3,ZE,6,6,"div",2),i.Tb()),2&t&&(i.Gb("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),i.Eb("tabindex",e._isDisabled()?null:0),i.Db(3),i.mc("ngIf",e._renderArrow()))},directives:[o.t],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[sA.indicator,sA.leftPointer,sA.rightPointer,sA.arrowOpacity,sA.arrowPosition,sA.allowChildren]},changeDetection:0}),t})(),hA=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[cA],imports:[[o.c]]}),t})();function pA(t,e){1&t&&i.kc(0)}const mA=["*"];function fA(t,e){}const bA=function(t){return{animationDuration:t}},gA=function(t,e){return{value:t,params:e}},_A=["tabBodyWrapper"],vA=["tabHeader"];function yA(t,e){}function wA(t,e){if(1&t&&i.Jc(0,yA,0,0,"ng-template",9),2&t){const t=i.gc().$implicit;i.mc("cdkPortalOutlet",t.templateLabel)}}function CA(t,e){if(1&t&&i.Lc(0),2&t){const t=i.gc().$implicit;i.Mc(t.textLabel)}}function xA(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",6),i.cc("click",(function(){i.yc(t);const n=e.$implicit,r=e.index,o=i.gc(),s=i.uc(1);return o._handleClick(n,s,r)})),i.Ub(1,"div",7),i.Jc(2,wA,1,1,"ng-template",8),i.Jc(3,CA,1,1,"ng-template",8),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=e.index,r=i.gc();i.Gb("mat-tab-label-active",r.selectedIndex==n),i.mc("id",r._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||r.disableRipple),i.Eb("tabIndex",r._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),i.Db(2),i.mc("ngIf",t.templateLabel),i.Db(1),i.mc("ngIf",!t.templateLabel)}}function OA(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-tab-body",10),i.cc("_onCentered",(function(){return i.yc(t),i.gc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return i.yc(t),i.gc()._setTabBodyWrapperHeight(e)})),i.Tb()}if(2&t){const t=e.$implicit,n=e.index,r=i.gc();i.Gb("mat-tab-body-active",r.selectedIndex==n),i.mc("id",r._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",r.animationDuration),i.Eb("aria-labelledby",r._getTabLabelId(n))}}const SA=["tabListContainer"],TA=["tabList"],DA=["nextPaginator"],kA=["previousPaginator"],PA=["mat-tab-nav-bar",""],EA=new i.s("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let AA=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B),i.Ob(EA),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const IA=new i.s("MatTabContent");let MA=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","matTabContent",""]],features:[i.Cb([{provide:IA,useExisting:t}])]}),t})();const UA=new i.s("MatTabLabel");let LA=(()=>{class t extends rf{}return t.\u0275fac=function(e){return RA(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i.Cb([{provide:UA,useExisting:t}]),i.Ab]}),t})();const RA=i.Wb(LA);class NA{}const FA=Ad(NA),VA=new i.s("MAT_TAB_GROUP");let jA=(()=>{class t extends FA{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new lr.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){t&&(this._templateLabel=t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Zm(this._explicitContent||this._implicitContent,this._viewContainerRef)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(VA,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var r;1&t&&(i.Hb(n,UA,!0),i.Ec(n,IA,!0,i.N)),2&t&&(i.tc(r=i.dc())&&(e.templateLabel=r.first),i.tc(r=i.dc())&&(e._explicitContent=r.first))},viewQuery:function(t,e){var n;1&t&&i.Fc(i.N,!0),2&t&&i.tc(n=i.dc())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[i.Ab,i.Bb],ngContentSelectors:mA,decls:1,vars:0,template:function(t,e){1&t&&(i.lc(),i.Jc(0,pA,1,0,"ng-template"))},encapsulation:2}),t})();const BA={translateTab:It("translateTab",[Nt("center, void, left-origin-center, right-origin-center",Rt({transform:"none"})),Nt("left",Rt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Nt("right",Rt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Vt("* => left, * => right, left => center, right => center",Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Vt("void => left-origin-center",[Rt({transform:"translate3d(-100%, 0, 0)"}),Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Vt("void => right-origin-center",[Rt({transform:"translate3d(100%, 0, 0)"}),Mt("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let zA=(()=>{class t extends of{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=Ir.a.EMPTY,this._leavingSub=Ir.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Pr(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.j),i.Ob(i.S),i.Ob(Object(i.X)(()=>HA)),i.Ob(o.e))},t.\u0275dir=i.Jb({type:t,selectors:[["","matTabBodyHost",""]],features:[i.Ab]}),t})(),qA=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=Ir.a.EMPTY,this._translateTabComplete=new lr.a,this._onCentering=new i.o,this._beforeCentering=new i.o,this._afterLeavingCenter=new i.o,this._onCentered=new i.o(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(df((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(_d,8),i.Ob(i.h))},t.\u0275dir=i.Jb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),HA=(()=>{class t extends qA{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(_d,8),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&i.Qc(sf,!0),2&t&&i.tc(n=i.dc())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[i.Ab],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0,1),i.cc("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),i.Jc(2,fA,0,0,"ng-template",2),i.Tb()),2&t&&i.mc("@translateTab",i.sc(3,gA,e._position,i.rc(1,bA,e.animationDuration)))},directives:[zA],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[BA.translateTab]}}),t})();const GA=new i.s("MAT_TABS_CONFIG");let JA=0;class YA{}class $A{constructor(t){this._elementRef=t}}const WA=Id(Md($A),"primary");let KA=(()=>{class t extends WA{constructor(t,e,n,r){super(t),this._changeDetectorRef=e,this._animationMode=r,this._tabs=new i.F,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=Ir.a.EMPTY,this._tabLabelSubscription=Ir.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new i.o,this.focusChange=new i.o,this.animationDone=new i.o,this.selectedTabChange=new i.o(!0),this._groupId=JA++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Lu(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Ru(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e<t.length;e++)if(t[e].isActive){this._indexToSelect=this._selectedIndex=e;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(Pr(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new YA;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(ii.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(GA,8),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.Ab]}),t})(),QA=(()=>{class t extends KA{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(GA,8),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,jA,!0),2&t&&i.tc(r=i.dc())&&(e._allTabs=r)},viewQuery:function(t,e){var n;1&t&&(i.Qc(_A,!0),i.Qc(vA,!0)),2&t&&(i.tc(n=i.dc())&&(e._tabBodyWrapper=n.first),i.tc(n=i.dc())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&i.Gb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[i.Cb([{provide:VA,useExisting:t}]),i.Ab],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(i.Ub(0,"mat-tab-header",0,1),i.cc("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),i.Jc(2,xA,4,14,"div",2),i.Tb(),i.Ub(3,"div",3,4),i.Jc(5,OA,1,8,"mat-tab-body",5),i.Tb()),2&t&&(i.mc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),i.Db(2),i.mc("ngForOf",e._tabs),i.Db(1),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),i.Db(2),i.mc("ngForOf",e._tabs))},directives:function(){return[rI,o.s,tI,ch,md,o.t,of,HA]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class XA{}const ZA=Ad(XA);let tI=(()=>{class t extends ZA{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(i.Eb("aria-disabled",!!e.disabled),i.Gb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[i.Ab]}),t})();const eI=Tu({passive:!0});let nI=(()=>{class t{constructor(t,e,n,r,o,s,a){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=r,this._ngZone=o,this._platform=s,this._animationMode=a,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new lr.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new lr.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.o,this.indexFocused=new i.o,o.runOutsideAngular(()=>{Fh(t.nativeElement,"mouseleave").pipe(Vh(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Ru(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Fh(this._previousPaginator.nativeElement,"touchstart",eI).pipe(Vh(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Fh(this._nextPaginator.nativeElement,"touchstart",eI).pipe(Vh(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(s.a)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Xu(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(ii.a)(t,e,this._items.changes).pipe(Vh(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Vh(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Pu(t))switch(t.keyCode){case 36:this._keyManager.setFirstItemActive(),t.preventDefault();break;case 35:this._keyManager.setLastItemActive(),t.preventDefault();break;case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,n="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:r}=e.elementRef.nativeElement;let o,s;"ltr"==this._getLayoutDirection()?(o=i,s=o+r):(s=this._tabList.nativeElement.offsetWidth-i,o=s-r);const a=this.scrollDistance,c=this.scrollDistance+n;o<a?this.scrollDistance-=a-o+60:s>c&&(this.scrollDistance+=s-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),gf(650,100).pipe(Vh(Object(ii.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(Tf),i.Ob(_d,8),i.Ob(i.B),i.Ob(vu),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),iI=(()=>{class t extends nI{constructor(t,e,n,i,r,o,s){super(t,e,n,i,r,o,s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Lu(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(Tf),i.Ob(_d,8),i.Ob(i.B),i.Ob(vu),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,inputs:{disableRipple:"disableRipple"},features:[i.Ab]}),t})(),rI=(()=>{class t extends iI{constructor(t,e,n,i,r,o,s){super(t,e,n,i,r,o,s)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.h),i.Ob(Tf),i.Ob(_d,8),i.Ob(i.B),i.Ob(vu),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,tI,!1),2&t&&i.tc(r=i.dc())&&(e._items=r)},viewQuery:function(t,e){var n;1&t&&(i.Fc(AA,!0),i.Fc(SA,!0),i.Fc(TA,!0),i.Qc(DA,!0),i.Qc(kA,!0)),2&t&&(i.tc(n=i.dc())&&(e._inkBar=n.first),i.tc(n=i.dc())&&(e._tabListContainer=n.first),i.tc(n=i.dc())&&(e._tabList=n.first),i.tc(n=i.dc())&&(e._nextPaginator=n.first),i.tc(n=i.dc())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&i.Gb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.Ab],ngContentSelectors:mA,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0,1),i.cc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),i.Pb(2,"div",2),i.Tb(),i.Ub(3,"div",3,4),i.cc("keydown",(function(t){return e._handleKeydown(t)})),i.Ub(5,"div",5,6),i.cc("cdkObserveContent",(function(){return e._onContentChanges()})),i.Ub(7,"div",7),i.kc(8),i.Tb(),i.Pb(9,"mat-ink-bar"),i.Tb(),i.Tb(),i.Ub(10,"div",8,9),i.cc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),i.Pb(12,"div",2),i.Tb()),2&t&&(i.Gb("mat-tab-header-pagination-disabled",e._disableScrollBefore),i.mc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),i.Db(5),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),i.Db(5),i.Gb("mat-tab-header-pagination-disabled",e._disableScrollAfter),i.mc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[ch,qu,AA],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),oI=(()=>{class t extends nI{constructor(t,e,n,i,r,o,s){super(t,i,r,e,n,o,s),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement.classList;e.remove("mat-background-"+this.backgroundColor),t&&e.add("mat-background-"+t),this._backgroundColor=t}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Lu(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(Pr(null),Vh(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(t){if(!this._items)return;const e=this._items.toArray();for(let n=0;n<e.length;n++)if(e[n].active)return this.selectedIndex=n,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(_d,8),i.Ob(i.B),i.Ob(i.h),i.Ob(Tf),i.Ob(vu,8),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[i.Ab]}),t})(),sI=(()=>{class t extends oI{constructor(t,e,n,i,r,o,s){super(t,e,n,i,r,o,s)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(_d,8),i.Ob(i.B),i.Ob(i.h),i.Ob(Tf),i.Ob(vu,8),i.Ob(ti,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,uI,!0),2&t&&i.tc(r=i.dc())&&(e._items=r)},viewQuery:function(t,e){var n;1&t&&(i.Fc(AA,!0),i.Fc(SA,!0),i.Fc(TA,!0),i.Qc(DA,!0),i.Qc(kA,!0)),2&t&&(i.tc(n=i.dc())&&(e._inkBar=n.first),i.tc(n=i.dc())&&(e._tabListContainer=n.first),i.tc(n=i.dc())&&(e._tabList=n.first),i.tc(n=i.dc())&&(e._nextPaginator=n.first),i.tc(n=i.dc())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&i.Gb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())("mat-primary","warn"!==e.color&&"accent"!==e.color)("mat-accent","accent"===e.color)("mat-warn","warn"===e.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[i.Ab],attrs:PA,ngContentSelectors:mA,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(i.lc(),i.Ub(0,"div",0,1),i.cc("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),i.Pb(2,"div",2),i.Tb(),i.Ub(3,"div",3,4),i.cc("keydown",(function(t){return e._handleKeydown(t)})),i.Ub(5,"div",5,6),i.cc("cdkObserveContent",(function(){return e._onContentChanges()})),i.Ub(7,"div",7),i.kc(8),i.Tb(),i.Pb(9,"mat-ink-bar"),i.Tb(),i.Tb(),i.Ub(10,"div",8,9),i.cc("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),i.Pb(12,"div",2),i.Tb()),2&t&&(i.Gb("mat-tab-header-pagination-disabled",e._disableScrollBefore),i.mc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),i.Db(5),i.Gb("_mat-animation-noopable","NoopAnimations"===e._animationMode),i.Db(5),i.Gb("mat-tab-header-pagination-disabled",e._disableScrollAfter),i.mc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[ch,qu,AA],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),t})();class aI{}const cI=Ud(Md(Ad(aI)));let lI=(()=>{class t extends cI{constructor(t,e,n,i,r,o){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=r,this._isActive=!1,this.rippleConfig=n||{},this.tabIndex=parseInt(i)||0,"NoopAnimations"===o&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(oI),i.Ob(i.l),i.Ob(ah,8),i.Zb("tabindex"),i.Ob(hd),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,inputs:{active:"active"},features:[i.Ab]}),t})(),uI=(()=>{class t extends lI{constructor(t,e,n,i,r,o,s,a){super(t,e,r,o,s,a),this._tabLinkRipple=new sh(this,n,e,i),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(sI),i.Ob(i.l),i.Ob(i.B),i.Ob(vu),i.Ob(ah,8),i.Zb("tabindex"),i.Ob(hd),i.Ob(ti,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Eb("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),i.Gb("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[i.Ab]}),t})(),dI=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,Ed,cf,lh,Hu,bd],Ed]}),t})();const hI=new i.s("CDK_TREE_NODE_OUTLET_NODE");let pI=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(hI,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class mI{constructor(t){this.$implicit=t}}let fI=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.N))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})();function bI(){return Error("Could not find functions for nested/flat tree in tree control.")}let gI=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new lr.a,this._levels=new Map,this.viewChange=new dr({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){if(this._dataDiffer=this._differs.find([]).create(this.trackBy),!this.treeControl)throw Error("Could not find a tree control for the tree.")}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const t=this._nodeDefs.filter(t=>!t.when);if(t.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultNodeDef=t[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(t){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),t||this._nodeOutlet.viewContainer.clear(),this._dataSource=t,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let t;if(wf(this._dataSource)?t=this._dataSource.connect(this):uf(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Object(s.a)(this._dataSource)),!t)throw Error("A valid data source must be provided.");this._dataSubscription=t.pipe(Vh(this._onDestroy)).subscribe(t=>this.renderNodeChanges(t))}renderNodeChanges(t,e=this._dataDiffer,n=this._nodeOutlet.viewContainer,i){const r=e.diff(t);r&&(r.forEachOperation((e,r,o)=>{if(null==e.previousIndex)this.insertNode(t[o],o,n,i);else if(null==o)n.remove(r),this._levels.delete(e.item);else{const t=n.get(r);n.move(t,o)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){if(1===this._nodeDefs.length)return this._nodeDefs.first;const n=this._nodeDefs.find(n=>n.when&&n.when(e,t))||this._defaultNodeDef;if(!n)throw Error("Could not find a matching node definition for the provided node data.");return n}insertNode(t,e,n,i){const r=this._getNodeDef(t,e),o=new mI(t);o.level=this.treeControl.getLevel?this.treeControl.getLevel(t):void 0!==i&&this._levels.has(i)?this._levels.get(i)+1:0,this._levels.set(t,o.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,o,e),_I.mostRecentTreeNode&&(_I.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.u),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,fI,!0),2&t&&i.tc(r=i.dc())&&(e._nodeDefs=r)},viewQuery:function(t,e){var n;1&t&&i.Fc(pI,!0),2&t&&i.tc(n=i.dc())&&(e._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[pI],encapsulation:2}),t})(),_I=(()=>{class t{constructor(e,n){this._elementRef=e,this._tree=n,this._destroyed=new lr.a,this._dataChanges=new lr.a,this.role="treeitem",t.mostRecentTreeNode=this}get data(){return this._data}set data(t){t!==this._data&&(this._data=t,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):0}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){if(!this._tree.treeControl.isExpandable&&!this._tree.treeControl.getChildren)throw bI();this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(gI))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:3,hostBindings:function(t,e){2&t&&i.Eb("aria-expanded",e.isExpanded)("aria-level",e.level+1)("role",e.role)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})(),vI=(()=>{class t extends _I{constructor(t,e,n){super(t,e),this._elementRef=t,this._tree=e,this._differs=n}ngAfterContentInit(){if(this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),!this._tree.treeControl.getChildren)throw bI();const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):uf(t)&&t.pipe(Vh(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe(Vh(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(t){const e=this._getNodeOutlet();t&&(this._children=t),e&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,e.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const t=this._getNodeOutlet();t&&(t.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const t=this.nodeOutlet;return t&&t.find(t=>!t._node||t._node===this)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(gI),i.Ob(i.u))},t.\u0275dir=i.Jb({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,pI,!0),2&t&&i.tc(r=i.dc())&&(e.nodeOutlet=r)},hostAttrs:[1,"cdk-tree-node","cdk-nested-tree-node"],hostVars:2,hostBindings:function(t,e){2&t&&i.Eb("aria-expanded",e.isExpanded)("role",e.role)},exportAs:["cdkNestedTreeNode"],features:[i.Cb([{provide:_I,useExisting:t},{provide:hI,useExisting:t}]),i.Ab]}),t})();const yI=/([A-Za-z%]+)$/;let wI=(()=>{class t{constructor(t,e,n,i,r){this._treeNode=t,this._tree=e,this._element=i,this._dir=r,this._destroyed=new lr.a,this.indentUnits="px",this._indent=40,this._setPadding(),r&&r.change.pipe(Vh(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._level=Ru(t,null),this._setPadding()}get indent(){return this._indent}set indent(t){let e=t,n="px";if("string"==typeof t){const i=t.split(yI);e=i[0],n=i[1]||n}this.indentUnits=n,this._indent=Ru(e),this._setPadding()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const t=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,e=null==this._level?t:this._level;return"number"==typeof e?`${e*this._indent}${this.indentUnits}`:null}_setPadding(t=!1){const e=this._paddingIndent();if(e!==this._currentPadding||t){const t=this._element.nativeElement,n=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",i="paddingLeft"===n?"paddingRight":"paddingLeft";t.style[n]=e||"",t.style[i]="",this._currentPadding=e}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(_I),i.Ob(gI),i.Ob(i.G),i.Ob(i.l),i.Ob(_d,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),CI=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=Lu(t)}_toggle(t){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(gI),i.Ob(_I))},t.\u0275dir=i.Jb({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&i.cc("click",(function(t){return e._toggle(t)}))},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),xI=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[hd,fI]}),t})();const OI=Ud(Ad(_I));let SI=(()=>{class t extends OI{constructor(t,e,n){super(t,e),this._elementRef=t,this._tree=e,this.role="treeitem",this.tabIndex=Number(n)||0}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(gI),i.Zb("tabindex"))},t.\u0275dir=i.Jb({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:3,hostBindings:function(t,e){2&t&&i.Eb("aria-expanded",e.isExpanded)("aria-level",e.level+1)("role",e.role)},inputs:{disabled:"disabled",tabIndex:"tabIndex",role:"role"},exportAs:["matTreeNode"],features:[i.Cb([{provide:_I,useExisting:t}]),i.Ab]}),t})(),TI=(()=>{class t extends fI{}return t.\u0275fac=function(e){return DI(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[i.Cb([{provide:fI,useExisting:t}]),i.Ab]}),t})();const DI=i.Wb(TI);let kI=(()=>{class t extends vI{constructor(t,e,n,i){super(t,e,n),this._elementRef=t,this._tree=e,this._differs=n,this._disabled=!1,this.tabIndex=Number(i)||0}get disabled(){return this._disabled}set disabled(t){this._disabled=Lu(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(gI),i.Ob(i.u),i.Zb("tabindex"))},t.\u0275dir=i.Jb({type:t,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],hostVars:2,hostBindings:function(t,e){2&t&&i.Eb("aria-expanded",e.isExpanded)("role",e.role)},inputs:{tabIndex:"tabIndex",disabled:"disabled",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[i.Cb([{provide:vI,useExisting:t},{provide:_I,useExisting:t},{provide:hI,useExisting:t}]),i.Ab]}),t})(),PI=(()=>{class t extends wI{}return t.\u0275fac=function(e){return EI(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:["matTreeNodePadding","level"],indent:["matTreeNodePaddingIndent","indent"]},features:[i.Cb([{provide:wI,useExisting:t}]),i.Ab]}),t})();const EI=i.Wb(PI);let AI=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.S),i.Ob(hI,8))},t.\u0275dir=i.Jb({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[i.Cb([{provide:pI,useExisting:t}])]}),t})(),II=(()=>{class t extends gI{}return t.\u0275fac=function(e){return MI(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){var n;1&t&&i.Fc(AI,!0),2&t&&i.tc(n=i.dc())&&(e._nodeOutlet=n.first)},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[i.Cb([{provide:gI,useExisting:t}]),i.Ab],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&i.Qb(0,0)},directives:[AI],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),t})();const MI=i.Wb(II);let UI=(()=>{class t extends CI{constructor(){super(...arguments),this.recursive=!1}}return t.\u0275fac=function(e){return LI(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[i.Cb([{provide:CI,useExisting:t}]),i.Ab]}),t})();const LI=i.Wb(UI);let RI=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[xI,Ed],Ed]}),t})();function NI(t,e){if(1&t){const t=i.Vb();i.Ub(0,"input",3),i.cc("keydown",(function(e){return i.yc(t),i.gc(2).onKeyDown(e)}))("keyup",(function(n){i.yc(t);const r=e.index;return i.gc(2).onKeyUp(n,r)})),i.Tb()}if(2&t){const t=e.$implicit,n=e.index,r=i.gc(2);i.Fb("otp-input ",r.config.inputClass,""),i.pc("id","otp_",n,"_",r.componentKey,""),i.mc("pattern",r.config.allowNumbersOnly?"\\d*":"")("type",r.inputType)("placeholder",(null==r.config?null:r.config.placeholder)||"")("disabledNumberOnly",!r.config.allowNumbersOnly)("ngStyle",r.config.inputStyles)("formControl",r.otpForm.controls[t])}}function FI(t,e){if(1&t&&(i.Ub(0,"div",1),i.Jc(1,NI,1,11,"input",2),i.hc(2,"keys"),i.Tb()),2&t){const t=i.gc();i.Fb("wrapper ",t.config.containerClass,""),i.oc("id","c_",t.componentKey,""),i.mc("ngStyle",t.config.containerStyles),i.Db(1),i.mc("ngForOf",i.ic(2,6,null==t.otpForm?null:t.otpForm.controls))}}let VI=(()=>{class t{transform(t){return Object.keys(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Nb({name:"keys",type:t,pure:!0}),t})(),jI=(()=>{class t{constructor(t){this.keysPipe=t,this.config={length:4},this.onInputChange=new i.o,this.inputControls=new Array(this.config.length),this.componentKey=Math.random().toString(36).substring(2)+(new Date).getTime().toString(36)}ngOnInit(){this.otpForm=new Ec({});for(let t=0;t<this.config.length;t++)this.otpForm.addControl(this.getControlName(t),new Pc);this.inputType=this.getInputType()}ngAfterViewInit(){if(!this.config.disableAutoFocus){const t=document.getElementById("c_"+this.componentKey);if(t){t.addEventListener("paste",t=>this.handlePaste(t));const e=t.getElementsByClassName("otp-input")[0];e&&e.focus&&e.focus()}}}getControlName(t){return"ctrl_"+t}ifLeftArrow(t){return this.ifKeyCode(t,37)}ifRightArrow(t){return this.ifKeyCode(t,39)}ifBackspaceOrDelete(t){return"Backspace"===t.key||"Delete"===t.key||this.ifKeyCode(t,8)||this.ifKeyCode(t,46)}ifKeyCode(t,e){return(t.keyCode||t.charCode)==e}onKeyDown(t){if(this.ifKeyCode(t,32))return!1}onKeyUp(t,e){const n=this.appendKey("otp_"+(e+1)),i=this.appendKey("otp_"+(e-1));if(this.ifRightArrow(t))this.setSelected(n);else{if(!this.ifLeftArrow(t))return this.ifBackspaceOrDelete(t)&&!t.target.value?(this.setSelected(i),void this.rebuildValue()):void(t.target.value&&(this.ifValidEntry(t)&&this.setSelected(n),this.rebuildValue()));this.setSelected(i)}}appendKey(t){return`${t}_${this.componentKey}`}setSelected(t){this.focusTo(t);const e=document.getElementById(t);e&&e.setSelectionRange&&setTimeout(()=>{e.setSelectionRange(0,1)},0)}ifValidEntry(t){const e=String.fromCharCode(t.keyCode);return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)||/[a-zA-Z0-9-_]/.test(e)||this.config.allowKeyCodes&&this.config.allowKeyCodes.includes(t.keyCode)||t.keyCode>=96&&t.keyCode<=105}focusTo(t){const e=document.getElementById(t);e&&e.focus()}setValue(t){if(!this.config.allowNumbersOnly||!isNaN(t))if(this.otpForm.reset(),t){if(t=t.toString().replace(/\s/g,""),Array.from(t).forEach((t,e)=>{this.otpForm.get(this.getControlName(e))&&this.otpForm.get(this.getControlName(e)).setValue(t)}),!this.config.disableAutoFocus){const n=document.getElementById("c_"+this.componentKey);var e=t.length<this.config.length?t.length:this.config.length-1;let i=n.getElementsByClassName("otp-input")[e];i&&i.focus&&i.focus()}this.rebuildValue()}else this.rebuildValue()}rebuildValue(){let t="";this.keysPipe.transform(this.otpForm.controls).forEach(e=>{this.otpForm.controls[e].value&&(t+=this.otpForm.controls[e].value)}),this.onInputChange.emit(t)}getInputType(){return this.config.isPasswordInput?"password":this.config.allowNumbersOnly?"tel":"text"}handlePaste(t){let e=t.clipboardData||window.clipboardData;if(e)var n=e.getData("Text");t.stopPropagation(),t.preventDefault(),n&&this.setValue(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(VI))},t.\u0275cmp=i.Ib({type:t,selectors:[["ng-otp-input"]],inputs:{config:"config"},outputs:{onInputChange:"onInputChange"},decls:1,vars:1,consts:[[3,"class","id","ngStyle",4,"ngIf"],[3,"id","ngStyle"],["numberOnly","","maxlength","1","autocomplete","off",3,"pattern","type","placeholder","disabledNumberOnly","ngStyle","class","formControl","id","keydown","keyup",4,"ngFor","ngForOf"],["numberOnly","","maxlength","1","autocomplete","off",3,"pattern","type","placeholder","disabledNumberOnly","ngStyle","formControl","id","keydown","keyup"]],template:function(t,e){1&t&&i.Jc(0,FI,3,8,"div",0),2&t&&i.mc("ngIf",null==e.otpForm?null:e.otpForm.controls)},directives:function(){return[o.t,o.w,o.s,Aa,BI,dl,pl,Na,Gc]},pipes:function(){return[VI]},styles:[".otp-input[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:4px;border:1px solid #c5c5c5;text-align:center;font-size:32px}.wrapper[_ngcontent-%COMP%]   .otp-input[_ngcontent-%COMP%]:not(:last-child){margin-right:8px}@media screen and (max-width:767px){.otp-input[_ngcontent-%COMP%]{width:40px;font-size:24px;height:40px}}@media screen and (max-width:420px){.otp-input[_ngcontent-%COMP%]{width:30px;font-size:18px;height:30px}}"]}),t})(),BI=(()=>{class t{constructor(t,e){this._elRef=t,this._renderer=e}ngOnInit(){this.disabledNumberOnly||this._renderer.setAttribute(this._elRef.nativeElement,"onkeypress","return (event.charCode >= 48 && event.charCode <= 57) || event.charCode == 0")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.G))},t.\u0275dir=i.Jb({type:t,selectors:[["","numberOnly",""]],inputs:{disabledNumberOnly:"disabledNumberOnly"}}),t})(),zI=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[VI],imports:[[o.c,bl,gl]]}),t})();const qI=["sat-calendar-body",""];function HI(t,e){if(1&t&&(i.Ub(0,"tr",2),i.Ub(1,"td",3),i.Lc(2),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Gc("padding-top",50*t.cellAspectRatio/t.numCols,"%")("padding-bottom",50*t.cellAspectRatio/t.numCols,"%"),i.Eb("colspan",t.numCols),i.Db(1),i.Nc(" ",t.label," ")}}function GI(t,e){if(1&t&&(i.Ub(0,"td",7),i.Lc(1),i.Tb()),2&t){const t=i.gc(2);i.Gc("padding-top",50*t.cellAspectRatio/t.numCols,"%")("padding-bottom",50*t.cellAspectRatio/t.numCols,"%"),i.Eb("colspan",t._firstRowOffset),i.Db(1),i.Nc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function JI(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",8),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc(2)._cellClicked(n)})),i.Ub(1,"div",9),i.Lc(2),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=e.index,r=i.gc().index,o=i.gc();i.Gc("width",100/o.numCols,"%")("padding-top",50*o.cellAspectRatio/o.numCols,"%")("padding-bottom",50*o.cellAspectRatio/o.numCols,"%"),i.Gb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",o._isActiveCell(r,n))("mat-calendar-body-begin-range",o.begin===t.value)("mat-calendar-body-end-range",o.end===t.value)("mat-calendar-cell-semi-selected",o._isSemiSelected(t.value)),i.mc("tabindex",o._isActiveCell(r,n)?0:-1),i.Eb("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",o.selectedValue===t.value),i.Db(1),i.Gb("mat-calendar-body-selected",o.begin===t.value||o.end===t.value||o.selectedValue===t.value)("mat-calendar-body-semi-selected",o._isSemiSelected(t.value))("mat-calendar-body-today",o.todayValue===t.value),i.Db(1),i.Nc(" ",t.displayValue," ")}}function YI(t,e){if(1&t&&(i.Ub(0,"tr",4),i.Jc(1,GI,2,6,"td",5),i.Jc(2,JI,3,27,"td",6),i.Tb()),2&t){const t=e.$implicit,n=e.index,r=i.gc();i.Db(1),i.mc("ngIf",0===n&&r._firstRowOffset),i.Db(1),i.mc("ngForOf",t)}}function $I(t,e){if(1&t&&(i.Ub(0,"th"),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Eb("aria-label",t.long),i.Db(1),i.Mc(t.narrow)}}function WI(t,e){}function KI(t,e){if(1&t){const t=i.Vb();i.Ub(0,"sat-month-view",5),i.cc("activeDateChange",(function(e){return i.yc(t),i.gc().activeDate=e}))("selectedChange",(function(e){return i.yc(t),i.gc()._dateSelected(e)}))("_userSelection",(function(){return i.yc(t),i.gc()._userSelected()})),i.Tb()}if(2&t){const t=i.gc();i.mc("activeDate",t.activeDate)("selected",t.selected)("beginDate",t.beginDate)("endDate",t.endDate)("rangeMode",t.rangeMode)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}function QI(t,e){if(1&t){const t=i.Vb();i.Ub(0,"sat-year-view",6),i.cc("activeDateChange",(function(e){return i.yc(t),i.gc().activeDate=e}))("monthSelected",(function(e){return i.yc(t),i.gc()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return i.yc(t),i.gc()._goToDateInView(e,"month")})),i.Tb()}if(2&t){const t=i.gc();i.mc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}function XI(t,e){if(1&t){const t=i.Vb();i.Ub(0,"sat-multi-year-view",7),i.cc("activeDateChange",(function(e){return i.yc(t),i.gc().activeDate=e}))("yearSelected",(function(e){return i.yc(t),i.gc()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return i.yc(t),i.gc()._goToDateInView(e,"year")})),i.Tb()}if(2&t){const t=i.gc();i.mc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)}}function ZI(t,e){1&t&&(i.fc(),i.Ub(0,"svg",2),i.Pb(1,"path",3),i.Pb(2,"path",4),i.Tb())}const tM=[[["","matDatepickerToggleIcon",""]]],eM=["[matDatepickerToggleIcon]"],nM=new i.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(i.Y)(i.w)}});class iM{constructor(){this._localeChanges=new lr.a}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const rM=new i.s("mat-date-formats"),oM="undefined"!=typeof Intl,sM={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},aM=dM(31,t=>String(t+1)),cM={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},lM={af:1,ar:6,"ar-ly":6,"ar-ma":6,"ar-tn":1,az:1,be:1,bg:1,bm:1,br:1,bs:1,ca:1,cs:1,cv:1,cy:1,da:1,de:1,"de-at":1,"de-ch":1,el:1,"en-au":1,"en-gb":1,"en-ie":1,"en-nz":1,eo:1,es:1,"es-do":1,et:1,eu:1,fa:6,fi:1,fo:1,fr:1,"fr-ch":1,fy:1,gd:1,gl:1,"gom-latn":1,hr:1,hu:1,"hy-am":1,id:1,is:1,it:1,jv:1,ka:1,kk:1,km:1,ky:1,lb:1,lt:1,lv:1,me:1,mi:1,mk:1,ms:1,"ms-my":1,mt:1,my:1,nb:1,nl:1,"nl-be":1,nn:1,pl:1,pt:1,"pt-BR":0,ro:1,ru:1,sd:1,se:1,sk:1,sl:1,sq:1,sr:1,"sr-cyrl":1,ss:1,sv:1,sw:1,tet:1,tg:1,"tl-ph":1,tlh:1,tr:1,tzl:1,tzm:6,"tzm-latn":6,"ug-cn":1,uk:1,ur:1,uz:1,"uz-latn":1,vi:1,"x-pseudo":1,yo:1,"zh-cn":1},uM=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function dM(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let hM=(()=>{class t extends iM{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(oM){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return dM(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return sM[t]}getDateNames(){if(oM){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return dM(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return aM}getDayOfWeekNames(t){if(oM){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return dM(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return cM[t]}getYearName(t){if(oM){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){const t=this.locale.toLowerCase();return lM[t]||lM[t.substr(0,2)]||0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t))}createDate(t,e,n){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(n<1)throw Error(`Invalid date "${n}". Date has to be greater than 0.`);let i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error(`Invalid date "${n}" for month with index "${e}".`);return i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(oM){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign({},e,{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(uM.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(nM,8),i.Yb(vu))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),pM=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:iM,useClass:hM}],imports:[[yu]]}),t})();const mM={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let fM=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:rM,useValue:mM}],imports:[[pM]]}),t})();function bM(t){return Error(`SatDatepicker: No provider found for ${t}. You must import one of the following modules at your application root: SatNativeDateModule, MatMomentDateModule, or provide a custom implementation.`)}let gM=(()=>{class t{constructor(){this.changes=new lr.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(i.V)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class _M{constructor(t,e,n,i){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i}}let vM=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.rangeMode=!1,this.numCols=7,this.allowDisabledSelection=!1,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new i.o}_cellClicked(t){(this.allowDisabledSelection||t.enabled)&&this.selectedValueChange.emit(t.value)}get _firstRowOffset(){return this.rows&&this.rows.length&&this.rows[0].length?this.numCols-this.rows[0].length:0}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_isSemiSelected(t){return!!this.rangeMode&&(!!this.rangeFull||t!==this.begin&&t!==this.end&&(this.begin&&!this.end?t>this.begin:(this.end&&!this.begin||t>this.begin)&&t<this.end))}_focusActiveCell(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(()=>{this._elementRef.nativeElement.querySelector(".mat-calendar-body-active").focus()})})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(i.B))},t.\u0275cmp=i.Ib({type:t,selectors:[["","sat-calendar-body",""]],hostAttrs:["role","grid","attr.aria-readonly","true",1,"mat-calendar-body"],inputs:{rangeMode:"rangeMode",numCols:"numCols",allowDisabledSelection:"allowDisabledSelection",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",begin:"begin",end:"end",rangeFull:"rangeFull",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],attrs:qI,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-begin-range","mat-calendar-body-end-range","mat-calendar-cell-semi-selected","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(t,e){1&t&&(i.Jc(0,HI,3,6,"tr",0),i.Jc(1,YI,3,2,"tr",1)),2&t&&(i.mc("ngIf",e._firstRowOffset<e.labelMinRequiredCells),i.Db(1),i.mc("ngForOf",e.rows))},directives:[o.t,o.s],styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}[dir=rtl] .mat-calendar-body-label{text-align:right}"],encapsulation:2,changeDetection:0}),t})(),yM=(()=>{class t{constructor(t,e,n,r){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=r,this.rangeMode=!1,this._rangeFull=!1,this._beginDateSelected=!1,this.selectedChange=new i.o,this._userSelection=new i.o,this.activeDateChange=new i.o,!this._dateAdapter)throw bM("DateAdapter");if(!this._dateFormats)throw bM("MAT_DATE_FORMATS");const o=this._dateAdapter.getFirstDayOfWeek(),s=this._dateAdapter.getDayOfWeekNames("narrow");let a=this._dateAdapter.getDayOfWeekNames("long").map((t,e)=>({long:t,narrow:s[e]}));this._weekdays=a.slice(o).concat(a.slice(0,o)),this._activeDate=this._dateAdapter.today()}get beginDate(){return this._beginDate}set beginDate(t){this._beginDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this.updateRangeSpecificValues()}get endDate(){return this._endDate}set endDate(t){this._endDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this.updateRangeSpecificValues()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_dateSelected(t){if(this.rangeMode){const e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(e,n,t);this._beginDateSelected?(this._beginDateSelected=!1,this.selectedChange.emit(i),this._userSelection.emit()):(this._beginDateSelected=!0,this.selectedChange.emit(i))}else if(this._selectedDate!=t){const e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(i),this._userSelection.emit()}}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this.updateRangeSpecificValues(),this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,i=this._firstWeekOffset;n<t;n++,i++){7==i&&(this._weeks.push([]),i=0);const t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),r=this._shouldEnableDate(t),o=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel);this._weeks[this._weeks.length-1].push(new _M(n+1,e[n],o,r))}}_shouldEnableDate(t){return!!t&&(!this.dateFilter||this.dateFilter(t))&&(!this.minDate||this._dateAdapter.compareDate(t,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}updateRangeSpecificValues(){this.rangeMode?(this._beginDateNumber=this._getDateInCurrentMonth(this._beginDate),this._endDateNumber=this._getDateInCurrentMonth(this._endDate),this._rangeFull=this.beginDate&&this.endDate&&!this._beginDateNumber&&!this._endDateNumber&&this._dateAdapter.compareDate(this.beginDate,this.activeDate)<=0&&this._dateAdapter.compareDate(this.activeDate,this.endDate)<=0):(this._beginDateNumber=this._endDateNumber=null,this._rangeFull=!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(rM,8),i.Ob(iM,8),i.Ob(_d,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["sat-month-view"]],viewQuery:function(t,e){var n;1&t&&i.Qc(vM,!0),2&t&&i.tc(n=i.dc())&&(e._matCalendarBody=n.first)},inputs:{rangeMode:"rangeMode",beginDate:"beginDate",endDate:"endDate",activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:11,consts:[[1,"mat-calendar-table"],[1,"mat-calendar-table-header"],[4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["sat-calendar-body","",3,"label","rows","todayValue","selectedValue","begin","end","rangeFull","rangeMode","labelMinRequiredCells","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(i.Ub(0,"table",0),i.Ub(1,"thead",1),i.Ub(2,"tr"),i.Jc(3,$I,2,2,"th",2),i.Tb(),i.Ub(4,"tr"),i.Pb(5,"th",3),i.Tb(),i.Tb(),i.Ub(6,"tbody",4),i.cc("selectedValueChange",(function(t){return e._dateSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("ngForOf",e._weekdays),i.Db(3),i.mc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("selectedValue",e._selectedDate)("begin",e._beginDateNumber)("end",e._endDateNumber)("rangeFull",e._rangeFull)("rangeMode",e.rangeMode)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[o.s,vM],encapsulation:2,changeDetection:0}),t})(),wM=(()=>{class t{constructor(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this.selectedChange=new i.o,this.yearSelected=new i.o,this.activeDateChange=new i.o,!this._dateAdapter)throw bM("DateAdapter");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Math.floor(this._dateAdapter.getYear(e)/24)!=Math.floor(this._dateAdapter.getYear(this._activeDate)/24)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let t=this._dateAdapter.getYear(this._activeDate),e=t%24;this._years=[];for(let n=0,i=[];n<24;n++)i.push(t-e+n),4==i.length&&(this._years.push(i.map(t=>this._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-this._dateAdapter.getYear(this._activeDate)%24);break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-this._dateAdapter.getYear(this._activeDate)%24-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return this._dateAdapter.getYear(this.activeDate)%24}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){let e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new _M(t,e,e,this._shouldEnableYear(t))}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let e=this._dateAdapter.createDate(t,0,1);this._dateAdapter.getYear(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(iM,8),i.Ob(_d,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["sat-multi-year-view"]],viewQuery:function(t,e){var n;1&t&&i.Qc(vM,!0),2&t&&i.tc(n=i.dc())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:6,consts:[[1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["sat-calendar-body","","allowDisabledSelection","true",3,"rows","todayValue","selectedValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(i.Ub(0,"table",0),i.Ub(1,"thead",1),i.Ub(2,"tr"),i.Pb(3,"th",2),i.Tb(),i.Tb(),i.Ub(4,"tbody",3),i.cc("selectedValueChange",(function(t){return e._yearSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.mc("rows",e._years)("todayValue",e._todayYear)("selectedValue",e._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._getActiveCell()))},directives:[vM],encapsulation:2,changeDetection:0}),t})(),CM=(()=>{class t{constructor(t,e,n,r){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=r,this.selectedChange=new i.o,this.monthSelected=new i.o,this.activeDateChange=new i.o,!this._dateAdapter)throw bM("DateAdapter");if(!this._dateFormats)throw bM("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._init()}_monthSelected(t){const e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(e);const n=this._dateAdapter.getNumDaysInMonth(e);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case 13:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){let n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new _M(t,e.toLocaleUpperCase(),n,this._shouldEnableMonth(t))}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>i}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t<n||t===n&&e<i}return!1}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_isRtl(){return this._dir&&"rtl"===this._dir.value}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.h),i.Ob(rM,8),i.Ob(iM,8),i.Ob(_d,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["sat-year-view"]],viewQuery:function(t,e){var n;1&t&&i.Qc(vM,!0),2&t&&i.tc(n=i.dc())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:8,consts:[[1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["sat-calendar-body","","allowDisabledSelection","true",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(t,e){1&t&&(i.Ub(0,"table",0),i.Ub(1,"thead",1),i.Ub(2,"tr"),i.Pb(3,"th",2),i.Tb(),i.Tb(),i.Ub(4,"tbody",3),i.cc("selectedValueChange",(function(t){return e._monthSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.mc("label",e._yearLabel)("rows",e._months)("todayValue",e._todayMonth)("selectedValue",e._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._dateAdapter.getMonth(e.activeDate)))},directives:[vM],encapsulation:2,changeDetection:0}),t})(),xM=(()=>{class t{constructor(t,e,n,i,r){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=i,this.calendar.stateChanges.subscribe(()=>r.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate);return`${this._dateAdapter.getYearName(this._dateAdapter.createDate(t-t%24,0,1))} \u2013 ${this._dateAdapter.getYearName(this._dateAdapter.createDate(t+24-1-t%24,0,1))}`}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){const t="month"===this.calendar.orderPeriodLabel?["month","year","multi-year"]:["month","multi-year","month"];switch(this.calendar.currentView){case"month":this.calendar.currentView=t[1];break;case"year":this.calendar.currentView=t[2];break;default:this.calendar.currentView=t[0]}}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):Math.floor(this._dateAdapter.getYear(t)/24)==Math.floor(this._dateAdapter.getYear(e)/24)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(gM),i.Ob(Object(i.X)(()=>OM)),i.Ob(iM,8),i.Ob(rM,8),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["sat-calendar-header"]],exportAs:["matCalendarHeader"],decls:8,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"button",2),i.cc("click",(function(){return e.currentPeriodClicked()})),i.Lc(3),i.Pb(4,"div",3),i.Tb(),i.Pb(5,"div",4),i.Ub(6,"button",5),i.cc("click",(function(){return e.previousClicked()})),i.Tb(),i.Ub(7,"button",6),i.cc("click",(function(){return e.nextClicked()})),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(2),i.Eb("aria-label",e.periodButtonLabel),i.Db(1),i.Nc(" ",e.periodButtonText," "),i.Db(1),i.Gb("mat-calendar-invert","month"!=e.calendar.currentView),i.Db(2),i.mc("disabled",!e.previousEnabled()),i.Eb("aria-label",e.prevButtonLabel),i.Db(1),i.mc("disabled",!e.nextEnabled()),i.Eb("aria-label",e.nextButtonLabel))},directives:[zm,cd],encapsulation:2,changeDetection:0}),t})(),OM=(()=>{class t{constructor(t,e,n,r){if(this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=r,this.rangeMode=!1,this.dateRangesChange=new i.o,this._beginDateSelected=!1,this._moveFocusOnNextTick=!1,this.startView="month",this.orderPeriodLabel="multi-year",this.selectedChange=new i.o,this.yearSelected=new i.o,this.monthSelected=new i.o,this._userSelection=new i.o,this.stateChanges=new lr.a,!this._dateAdapter)throw bM("DateAdapter");if(!this._dateFormats)throw bM("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe(()=>{r.markForCheck(),this.stateChanges.next()})}get beginDate(){return this._beginDate}set beginDate(t){this._beginDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get endDate(){return this._endDate}set endDate(t){this._endDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get startAt(){return this._startAt}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0}ngAfterContentInit(){this._calendarHeaderPortal=new Xm(this.headerComponent||xM),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell()}_dateSelected(t){this.rangeMode?this._beginDateSelected?(this._beginDateSelected=!1,this._dateAdapter.compareDate(this.beginDate,t)<=0?this.dateRangesChange.emit({begin:this.beginDate,end:t}):this.dateRangesChange.emit({begin:t,end:this.beginDate})):(this._beginDateSelected=!0,this.beginDate=t,this.endDate=t):this._dateAdapter.sameDate(t,this.selected)||this.selectedChange.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_userSelected(){this._userSelection.emit()}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(gM),i.Ob(iM,8),i.Ob(rM,8),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["sat-calendar"]],viewQuery:function(t,e){var n;1&t&&(i.Qc(yM,!0),i.Qc(CM,!0),i.Qc(wM,!0)),2&t&&(i.tc(n=i.dc())&&(e.monthView=n.first),i.tc(n=i.dc())&&(e.yearView=n.first),i.tc(n=i.dc())&&(e.multiYearView=n.first))},hostAttrs:[1,"mat-calendar"],inputs:{rangeMode:"rangeMode",startView:"startView",orderPeriodLabel:"orderPeriodLabel",beginDate:"beginDate",endDate:"endDate",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter"},outputs:{dateRangesChange:"dateRangesChange",selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[i.Bb],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","beginDate","endDate","rangeMode","dateFilter","maxDate","minDate","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","beginDate","endDate","rangeMode","dateFilter","maxDate","minDate","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(i.Jc(0,WI,0,0,"ng-template",0),i.Ub(1,"div",1),i.Jc(2,KI,1,8,"sat-month-view",2),i.Jc(3,QI,1,5,"sat-year-view",3),i.Jc(4,XI,1,5,"sat-multi-year-view",4),i.Tb()),2&t&&(i.mc("cdkPortalOutlet",e._calendarHeaderPortal),i.Db(1),i.mc("ngSwitch",e.currentView),i.Db(1),i.mc("ngSwitchCase","month"),i.Db(1),i.mc("ngSwitchCase","year"),i.Db(1),i.mc("ngSwitchCase","multi-year"))},directives:[of,md,o.x,o.y,yM,CM,wM],styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{-webkit-transform:rotate(180deg);transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;-webkit-transform:translateX(2px) rotate(-45deg);transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;-webkit-transform:translateX(-2px) rotate(45deg);transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}"],encapsulation:2,changeDetection:0}),t})();const SM={transformPanel:It("transformPanel",[Nt("void",Rt({opacity:0,transform:"scale(1, 0)"})),Nt("enter",Rt({opacity:1,transform:"scale(1, 1)"})),Vt("void => enter",Ut([Bt("@fadeInCalendar",jt()),Mt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)")])),Vt("* => void",Mt("100ms linear",Rt({opacity:0})))]),fadeInCalendar:It("fadeInCalendar",[Nt("void",Rt({opacity:0})),Nt("enter",Rt({opacity:1})),Vt("void => *",Mt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let TM=0;const DM=new i.s("sat-datepicker-scroll-strategy"),kM={provide:DM,deps:[rb],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class PM{constructor(t){this._elementRef=t}}const EM=Id(PM);let AM=(()=>{class t extends EM{constructor(t){super(t)}ngAfterViewInit(){this._calendar.focusActiveCell()}close(){this.datepicker.closeAfterSelection&&this.datepicker.close()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275cmp=i.Ib({type:t,selectors:[["sat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&i.Qc(OM,!0),2&t&&i.tc(n=i.dc())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){2&t&&(i.Ic("@transformPanel","enter"),i.Gb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.Ab],decls:1,vars:14,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","beginDate","endDate","headerComponent","rangeMode","selected","orderPeriodLabel","selectedChange","dateRangesChange","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(i.Ub(0,"sat-calendar",0),i.cc("selectedChange",(function(t){return e.datepicker._select(t)}))("dateRangesChange",(function(t){return e.datepicker._selectRange(t)}))("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(){return e.close()})),i.Tb()),2&t&&i.mc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._minDate)("maxDate",e.datepicker._maxDate)("dateFilter",e.datepicker._dateFilter)("beginDate",e.datepicker._beginDate)("endDate",e.datepicker._endDate)("headerComponent",e.datepicker.calendarHeaderComponent)("rangeMode",e.datepicker.rangeMode)("selected",e.datepicker._selected)("@fadeInCalendar","enter")("orderPeriodLabel",e.datepicker.orderPeriodLabel)},directives:[OM,rd,o.q],styles:[".mat-datepicker-content{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:block}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"],encapsulation:2,data:{animation:[SM.transformPanel,SM.fadeInCalendar]},changeDetection:0}),t})(),IM=(()=>{class t{constructor(t,e,n,r,o,s,a,c){if(this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=r,this._scrollStrategy=o,this._dateAdapter=s,this._dir=a,this._document=c,this.startView="month",this._touchUi=!1,this.yearSelected=new i.o,this.monthSelected=new i.o,this.openedStream=new i.o,this.closedStream=new i.o,this.closeAfterSelection=!0,this.orderPeriodLabel="multi-year",this._opened=!1,this.id="sat-datepicker-"+TM++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=Ir.a.EMPTY,this._disabledChange=new lr.a,this._selectedChanged=new lr.a,!this._dateAdapter)throw bM("DateAdapter")}get rangeMode(){return this._rangeMode}set rangeMode(t){this._rangeMode=t,this.rangeMode?this._validSelected=null:this._beginDate=this._endDate=null}get beginDate(){return this._beginDate}set beginDate(t){this._validSelected=null,this._beginDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get endDate(){return this._endDate}set endDate(t){this._validSelected=null,this._endDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get startAt(){return this.rangeMode?this._startAt||(this._datepickerInput&&this._datepickerInput.value?this._datepickerInput.value.begin:null):this._startAt||(this._datepickerInput?this._datepickerInput.value:null)}set startAt(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=Lu(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=Lu(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))}get opened(){return this._opened}set opened(t){t?this.open():this.close()}get _selected(){return this._validSelected}set _selected(t){this._validSelected=t}get _minDate(){return this._datepickerInput&&this._datepickerInput.min}get _maxDate(){return this._datepickerInput&&this._datepickerInput.max}get _dateFilter(){return this._datepickerInput&&this._datepickerInput._dateFilter}ngOnDestroy(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null)}_select(t){let e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this._selectedChanged.next(t)}_selectRange(t){this._dateAdapter.sameDate(t.begin,this.beginDate)&&this._dateAdapter.sameDate(t.end,this.endDate)||this._selectedChanged.next(t),this._beginDate=t.begin,this._endDate=t.end}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_registerInput(t){if(this._datepickerInput)throw Error("A SatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe(t=>{null!==t?t&&t.hasOwnProperty("begin")&&t.hasOwnProperty("end")?(t=t).begin&&t.end&&this._dateAdapter.compareDate(t.begin,t.end)<=0?(this.beginDate=t.begin,this.endDate=t.end):this.beginDate=this.endDate=null:this._selected=t:this.beginDate=this.endDate=this._selected=null})}open(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an SatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}close(){if(!this._opened)return;this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_openAsDialog(){this._dialogRef=this._dialog.open(AM,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog"}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._dialogRef.componentInstance.datepicker=this,this._setColor()}_openAsPopup(){this._calendarPortal||(this._calendarPortal=new Xm(AM,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe(li(1)).subscribe(()=>{this._popupRef.updatePosition()}))}_createPopup(){const t=new Vf({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(t),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(ii.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(d(t=>27===t.keyCode||this._datepickerInput&&t.altKey&&38===t.keyCode))).subscribe(()=>this.close())}_createPopupPositionStrategy(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}_setColor(){const t=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=t),this._dialogRef&&(this._dialogRef.componentInstance.color=t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(rb),i.Ob(i.B),i.Ob(i.S),i.Ob(DM),i.Ob(iM,8),i.Ob(_d,8),i.Ob(o.e,8))},t.\u0275cmp=i.Ib({type:t,selectors:[["sat-datepicker"]],inputs:{startView:"startView",closeAfterSelection:"closeAfterSelection",orderPeriodLabel:"orderPeriodLabel",rangeMode:"rangeMode",beginDate:"beginDate",endDate:"endDate",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const MM={provide:Ta,useExisting:Object(i.X)(()=>RM),multi:!0},UM={provide:Ba,useExisting:Object(i.X)(()=>RM),multi:!0};class LM{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let RM=(()=>{class t{constructor(t,e,n,r){if(this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this._formField=r,this.dateChange=new i.o,this.dateInput=new i.o,this._valueChange=new i.o,this._disabledChange=new i.o,this._onTouched=()=>{},this._cvaOnChange=()=>{},this._validatorOnChange=()=>{},this._datepickerSubscription=Ir.a.EMPTY,this._localeSubscription=Ir.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._minValidator=t=>{if(this._datepicker.rangeMode&&t.value){const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value.begin)),n=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value.end));if(this.min){if(e&&this._dateAdapter.compareDate(this.min,e)>0)return{matDatepickerMin:{min:this.min,actual:e}};if(n&&this._dateAdapter.compareDate(this.min,n)>0)return{matDatepickerMin:{min:this.min,actual:n}}}return null}const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!this.min||!e||this._dateAdapter.compareDate(this.min,e)<=0?null:{matDatepickerMin:{min:this.min,actual:e}}},this._maxValidator=t=>{if(this._datepicker.rangeMode&&t.value){const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value.begin)),n=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value.end));if(this.max){if(e&&this._dateAdapter.compareDate(this.max,e)<0)return{matDatepickerMax:{max:this.max,actual:e}};if(n&&this._dateAdapter.compareDate(this.max,n)<0)return{matDatepickerMax:{max:this.max,actual:n}}}return null}const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!this.max||!e||this._dateAdapter.compareDate(this.max,e)>=0?null:{matDatepickerMax:{max:this.max,actual:e}}},this._filterValidator=t=>{if(this._datepicker.rangeMode&&t.value){const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value.begin)),n=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value.end));return!this._dateFilter||!e&&!n||this._dateFilter(e)&&this._dateFilter(n)?null:{matDatepickerFilter:!0}}const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value));return this._dateFilter&&e&&!this._dateFilter(e)?{matDatepickerFilter:!0}:null},this._rangeValidator=t=>{if(this._datepicker.rangeMode&&t.value){const e=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value.begin)),n=this._getValidDateOrNull(this._dateAdapter.deserialize(t.value.end));return!e||!n||this._dateAdapter.compareDate(e,n)<=0?null:{matDatepickerRange:!0}}return null},this._validator=Ha.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator,this._rangeValidator]),this._lastValueValid=!1,!this._dateAdapter)throw bM("DateAdapter");if(!this._dateFormats)throw bM("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe(()=>{this.value=this.value})}set satDatepicker(t){this.registerDatepicker(t)}registerDatepicker(t){t&&(this._datepicker=t,this._datepicker._registerInput(this))}set matDatepickerFilter(t){this._dateFilter=t,this._validatorOnChange()}get value(){return this._value}set value(t){if(t&&t.hasOwnProperty("begin")&&t.hasOwnProperty("end")){const e=t;e.begin=this._dateAdapter.deserialize(e.begin),e.end=this._dateAdapter.deserialize(e.end),this._lastValueValid=!e.begin||!e.end||this._dateAdapter.isValid(e.begin)&&this._dateAdapter.isValid(e.end),e.begin=this._getValidDateOrNull(e.begin),e.end=this._getValidDateOrNull(e.end);let n=this.value;this._elementRef.nativeElement.value=e&&e.begin&&e.end?this._dateAdapter.format(e.begin,this._dateFormats.display.dateInput)+" - "+this._dateAdapter.format(e.end,this._dateFormats.display.dateInput):"",(null==n&&null!=e||null!=n&&null==e||!this._dateAdapter.sameDate(n.begin,e.begin)||!this._dateAdapter.sameDate(n.end,e.end))&&(e.end&&e.begin&&this._dateAdapter.compareDate(e.begin,e.end)>0&&(t=null),this._value=t,this._valueChange.emit(t))}else{t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);let e=this.value;this._value=t,this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):"",this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}}get min(){return this._min}set min(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get max(){return this._max}set max(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()}get disabled(){return!!this._disabled}set disabled(t){const e=Lu(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&n.blur&&n.blur()}ngAfterContentInit(){this._datepicker&&(this._datepickerSubscription=this._datepicker._selectedChanged.subscribe(t=>{this.value=t,this._cvaOnChange(t),this._onTouched(),this.dateInput.emit(new LM(this,this._elementRef.nativeElement)),this.dateChange.emit(new LM(this,this._elementRef.nativeElement))}))}ngOnDestroy(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}writeValue(t){this.value=t}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&40===t.keyCode&&(this._datepicker.open(),t.preventDefault())}_onInput(t){let e=null;if(this._datepicker.rangeMode){const n=t.split("-");if(n.length>1){const t=Math.floor(n.length/2),i=n.slice(0,t).join("-"),r=n.slice(t).join("-");let o=this._dateAdapter.parse(i,this._dateFormats.parse.dateInput),s=this._dateAdapter.parse(r,this._dateFormats.parse.dateInput);this._lastValueValid=!o||!s||this._dateAdapter.isValid(o)&&this._dateAdapter.isValid(s),o=this._getValidDateOrNull(o),s=this._getValidDateOrNull(s),o&&s&&(e={begin:o,end:s})}}else e=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput),this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e);this._value=e,this._cvaOnChange(e),this._valueChange.emit(e),this.dateInput.emit(new LM(this,this._elementRef.nativeElement))}_onChange(){this.dateChange.emit(new LM(this,this._elementRef.nativeElement))}_getThemePalette(){return this._formField?this._formField.color:void 0}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t&&t.hasOwnProperty("begin")&&t.hasOwnProperty("end")?(t=t)&&t.begin&&t.end?this._dateAdapter.format(t.begin,this._dateFormats.display.dateInput)+" - "+this._dateAdapter.format(t.end,this._dateFormats.display.dateInput):"":(t=t)?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_getValidDateOrNull(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l),i.Ob(iM,8),i.Ob(rM,8),i.Ob(Uv,8))},t.\u0275dir=i.Jb({type:t,selectors:[["input","satDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&i.cc("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(i.Xb("disabled",e.disabled),i.Eb("aria-haspopup",!0)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{value:"value",satDatepicker:"satDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[i.Cb([MM,UM,{provide:oy,useExisting:t}])]}),t})(),NM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),FM=(()=>{class t{constructor(t,e){this._intl=t,this._changeDetectorRef=e,this._stateChanges=Ir.a.EMPTY}get disabled(){return void 0===this._disabled?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=Lu(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker._disabledChange:Object(s.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Object(s.a)(),n=this.datepicker?Object(ii.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(s.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(ii.a)(this._intl.changes,t,e,n).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(gM),i.Ob(i.h))},t.\u0275cmp=i.Ib({type:t,selectors:[["sat-datepicker-toggle"]],contentQueries:function(t,e,n){var r;1&t&&i.Hb(n,NM,!0),2&t&&i.tc(r=i.dc())&&(e._customIcon=r.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:6,hostBindings:function(t,e){2&t&&i.Gb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color)},inputs:{disabled:"disabled",datepicker:["for","datepicker"]},exportAs:["matDatepickerToggle"],features:[i.Bb],ngContentSelectors:eM,decls:3,vars:3,consts:[["mat-icon-button","","type","button","aria-haspopup","true",3,"disabled","click"],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M0 0h24v24H0z","fill","none"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(i.lc(tM),i.Ub(0,"button",0),i.cc("click",(function(t){return e._open(t)})),i.Jc(1,ZI,3,0,"svg",1),i.kc(2),i.Tb()),2&t&&(i.mc("disabled",e.disabled),i.Eb("aria-label",e._intl.openCalendarLabel),i.Db(1),i.mc("ngIf",!e._customIcon))},directives:[zm,o.t],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t})(),VM=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[gM,kM],imports:[[o.c,Hm,Zb,ub,bd,cf]]}),t})();var jM=n("Iab2");function BM(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Fecha de Log "),i.Tb())}function zM(t,e){if(1&t&&(i.Ub(0,"td",30),i.Ub(1,"span",31),i.Ub(2,"span",32),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",33),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.date,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.date,"hh:mm a"))}}function qM(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Email "),i.Tb())}function HM(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.userEmail," ")}}function GM(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Direcci\xf3n Ip"),i.Tb())}function JM(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.ipAddress," ")}}function YM(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Documento "),i.Tb())}function $M(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.userDocument," ")}}function WM(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Texto "),i.Tb())}function KM(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.textLog," ")}}function QM(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Tipo "),i.Tb())}function XM(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.typeLog," ")}}function ZM(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," M\xf3dulo "),i.Tb())}function tU(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.module," ")}}function eU(t,e){1&t&&i.Pb(0,"tr",34)}function nU(t,e){1&t&&i.Pb(0,"tr",35)}const iU=function(){return[10,20,30,40,50]},rU=[];let oU=(()=>{class t{constructor(t,e,n,i,r){this.dialog=t,this.route=e,this._pageLoaderService=i,this.getlog=r,this.limit=10,this.skip=0,this.totalLength=0,this.pageIndex=0,this.displayedColumns=["date","userEmail","ipAddress","textLog","typeLog","userDocument","module"],this.dataSource=new Sx(rU),this.datepipe=new o.f("es"),this.form=n.group({date:[{begin:null,end:null}]}),this.dataSource.paginator=this.paginator}ngOnInit(){}applyFilter(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}resetPaginator(){this.skip=0,this.limit=10,this.paginator.pageIndex=0}onDateSelect(t){if(this._pageLoaderService.show(),null!==this.form.value.date&&null!==this.form.value.date.begin){const t=this.datepipe.transform(new Date(this.form.value.date.begin),"yyyy-MM-dd")+"T00:00:00",e=this.datepipe.transform(new Date(this.form.value.date.end),"yyyy-MM-dd")+"T23:59:59";this.getlog.get(t,e).subscribe(t=>{var e;console.log("Logs response",t.logs),this.dataSource.data=null===(e=t.logs)||void 0===e?void 0:e.sort((function(t,e){return t.date<e.date?1:t.date>e.date?-1:0})),this.listSelect=this.dataSource.data,this._pageLoaderService.hide()})}}ngAfterViewInit(){this.dataSource.paginator=this.paginator}buttoncsv(){n.e(5).then(n.bind(null,"JcrP")).then(t=>{const e=Object.assign([],this.dataSource.filteredData);e.unshift({date:"FECHA DE LOG",userEmail:"EMAIL",ipAddress:"DIRECCI\xd3N IP",textLog:"TEXTO",typeLog:"TIPO",userDocument:"DOCUMENTO",module:"M\xd3DULO",notaryName:"NOTAR\xcdA",notaryId:"ID"});const n=t.utils.json_to_sheet(e,{skipHeader:!0}),i=t.write({Sheets:{data:n},SheetNames:["data"]},{bookType:"xlsx",type:"array"});this.saveAsExcelFile(i,"download")})}saveAsExcelFile(t,e){const n=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"});Object(jM.saveAs)(n,e+"_export_log_"+(new Date).getTime()+".xlsx")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(Zs),i.Ob(fl),i.Ob(pg),i.Ob(dg))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-logs"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:51,vars:9,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center"],[1,"col-12","col-sm-6"],[1,"row"],[1,"col-12","col-sm-3"],[3,"formGroup"],["matInput","","placeholder","Fecha","formControlName","date",3,"satDatepicker","ngModelChange"],["touchUi","true",3,"rangeMode"],["picker",""],["matSuffix","",3,"for"],["matInput","","placeholder","Ej. Documento, email, m\xf3dulo",3,"keyup"],["input",""],["matSuffix",""],[1,"col-12","col-sm-6","align-self-center","text-right"],["mat-raised-button","",3,"click"],[1,"rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","userEmail"],["matColumnDef","ipAddress"],["matColumnDef","userDocument"],["matColumnDef","textLog"],["matColumnDef","typeLog"],["matColumnDef","module"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fechaHora"],[1,"tb-fecha"],[1,"tb-hora"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Logs"),i.Tb(),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"div",4),i.Ub(7,"form",5),i.Ub(8,"mat-form-field"),i.Ub(9,"input",6),i.cc("ngModelChange",(function(t){return e.onDateSelect(t)})),i.Tb(),i.Pb(10,"sat-datepicker",7,8),i.Pb(12,"sat-datepicker-toggle",9),i.Tb(),i.Tb(),i.Tb(),i.Ub(13,"div",4),i.Ub(14,"mat-form-field"),i.Ub(15,"mat-label"),i.Lc(16,"Buscar..."),i.Tb(),i.Ub(17,"input",10,11),i.cc("keyup",(function(t){return e.applyFilter(t)})),i.Tb(),i.Ub(19,"mat-icon",12),i.Lc(20,"search"),i.Tb(),i.Tb(),i.Tb(),i.Ub(21,"div",13),i.Ub(22,"button",14),i.cc("click",(function(){return e.buttoncsv()})),i.Lc(23,"Descargar"),i.Tb(),i.Tb(),i.Tb(),i.Ub(24,"div",15),i.Ub(25,"table",16),i.Sb(26,17),i.Jc(27,BM,2,0,"th",18),i.Jc(28,zM,8,8,"td",19),i.Rb(),i.Sb(29,20),i.Jc(30,qM,2,0,"th",18),i.Jc(31,HM,2,1,"td",19),i.Rb(),i.Sb(32,21),i.Jc(33,GM,2,0,"th",18),i.Jc(34,JM,2,1,"td",19),i.Rb(),i.Sb(35,22),i.Jc(36,YM,2,0,"th",18),i.Jc(37,$M,2,1,"td",19),i.Rb(),i.Sb(38,23),i.Jc(39,WM,2,0,"th",18),i.Jc(40,KM,2,1,"td",19),i.Rb(),i.Sb(41,24),i.Jc(42,QM,2,0,"th",18),i.Jc(43,XM,2,1,"td",19),i.Rb(),i.Sb(44,25),i.Jc(45,ZM,2,0,"th",18),i.Jc(46,tU,2,1,"td",19),i.Rb(),i.Jc(47,eU,1,0,"tr",26),i.Jc(48,nU,1,0,"tr",27),i.Tb(),i.Tb(),i.Pb(49,"mat-paginator",28),i.Tb(),i.Pb(50,"aswc-page-loader-default")),2&t){const t=i.uc(11);i.Db(7),i.mc("formGroup",e.form),i.Db(2),i.mc("satDatepicker",t),i.Db(1),i.mc("rangeMode",!0),i.Db(2),i.mc("for",t),i.Db(13),i.mc("dataSource",e.dataSource),i.Db(22),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(8,iU))}},styles:["tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();class sU{}var aU=function(t){return t.ChallengeQuestions="auth-challenge-questions",t.OTP="auth-otp",t.FacialRecognition="auth-mati",t.Any="auth-any",t}({}),cU=function(t){return t.CC="C\xe9dula de Ciudadania",t.CCEXT="C\xe9dula de Extranjer\xeda",t.PASSPORT="Pasaporte",t}({}),lU=function(t){return t[t.CC=1]="CC",t[t.CCEXT=3]="CCEXT",t}({});let uU=(()=>{class t{constructor(){this._loading=!1,this.notify=new i.o}hide(){this._loading=!1}show(){this._loading=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const dU=[{id:null,name:aU.Any,attemptDate:"",approved:!1,viewValue:"A elecci\xf3n de la persona"},{id:null,name:aU.ChallengeQuestions,attemptDate:"",approved:!1,viewValue:"Preguntas de validaci\xf3n de identidad"},{id:null,name:aU.OTP,attemptDate:"",approved:!1,viewValue:"Autenticaci\xf3n por correo electr\xf3nico"},{id:null,name:aU.FacialRecognition,attemptDate:"",approved:!1,viewValue:"Reconocimiento facial"}];class hU{constructor(){}get _identificationNumber(){return this.identificationNumber}set _identificationNumber(t){this.identificationNumber=t}get _idProcess(){return this.idProcess}set _idProcess(t){this.idProcess=t}get _email(){return this.email}set _email(t){this.email=t}get _code(){return this.code}set _code(t){this.code=t}}var pU=function(t){return t.SIMPLE="SIMPLE",t.MULTIPLE_SIGN="MULTIPLE_SIGN",t.MULTIPLE_REJECT="MULTIPLEREJECT",t.MULTIPLE_SIGN_UPDATE="MULTIPLE_SIGN_UPDATE",t}({});function mU(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div"),i.Ub(1,"button",7),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().dialogAction(n.funct,n.value)})),i.Lc(2),i.Tb(),i.Lc(3," \xa0 "),i.Tb()}if(2&t){const t=e.$implicit;i.Db(2),i.Mc(t.text)}}let fU=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l){this.kcSvc=t,this.authenticationService=e,this.dialogRef=n,this.dialog=i,this.router=r,this.location=o,this._locationCode=s,this.cn=a,this.globalVarService=c,this.data=l}dialogAction(t,e){switch(t){case"close":this.close(e);break;case"login":this.login();break;case"logout":this.logout();break;case"cancelMethodSigner":this.cancelMethodSigner(e);break;case"continueMethodSigner":this.continueMethodSigner(e);break;case"redirectEnrollment":this.redirectEnrollment(e);break;case"closeLocation":this.redirectToAfterPage();break;case"reSendVerificationEmail":this.reSendVerificationEmail(e);break;default:console.warn("Invalid Dialog Action")}}redirectEnrollment(t){this.dialogRef.close(t),this.router.navigate(["/corporate/pv/enrollment/user-enrollment"])}cancelMethodSigner(t){this.dialogRef.close(t),this.router.navigate(["/corporate/pv/documents/list-of-formalities"])}continueMethodSigner(t){this.dialogRef.close(t),this.globalVarService.type_signature=pU.SIMPLE,this.router.navigate(["/corporate/pv/authentication/auth-methods"])}close(t){this.dialogRef.close(t)}login(){this.dialogRef.close(),this.router.navigate(["login"])}logout(){this.dialog.closeAll(),sessionStorage.clear(),this.authenticationService.logout(),this.router.navigate(["login"])}redirectToAfterPage(){const t=JSON.parse(sessionStorage.getItem("userData"));switch(this.cn.log("user:",t.role),t.role){case Ig.Person:this.router.navigate(["/corporate/pv/documents/list-of-formalities"]);break;default:this.router.navigate(["/corporate/pv/documents/my-transactions"])}this.dialogRef.close("")}reSendVerificationEmail(t){this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cr),i.Ob(qS),i.Ob(jb),i.Ob(Jb),i.Ob(Zs),i.Ob(zg),i.Ob(o.n),i.Ob(Gi),i.Ob(cg),i.Ob(zb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-information-modal"]],inputs:{modalContent:"modalContent",modalTitle:"modalTitle"},decls:11,vars:3,consts:[[1,"df-modal-mssg"],["mat-dialog-content",""],[1,"icon-std-modal"],["src","./assets/images/Iconos/standard-icons/ico-dfMessage-grlInfo.png","alt",""],[1,"titleAndDesc-std-modal"],["mat-dialog-actions","",1,"btnActions-std-modal"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"img",3),i.Tb(),i.Ub(4,"div",4),i.Ub(5,"h5"),i.Lc(6),i.Tb(),i.Ub(7,"p"),i.Lc(8),i.Tb(),i.Tb(),i.Tb(),i.Ub(9,"div",5),i.Jc(10,mU,4,1,"div",6),i.Tb(),i.Tb()),2&t&&(i.Db(6),i.Mc(e.data.title),i.Db(2),i.Mc(e.data.content),i.Db(2),i.mc("ngForOf",e.data.actions))},directives:[Kb,Qb,o.s,zm],styles:[".notification-modal[_ngcontent-%COMP%]{text-align:center}.notification-modal[_ngcontent-%COMP%]   .mat-dialog-content[_ngcontent-%COMP%]{overflow:initial}.notification-modal[_ngcontent-%COMP%]   .box-ico-notification[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-24px -24px 2rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.notification-modal[_ngcontent-%COMP%]   .box-ico-notification[_ngcontent-%COMP%]   .ico-notification[_ngcontent-%COMP%]{max-width:6.4rem}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]{display:flex;justify-content:center}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:1rem}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-left:0}"]}),t})();class bU{}class gU{constructor(t,e,n){this.signatureProcessesService=t,this.notificationsService=e,this.globalVarsService=n,this.user=JSON.parse(sessionStorage.getItem(null==this.globalVarsService.type_sign?"userData":"userDataExternal"))}sendMessage(t,e){console.log("::::::::RESPONSE SEND MESSAGE::::::::"),this.signatureProcessesService.getDetailSignatureProcesses(t).subscribe(n=>{console.log(n),this.dataDetail=n,this.message=new GS;const i=[];switch(e){case"PendingSign":this.message.textMessage="Te a invitado a firmar documentos.",this.message.detail=this.user.firstName+" "+this.user.lastName,this.message.type="PendingSign",this.message.urlMessage="#/corporate/pv/documents/doc-list?processId="+t;for(let t=0;t<this.dataDetail.usersWithDocsToSign.length;t++)this.dataDetail.usersWithDocsToSign[t].email!==this.user.email&&i.push(this.dataDetail.usersWithDocsToSign[t].email);this.notificationsService.sendMessage(this.message,i,this.user.email);break;case"SignedSome":this.message.textMessage=this.user.firstName+" "+this.user.lastName,this.message.detail=t,this.message.type="SignedSome",this.message.urlMessage="#/corporate/pv/documents/doc-list?processId="+t;for(let t=0;t<this.dataDetail.usersWithDocsToSign.length;t++)this.dataDetail.usersWithDocsToSign[t].email!==this.user.email&&(i.find(e=>e===this.dataDetail.usersWithDocsToSign[t].email)||i.push(this.dataDetail.usersWithDocsToSign[t].email));i.find(t=>t===this.dataDetail.userLoaded.email)||i.push(this.dataDetail.userLoaded.email),this.notificationsService.sendMessage(this.message,i,this.user.email),"Aprobado"===this.dataDetail.processStatus&&(this.message.textMessage=t,this.message.detail="",this.message.type="FinalSign",this.notificationsService.sendMessage(this.message,i,this.user.email));break;case"FinalSign":this.message.textMessage=t,this.message.detail="",this.message.type="FinalSign",this.message.urlMessage="#/corporate/pv/documents/doc-list?processId="+t;for(let t=0;t<this.dataDetail.usersWithDocsToSign.length;t++)this.dataDetail.usersWithDocsToSign[t].email!==this.user.email&&(i.find(e=>e===this.dataDetail.usersWithDocsToSign[t].email)||i.push(this.dataDetail.usersWithDocsToSign[t].email));i.find(t=>t===this.dataDetail.userLoaded.email)||i.push(this.dataDetail.userLoaded.email),this.notificationsService.sendMessage(this.message,i,this.user.email)}},t=>{console.log(":::::::::ERROR SENDING MESSAGE:::::::::::"),console.log(t)})}personalMessage(t,e,n,i,r=[]){""!==t?this.signatureProcessesService.getDetailSignatureProcesses(t).subscribe(n=>{console.log("::::::::::::::::"),console.log(n),this.dataDetail=n,console.log("==================="),this.message=new GS;const r=[];this.message.textMessage=this.user.firstName+" "+this.user.lastName+": "+i,this.message.detail=t,this.message.type=e,console.log(this.dataDetail),this.message.urlMessage="#/corporate/pv/documents/doc-list?processId="+t;for(let t=0;t<this.dataDetail.usersWithDocsToSign.length;t++)this.dataDetail.usersWithDocsToSign[t].email!==this.user.email&&(r.find(e=>e===this.dataDetail.usersWithDocsToSign[t].email)||r.push(this.dataDetail.usersWithDocsToSign[t].email));r.find(t=>t===this.dataDetail.userLoaded.email)||r.push(this.dataDetail.userLoaded.email),this.notificationsService.sendMessage(this.message,r,this.user.email)},t=>{console.log(t)}):(this.message=new GS,this.message.textMessage=this.user.firstName+" "+this.user.lastName+": "+i,this.message.detail="",this.message.type=e,this.message.urlMessage=n,this.notificationsService.sendMessage(this.message,r,this.user.email))}}class _U{constructor(t,e,n,i,r,o,s,a,c){this.cn=t,this._pageLoaderService=e,this.dialog=n,this.router=i,this.globalVarsService=r,this.sendDocsToSignService=o,this.invitationSignService=s,this.signatureProcessesService=a,this.notificationsService=c,this.authResult={ChallengeQuestions:!1,OTP:!1,FacialRecognition:!1},this.userModel=JSON.parse(sessionStorage.getItem(null==this.globalVarsService.type_sign?"userData":"userDataExternal"))}SendDocsToSign(t,e){this.AuthenticationCode=t,this.IsApproved=e,this._pageLoaderService.show(),this.VerifyAuthentication()}VerifyAuthentication(){this.cn.log("===== VERIFYING AUTHENTICATION TO SIGNATURE ====="),this.invitationSignService.UpdateAuthAttempt(this.getVerifyAuthMethodsData()).subscribe(t=>{this.cn.log("=====> VerifyAuthentication(): ",t),this.authMethods=t,this.validateNonexistentMethod();for(let e=0;e<this.authMethods.length;e++){const t=this.authMethods[e];switch(t.name){case aU.ChallengeQuestions:if(this.authResult.ChallengeQuestions=t.approved,!t.approved)return this.cn.log("=====> REDIRECT TO CHALLENGE QUESTIONS"),this._pageLoaderService.hide(),void this.router.navigate([this.globalVarsService.path_route+"authentication/auth-challenge-questions"]);break;case aU.OTP:if(this.authResult.OTP=t.approved,!t.approved)return this.cn.log("=====> REDIRECT TO OTP"),this._pageLoaderService.hide(),void this.router.navigate([this.globalVarsService.path_route+"authentication/auth-otp"]);break;case aU.FacialRecognition:if(this.authResult.FacialRecognition=t.approved,!t.approved)return this.cn.log("=====> REDIRECT TO MATI"),this._pageLoaderService.hide(),void this.router.navigate([this.globalVarsService.path_route+"authentication/auth-mati"]);break;case aU.Any:if(!t.approved)return this.cn.log("=====> REDIRECT TO SELECT AUTH METHOD"),this._pageLoaderService.hide(),void this.router.navigate([this.globalVarsService.path_route+"authentication/auth-methods"])}}this.cn.log("=====> AUTHENTICATIONS RESULT",this.authResult),this.authResult.ChallengeQuestions&&this.authResult.OTP&&this.authResult.FacialRecognition?this.Sign():this.showGeneralDialog("A\xfan no has aprobado ning\xfan m\xe9todo de autenticaci\xf3n.").subscribe()},t=>{this.cn.log("=====> VerifyAuthentication(): ERROR!"),this.cn.error(t),this.showGeneralDialog("Ha ocurrido un error, por favor vuelva a intentarlo.").subscribe()})}Sign(){this.cn.log("===== SIGNING =====");const t=this.getSignData();this.sendDocsToSignService.sendDocsToSign(t).subscribe(e=>{switch(this.cn.log("=====> Sign(): ",e),this._pageLoaderService.hide(),e.operationCode){case 3e3:const n=new gU(this.signatureProcessesService,this.notificationsService,this.globalVarsService);dg.info(`Tr\xe1mite ${t._idProcess} Firmado exitosamente.`,"Firma Documentos"),n.sendMessage(this.globalVarsService.processId,"SignedSome"),this.router.navigate(this.userModel.role===Ig.Administrator?[this.globalVarsService.path_route+"messages/signed-docs"]:[this.globalVarsService.path_route+"payment/payment-summary"]);break;case 3200:this.showGeneralDialog("El saldo insuficiente para esta operaci\xf3n.").subscribe();break;default:dg.error(`Tr\xe1mite ${t._idProcess} no firmado. ${e.operationMsg}`,"Firma Documentos"),this.showGeneralDialog("Documentos no firmados, por favor intenta nuevamente.").subscribe()}},t=>{this.cn.log("=====> Sign(): ERROR!"),dg.error("Documentos no firmados. "+t,"Firma Documentos"),this.cn.error(t),this._pageLoaderService.hide()})}getVerifyAuthMethodsData(){const t=new bU;return t.idProcess=this.globalVarsService.processId,t.identificationNumber=this.userModel.identificationNumber,t.authMethod=this.globalVarsService.selected_auth_method,t.approved=this.IsApproved,t}getSignData(){const t=new hU;return t._email=this.userModel.email,t._identificationNumber=this.userModel.identificationNumber,t._code=this.AuthenticationCode,t._idProcess=this.globalVarsService.processId,this.cn.log("=====> REQUEST SEND DOCS TO SIGN DATA: ",t),t}validateNonexistentMethod(){0===this.authMethods.filter(t=>t.name===aU.Any).length&&dU.forEach(t=>{if(0===this.authMethods.filter(e=>e.name===t.name).length)switch(t.name){case aU.ChallengeQuestions:this.authResult.ChallengeQuestions=!0;break;case aU.OTP:this.authResult.OTP=!0;break;case aU.FacialRecognition:this.authResult.FacialRecognition=!0}}),this.cn.log("=====> Validating noexistent methods",this.authResult)}showGeneralDialog(t){return this.cn.log("showGeneralDialog()"),this._pageLoaderService.hide(),this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}}const vU=[{positionId:1,responseOptions:[{sequenceId:21348033,questionSequenceId:73,text:"THE ROYAL BANK OF SCOTLAND COLOMBIA S.A."},{sequenceId:21348032,questionSequenceId:73,text:"BANCO CORPBANCA"},{sequenceId:21348031,questionSequenceId:73,text:"BANAGRARIO"},{sequenceId:21348030,questionSequenceId:73,text:"NINGUNA DE LAS ANTERIORES"}],sequenceId:73,text:"\xbfCon qu\xe9 entidad cancel\xf3 o sald\xf3 una cuenta de ahorros en los \xfaltimos seis meses? (MOCK DATA)"},{positionId:2,responseOptions:[{sequenceId:21348028,questionSequenceId:25,text:"ENTRE           $75,000,001 Y           $80,000,000"},{sequenceId:21348029,questionSequenceId:25,text:"ENTRE           $80,000,001 Y           $85,000,000"},{sequenceId:21348026,questionSequenceId:25,text:"No tengo cr\xe9dito de vivienda con la entidad"},{sequenceId:21348027,questionSequenceId:25,text:"ENTRE           $70,000,001 Y           $75,000,000"}],sequenceId:25,text:"El valor inicial de su cr\xe9dito de vivienda con DAVIVIENDA S.A. fue:"},{positionId:3,responseOptions:[{sequenceId:21348035,questionSequenceId:93,text:"COOMEVA COOPERATIVA FINANCIERA"},{sequenceId:21348037,questionSequenceId:93,text:"AV VILLAS"},{sequenceId:21348036,questionSequenceId:93,text:"BANAGRARIO"},{sequenceId:21348034,questionSequenceId:93,text:"NINGUNA DE LAS ANTERIORES"}],sequenceId:93,text:"En los \xfaltimos seis meses, \xbfcon cu\xe1l de las siguientes entidades usted tiene cuenta corriente y cuenta de ahorros?"},{positionId:4,responseOptions:[{sequenceId:21348038,questionSequenceId:95,text:"1"},{sequenceId:21348039,questionSequenceId:95,text:"0"},{sequenceId:21348040,questionSequenceId:95,text:"2"},{sequenceId:21348041,questionSequenceId:95,text:"3 \xf3 M\xc1S"}],sequenceId:95,text:"\xbfEn los ultimos seis meses, en cuantas entidades bancarias distintas tiene cuenta de ahorro?"},{positionId:5,responseOptions:[{sequenceId:21348025,questionSequenceId:4,text:"NOSE"},{sequenceId:21348024,questionSequenceId:4,text:"BANCOLOMBIA"}],sequenceId:4,text:"\xbfCon cu\xe1l de las siguientes entidades usted tiene exenci\xf3n del cuatro por mil?"}];class yU{constructor(){this.email="",this.idProcess="",this.bytesFileVideo=[],this.bytesFileFaceImage=[],this.bytesFileRearImageCC=[],this.bytesFileFrontImageCC=[],this.alias=""}}class wU{constructor(){this.signatureProcesses=new Array}}class CU{constructor(){}get _signatureType(){return this.signatureType}set _signatureType(t){this.signatureType=t}get _messageReject(){return this.messageReject}set _messageReject(t){this.messageReject=t}get _auth_method_type(){return this.auth_method_type}set _auth_method_type(t){this.auth_method_type=t}get _code(){return this.code}set _code(t){this.code=t}get _identificationNumber(){return this.identificationNumber}set _identificationNumber(t){this.identificationNumber=t}get _idProcess(){return this.idProcess}set _idProcess(t){this.idProcess=t}get _email(){return this.email}set _email(t){this.email=t}get _enterpriseId(){return this.enterpriseId}set _enterpriseId(t){this.enterpriseId=t}get _signersType(){return this.signersType}set _signersType(t){this.signersType=t}}class xU{constructor(t,e,n,i,r,o){this.cn=t,this._pageLoaderService=e,this.dialog=n,this.router=i,this.globalVarsService=r,this.massiveSignatureService=o,this.userModel=JSON.parse(sessionStorage.getItem(null==this.globalVarsService.type_sign?"userData":"userDataExternal"))}SendMassiveProcess(t,e){switch(this.AuthenticationCode=t,this.messageReject=e,this._pageLoaderService.show(),this.globalVarsService.type_signature){case pU.MULTIPLE_SIGN:case pU.MULTIPLE_SIGN_UPDATE:this.SignProcess();break;case pU.MULTIPLE_REJECT:this.RejectProcess()}}SignProcess(){this.cn.log("===== MASSIVE SIGNING =====");const t=this.getSignData();this.massiveSignatureService.sendMassiveSignature(t).subscribe(t=>{this.cn.log("=====> Sign(): ",t),this._pageLoaderService.hide(),this.router.navigate([this.globalVarsService.path_route+"messages/signed-docs"])},t=>{this.cn.log("=====> Sign(): ERROR!"),this.cn.error(t),this._pageLoaderService.hide()})}RejectProcess(){this.cn.log("===== MASSIVE REJECT =====");const t=this.getSignData();console.log(t),this.massiveSignatureService.sendMassiveSignature(t).subscribe(t=>{this.cn.log("=====> Sign(): ",t),this._pageLoaderService.hide(),this.router.navigate([this.globalVarsService.path_route+"messages/reject-process-massive"])},t=>{this.cn.log("=====> Reject(): ERROR!"),this.cn.error(t),this._pageLoaderService.hide()})}getSignData(){const t=new wU,e=new Array;return this.globalVarsService.signatureProcesses.forEach(t=>{const n=new CU;n._auth_method_type="none",n._email=this.userModel.email,n._enterpriseId=this.userModel.enterpriseId,n._identificationNumber=this.userModel.identificationNumber,n._idProcess=t,n._signersType=void 0===this.globalVarsService.select_signers_type?"*":this.globalVarsService.select_signers_type,n._code=void 0===this.AuthenticationCode?"*":this.AuthenticationCode,n._signatureType=void 0===this.globalVarsService.type_signature?"*":this.globalVarsService.type_signature,n._messageReject=void 0===this.messageReject?"*":this.messageReject,e.push(n)}),t.signatureProcesses=e,this.cn.log("=====> REQUEST SEND MASSIVE PROCESS TO SIGN DATA: ",t),t}showGeneralDialog(t){return this.cn.log("showGeneralDialog()"),this._pageLoaderService.hide(),this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}}let OU=(()=>{class t{constructor(t){this.httpClient=t}getQuestionnaire(t){return this.httpClient.post(Jl+"getquestionnaire",t)}getAdditionalQuestionnaire(t){return this.httpClient.post(Jl+"getadditionalquestionnaire",t)}evaluateQuestionnaire(t,e){return this.httpClient.post(Jl+"evaluatequestionnaire/"+e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class SU{constructor(){this.response=[]}}class TU{}class DU{constructor(){this.cityCode=1,this.departmentCode=19,this.phone=1}}const kU=["gum"],PU=["errorMsgElement"],EU=["record"],AU=["play"],IU=["download"],MU=["valueVideo"],UU=["valueImage"],LU=["valueFrontImage"],RU=["valueRearImage"];function NU(t,e){1&t&&i.Lc(0,"Foto")}let FU=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d,h){this._pageLoaderService=t,this._pageLoaderServiceSign=e,this.cn=n,this.globalVarService=i,this.captureVideoimagenService=r,this.router=o,this.route=s,this.dialog=a,this.invitationSignService=c,this.sendDocsToSignService=l,this.massiveSignatureService=u,this.signatureProcessesService=d,this.notificationsService=h,this.disableEnviar=!0,this.arrayVideo=[],this.arrayImage=[],this.arrayFrontImage=[],this.arrayRearImage=[],this.arrayVideoFinal=[],this.arrayImageFinal=[],this.arrayFrontImageFinal=[],this.arrayRearImageFinal=[],this.resultFinal={},this.imageFront=!1,this.imageRear=!1,this.isLinear=!0,this.recordedBlobs=[],this.constraints={video:{width:{ideal:400},height:{ideal:300}}}}ngOnInit(){this.startVideo(),this.authenticationCode=this.route.snapshot.paramMap.get("authenticationCode"),console.log(this.authenticationCode)}ngOnDestroy(){closeVideo()}ngAfterViewInit(){}startVideo(){clickStart("gum")}clickStartRecording(){clickRecordButton()}clickPlay(){clickPlayButton(),this.disableEnviar=!1}stopRecording(){this.mediaRecorder.stop()}close(){closeVideo()}saveVideoOrImage(){closeVideo(),this.arrayImage=this.valueImage.nativeElement.value.split(","),this.arrayImage.forEach((t,e)=>{const n=Number(t);this.arrayImageFinal.push(n)}),this.resultFinal.arrayImage=this.arrayImageFinal,this.resultFinal.arrayVideo=null,this.resultFinal.arrayFrontImage=null,this.resultFinal.arrayRearImage=null,console.log(this.resultFinal),this.saveCaptureVideoImagen(this.authenticationCode,this.resultFinal)}clickTakePicture(){takePicture()}clickOpencameraStep2(){clickStart("gum")}clickOpencameraVideoStep3(){clickStart("gum_2")}clickTakeFrontPictureCC(){this.imageFront=!0,takeFrontPictureCC()}clickTakeRearPictureCC(){this.imageRear=!0,takeRearPictureCC()}saveCaptureVideoImagen(t,e){this._pageLoaderService.show();const n=this.readUserData(),i=new yU;i.email=n.email,i.alias=r.environment,i.idProcess=this.globalVarService.processId,i.bytesFileVideo=e.arrayVideo,i.bytesFileFaceImage=e.arrayImage,i.bytesFileFrontImageCC=e.arrayFrontImage,i.bytesFileRearImageCC=e.arrayRearImage,this.captureVideoimagenService.add(i).subscribe(e=>{this.cn.log("=====> saveCaptureVideoImagen(): ",e),this.sendDocsToSign(t),this._pageLoaderService.hide()},t=>{this.cn.log("=====> Error saveCaptureVideoImagen(): ",t),this.showGeneralDialog("Ocurrio un error al enviar el video, por favor intenta nuevamente.").subscribe(),this._pageLoaderService.hide(),this.startVideo()})}readUserData(){return this.cn.log("readUserData()"),JSON.parse(sessionStorage.getItem(null==this.globalVarService.type_sign?"userData":"userDataExternal"))}showGeneralDialog(t){return this.cn.log("showGeneralDialog()"),this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}sendDocsToSign(t){if(this.cn.log("===== SEND DOCS TO SIGN (OTP) ====="),this.globalVarService.selected_auth_method=aU.OTP,this.globalVarService.type_signature===pU.SIMPLE)new _U(this.cn,this._pageLoaderServiceSign,this.dialog,this.router,this.globalVarService,this.sendDocsToSignService,this.invitationSignService,this.signatureProcessesService,this.notificationsService).SendDocsToSign(t,!0);else{new xU(this.cn,this._pageLoaderServiceSign,this.dialog,this.router,this.globalVarService,this.massiveSignatureService).SendMassiveProcess(t);const e=new gU(this.signatureProcessesService,this.notificationsService,this.globalVarService);this.globalVarService.type_signature===pU.MULTIPLE_SIGN_UPDATE&&(dg.info(`Tr\xe1mite ${this.globalVarService.processId} Firmado exitosamente.`,"Firma Documentos"),e.sendMessage(this.globalVarService.processId,"SignedSome"))}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(pg),i.Ob(uU),i.Ob(Gi),i.Ob(cg),i.Ob(bg),i.Ob(Zs),i.Ob(Fo),i.Ob(Jb),i.Ob(Cg),i.Ob(Ag),i.Ob(xg),i.Ob(Lg),i.Ob(Sg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-capture-video"]],viewQuery:function(t,e){var n;1&t&&(i.Qc(kU,!0),i.Qc(PU,!0),i.Qc(EU,!0),i.Qc(AU,!0),i.Qc(IU,!0),i.Qc(MU,!0),i.Qc(UU,!0),i.Qc(LU,!0),i.Qc(RU,!0)),2&t&&(i.tc(n=i.dc())&&(e.gumVideo=n.first),i.tc(n=i.dc())&&(e.errorMsgElement=n.first),i.tc(n=i.dc())&&(e.recordButton=n.first),i.tc(n=i.dc())&&(e.playButton=n.first),i.tc(n=i.dc())&&(e.downloadButton=n.first),i.tc(n=i.dc())&&(e.valueVideo=n.first),i.tc(n=i.dc())&&(e.valueImage=n.first),i.tc(n=i.dc())&&(e.valueFrontImage=n.first),i.tc(n=i.dc())&&(e.valueRearImage=n.first))},decls:39,vars:1,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],["type","hidden","value","","id","arrayVideo"],["valueVideo",""],["type","hidden","value","","id","arrayPicture"],["valueImage",""],["type","hidden","value","","id","arrayFrontPicture"],["valueFrontImage",""],["type","hidden","value","","id","arrayRearPicture"],["valueRearImage",""],["id","canvanPicture",2,"display","none"],[1,"box-videoPhoto"],[1,"stepper-media",3,"linear"],["stepper",""],["matStepLabel",""],[1,"cnt-MediaImg"],["id","gum","autoplay","","muted","",1,"video"],["gum",""],["id","face_image","src","",1,"canva-MediaImg",2,"display","none"],[1,"pt-2","pb-4"],["mat-stroked-button","","color","accent",3,"click"],["id","errorMsg"],["errorMsgElement",""],[1,"cnt_datesProcess"],["mat-raised-button","","matStepperPrevious","",1,"mr-1"],["id","next_step_2","mat-raised-button","","color","primary","disabled","","matStepperNext","",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"h2"),i.Lc(3," Archivos para validaci\xf3n "),i.Tb(),i.Ub(4,"p"),i.Lc(5," Como m\xe9todo de validaci\xf3n adicional, requerimos una fotograf\xeda tuya en donde te identifiques. "),i.Tb(),i.Pb(6,"input",2,3),i.Pb(8,"input",4,5),i.Pb(10,"input",6,7),i.Pb(12,"input",8,9),i.Pb(14,"canvas",10),i.Ub(15,"div",11),i.Ub(16,"mat-vertical-stepper",12,13),i.Ub(18,"mat-step"),i.Jc(19,NU,1,0,"ng-template",14),i.Ub(20,"div"),i.Ub(21,"p"),i.Lc(22,"Toma una foto de tu rostro en vista frontal."),i.Tb(),i.Ub(23,"div",15),i.Pb(24,"video",16,17),i.Pb(26,"img",18),i.Tb(),i.Ub(27,"div",19),i.Ub(28,"button",20),i.cc("click",(function(){return e.clickTakePicture()})),i.Lc(29,"Tomar Foto"),i.Tb(),i.Tb(),i.Ub(30,"div"),i.Pb(31,"span",21,22),i.Tb(),i.Tb(),i.Pb(33,"div",23),i.Ub(34,"div"),i.Ub(35,"button",24),i.Lc(36,"Volver"),i.Tb(),i.Ub(37,"button",25),i.cc("click",(function(){return e.saveVideoOrImage()})),i.Lc(38,"Finalizar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(16),i.mc("linear",e.isLinear))},directives:[Yw,zw,Lw,zm,Kw,$w],styles:[".img[_ngcontent-%COMP%], .video[_ngcontent-%COMP%]{width:100%;height:35%}.cnt-MediaImg[_ngcontent-%COMP%]{position:relative}.cnt-MediaImg[_ngcontent-%COMP%]   .canva-MediaImg[_ngcontent-%COMP%]{background:#efeae5;position:absolute;border:2px solid #efeae5;border-radius:10px;right:16px;bottom:20px;width:120px;height:80px;box-shadow:4px 4px 14px 0 rgba(50,50,50,.2)}.note-video[_ngcontent-%COMP%]{font-size:12px}.quetions-media[_ngcontent-%COMP%]{font-size:14px;padding-left:24px}.box-videoPhoto[_ngcontent-%COMP%]{background-color:#fff;padding:1rem;border-radius:8px;width:100%;max-width:600px;margin:4rem auto 0;box-shadow:0 0 8px 0 rgba(0,0,0,.15)}.viewsID_Document[_ngcontent-%COMP%]   .item_viewsID[_ngcontent-%COMP%]{margin-bottom:1.4rem}.viewsID_Document[_ngcontent-%COMP%]   .item_viewsID[_ngcontent-%COMP%]:last-child{margin-bottom:0}.viewsID_Document[_ngcontent-%COMP%]   .item_viewsID[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{margin:0}.viewsID_Document[_ngcontent-%COMP%]   .item_viewsID[_ngcontent-%COMP%]   .cntID_Document[_ngcontent-%COMP%]{width:99%;padding:10px}.viewsID_Document[_ngcontent-%COMP%]   .item_viewsID[_ngcontent-%COMP%]   .cntID_Document[_ngcontent-%COMP%]   .preview_ImgDocument[_ngcontent-%COMP%]{overflow:hidden;background-color:#dfdfdf;border:2px solid #b3b3b3;width:100px;height:70px;margin-left:16px}.viewsID_Document[_ngcontent-%COMP%]   .item_viewsID[_ngcontent-%COMP%]   .cntID_Document[_ngcontent-%COMP%]   .preview_ImgDocument[_ngcontent-%COMP%]   .imgID_Document[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.viewsID_Document[_ngcontent-%COMP%]   .item_viewsID[_ngcontent-%COMP%]   .cntID_Document[_ngcontent-%COMP%]   .icoPreview_ImgDocument.c-check[_ngcontent-%COMP%]{color:#78a34f}.viewsID_Document[_ngcontent-%COMP%]   .item_viewsID[_ngcontent-%COMP%]   .cntID_Document[_ngcontent-%COMP%]   .icoPreview_ImgDocument.c-alert[_ngcontent-%COMP%]{color:#f6d55c}"]}),t})();const VU=["stepper"];function jU(t,e){1&t&&i.Lc(0,"FECHA DE EXPEDICI\xd3N DEL DOCUMENTO DE IDENTIDAD")}function BU(t,e){if(1&t&&(i.Ub(0,"mat-option",19),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t," ")}}function zU(t,e){if(1&t&&(i.Ub(0,"mat-option",19),i.Lc(1),i.hc(2,"titlecase"),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.value),i.Db(1),i.Nc(" ",i.ic(2,2,t.name)," ")}}function qU(t,e){if(1&t&&(i.Ub(0,"mat-option",19),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t," ")}}function HU(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",20),i.Ub(1,"h6"),i.Lc(2,"DATOS DE PRUEBA"),i.Tb(),i.Ub(3,"div",7),i.Ub(4,"div",21),i.Ub(5,"mat-form-field"),i.Ub(6,"input",22),i.cc("ngModelChange",(function(e){return i.yc(t),i.gc().testingIdentificationNumber=e})),i.Tb(),i.Tb(),i.Tb(),i.Ub(7,"div",21),i.Ub(8,"mat-form-field"),i.Ub(9,"input",23),i.cc("ngModelChange",(function(e){return i.yc(t),i.gc().testingLastName=e})),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"div",7),i.Ub(11,"div",21),i.Ub(12,"mat-checkbox",24),i.cc("change",(function(){i.yc(t);const e=i.gc();return e.testingEvaluateQuestionnaire=!e.testingEvaluateQuestionnaire})),i.Lc(13,"Evaluar cuestionario"),i.Tb(),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.Db(6),i.mc("ngModel",t.testingIdentificationNumber),i.Db(3),i.mc("ngModel",t.testingLastName)}}function GU(t,e){1&t&&i.Lc(0,"PREGUNTAS DE VALIDACI\xd3N DE IDENTIDAD ")}function JU(t,e){if(1&t&&(i.Ub(0,"mat-radio-button",29),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.text," ")}}function YU(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div"),i.Ub(1,"label",26),i.Lc(2),i.Tb(),i.Ub(3,"mat-radio-group",27),i.cc("ngModelChange",(function(n){return i.yc(t),e.$implicit.selectedAnswer=n})),i.Jc(4,JU,2,2,"mat-radio-button",28),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit;i.Db(2),i.Oc(" ",t.positionId,". ",t.text," "),i.Db(1),i.nc("name",t.positionId),i.mc("ngModel",t.selectedAnswer),i.Db(1),i.mc("ngForOf",t.responseOptions)}}function $U(t,e){if(1&t&&(i.Ub(0,"div"),i.Jc(1,YU,5,5,"div",25),i.Tb()),2&t){const t=i.gc();i.Db(1),i.mc("ngForOf",t.questionnaireModel.questions)}}let WU=(()=>{class t{constructor(t,e,n,i,o,s,a,c,l,u,d,h,p,m,f){this.challengeQuestionsService=t,this.invitationSignService=e,this.sendDocsToSignService=n,this.massiveSignatureService=i,this.globalVarService=o,this.router=s,this.dialog=a,this.formBuilder=c,this.cn=l,this._pageLoaderService=u,this._pageLoaderServiceSign=d,this._location=h,this.captureVideoimagenService=p,this.signatureProcessesService=m,this.notificationsService=f,this.testingEnvironment="1"===r.test,this.testingIdentificationNumber="",this.testingLastName="",this.testingEvaluateQuestionnaire=!1,this.days=[],this.months=[],this.years=[],this.monthDisabled=!0,this.dayDisabled=!0,this.isEnableThirdStep=!1,this.questionnaireModel=new sU,this.dateIssueForm=this.formBuilder.group({day:["",[Ha.required]],month:["",[Ha.required]],year:["",[Ha.required]]})}ngOnInit(){this.setDateControls()}getChallengeQuestions(){this.cn.log("getChallengeQuestions()");const t=this.readUserData(),e=new DU;e.identificationDateOfIssue=this.getIssueDate(),e.lastName=t.lastName.split(" ")[0],e.identificationNumber=parseInt(t.identificationNumber,10);const n=this.findTypeDocument(null==t?void 0:t.typeDocument).toString();e.identificationType=+n,this.testingEnvironment?""!==this.testingLastName&&""!==this.testingIdentificationNumber?(e.lastName=this.testingLastName,e.identificationNumber=parseInt(this.testingIdentificationNumber,10),this.getQuestionnaireReal(e)):(this.cn.log("=====> SKIP OBTAINING QUESTIONNAIRE"),this.testingEvaluateQuestionnaire=!1,this.isEnableThirdStep=!0,this.questionnaireModel.questionnaireSequenceId=14102455,this.questionnaireModel.questions=vU,dg.info("Confrontaci\xf3n de identidad aprobada.","RETO")):this.getQuestionnaireReal(e)}getQuestionnaireReal(t){this._pageLoaderService.show(),this.challengeQuestionsService.getQuestionnaire(t).subscribe(t=>{switch(this.cn.log("=====> GetQuestionnaire response: ",t),t.operationCode){case 5e3:this.SetUpQuestionnaire(t.operationBody),this._pageLoaderService.hide();break;default:this.showQuestionnaireError()}},t=>{this.cn.error("ERROR getQuestionnaire(): ",t),this.showQuestionnaireError()})}evaluateQuestionnaire(){this.cn.log("evaluateQuestionnaire()");const t=new SU;t.questionnaireSequenceId=this.questionnaireModel.questionnaireSequenceId,this.questionnaireModel.questions.forEach(e=>{const n=new TU;n.questionSequenceId=e.selectedAnswer.questionSequenceId,n.sequenceId=e.selectedAnswer.sequenceId,t.response.push(n)}),this.cn.log("evaluateQuestionnaireModel: ",t),this.testingEnvironment?this.testingEvaluateQuestionnaire?this.evaluateQuestionnaireReal(t):(this.cn.log("=====> SKIP EVALUATION"),this.router.navigate([this.globalVarService.path_route+"multimedia/capture",t.questionnaireSequenceId.toString()])):this.evaluateQuestionnaireReal(t)}evaluateQuestionnaireReal(t){this._pageLoaderService.show(),this.challengeQuestionsService.evaluateQuestionnaire(t,this.globalVarService.processId).subscribe(e=>{switch(this.cn.log("=====> EvaluateQuestionnaire response: ",e),e.operationCode){case 5e3:this.CheckEvaluationResult(e.operationBody,t.questionnaireSequenceId.toString());break;case 3200:this.showQuestionnaireError("Saldo insuficiente.");break;default:this.showQuestionnaireError()}},t=>{this.cn.error("ERROR evaluateQuestionnaire() ===> ",t),this.showQuestionnaireError()})}sendDocsToSign(t){this.cn.log("===== SEND DOCS TO SIGN (CHALLENGE QUESTIONS) ====="),this.globalVarService.selected_auth_method=aU.ChallengeQuestions,this.globalVarService.type_signature===pU.SIMPLE?new _U(this.cn,this._pageLoaderServiceSign,this.dialog,this.router,this.globalVarService,this.sendDocsToSignService,this.invitationSignService,this.signatureProcessesService,this.notificationsService).SendDocsToSign(t,!0):new xU(this.cn,this._pageLoaderServiceSign,this.dialog,this.router,this.globalVarService,this.massiveSignatureService).SendMassiveProcess(t)}SetUpQuestionnaire(t){if(void 0!==t.processResponse.responseCode)switch(t.processResponse.responseCode){case 1:this.isEnableThirdStep=!0,this.questionnaireModel.questionnaireSequenceId=t.questionnaireSequenceId,this.questionnaireModel.questions=t.questions;break;default:this.showQuestionnaireError(t.processResponse.processDescription)}}CheckEvaluationResult(t,e){if(void 0!==t.proccessResponse.code)switch(t.proccessResponse.code){case 0:dg.info("Confrontaci\xf3n de identidad rechazada.","RETO"),this.showQuestionnaireError("Confrontaci\xf3n rechazada, por favor intente de nuevo.Recuerde que tiene un l\xedmite m\xe1ximo de 3 intentos diarios");break;case 1:dg.info("Confrontaci\xf3n de identidad aprobada.","RETO"),this.cn.log("sign docs"),this._pageLoaderService.hide(),this.router.navigate([this.globalVarService.path_route+"multimedia/capture",e]);break;case 2:this._pageLoaderService.hide(),dg.info("Confrontaci\xf3n de identidad terminada, se requiere responder nuevas preguntas.","RETO"),this.showGeneralDialog("Se actualizar\xe1n las preguntas. Por favor, responda nuevamente").subscribe(t=>this.getChallengeQuestions());break;default:this.showQuestionnaireError(t.proccessResponse.description)}}showQuestionnaireError(t){this._pageLoaderService.hide(),void 0===t&&(t="\xa1Ups! Ha ocurrido un error, vuelve a intentarlo m\xe1s tarde."),this.showGeneralDialog(t).subscribe(t=>{this.stepper.previous(),this.isEnableThirdStep=!1})}readUserData(){return this.cn.log("readUserData()"),JSON.parse(sessionStorage.getItem(null==this.globalVarService.type_sign?"userData":"userDataExternal"))}checkIfAllAnswersIsSelected(){this.cn.log("checkIfAllAnswersIsSelected()");let t=0;this.questionnaireModel.questions.forEach(e=>{void 0!==e.selectedAnswer&&++t}),t!==this.questionnaireModel.questions.length?this.showGeneralDialog("Debe contestar todas las preguntas para continuar").subscribe():this.evaluateQuestionnaire()}getIssueDate(){return Object(o.J)(new Date(this.dateIssueForm.controls.year.value,this.dateIssueForm.controls.month.value,this.dateIssueForm.controls.day.value),"dd/MM/yyyy","es")}setDateControls(){for(let t=2020;t>=1920;t--)this.years.push(t);for(let t=0;t<=11;t++){const e=new Date((new Date).getFullYear(),t);this.months.push({name:Object(o.J)(e,"MMMM","es"),value:e.getMonth()})}}monthChanges(){const t=new Date(this.dateIssueForm.controls.year.value,this.dateIssueForm.controls.month.value+1,0);this.days=[],this.dateIssueForm.controls.day.setValue("");for(let e=1;e<=t.getDate();e++)this.days.push(e.toString());this.dayDisabled=!1}showGeneralDialog(t){return this.cn.log("showGeneralDialog()"),this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}findTypeDocument(t){for(const e in lU)if(e===t)return lU[e];return""}cancelAuth(){this.cn.log("=====> Authentication step (ChallengeQuestions) canceled"),this._location.back()}showGeneralDialogCapture(t,e,n){this.cn.log("showGeneralDialog()"),void 0===n&&(n=FU);const i=this.dialog.open(FU,{disableClose:!0,maxWidth:"520px",data:{title:t}});return i.afterClosed().subscribe(t=>{void 0!==t&&this.saveCaptureVideoImagen(e,t)}),i.afterClosed()}saveCaptureVideoImagen(t,e){this._pageLoaderService.show();const n=sessionStorage.getItem("arrayVideo");console.log(n);const i=this.readUserData(),o=new yU;o.email=i.email,o.alias=r.environment,o.idProcess=this.globalVarService.processId,o.bytesFileVideo=e.arrayVideo,o.bytesFileFaceImage=e.arrayImage,o.bytesFileFrontImageCC=e.arrayFrontImage,o.bytesFileRearImageCC=e.arrayRearImage,console.log(o),this.captureVideoimagenService.add(o).subscribe(e=>{this.sendDocsToSign(t),this._pageLoaderService.hide()},t=>{this.showGeneralDialog("Ocurrio un error al enviar el video, por favor intenta nuevamente.").subscribe(),this._pageLoaderService.hide()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(OU),i.Ob(Cg),i.Ob(Ag),i.Ob(xg),i.Ob(cg),i.Ob(Zs),i.Ob(Jb),i.Ob(fl),i.Ob(Gi),i.Ob(pg),i.Ob(uU),i.Ob(o.n),i.Ob(bg),i.Ob(Lg),i.Ob(Sg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-auth-challenge-questions"]],viewQuery:function(t,e){var n;1&t&&i.Qc(VU,!0),2&t&&i.tc(n=i.dc())&&(e.stepper=n.first)},decls:40,vars:11,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center","mb-5"],[1,"chQuestions-steps",3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"row"],[1,"col-md-4"],["formControlName","year",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["formControlName","month",3,"disabled","selectionChange"],["formControlName","day",3,"disabled"],["class","p-3 my-2 border",4,"ngIf"],["mat-raised-button","","matStepperPrevious","",1,"mr-3",3,"click"],["mat-raised-button","","color","primary","matStepperNext","",3,"disabled","click"],[4,"ngIf"],[1,"button-row","mt-4","text-center"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[1,"p-3","my-2","border"],[1,"col-6"],["matInput","","placeholder","Documento de prueba","type","number",3,"ngModel","ngModelChange"],["matInput","","placeholder","Apellido de prueba",3,"ngModel","ngModelChange"],[3,"change"],[4,"ngFor","ngForOf"],["id","example-radio-group-label",1,"radio-group-label"],["aria-labelledby","example-radio-group-label",1,"example-radio-group",3,"ngModel","name","ngModelChange"],["class","example-radio-button",3,"value",4,"ngFor","ngForOf"],[1,"example-radio-button",3,"value"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"mat-vertical-stepper",2,3),i.Ub(4,"mat-step",4),i.Jc(5,jU,1,0,"ng-template",5),i.Ub(6,"div"),i.Ub(7,"form",6),i.Ub(8,"div",7),i.Ub(9,"div",8),i.Ub(10,"mat-form-field"),i.Ub(11,"mat-label"),i.Lc(12,"A\xf1o"),i.Tb(),i.Ub(13,"mat-select",9),i.cc("selectionChange",(function(){return e.monthDisabled=!1})),i.Jc(14,BU,2,2,"mat-option",10),i.Tb(),i.Tb(),i.Tb(),i.Ub(15,"div",8),i.Ub(16,"mat-form-field"),i.Ub(17,"mat-label"),i.Lc(18,"Mes"),i.Tb(),i.Ub(19,"mat-select",11),i.cc("selectionChange",(function(){return e.monthChanges()})),i.Jc(20,zU,3,4,"mat-option",10),i.Tb(),i.Tb(),i.Tb(),i.Ub(21,"div",8),i.Ub(22,"mat-form-field"),i.Ub(23,"mat-label"),i.Lc(24,"D\xeda"),i.Tb(),i.Ub(25,"mat-select",12),i.Jc(26,qU,2,2,"mat-option",10),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Jc(27,HU,14,2,"div",13),i.Ub(28,"div"),i.Ub(29,"button",14),i.cc("click",(function(){return e.cancelAuth()})),i.Lc(30,"VOLVER"),i.Tb(),i.Ub(31,"button",15),i.cc("click",(function(){return e.getChallengeQuestions()})),i.Lc(32," SIGUIENTE "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(33,"mat-step"),i.Jc(34,GU,1,0,"ng-template",5),i.Jc(35,$U,2,1,"div",16),i.Ub(36,"div",17),i.Ub(37,"button",18),i.cc("click",(function(){return e.checkIfAllAnswersIsSelected()})),i.Lc(38,"Continuar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(39,"aswc-page-loader-default")),2&t&&(i.Db(2),i.mc("linear",!0),i.Db(2),i.mc("stepControl",e.dateIssueForm),i.Db(3),i.mc("formGroup",e.dateIssueForm),i.Db(7),i.mc("ngForOf",e.years),i.Db(5),i.mc("disabled",e.monthDisabled),i.Db(1),i.mc("ngForOf",e.months),i.Db(5),i.mc("disabled",e.dayDisabled),i.Db(1),i.mc("ngForOf",e.days),i.Db(1),i.mc("ngIf",e.testingEnvironment),i.Db(4),i.mc("disabled",e.dateIssueForm.invalid),i.Db(4),i.mc("ngIf",e.isEnableThirdStep))},styles:[".radio-group-label[_ngcontent-%COMP%]{font-weight:700}.example-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0;text-transform:lowercase}.example-radio-button[_ngcontent-%COMP%]{margin:5px}"]}),t})();var KU=n("yrbL");let QU=(()=>{class t{constructor(t){this.httpClient=t}getMatiSteps(t,e){return this.httpClient.get(tu+t+"/"+e)}deleteMatiSteps(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.delete(tu+t,e).pipe(Object(KU.shareReplay)())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),XU=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u){this.cn=t,this.router=e,this.sendDocsToSignService=n,this.massiveSignatureService=i,this.authMatiService=r,this.globalVarService=o,this._pageLoaderServiceMati=s,this.invitationSignService=a,this.dialog=c,this.signatureProcessesService=l,this.notificationsService=u,this.result=0}ngAfterViewInit(){this.setCustomId(),renderMatiButton(this.customId)}ngOnDestroy(){this.authMatiService.deleteMatiSteps(this.customId).subscribe(),clearInterval(this.intervalFunc)}checkFinishedAuth(){this.result=0,clearInterval(this.intervalFunc);const t=this;this.authMatiService.deleteMatiSteps(this.customId).subscribe(),this.intervalFunc=setInterval((function(){switch(t.cn.log("checkFinishedAuth()...","result: ",t.result),null===document.querySelector(".mati-noscroll")&&1===t.result&&(console.log("result"),t._pageLoaderServiceMati.show()),t.checkAuthenticationResult(),t.result){case 1:break;case 2:clearInterval(t.intervalFunc),t.showGeneralDialog("Autenticaci\xf3n fallida, Intenta nuevamente.").subscribe();break;case 3:clearInterval(t.intervalFunc),t.sendDocsToSign(t.customId);break;default:t._pageLoaderServiceMati.hide()}}),2e3)}setCustomId(){this.customId=Math.random().toString(36).substring(2)+(new Date).getTime().toString(36)}checkAuthenticationResult(){this.cn.log("checkAuthenticationResult()");const t=this;this.authMatiService.getMatiSteps(this.customId,this.globalVarService.processId).subscribe(e=>{let n=!1,i=!1;switch(e.operationCode){case 1e3:e.operationBody.length>0&&(this.cn.log("matiSteps:",e.operationBody),e.operationBody.forEach(t=>{if("verification_completed"===t.eventName)return this.cn.log("=====> FACIAL RECOGNITION HAS BEEN COMPLETED!"),void(n=!0)}),e.operationBody.forEach(t=>{""===t.error||(i=!0)}));break;case 3200:clearInterval(this.intervalFunc),this.showGeneralDialog("Saldo insuficiente.");break;default:clearInterval(this.intervalFunc),this.showGeneralDialog("Ha ocurrido un error, vuelve a intentarlo. #"+e.operationCode)}n?n&&i?t.result=2:n&&!i&&(t.result=3):t.result=1,this.cn.log("isVerificationCompleted:",n,"thereError:",i,"result:",t.result)},t=>{this.cn.log("ERROR getMatiSteps(): ",t)})}sendDocsToSign(t){this.cn.log("===== SEND DOCS TO SIGN (MATI) ====="),this.globalVarService.selected_auth_method=aU.FacialRecognition,this.globalVarService.type_signature===pU.SIMPLE?new _U(this.cn,this._pageLoaderServiceMati,this.dialog,this.router,this.globalVarService,this.sendDocsToSignService,this.invitationSignService,this.signatureProcessesService,this.notificationsService).SendDocsToSign(t,!0):new xU(this.cn,this._pageLoaderServiceMati,this.dialog,this.router,this.globalVarService,this.massiveSignatureService).SendMassiveProcess(t)}showGeneralDialog(t){return this.cn.log("showGeneralDialog()"),this._pageLoaderServiceMati.hide(),this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Gi),i.Ob(Zs),i.Ob(Ag),i.Ob(xg),i.Ob(QU),i.Ob(cg),i.Ob(hg),i.Ob(Cg),i.Ob(Jb),i.Ob(Lg),i.Ob(Sg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-auth-mati"]],decls:14,vars:0,consts:[[1,""],[1,"container","wt-430","pt-4","pb-4","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/face-detection.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],["id","itemResetPsw",1,"form-login"],["id","renderDiv","data-product","kyc","data-country","mx","data-style","#4fbfd3",1,"mati-button","responsive",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"h2"),i.Lc(7,"Reconocimiento facial"),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"div",7),i.Ub(10,"div"),i.Ub(11,"p"),i.Lc(12,"Haz clic en el bot\xf3n para iniciar el proceso de validaci\xf3n de identidad a trav\xe9s de reconocimiento facial. "),i.Tb(),i.Tb(),i.Ub(13,"div",8),i.cc("click",(function(){return e.checkFinishedAuth()})),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})();var ZU=function(t){return t.SIGNATURE="SIGNATURE",t.AUTH_QUESTIONS="AUTH_QUESTIONS",t.AUTH_OTP="AUTH_OTP",t.AUTH_FACIAL_RECOGNITION="AUTH_FACIAL_RECOGNITION",t}({});class tL{static SetUpPaginator(t){t._intl.nextPageLabel="P\xe1gina siguiente",t._intl.itemsPerPageLabel="Items por p\xe1gina.",t._intl.previousPageLabel="P\xe1gina anterior",t._intl.firstPageLabel="Primera p\xe1gina",t._intl.lastPageLabel="\xdaltima p\xe1gina"}static GetFullPeriodTime(t){const e=new Date(Date.parse(t));return`1 - ${this.GetMaximumDate(t).getDate()} ${Object(o.J)(e,"MMMM","es")} ${e.getFullYear()}`}static GetMinimumDate(t){const e=new Date(Date.parse(t));return new Date(e.getFullYear(),e.getMonth(),1)}static GetMaximumDate(t){const e=new Date(Date.parse(t));return new Date(e.getFullYear(),e.getMonth()+1,0)}static GetTransactionDescription(t){switch(t){case ZU.SIGNATURE:return"Firma de Documentos";case ZU.AUTH_QUESTIONS:return"Preguntas Reto";case ZU.AUTH_OTP:return"Autenticaci\xf3n por E-Mail";case ZU.AUTH_FACIAL_RECOGNITION:return"Reconocimiento Facial"}}static GetPdfFromBase64(t,e){const n="data:application/pdf;base64,"+t,i=document.createElement("a");i.href=n,i.download=e,i.click(),i.remove()}static ValidateLocation(t,e){let n=!1;return t.filter(t=>{t.long_name.includes(e)&&(n=!0)}),console.log("ValidateLocation: ",n),n}}let eL=(()=>{class t{constructor(t,e,n,i,r,o,s,a){this.router=t,this.dialog=e,this._location=n,this.globalVarService=i,this.cn=r,this.invitationSignService=o,this._pageLoaderService=s,this.location=a,this.AuthMethod=aU,this.selection_=!1}ngOnInit(){this.activeLocation(),this.activeAuthMethod=void 0!==this.globalVarService.authMethods&&this.globalVarService.authMethods.length>0?this.globalVarService.authMethods[0].name:aU.Any}activeLocation(){const t=JSON.parse(sessionStorage.getItem("notaryData"));this.location.getPosition().then(e=>{dg.info(`Latitud:  ${e.lat} Longitud: ${e.lng}.`,"Ubicacion"),this.cn.log("location!!",e.lat+","+e.lng),""!==e.err?this.showDialog("",{title:"Informaci\xf3n",content:e.err,actions:[{text:"Aceptar",value:"accepted",funct:"closeLocation"}]}):this.location.getCity(e.lat,e.lng).subscribe(e=>{this.cn.log("City!!!",e.results[0].address_components),tL.ValidateLocation(e.results[0].address_components,t.city)||(this._pageLoaderService.hide(),this.showDialog("",{title:"Informaci\xf3n",content:"Su ubicaci\xf3n no concuerda con el circulo notarial.",actions:[{text:"Aceptar",value:"accepted",funct:"closeLocation"}]}))})})}changeActive(t,e){this.cn.log("changeActive()"),this.globalVarService.selected_auth_method=t;const n=document.getElementsByClassName("card-selected");for(const i of n)i.classList.remove("active");e.classList.add("active"),this.selection_=!0}nextStep(){this.cn.log("nextStep()"),this.cn.log("globalVarService.selected_auth_method: ",this.globalVarService.selected_auth_method),this.cn.log("globalVarService.path_route: ",this.globalVarService.path_route),this._pageLoaderService.show();const t=JSON.parse(sessionStorage.getItem(null==this.globalVarService.type_sign?"userData":"userDataExternal")),e=new bU;e.idProcess=this.globalVarService.processId,e.identificationNumber=t.identificationNumber,e.authMethod=this.globalVarService.selected_auth_method,this.invitationSignService.UpdateAuthMethod(e).subscribe(t=>{switch(this.cn.log("=====> UpdateAuthMethod() Success: ",t),this._pageLoaderService.hide(),this.globalVarService.selected_auth_method){case this.AuthMethod.ChallengeQuestions:this.router.navigate([this.globalVarService.path_route+"authentication/auth-challenge-questions"]);break;case this.AuthMethod.OTP:this.router.navigate([this.globalVarService.path_route+"authentication/auth-otp"]);break;case this.AuthMethod.FacialRecognition:this.router.navigate([this.globalVarService.path_route+"authentication/auth-mati"])}},t=>{this.cn.log("=====> UpdateAuthMethod() ERROR: "),this.cn.error(t),this._pageLoaderService.hide()})}backStep(){this.cn.log("backStep()"),this._location.back()}showDialog(t,e){void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"cancelMethodSigner"}]}),this.dialog.open(fU,{disableClose:!0,width:"830px",data:e})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(Jb),i.Ob(o.n),i.Ob(cg),i.Ob(Gi),i.Ob(Cg),i.Ob(pg),i.Ob(zg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-auth-methods"]],decls:21,vars:2,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"mb-5","text-center"],[1,"row","justify-content-md-center"],[1,"",3,"className"],[1,"cnt-card-selected"],[1,"card-selected","card",3,"click"],["div2",""],[1,"card-margin"],["src","./assets/images/Iconos/selected-otp.svg","onerror","this.onerror=null; this.src='./assets/images/Iconos/selected-otp.png'"],[1,"cnt-card-info"],[1,"button-row","mt-4","text-center"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"h4",2),i.Lc(3,"Para validar tu identidad, te enviaremos un c\xf3digo de validaci\xf3n de seguridad."),i.Tb(),i.Ub(4,"div",3),i.Ub(5,"div",4),i.Ub(6,"div",5),i.Ub(7,"div",6,7),i.cc("click",(function(){i.yc(t);const n=i.uc(8);return e.changeActive(e.AuthMethod.OTP,n)})),i.Ub(9,"div",8),i.Pb(10,"img",9),i.Tb(),i.Tb(),i.Ub(11,"div",10),i.Ub(12,"h5"),i.Lc(13,"Autenticaci\xf3n por correo electr\xf3nico"),i.Tb(),i.Ub(14,"p"),i.Lc(15,"Recibe un c\xf3digo de autenticaci\xf3n en tu correo electr\xf3nico registrado y diligencialo en la aplicaci\xf3n. "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(16,"div",11),i.Ub(17,"button",12),i.cc("click",(function(){return e.backStep()})),i.Lc(18,"Volver"),i.Tb(),i.Ub(19,"button",13),i.cc("click",(function(){return e.nextStep()})),i.Lc(20,"Siguiente"),i.Tb(),i.Tb(),i.Tb(),i.Tb()}2&t&&(i.Db(5),i.mc("className",e.activeAuthMethod===e.AuthMethod.Any||e.activeAuthMethod===e.AuthMethod.OTP?"col-12 col-sm-4":"col-12 col-sm-4 disabled"),i.Db(14),i.mc("disabled",!e.selection_))},directives:[zm],styles:[".disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]}),t})(),nL=(()=>{class t{constructor(t){this.httpClient=t}createAuthCodeOTP(t,e){const n={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(nu+"new-auth/"+e,t,n).pipe(Object(KU.shareReplay)())}getAuthCodeOTP(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.get(nu+"get/verify-code/"+t,e).pipe(Object(KU.shareReplay)())}getAuthEmail(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.get(nu+"get/verify-auth/"+t,e).pipe(Object(KU.shareReplay)())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class iL{}function rL(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function oL(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,rL,2,1,"mat-error",13),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.formAuthCode.get("code").hasError(t.type)&&(n.formAuthCode.get("code").dirty||n.formAuthCode.get("code").touched))}}let sL=(()=>{class t{constructor(t,e,n,i,r,o,s){this._fb=t,this.router=e,this.globalVarService=n,this.authenticationCodeOTPService=i,this.cn=r,this._pageLoaderService=o,this.dialog=s,this.validation_messages={code:[{type:"required",message:"Por favor, ingresa el c\xf3digo"},{type:"minlength",message:"El c\xf3digo deber ser de 4 d\xedgitos."},{type:"pattern",message:"El c\xf3digo ingresado no es v\xe1lido"}]}}ngOnInit(){this.formAuthCode=this._fb.group({code:["",[Ha.required,Ha.minLength(4),Ha.pattern("^[0-9]+$")]]}),this.sendAuthCode()}sendAuthCode(){const t=JSON.parse(sessionStorage.getItem("emailNotary")),e=new iL;e.email=t,this.authenticationCodeOTPService.createAuthCodeOTP(e,"otp-notary").subscribe(t=>{this.cn.log("createAuthCodeOTP() reply:",t)},t=>{this.cn.error("createAuthCodeOTP() error:",t)})}validateCode(){this._pageLoaderService.show(),this.authenticationCodeOTPService.getAuthCodeOTP(this.formAuthCode.value.code).subscribe(t=>{this.cn.log("getAuthCodeOTP() reply:",t),this.checkMinuteDifference(new Date(t.operationBody[0].expDate),new Date)<=0?(this.showGeneralDialog("El c\xf3digo que ingresaste ha expirado. Te hemos enviado un nuevo c\xf3digo, revisa tu correo electr\xf3nico.").subscribe(),this.sendAuthCode()):(sessionStorage.removeItem("emailNotary"),this.router.navigate(["corporate/pv/documents/my-transactions"])),this._pageLoaderService.hide()},t=>{this.cn.error("getAuthCodeOTP() error:",t),this.showGeneralDialog("C\xf3digo inv\xe1lido").subscribe(),this._pageLoaderService.hide()})}checkMinuteDifference(t,e){this.cn.log("time1:",t.getTime(),"time2:",e.getTime());const n=t.getTime()-e.getTime();this.cn.log("difference:",n);const i=Math.round(n/6e4);return this.cn.log("resultInMinutes:",i),i}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(cg),i.Ob(nL),i.Ob(Gi),i.Ob(pg),i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-auth-otp-notary"]],decls:26,vars:3,consts:[[1,"p_container"],[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/selected-otp.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],["novalidate","",3,"formGroup"],["matInput","","placeholder","C\xf3digo","formControlName","code","maxlength","4"],[4,"ngFor","ngForOf"],[1,"mt-2"],[1,"mt-3","text-center"],["type","button","mat-raised-button","","color","primary",3,"disabled","click"],[4,"ngIf"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div"),i.Ub(4,"div",3),i.Pb(5,"img",4),i.Tb(),i.Ub(6,"div",5),i.Ub(7,"h2"),i.Lc(8,"Autenticaci\xf3n Pendiente"),i.Tb(),i.Tb(),i.Tb(),i.Ub(9,"div",6),i.Ub(10,"div"),i.Ub(11,"p"),i.Lc(12," Para ingresar al portal, hemos enviado un c\xf3digo de autenticaci\xf3n de 4 d\xedgitos a tu correo electr\xf3nico. Ingresa el c\xf3digo a continuaci\xf3n: "),i.Tb(),i.Tb(),i.Ub(13,"form",7),i.Ub(14,"mat-form-field"),i.Pb(15,"input",8),i.Jc(16,oL,2,1,"mat-error",9),i.Tb(),i.Ub(17,"p",10),i.Lc(18," Este correo puede tardar hasta 5 minutos en llegar. En caso de no encontrarlo, revisa en spam o correo no deseado. "),i.Tb(),i.Ub(19,"p"),i.Ub(20,"small"),i.Lc(21,"Ten en cuenta que el c\xf3digo enviado tiene un tiempo de expiraci\xf3n de 5 minutos. Si no lo has diligenciado en ese lapso de tiempo, se enviar\xe1 uno nuevo. "),i.Tb(),i.Tb(),i.Ub(22,"div",11),i.Ub(23,"button",12),i.cc("click",(function(){return e.validateCode()})),i.Lc(24,"Validar"),i.Tb(),i.Tb(),i.Pb(25,"br"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(13),i.mc("formGroup",e.formAuthCode),i.Db(3),i.mc("ngForOf",e.validation_messages.code),i.Db(7),i.mc("disabled",!e.formAuthCode.valid))},directives:[zc,Fa,Yc,Uv,uy,Aa,Na,tl,dl,o.s,zm,bv,o.t],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})();function aL(t=0,e=Eu.a){return(!Object(bf.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Eu.a),new a.a(n=>(n.add(e.schedule(cL,t,{subscriber:n,counter:0,period:t})),n))}function cL(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}const lL=["ngOtpInput"];function uL(t,e){if(1&t){const t=i.Vb();i.Ub(0,"ng-otp-input",15,16),i.cc("onInputChange",(function(e){return i.yc(t),i.gc().onOtpChange(e)})),i.Tb()}if(2&t){const t=i.gc();i.mc("config",t.config)}}function dL(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",17),i.cc("click",(function(){return i.yc(t),i.gc().validateCode()})),i.Lc(1,"Validar"),i.Tb()}if(2&t){const t=i.gc();i.mc("disabled",!t.validateInput)}}let hL=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d,h,p){this._fb=t,this.router=e,this.globalVarService=n,this.authenticationCodeOTPService=i,this.sendDocsToSignService=r,this.invitationSignService=o,this.massiveSignatureService=s,this.cn=a,this._location=c,this._pageLoaderService=l,this._pageLoaderServiceSign=u,this.dialog=d,this.signatureProcessesService=h,this.notificationsService=p,this.validation_messages={code:[{type:"required",message:"Por favor, ingresa el c\xf3digo"},{type:"minlength",message:"El c\xf3digo deber ser de 4 d\xedgitos."},{type:"pattern",message:"El c\xf3digo ingresado no es v\xe1lido"}]},this.validateInput=!1,this.progressbarValue=0,this.curSec=300,this.seconds=300,this.showOtpComponent=!0,this.config={allowNumbersOnly:!0,length:4,isPasswordInput:!1,disableAutoFocus:!1,placeholder:"",containerClass:"groupField-pinOTP",inputClass:"field-pinOTP"},this.showValidateButton=!0}ngOnDestroy(){this.cn.log("===== ngOnDestroy() ====="),void 0!==this.sub&&this.sub.unsubscribe()}ngOnInit(){this.sendAuthCode(),this.startTimer(this.seconds)}onOtpChange(t){this.otp=t,this.validateInput=4===t.length}setVal(t){this.ngOtpInput.setValue(t)}startTimer(t){const e=aL(1e3);this.sub=e.subscribe(e=>{this.progressbarValue=100-100*e/t-2,--this.curSec,0===this.curSec&&(this.sub.unsubscribe(),this.validateInput=!1)})}validateCode(){this._pageLoaderService.show(),this.authenticationCodeOTPService.getAuthCodeOTP(+this.otp).subscribe(t=>{this.cn.log(t),this.checkMinuteDifference(new Date(t.operationBody[0].expDate),new Date)<=0?this.showGeneralDialog("El c\xf3digo que ingresaste ha expirado.").subscribe():(this.cn.log(this.globalVarService.path_route),dg.info("validaci\xf3n OTP exitosa.","OTP"),this._pageLoaderService.hide(),this.router.navigate(["corporate/pv/multimedia/capture",+this.otp])),this._pageLoaderService.hide()},t=>{this.showGeneralDialog("C\xf3digo inv\xe1lido").subscribe(),this._pageLoaderService.hide()})}cancelButton(){this.cn.log("cancelButton()"),this._location.back()}verifyAuthCode(){let t="";t=null==this.globalVarService.type_sign?"userData":"userDataExternal";const e=JSON.parse(sessionStorage.getItem(t));this.authenticationCodeOTPService.getAuthEmail(e.email).subscribe(t=>{this.cn.log("getAuthCodeOTP() reply:",t),this.checkMinuteDifference(new Date(t.operationBody[0].expDate),new Date)<=0&&this.sendAuthCode()},t=>{this.sendAuthCode()})}sendAuthCode(){let t="";t=null==this.globalVarService.type_sign?"userData":"userDataExternal";const e=JSON.parse(sessionStorage.getItem(t)),n=new iL;n.email=e.email,this.authenticationCodeOTPService.createAuthCodeOTP(n,this.globalVarService.processId).subscribe(t=>{this.cn.log("createAuthCodeOTP() reply:",t)},t=>{this.cn.error("createAuthCodeOTP() error:",t)})}re_sendAuthCode(){let t="";t=null==this.globalVarService.type_sign?"userData":"userDataExternal";const e=JSON.parse(sessionStorage.getItem(t)),n=new iL;n.email=e.email,this._pageLoaderService.show(),this.authenticationCodeOTPService.createAuthCodeOTP(n,this.globalVarService.processId).subscribe(t=>{this.showGeneralDialog("El C\xf3digo de autenticaci\xf3n fue enviado exitosamente.").subscribe(),this.cn.log("re_sendAuthCode() reply:",t),this._pageLoaderService.hide()},t=>{this.cn.error("re_sendAuthCode() error:",t),this._pageLoaderService.hide()})}checkMinuteDifference(t,e){this.cn.log("time1:",t.getTime(),"time2:",e.getTime());const n=t.getTime()-e.getTime();this.cn.log("difference:",n);const i=Math.round(n/6e4);return this.cn.log("resultInMinutes:",i),i}sendDocsToSign(){this.cn.log("===== SEND DOCS TO SIGN (OTP) ====="),this.globalVarService.selected_auth_method=aU.OTP,this.globalVarService.type_signature===pU.SIMPLE?new _U(this.cn,this._pageLoaderServiceSign,this.dialog,this.router,this.globalVarService,this.sendDocsToSignService,this.invitationSignService,this.signatureProcessesService,this.notificationsService).SendDocsToSign(this.otp,!0):new xU(this.cn,this._pageLoaderServiceSign,this.dialog,this.router,this.globalVarService,this.massiveSignatureService).SendMassiveProcess(this.otp)}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(cg),i.Ob(nL),i.Ob(Ag),i.Ob(Cg),i.Ob(xg),i.Ob(Gi),i.Ob(o.n),i.Ob(pg),i.Ob(uU),i.Ob(Jb),i.Ob(Lg),i.Ob(Sg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-auth-otp"]],viewQuery:function(t,e){var n;1&t&&i.Qc(lL,!0),2&t&&i.tc(n=i.dc())&&(e.ngOtpInput=n.first)},decls:29,vars:7,consts:[[1,"p_container"],[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/selected-otp.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],[3,"config","onInputChange",4,"ngIf"],[1,"text-center","my-4"],[1,"text-color-primary","c-pointer",3,"click"],[1,"text-right","text-color-secondary"],["mode","determinate",3,"value"],[1,"mt-3","text-center"],["mat-raised-button","",1,"mr-2",3,"click"],["type","button","mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"config","onInputChange"],["ngOtpInput",""],["type","button","mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div"),i.Ub(4,"div",3),i.Pb(5,"img",4),i.Tb(),i.Ub(6,"div",5),i.Ub(7,"h2"),i.Lc(8,"C\xf3digo de autenticaci\xf3n"),i.Tb(),i.Tb(),i.Tb(),i.Ub(9,"div",6),i.Ub(10,"div"),i.Ub(11,"p"),i.Lc(12," Hemos enviado un c\xf3digo de 4 d\xedgitos a tu correo electr\xf3nico. "),i.Tb(),i.Tb(),i.Jc(13,uL,2,1,"ng-otp-input",7),i.Ub(14,"div",8),i.Lc(15," \xbfNo lo recibiste?, "),i.Ub(16,"a",9),i.cc("click",(function(){return e.re_sendAuthCode()})),i.Lc(17,"enviar un nuevo c\xf3digo"),i.Tb(),i.Lc(18,". "),i.Tb(),i.Ub(19,"div"),i.Ub(20,"div",10),i.Lc(21),i.hc(22,"date"),i.Tb(),i.Pb(23,"mat-progress-bar",11),i.Tb(),i.Ub(24,"div",12),i.Ub(25,"button",13),i.cc("click",(function(){return e.cancelButton()})),i.Lc(26,"Volver"),i.Tb(),i.Jc(27,dL,2,1,"button",14),i.Tb(),i.Pb(28,"br"),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(13),i.mc("ngIf",e.showOtpComponent),i.Db(8),i.Nc(" ",i.jc(22,4,1e3*e.curSec,"mm:ss")," "),i.Db(2),i.mc("value",e.progressbarValue),i.Db(4),i.mc("ngIf",e.showValidateButton))},directives:[o.t,NP,zm,jI],pipes:[o.f],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})(),pL=(()=>{class t{constructor(t){this.httpClient=t}GetEnterpriseBill(t,e){return this.httpClient.get(Gl+"getbill/"+`${t}_${e}`)}DownloadBill(t,e){return this.httpClient.get(Gl+"download/"+`${t}_${e}`)}GetEnterpriseBills(t){return this.httpClient.get(Gl+"getenterprisebills/"+t)}GetCurrentMonthTransactions(t){return this.httpClient.get(Gl+"getcurrentmonthtransactions/"+t)}GetTransaction(t){return this.httpClient.get(Gl+"gettransaction/"+t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class mL{}function fL(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-option",39),i.cc("onSelectionChange",(function(e){return i.yc(t),i.gc().filterByType(e)})),i.Lc(1),i.Tb()}if(2&t){const t=e.$implicit,n=i.gc();i.mc("value",t),i.Db(1),i.Mc(n.getTransactionDescription(t))}}function bL(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1,"No. Proceso"),i.Tb())}function gL(t,e){if(1&t&&(i.Ub(0,"td",41),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.process.idProcess)}}function _L(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1," Fecha"),i.Tb())}function vL(t,e){if(1&t&&(i.Ub(0,"td",41),i.Ub(1,"span",42),i.Ub(2,"span",43),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",44),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.date,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.date,"hh:mm a"))}}function yL(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1,"Descripci\xf3n"),i.Tb())}function wL(t,e){if(1&t&&(i.Ub(0,"td",41),i.Lc(1),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.Mc(n.getTransactionDescription(t.description))}}function CL(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1,"Cantidad"),i.Tb())}function xL(t,e){if(1&t&&(i.Ub(0,"td",41),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.quantity)}}function OL(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1,"Valor Unitario "),i.Ub(2,"i",45),i.Lc(3,"info"),i.Tb(),i.Tb())}function SL(t,e){if(1&t&&(i.Ub(0,"td",41),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(i.ic(2,1,t.unitValue))}}function TL(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1,"Total "),i.Ub(2,"i",46),i.Lc(3,"info"),i.Tb(),i.Tb())}function DL(t,e){if(1&t&&(i.Ub(0,"td",41),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(i.ic(2,1,t.totalValue))}}function kL(t,e){1&t&&i.Pb(0,"tr",47)}function PL(t,e){1&t&&i.Pb(0,"tr",48)}const EL=function(){return[5,10,20]};let AL=(()=>{class t{constructor(t,e,n,i,r,o,s){this.router=t,this.formBuilder=e,this.cn=n,this.translate=i,this.dateAdapter=r,this._pageLoaderService=o,this.billingService=s,this.displayedColumns=["processNumber","transactionDate","description","docsQuantity","unitPrice","totalValue"],this.transactionTypes=[ZU.SIGNATURE,ZU.AUTH_QUESTIONS,ZU.AUTH_OTP,ZU.AUTH_FACIAL_RECOGNITION],this.user=new Tl,this.bill=new mL,this.filteredTransactions=[],this.transactionTypeFilter=[],this.dateFilterForm=e.group({date:[{begin:null,end:null}]}),this.translate.use("es"),this.dateAdapter.setLocale("es")}ngOnInit(){const t=sessionStorage.getItem("billNumber");null!==t?this.getBill(t):this.router.navigate(["/corporate/pv/billing/billing-list"])}getBill(t){this._pageLoaderService.show(),this.user=JSON.parse(sessionStorage.getItem("userData")),this.billingService.GetEnterpriseBill(this.user.enterpriseId,t).subscribe(t=>{this.bill=t,this.filteredTransactions=this.bill.transactions,t=null,this.SetUpPage(),this.transactionsData=new Sx(this.bill.transactions),this.transactionsData.paginator=this.paginator,this._pageLoaderService.hide(),this.cn.log("BILL DETAILS => "),this.cn.log(this.bill)},e=>{this._pageLoaderService.hide(),this.cn.log("ERROR LOADING BILL DETAILS => "+t),this.cn.log(e)})}SetUpPage(){const t=new Date;t.setFullYear(this.bill.year),t.setMonth(this.bill.month-1);const e=t.toString();this.fullPeriod=tL.GetFullPeriodTime(e),this.minFilterDate=tL.GetMinimumDate(e),this.maxFilterDate=tL.GetMaximumDate(e),tL.SetUpPaginator(this.paginator)}downloadBill(){this._pageLoaderService.show(),this.billingService.DownloadBill(this.user.enterpriseId,this.bill.billNumber).subscribe(t=>{this.cn.log("Download Bill Response: ",t),tL.GetPdfFromBase64(t.operationBody.fileContent,"Bill.pdf"),this._pageLoaderService.hide()},t=>{this.cn.log("REQUEST DOWNLOAD ERROR: ",t),alert("error en la descarga!"),this._pageLoaderService.hide()})}getTransactionDescription(t){return tL.GetTransactionDescription(t)}filterByProcess(t){""!==t?(this.filteredTransactions=this.bill.transactions.filter(e=>e.process.idProcess.startsWith(t.trim().toLowerCase())),this.transactionsData.data=this.filteredTransactions):this.transactionsData.data=this.bill.transactions}filterByType(t){if(t.isUserInput){const e=t.source.value;t.source.selected?0===this.transactionTypeFilter.filter(t=>t===e).length&&this.transactionTypeFilter.push(e):this.transactionTypeFilter=this.transactionTypeFilter.filter(t=>t!==e),this.transactionTypeFilter.length>0?(this.filteredTransactions=this.bill.transactions.filter(t=>this.transactionTypeFilter.includes(t.description)),this.transactionsData.data=this.filteredTransactions):this.transactionsData.data=this.bill.transactions}}filterByDate(t){if(null!=t&&null!=t.begin&&null!=t.end){const e=t.begin,n=t.end;n.setHours(23,59,59),this.filteredTransactions=this.bill.transactions.filter(t=>new Date(t.date)>=e&&new Date(t.date)<=n),this.transactionsData.data=this.filteredTransactions}else this.transactionsData.data=this.bill.transactions}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(fl),i.Ob(Gi),i.Ob(Bi),i.Ob(iM),i.Ob(pg),i.Ob(pL))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-billing-details"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:81,vars:17,consts:[[1,"container","pt-5","pb-4"],[1,"row"],[1,"col"],[1,"col","text-right"],["mat-stroked-button","","color","primary","routerLink","/corporate/pv/billing/billing-list"],[1,"cnt-billing-summary"],[1,"header-billing-summary"],[1,"row","align-items-center"],["src","./assets/images/simbolo-AutenTIC-color.svg","onerror","this.onerror=null; this.src='./assets/images/simbolo-AutenTIC-color.png'",1,"billing-symbol"],[1,"col","col-md-7"],[1,"balance"],["matTooltip","Este es el valor correspondiente a lo consumido y facturado en el mes seleccionado.",1,"material-icons","info-tag-billing"],[1,"col","col-md-4","text-right"],["mat-icon-button","","aria-label","Descargar","matTooltip","Descargar Factura",3,"click"],[1,"content-billing-sumary"],[1,"mt-4"],[1,"col-12","col-sm-6"],["matInput","","placeholder","N\xfamero de proceso",3,"keyup"],[1,"col-12","col-sm-3"],["multiple",""],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],[3,"formGroup"],["matInput","","placeholder","Fecha","formControlName","date",3,"min","max","satDatepicker","ngModelChange"],[3,"rangeMode"],["picker",""],["matSuffix","",3,"for"],[1,"mat-elevation-z8","rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","processNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","description"],["matColumnDef","docsQuantity"],["matColumnDef","unitPrice"],["matColumnDef","totalValue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[3,"value","onSelectionChange"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fechaHora"],[1,"tb-fecha"],[1,"tb-hora"],["matTooltip","Este es el valor correspondiente a la firma de un solo documento.",1,"material-icons"],["matTooltip","Este es el valor correspondiente a la firma de un solo documento multiplicado por la cantidad de documentos.",1,"material-icons"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Detalle Factura "),i.Ub(5,"small"),i.Lc(6),i.Tb(),i.Tb(),i.Tb(),i.Ub(7,"div",3),i.Ub(8,"button",4),i.Lc(9,"Volver"),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"div"),i.Ub(11,"div",5),i.Ub(12,"div",6),i.Ub(13,"div",7),i.Ub(14,"div",2),i.Pb(15,"img",8),i.Tb(),i.Ub(16,"div",9),i.Ub(17,"h5"),i.Lc(18),i.Tb(),i.Ub(19,"p",10),i.Lc(20,"Importe facturado: "),i.Ub(21,"i",11),i.Lc(22,"info"),i.Tb(),i.Ub(23,"span"),i.Lc(24),i.hc(25,"currency"),i.Tb(),i.Tb(),i.Tb(),i.Ub(26,"div",12),i.Ub(27,"button",13),i.cc("click",(function(){return e.downloadBill()})),i.Ub(28,"mat-icon"),i.Lc(29,"get_app"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(30,"div",14),i.Ub(31,"p"),i.Lc(32,"Motivo de facturaci\xf3n: Gastos en procesos de firma electr\xf3nica de documentos y validaci\xf3n de identidad."),i.Tb(),i.Ub(33,"p"),i.Lc(34,"M\xe9todo de pago: Efectivo."),i.Tb(),i.Ub(35,"p"),i.Lc(36,"Estado: Pagado."),i.Tb(),i.Tb(),i.Tb(),i.Ub(37,"div",15),i.Ub(38,"h6"),i.Lc(39,"Transacciones"),i.Tb(),i.Ub(40,"div",1),i.Ub(41,"div",16),i.Ub(42,"mat-form-field"),i.Ub(43,"input",17),i.cc("keyup",(function(t){return e.filterByProcess(t.target.value)})),i.Tb(),i.Tb(),i.Tb(),i.Ub(44,"div",18),i.Ub(45,"mat-form-field"),i.Ub(46,"mat-label"),i.Lc(47,"Descripci\xf3n"),i.Tb(),i.Ub(48,"mat-select",19),i.Jc(49,fL,2,2,"mat-option",20),i.Tb(),i.Tb(),i.Tb(),i.Ub(50,"div",18),i.Ub(51,"form",21),i.Ub(52,"mat-form-field"),i.Ub(53,"input",22),i.cc("ngModelChange",(function(t){return e.filterByDate(t)})),i.Tb(),i.Pb(54,"sat-datepicker",23,24),i.Pb(56,"sat-datepicker-toggle",25),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(57,"div",26),i.Ub(58,"table",27),i.Sb(59,28),i.Jc(60,bL,2,0,"th",29),i.Jc(61,gL,2,1,"td",30),i.Rb(),i.Sb(62,31),i.Jc(63,_L,2,0,"th",29),i.Jc(64,vL,8,8,"td",30),i.Rb(),i.Sb(65,32),i.Jc(66,yL,2,0,"th",29),i.Jc(67,wL,2,1,"td",30),i.Rb(),i.Sb(68,33),i.Jc(69,CL,2,0,"th",29),i.Jc(70,xL,2,1,"td",30),i.Rb(),i.Sb(71,34),i.Jc(72,OL,4,0,"th",29),i.Jc(73,SL,3,3,"td",30),i.Rb(),i.Sb(74,35),i.Jc(75,TL,4,0,"th",29),i.Jc(76,DL,3,3,"td",30),i.Rb(),i.Jc(77,kL,1,0,"tr",36),i.Jc(78,PL,1,0,"tr",37),i.Tb(),i.Tb(),i.Pb(79,"mat-paginator",38),i.Tb(),i.Tb(),i.Tb(),i.Pb(80,"aswc-page-loader-default")),2&t){const t=i.uc(55);i.Db(6),i.Mc(e.fullPeriod),i.Db(12),i.Mc(e.user.enterpriseName),i.Db(6),i.Nc(" ",i.ic(25,14,e.bill.totalValue),""),i.Db(25),i.mc("ngForOf",e.transactionTypes),i.Db(2),i.mc("formGroup",e.dateFilterForm),i.Db(2),i.mc("min",e.minFilterDate)("max",e.maxFilterDate)("satDatepicker",t),i.Db(1),i.mc("rangeMode",!0),i.Db(2),i.mc("for",t),i.Db(2),i.mc("dataSource",e.transactionsData),i.Db(19),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(16,EL))}},styles:[".cnt-billing-summary[_ngcontent-%COMP%]{border:1px solid rgba(38,82,118,.1);border-radius:4px;overflow:hidden;margin-top:1rem;box-shadow:0 4px 10px 0 rgba(0,0,0,.2)}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]{background:#22385e;color:#fff;padding:1rem}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   .info-tag-billing[_ngcontent-%COMP%]{font-size:1rem;opacity:.5}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   .billing-symbol[_ngcontent-%COMP%]{max-width:60px}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{color:#fff}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .state-billing[_ngcontent-%COMP%]{font-size:.8rem;color:#78a34f}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   p.balance[_ngcontent-%COMP%]{margin-bottom:0}.cnt-billing-summary[_ngcontent-%COMP%]   .content-billing-sumary[_ngcontent-%COMP%]{padding:1rem}.cnt-billing-summary[_ngcontent-%COMP%]   .content-billing-sumary[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.cnt-billing-summary[_ngcontent-%COMP%]   .content-billing-sumary[_ngcontent-%COMP%]   .info-tag-billing[_ngcontent-%COMP%]{font-size:1rem;opacity:.4}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:1rem;opacity:.5}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}.tooltip-table[_ngcontent-%COMP%]{background:#fff}"]}),t})();function IL(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"Periodo"),i.Tb())}function ML(t,e){if(1&t&&(i.Ub(0,"td",22),i.Ub(1,"span",23),i.Lc(2),i.Tb(),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(2),i.Mc(n.getFullBillPeriod(t.month,t.year))}}function UL(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"No. de Factura"),i.Tb())}function LL(t,e){if(1&t&&(i.Ub(0,"td",22),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.billNumber)}}function RL(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"Estado"),i.Tb())}function NL(t,e){1&t&&(i.Ub(0,"td",22),i.Lc(1,"Pagada"),i.Tb())}function FL(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"Importe Facturado"),i.Tb())}function VL(t,e){if(1&t&&(i.Ub(0,"td",22),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(i.ic(2,1,t.totalValue))}}function jL(t,e){1&t&&(i.Ub(0,"th",24),i.Lc(1,"Acciones"),i.Tb())}function BL(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",25),i.Ub(1,"button",26),i.Ub(2,"mat-icon"),i.Lc(3,"more_vert"),i.Tb(),i.Tb(),i.Ub(4,"mat-menu",null,27),i.Ub(6,"button",28),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().loadBillDetails(n.billNumber)})),i.Ub(7,"mat-icon"),i.Lc(8,"receipt"),i.Tb(),i.Ub(9,"span"),i.Lc(10,"Ver detalle"),i.Tb(),i.Tb(),i.Ub(11,"button",28),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().downloadBill(n.billNumber)})),i.Ub(12,"mat-icon"),i.Lc(13,"get_app"),i.Tb(),i.Ub(14,"span"),i.Lc(15,"Descargar"),i.Tb(),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=i.uc(5);i.Db(1),i.mc("matMenuTriggerFor",t)}}function zL(t,e){1&t&&i.Pb(0,"tr",29)}function qL(t,e){1&t&&i.Pb(0,"tr",30)}const HL=function(){return[5,10,20]};let GL=(()=>{class t{constructor(t,e,n,i){this.router=t,this.cn=e,this._pageLoaderService=n,this.billingService=i,this.displayedColumns=["period","billNumber","billStatus","totalValue","actions"],this.user=new Tl}ngOnInit(){sessionStorage.removeItem("billNumber"),this.getBills()}getBills(){this._pageLoaderService.show(),this.user=JSON.parse(sessionStorage.getItem("userData")),this.billingService.GetEnterpriseBills(this.user.enterpriseId).subscribe(t=>{this.billingData=new Sx(t),tL.SetUpPaginator(this.paginator),this.billingData.paginator=this.paginator,this._pageLoaderService.hide(),this.cn.log("BILLS => "),this.cn.log(t)},t=>{this._pageLoaderService.hide(),this.cn.log("ERROR LOADING BILLS => "),this.cn.log(t)})}applyFilter(t){this.billingData.filter=t.trim().toLowerCase()}getFullBillPeriod(t,e){const n=new Date;return n.setFullYear(e),n.setMonth(t-1),tL.GetFullPeriodTime(n.toString())}loadBillDetails(t){sessionStorage.setItem("billNumber",t),this.router.navigate(["/corporate/pv/billing/billing-details"])}downloadBill(t){this._pageLoaderService.show(),this.billingService.DownloadBill(this.user.enterpriseId,t).subscribe(t=>{this.cn.log("Download Bill Response: ",t),tL.GetPdfFromBase64(t.operationBody.fileContent,"Bill.pdf"),this._pageLoaderService.hide()},t=>{this.cn.log("REQUEST DOWNLOAD ERROR: ",t),alert("error en la descarga!"),this._pageLoaderService.hide()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(Gi),i.Ob(pg),i.Ob(pL))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-billing-list"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:31,vars:5,consts:[[1,"container","pt-5","pb-4"],[1,"row"],[1,"col-6","col-md-12"],[1,"col-6"],[1,"mt-4"],[1,"col-12","col-sm-9"],[1,"col-12","col-sm-3"],[1,"mat-elevation-z8","rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","billNumber"],["matColumnDef","billStatus"],["matColumnDef","totalValue"],["matColumnDef","actions"],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fecha"],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-icon-button","","color","accent",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Facturaci\xf3n"),i.Tb(),i.Tb(),i.Pb(5,"div",3),i.Tb(),i.Ub(6,"div"),i.Ub(7,"div",4),i.Ub(8,"div",1),i.Pb(9,"div",5),i.Pb(10,"div",6),i.Tb(),i.Ub(11,"div",7),i.Ub(12,"table",8),i.Sb(13,9),i.Jc(14,IL,2,0,"th",10),i.Jc(15,ML,3,1,"td",11),i.Rb(),i.Sb(16,12),i.Jc(17,UL,2,0,"th",10),i.Jc(18,LL,2,1,"td",11),i.Rb(),i.Sb(19,13),i.Jc(20,RL,2,0,"th",10),i.Jc(21,NL,2,0,"td",11),i.Rb(),i.Sb(22,14),i.Jc(23,FL,2,0,"th",10),i.Jc(24,VL,3,3,"td",11),i.Rb(),i.Sb(25,15),i.Jc(26,jL,2,0,"th",16),i.Jc(27,BL,16,1,"td",17),i.Rb(),i.Jc(28,zL,1,0,"tr",18),i.Jc(29,qL,1,0,"tr",19),i.Tb(),i.Tb(),i.Pb(30,"mat-paginator",20),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(12),i.mc("dataSource",e.billingData),i.Db(16),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(4,HL)))},directives:[JC,tx,KC,$C,cx,hx,EP,nx,sx,zm,Eb,Kv,Tb,yb,mx,_x],pipes:[o.d],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:1rem}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();function JL(t,e){1&t&&(i.Ub(0,"p"),i.Lc(1,"No se han realizado transacciones este mes."),i.Tb())}function YL(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-option",29),i.cc("onSelectionChange",(function(e){return i.yc(t),i.gc(2).filterByType(e)})),i.Lc(1),i.Tb()}if(2&t){const t=e.$implicit,n=i.gc(2);i.mc("value",t),i.Db(1),i.Mc(n.getTransactionDescription(t))}}function $L(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",1),i.Ub(1,"div",19),i.Ub(2,"mat-form-field"),i.Ub(3,"input",20),i.cc("keyup",(function(e){return i.yc(t),i.gc().filterByProcess(e.target.value)})),i.Tb(),i.Tb(),i.Tb(),i.Ub(4,"div",21),i.Ub(5,"mat-form-field"),i.Ub(6,"mat-label"),i.Lc(7,"Descripci\xf3n"),i.Tb(),i.Ub(8,"mat-select",22),i.Jc(9,YL,2,2,"mat-option",23),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"div",21),i.Ub(11,"form",24),i.Ub(12,"mat-form-field"),i.Ub(13,"input",25),i.cc("ngModelChange",(function(e){return i.yc(t),i.gc().filterByDate(e)})),i.Tb(),i.Pb(14,"sat-datepicker",26,27),i.Pb(16,"sat-datepicker-toggle",28),i.Tb(),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=i.uc(15),e=i.gc();i.Db(9),i.mc("ngForOf",e.transactionTypes),i.Db(2),i.mc("formGroup",e.dateFilterForm),i.Db(2),i.mc("min",e.minFilterDate)("max",e.maxFilterDate)("satDatepicker",t),i.Db(1),i.mc("rangeMode",!0),i.Db(2),i.mc("for",t)}}function WL(t,e){1&t&&(i.Ub(0,"th",42),i.Lc(1," No. Proceso"),i.Tb())}function KL(t,e){if(1&t&&(i.Ub(0,"td",43),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.process.idProcess)}}function QL(t,e){1&t&&(i.Ub(0,"th",42),i.Lc(1," Fecha"),i.Tb())}function XL(t,e){if(1&t&&(i.Ub(0,"td",43),i.Ub(1,"span",44),i.Ub(2,"span",45),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",46),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.date,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.date,"hh:mm a"))}}function ZL(t,e){1&t&&(i.Ub(0,"th",42),i.Lc(1,"Descripci\xf3n"),i.Tb())}function tR(t,e){if(1&t&&(i.Ub(0,"td",43),i.Lc(1),i.Tb()),2&t){const t=e.$implicit,n=i.gc(2);i.Db(1),i.Mc(n.getTransactionDescription(t.description))}}function eR(t,e){1&t&&(i.Ub(0,"th",42),i.Lc(1,"Cantidad"),i.Tb())}function nR(t,e){if(1&t&&(i.Ub(0,"td",43),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.quantity)}}function iR(t,e){1&t&&(i.Ub(0,"th",42),i.Lc(1,"Valor Unitario "),i.Ub(2,"i",47),i.Lc(3,"info"),i.Tb(),i.Tb())}function rR(t,e){if(1&t&&(i.Ub(0,"td",43),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(i.ic(2,1,t.unitValue))}}function oR(t,e){1&t&&(i.Ub(0,"th",42),i.Lc(1," Total "),i.Ub(2,"i",48),i.Lc(3,"info"),i.Tb(),i.Tb())}function sR(t,e){if(1&t&&(i.Ub(0,"td",43),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(i.ic(2,1,t.totalValue))}}function aR(t,e){1&t&&i.Pb(0,"tr",49)}function cR(t,e){1&t&&i.Pb(0,"tr",50)}function lR(t,e){if(1&t&&(i.Ub(0,"div",30),i.Ub(1,"table",31),i.Sb(2,32),i.Jc(3,WL,2,0,"th",33),i.Jc(4,KL,2,1,"td",34),i.Rb(),i.Sb(5,35),i.Jc(6,QL,2,0,"th",33),i.Jc(7,XL,8,8,"td",34),i.Rb(),i.Sb(8,36),i.Jc(9,ZL,2,0,"th",33),i.Jc(10,tR,2,1,"td",34),i.Rb(),i.Sb(11,37),i.Jc(12,eR,2,0,"th",33),i.Jc(13,nR,2,1,"td",34),i.Rb(),i.Sb(14,38),i.Jc(15,iR,4,0,"th",33),i.Jc(16,rR,3,3,"td",34),i.Rb(),i.Sb(17,39),i.Jc(18,oR,4,0,"th",33),i.Jc(19,sR,3,3,"td",34),i.Rb(),i.Jc(20,aR,1,0,"tr",40),i.Jc(21,cR,1,0,"tr",41),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(1),i.mc("dataSource",t.transactionsData),i.Db(19),i.mc("matHeaderRowDef",t.displayedColumns),i.Db(1),i.mc("matRowDefColumns",t.displayedColumns)}}const uR=function(){return[5,10,20]};let dR=(()=>{class t{constructor(t,e,n,i,r,o){this.formBuilder=t,this.cn=e,this.translate=n,this.dateAdapter=i,this._pageLoaderService=r,this.billingService=o,this.displayedColumns=["processNumber","transactionDate","description","docsQuantity","unitPrice","totalValue"],this.transactionTypes=[ZU.SIGNATURE,ZU.AUTH_QUESTIONS,ZU.AUTH_OTP,ZU.AUTH_FACIAL_RECOGNITION],this.user=new Tl,this.filteredTransactions=[],this.totalValue=0,this.transactionTypeFilter=[],this.dateFilterForm=t.group({date:[{begin:null,end:null}]}),this.translate.use("es"),this.dateAdapter.setLocale("es")}ngOnInit(){this.SetUpPage(),this.VerifyUser()}SetUpPage(){const t=new Date;this.fullPeriod=Object(o.J)(t,"MMMM yyyy","es"),this.minFilterDate=tL.GetMinimumDate(t.toString()),this.maxFilterDate=t,this.currentBalance=sessionStorage.getItem("currentBalance"),tL.SetUpPaginator(this.paginator)}VerifyUser(){this.cn.log("verifying User()"),this.user=JSON.parse(sessionStorage.getItem("userData")),null===this.user?setTimeout(()=>{this.VerifyUser()},400):this.LoadLastMonth()}LoadLastMonth(){this._pageLoaderService.show(),this.user=JSON.parse(sessionStorage.getItem("userData")),this.billingService.GetCurrentMonthTransactions(this.user.enterpriseId).subscribe(t=>{this.transactions=t,this.filteredTransactions=t,t=null,this.transactionsData=new Sx(this.transactions),this.transactionsData.paginator=this.paginator,this.transactions.forEach(t=>{this.totalValue=this.totalValue+t.totalValue}),this._pageLoaderService.hide(),this.cn.log("CURRENT MONTH TRANSACTIONS => "),this.cn.log(this.transactions)},t=>{this._pageLoaderService.hide(),this.cn.log("ERROR LOADING CURRENT BILL => "),this.cn.log(t)})}getTransactionDescription(t){return tL.GetTransactionDescription(t)}filterByProcess(t){""!==t?(this.filteredTransactions=this.transactions.filter(e=>e.process.idProcess.startsWith(t.trim().toLowerCase())),this.transactionsData.data=this.filteredTransactions):this.transactionsData.data=this.transactions}filterByType(t){if(t.isUserInput){const e=t.source.value;t.source.selected?0===this.transactionTypeFilter.filter(t=>t===e).length&&this.transactionTypeFilter.push(e):this.transactionTypeFilter=this.transactionTypeFilter.filter(t=>t!==e),this.transactionTypeFilter.length>0?(this.filteredTransactions=this.transactions.filter(t=>this.transactionTypeFilter.includes(t.description)),this.transactionsData.data=this.filteredTransactions):this.transactionsData.data=this.transactions}}filterByDate(t){if(null!=t&&null!=t.begin&&null!=t.end){const e=t.begin,n=t.end;n.setHours(23,59,59),this.filteredTransactions=this.transactions.filter(t=>new Date(t.date)>=e&&new Date(t.date)<=n),this.transactionsData.data=this.filteredTransactions}else this.transactionsData.data=this.transactions}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Gi),i.Ob(Bi),i.Ob(iM),i.Ob(pg),i.Ob(pL))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-billing-summary"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:42,vars:15,consts:[[1,"container","pt-5","pb-4"],[1,"row"],[1,"col-6","col-md-12"],[1,"col-6"],[1,"cnt-billing-summary"],[1,"header-billing-summary"],[1,"row","align-items-center"],[1,"col","col-md-7"],[1,"balance"],["matTooltip","Este es el valor correspondiente a lo consumido en el mes actual.",1,"material-icons","info-tag-billing"],[1,"col","col-md-5","text-right"],["mat-raised-button","","color","primary","routerLink","/corporate/pv/billing/billing-list"],[1,"content-billing-sumary"],["matTooltip","Este es el valor correspondiente a la recarga actual de la cuenta.",1,"material-icons","info-tag-billing"],[1,"mt-4"],[4,"ngIf"],["class","row",4,"ngIf"],["class","mat-elevation-z8 rp-tableST",4,"ngIf"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"col-12","col-sm-6"],["matInput","","placeholder","N\xfamero de proceso",3,"keyup"],[1,"col-12","col-sm-3"],["multiple",""],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],[3,"formGroup"],["matInput","","placeholder","Fecha","formControlName","date",3,"min","max","satDatepicker","ngModelChange"],[3,"rangeMode"],["picker",""],["matSuffix","",3,"for"],[3,"value","onSelectionChange"],[1,"mat-elevation-z8","rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","processNumber"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","description"],["matColumnDef","docsQuantity"],["matColumnDef","unitPrice"],["matColumnDef","totalValue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fechaHora"],[1,"tb-fecha"],[1,"tb-hora"],["matTooltip","Este es el valor correspondiente a la firma de un solo documento.",1,"material-icons"],["matTooltip","Este es el valor correspondiente a la firma de un solo documento multiplicado por la cantidad de documentos.",1,"material-icons"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Resumen \xfaltimo mes: "),i.Ub(5,"small"),i.Lc(6),i.hc(7,"titlecase"),i.Tb(),i.Tb(),i.Tb(),i.Pb(8,"div",3),i.Tb(),i.Ub(9,"div"),i.Ub(10,"div",4),i.Ub(11,"div",5),i.Ub(12,"div",6),i.Ub(13,"div",7),i.Ub(14,"h5"),i.Lc(15),i.Tb(),i.Ub(16,"p",8),i.Lc(17,"Total gastado: "),i.Ub(18,"i",9),i.Lc(19,"info"),i.Tb(),i.Ub(20,"span"),i.Lc(21),i.hc(22,"currency"),i.Tb(),i.Tb(),i.Tb(),i.Ub(23,"div",10),i.Ub(24,"button",11),i.Lc(25,"Facturaci\xf3n"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(26,"div",12),i.Ub(27,"p"),i.Lc(28,"Saldo actual: "),i.Ub(29,"i",13),i.Lc(30,"info"),i.Tb(),i.Lc(31),i.hc(32,"currency"),i.Tb(),i.Ub(33,"p"),i.Lc(34,"Moneda: COP"),i.Tb(),i.Tb(),i.Tb(),i.Ub(35,"div",14),i.Ub(36,"h6"),i.Lc(37,"Transacciones"),i.Tb(),i.Jc(38,JL,2,0,"p",15),i.Jc(39,$L,17,7,"div",16),i.Jc(40,lR,22,3,"div",17),i.Pb(41,"mat-paginator",18),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(6),i.Mc(i.ic(7,8,e.fullPeriod)),i.Db(9),i.Mc(e.user.enterpriseName),i.Db(6),i.Nc(" ",i.ic(22,10,e.totalValue),""),i.Db(10),i.Nc(" ",i.ic(32,12,e.currentBalance),""),i.Db(7),i.mc("ngIf",null==e.transactions),i.Db(1),i.mc("ngIf",null!=e.transactions),i.Db(1),i.mc("ngIf",null!=e.transactions),i.Db(1),i.mc("pageSizeOptions",i.qc(14,uR)))},directives:[zx,zm,ta,o.t,EP,Uv,uy,xv,aw,o.s,zc,Fa,Yc,Aa,RM,Na,tl,IM,FM,kv,Oh,JC,tx,KC,$C,cx,hx,nx,sx,mx,_x],pipes:[o.G,o.d,o.f],styles:[".cnt-billing-summary[_ngcontent-%COMP%]{border:1px solid rgba(38,82,118,.1);border-radius:4px;overflow:hidden;margin-top:1rem;box-shadow:0 4px 10px 0 rgba(0,0,0,.2)}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]{background:#22385e;color:#fff;padding:1rem}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   .info-tag-billing[_ngcontent-%COMP%]{font-size:1rem;opacity:.5}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   .billing-symbol[_ngcontent-%COMP%]{max-width:60px}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{color:#fff}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]   .state-billing[_ngcontent-%COMP%]{font-size:.8rem;color:#78a34f}.cnt-billing-summary[_ngcontent-%COMP%]   .header-billing-summary[_ngcontent-%COMP%]   p.balance[_ngcontent-%COMP%]{margin-bottom:0}.cnt-billing-summary[_ngcontent-%COMP%]   .content-billing-sumary[_ngcontent-%COMP%]{padding:1rem}.cnt-billing-summary[_ngcontent-%COMP%]   .content-billing-sumary[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.cnt-billing-summary[_ngcontent-%COMP%]   .content-billing-sumary[_ngcontent-%COMP%]   .info-tag-billing[_ngcontent-%COMP%]{font-size:1rem;opacity:.4}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:1rem;opacity:.5}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}.tooltip-table[_ngcontent-%COMP%]{background:#fff}"]}),t})(),hR=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-text-personal-data-policy"]],decls:80,vars:0,consts:[[2,"margin-top","0in","margin-right","0in","margin-bottom","9.0pt","margin-left","0in","line-height","normal","font-size","15px","font-family",'"Calibri",sans-serif',"background","white"],[2,"font-size","16px","font-family",'"Arial",sans-serif',"color","black"],[2,"margin-top","0in","margin-right","0in","margin-bottom","9.0pt","margin-left","0in","line-height","normal","font-size","15px","font-family",'"Calibri",sans-serif',"text-align","justify","background","white"],["type","disc",2,"margin-bottom","0in"],[2,"margin-top","0in","margin-right","0in","margin-bottom","8.0pt","margin-left","0in","line-height","normal","font-size","15px","font-family",'"Calibri",sans-serif',"background","white"],[2,"color","black"],["href","mailto:soporte@autentic.com.co"],[2,"font-size","16px","font-family",'"Arial",sans-serif'],[2,"margin-top","0in","margin-right","0in","margin-bottom","8.0pt","margin-left","0in","line-height","107%","font-size","15px","font-family",'"Calibri",sans-serif']],template:function(t,e){1&t&&(i.Ub(0,"p",0),i.Ub(1,"strong"),i.Ub(2,"span",1),i.Lc(3,"OBJETIVO"),i.Tb(),i.Tb(),i.Ub(4,"span",1),i.Lc(5,": Establecer los criterios para la recolecci\xf3n, almacenamiento, uso, circulaci\xf3n y supresi\xf3n para la firma electr\xf3nica de documentos de conformidad a lo definido en la ley 527 de 1999 y el Decreto 2364 de 2012, o la legislaci\xf3n aplicable de cada pa\xeds, \xa0por parte de AutenTIC LATAM S.A.S Operador del servicio ENOTARY encargado por parte de la LA NOTARIA UNICA DE COTA la cual funge como Responsable del tratamiento de datos personales.\xa0"),i.Tb(),i.Tb(),i.Ub(6,"p",0),i.Ub(7,"strong"),i.Ub(8,"span",1),i.Lc(9,"ALCANCE"),i.Tb(),i.Tb(),i.Ub(10,"span",1),i.Lc(11,": Esta pol\xedtica aplica para toda la informaci\xf3n personal registrada en las bases de datos de LA NOTARIA, quien act\xfaa en calidad de responsable del tratamiento de los datos personales."),i.Tb(),i.Tb(),i.Ub(12,"p",0),i.Ub(13,"strong"),i.Ub(14,"span",1),i.Lc(15,"OBLIGACIONES"),i.Tb(),i.Tb(),i.Ub(16,"span",1),i.Lc(17,": Esta pol\xedtica es de obligatorio y estricto cumplimiento para LA NOTARIA UNICA DE COTA en condici\xf3n de RESPONSABLE DEL TRATAMIENTO DE DATOS PERSONALES y el OPERADOR DEL SERVICIO AutenTIC LATAM S.A.S"),i.Tb(),i.Tb(),i.Ub(18,"p",0),i.Ub(19,"strong"),i.Ub(20,"span",1),i.Lc(21,"RESPONSABLE DEL TRATAMIENTO"),i.Tb(),i.Tb(),i.Ub(22,"span",1),i.Lc(23,":"),i.Tb(),i.Tb(),i.Ub(24,"p",0),i.Ub(25,"span",1),i.Lc(26,"\xa0CONSUELO EMILCE ULLOA HERRERA, NOTARIA UNICA DEL CIRCULO DE COTA.\xa0"),i.Tb(),i.Tb(),i.Ub(27,"p",0),i.Ub(28,"strong"),i.Ub(29,"span",1),i.Lc(30,"ENCARGADO DEL TRATAMIENTO\xa0"),i.Tb(),i.Tb(),i.Tb(),i.Ub(31,"p",0),i.Ub(32,"span",1),i.Lc(33,"AutenTIC LATAM S.A.S sociedad comercial legalmente constituida, identificada con el NIT 901273383 - 5, con domicilio principal en la Calle 98 # 11b - 48 de la ciudad de Bogot\xe1 D.C, Rep\xfablica de Colombia."),i.Tb(),i.Tb(),i.Ub(34,"p",0),i.Ub(35,"strong"),i.Ub(36,"span",1),i.Lc(37,"TRATAMIENTO Y FINALIDAD"),i.Tb(),i.Tb(),i.Ub(38,"span",1),i.Lc(39,": El tratamiento que realizar\xe1 la NOTARIA Y EL OPERADOR DEL SERVICIO \xa0con la informaci\xf3n personal ser\xe1 el siguiente: La recolecci\xf3n, almacenamiento, uso, circulaci\xf3n para la firma electr\xf3nica de documentos electr\xf3nicos y la realizaci\xf3n de tr\xe1mites notariales por medios digitales. TRATAMIENTO DE DATOS SENSIBLES: Los datos sensibles recolectados ser\xe1n tratados con la finalidad de autenticar al cliente ante al sistema para firmar documentos por medios electr\xf3nicos conforme a legislaci\xf3n vigente."),i.Tb(),i.Tb(),i.Ub(40,"p",0),i.Ub(41,"strong"),i.Ub(42,"span",1),i.Lc(43,"DERECHOS DE LOS TITULARES"),i.Tb(),i.Tb(),i.Ub(44,"span",1),i.Lc(45,": Como titular de sus datos personales Usted tiene derecho a: (i) Acceder de forma gratuita a los datos proporcionados que hayan sido objeto de tratamiento. (ii) Conocer, actualizar, rectificar y suprimir su informaci\xf3n frente a datos parciales, inexactos, incompletos, fraccionados, que induzcan a error, o aquellos cuyo tratamiento est\xe9 prohibido o no haya sido autorizado. (iii) Solicitar prueba de la autorizaci\xf3n otorgada. (iv) Presentar ante la Superintendencia de Industria y Comercio (SIC), o quien haga sus veces, quejas por infracciones a lo dispuesto en la normatividad vigente. (v) Revocar la autorizaci\xf3n y/o solicitar la supresi\xf3n del dato, siempre que no exista un deber legal o contractual que impida eliminarlos. (vi) Abstenerse de responder las preguntas sobre datos sensibles. Tendr\xe1 car\xe1cter facultativo las respuestas que versen sobre datos sensibles o sobre datos de las ni\xf1as y ni\xf1os y adolescentes."),i.Tb(),i.Tb(),i.Ub(46,"p",2),i.Ub(47,"strong"),i.Ub(48,"span",1),i.Lc(49,"ATENCI\xd3N DE PETICIONES, CONSULTAS, RECLAMOS Y RECTIFICACIONES"),i.Tb(),i.Tb(),i.Ub(50,"span",1),i.Lc(51,": El \xe1rea de Soporte es la dependencia que tiene a cargo dar tr\xe1mite a las solicitudes de los titulares para hacer efectivos sus derechos. Para esos efectos, se dispone de los siguientes canales:"),i.Tb(),i.Tb(),i.Ub(52,"ul",3),i.Ub(53,"li",4),i.Ub(54,"strong"),i.Ub(55,"span",1),i.Lc(56,"Correo Electr\xf3nico:\xa0"),i.Tb(),i.Tb(),i.Ub(57,"span",5),i.Ub(58,"a",6),i.Ub(59,"strong"),i.Ub(60,"span",7),i.Lc(61,"soporte@autentic.com.co"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(62,"li",4),i.Ub(63,"strong"),i.Ub(64,"span",1),i.Lc(65,"C\xe9lular y Whatsapp: +57 322 2091705"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(66,"p",0),i.Ub(67,"strong"),i.Ub(68,"span",1),i.Lc(69,"PROCEDIMIENTO PARA EL EJERCICIO DEL DERECHO DE HABEAS DATA"),i.Tb(),i.Tb(),i.Ub(70,"span",1),i.Lc(71,": En cumplimiento de las normas sobre protecci\xf3n de datos personales LA NOTARIA Y AUTENTIC LATAM S.AS., presenta el procedimiento y requisitos m\xednimos para el ejercicio de sus derechos: Para la radicaci\xf3n y atenci\xf3n de su solicitud le solicitamos suministrar la siguiente informaci\xf3n: Nombre completo y apellidos Datos de contacto (Direcci\xf3n f\xedsica y/o electr\xf3nica y tel\xe9fonos de contacto), Medios para recibir respuesta a su solicitud, Motivo(s)/hecho(s) que dan lugar al reclamo con una breve descripci\xf3n del derecho que desea ejercer (conocer, actualizar, rectificar, solicitar prueba de la autorizaci\xf3n otorgada, revocarla, suprimir, acceder a la informaci\xf3n) Firma (si aplica) y n\xfamero de identificaci\xf3n. El t\xe9rmino m\xe1ximo previsto por la ley para resolver su reclamaci\xf3n es de quince (15) d\xedas h\xe1biles, contado a partir del d\xeda siguiente a la fecha de su recibo. Cuando no fuere posible atender el reclamo dentro de dicho t\xe9rmino, informaremos al interesado los motivos de la demora y la fecha en que se atender\xe1 su reclamo, la cual en ning\xfan caso podr\xe1 superar los ocho (8) d\xedas h\xe1biles siguientes al vencimiento del primer t\xe9rmino. Una vez cumplidos los t\xe9rminos se\xf1alados por la ley y las dem\xe1s normas que la reglamenten o complementen, el Titular al que se deniegue, total o parcialmente, el ejercicio de los derechos de acceso, actualizaci\xf3n, rectificaci\xf3n, supresi\xf3n y revocaci\xf3n, podr\xe1 poner su caso en conocimiento de la Superintendencia de Industria y Comercio \u2013Delegatura para la Protecci\xf3n de Datos Personales-, o la entidad que haga sus veces."),i.Tb(),i.Tb(),i.Ub(72,"p",0),i.Ub(73,"strong"),i.Ub(74,"span",1),i.Lc(75,"VIGENCIA"),i.Tb(),i.Tb(),i.Ub(76,"span",1),i.Lc(77,": La presente Pol\xedtica para el Tratamiento de Datos Personales rige a partir del 09 de junio de 2020. Las bases de datos en las que se registrar\xe1n los datos personales tendr\xe1n una vigencia igual al tiempo en que se mantenga y utilice la informaci\xf3n para las finalidades descritas en esta pol\xedtica. Una vez se cumpla(n) esa(s) finalidad(es) y siempre que no exista un deber legal o contractual de conservar su informaci\xf3n, sus datos ser\xe1n eliminados de nuestras bases de datos. Otros ejemplos de per\xedodo de permanencia de los datos en la base, son los siguientes: Los datos personales proporcionados se conservar\xe1n mientras se mantenga la relaci\xf3n contractual con el Titular de la informaci\xf3n. Los datos personales proporcionados se conservar\xe1n mientras no se solicite su supresi\xf3n por el interesado y siempre que no exista un deber legal de conservarlos. Los datos personales proporcionados se conservar\xe1n durante un plazo de 3 a\xf1os a partir de la \xfaltima confirmaci\xf3n de inter\xe9s de parte del Titular."),i.Tb(),i.Tb(),i.Ub(78,"p",8),i.Lc(79,"\xa0"),i.Tb())},styles:[""]}),t})();class pR{static functionCreator(t){for(var e=[],n=t.match(/^\s*\(?\s*([^)]*)\s*\)?\s*=>(.*)/),i=n[2].split(","),r=0;r<i.length;r++){var o=i[r].match(/^\s*\(?\s*([^)]*)\s*\)?\s*|===|!==|==|!=|>=|>|<=|<|(.*)/);null!==o?e=new Function(n[1],"return "+o.input):(o=i[r].match(/^\s*\(?\s*([^)]*)\s*\)?\s*=(.*)/),e=new Function(n[1],null===o?"return "+i.input:"return "+o.input))}return 0==i.length&&(e={accessFunction:new Function(n[1],"return "+n[2])}),e}static execute(t,e,n,i,r){let o=r?e.dynamicConfig:e.conditionalExpression,s=r?e:i;return n&&"string"==typeof o&&(o=pR.functionCreator(o)),!n||!o||(i&&i.constructor!==Object?o.call(i,n,t,s):o(n,t,s))}static getConditionPath(t){let e="";for(var n=1;n<t.length;n++)e+=t.length-1==n?t[n].trim():t[n].trim()+".";return e}static expressionParser(t,e){let n=[],i=t.toString(),r=pR.extractArguments(i);if(r.length>0){let t=[];i.replace(/\s/g,"").replace(new RegExp(/{|}/,"g"),"").split(new RegExp(/return|===|!==|==|!=|>=|>|<=|<|&&/)).forEach(e=>{let n=e.replace(/\(|\)/g,"").split("||");for(let i of n)t.push(i)}),t.forEach(t=>{r.forEach((i,r)=>{if((t=t.trim()).startsWith(i+".")){var o=t.split(".");if(2==o.length||o.length>=2&&e)n.push(e?{propName:this.getConditionPath(o),argumentIndex:3==r?0:2==r?1:1==r?-1:r}:{propName:o[1].trim(),argumentIndex:3==r?0:2==r?1:1==r?-1:r});else{var s=o[1].split("[");let t={propName:o[o.length-1].trim(),objectPropName:s[0],arrayIndex:s.length>1?s[1].replace("]",""):void 0,argumentIndex:3===r?0:2===r?1:r};n.push(t)}}})})}return n}static extractArguments(t){let e=["this"];if("("===t[0].trim()||t.trim().startsWith("function")){let n=t.match(/\(([^)]+)\)/g);n&&n[0]&&n[0].split(",").forEach(t=>e.push(t.trim().replace("(","").replace(")","")))}else{let n=t[0].split("=>")[0];e.push(n.trim().replace("(","").replace(")",""))}return e}static expressionColumns(t,e=!1){var n=[];let i=[];return"string"==typeof t?(t.split("=>")[1].split(" && ").forEach(t=>{t.split(" || ").forEach(t=>{i.push(t.trim().split(" ")[0])})}),i.forEach(t=>{var e=t.split(".");if(2==e.length)n.push({propName:e[1].trim()});else{var i=e[1].split("[");let t={propName:e[e.length-1].trim(),objectPropName:i[0],arrayIndex:i.length>1?i[1].replace("]",""):void 0};n.push(t)}})):n=pR.expressionParser(t,e),n}static dynamicConfigParser(t,e){let n=[],i=t.toString(),r=pR.extractArguments(i),o=i.replace(new RegExp(/\r?\n|\r|;/g)," ").replace(/["%()\{}=\\?\ufffd`'#<>|,;:+-]+/g," ").split(/ /g);return r.length>3&&r.splice(r.length-1,1),r.forEach(t=>{o.filter(n=>n!=`${t}.${e}`&&n.startsWith(t+".")).forEach(e=>{let i=e.split(".");if(2==i.length)n.push({propName:e.replace(t+".","")});else{var r=i[1].split("[");let t={propName:i[i.length-1].trim(),objectPropName:r[0],arrayIndex:r.length>1?r[1].replace("]",""):void 0};n.push(t)}})}),n}}const mR={numeric:"numeric",required:"required",minLength:"minLength",maxLength:"maxLength",minNumber:"minNumber",maxNumber:"maxNumber",pattern:"pattern",password:"password",compare:"compare",minDate:"minDate",maxDate:"maxDate",alpha:"alpha",alphaNumeric:"alphaNumeric",email:"email",hexColor:"hexColor",lowerCase:"lowerCase",url:"url",upperCase:"upperCase",nested:"nested",propArray:"propArray",propObject:"propObject",contains:"contains",range:"range",custom:"custom",digit:"digit",creditCard:"creditCard",time:"time",json:"json",greaterThan:"greaterThan",greaterThanEqualTo:"greaterThanEqualTo",lessThan:"lessThan",lessThanEqualTo:"lessThanEqualTo",choice:"choice",different:"different",even:"even",odd:"odd",factor:"factor",leapYear:"leapYear",allOf:"allOf",oneOf:"oneOf",noneOf:"noneOf",mac:"mac",ascii:"ascii",dataUri:"dataUri",port:"port",latLong:"latLong",extension:"extension",fileSize:"fileSize",endsWith:"endsWith",startsWith:"startsWith",primeNumber:"primeNumber",latitude:"latitude",longitude:"longitude",compose:"compose",rule:"rule",file:"file",image:"image",unique:"unique",notEmpty:"notEmpty",ip:"ip",cusip:"cusip",grid:"grid",date:"date",and:"and",or:"or",not:"not",minTime:"minTime",maxTime:"maxTime",requiredTrue:"requiredTrue",mask:"mask"},fR=new class{constructor(){this.instances=[],this.modelIncrementCount=0}get(t){return this.instances.filter(e=>e.instance===t)[0]}getInstance(t,e,n,i){let r=null!=n?t.constructor:t,o=this.instances.filter(t=>t.instance===r)[0];return o||(o=this.addInstanceContainer(r)),o}addPropsConfig(t,e){let n=this.instances.filter(e=>e.instance==t)[0];if(n)for(let i of e)for(let e of i.propNames){let r=n.properties.filter(t=>t.name==e&&"objectProperty"!==t.propertyType&&"arrayProperty"!==t.propertyType)[0];r?this.addPropConfig(t,[r],i):":all:"===e&&this.addPropConfig(t,n.properties.filter(t=>"objectProperty"!==t.propertyType&&"arrayProperty"!==t.propertyType),i)}else void 0===e&&this.addInstanceContainer(t)}addPropConfig(t,e,n){for(var i of e){let e=!1;if(n.excludePropNames&&(e=void 0!==n.excludePropNames.filter(t=>t==i.name)[0]),!e){if(n.validationConfig)for(let e in n.validationConfig)this.init({constructor:t},0,i.name,e,!0===n.validationConfig[e]?void 0:n.validationConfig[e],!1);n.error&&this.addDecoratorConfig({constructor:t},0,i.name,n.error,"error"),n.disable&&this.addDecoratorConfig({constructor:t},0,i.name,n.disable,"disabled"),n.elementClass&&this.addDecoratorConfig({constructor:t},0,i.name,n.elementClass,"elementClass"),n.ignore&&(i.ignore=n.ignore)}}}addSanitizer(t,e,n,i,r){let o=this.getInstance(t,e,n,i);o&&(o.sanitizers[n]||(o.sanitizers[n]=[]),o.sanitizers[n].push({name:i,config:r}))}addDecoratorConfig(t,e,n,i,r){let o=null!=n?t.constructor:t,s=this.instances.filter(t=>t.instance===o)[0];s||(s=this.addInstanceContainer(o)),s.nonValidationDecorators[r].conditionalExpressions[n]=i.conditionalExpression,pR.expressionColumns(i.conditionalExpression,!0).forEach(t=>{if(-1!==t.argumentIndex){let e=t.objectPropName?`${t.objectPropName}.${t.propName}-rxw-${t.argumentIndex}`:`${t.propName}-rxw-${t.argumentIndex}`;s.nonValidationDecorators[r].changeDetection[e]||(s.nonValidationDecorators[r].changeDetection[e]=[]);let i=s.nonValidationDecorators[r].changeDetection[e];-1===i.indexOf(e)&&i.push(n)}else s.nonValidationDecorators[r].controlProp[n]||(s.nonValidationDecorators[r].controlProp[n]={}),s.nonValidationDecorators[r].controlProp[n][t.propName.replace(";","")]=!0})}init(t,e,n,i,r,o){this.addAnnotation(null!=n?t.constructor:t,{propertyIndex:e,propertyName:n,annotationType:i,config:r,isAsync:o})}initPropertyObject(t,e,n,i,r){fR.addProperty(i.constructor,{name:t,propertyType:e,entity:n,dataPropertyName:r?r.name:void 0,entityProvider:r?r.entityProvider:void 0})}addInstanceContainer(t){let e={instance:t,propertyAnnotations:[],properties:[],nonValidationDecorators:{disabled:{conditionalExpressions:{},changeDetection:{},controlProp:{}},error:{conditionalExpressions:{},changeDetection:{},controlProp:{}},elementClass:{conditionalExpressions:{},changeDetection:{},controlProp:{}}},sanitizers:{}};return this.instances.push(e),e}addProperty(t,e,n=!1){let i=this.instances.filter(e=>e.instance===t)[0];i?this.addPropertyInfo(i,e,!n):(i=this.addInstanceContainer(t),this.addPropertyInfo(i,e))}addPropertyInfo(t,e,n=!1){var i=this.getProperty(t,e);i?n&&this.updateProperty(i,e):t.properties.push(e)}addAnnotation(t,e){this.addProperty(t,{propertyType:"property",name:e.propertyName},!0);let n=this.instances.filter(e=>e.instance===t)[0];if(n||(n=this.addInstanceContainer(t)),n.propertyAnnotations.push(e),e.config&&e.config.conditionalExpression){let t=pR.expressionColumns(e.config.conditionalExpression);this.addChangeValidation(n,e.propertyName,t)}if(e.config&&e.config.dynamicConfig){let t=pR.dynamicConfigParser(e.config.dynamicConfig,e.propertyName);this.addChangeValidation(n,e.propertyName,t)}this.setConditionalColumns(n,e)}setConditionalColumns(t,e){t&&e.config&&(e.annotationType==mR.and||e.annotationType==mR.or||e.annotationType==mR.not?Object.keys(e.config.validation).forEach(n=>{"boolean"!=typeof e.config.validation[n]&&this.setLogicalConditional(t,n,e.config.validation[n].fieldName,e.propertyName)}):this.setLogicalConditional(t,e.annotationType,e.config.fieldName,e.propertyName))}setLogicalConditional(t,e,n,i){t&&(e==mR.compare||e==mR.greaterThan||e==mR.greaterThanEqualTo||e==mR.lessThan||e==mR.lessThanEqualTo||e==mR.different||e==mR.factor||e==mR.minTime||e==mR.maxTime||e==mR.creditCard&&n||(e==mR.minDate||e==mR.maxDate)&&n)&&this.setConditionalValueProp(t,n,i)}setConditionalValueProp(t,e,n){if(e){let i=e.split?e.split("."):"";i.length<2?(t.conditionalValidationProps||(t.conditionalValidationProps={}),t.conditionalValidationProps[e]||(t.conditionalValidationProps[e]=[]),-1==t.conditionalValidationProps[e].indexOf(n)&&t.conditionalValidationProps[e].push(n)):this.addChangeValidation(t,n,[{argumentIndex:1,objectPropName:i[0],propName:i[1],referencePropName:n}])}}addChangeValidation(t,e,n){t&&(t.conditionalValidationProps||(t.conditionalValidationProps={}),n.forEach(n=>{n.propName&&!n.objectPropName?(t.conditionalValidationProps[n.propName]||(t.conditionalValidationProps[n.propName]=[]),-1==t.conditionalValidationProps[n.propName].indexOf(e)&&t.conditionalValidationProps[n.propName].push(e)):n.propName&&n.objectPropName&&(t.conditionalObjectProps||(t.conditionalObjectProps=[]),n.referencePropName=e,t.conditionalObjectProps.push(n))}))}clearInstance(t){let e=this.instances.filter(e=>e.instance===t)[0];if(e){let t=this.instances.indexOf(e);this.instances.splice(t,1)}}getProperty(t,e){return t.properties.filter(t=>t.name==e.name)[0]}updateProperty(t,e){t.dataPropertyName=e.dataPropertyName,t.defaultValue=e.defaultValue}},bR={alpha:/^[a-zA-Z]+$/,alphaExits:/[a-zA-Z]/,alphaWithSpace:/^[a-zA-Z\s]+$/,macId:/^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/,onlyDigit:/^[0-9]+$/,isDigitExits:/[0-9]/,lowerCase:/[a-z]/,upperCase:/[A-Z]/,specialCharacter:/[!@#$%^&*(),.?":{}|<>]/,advancedEmail:/^[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])?)*$/,basicEmail:/^(([^<>()\[\]\\.,,:\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,}))$/,alphaNumeric:/^[0-9a-zA-Z]+$/,alphaNumericWithSpace:/^[0-9a-zA-Z\s]+$/,hexColor:/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i,strictHexColor:/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i,float:/^(?:[-+]?(?:[0-9]+))?(?:\.[0-9]*)?(?:[eE][\+\-]?(?:[0-9]+))?$/,decimal:/^[-+]?([0-9]+|\.[0-9]+|[0-9]+\.[0-9]+)$/,hexaDecimal:/^[0-9A-F]+$/i,date:/^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/,time:/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/,timeWithSeconds:/^([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/,url:/^(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9]\.[^\s]{2,})$/,localhostUrl:/^(https?:\/\/localhost\:([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])|localhost\::([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])|https?:\/\/localhost\::([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))$/,interanetUrl:/^(https?:\/\/[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9])$/,ascii:/^[\x00-\x7F]+$/,dataUri:/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*?)$/i,lat:/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,long:/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,ipV4:/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,ipV6:/^((?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(:[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(:[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(:[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(:[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(:[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(:[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(:[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(:[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(:[a-fA-F\d]{1,4}){1,6}|:)|(?::((?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(%[0-9a-zA-Z]{1,})?$/,cidrV4:/^(3[0-2]|[12]?[0-9])$/,cidrV6:/^(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,cusip:/^[0-9A-Z]{9}$/,grid:/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g};class gR{static isExits(t,e){return null!=t.match(e)}static isValid(t,e){return e.test(t)}static isNotBlank(t,e=!1){return e?0===t||null!=t&&""!==String(t).trim():0===t||null!=t&&""!==t}static isValidPassword(t,e){let n=!1,i="status",r=Object.getOwnPropertyNames(t);for(let o of r){switch(o){case"alphabet":n=gR.isExits(e,bR.alphaExits),i="alphabet";break;case"digit":n=gR.isValid(e,bR.isDigitExits),i="digit";break;case"contains":n=-1!=e.indexOf(t.contains),i="contains";break;case"lowerCase":n=gR.isValid(e,bR.lowerCase),i="lowerCase";break;case"upperCase":n=gR.isValid(e,bR.upperCase),i="upperCase";break;case"specialCharacter":n=gR.isExits(e,bR.specialCharacter),i="specialCharacter";break;case"minLength":n=e.length>=t[o],i="minLength";break;case"maxLength":n=e.length<=t[o],i="maxLength"}if(!n)break}return{isValid:n,keyName:i}}static isZero(t){return 0==t}static commaRegex(){return new RegExp(",","g")}}let _R=(()=>{class t{static set(e){e&&(t.json=e)}static get(e){let n;if(t.json){let i=e.split(".");for(let e of i)if(n=n?n[e]:t.json[e],!n)break}return n}}return t.number={},t.json={},t.autoInstancePush=!1,t})();function vR(t){return"[object Object]"===Object.prototype.toString.call(t)}function yR(t){let e={};if("string"==typeof(i=t)||"number"==typeof i||"boolean"==typeof i||i instanceof Date)return t;for(var n in t)if("formGroup"!=n)if(Array.isArray(t[n])){e[n]=[];for(let i of t[n])vR(i)?e[n].push(yR(i)):e[n].push(i)}else e[n]="object"!=typeof t[n]||t[n]instanceof RegExp?t[n]:yR(t[n]);return e;var i}function wR(t,e){for(var n in e)if(Array.isArray(e[n])){t[n]||(t[n]=[]);for(let i of e[n])t[n].push(yR(i))}else t[n]="object"!=typeof t[n]||t[n]instanceof RegExp?e[n]:wR(t[n],e[n]);return t}function CR(t,e){let n=!1;for(var i in e){if(Array.isArray(t[i]))for(var r=0;r<t[i].length;r++)n=CR(t[i][r],e[i][r]);else n="object"!=typeof t[i]||t[i]instanceof RegExp?!(t[i]==e[i]):CR(t[i],e[i]);if(n)break}return n}class xR{static toJson(t,e,n){let i=e?e.message:null,r=void 0;!i&&e&&e.messageKey&&(r=e.messageKey);let o=i||(_R&&_R.json&&_R.json.validationMessage&&_R.json.validationMessage[r||t]?_R.json.validationMessage[r||t]:"");n.forEach((t,e)=>{o=o.replace(`{{${e}}}`,t)});let s={};return s[t]={message:o,refValues:n},e&&e.isAddMessageKey&&(s.messageKey=r),s}static null(){return null}static getPasswordMessage(){return _R&&_R.json&&_R.json.validationMessage&&_R.json.validationMessage.password?_R.json.validationMessage.password:""}}class OR extends Ac{constructor(t,e,n,i,r){super(e,n,i),this.arrayObject=t,this.arrayConfig=r,this._isModified=!1,this._modified=[],this.cloneObject(t)}get isModified(){return this._isModified}push(t,e=!1){let n=this.root;this.arrayObject&&t.modelInstance&&(e?this.arrayObject[this.arrayObject.length]=t.modelInstance:this.arrayObject.push(t.modelInstance)),super.push(t),n.valueChangedSync&&n.valueChangedSync(),this.patch(),this.checkValidation()}patch(){this.checkModification(),this.parent&&this.parent.patch()}resetForm(t){if(t&&t.index>=0&&t.groupOption)this.controls[t.index].resetForm(t.groupOption);else for(var e=0;e<this._baseValue.length;e++)if(void 0!==this.controls[e])this.controls[e].resetForm({value:this._baseValue[e]});else if(t&&t.pushFunction){let n=t.pushFunction(this._baseValue[e]);this.push(n)}}commit(){this._baseValue=[];for(let t of this.controls)t.commit(),this._baseValue.push(yR(t.value));this.patch()}removeAt(t,e=!1){let n=this.root;if(e){for(var i=t;i<this.arrayObject.length-1;i++)this.arrayObject[i]=this.arrayObject[i+1];this.arrayObject.pop()}else this.arrayObject.splice(t,1);super.removeAt(t),n.valueChangedSync&&n.valueChangedSync(),this.patch(),this.checkValidation()}checkValidation(){setTimeout(()=>{null!=this.arrayConfig&&this.arrayConfig.allowMaxIndex&&this.length>this.arrayConfig.allowMaxIndex?this.setErrors(xR.toJson("propArray",this.arrayConfig,[this.length,this.arrayConfig.allowMaxIndex])):this.errors&&this.errors.propArray&&delete this.errors.propArray})}checkModification(){if(this._isModified=!(this._baseValue.length==this.controls.length),!this._isModified)for(var t=0;t<this.controls.length&&(this._isModified=CR(this._baseValue[t],this.controls[t].value),!this._isModified);t++);}cloneObject(t){this._baseValue=[];for(let e of t)this._baseValue.push(yR(e))}}var SR=function(t){return t[t.PositiveNumber=1]="PositiveNumber",t[t.NegativeNumber=2]="NegativeNumber",t[t.Both=3]="Both",t}({}),TR=function(t){return t[t.V4=1]="V4",t[t.V6=2]="V6",t[t.AnyOne=3]="AnyOne",t}({}),DR=function(t){return t[t.None=0]="None",t[t.OnSubmit=1]="OnSubmit",t[t.OnDirty=2]="OnDirty",t[t.OnTouched=3]="OnTouched",t[t.OnDirtyOrTouched=4]="OnDirtyOrTouched",t[t.OnDirtyOrSubmit=5]="OnDirtyOrSubmit",t[t.OnTouchedOrSubmit=6]="OnTouchedOrSubmit",t}({}),kR=function(t){return t[t.ControlsOnly=1]="ControlsOnly",t[t.FormGroupsOnly=2]="FormGroupsOnly",t[t.FormArraysOnly=3]="FormArraysOnly",t[t.ControlsAndFormGroupsOnly=4]="ControlsAndFormGroupsOnly",t[t.DefinedPropsOnly=5]="DefinedPropsOnly",t[t.All=6]="All",t}({});class PR{static getParentObjectValue(t){return t.parent?this.parentObjectValue(t.parent).value:{}}static getParentModelInstanceValue(t){return t.parent?this.parentObjectValue(t.parent).modelInstanceValue:{}}static getRootFormGroup(t){return t.parent?this.getRootFormGroup(t.parent):t}static getParentControl(t){return t.parent?this.parentObjectValue(t.parent):t}static getFormControlName(t){let e="";if(t.parent)for(var n in t.parent.controls)if(t.parent.controls[n]==t){e=n;break}return e}static getParentFormArray(t){return t.parent&&!(t.parent instanceof Ac||t.parent instanceof OR)?this.getParentFormArray(t.parent):t.parent}static toLower(t){return t?String(t).toLowerCase():t}static getControl(t,e){let n=t.split(".");if(n.length>1){var i=e;return n.forEach((t,e)=>{i=i.controls[t]}),i}return e.controls[t]}static getFormControl(t,e){let n=t.split(".");if(n.length>1&&e.parent){var i=this.getParentControl(e);return n.forEach((t,e)=>{i=i.controls[t]}),i}return e.parent?e.parent.get([t]):void 0}static parentObjectValue(t){return t.parent?t=this.parentObjectValue(t.parent):t}static isNumeric(t){return t-parseFloat(t)+1>=0}static notEqualTo(t,e){let n=null==t?"":t,i=null==e?"":e;return n instanceof Date&&i instanceof Date?+n!=+i:n!=i}static numericValidation(t,e){let n;n=_R&&_R.number?_R.json&&_R.json.allowDecimalSymbol?_R.json.allowDecimalSymbol:_R.number.decimalSymbol:".";let i=/^[0-9]+$/;switch(e=null==e?SR.PositiveNumber:e){case SR.PositiveNumber:i=t?"."==n||null==n?/^[0-9\.]+$/:/^[0-9\,]+$/:/^[0-9]+$/;break;case SR.NegativeNumber:i=t?"."==n||null==n?/^[-][0-9\.]+$/:/^[-][0-9\,]+$/:/^[-][0-9]+$/;break;case SR.Both:i=t?"."==n||null==n?/^[-|+]?[0-9\.]+$/:/^[-|+]?[0-9\,]+$/:/^[-|+]?[0-9]+$/}return i}static configureControl(t,e,n){if(t.validatorConfig)t.validatorConfig[n]=e;else{let i={};i[n]=e,Object.assign(t,{validatorConfig:i})}}static lowerCaseWithTrim(t){return"string"==typeof t?t.toLowerCase().trim():String(t).toLowerCase().trim()}static isObject(t){return"[object Object]"===Object.prototype.toString.call(t)}static isArray(t){return Array.isArray(t)}static cloneValue(t){return PR.isObject(t)?PR.isArray(t)?[...t]:Object.assign({},t):t}}const ER=/^(?:[\+-]?\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[\.,]\d+(?!:))?)?(?:\2[0-5]\d(?:[\.,]\d+)?)?(?:[zZ]|(?:[\+-])(?:[01]\d|2[0-3]):?(?:[0-5]\d)?)?)?)?$/;class AR{isDate(t){return t instanceof Date&&!isNaN(t.valueOf())}getRegex(t){var e;switch(t){case"ymd":e="^(?:[0-9]{4})-(1[0-2]|0?[1-9])-(3[01]|[12][0-9]|0?[1-9])$";break;case"dmy":e="^(3[01]|[12][0-9]|0?[1-9])-(1[0-2]|0?[1-9])-(?:[0-9]{2})?[0-9]{2}$";break;case"mdy":e="^(1[0-2]|0?[1-9])-(3[01]|[12][0-9]|0?[1-9])-(?:[0-9]{2})?[0-9]{2}$"}return new RegExp(e)}regex(){return this.getRegex(_R&&_R.json&&_R.json.internationalization&&_R.json.internationalization.dateFormat&&_R.json.internationalization.seperator?_R.json.internationalization.dateFormat:_R&&_R.json&&_R.json.baseConfig&&_R.json.baseConfig.dateFormat?_R.json.baseConfig.dateFormat:"mdy")}getDate(t,e=!1){let n,i,r;if(this.isDate(t))return t;{let o,s;if(ER.test(t))return new Date(t);switch(o=_R&&_R.json&&_R.json.baseConfig&&_R.json.baseConfig.seperator?_R.json.baseConfig.seperator:"/",s=_R&&_R.json&&_R.json.baseConfig&&_R.json.baseConfig.dateFormat?_R.json.baseConfig.dateFormat:"mdy",!e&&_R&&_R.json&&_R.json.internationalization&&_R.json.internationalization.dateFormat&&_R.json.internationalization.seperator&&(o=_R.json.internationalization.seperator,s=_R.json.internationalization.dateFormat),s){case"ymd":[n,i,r]=t.split(o).map(t=>+t);break;case"dmy":[r,i,n]=t.split(o).map(t=>+t);break;case"mdy":[i,r,n]=t.split(o).map(t=>+t)}return new Date(n,i-1,r)}}isValid(t,e){if("string"==typeof t){if(e&&e.allowISODate&&ER.test(t))return!0;let n="/";return _R.json&&_R.json.internationalization&&_R.json.internationalization.seperator&&(n=_R.json.internationalization.seperator),t=t.replace(n,"-").replace(n,"-"),this.regex().test(t)}return this.isDate(t)}getConfigDateValue(t){let e=t.value;return t.value&&"string"==typeof t.value&&(e=this.getDate(t.value,!0)),e}getCompareDate(t,e){let n=this.getConfigDateValue(t);if(t.fieldName){let i=PR.getFormControl(t.fieldName,e);i&&i.value&&(n=this.getDate(i.value))}return n}}function IR(t){return null!=t&&""!==t}function MR(t,e){return IR(t)&&"string"==typeof t?t.replace(new RegExp("[$"+e+"]+","g"),""):t}function UR(t){if(IR(t)){var e=".";if(_R&&_R.number&&(e=_R.json&&_R.json.allowDecimalSymbol?_R.json.allowDecimalSymbol:_R.number.decimalSymbol),","==e&&"string"==typeof t&&(t=t.replace(",",".")),PR.isNumeric(t))return parseFloat(t)}return null}const LR={trim:function(t){return IR(t)&&"string"==typeof t?t.trim():t},ltrim:function(t){return IR(t)&&"string"==typeof t?t.replace(/^\s+/g,""):t},rtrim:function(t){return IR(t)&&"string"==typeof t?t.replace(/\s+$/g,""):t},blacklist:MR,stripLow:function(t,e){return MR(t,!0===e?"\0-\t\v\f\x0e-\x1f\x7f":"\0-\x1f\x7f")},toBoolean:function(t,e){return IR(t)?e?"1"===t||"true"===t:"0"!==t&&"false"!==t&&""!==t:t},toDouble:function(t){return UR(t)},toFloat:UR,toInt:function(t,e){return IR(t)&&PR.isNumeric(t)?parseInt(t,e||10):null},toString:function(t,e){return IR(t)?String(t):t},whitelist:function(t,e){return IR(t)&&"string"==typeof t?t.replace(new RegExp(`[^${e}]+`,"g"),""):t},toDate:function(t,e){var n=new AR;return IR(t)&&"string"==typeof t&&n.isValid(t,e)?t=n.getDate(t):null},escape:function(t){return IR(t)?t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;"):t},prefix:function(t,e){return IR(t)?`${e}${t}`:t},suffix:function(t,e){return IR(t)?`${t}${e}`:t},sanitize:function(t,e){return e.custom(t)}};class RR{constructor(t,e){this.decoratorType=t,this.entityObject=e}getFormGroupName(t){let e="";if(t.parent)for(var n of Object.keys(t.parent.controls))if(t.parent.controls[n]==t){e=n;break}return e}zeroArgumentProcess(t,e){let n=[];this.getDisabledColumns(t.parent,e+"-rxw-0",!1).forEach(t=>n.push(t));let i=this.topControlPath(t,e),r=i.split(".");if(r.length>1){let e=PR.getRootFormGroup(t);this.getDisabledColumns(e,i+"-rxw-0",!0).forEach(t=>n.push(t));let s="";for(var o=0;o<r.length-2;o++){let t=r[o];s=i.replace(t+".","")+"-rxw--0",e.controls[t]&&(this.getDisabledColumns(e.controls[t],s,!0,t).forEach(t=>n.push(t)),e=e.controls[t])}}return n}getDisabledColumns(t,e,n,i=""){if(t.modelInstance){let r=function(t,e){let n=fR.get(t),i=e?e.__proto__:function(t,e){let n=Object.create(t.prototype);try{t.apply(n,e)}catch(i){n=Reflect.construct(t,e)}return n}(t,[]).__proto__;if(i.__proto__){let t=!1;do{if(t=i.__proto__.constructor!=Object,t){let t=fR.get(i.__proto__.constructor);n=wR(yR(n),yR(t)),i=i.__proto__}}while(t)}return n}(t.modelInstance.constructor,this.entityObject);return this.getChangeDetectionColumns(r,e,n,i)}return[]}getChangeDetectionColumns(t,e,n,i=""){let r=[],o=t.nonValidationDecorators[this.decoratorType].changeDetection[e];return o&&o.forEach(e=>{r.push({controlPath:i?`${i}.${e}`:e,conditionalExpression:t.nonValidationDecorators[this.decoratorType].conditionalExpressions[e],isRoot:n})}),r}topControlPath(t,e){if(t.parent){let n=this.getFormGroupName(t.parent);if(n)return this.topControlPath(t.parent,e=`${n}.${e}`)}return e}childControlDisabledExpression(t,e,n=""){let i=[];if(t.modelInstance){let r=fR.get(t.modelInstance.constructor);r&&(this.getChangeDetectionColumns(r,e,!0,n).forEach(t=>i.push(t)),r.properties.filter(t=>"objectProperty"==t.propertyType).forEach(r=>{t.controls[r.name]&&(this.getDisabledColumns(t.controls[r.name],e,!0,n?`${n}.${r.name}`:""+r.name).forEach(t=>i.push(t)),this.childControlDisabledExpression(t.controls[r.name],e,n?`${n}.${r.name}`:""+r.name).forEach(t=>i.push(t)))}))}return i}oneArgumentProcess(t,e){let n=this.topControlPath(t,e),i=PR.getRootFormGroup(t);return this.childControlDisabledExpression(i,n)}}class NR extends Pc{constructor(t,e,n,i,r,o,s){if(super(t,e,n),this.entityObject=i,this.baseObject=r,this._sanitizers=s,this._errorMessages=[],this._childColumns=[],this._refDisableControls=[],this._refMessageControls=[],this._refClassNameControls=[],this._isPassedExpression=!1,this._dirty=!1,this.backEndErrors={},this._baseValue=void 0===t?null:this.getFormState(t),this._isModified=!1,this.keyName=o,this._errorMessageBindingStrategy=_R.get("reactiveForm.errorMessageBindingStrategy"),this._sanitizers&&this._sanitizers.filter(t=>"toFloat"==t.name)[0]&&this._baseValue&&_R.number&&","==_R.number.decimalSymbol){let t=String(this._baseValue);-1!=t.indexOf(".")&&(this._baseValue=t.replace(".",_R.number.decimalSymbol),super.setValue(this._baseValue))}}get errors(){return this._errors}set errors(t){this._errors=t}get errorMessages(){if(this._messageExpression){if(this._messageExpression&&!this._isPassedExpression)return[]}else 0==this._errorMessages.length&&this.errors&&this.setControlErrorMessages();return!this.errors&&this._errorMessages.length>0&&this.setControlErrorMessages(),this._errorMessages}get errorMessage(){if(this._messageExpression){if(this._messageExpression&&!this._isPassedExpression)return}else null==this._errorMessage&&this.errors&&this.setControlErrorMessages();return!this.errors&&this._errorMessage&&this.setControlErrorMessages(),this._errorMessage}getFormState(t){let e=t;return Array.isArray(t)&&(e=[],t.forEach(t=>e.push(t))),e}get isModified(){return this._isModified}get dirty(){return this._dirty}set dirty(t){this._dirty=t}setValue(t,e){this.parent.changing=!0;let n=this.getSanitizedValue(t);e&&e.dirty&&(this.baseObject[this.keyName]=t),this.entityObject[this.keyName]=n,super.setValue(t,e),this.bindError(),this.bindClassName(),this.executeExpressions(),this.callPatch(),e&&!e.updateChanged&&this.root.valueChangedSync&&this.root.valueChangedSync(),this.parent.changing=!1}getControlValue(){return this.getSanitizedValue(this.value)}bindError(){this._messageExpression&&(this._isPassedExpression=this.executeExpression(this._messageExpression,this)),this.setControlErrorMessages(),this.errors=this.errors}bindClassName(){if(this.updateOnElementClass&&"function"==typeof this.updateOnElementClass){let t=this.executeExpression(this._classNameExpression,this);(0,this.updateOnElementClass)(t)}}setBackEndErrors(t){Object.keys(t).forEach(e=>this.backEndErrors[e]=t[e]),this.setControlErrorMessages()}clearBackEndErrors(t){t?Object.keys(t).forEach(t=>delete this.backEndErrors[t]):this.backEndErrors={},this.setControlErrorMessages()}markAsTouched(t){let e=this.touched;super.markAsTouched(t),e!=this.touched&&this.runControlPropChangeExpression(["touched","untouched"])}markAsUntouched(t){let e=this.untouched;super.markAsUntouched(t),e!=this.untouched&&this.runControlPropChangeExpression(["untouched","touched"])}markAsDirty(t){let e=this.dirty;super.markAsDirty(t),this.dirty=!0,e!=this.dirty&&this.runControlPropChangeExpression(["dirty"])}markAsPristine(t){let e=this.pristine;super.markAsDirty(t),e!=this.pristine&&this.runControlPropChangeExpression(["pristine"])}markAsPending(t){let e=this.pending;super.markAsDirty(t),e!=this.pending&&this.runControlPropChangeExpression(["pending"])}runControlPropChangeExpression(t){t.forEach(t=>{(this._controlProp&&this._messageExpression&&this._controlProp[t]||!this._messageExpression&&this.checkErrorMessageStrategy())&&this.bindError(),this._classNameControlProp&&this._classNameControlProp[t]&&this.bindClassName()})}refresh(){this.getMessageExpression(this.parent,this.keyName),this.bindConditionalControls("disabled","_refDisableControls"),this.bindConditionalControls("error","_refMessageControls"),this.bindConditionalControls("elementClass","_refClassNameControls"),this.executeExpressions(),this.bindError()}reset(t){this.setValue(void 0!==t?t:this.getFormState(this._baseValue)),this.dirty=!1}commit(){this._baseValue=this.value,this.callPatch()}callPatch(){this._isModified=this.getValue(this._baseValue)!=this.getValue(this.value),this.parent&&this.parent.patch&&this.parent.patch(this.keyName)}checkErrorMessageStrategy(){let t=!0;switch(this._errorMessageBindingStrategy){case DR.OnSubmit:t=this.parent.submitted;break;case DR.OnDirty:t=this.dirty;break;case DR.OnTouched:t=this.touched;break;case DR.OnDirtyOrTouched:t=this.dirty||this.touched;break;case DR.OnDirtyOrSubmit:t=this.dirty||this.parent.submitted;break;case DR.OnTouchedOrSubmit:t=this.touched||this.parent.submitted;break;default:t=!0}return t}executeExpressions(){this.processExpression("_refDisableControls","disabled"),this.processExpression("_refMessageControls","bindError"),this.processExpression("_refClassNameControls","bindClassName")}getMessageExpression(t,e){if(t.modelInstance){let n=fR.get(t.modelInstance.constructor);n&&(this._messageExpression=n.nonValidationDecorators.error.conditionalExpressions[e],this._controlProp=n.nonValidationDecorators.error.controlProp[this.keyName],this._classNameExpression=n.nonValidationDecorators.elementClass.conditionalExpressions[e],this._classNameControlProp=n.nonValidationDecorators.elementClass.controlProp[e],this._classNameExpression&&(this.updateOnElementClass=!0))}}getSanitizedValue(t){if(this._sanitizers)for(let e of this._sanitizers)t=LR[e.name](t,e.config);return t}bindConditionalControls(t,e){this._disableProvider=new RR(t,this.entityObject),this[e]=this._disableProvider.zeroArgumentProcess(this,this.keyName),this._disableProvider.oneArgumentProcess(this,this.keyName+"-rxw-1").forEach(t=>this[e].push(t))}setControlErrorMessages(){if(!this._messageExpression&&this.checkErrorMessageStrategy()||this._isPassedExpression){this._errorMessages=[],this.errors?Object.keys(this.errors).forEach(t=>{if(this.parent){if(this.parent.controlsError[this.keyName]=this._errorMessage=this.getErrorMessage(this.errors,t),!this._errorMessage){let e=xR.toJson(t,void 0,[this.errors[t][t]]);this.parent.controlsError[this.keyName]=this._errorMessage=this.getErrorMessage(e,t)}}else this._errorMessage=this.getErrorMessage(this.errors,t);this._errorMessages.push(this._errorMessage)}):(this._errorMessage=void 0,this.parent&&(this.parent.controlsError[this.keyName]=void 0,delete this.parent.controlsError[this.keyName]));let t=Object.keys(this.backEndErrors);t.length>0&&t.forEach(t=>{this._errorMessages.push(this._errorMessage=this.backEndErrors[t])})}else this._errorMessages=[],this._errorMessage=void 0}getErrorMessage(t,e){if(t[e].message)return t[e].message}processExpression(t,e){if(this[t])for(var n of this[t]){let t=n.isRoot?PR.getControl(n.controlPath,PR.getRootFormGroup(this)):PR.getFormControl(n.controlPath,this);t&&("disabled"==e?this.executeExpression(n.conditionalExpression,t)?t.disable():t.enable():"bindError"==e?t.bindError():"bindClassName"==e&&t.bindClassName())}}executeExpression(t,e){return t.call(e.parent.modelInstance,e,PR.getParentModelInstanceValue(this),e.parent.modelInstance)}getValue(t){return null!=t&&""!==t?t:""}}class FR{convertToFormData(t){return this.convertFormData(t)}convertFormData(t,e,n){let i=e||new FormData,r="";for(var o in t)r=n?`${n}[${o}]`:o,Array.isArray(t[o])?t[o].forEach((t,e)=>{r=`${o}[${e}]`,"object"==typeof t?this.convertFormData(t,i,r):this.nonObjectValueBind(t,i,r)}):null===t[o]||t[o]instanceof Date||"object"!=typeof t[o]||t[o]instanceof File||t[o]instanceof FileList?this.nonObjectValueBind(t[o],i,r):this.convertFormData(t[o],i,r);return i}nonObjectValueBind(t,e,n){if("boolean"==typeof t)e.append(n,!!t);else if(t instanceof FileList)for(var i=0;i<t.length;i++)e.append(`${n}[${i}]`,t.item(i));else gR.isNotBlank(t)&&e.append(n,t)}}function VR(t,e,n){let i=!0;if(n){if(i=!1,n.resetType)switch(n.resetType){case kR.ControlsOnly:i=e instanceof Pc;break;case kR.ControlsAndFormGroupsOnly:i=e instanceof Pc||e instanceof Ec;break;case kR.FormGroupsOnly:i=e instanceof Ec;break;case kR.FormArraysOnly:i=e instanceof Ac;break;case kR.DefinedPropsOnly:i=!!n.value&&-1!=Object.keys(n.value).indexOf(t);break;default:i=!0}!i&&n.with&&(i=void 0!==n.with.filter(e=>e.split(".")[0]==t.split(".")[0])[0]),i||!n.value||void 0!==n.resetType&&n.resetType===kR.DefinedPropsOnly||(i=!0)}return i}function jR(t,e){if(e){let n={};if(e.resetType&&(n.resetType=e.resetType==kR.FormGroupsOnly||e.resetType==kR.FormArraysOnly?kR.ControlsOnly:e.resetType),e.with){let i=e.with.filter(e=>e.split(".")[0]==t).map(t=>{let e=t.split(".");return e.splice(0,1),e.join(".")});n.with=i}return e.value&&e.value[t]&&(n.value=e.value[t]),n=Object.keys(n).length>0?n:void 0,n}}class BR extends Ec{constructor(t,e,n,i,r){for(var o in super(n,i,r),this.model=t,this.entityObject=e,this._modified={},this._isModified=!1,this.changing=!1,this.baseObject={},this.entityObject)this.baseObject[o]=this.entityObject[o];this.formDataProvider=new FR}bindPrimaryKey(t,e){let n=fR.get(t.constructor);if(n){let t=n.properties.filter(t=>t.isPrimaryKey)[0];t&&this.modelInstance[t.name]&&(e[t.name]=this.modelInstance[t.name])}}get modifiedValue(){let t={};if(Object.keys(this._modified).length>0){for(var e in this.bindPrimaryKey(this.modelInstance,t),this._modified)if(this.controls[e]instanceof BR)t[e]=this.controls[e].modifiedValue;else if(this.controls[e]instanceof Ac){let i=this.controls[e];t[e]=[];for(var n=0;n<this._modified[e].length;n++){let r=i.controls[n].modifiedValue;Object.keys(r).length>0&&t[e].push(r)}0==t[e].length&&delete t[e]}else t[e]=this._modified[e];return t}return this._modified}get isModified(){return this._isModified}patch(t){t?this.processModified(t,this.controls[t]):this.nestedFormsModification(),this._isModified=Object.keys(this._modified).length>0,this._isModified||this.nestedArrayIsModified(),this.parent&&this.parent.patch&&this.parent.patch()}isDirty(){let t=!1;for(let e in this.value){let n=this.modelInstance[e];if(this.controls[e]instanceof Ec||this.controls[e]instanceof Ac){if(this.controls[e]instanceof BR)t=this.controls[e].isDirty();else if(this.controls[e]instanceof Ac)for(let n of this.controls[e].controls)t=n.isDirty()}else t=PR.notEqualTo(this.baseObject[e],n);if(t)break}return t}resetForm(t){for(let e in this.controls)VR(e,this.controls[e],t)&&(this.controls[e]instanceof Ec?this.controls[e].resetForm(jR(e,t)):this.controls[e]instanceof Ac?this.controls[e].resetForm(t&&t.value?t.value[e]:void 0):t&&t.value&&gR.isNotBlank(t.value[e])?this.controls[e].reset(t.value[e]):this.controls[e].reset())}commit(){for(let t in this.controls)this.controls[t].commit()}patchModelValue(t,e){if(t)for(let n in this.controls)if(this.controls[n]instanceof BR&&t[n])this.controls[n].patchModelValue(t[n],e);else if(this.controls[n]instanceof Ac&&Array.isArray(t[n])){let i=0;for(let r of this.controls[n].controls)t[n][i]&&r.patchModelValue(t[n][i],e),i+=1}else void 0!==t[n]&&this.controls[n].patchValue(t[n],e)}getErrorSummary(t){let e={};return Object.keys(this.controls).forEach(n=>{if(this.controls[n]instanceof Ec){let t=this.controls[n].getErrorSummary(!1);Object.keys(t).length>0&&(e[n]=t)}else if(this.controls[n]instanceof Ac){let t=0;for(let i of this.controls[n].controls){let r=i.getErrorSummary(!1);Object.keys(r).length>0&&(r.index=t,e[n]||(e[n]=[]),e[n].push(r)),t++}}else if(this.controls[n].errors){let i=this.controls[n].errors;if(t)for(let t in i)e[n]=i[t].message;else e[n]=i}}),e}valueChangedSync(){Object.keys(this.controls).forEach(t=>{if(this.controls[t]instanceof Ac||this.controls[t]instanceof OR||this.controls[t]instanceof Ec||this.controls[t]instanceof BR||this.entityObject[t]instanceof Pc||this.entityObject[t]instanceof NR||!this.controls[t].getControlValue||!PR.notEqualTo(this.controls[t].getControlValue(),this.entityObject[t]))if(this.controls[t]instanceof Ac||this.controls[t]instanceof OR)for(let e of this.controls[t].controls)e.valueChangedSync();else this.controls[t]instanceof BR&&this.controls[t].valueChangedSync();else this.controls[t].setValue(this.entityObject[t],{updateChanged:!0})})}refreshDisable(){Object.keys(this.controls).forEach(t=>{this.controls[t]instanceof Ac||this.controls[t]instanceof OR||this.controls[t]instanceof Ec||this.controls[t]instanceof BR?this.controls[t]instanceof BR&&this.controls[t].refreshDisable():this.controls[t].refresh()})}bindErrorMessages(){Object.keys(this.controls).forEach(t=>{this.controls[t]instanceof Ac||this.controls[t]instanceof OR||this.controls[t]instanceof Ec||this.controls[t]instanceof BR?this.controls[t]instanceof BR&&this.controls[t].bindErrorMessages():this.controls[t].bindError()})}get submitted(){return this._submitted}set submitted(t){this._submitted=t,Object.keys(this.controls).forEach(e=>{if(this.controls[e]instanceof Ac){let n=this.controls[e];for(let e of n.controls)e.submitted=t}else this.controls[e]instanceof Ec?this.controls[e].submitted=t:this.controls[e].bindError()})}get modelInstanceValue(){return yR(this.entityObject)}get modelInstance(){return this.entityObject}get controlsError(){return this.getErrorSummary(!0)}toFormData(){return this.formDataProvider.convertToFormData(this.value)}processModified(t,e){e.isModified?this._modified[t]=e.value:delete this._modified[t],this._isModified=Object.keys(this._modified).length>0}nestedArrayIsModified(){for(var t in this.controls)if(this.controls[t]instanceof OR&&(this._isModified=this.controls[t].isModified),this._isModified)break}setBackEndErrors(t){Object.keys(t).forEach(e=>{this.controls[e]&&this.controls[e].setBackEndErrors(t[e])})}clearBackEndErrors(t){Object.keys(t||this.controls).forEach(e=>{this.controls[e]&&this.controls[e].clearBackEndErrors(t[e])})}nestedFormsModification(){for(var t in this.controls)if(this.controls[t]instanceof BR)this.processModified(t,this.controls[t]);else if(this.controls[t]instanceof OR)if(this.controls[t].isModified){let n=this.controls[t].controls;for(var e of(this._modified[t]=[],n))e.isModified&&(this._modified[t]||(this._modified[t]=[]),this._modified[t].push(e.modifiedValue));0==this._modified[t].length&&delete this._modified[t]}else this._modified[t]&&delete this._modified[t]}}class zR{static ProcessRule(t,e,n=!1){const i=PR.getParentObjectValue(t),r=t.parent?PR.cloneValue(t.parent.value):void 0;let o=void 0;if(t.parent&&t.parent instanceof BR&&(o=t.parent.modelInstance),r)this.updateFormControlValue(r,t.parent.controls,t,e),this.forDisableUpdate(r,e);else if(e.conditionalExpression)return!1;return pR.execute(i,e,r,o,n)}static updateFormControlValue(t,e,n,i){for(var r in t)if(!(t[r]instanceof Object)&&e[r]===n){t[r]=n.value;break}}static forDisableUpdate(t,e){e.disableConfig&&Object.keys(e.disableConfig).forEach(n=>{t[n]=e.disableConfig[n]})}}class qR{static pass(t,e){return!!zR.ProcessRule(t,e)&&gR.isNotBlank(t.value)}static passArrayValue(t,e){return!!zR.ProcessRule(t,e)&&t.value instanceof Array}}const HR={ArrayConfig:["matchValues"],FieldConfig:["fieldName"],IpConfig:["version"],PasswordConfig:["validation"],NumberConfig:["value"],PatternConfig:["expression"],RangeConfig:["minimumNumber","maximumNumber"]};function GR(t,e,n=""){return null!=t&&1!=t?function(t,e,n){if(e.dynamicConfig){let n=zR.ProcessRule(t,yR(e),!0);return"boolean"!=typeof n?(n.conditionalExpression=e.conditionalExpression,n.dynamicConfig=e.dynamicConfig,Object.keys(e).forEach(t=>{("conditionalExpression"!=t&&"dynamicConfig"!=t||void 0===n[t])&&(n[t]=e[t])}),n):e}return function(t,e){return e&&HR[e].forEach(n=>{if(void 0===t[n])throw new Error(`Pass the property of '${n}' with value in the ${e}, otherwise it won't work.`)}),t}(e,n)}(e,t,n):{}}const JR={danish:/^[A-Z\xc6\xd8\xc5]+$/,french:/^[A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/,german:/^[A-Z\xc4\xd6\xdc\xdf]+$/,spanish:/^[a-z\xf1\xe1\xe9\xed\xf3\xfa\xfc]+$/i,russian:/^[\u0410-\u042f\u0401]+$/},YR={danish:/^[A-Z\xc6\xd8\xc5\s]+$/,french:/^[A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178\s]+$/,german:/^[A-Z\xc4\xd6\xdc\xdf\s]+$/,spanish:/^[a-z\xf1\xe1\xe9\xed\xf3\xfa\xfc\s]+$/i,russian:/^[\u0410-\u042f\u0401\s]+$/},$R={danish:/^[0-9A-Z\xc6\xd8\xc5]+$/,french:/^[0-9A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/,german:/^[0-9A-Z\xc4\xd6\xdc\xdf]+$/,spanish:/^[0-9a-z\xf1\xe1\xe9\xed\xf3\xfa\xfc]+$/i,russian:/^[0-9\u0410-\u042f\u0401]+$/},WR={danish:/^[0-9A-Z\xc6\xd8\xc5]+$/,french:/^[0-9A-Z\xc0\xc2\xc6\xc7\xc9\xc8\xca\xcb\xcf\xce\xd4\u0152\xd9\xdb\xdc\u0178]+$/,german:/^[0-9A-Z\xc4\xd6\xdc\xdf]+$/,spanish:/^[0-9a-z\xf1\xe1\xe9\xed\xf3\xfa\xfc\s]+$/i,russian:/^[0-9\u0410-\u042f\u0401]+$/};function KR(t,e,n,i){let r=GR(t,e);return qR.pass(e,r)&&(n=function(t,e,n){switch(t){case"alpha":var i=n.locale?n.locale:_R.json&&_R.json.defaultValidationLocale&&_R.json.defaultValidationLocale.alpha?_R.json.defaultValidationLocale.alpha:"";return[i&&i in JR?JR[i]:e[0],i&&i in YR?YR[i]:e[1]];case"alphaNumeric":var r=n.locale?n.locale:_R.json&&_R.json.defaultValidationLocale&&_R.json.defaultValidationLocale.alphaNumeric?_R.json.defaultValidationLocale.alphaNumeric:"";return[r&&r in $R?$R[r]:e[0],r&&r in WR?WR[r]:e[1]]}}(i,n,r),!gR.isValid(e.value,r&&r.allowWhiteSpace?n[1]:n[0]))?xR.toJson(i,r,[e.value]):xR.null()}function QR(t){return e=>KR(t,e,[bR.alpha,bR.alphaWithSpace],mR.alpha)}function XR(t){return e=>KR(t,e,[bR.alphaNumeric,bR.alphaNumericWithSpace],mR.alphaNumeric)}function ZR(t){return e=>{let n=GR(t,e,"FieldConfig");const i=PR.getFormControl(n.fieldName,e),r=e.value,o=i?i.value:"";return!gR.isNotBlank(r)&&!gR.isNotBlank(o)||i&&i.value===r?xR.null():xR.toJson(mR.compare,n,[r,o])}}function tN(t){return e=>{let n=GR(t,e);return qR.pass(e,n)&&-1==e.value.indexOf(n.value)?xR.toJson(mR.contains,n,[e.value,n.value]):xR.null()}}function eN(t,e){let n=!1;for(let i of e)if(n=i==t,n)break;return n}function nN(t){let e={AmericanExpress:[15],DinersClub:[14,16,19],Discover:[16,19],JCB:[16,19],Maestro:[12,16,19],MasterCard:[16],Visa:[13,16,19]};return n=>{const i=n.value;let r=GR(t,n);const o=n.parent?n.parent.value:void 0;if(zR.ProcessRule(n,r)&&gR.isNotBlank(i)){let t=!1,n=r.fieldName&&o[r.fieldName]?[o[r.fieldName]]:r.creditCardTypes,u="";for(let r of n)if(t=eN(i.length,e[r])&&(l=void 0,l="",/^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)\d+$/.test(c=i)?l="Maestro":/^5[1-5]/.test(c)?l="MasterCard":/^4/.test(c)?l="Visa":/^3[47]/.test(c)?l="AmericanExpress":/^(?:2131|1800|35)/.test(c)?l="JCB":/^3(?:0[0-5]|[68])/.test(c)?l="DinersClub":/^6(?:011|5)/.test(c)&&(l="Discover"),l==r)&&(s=i,void 0,a=parseInt(s.substring(s.length-1,s.length)),function(t){let e=0;for(var n=0;n<t.length;n++)e+=parseInt(t.substring(n,n+1));let i=new Array(0,1,2,3,4,-4,-3,-2,-1,0);for(n=t.length-1;n>=0;n-=2)e+=i[parseInt(t.substring(n,n+1))];let r=e%10;return r=10-r,10==r&&(r=0),r}(s.substring(0,s.length-1))==parseInt(String(a))),u=r,t)break;if(!t)return xR.toJson(mR.creditCard,r,[i,u])}var s,a,c,l;return xR.null()}}function iN(t,e,n,i){return rN(GR(t,e),e,n,i)}function rN(t,e,n,i){return qR.pass(e,t)&&!gR.isValid(e.value,n)?xR.toJson(i,t,[e.value]):xR.null()}function oN(t){return e=>iN(t,e,bR.onlyDigit,mR.digit)}function sN(t){return e=>iN(t,e,bR.basicEmail,mR.email)}function aN(t){return e=>iN(t,e,bR.strictHexColor,mR.hexColor)}function cN(t){return e=>{let n=GR(t,e);return qR.pass(e,n)&&e.value!==e.value.toLowerCase()?xR.toJson(mR.lowerCase,n,[e.value]):xR.null()}}function lN(t,e,n){let i=!1;switch(n){case"<":case">":i=t>e;break;case"<=":case">=":i=t>=e}return i}function uN(t,e,n){e=GR(e,t);var i=new AR;if(zR.ProcessRule(t,e)&&gR.isNotBlank(t.value)){if(!i.isDate(t.value)&&!i.isValid(t.value,e))return xR.toJson(n,e,[t.value]);{let r=i.getCompareDate(e,t),o=i.getDate(t.value);if(!(n==mR.minDate?lN(o,r,e.operator||">="):lN(r,o,e.operator||"<=")))return xR.toJson(n,e,[t.value])}}return xR.null()}function dN(t){return e=>uN(e,t,mR.maxDate)}function hN(t){return e=>{let n=GR(t,e,"NumberConfig");return!qR.pass(e,n)||e.value.length<=n.value?xR.null():xR.toJson(mR.maxLength,n,[e.value,n.value])}}function pN(t){return e=>{let n=GR(t,e,"NumberConfig");return!qR.pass(e,n)||parseFloat(e.value)<=n.value?xR.null():xR.toJson(mR.maxNumber,n,[e.value,n.value])}}function mN(t){return e=>uN(e,t,mR.minDate)}function fN(t){return e=>{let n=GR(t,e,"NumberConfig");return!qR.pass(e,n)||String(e.value).length>=n.value?xR.null():xR.toJson(mR.minLength,n,[e.value,n.value])}}function bN(t){return e=>{let n=GR(t,e,"NumberConfig");return!qR.pass(e,n)||parseFloat(e.value)>=n.value?xR.null():xR.toJson(mR.minNumber,n,[e.value,n.value])}}function gN(t){return e=>{let n=GR(t,e,"PasswordConfig"),i=e.value;if(gR.isNotBlank(i)){let t=gR.isValidPassword(n.validation,i),e={};if(e.message=n.message&&n.message[t.keyName]?n.message[t.keyName]:"string"==typeof n.message?n.message:"",e.messageKey=n.messageKey&&n.messageKey[t.keyName]?n.messageKey[t.keyName]:"string"==typeof n.messageKey?n.messageKey:"",e=function(t,e){if(!t.message&&!t.messageKey){let n=xR.getPasswordMessage();t.message=n&&"string"==typeof n?n:PR.isObject(n)?n[e]:"",t.message||(t.message=n.password),t.messageKey=""}return t}(e,t.keyName),!t.isValid)return xR.toJson(mR.password,e,[i])}return xR.null()}}function _N(t){return e=>{let n=GR(t,e,"RangeConfig");return!qR.pass(e,n)||(e.value||0===e.value)&&parseFloat(e.value)>=n.minimumNumber&&parseFloat(e.value)<=n.maximumNumber?xR.null():xR.toJson(mR.range,n,[e.value,n.minimumNumber,n.maximumNumber])}}function vN(t){return e=>{let n=GR(t,e);return qR.pass(e,n)&&e.value!==e.value.toUpperCase()?xR.toJson(mR.upperCase,n,[e.value]):xR.null()}}function yN(t){return e=>{let n=GR(t,e);return zR.ProcessRule(e,n)&&!gR.isNotBlank(e.value)?xR.toJson(mR.required,n,[]):xR.null()}}function wN(t){return e=>{let n=GR(t,e,"PatternConfig");if(qR.pass(e,n))for(var i in n.expression)if(!gR.isValid(e.value,n.expression[i]))return xR.toJson(i,n,[e.value]);return xR.null()}}function CN(t){return e=>{let n=GR(t,e);return qR.pass(e,n)&&!gR.isValid(e.value,n.allowSeconds?bR.timeWithSeconds:bR.time)?xR.toJson(mR.time,n,[e.value]):xR.null()}}function xN(t){return e=>function(t,e){var n=bR.url;let i=GR(t,e);if(i&&i.urlValidationType)switch(i.urlValidationType){case 1:n=bR.url;break;case 2:n=bR.localhostUrl;break;case 3:n=bR.interanetUrl}return rN(i,e,n,mR.url)}(t,e)}function ON(t){return e=>{let n=GR(t,e);return qR.pass(e,n)&&!function(t){var e=!1;try{var n=JSON.parse(t);e=!!n&&"object"==typeof n}catch(i){e=!1}return e}(e.value)?xR.toJson(mR.json,n,[e.value]):xR.null()}}const SN={[mR.greaterThan]:mR.lessThan,[mR.lessThan]:mR.greaterThan,[mR.greaterThanEqualTo]:mR.lessThanEqualTo,[mR.lessThanEqualTo]:mR.greaterThanEqualTo};function TN(t,e,n){const i=(e=GR(e,t)).fieldName?PR.getFormControl(e.fieldName,t):void 0,r=i?i.value:void 0!==e.value?e.value:"";if(zR.ProcessRule(t,e)){if(e.isArrayControl)return function(t,e,n){let i=PR.getParentFormArray(t),r=t.parent?t.parent:void 0,o=SN[n],s=[];if(i&&r&&i.controls.length>1){let a=i.controls.indexOf(r),c=PR.getFormControlName(t),l=!0;if(a>0&&(l=kN(i,t,a-1,c,o,n,s)),l&&i.controls.length>a+1&&(l=kN(i,t,a+1,c,n,n,s)),s.length>0&&function(t){let e=setTimeout(()=>{t.forEach(t=>{t.updateValueAndValidity()}),clearTimeout(e)},200)}(s),!1===l)return xR.toJson(n,e,[t.value])}return xR.null()}(t,e,n);if(!1===DN(t,r,n))return xR.toJson(n,e,[t.value,r])}return xR.null()}function DN(t,e,n){if(gR.isNotBlank(t.value)&&gR.isNotBlank(e)){let i=!1;switch(n){case mR.greaterThan:i=parseFloat(t.value)>parseFloat(e);break;case mR.lessThan:i=parseFloat(t.value)<parseFloat(e);break;case mR.greaterThanEqualTo:i=parseFloat(t.value)>=parseFloat(e);break;case mR.lessThanEqualTo:i=parseFloat(t.value)<=parseFloat(e)}return i}return null}function kN(t,e,n,i,r,o,s){let a=!1,c=t.controls[n];if(c&&c.controls){let t=c.controls[i];a=DN(e,t.value,r),a&&t.errors&&t.errors[o]&&s.push(t)}return a}function PN(t){return e=>TN(e,t,mR.greaterThan)}function EN(t){return e=>TN(e,t,mR.greaterThanEqualTo)}function AN(t){return e=>TN(e,t,mR.lessThanEqualTo)}function IN(t){return e=>TN(e,t,mR.lessThan)}function MN(t){return e=>{let n=GR(t,e);return zR.ProcessRule(e,n)&&e.value instanceof Array&&(n.minLength=null==n.minLength?0:n.minLength,n.maxLength=null==n.maxLength?0:n.maxLength,e.value.length<n.minLength||0!==n.maxLength&&e.value.length>n.maxLength)?xR.toJson(mR.choice,n,[e.value]):xR.null()}}function UN(t){return e=>{let n=GR(t,e,"FieldConfig");if(qR.pass(e,n)){const t=PR.getFormControl(n.fieldName,e),i=t?t.value:"";if(!t||t.value==e.value)return xR.toJson(mR.different,n,[e.value,i])}return xR.null()}}function LN(t){return e=>{!t||e.validatorConfig&&e.validatorConfig[mR.numeric]||PR.configureControl(e,t,mR.numeric);let n=GR(t,e);return qR.pass(e,n)&&!gR.isValid(e.value,PR.numericValidation(n.allowDecimal,n.acceptValue))?xR.toJson(mR.numeric,n,[e.value]):xR.null()}}function RN(t){return e=>{let n=GR(t,e);return qR.pass(e,n)&&e.value%2!=0?xR.toJson(mR.even,n,[e.value]):xR.null()}}function NN(t){return e=>{let n=GR(t,e);return!qR.pass(e,n)||e.value%2!=0&&PR.isNumeric(e.value)?xR.null():xR.toJson(mR.odd,n,[e.value])}}function FN(t){return e=>{let n=GR(t,e);const i=e.parent&&n.fieldName?PR.getFormControl(n.fieldName,e):void 0,r=n.fieldName&&i?i.value:n.dividend;return!(zR.ProcessRule(e,n)&&gR.isNotBlank(e.value)&&r>0)||gR.isValid(e.value,bR.onlyDigit)&&function(t,e){let n=!1;for(var i=1;i<=Math.floor(Math.sqrt(t))&&(t%i!=0||(i==e&&(n=!0),t/i!==i&&t/i==e&&(n=!0),!n));i+=1);return n}(r,parseInt(e.value))?xR.null():xR.toJson(mR.factor,n,[e.value])}}function VN(t){return e=>{let n=GR(t,e);return qR.pass(e,n)&&!(e.value%100==0?e.value%400==0:e.value%4==0)?xR.toJson(mR.leapYear,n,[e.value]):xR.null()}}function jN(t){return e=>{let n=GR(t,e,"ArrayConfig");if(qR.passArrayValue(e,n)){var i=!1;for(let t of n.matchValues)if(!(i=e.value.some(e=>e==t)))break;if(!i)return xR.toJson(mR.allOf,n,[e.value])}return xR.null()}}function BN(t){return e=>{let n=GR(t,e,"ArrayConfig");if(qR.passArrayValue(e,n)){var i=!1;for(let t of n.matchValues)if(i=e.value.some(e=>e==t))break;if(!i)return xR.toJson(mR.oneOf,n,[e.value])}return xR.null()}}function zN(t){return e=>{let n=GR(t,e,"ArrayConfig");if(zR.ProcessRule(e,n)){var i=!1;for(let t of n.matchValues){let n=PR.lowerCaseWithTrim(t);if(i=Array.isArray(e.value)?e.value.some(t=>PR.lowerCaseWithTrim(t)===n):PR.lowerCaseWithTrim(e.value)===n)break}if(i)return xR.toJson(mR.noneOf,n,[e.value])}return xR.null()}}function qN(t){return e=>iN(t,e,bR.macId,mR.mac)}function HN(t){return e=>iN(t,e,bR.ascii,mR.ascii)}function GN(t){return e=>iN(t,e,bR.dataUri,mR.dataUri)}function JN(t){return e=>{let n=GR(t,e);return!qR.pass(e,n)||gR.isValid(e.value,bR.onlyDigit)&&e.value>=0&&e.value<=65535?xR.null():xR.toJson(mR.port,n,[e.value])}}function YN(t){return e=>{let n=GR(t,e);if(qR.pass(e,n)){let t=e.value.split(",");if(!(t.length>1&&gR.isValid(t[0],bR.lat)&&gR.isValid(t[1],bR.long)))return xR.toJson(mR.latLong,n,[e.value])}return xR.null()}}function $N(t){return e=>{let n=GR(t,e);return qR.pass(e,n)&&String(e.value).substr(e.value.length-n.value.length,n.value.length)!=n.value?xR.toJson(mR.endsWith,n,[e.value,n.value]):xR.null()}}function WN(t){return e=>{let n=GR(t,e);if(qR.pass(e,n)){var i=String(e.value).substr(0,n.value.length);if(n.isRestrict&&String(i).toLowerCase()==String(n.value).toLowerCase()||!n.isRestrict&&i!=n.value)return xR.toJson(mR.startsWith,n,[e.value,n.value])}return xR.null()}}function KN(t){return e=>{let n=GR(t,e);return!qR.pass(e,n)||PR.isNumeric(e.value)&&function(t){let e=1!=t;for(var n=2;n<t;n++)if(t%n==0){e=!1;break}return e}(e.value)?xR.null():xR.toJson(mR.primeNumber,n,[e.value])}}function QN(t){return e=>iN(t,e,bR.lat,mR.latitude)}function XN(t){return e=>iN(t,e,bR.long,mR.longitude)}function ZN(t){return e=>{let n=GR(t,e);if(zR.ProcessRule(e,n)&&n.validators){let t=void 0;for(let i of n.validators)if(t=i(e),t)break;if(t)return n.messageKey||n.message?xR.toJson(n.messageKey||mR.compose,n,[e.value]):t}return xR.null()}}function tF(t){return e=>{let n=GR(t,e);if(zR.ProcessRule(e,n)&&gR.isNotBlank(e.value)){let t=PR.getParentFormArray(e),i=e.parent?e.parent:void 0,r=[],o=[];if(t&&i){let s=e.value,a=PR.getFormControlName(e),c=!1;for(let e of t.controls)if(e!=i&&(c=PR.toLower(e.controls[a].value)==PR.toLower(s)&&!(e.controls[a].errors&&e.controls[a].errors[mR.unique]),e.controls[a].errors&&e.controls[a].errors[mR.unique]?t.controls.filter(t=>t.controls[a]!=e.controls[a]&&PR.toLower(t.controls[a].value)==PR.toLower(e.controls[a].value))[0]||r.push(e.controls[a]):o.push(e.controls[a].value)),c)break;r.length>0&&((t,e)=>{let n=setTimeout(()=>{t.forEach(t=>{e.filter(e=>e==t.value)[0]||t.updateValueAndValidity()}),clearTimeout(n)},200)})(r,o);let l=!1;if(n.additionalValidation&&(l=((t,e,n,i,r)=>{let o=i.controls.indexOf(n),s=[];return-1!=o&&(i.value.forEach((t,e)=>{o!=e&&s.push(t)}),t.additionalValidation(r,o,e,n.value,s))})(n,a,i,t,s)),c&&!l)return xR.toJson(mR.unique,n,[e.value])}}return xR.null()}}function eF(t){return e=>{let n=GR(t,e);return zR.ProcessRule(e,n)&&!gR.isNotBlank(e.value,!0)?xR.toJson(mR.notEmpty,n,[]):xR.null()}}function nF(t){let e=gR.isValid(t,bR.ipV4);if(e){const n=t.split(".");for(let t of n)if(e=t<=255,!e)break}return e}function iF(t){return gR.isValid(t,bR.ipV6)}function rF(t){return e=>{let n=GR(t,e,"IpConfig");if(qR.pass(e,n)){let t=n.isCidr?e.value.split("/"):[e.value];var i=n.version==TR.V4?nF(t[0]):n.version==TR.V6?iF(t[0]):nF(t[0])||iF(t[0]);if(n.isCidr&&i&&(i=t.length>1&&(n.version==TR.V4?gR.isValid(t[1],bR.cidrV4):n.version==TR.V6?gR.isValid(t[1],bR.cidrV6):gR.isValid(t[1],bR.cidrV4)||gR.isValid(t[1],bR.cidrV6))),!i)return xR.toJson(mR.ip,n,[e.value])}return xR.null()}}function oF(t){return e=>{let n=GR(t,e);if(qR.pass(e,n)){var i=e.value.toUpperCase();let t=gR.isValid(i,bR.cusip);if(t){let e=i.split("").map(t=>{var e=t.charCodeAt(0);return e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)?e-"A".charCodeAt(0)+10:t}),n=0;for(var r=0;r<e.length-1;r++){var o=parseInt(e[r],10);r%2!=0&&(o*=2),o>9&&(o-=9),n+=o}n=(10-n%10)%10,t=n==e[e.length-1]}if(!t)return xR.toJson(mR.cusip,n,[e.value])}return xR.null()}}function sF(t){return e=>{let n=GR(t,e);if(qR.pass(e,n)){let t=e.value.toUpperCase();var i=gR.isValid(t,bR.grid);if(i){t=t.replace(/\s/g,"").replace(/-/g,""),"GRID:"===t.substr(0,5)&&(t=t.substr(5));let e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var r=e.length,o=t.length,s=Math.floor(r/2),a=0;a<o;a++)s=(2*(s||r)%(r+1)+e.indexOf(t.charAt(a)))%r;i=1===s}if(!i)return xR.toJson(mR.grid,n,[e.value])}return xR.null()}}function aF(t){return e=>function(t,e,n){e=GR(e,t);var i=new AR;return zR.ProcessRule(t,e)&&gR.isNotBlank(t.value)&&!i.isDate(t.value)&&!i.isValid(t.value,e)?xR.toJson(n,e,[t.value]):xR.null()}(e,t,mR.date)}function cF(t,e,n){let i=!1;switch(n){case"<":case">":i=t>e;break;case"<=":case">=":i=t>=e}return i}function lF(t){let e=t?t.split(":"):[];return new Date(1970,0,1,e[0]?e[0]:0,e[1]?e[1]:0,e[2]?e[2]:0).getTime()}function uF(t,e,n){if(e=GR(e,t),zR.ProcessRule(t,e)&&gR.isNotBlank(t.value)){if(!function(t,e){return gR.isValid(t.value,e.allowSeconds?bR.timeWithSeconds:bR.time)}(t,e))return xR.toJson(n,e,[t.value]);{let i=e.fieldName?PR.getFormControl(e.fieldName,t):void 0,r=lF(i?i.value:e.value),o=lF(t.value);if(!(n==mR.minTime?cF(o,r,e.operator||">="):cF(r,o,e.operator||"<=")))return xR.toJson(n,e,[t.value])}}return xR.null()}function dF(t){return e=>uF(e,t,mR.minTime)}function hF(t){return e=>uF(e,t,mR.maxTime)}function pF(t){return e=>{let n=GR(t,e);return zR.ProcessRule(e,n)&&!0!==e.value?xR.toJson(mR.requiredTrue,n,[]):xR.null()}}function mF(t){return e=>{let n=GR(t,e);return e.validatorConfig&&e.validatorConfig[mR.mask]||PR.configureControl(e,n,mR.mask),null}}const fF={alphaNumeric:XR,alpha:QR,compare:ZR,email:sN,hexColor:aN,lowerCase:cN,maxDate:dN,maxNumber:pN,minDate:mN,minNumber:bN,contains:tN,upperCase:vN,maxLength:hN,minLength:fN,password:gN,range:_N,required:yN,creditCard:nN,digit:oN,pattern:wN,time:CN,url:xN,json:ON,greaterThan:PN,greaterThanEqualTo:EN,lessThan:IN,lessThanEqualTo:AN,choice:MN,different:UN,numeric:LN,even:RN,odd:NN,factor:FN,leapYear:VN,allOf:jN,oneOf:BN,noneOf:zN,mac:qN,ascii:HN,dataUri:GN,port:JN,latLong:YN,extension:function(t){return(e,n)=>{let i=GR(t,e);if(e.validatorConfig&&e.validatorConfig[mR.extension]||PR.configureControl(e,i,mR.extension),n&&zR.ProcessRule(e,i)&&gR.isNotBlank(e.value)){let t=!0,e="";for(var r=0;r<n.length;r++){let o=n.item(r).name.split(".");if(e=o[o.length-1],!i.extensions.filter(t=>e.toLowerCase()==t.toLowerCase())[0]){t=!1;break}}if(!t)return xR.toJson(mR.extension,i,[e,i.extensions.join(",")])}return xR.null()}},fileSize:function(t){return(e,n)=>{let i=GR(t,e);if(e.validatorConfig&&e.validatorConfig[mR.fileSize]||PR.configureControl(e,i,mR.fileSize),n&&zR.ProcessRule(e,i)&&gR.isNotBlank(e.value)){let t=i.minSize?i.minSize:0,e=!1,o=0;for(var r=0;r<n.length&&(o=n.item(r).size,e=!(o>=t&&o<=i.maxSize),!e);r++);if(e)return xR.toJson(mR.fileSize,i,[o,i.maxSize])}return xR.null()}},endsWith:$N,startsWith:WN,primeNumber:KN,latitude:QN,longitude:XN,compose:ZN,rule:function(t,e){return n=>{let i=GR(t,n);if(zR.ProcessRule(n,i)){let t=null;for(let n of i.customRules)if(t=n(e),t)break;if(t)return t}return xR.null()}},file:function(t){return(e,n)=>{let i=GR(t,e);if(e.validatorConfig&&e.validatorConfig[mR.file]||PR.configureControl(e,i,mR.file),n&&zR.ProcessRule(e,i)&&gR.isNotBlank(e.value)){let t=i.minFiles?i.minFiles:0,e=i.maxFiles?i.maxFiles:n.length;if(!(n.length>0&&n[0]instanceof File&&n.length>=t&&n.length<=e))return xR.toJson(mR.file,i,[n.length,t,e])}return xR.null()}},unique:tF,image:function(t){return(e,n)=>{let i=GR(t,e);return e.validatorConfig&&e.validatorConfig[mR.image]||PR.configureControl(e,i,mR.image),n?new Promise((t,r)=>{if(zR.ProcessRule(e,i)&&gR.isNotBlank(e.value)){let e=!1;for(var o=0;o<n.length;o++){let r=n.item(o),s=r.type?r.type.split("/"):[];if(e=s.length>1&&"image"==s[0],!e)break;let a=new Image;i.minWidth=i.minWidth?i.minWidth:0,i.minHeight=i.minHeight?i.minHeight:0,a.onload=()=>{e=a.width>=i.minWidth&&a.height>=i.minHeight&&a.width<=i.maxWidth&&a.height<=i.maxHeight,t(e?xR.null():xR.toJson(mR.image,i,[a.width,a.height]))},a.onerror=()=>{t(xR.toJson(mR.image,i,[]))},a.src=URL.createObjectURL(r)}e||t(xR.toJson(mR.image,i,[]))}return xR.null()}):xR.null()}},notEmpty:eF,ip:rF,cusip:oF,grid:sF,date:aF,minTime:dF,maxTime:hF,requiredTrue:pF,mask:mF};function bF(t,e,n){var i=(i,r)=>"string"!=typeof i?(!t||i.validatorConfig&&i.validatorConfig[e]||PR.configureControl(i,t,e),n(i)):(fR.init(r,0,i,e,t,!1),null);return Object.defineProperty(i,"name",{value:"rxwebValidator"}),i}function gF(t){return bF(t,mR.alpha,QR(t))}function _F(t){return bF(t,mR.allOf,jN(t))}function vF(t){return bF(t,mR.alphaNumeric,XR(t))}function yF(t){return bF(t,mR.choice,MN(t))}function wF(t){return bF(t,mR.compare,ZR(t))}function CF(t){return bF(t,mR.contains,tN(t))}function xF(t){return bF(t,mR.creditCard,nN(t))}function OF(t){return bF(t,mR.different,UN(t))}function SF(t){return bF(t,mR.digit,oN(t))}function TF(t){return bF(t,mR.email,sN(t))}function DF(t){return bF(t,mR.even,RN(t))}function kF(t){return bF(t,mR.factor,FN(t))}function PF(t){return bF(t,mR.greaterThanEqualTo,EN(t))}function EF(t){return bF(t,mR.greaterThan,PN(t))}function AF(t){return bF(t,mR.hexColor,aN(t))}function IF(t){return bF(t,mR.json,ON(t))}function MF(t){return bF(t,mR.leapYear,VN(t))}function UF(t){return bF(t,mR.lessThanEqualTo,AN(t))}function LF(t){return bF(t,mR.lessThan,IN(t))}function RF(t){return bF(t,mR.lowerCase,cN(t))}function NF(t){return bF(t,mR.mac,qN(t))}function FF(t){return bF(t,mR.maxDate,dN(t))}function VF(t){return bF(t,mR.maxLength,hN(t))}function jF(t){return bF(t,mR.maxNumber,pN(t))}function BF(t){return bF(t,mR.minDate,mN(t))}function zF(t){return bF(t,mR.minLength,fN(t))}function qF(t){return bF(t,mR.minNumber,bN(t))}function HF(t){return bF(t,mR.noneOf,zN(t))}function GF(t){return bF(t,mR.numeric,LN(t))}function JF(t){return bF(t,mR.odd,NN(t))}function YF(t){return bF(t,mR.oneOf,BN(t))}function $F(t){return bF(t,mR.password,gN(t))}function WF(t){return bF(t,mR.pattern,wN(t))}function KF(t){return bF(t,mR.range,_N(t))}function QF(t){return bF(t,mR.required,yN(t))}function XF(t){return bF(t,mR.time,CN(t))}function ZF(t){return bF(t,mR.upperCase,vN(t))}function tV(t){return bF(t,mR.url,xN(t))}function eV(t){return bF(t,mR.ascii,HN(t))}function nV(t){return bF(t,mR.dataUri,GN(t))}function iV(t){return bF(t,mR.port,JN(t))}function rV(t){return bF(t,mR.latLong,YN(t))}function oV(t){return bF(t,mR.extension,t=>null)}function sV(t){return bF(t,mR.fileSize,t=>null)}function aV(t){return bF(t,mR.endsWith,$N(t))}function cV(t){return bF(t,mR.startsWithWith,WN(t))}function lV(t){return bF(t,mR.primeNumber,KN(t))}function uV(t){return bF(t,mR.latitude,QN(t))}function dV(t){return bF(t,mR.longitude,XN(t))}function hV(t){return bF(t,mR.compose,ZN(t))}function pV(t){return bF(t,mR.file,t=>null)}function mV(t){return bF(t,mR.custom,(e=t,t=>{let n=GR(e,t);if(zR.ProcessRule(t,n)){const e=PR.getParentObjectValue(t),i=t.parent?t.parent.value:void 0;let r=null;for(let t of n.customRules)if(r=t(e,i,n.additionalValue),r)break;if(r)return r}return xR.null()}));var e}function fV(t){return bF(t,mR.unique,tF(t))}function bV(t){return bF(t,mR.image,t=>null)}function gV(t){return bF(t,mR.notEmpty,eF(t))}function _V(t){return bF(t,mR.ip,rF(t))}function vV(t){return bF(t,mR.cusip,oF(t))}function yV(t){return bF(t,mR.grid,sF(t))}function wV(t){return bF(t,mR.date,aF(t))}function CV(t){return bF(t,mR.and,(e=t,t=>{let n=GR(e,t);if(qR.pass(t,n)){let e=Object.keys(n.validation),r=!1;for(var i of e)if(r="boolean"==typeof n.validation[i]?fF[i]()(t):fF[i](n.validation[i])(t),r)break;if(r)return xR.toJson(mR.and,n,[t.value])}return xR.null()}));var e}function xV(t){return bF(t,mR.or,(e=t,t=>{let n=GR(e,t);if(qR.pass(t,n)){let e=Object.keys(n.validation),r=!1;for(var i of e)if(r="boolean"==typeof n.validation[i]?fF[i]()(t):fF[i](n.validation[i])(t),!r)break;if(r)return xR.toJson(mR.or,n,[t.value])}return xR.null()}));var e}function OV(t){return bF(t,mR.not,(e=t,t=>{let n=GR(e,t);if(qR.pass(t,n)){let e=Object.keys(n.validation),r=!1;for(var i of e)if(r="boolean"==typeof n.validation[i]?fF[i]()(t):fF[i](n.validation[i])(t),!r)break;if(!r)return xR.toJson(mR.not,n,[t.value])}return xR.null()}));var e}function SV(t){return bF(t,mR.minTime,dF(t))}function TV(t){return bF(t,mR.maxTime,hF(t))}function DV(t){return bF(t,mR.requiredTrue,pF(t))}function kV(t){return bF(t,mR.mask,mF(t))}let PV=(()=>{class t{}return t.alpha=gF,t.allOf=_F,t.alphaNumeric=vF,t.choice=yF,t.compare=wF,t.contains=CF,t.creditCard=xF,t.different=OF,t.digit=SF,t.email=TF,t.even=DF,t.factor=kF,t.greaterThanEqualTo=PF,t.greaterThan=EF,t.hexColor=AF,t.json=IF,t.leapYear=MF,t.lessThanEqualTo=UF,t.lessThan=LF,t.lowerCase=RF,t.mac=NF,t.maxDate=FF,t.maxLength=VF,t.maxNumber=jF,t.minDate=BF,t.minLength=zF,t.minNumber=qF,t.noneOf=HF,t.numeric=GF,t.odd=JF,t.oneOf=YF,t.password=$F,t.pattern=WF,t.range=KF,t.required=QF,t.time=XF,t.upperCase=ZF,t.url=tV,t.ascii=eV,t.dataUri=nV,t.port=iV,t.latLong=rV,t.extension=oV,t.fileSize=sV,t.endsWith=aV,t.startsWith=cV,t.primeNumber=lV,t.latitude=uV,t.longitude=dV,t.compose=hV,t.file=pV,t.custom=mV,t.unique=fV,t.image=bV,t.notEmpty=gV,t.ip=_V,t.cusip=vV,t.grid=yV,t.date=wV,t.and=CV,t.or=xV,t.not=OV,t.minTime=SV,t.maxTime=TV,t.requiredTrue=DV,t.mask=kV,t})(),EV=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.enterpriseContactsService=e,this.usersService=n,this.ContactsData=new Sx,this.contactModel=new Tl,this.disableSelect=!0}ngOnInit(){}getData(){const t=JSON.parse(sessionStorage.getItem("userData"));null===t?setTimeout(()=>{this.getData()},400):this.enterpriseContactsService.getContactsEnterprise(t.enterpriseId).subscribe(t=>{this.ContactsData.data=t.operationBody},t=>{})}applyFilter(t,e){this.findUser(e)}findUser(t){this.usersService.getUsers("searchUser",t).subscribe(t=>{this.ContactsData.data=t.operationBody},t=>{this.ContactsData.data=null})}roleFilter(t,e){if(t.source.selected){const n=t.source.value;this.applyFilter(e,"Todos"===n?"":"Administrador"===n?"Administrator":"Agent")}}changeBooleanButton(t,e){this.disableSelect=t,this.idContact=e}addContactInAssignSigner(){this.contactModel=this.ContactsData.data.filter(t=>t.id===this.idContact)[0],this.dialogRef.close(this.contactModel)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(vg),i.Ob(jg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-dialog-select-contact"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:9,vars:3,consts:[["mat-dialog-title",""],[3,"ContactsData","disableSelect"],[1,"justify-content-end"],["type","button","mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1,"Buscar compereciente"),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Pb(3,"aswc-table-select-contact",1),i.Tb(),i.Ub(4,"mat-dialog-actions",2),i.Ub(5,"button",3),i.Lc(6,"CANCELAR"),i.Tb(),i.Ub(7,"button",4),i.cc("click",(function(){return e.addContactInAssignSigner()})),i.Lc(8,"AGREGAR"),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("ContactsData",e.ContactsData)("disableSelect",e.disableSelect),i.Db(4),i.mc("disabled",e.disableSelect))},styles:[""]}),t})();var AV=function(t){return t.DocumentAuthentication="Autenticaci\xf3n de documento privado",t.ExtraprocessDeclaration="Declaraci\xf3n Extraproceso",t}({});class IV{}class MV{}class UV{}let LV=(()=>{class t{constructor(t){this.httpClient=t}getByEnterprise(t){return this.httpClient.get(Bl+t)}saveCategory(t){return this.httpClient.post(Bl,t)}deleteCategory(t){const e={headers:new g({"Content-Type":"application/json"}),body:t};return this.httpClient.delete(Bl,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class RV{constructor(){this.identificationNumber="",this.firstName="",this.secondName="",this.lastName="",this.secondLastName="",this.email="",this.enterpriseId="",this.position=""}}new g({"Content-Type":"application/json","x-api-key":""});let NV=(()=>{class t{constructor(t){this.httpClient=t}getCities(){return this.httpClient.get(Zl+"free/cities").pipe(Ml())}getDepartments(){return this.httpClient.get(Zl+"free/departments").pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function FV(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",11),i.Lc(1),i.Ub(2,"button",12),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().deleteSignatureCategory(n)})),i.Ub(3,"mat-icon",13),i.Lc(4,"delete"),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.name," ")}}let VV=(()=>{class t{constructor(t,e,n,i,r){this.signatureCategories=t,this.dialogRef=e,this.formBuilder=n,this.cn=i,this.signatureCategoryService=r,this.fg=this.formBuilder.group({categoryName:["",[Ha.required]]})}saveSignatureCategory(){this.dialogRef.close(this.fg.value.categoryName)}deleteSignatureCategory(t){this.signatureCategoryService.deleteCategory(t).subscribe(t=>{this.cn.log("=====> DELETE SignatureCategory:"),this.signatureCategories=t.operationBody},t=>{this.cn.error("=====> DELETE SignatureCategory:"),this.cn.error(t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zb),i.Ob(jb),i.Ob(fl),i.Ob(Gi),i.Ob(LV))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-signature-categories"]],decls:15,vars:3,consts:[["mat-dialog-title",""],[1,"sticky-top","bg-white"],[3,"formGroup"],[1,"row"],[1,"col-12"],["matInput","","placeholder","Nuevo Acto","formControlName","categoryName","required",""],[1,"row","justify-content-center"],["class","col-12 col-md-5 rounded border py-1 pr-1 m-1 d-flex justify-content-between align-items-center",4,"ngFor","ngForOf"],[1,"justify-content-end"],["type","button","mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"disabled","click"],[1,"col-12","col-md-5","rounded","border","py-1","pr-1","m-1","d-flex","justify-content-between","align-items-center"],["mat-icon-button","","title","Eliminar",3,"click"],["color","warn"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1,"Actos"),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Ub(3,"div",1),i.Ub(4,"form",2),i.Ub(5,"div",3),i.Ub(6,"mat-form-field",4),i.Pb(7,"input",5),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Jc(9,FV,5,1,"div",7),i.Tb(),i.Tb(),i.Ub(10,"mat-dialog-actions",8),i.Ub(11,"button",9),i.Lc(12,"CERRAR"),i.Tb(),i.Ub(13,"button",10),i.cc("click",(function(){return e.saveSignatureCategory()})),i.Lc(14,"GUARDAR"),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.mc("formGroup",e.fg),i.Db(5),i.mc("ngForOf",e.signatureCategories),i.Db(4),i.mc("disabled",e.fg.invalid))},directives:[Wb,Kb,zc,Fa,Yc,Uv,uy,Aa,Na,tl,il,o.s,Qb,zm,$b,Kv],styles:[""]}),t})();function jV(t,e){1&t&&i.Lc(0,"ENVIA")}function BV(t,e){1&t&&i.Lc(0,"COMPARECIENTES")}function zV(t,e){if(1&t&&(i.Ub(0,"mat-option",44),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function qV(t,e){if(1&t&&(i.Ub(0,"mat-option",44),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function HV(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",45),i.cc("click",(function(){i.yc(t);const e=i.gc().index;return i.gc().removeSignatory(e)})),i.Ub(1,"mat-icon",46),i.Lc(2,"close"),i.Tb(),i.Tb()}}function GV(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",24),i.Ub(1,"div",25),i.Ub(2,"div",13),i.Ub(3,"div",26),i.Ub(4,"mat-form-field",15),i.Pb(5,"input",27,28),i.Ub(7,"button",29),i.cc("click",(function(){i.yc(t);const n=e.index;return i.gc().openDialogSelect(n)})),i.Ub(8,"i",30),i.Lc(9,"perm_contact_calendar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"div",26),i.Ub(11,"mat-form-field",15),i.Pb(12,"input",31),i.Tb(),i.Tb(),i.Ub(13,"div",26),i.Ub(14,"mat-form-field",15),i.Pb(15,"input",32),i.Tb(),i.Tb(),i.Tb(),i.Ub(16,"div",13),i.Ub(17,"div",33),i.Ub(18,"mat-form-field",15),i.Pb(19,"input",34),i.Tb(),i.Tb(),i.Ub(20,"div",35),i.Ub(21,"mat-form-field",15),i.Pb(22,"input",36),i.Ub(23,"mat-autocomplete",37,38),i.Jc(25,zV,2,2,"mat-option",17),i.hc(26,"async"),i.Tb(),i.Tb(),i.Tb(),i.Ub(27,"div",35),i.Ub(28,"mat-form-field",15),i.Pb(29,"input",39),i.Ub(30,"mat-autocomplete",37,40),i.Jc(32,qV,2,2,"mat-option",17),i.hc(33,"async"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(34,"div",13),i.Ub(35,"div",41),i.Ub(36,"mat-form-field",15),i.Pb(37,"input",42),i.Tb(),i.Tb(),i.Tb(),i.Jc(38,HV,3,0,"button",43),i.Tb(),i.Tb()}if(2&t){const t=e.index,n=i.uc(24),r=i.uc(31),o=i.gc();i.Db(1),i.mc("formGroupName",t),i.Db(21),i.mc("matAutocomplete",n),i.Db(1),i.mc("displayWith",o.displayDept),i.Db(2),i.mc("ngForOf",i.ic(26,8,o.filteredDepts[t])),i.Db(4),i.mc("matAutocomplete",r),i.Db(1),i.mc("displayWith",o.displayCity),i.Db(2),i.mc("ngForOf",i.ic(33,10,o.filteredCities[t])),i.Db(6),i.mc("ngIf",o.myForm.controls.signatories.controls.length>1)}}function JV(t,e){1&t&&i.Lc(0,"MENSAJE")}function YV(t,e){if(1&t&&(i.Ub(0,"mat-option",44),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t," ")}}function $V(t,e){if(1&t&&(i.Ub(0,"mat-option",44),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.name),i.Db(1),i.Nc(" ",t.name," ")}}const WV=function(){return{color:"white"}};let KV=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d,h,p){this.router=t,this._location=e,this.globalVarService=n,this.saveProcessSignService=i,this.usersService=r,this._fb=o,this.cn=s,this._pageLoaderService=a,this.dialog=c,this.enterpriseContactsService=l,this.signatureCategoryService=u,this.geo=d,this.signatureProcessesService=h,this.notificationsService=p,this.SignatureCategoriesPreloaded=[],this.AuthMethods=aU,this.authMethodsData=dU,this.selectedAuthMethods=[],this.generalSelectedAuthMethods=[],this.isGeneralAuthMethodsSelection=!1,this.isLinear=!0,this.signersList=new Array,this.selectedMethod="",this.indexSignatorie="",this.filteredDepts=[],this.depts=[],this.cities=[],this.citiesByDept=[],this.filteredCities=[],this.user=JSON.parse(sessionStorage.getItem("userData"))}ngOnInit(){this.geo.getCities().subscribe(t=>{this.cities=t}),this.geo.getDepartments().subscribe(t=>{this.depts=t}),this.getSignatureCategories(),this.myForm=this._fb.group({qualityProcessSign:["4"],durationProcessSign:["weeks"],methodGlobalValidate:[[]],chooseMethod:["2",Ha.compose([Ha.required])],signatories:this._fb.array([this.initSignatory()])}),this.loadAutocompleteFilter(),this.myFormSecond=this._fb.group({signatureCategory:["",[Ha.required]],message:["",Ha.compose([Ha.maxLength(2e3)])]})}initSignatory(){return this.cn.log("initSignatory()"),this._fb.group({firstName:["",Ha.compose([Ha.required,Ha.maxLength(30)])],lastName:["",Ha.compose([Ha.required,Ha.maxLength(30)])],document_id:["",Ha.compose([Ha.required,Ha.minLength(6),Ha.maxLength(13),Ha.pattern("[0-9]+"),PV.unique()])],email:["",Ha.compose([Ha.required,Ha.pattern("[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,3}$")])],needs_to:"Firmar",send_email:[!0],home_address:[""],department:[""],city:[""]})}loadAutocompleteFilter(){const t=this.myForm.get("signatories");this.showFilteredDepts(t.length-1),this.showFilteredCities(t.length-1),this.validateDept(t.length-1),this.validateCity(t.length-1)}showFilteredDepts(t){const e=this.myForm.get("signatories"),n=e.controls[t];return e.at(t).get("department").valueChanges.subscribe(t=>{t.id&&(this.citiesByDept=this.cities.filter(e=>0===e.department.name.indexOf(t.name)),n.patchValue({city:""}))}),this.filteredDepts[t]=e.at(t).get("department").valueChanges.pipe(Pr(""),Object(KU.map)(t=>"string"==typeof t?t:t.name),Object(KU.map)(t=>t?this.filterDepts(t):this.depts.slice()))}showFilteredCities(t){const e=this.myForm.get("signatories");return this.filteredCities[t]=e.at(t).get("city").valueChanges.pipe(Pr(""),Object(KU.map)(t=>"string"==typeof t?t:t.name),Object(KU.map)(t=>t?this.filterCities(t):this.citiesByDept.slice()))}filterDepts(t){const e=t.toLowerCase();return this.depts.filter(t=>0===t.name.toLowerCase().indexOf(e))}filterCities(t){const e=t.toLowerCase();return this.citiesByDept.filter(t=>0===t.name.toLowerCase().indexOf(e))}validateDept(t){const e=this.myForm.get("signatories");e.at(t).get("department").valueChanges.subscribe(n=>{e.at(t).get("department").value.id||e.at(t).get("department").setErrors({invalid:!0})})}validateCity(t){const e=this.myForm.get("signatories");e.at(t).get("city").valueChanges.subscribe(n=>{e.at(t).get("city").value.id||e.at(t).get("city").setErrors({invalid:!0})})}addSignatory(){this.cn.log("addSignatory()"),this.myForm.controls.signatories.push(this.initSignatory()),this.loadAutocompleteFilter()}removeSignatory(t){this.cn.log("removeSignatory()"),this.myForm.controls.signatories.removeAt(t)}backStep(){this.cn.log("backStep()"),this._location.back()}nextStep(){this.cn.log("nextStep()"),!0===this.myForm.valid&&1==!this.myFormSecond.valid||(this.signersList=new Array,this.addDataSigners()?(this.addDefaultSignatory(),this.saveProcessSign()):this.showGeneralDialog("Para continuar con el proceso debe ingresar un firmante.").subscribe())}redirectToStep(){switch(this.cn.log("redirectToStep()"),this.logger(`Se cre\xf3 el tr\xe1mite ${this.globalVarService.processId}.`),this.globalVarService.select_signers_type){case"2":this.showGeneralDialog("",{title:"Informaci\xf3n",content:"Los documentos han sido enviados a los destinatarios asignados. Estas a punto de iniciar tu proceso de firma, \xbfdeseas continuar o dejarlo para m\xe1s tarde?",actions:[{text:"M\xe1s tarde",value:"accepted",funct:"cancelMethodSigner"},{text:"Continuar",value:"accepted",funct:"continueMethodSigner"}]}).subscribe();break;case"3":this.router.navigate([this.globalVarService.path_route+"messages/sent-documents"]);break;default:this.router.navigate([this.globalVarService.path_route+"authentication/auth-methods"])}}saveProcessSign(){this.cn.log("saveProcessSign()"),this.requestSaveProcessSign=new MV,this.requestSaveProcessSign.affair=this.findTypeProcedure(this.globalVarService.typeProcedure),this.requestSaveProcessSign.emailOriginProcess=this.user.email,this.requestSaveProcessSign.idOriginProcess=this.user.identificationNumber,this.requestSaveProcessSign.signatureCategory=this.myFormSecond.value.signatureCategory,this.requestSaveProcessSign.message=this.myFormSecond.value.message,this.requestSaveProcessSign.processId=this.globalVarService.processId,this.requestSaveProcessSign.signatories=this.signersList,this.requestSaveProcessSign.typeProcedure=this.globalVarService.typeProcedure,this.cn.log("=====> SAVING SIGN PROCESS",this.requestSaveProcessSign),this._pageLoaderService.show(),this.saveProcessSignService.saveProcess(this.requestSaveProcessSign).subscribe(t=>{this._pageLoaderService.hide(),2e3===t.operationCode?(new gU(this.signatureProcessesService,this.notificationsService,this.globalVarService).sendMessage(this.globalVarService.processId,"PendingSign"),this.redirectToStep()):2100===t.operationCode&&alert("Algunos de los usuarios no se encontraron, por favor verificarlos."),this.cn.log(t)},t=>{this.cn.log(t),this._pageLoaderService.hide()})}addDefaultSignatory(){if(this.cn.log("addDefaultSignatory()"),"2"===this.globalVarService.select_signers_type){const t=new UV;t.identificationNumber=this.user.identificationNumber,t.email=this.user.email,t.firstName=this.user.firstName,t.lastName=this.user.lastName,t.authMethods=["QUESTIONS"],this.signersList.push(t)}}addDataSigners(){this.cn.log("addDataSigners()");let t=!1;for(let e=0;e<this.myForm.value.signatories.length;e++){const n=new UV;n.address=this.myForm.value.signatories[e].home_address,n.authMethods=["OTP"],n.city=this.myForm.value.signatories[e].city.name,n.country=this.myForm.value.signatories[e].department.name,n.email=this.myForm.value.signatories[e].email,n.firstName=this.myForm.value.signatories[e].firstName,n.identificationNumber=this.myForm.value.signatories[e].document_id,n.lastName=this.myForm.value.signatories[e].lastName,"Firmar"===this.myForm.value.signatories[e].needs_to&&(t=!0),this.signersList.push(n)}return t}checkValue(t){switch(t.value){case"general":this.isGeneralAuthMethodsSelection=!0,this.myForm.controls.methodGlobalValidate.setValue([]),this.myForm.get("methodGlobalValidate").setValidators([Ha.required]),this.myForm.get("methodGlobalValidate").updateValueAndValidity();break;case"individual":this.isGeneralAuthMethodsSelection=!1,this.generalSelectedAuthMethods=[],this.myForm.get("methodGlobalValidate").setValidators(null),this.myForm.get("methodGlobalValidate").updateValueAndValidity()}}selectedGeneralMethodChange(t){t.isUserInput&&(this.generalSelectedAuthMethods=this.filterSelectedMethods(t.source.value,t.source.selected,this.generalSelectedAuthMethods),this.myForm.controls.methodGlobalValidate.setValue(this.generalSelectedAuthMethods),this.myForm.controls.signatories.controls.forEach(t=>{const e=t;e.controls.authMethods.setValue(this.generalSelectedAuthMethods),t=e}))}selectedIndividualMethodChange(t,e){t.isUserInput&&(this.selectedAuthMethods=this.myForm.controls.signatories.controls[e].controls.authMethods.value,this.selectedAuthMethods=this.filterSelectedMethods(t.source.value,t.source.selected,this.selectedAuthMethods),this.myForm.controls.signatories.controls[e].controls.authMethods.setValue(this.selectedAuthMethods))}filterSelectedMethods(t,e,n){let i=n;return e?0===i.filter(e=>e.name===t.name).length&&(i.push(t),i=i.filter(t.name===this.AuthMethods.Any?t=>t.name===this.AuthMethods.Any:t=>t.name!==this.AuthMethods.Any)):i=i.filter(e=>e.name!==t.name),i}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e,disableClose:!0}).afterClosed()}onKeyId(t,e){const n=new RV,i=JSON.parse(sessionStorage.getItem("userData"));n.email=t.target.value,n.enterpriseId=i.enterpriseId,n.identificationNumber=t.target.value,this.enterpriseContactsService.getContactEnterprise(n).subscribe(t=>{this.myForm.get("signatories").controls[e].patchValue(t.operationBody.length>0?{firstName:t.operationBody[0].firstName,lastName:t.operationBody[0].lastName,email:t.operationBody[0].email}:{firstName:"",lastName:"",email:""})},t=>{})}onKeyEmail(t,e){const n=new RV,i=JSON.parse(sessionStorage.getItem("userData"));n.email=t.target.value,n.enterpriseId=i.enterpriseId,n.identificationNumber=t.target.value,this.enterpriseContactsService.getContactEnterprise(n).subscribe(t=>{this.myForm.get("signatories").controls[e].patchValue(t.operationBody.length>0?{firstName:t.operationBody[0].firstName,lastName:t.operationBody[0].lastName,document_id:t.operationBody[0].identificationNumber}:{firstName:"",lastName:"",document_id:""})},t=>{})}opendialogtest(){this.showGeneralDialog("Para continuar con el proceso debe ingresar un firmante.").subscribe()}openDialogSelect(t){this.indexSignatorie=t;const e=new Lb;e.disableClose=!1,e.autoFocus=!0,e.data={width:"250px",data:{}},this.dialog.open(EV,e).afterClosed().subscribe(t=>{this.addContactInAssign(t)})}addContactInAssign(t){console.log("data: ",t),void 0!==t&&""!==t&&this.myForm.get("signatories").controls[this.indexSignatorie].patchValue({firstName:t.firstName,lastName:t.lastName,document_id:t.identificationNumber,email:t.email,home_address:t.address,department:{name:t.country},city:{name:t.city}})}getSignatureCategories(){this.signatureCategoryService.getByEnterprise(this.user.enterpriseId).subscribe(t=>{this.cn.log("=====> GET SignatureCategories:"),this.cn.log(t),this.SignatureCategories=t.operationBody},t=>{this.cn.error("=====> GET SignatureCategories:"),this.cn.error(t)}),this.SignatureCategoriesPreloaded.push("Reconocimiento de firma y contenido de documento privado"),this.SignatureCategoriesPreloaded.push("Presentaci\xf3n Personal"),this.SignatureCategoriesPreloaded.push("Autenticaci\xf3n de Firma")}saveSignatureCategory(){this.showSignatureCategoriesModal().subscribe(t=>{if(void 0!==t&&""!==t){const e=new IV;e.enterpriseId=this.user.enterpriseId,e.name=t,this.cn.log("=====> New Category:",e),this.signatureCategoryService.saveCategory(e).subscribe(t=>{this.cn.log("=====> POST SignatureCategory:"),this.SignatureCategories=t.operationBody},t=>{this.cn.error("=====> POST SignatureCategory:"),this.cn.error(t)})}else this.getSignatureCategories()})}showSignatureCategoriesModal(){let t;return null!==this.SignatureCategories&&(t=this.dialog.open(VV,{width:"580px",data:this.SignatureCategories})),t.afterClosed()}ngModelChangeIdentification(t,e){this.cn.log("ngModelChangeIdentification()"),null!==t&&this.usersService.getUsers("searchUser",t).subscribe(t=>{this.cn.log("ngModelChangeIdentification() response:",t),this.myForm.get("signatories").controls[e].patchValue(t.operationBody.length>0?{firstName:t.operationBody[0].firstName,lastName:t.operationBody[0].lastName,email:t.operationBody[0].email,home_address:t.operationBody[0].address,department:{name:t.operationBody[0].country},city:{name:t.operationBody[0].city}}:{firstName:"",lastName:"",email:"",home_address:"",department:"",city:""})},t=>{this.myForm.get("signatories").controls[e].patchValue({firstName:"",lastName:"",email:"",home_address:"",department:"",city:""})})}displayDept(t){return t?t.name:void 0}displayCity(t){return t?t.name:void 0}logger(t){dg.info(t,"Crear tr\xe1mite")}findTypeProcedure(t){for(const e in AV)if(e===t)return AV[e];return""}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(o.n),i.Ob(cg),i.Ob(ag),i.Ob(jg),i.Ob(fl),i.Ob(Gi),i.Ob(pg),i.Ob(Jb),i.Ob(vg),i.Ob(LV),i.Ob(NV),i.Ob(Lg),i.Ob(Sg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-assign-signers"]],decls:56,vars:13,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],["color","assent",1,"steperSigners",3,"linear"],["stepper",""],["matStepLabel",""],[1,"button-row","mt-4","mb-2"],["mat-raised-button","",3,"click"],["mat-raised-button","","matStepperNext","","color","primary"],[3,"stepControl"],["novalidate","",3,"formGroup"],["class","cnt_white","formArrayName","signatories","class","panel panel-default",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary",3,"click"],["mat-raised-button","","matStepperPrevious",""],[1,"row"],[1,"col-10","col-md-5"],[1,"fll_wd"],["placeholder","Acto","formControlName","signatureCategory"],[3,"value",4,"ngFor","ngForOf"],[1,"col-2","col-md-1","px-0","d-flex","justify-content-center"],["type","button","mat-icon-button","","title","Agregar Categor\xeda",1,"bg-primary","mt-0","mt-md-2",3,"click"],[1,"material-icons",3,"ngStyle"],[1,"col-12"],["matInput","","placeholder","Mensaje","formControlName","message"],["mat-raised-button","","matStepperNext","","color","primary",3,"click"],["formArrayName","signatories",1,"panel","panel-default"],[1,"box-card","card-signers",3,"formGroupName"],[1,"col-12","col-md-6","col-lg-4"],["type","number","matInput","","placeholder","No. de Documento","formControlName","document_id"],["valueId",""],["mat-icon-button","","matSuffix","","title","Buscar compereciente",3,"click"],[1,"material-icons"],["matInput","","placeholder","Nombres*","formControlName","firstName"],["matInput","","placeholder","Apellidos*","formControlName","lastName"],[1,"col-12","col-md-6"],["matInput","","placeholder","Direcci\xf3n","formControlName","home_address"],[1,"col-12","col-lg-3"],["placeholder","Departamento","matInput","","formControlName","department","required","",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["autoDepts1","matAutocomplete"],["placeholder","Ciudad","matInput","","formControlName","city","required","",3,"matAutocomplete"],["autoCities1","matAutocomplete"],[1,"col-12","col-md-8"],["matInput","","placeholder","Correo Electr\xf3nico*","formControlName","email"],["class","close-btn","mat-icon-button","",3,"click",4,"ngIf"],[3,"value"],["mat-icon-button","",1,"close-btn",3,"click"],["aria-label","Cerrar"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"mat-vertical-stepper",2,3),i.Ub(4,"mat-step"),i.Jc(5,jV,1,0,"ng-template",4),i.Ub(6,"div"),i.Ub(7,"p"),i.Lc(8),i.Pb(9,"br"),i.Ub(10,"small"),i.Ub(11,"span"),i.Lc(12,"No. Documento"),i.Tb(),i.Lc(13),i.Tb(),i.Tb(),i.Tb(),i.Ub(14,"div",5),i.Ub(15,"button",6),i.cc("click",(function(){return e.backStep()})),i.Lc(16,"Volver"),i.Tb(),i.Ub(17,"button",7),i.Lc(18,"Siguiente"),i.Tb(),i.Tb(),i.Tb(),i.Ub(19,"mat-step",8),i.Ub(20,"form",9),i.Jc(21,BV,1,0,"ng-template",4),i.Ub(22,"div"),i.Jc(23,GV,39,12,"div",10),i.Ub(24,"div"),i.Ub(25,"button",11),i.cc("click",(function(){return e.addSignatory()})),i.Ub(26,"mat-icon"),i.Lc(27,"library_add"),i.Tb(),i.Lc(28," A\xf1adir otro "),i.Tb(),i.Tb(),i.Tb(),i.Ub(29,"div",5),i.Ub(30,"button",12),i.Lc(31,"Volver"),i.Tb(),i.Ub(32,"button",7),i.Lc(33,"Siguiente"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(34,"mat-step",8),i.Ub(35,"form",9),i.Jc(36,JV,1,0,"ng-template",4),i.Ub(37,"div",13),i.Ub(38,"div",14),i.Ub(39,"mat-form-field",15),i.Ub(40,"mat-select",16),i.Jc(41,YV,2,2,"mat-option",17),i.Jc(42,$V,2,2,"mat-option",17),i.Tb(),i.Tb(),i.Tb(),i.Ub(43,"div",18),i.Ub(44,"div",15),i.Ub(45,"button",19),i.cc("click",(function(){return e.saveSignatureCategory()})),i.Ub(46,"i",20),i.Lc(47,"add"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(48,"div",21),i.Ub(49,"mat-form-field",15),i.Pb(50,"textarea",22),i.Tb(),i.Tb(),i.Tb(),i.Ub(51,"div",5),i.Ub(52,"button",12),i.Lc(53,"Volver"),i.Tb(),i.Ub(54,"button",23),i.cc("click",(function(){return e.nextStep()})),i.Lc(55,"Siguiente"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(2),i.mc("linear",e.isLinear),i.Db(6),i.Oc("",e.user.firstName," ",e.user.lastName,""),i.Db(5),i.Nc(": ",e.user.identificationNumber,""),i.Db(6),i.mc("stepControl",e.myForm),i.Db(1),i.mc("formGroup",e.myForm),i.Db(3),i.mc("ngForOf",e.myForm.get("signatories").controls),i.Db(11),i.mc("stepControl",e.myFormSecond),i.Db(1),i.mc("formGroup",e.myFormSecond),i.Db(6),i.mc("ngForOf",e.SignatureCategoriesPreloaded),i.Db(1),i.mc("ngForOf",e.SignatureCategories),i.Db(4),i.mc("ngStyle",i.qc(12,WV)))},directives:[Yw,zw,Lw,zm,$w,zc,Fa,Yc,o.s,Kv,Kw,Uv,aw,Na,tl,o.w,uy,Aa,Qc,Wc,Qa,kv,kT,il,xT,o.t,Oh],pipes:[o.b],styles:[".box-card[_ngcontent-%COMP%]{background:#fff;padding:1rem;margin-bottom:1rem;box-shadow:0 2px 5px 0 rgba(0,0,0,.25)}.box-card.card-signers[_ngcontent-%COMP%]{position:relative}.box-card.card-signers[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{position:absolute;right:.2rem;top:.2rem}.radio-group-custom[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.radio-group-custom[_ngcontent-%COMP%]   .mat-radio-label[_ngcontent-%COMP%]{white-space:inherit;align-items:top}.borde[_ngcontent-%COMP%]{border:1px solid red}"]}),t})(),QV=(()=>{class t{constructor(t,e){this.dataReceived=t,this.dialogRef=e}ngOnInit(){}deleteSigner(){const t={},e={};e.identificationNumber=this.dataReceived.identificationNumber,e.email=this.dataReceived.email,e.idProcess=this.dataReceived.idProcess,t.action="DELETE",t.dataBody=e,this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zb),i.Ob(jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-delete-signer"]],decls:11,vars:0,consts:[["mat-dialog-title",""],[1,"text-center","w-100"],["type","button","mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1,"Eliminar Compareciente"),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Ub(3,"p"),i.Lc(4," \xbfSeguro quieres eliminar el compareciente? "),i.Tb(),i.Tb(),i.Ub(5,"mat-dialog-actions"),i.Ub(6,"div",1),i.Ub(7,"button",2),i.Lc(8,"No"),i.Tb(),i.Ub(9,"button",3),i.cc("click",(function(){return e.deleteSigner()})),i.Lc(10,"Si"),i.Tb(),i.Tb(),i.Tb())},directives:[Wb,Kb,Qb,zm,$b],styles:[""]}),t})();class XV{constructor(){}get _identificationNumber(){return this.identificationNumber}set _identificationNumber(t){this.identificationNumber=t}get _idProcess(){return this.idProcess}set _idProcess(t){this.idProcess=t}get _email(){return this.email}set _email(t){this.email=t}}function ZV(t,e){if(1&t&&(i.Ub(0,"p"),i.Ub(1,"strong"),i.Lc(2),i.hc(3,"titlecase"),i.hc(4,"titlecase"),i.Tb(),i.Lc(5,", te ha enviado "),i.Ub(6,"strong"),i.Lc(7),i.Tb(),i.Ub(8,"span"),i.Lc(9),i.Tb(),i.Lc(10," para firmar electr\xf3nicamente. "),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Oc("",i.ic(3,4,null==t.userLoaded?null:t.userLoaded.firstName)," ",i.ic(4,6,null==t.userLoaded?null:t.userLoaded.lastName),""),i.Db(5),i.Mc(null==t.docsArray?null:t.docsArray.length),i.Db(2),i.Mc((null==t.docsArray?null:t.docsArray.length)>1?" documentos":" documento")}}function tj(t,e){if(1&t&&(i.Ub(0,"p"),i.Lc(1," Tienes "),i.Ub(2,"strong"),i.Lc(3),i.Tb(),i.Ub(4,"span"),i.Lc(5),i.Tb(),i.Lc(6," para firmar electr\xf3nicamente. "),i.Tb()),2&t){const t=i.gc();i.Db(3),i.Mc(null==t.docsArray?null:t.docsArray.length),i.Db(2),i.Mc((null==t.docsArray?null:t.docsArray.length)>1?" documentos":" documento")}}function ej(t,e){if(1&t&&(i.Ub(0,"div",2),i.Ub(1,"div",11),i.Ub(2,"div",12),i.Ub(3,"span"),i.Lc(4),i.Tb(),i.Tb(),i.Ub(5,"div",13),i.Ub(6,"div",14),i.Ub(7,"div",15),i.Ub(8,"mat-icon"),i.Lc(9,"description"),i.Tb(),i.Tb(),i.Ub(10,"div",16),i.Ub(11,"p"),i.Lc(12),i.Tb(),i.Tb(),i.Tb(),i.Ub(13,"div",17),i.Ub(14,"a",18),i.Lc(15," Ver "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit,n=e.index,r=i.gc();i.Db(4),i.Mc(n+1),i.Db(8),i.Mc(t.fileName),i.Db(2),i.nc("href","signed"!==r.signed?t.path:t.signedPath,i.Bc)}}function nj(t,e){1&t&&i.Pb(0,"div")}function ij(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",19),i.Ub(1,"button",20),i.cc("click",(function(){return i.yc(t),i.gc().cancelButton()})),i.Lc(2,"Cancelar"),i.Tb(),i.Ub(3,"button",21),i.cc("click",(function(){return i.yc(t),i.gc().nextStep()})),i.Lc(4,"Firmar Documentos"),i.Tb(),i.Tb()}}function rj(t,e){}const oj=[];let sj=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d){this.globalVarService=t,this.docsToSignService=e,this.router=n,this.route=i,this._location=r,this.cn=o,this._pageLoaderService=s,this.sendDocsToSignService=a,this.signatureProcessesService=c,this.notificationsService=l,this.dialog=u,this.location=d,this.displayedColumns=["select","estado","tituloDocumento","date","symbol"],this.dataSource=new Sx(oj),this.selection=new Cf(!0,[]),this.nextButton=!1,this.displayHtmlTittle="Documentos a firmar"}ngOnInit(){this.loadVariables(),this.docsToSign()}showDialog(t,e){void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"cancelMethodSigner"}]}),this.dialog.open(fU,{disableClose:!0,width:"830px",data:e})}docsToSign(){this.cn.log("docsToSign()"),this.user=JSON.parse(sessionStorage.getItem("userData")),null===this.user?setTimeout(()=>{this.docsToSign()},400):(this.requestDocToSign=new XV,this.requestDocToSign._email=this.user.email,this.requestDocToSign._identificationNumber=this.user.identificationNumber,this.requestDocToSign._idProcess=this.globalVarService.processId,this._pageLoaderService.show(),this.subscription=this.docsToSignService.getDocsToSign(this.requestDocToSign).subscribe(t=>{this.cn.log(t),this.docsArray=t.files,this.signed=t.status,this.userLoaded=t.userLoaded,"signed"===this.signed&&(this.displayHtmlTittle="Documentos firmados")},t=>{this.cn.log(t)}),this.subscription.add(()=>{this._pageLoaderService.hide()}))}loadVariables(){this.cn.log("loadVariables()"),this.user=JSON.parse(sessionStorage.getItem("userData")),this.route.queryParams.subscribe(t=>{this.globalVarService.processId=t.processId})}isAllSelected(){const t=this.selection.selected.length,e=this.dataSource.data.length;return this.nextButton=t===e,t===e}masterToggle(){this.isAllSelected()?(this.selection.clear(),this.nextButton=!1):(this.dataSource.data.forEach(t=>this.selection.select(t)),this.nextButton=!0)}nextStep(){this.cn.log("nextStep()");const t=JSON.parse(sessionStorage.getItem("notaryData"));this.location.getPosition().then(e=>{dg.info(`Latitud:  ${e.lat} Longitud: ${e.lng}.`,"Ubicacion"),this.cn.log("location!!",e.lat+","+e.lng),""!==e.err?(this._pageLoaderService.hide(),this.showDialog("",{title:"Informaci\xf3n",content:e.err,actions:[{text:"Aceptar",value:"accepted",funct:"closeLocation"}]})):this.location.getCity(e.lat,e.lng).subscribe(e=>{try{this.cn.log("City!!!",e.results[0].address_components),tL.ValidateLocation(e.results[0].address_components,t.city)?(this.globalVarService.path_route="corporate/pv/",this.globalVarService.select_signers_type="1",this.user.role===Ig.Administrator?this.Sign():this.router.navigate([this.globalVarService.path_route+"authentication/auth-methods"])):(this._pageLoaderService.hide(),this.showDialog("",{title:"Informaci\xf3n",content:"Su ubicaci\xf3n no concuerda con el circulo notarial.",actions:[{text:"Aceptar",value:"accepted",funct:"closeLocation"}]}))}catch(HX){this._pageLoaderService.hide(),this.showDialog("Ocurrio un problema con la ubicaci\xf3n."),this.router.navigate([this.globalVarService.path_route+"documents/my-transactions"])}})})}cancelButton(){this._location.back()}Sign(){this.cn.log("=====> SIMPLE NOTARY SIGNATURE");const t=[this.globalVarService.processId];this.cn.log("Processes: "),this.cn.log(t),t.length>0&&(window.open("notariasigndesktop:processes="+t,"_self"),this.router.navigate(["corporate/pv/messages/signed-docs-massive"]))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cg),i.Ob(wg),i.Ob(Zs),i.Ob(Fo),i.Ob(o.n),i.Ob(Gi),i.Ob(pg),i.Ob(Ag),i.Ob(Lg),i.Ob(Sg),i.Ob(Jb),i.Ob(zg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-list-of-documents"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:16,vars:7,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center","mb-2"],[1,"col-12","col-md-6"],[1,"row"],[1,"col-12","col-sm-9"],[4,"ngIf"],[1,"row","justify-content-center","list-docNoRegister"],["class","col-12 col-md-6",4,"ngFor","ngForOf"],[4,"ngIf","ngIfThen","ngIfElse"],["thenBlock",""],["elseBlock",""],[1,"item-docNoRegister"],[1,"numDocNoRegister"],[1,"cnt-infoDocNoRegister"],[1,"DocNoRegister"],[1,"iconDocNoRegister"],[1,"infoDocNoRegister"],[1,"btnDocNoRegister"],["mat-raised-button","",3,"href"],[1,"text-center"],["mat-raised-button","",1,"mr-4",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4),i.Tb(),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"div",4),i.Jc(7,ZV,11,8,"p",5),i.Jc(8,tj,7,2,"p",5),i.Tb(),i.Tb(),i.Ub(9,"div",6),i.Jc(10,ej,16,3,"div",7),i.Tb(),i.Jc(11,nj,1,0,"div",8),i.Jc(12,ij,5,0,"ng-template",null,9,i.Kc),i.Jc(14,rj,0,0,"ng-template",null,10,i.Kc),i.Tb()),2&t){const t=i.uc(13),n=i.uc(15);i.Db(4),i.Mc(e.displayHtmlTittle),i.Db(3),i.mc("ngIf",(null==e.user?null:e.user.identificationNumber)!==(null==e.userLoaded?null:e.userLoaded.enterpriseName)),i.Db(1),i.mc("ngIf",(null==e.user?null:e.user.identificationNumber)===(null==e.userLoaded?null:e.userLoaded.enterpriseName)),i.Db(2),i.mc("ngForOf",e.docsArray),i.Db(1),i.mc("ngIf","signed"!==e.signed)("ngIfThen",t)("ngIfElse",n)}},directives:[o.t,o.s,Kv,qm,zm],pipes:[o.G],styles:["table[_ngcontent-%COMP%]{width:100%}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}.list-docNoRegister[_ngcontent-%COMP%]{padding:2.6rem 0 .8rem}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]{position:relative;padding:1rem;margin-bottom:1.8rem;box-shadow:3px 3px 8px 0 rgba(0,0,0,.24)}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .numDocNoRegister[_ngcontent-%COMP%]{background-color:#21476b;color:#fff;position:absolute;display:flex;align-items:center;width:40px;left:0;top:0;bottom:0;padding:5px;font-size:20px;font-weight:700;justify-content:center}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]{margin-left:40px;display:flex;align-items:center;justify-content:space-between}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]{display:flex;align-items:center}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .iconDocNoRegister[_ngcontent-%COMP%]{margin-right:6px}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .iconDocNoRegister[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:48px;color:rgba(0,0,0,.3);height:auto;width:auto}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .infoDocNoRegister[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-width:240px;margin-bottom:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .btnDocNoRegister[_ngcontent-%COMP%]{text-align:right}@media (max-width:992px){.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .infoDocNoRegister[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-width:128px}}@media (max-width:768px){.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .infoDocNoRegister[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-width:128px}}"]}),t})();class aj{}let cj=(()=>{class t{constructor(t,e,n){this.data=t,this.dialogRef=e,this.formBuilder=n,this.fg=this.formBuilder.group({firstName:[this.data.firstName],lastName:[this.data.lastName],identificationNumber:[this.data.identificationNumber],email:[this.data.email,[Ha.email]]})}modifyUser(){const t={},e=new aj;e.idProcess=this.data.idProcess.toString(),e.email=this.data.email.toString(),e.identificationNumber=this.data.identificationNumber.toString(),e.newEmail=this.fg.value.email,e.newIdentificationNumber=this.fg.value.identificationNumber,e.newFirstName=this.fg.value.firstName,e.newLastName=this.fg.value.lastName,t.action="MODIFY",t.dataBody=e,this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zb),i.Ob(jb),i.Ob(fl))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-modify-signer"]],decls:19,vars:2,consts:[["mat-dialog-title",""],[3,"formGroup"],[1,"row"],[1,"col-12","col-md-6"],["matInput","","placeholder","Nombres","formControlName","firstName","required",""],["matInput","","placeholder","Apellidos","formControlName","lastName","required",""],["matInput","","placeholder","Identificaci\xf3n","formControlName","identificationNumber","pattern","^([0-9]){6,15}$","required",""],[1,"col-12"],["matInput","","placeholder","Email","formControlName","email","required",""],[1,"justify-content-end"],["type","button","mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1,"Modificar firmante"),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Ub(3,"form",1),i.Ub(4,"div",2),i.Ub(5,"mat-form-field",3),i.Pb(6,"input",4),i.Tb(),i.Ub(7,"mat-form-field",3),i.Pb(8,"input",5),i.Tb(),i.Tb(),i.Ub(9,"div",2),i.Ub(10,"mat-form-field",3),i.Pb(11,"input",6),i.Tb(),i.Ub(12,"mat-form-field",7),i.Pb(13,"input",8),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(14,"mat-dialog-actions",9),i.Ub(15,"button",10),i.Lc(16,"CANCELAR"),i.Tb(),i.Ub(17,"button",11),i.cc("click",(function(){return e.modifyUser()})),i.Lc(18,"REENVIAR INVITACI\xd3N"),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("formGroup",e.fg),i.Db(14),i.mc("disabled",e.fg.invalid))},directives:[Wb,Kb,zc,Fa,Yc,Uv,uy,Aa,Na,tl,il,pl,Qb,zm,$b],styles:[""]}),t})();function lj(t,e){if(1&t&&(i.Ub(0,"small"),i.Pb(1,"span",32),i.Lc(2),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Nc(" ",t.data.state,"")}}function uj(t,e){if(1&t&&(i.Ub(0,"small"),i.Pb(1,"span",33),i.Lc(2),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Nc(" ",t.data.state,"")}}function dj(t,e){if(1&t&&(i.Ub(0,"small"),i.Pb(1,"span",34),i.Lc(2),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Nc(" ",t.data.state,"")}}function hj(t,e){1&t&&(i.Ub(0,"mat-icon",35),i.Lc(1,"description"),i.Tb(),i.Ub(2,"span",36),i.Lc(3,"Documentos"),i.Tb())}function pj(t,e){1&t&&i.Pb(0,"div")}function mj(t,e){if(1&t&&(i.Ub(0,"a",44),i.Pb(1,"img",45),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.signedPath,i.Bc)}}function fj(t,e){if(1&t&&(i.Ub(0,"a",44),i.Pb(1,"img",45),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.path,i.Bc)}}function bj(t,e){if(1&t&&(i.Ub(0,"div",37),i.Ub(1,"div",38),i.Ub(2,"span",39),i.Lc(3),i.Tb(),i.Ub(4,"span",40),i.Lc(5),i.Tb(),i.Tb(),i.Jc(6,pj,1,0,"div",41),i.Jc(7,mj,2,1,"ng-template",null,42,i.Kc),i.Jc(9,fj,2,1,"ng-template",null,43,i.Kc),i.Tb()),2&t){const t=e.$implicit,n=i.uc(8),r=i.uc(10),o=i.gc();i.Db(3),i.Mc(t.fileName),i.Db(2),i.Nc("Id. ",t.idFile,""),i.Db(1),i.mc("ngIf",""!==t.signedPath&&o.canBeSeeDocument)("ngIfThen",n)("ngIfElse",r)}}function gj(t,e){1&t&&(i.Ub(0,"mat-icon",35),i.Lc(1,"find_in_page"),i.Tb(),i.Ub(2,"span",36),i.Lc(3,"Detalle"),i.Tb())}function _j(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",60),i.Lc(2),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(2),i.Mc(t.filesWithDocs[0].status)}}function vj(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",61),i.Lc(2),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(2),i.Mc(t.filesWithDocs[0].status)}}function yj(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",61),i.Lc(2),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(2),i.Mc(t.filesWithDocs[0].status)}}function wj(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",62),i.Lc(2),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(2),i.Mc(t.filesWithDocs[0].status)}}function Cj(t,e){if(1&t&&(i.Ub(0,"a",63),i.Ub(1,"mat-icon"),i.Lc(2,"movie"),i.Tb(),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.video,i.Bc)}}function xj(t,e){if(1&t&&(i.Ub(0,"a",64),i.Ub(1,"mat-icon"),i.Lc(2,"insert_photo"),i.Tb(),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.faceImg,i.Bc)}}function Oj(t,e){if(1&t&&(i.Ub(0,"a",65),i.Ub(1,"mat-icon"),i.Lc(2,"assignment_ind"),i.Tb(),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.frontImg,i.Bc)}}function Sj(t,e){if(1&t&&(i.Ub(0,"a",66),i.Ub(1,"mat-icon"),i.Lc(2,"assignment_ind"),i.Tb(),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.rearvImg,i.Bc)}}function Tj(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",67),i.cc("click",(function(){i.yc(t);const e=i.gc().$implicit,n=i.gc();return n.modifySigner(e.firstName,e.lastName,e.identificationNumber,e.email,n.data.idProcess)})),i.Ub(1,"i",68),i.Lc(2,"create"),i.Tb(),i.Tb()}}function Dj(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",69),i.cc("click",(function(){i.yc(t);const e=i.gc().$implicit,n=i.gc();return n.deleteSigner(e.identificationNumber,e.email,n.data.idProcess)})),i.Ub(1,"i",68),i.Lc(2,"delete"),i.Tb(),i.Tb()}}function kj(t,e){if(1&t&&(i.Ub(0,"div",21),i.Ub(1,"div",46),i.Ub(2,"div",47),i.Pb(3,"img",24),i.Tb(),i.Ub(4,"div",48),i.Ub(5,"span",49),i.Lc(6),i.Tb(),i.Ub(7,"span",49),i.Lc(8),i.Tb(),i.Ub(9,"span",50),i.Lc(10),i.Tb(),i.Ub(11,"span",50),i.Lc(12),i.Tb(),i.Ub(13,"span",50),i.Lc(14),i.hc(15,"date"),i.Tb(),i.Ub(16,"div",51),i.Ub(17,"span",52),i.Jc(18,_j,3,1,"div",5),i.Jc(19,vj,3,1,"div",5),i.Jc(20,yj,3,1,"div",5),i.Jc(21,wj,3,1,"div",5),i.Tb(),i.Tb(),i.Ub(22,"div",53),i.Jc(23,Cj,3,1,"a",54),i.Jc(24,xj,3,1,"a",55),i.Jc(25,Oj,3,1,"a",56),i.Jc(26,Sj,3,1,"a",57),i.Tb(),i.Tb(),i.Tb(),i.Jc(27,Tj,3,0,"button",58),i.Jc(28,Dj,3,0,"button",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(6),i.Mc(t.role===n.rolEnum.Administrator?"Notario(a)":"Compareciente"),i.Db(2),i.Oc("",t.firstName," ",t.lastName,""),i.Db(2),i.Nc("CC. ",t.identificationNumber,""),i.Db(2),i.Nc("Correo: ",t.email,""),i.Db(2),i.Nc("Fecha: ",i.jc(15,16,t.filesWithDocs[0].lastDateSignature,"dd/MM/yyyy hh:mm a"),""),i.Db(4),i.mc("ngIf","Firmado"===t.filesWithDocs[0].status),i.Db(1),i.mc("ngIf","Sin firmar"===t.filesWithDocs[0].status),i.Db(1),i.mc("ngIf","Rechazado"===t.filesWithDocs[0].status),i.Db(1),i.mc("ngIf","Sin pagar"===t.filesWithDocs[0].status),i.Db(2),i.mc("ngIf","Firmado"===t.filesWithDocs[0].status&&null!==t.video),i.Db(1),i.mc("ngIf","Firmado"===t.filesWithDocs[0].status&&null!==t.faceImg),i.Db(1),i.mc("ngIf","Firmado"===t.filesWithDocs[0].status&&null!==t.frontImg),i.Db(1),i.mc("ngIf","Firmado"===t.filesWithDocs[0].status&&null!==t.rearvImg),i.Db(1),i.mc("ngIf",n.canBeModified&&"Sin firmar"===t.filesWithDocs[0].status&&"Administrator"!==t.role&&t.identificationNumber!==n.data.content.userLoaded.identificationNumber),i.Db(1),i.mc("ngIf",n.canBeModified&&"Sin firmar"===t.filesWithDocs[0].status&&"Administrator"!==t.role&&n.data.content.usersWithDocsToSign.length>2)}}function Pj(t,e){if(1&t&&(i.Ub(0,"div"),i.Ub(1,"button",70),i.cc("click",(function(){const t=e.$implicit;return i.gc()[t.funct](t.value)})),i.Lc(2),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(2),i.Mc(t.text)}}let Ej=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.dialog=n,this.rolEnum=Ig;const i=JSON.parse(sessionStorage.getItem("userData"));this.canBeSeeDocument="Autorizado"===e.content.processStatus||i.role===Ig.Administrator,this.canBeModified="Firmado"!==e.state&&"Rechazado"!==e.state&&i.identificationNumber===e.content.userLoaded.identificationNumber}close(t){this.dialogRef.close(t)}modifySigner(t,e,n,i,r){this.showModifySignerDialog(t,e,n,i,r).subscribe(t=>{void 0!==t&&void 0!==t.action&&this.dialogRef.close(t)})}deleteSigner(t,e,n){this.showDeleteSignerDialog(t,e,n).subscribe(t=>{void 0!==t&&void 0!==t.action&&this.dialogRef.close(t)})}showModifySignerDialog(t,e,n,i,r){return this.dialog.open(cj,{width:"830px",data:{firstName:t,lastName:e,identificationNumber:n,email:i,idProcess:r}}).afterClosed()}showDeleteSignerDialog(t,e,n){return this.dialog.open(QV,{width:"830px",data:{identificationNumber:t,email:e,idProcess:n}}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(zb),i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-docs-list-user-detail"]],inputs:{modalContent:"modalContent",modalTitle:"modalTitle"},decls:58,vars:18,consts:[[1,"mat-typography"],[1,"cnt_searchResult"],[1,"start_searchResult","text-left","text-sm-center"],[1,"title_searchResult"],["mat-dialog-title",""],[4,"ngIf"],[1,"cnt_datesProcess"],[1,"row","justify-content-sm-center"],[1,"col-12","col-sm-auto","mb-2","mb-md-0","dateProcess"],[1,"dateProcess_icon"],["src","./assets/images/Iconos/start-date.svg","alt",""],[1,"dateProcess_info"],[1,"dateProces_tag"],[1,"dateProces_tagResult"],["src","./assets/images/Iconos/update-date.svg","alt",""],["mat-tab-label",""],[1,"cont_tabInfo"],[1,"cnt_signedDocument"],["class","signedDocument",4,"ngFor","ngForOf"],[1,"cnt_startedBy"],[1,"row"],[1,"col-12","col-md-6"],[1,"startedBy"],[1,"startedBy_icon"],["src","./assets/images/Iconos/default-profile.svg","alt",""],[1,"startedBy_info"],[1,"startedBy_name"],[1,"startedBy_doc"],[1,"cnt_signatories"],["class","col-12 col-md-6",4,"ngFor","ngForOf"],["align","end"],[4,"ngFor","ngForOf"],[1,"c_stateProcess","stateSigned"],[1,"c_stateProcess","stateSignaturePending"],[1,"c_stateProcess","stateNotSigned"],[1,"tab-icon"],[1,"d-none","d-sm-block"],[1,"signedDocument"],[1,"signedDocument_info"],[1,"signedDocument_name"],[1,"signedDocument_id"],[4,"ngIf","ngIfThen","ngIfElse"],["thenBlock",""],["elseBlock",""],["target","_blank",1,"signedDocument_ico",3,"href"],["src","./assets/images/Iconos/download.svg","alt","Descargar","title","Descargar"],[1,"signatories"],[1,"signatories_icon"],[1,"signatories_info"],[1,"signatories_name"],[1,"signatories_doc"],[1,"signatories_moreInfo"],[1,"state_signDoc"],[1,"mt-2","btns-downloads"],["target","_blank","mat-mini-fab","","matTooltip","Video",3,"href",4,"ngIf"],["target","_blank","mat-mini-fab","","matTooltip","Imagen",3,"href",4,"ngIf"],["target","_blank","mat-mini-fab","","matBadge","1","matBadgeColor","primary","matTooltip","Vista frontal documento de identidad",3,"href",4,"ngIf"],["target","_blank","mat-mini-fab","","matBadge","2","matBadgeColor","primary","matTooltip","Vista posterior documento de identidad",3,"href",4,"ngIf"],["mat-icon-button","","color","primary","class","modify-signer-btn","title","Modificar informaci\xf3n",3,"click",4,"ngIf"],["mat-icon-button","","color","primary","class","delete-signer-btn","title","Eliminar Compareciente",3,"click",4,"ngIf"],[1,"c_stateSignDoc","stateSigned"],[1,"c_stateSignDoc","stateNotSigned"],[1,"c_stateSignDoc","stateSignaturePending"],["target","_blank","mat-mini-fab","","matTooltip","Video",3,"href"],["target","_blank","mat-mini-fab","","matTooltip","Imagen",3,"href"],["target","_blank","mat-mini-fab","","matBadge","1","matBadgeColor","primary","matTooltip","Vista frontal documento de identidad",3,"href"],["target","_blank","mat-mini-fab","","matBadge","2","matBadgeColor","primary","matTooltip","Vista posterior documento de identidad",3,"href"],["mat-icon-button","","color","primary","title","Modificar informaci\xf3n",1,"modify-signer-btn",3,"click"],[1,"material-icons"],["mat-icon-button","","color","primary","title","Eliminar Compareciente",1,"delete-signer-btn",3,"click"],["mat-flat-button","",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"mat-dialog-content",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Ub(4,"h2",4),i.Lc(5),i.Jc(6,lj,3,1,"small",5),i.Jc(7,uj,3,1,"small",5),i.Jc(8,dj,3,1,"small",5),i.Tb(),i.Tb(),i.Ub(9,"div",6),i.Ub(10,"div",7),i.Ub(11,"div",8),i.Ub(12,"div",9),i.Pb(13,"img",10),i.Tb(),i.Ub(14,"div",11),i.Ub(15,"span",12),i.Lc(16,"Iniciado"),i.Tb(),i.Ub(17,"span",13),i.Lc(18),i.hc(19,"date"),i.Tb(),i.Tb(),i.Tb(),i.Ub(20,"div",8),i.Ub(21,"div",9),i.Pb(22,"img",14),i.Tb(),i.Ub(23,"div",11),i.Ub(24,"span",12),i.Lc(25,"Actualizado"),i.Tb(),i.Ub(26,"span",13),i.Lc(27),i.hc(28,"date"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(29,"mat-tab-group"),i.Ub(30,"mat-tab"),i.Jc(31,hj,4,0,"ng-template",15),i.Ub(32,"div",16),i.Ub(33,"div",17),i.Jc(34,bj,11,5,"div",18),i.Tb(),i.Tb(),i.Tb(),i.Ub(35,"mat-tab"),i.Jc(36,gj,4,0,"ng-template",15),i.Ub(37,"div",16),i.Ub(38,"div",19),i.Ub(39,"h5"),i.Lc(40,"Iniciado por"),i.Tb(),i.Ub(41,"div",20),i.Ub(42,"div",21),i.Ub(43,"div",22),i.Ub(44,"div",23),i.Pb(45,"img",24),i.Tb(),i.Ub(46,"div",25),i.Ub(47,"span",26),i.Lc(48),i.Tb(),i.Ub(49,"span",27),i.Lc(50),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(51,"div",28),i.Ub(52,"h5"),i.Lc(53,"Firman"),i.Tb(),i.Ub(54,"div",20),i.Jc(55,kj,29,19,"div",29),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(56,"mat-dialog-actions",30),i.Jc(57,Pj,3,1,"div",31),i.Tb()),2&t&&(i.Db(5),i.Nc(" Proceso ",e.data.idProcess," "),i.Db(1),i.mc("ngIf","Firmado"===e.data.state),i.Db(1),i.mc("ngIf","Esperando Otras Firmas"===e.data.state),i.Db(1),i.mc("ngIf","Sin firmas"===e.data.state||"Rechazado"===e.data.state),i.Db(10),i.Mc(i.jc(19,12,e.data.dateInit,"dd/MM/yyyy hh:mm a")),i.Db(9),i.Mc(i.jc(28,15,e.data.dateLast,"dd/MM/yyyy hh:mm a")),i.Db(7),i.mc("ngForOf",e.data.content.files),i.Db(14),i.Oc("",e.data.content.userLoaded.firstName," ",e.data.content.userLoaded.lastName,""),i.Db(2),i.Nc("CC. ",e.data.content.userLoaded.identificationNumber,""),i.Db(5),i.mc("ngForOf",e.data.content.usersWithDocsToSign),i.Db(2),i.mc("ngForOf",e.data.actions))},directives:[Kb,Wb,o.t,QA,jA,LA,o.s,Qb,Kv,qm,zx,sS,zm],pipes:[o.f],styles:[".mat-dialog-content[_ngcontent-%COMP%]{display:inherit!important}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-right:0}.start_searchResult[_ngcontent-%COMP%]{background:rgba(38,82,118,.08);margin:-48px -24px 0;padding:1rem}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]{margin-bottom:1.4rem}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.45rem;text-transform:uppercase;font-weight:700;color:#4fbfd3}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{display:block;color:#22385e;text-transform:none}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]   .c_stateProcess[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:50%}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]   .c_stateProcess.stateSigned[_ngcontent-%COMP%]{background:#78a34f}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]   .c_stateProcess.stateSignaturePending[_ngcontent-%COMP%]{background:#f6d55c}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]   .c_stateProcess.stateNotSigned[_ngcontent-%COMP%]{background:#ed553b}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]{border-radius:10px;border:1px solid #99acbc;padding:10px;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:12px}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]:last-child{margin-bottom:0}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:75%}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]   .signedDocument_id[_ngcontent-%COMP%], .cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]   .signedDocument_name[_ngcontent-%COMP%]{display:block}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]   .signedDocument_name[_ngcontent-%COMP%]{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]   .signedDocument_id[_ngcontent-%COMP%]{font-size:.8rem}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_ico[_ngcontent-%COMP%]{width:42px;height:42px}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_ico[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:left}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_icon[_ngcontent-%COMP%]{margin-right:.6rem}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:42px}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_info[_ngcontent-%COMP%]   .dateProces_tag[_ngcontent-%COMP%], .cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_info[_ngcontent-%COMP%]   .dateProces_tagResult[_ngcontent-%COMP%]{display:block}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_info[_ngcontent-%COMP%]   .dateProces_tag[_ngcontent-%COMP%]{font-size:.8rem;font-weight:700;color:#6c7e8d}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_info[_ngcontent-%COMP%]   .dateProces_tagResult[_ngcontent-%COMP%]{font-size:.9rem;text-transform:lowercase}.cnt_startedBy[_ngcontent-%COMP%]{margin-bottom:1.4rem}.cnt_signatories[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:1rem;font-weight:700}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;border:1px solid #99acbc;padding:10px;margin-bottom:18px;border-radius:10px}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_icon[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_icon[_ngcontent-%COMP%]{overflow:hidden;width:40px;height:40px;margin-right:10px}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_doc[_ngcontent-%COMP%], .cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_name[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_info[_ngcontent-%COMP%]   .startedBy_doc[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_info[_ngcontent-%COMP%]   .startedBy_name[_ngcontent-%COMP%]{display:block}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_name[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_info[_ngcontent-%COMP%]   .startedBy_name[_ngcontent-%COMP%]{font-weight:600}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_doc[_ngcontent-%COMP%], .cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_info[_ngcontent-%COMP%]   .startedBy_doc[_ngcontent-%COMP%]{font-size:.8rem}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]{margin-top:8px}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .date_signDoc[_ngcontent-%COMP%], .cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]{display:block}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]   .c_stateSignDoc[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]   .c_stateSignDoc.stateSigned[_ngcontent-%COMP%]{background:#78a34f}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]   .c_stateSignDoc.stateSignaturePending[_ngcontent-%COMP%]{background:#f6d55c}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]   .c_stateSignDoc.stateNotSigned[_ngcontent-%COMP%]{background:#ed553b}.cnt_signatories[_ngcontent-%COMP%]   .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .date_signDoc[_ngcontent-%COMP%]{margin-left:14px;text-transform:lowercase}.borde[_ngcontent-%COMP%]{border:1px solid red}.modify-signer-btn[_ngcontent-%COMP%]{position:absolute;top:5px;right:20px}.delete-signer-btn[_ngcontent-%COMP%]{position:absolute;top:5px;right:50px}.btns-downloads[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin:8px}.btns-downloads[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:firt-child{margin-left:0!important}.btns-downloads[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:last-child{margin-right:0!important}"]}),t})(),Aj=(()=>{class t{constructor(t,e,n){this.formBuilder=t,this.dialogRef=e,this.data=n,this.fg=this.formBuilder.group({message:["",[Ha.required]]})}rejectSignature(){this.dialogRef.close(this.fg.controls.message.value)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(jb),i.Ob(zb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-dialog-reject-signature"]],decls:14,vars:5,consts:[["mat-dialog-title",""],[3,"formGroup"],["matInput","","formControlName","message","required","",2,"height","65px",3,"placeholder"],[1,"text-center","w-100"],["type","button","mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Ub(3,"form",1),i.Ub(4,"mat-form-field"),i.Pb(5,"textarea",2),i.Tb(),i.Tb(),i.Tb(),i.Ub(6,"mat-dialog-actions"),i.Ub(7,"div",3),i.Ub(8,"p"),i.Lc(9),i.Tb(),i.Ub(10,"button",4),i.Lc(11,"No"),i.Tb(),i.Ub(12,"button",5),i.cc("click",(function(){return e.rejectSignature()})),i.Lc(13,"Si"),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(1),i.Mc(e.data.title),i.Db(2),i.mc("formGroup",e.fg),i.Db(2),i.nc("placeholder",e.data.text),i.Db(4),i.Nc("\xbf",e.data.textWarning,"?"),i.Db(3),i.mc("disabled",e.fg.invalid))},directives:[Wb,Kb,zc,Fa,Yc,Uv,uy,Aa,Na,tl,il,Qb,zm,$b],styles:[""]}),t})();class Ij{}let Mj=(()=>{class t extends hM{parse(t){if("string"==typeof t&&t.indexOf("/")>-1){const e=t.split("/"),n=Number(e[2]),i=Number(e[1])-1,r=Number(e[0]);return new Date(n,i,r)}const e="number"==typeof t?t:Date.parse(t);return isNaN(e)?null:new Date(e)}format(t,e){if("input"===e){const e=t.getDate(),n=t.getMonth()+1,i=t.getFullYear();return this._to2digit(e)+"/"+this._to2digit(n)+"/"+i}if("inputMonth"===e){const e=t.getMonth()+1,n=t.getFullYear();return this._to2digit(e)+"/"+n}return t.toDateString()}_to2digit(t){return("00"+t).slice(-2)}}return t.\u0275fac=function(e){return Uj(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const Uj=i.Wb(Mj),Lj={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:"inputMonth",dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};function Rj(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-option",39),i.cc("onSelectionChange",(function(e){return i.yc(t),i.gc().onSelectCategory(e)})),i.Lc(1),i.Tb()}if(2&t){const t=e.$implicit;i.mc("value",t.name),i.Db(1),i.Mc(t.name)}}function Nj(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-option",39),i.cc("onSelectionChange",(function(e){return i.yc(t),i.gc().onSelectState(e)})),i.Lc(1),i.Tb()}if(2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Mc(t)}}function Fj(t,e){1&t&&i.Pb(0,"th",40)}function Vj(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div"),i.Ub(1,"mat-checkbox",44),i.cc("ngModelChange",(function(e){return i.yc(t),i.gc().$implicit.checked=e}))("change",(function(e){i.yc(t);const n=i.gc().$implicit,r=i.gc();return e?r.toggleCheckbox(n):null})),i.Tb(),i.Tb()}if(2&t){const t=i.gc().$implicit;i.Db(1),i.mc("ngModel",t.checked)}}function jj(t,e){1&t&&i.Pb(0,"mat-checkbox",45),2&t&&i.mc("disabled",!0)("checked",!0)}function Bj(t,e){if(1&t&&(i.Ub(0,"td",41),i.Jc(1,Vj,2,1,"div",42),i.Jc(2,jj,1,2,"ng-template",null,43,i.Kc),i.Tb()),2&t){const t=e.$implicit,n=i.uc(3);i.Db(1),i.mc("ngIf","Sin firmar"===t.stateSignatureUser&&"Rechazado"!==t.state)("ngIfElse",n)}}function zj(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1," Id "),i.Tb())}function qj(t,e){if(1&t&&(i.Ub(0,"td",41),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.idProcess)}}function Hj(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1," Asunto "),i.Tb())}function Gj(t,e){if(1&t&&(i.Ub(0,"span"),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Oc(" ",t.firstName," ",t.lastName,", ")}}function Jj(t,e){if(1&t&&(i.Ub(0,"td",41),i.Ub(1,"span",46),i.Ub(2,"span",47),i.Lc(3),i.Tb(),i.Ub(4,"span",48),i.Lc(5,"para: "),i.Jc(6,Gj,2,2,"span",49),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(t.affair),i.Db(3),i.mc("ngForOf",t.users)}}function Yj(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1,"Estado"),i.Tb())}function $j(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",52),i.Lc(2),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(2),i.Mc(t.state)}}function Wj(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",53),i.Lc(2),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(2),i.Mc(t.stateUserLastSignatory)}}function Kj(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",53),i.Lc(2),i.Tb()),2&t){const t=i.gc(2).$implicit;i.Db(2),i.Mc(t.state)}}function Qj(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",53),i.Lc(2),i.Tb()),2&t){const t=i.gc(2).$implicit;i.Db(2),i.Mc(t.state)}}function Xj(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",54),i.Lc(2),i.Tb()),2&t){const t=i.gc(2).$implicit;i.Db(2),i.Mc(t.state)}}function Zj(t,e){if(1&t&&(i.Ub(0,"div"),i.Pb(1,"span",54),i.Lc(2),i.Tb()),2&t){const t=i.gc(2).$implicit;i.Db(2),i.Mc(t.state)}}function tB(t,e){if(1&t&&(i.Jc(0,Kj,3,1,"div",50),i.Jc(1,Qj,3,1,"div",50),i.Jc(2,Xj,3,1,"div",50),i.Jc(3,Zj,3,1,"div",50)),2&t){const t=i.gc().$implicit;i.mc("ngIf","Esperando Otras Firmas"===t.state),i.Db(1),i.mc("ngIf","En control de legalidad"===t.state),i.Db(1),i.mc("ngIf","Sin firmas"===t.state),i.Db(1),i.mc("ngIf","Rechazado"===t.state)}}function eB(t,e){if(1&t&&(i.Ub(0,"td",41),i.Jc(1,$j,3,1,"div",50),i.Jc(2,Wj,3,1,"div",42),i.Jc(3,tB,4,4,"ng-template",null,51,i.Kc),i.Tb()),2&t){const t=e.$implicit,n=i.uc(4);i.Db(1),i.mc("ngIf","Autorizado"===t.state),i.Db(1),i.mc("ngIf","Esperando Mi Firma"===t.stateUserLastSignatory&&"Rechazado"!==t.state||"Sin pagar"===t.stateUserLastSignatory)("ngIfElse",n)}}function nB(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1," Iniciado "),i.Tb())}function iB(t,e){if(1&t&&(i.Ub(0,"td",41),i.Ub(1,"span",55),i.Ub(2,"span",56),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",57),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.regDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.regDate,"hh:mm a"))}}function rB(t,e){1&t&&(i.Ub(0,"th",40),i.Lc(1," Actualizado "),i.Tb())}function oB(t,e){if(1&t&&(i.Ub(0,"span",55),i.Ub(1,"span",56),i.Lc(2),i.hc(3,"date"),i.Tb(),i.Ub(4,"span",57),i.Lc(5),i.hc(6,"date"),i.Tb(),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(2),i.Mc(i.jc(3,2,t.lastChangeDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(6,5,t.lastChangeDate,"hh:mm a"))}}function sB(t,e){if(1&t&&(i.Ub(0,"span",55),i.Ub(1,"span",56),i.Lc(2),i.hc(3,"date"),i.Tb(),i.Ub(4,"span",57),i.Lc(5),i.hc(6,"date"),i.Tb(),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(2),i.Mc(i.jc(3,2,t.regDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(6,5,t.regDate,"hh:mm a"))}}function aB(t,e){if(1&t&&(i.Ub(0,"td",41),i.Jc(1,oB,7,8,"span",58),i.Jc(2,sB,7,8,"ng-template",null,59,i.Kc),i.Tb()),2&t){const t=e.$implicit,n=i.uc(3);i.Db(1),i.mc("ngIf",""!==t.lastChangeDate)("ngIfElse",n)}}function cB(t,e){1&t&&(i.Ub(0,"th",60),i.Lc(1,"M\xe1s"),i.Tb())}function lB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",65),i.cc("click",(function(){i.yc(t);const e=i.gc().$implicit;return i.gc().signDocuments(e.idProcess,e.massiveProcessingId)})),i.Ub(1,"mat-icon"),i.Lc(2,"border_color"),i.Tb(),i.Ub(3,"span"),i.Lc(4,"Firmar documento(s)"),i.Tb(),i.Tb()}}function uB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",65),i.cc("click",(function(){i.yc(t);const e=i.gc().$implicit;return i.gc().openRejectSignatureDialog(e.idProcess)})),i.Ub(1,"mat-icon"),i.Lc(2,"remove_circle"),i.Tb(),i.Ub(3,"span"),i.Lc(4,"Rechazar documento(s)"),i.Tb(),i.Tb()}}function dB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",65),i.cc("click",(function(){i.yc(t);const e=i.gc().$implicit;return i.gc().paymentProcessSign(e.idProcess)})),i.Ub(1,"mat-icon"),i.Lc(2,"payment"),i.Tb(),i.Ub(3,"span"),i.Lc(4,"Pagar proceso"),i.Tb(),i.Tb()}}function hB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",65),i.cc("click",(function(){i.yc(t);const e=i.gc().$implicit;return i.gc().deleteProcessSign(e.idProcess)})),i.Ub(1,"mat-icon"),i.Lc(2,"delete"),i.Tb(),i.Ub(3,"span"),i.Lc(4,"Eliminar Proceso"),i.Tb(),i.Tb()}}function pB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",61),i.Ub(1,"button",62),i.Ub(2,"mat-icon"),i.Lc(3,"more_vert"),i.Tb(),i.Tb(),i.Ub(4,"mat-menu",63,64),i.Ub(6,"button",65),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().viewDetailProcess(n.idProcess,n.regDate,""===n.lastChangeDate?n.regDate:n.lastChangeDate,n.state)})),i.Ub(7,"mat-icon"),i.Lc(8,"receipt"),i.Tb(),i.Ub(9,"span"),i.Lc(10,"Detalle"),i.Tb(),i.Tb(),i.Jc(11,lB,5,0,"button",66),i.Jc(12,uB,5,0,"button",66),i.Jc(13,dB,5,0,"button",66),i.Jc(14,hB,5,0,"button",66),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=i.uc(5);i.Db(1),i.mc("matMenuTriggerFor",n),i.Db(10),i.mc("ngIf","Rechazado"!==t.state&&"Sin firmar"===t.stateSignatureUser),i.Db(1),i.mc("ngIf","Rechazado"!==t.state&&"Sin firmar"===t.stateSignatureUser),i.Db(1),i.mc("ngIf","Sin pagar"===t.stateSignatureUser),i.Db(1),i.mc("ngIf",!0===t.allowRemove&&"Sin pagar"===t.stateSignatureUser)}}function mB(t,e){1&t&&i.Pb(0,"tr",67)}function fB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"tr",68),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().selection.toggle(n)})),i.Tb()}}const bB=function(){return[10,20,30]},gB=[];let _B=(()=>{class t{constructor(t,e,n,r,s,a,c,l,u,d,h,p,m,f,b,g,_,v,y,w){this.globalVarService=t,this.signatureProcessesService=e,this.saveProcessSignService=n,this.route=r,this.router=s,this.datePipe=a,this.dialog=l,this.cn=u,this._pageLoaderService=d,this.translate=h,this.dateAdapter=p,this.rejectSignatureService=m,this.massiveSignatureService=f,this.sendDocsToSignService=b,this.notificationsService=g,this.signatureCategoryService=_,this.deleteSignatureProcessService=v,this._pageLoaderServiceSign=y,this.location=w,this.dateSelect=new i.o,this.displayedColumns=["select","idProceso","estado","asuntoProceso","dateCreation","dateModified","symbol"],this.categoriesPlaceholder="",this.dataSource=new Sx(gB),this.selection=new Cf(!0,[]),this.listresult=[],this.datepipe=new o.f("es"),this.stateSignForm=new Pc,this.signatureCategoriesControl=new Pc,this.stateSignList=["Sin firmas","Esperando Otras Firmas","En control de legalidad","Autorizado","Rechazado"],this.arrayState=[],this.arrayCategories=[],this.empList=[],this.validItem=!1,this.countRows=0,this.signatureMassiveProcesses=[],this.listProcessMassive=[],this.limit=10,this.skip=0,this.totalLength=0,this.pageIndex=0,this.dateFilter="",this.statesFilter="",this.categoriesFilter="",this.searchFilter="",this.user=JSON.parse(sessionStorage.getItem("userData")),this.form=c.group({date:[{begin:null,end:null}]}),this.translate.use("es"),this.dateAdapter.setLocale("es"),this.dataSource.paginator=this.paginator}ngAfterViewInit(){setTimeout(()=>{this.getProcess()})}ngOnInit(){this.loadVariables(),this.paginator._intl.itemsPerPageLabel="Items por P\xe1gina.",this.paginator._intl.nextPageLabel="P\xe1gina Siguiente",this.paginator._intl.previousPageLabel="P\xe1gina Anterior",this.paginator._intl.firstPageLabel="Primera P\xe1gina",this.paginator._intl.lastPageLabel="\xdaltima P\xe1gina"}applyFilter(t){this.resetPaginator(),this.searchFilter=t,this.getProcess()}onSelectCategory(t){if(this.resetPaginator(),t.source.selected)this.arrayCategories.push(t.source.value);else{const e=this.arrayCategories.indexOf(t.source.value);-1!==e&&this.arrayCategories.splice(e,1)}this.categoriesFilter="",this.arrayCategories.forEach((t,e)=>{this.categoriesFilter+='"'+t+'"',this.categoriesFilter+=e!==this.arrayCategories.length-1?",":""}),this.getProcess()}onSelectState(t){if(this.resetPaginator(),t.source.selected)this.arrayState.push(t.source.value);else{const e=this.arrayState.indexOf(t.source.value);-1!==e&&this.arrayState.splice(e,1)}this.statesFilter="",this.arrayState.forEach((t,e)=>{this.statesFilter+='"'+t+'"',this.statesFilter+=e!==this.arrayState.length-1?",":""}),this.getProcess()}onDateSelect(t){if(this.resetPaginator(),this.dateFilter="",null!==this.form.value.date&&null!==this.form.value.date.begin){const t=this.datepipe.transform(new Date(this.form.value.date.begin),"yyyy-MM-dd"),e=this.datepipe.transform(new Date(this.form.value.date.end),"yyyy-MM-dd");this.dateFilter=`${t},${e}`,this.getProcess()}else this.getProcess()}filterPeriod(t,e){const n=e.trim().toLowerCase();return t.idProcess.toLowerCase().includes(n)||t.affair.toLowerCase().includes(n)||t.users.find(t=>(t.firstName+" "+t.lastName).trim().toLowerCase().includes(n)||t.identificationNumber.trim().toLowerCase().includes(n))}filterStatesExample(){return!0}getMyProcess(t){this.cn.log("getMyProcess()"),this._pageLoaderService.show(),this.signatureProcessesService.getSignatureProcessesByUser(this.user.identificationNumber,this.user.email,this.skip,this.limit,this.dateFilter,this.statesFilter,this.categoriesFilter,this.searchFilter).subscribe(e=>{this.cn.log("getMyProcess() response: ",e),this.listresult=e.signatureProcess.sort((t,e)=>e.regDate.localeCompare(t.regDate)),e.signatureProcess.forEach(t=>{let e=!0;return this.listProcessMassive.forEach(n=>{e&&(t.idProcess===n?(t.checked=!0,e=!1):t.checked=!1)}),t}),null!==t&&t(e),this._pageLoaderService.hide()},t=>{this._pageLoaderService.hide(),this.cn.log(t)})}getProcess(){if(this.user=JSON.parse(sessionStorage.getItem("userData")),null===this.user)setTimeout(()=>{this.getProcess()},400);else{let t;this.user.role!==Ig.Administrator&&(this.displayedColumns=["idProceso","estado","asuntoProceso","dateCreation","dateModified","symbol"]),this.getMyProcess(e=>{e&&(t=e,setTimeout(()=>{this.dataSource.data=t.signatureProcess,this.totalLength=t.countProcess}))})}}loadVariables(){this.cn.log("loadVariables()"),this.getSignatureCategories(),this.route.queryParams.subscribe(t=>{this.globalVarService.processId=t.processId})}changePage(t){t.pageSize!==this.limit?(this.limit=t.pageSize,this.skip=t.pageIndex,this.getProcess()):this.totalLength>this.dataSource.data.length&&(this.skip=t.pageIndex,this.getProcess())}toggleCheckbox(t){this.cn.log("toggleCheckbox()"),this.cn.log("row()",t),this.saveProcessChecked(t),this.countRows=this.listProcessMassive.length,this.countRows>0&&this.countRows<=20?this.validItem=!0:(this.countRows>20&&this.showGeneralDialogInfo("Solo puedes firmar masivamente 20 procesos a la vez.").subscribe(),this.validItem=!1)}saveProcessChecked(t){!0===t.checked?0===this.listProcessMassive.filter(e=>e===t.idProcess).length&&this.listProcessMassive.push(t.idProcess):this.listProcessMassive=this.listProcessMassive.filter(e=>e!==t.idProcess)}viewDetailProcess(t,e,n,i){this.cn.log("viewDetailPRocess()"),this.signatureProcessesService.getDetailSignatureProcesses(t).subscribe(r=>{this.cn.log(r),this.showGeneralDialog(r,t,e,n,i).subscribe(t=>{if(void 0!==t&&void 0!==t.action)switch(t.action){case"MODIFY":this.modifyInvitedUser(t.dataBody);break;case"DELETE":this.deleteInvitedUser(t.dataBody.email,t.dataBody.idProcess)}})},t=>{this.cn.log(t)})}showGeneralDialog(t,e,n,i,r,o,s){return this.cn.log("showGeneralDialog()"),void 0===o&&(o={content:t,idProcess:e,dateInit:n,dateLast:i,state:r,actions:[{text:"Cerrar",value:"accepted",funct:"close"}]}),void 0===s&&(s=Ej),this.dialog.open(Ej,{height:"90%",width:"1024px",data:o}).afterClosed()}showGeneralDialogInfo(t,e,n){this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU);const i=this.dialog.open(n,{width:"830px",data:e});return i.afterClosed().subscribe(t=>{this.getProcess()}),i.afterClosed()}signDocuments(t,e){this.cn.log("signDocuments()"),this.globalVarService.path_route="corporate/pv/",this.globalVarService.type_signature=pU.SIMPLE,null!==e&&(this.globalVarService.type_signature=pU.MULTIPLE_SIGN_UPDATE,this.globalVarService.signatureProcesses=[t],console.log("ok",this.globalVarService.signatureProcesses,t),console.log("ok 2",t,t)),this.router.navigate([this.globalVarService.path_route+"documents/doc-list"],{queryParams:{processId:t}})}showDialog(t,e){void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"cancelMethodSigner"}]}),this.dialog.open(fU,{disableClose:!0,width:"830px",data:e})}massiveSignature(){this.cn.log("nextStep()");const t=JSON.parse(sessionStorage.getItem("notaryData"));this.location.getPosition().then(e=>{dg.info(`Latitud:  ${e.lat} Longitud: ${e.lng}.`,"Ubicacion"),this.cn.log("location!!",e.lat+","+e.lng),""!==e.err?(this._pageLoaderService.hide(),this.showDialog("",{title:"Informaci\xf3n",content:e.err,actions:[{text:"Aceptar",value:"accepted",funct:"closeLocation"}]})):this.location.getCity(e.lat,e.lng).subscribe(e=>{try{this.cn.log("City!!!",e.results[0].address_components),tL.ValidateLocation(e.results[0].address_components,t.city)?(this.cn.log("=====> MASSIVE NOTARY SIGNATURE"),this.cn.log("Processes: "),this.cn.log(this.listProcessMassive),this.listProcessMassive.length>0?(window.open("notariasigndesktop:processes="+this.listProcessMassive,"_self"),this.router.navigate(["corporate/pv/messages/signed-docs-massive"])):this.showGeneralDialogInfo("No ha seleccionado ning\xfan proceso.")):(this._pageLoaderService.hide(),this.showDialog("",{title:"Informaci\xf3n",content:"Su ubicaci\xf3n no concuerda con el circulo notarial.",actions:[{text:"Aceptar",value:"accepted",funct:"closeLocation"}]}))}catch(HX){this._pageLoaderService.hide(),this.showDialog("Ocurrio un problema con la ubicaci\xf3n."),this.router.navigate([this.globalVarService.path_route+"documents/my-transactions"])}})})}clickOpenMassiveReject(){this.cn.log("clickMassiveReject()"),this.dialog.open(Aj,{height:"300px",width:"600px",data:{title:"Rechazar Procesos",text:"Razones por las cuales no firmas estos procesos",textWarning:"Seguro quieres rechazar estos procesos de firma"}}).afterClosed().subscribe(t=>{void 0!==t&&""!==t&&this.massiveReject(t)})}massiveReject(t){this.cn.log("massiveReject()"),this.globalVarService.path_route="corporate/pv/",this.signatureMassiveProcesses=this.listProcessMassive,this.globalVarService.type_signature=pU.MULTIPLE_REJECT,this.globalVarService.signatureProcesses=this.signatureMassiveProcesses,new xU(this.cn,this._pageLoaderService,this.dialog,this.router,this.globalVarService,this.massiveSignatureService).SendMassiveProcess(void 0,t)}openRejectSignatureDialog(t){this.dialog.open(Aj,{height:"300px",width:"600px",data:{title:"Rechazar Firma",text:"Razones por las cuales no firmas los documentos",textWarning:"Seguro quieres rechazar la firma de los documentos"}}).afterClosed().subscribe(e=>{void 0!==e&&""!==e&&this.rejectSignature(e,t)})}rejectSignature(t,e){this._pageLoaderService.show();const n=new Ij;n.processId=e,n.identificationNumber=this.user.identificationNumber,n.message=t,this.cn.log("RejectSignature Request ===> ",n),this.rejectSignatureService.RejectSignature(n).subscribe(t=>{this.cn.log("RejectSignature Response ===> ",t);let e="";switch(this._pageLoaderService.hide(),t.operationCode){case 1e3:e="Tu respuesta ha sido enviada.";break;case 1010:e="Ha ocurrido un error, vuelve a intentarlo."}this.showGeneralDialogInfo(e).subscribe()},t=>{this._pageLoaderService.hide(),this.cn.log("rejectSignature() ERROR: ",t),this.showGeneralDialogInfo("Ha ocurrido un error, vuelve a intentarlo.").subscribe()})}resetPaginator(){this.skip=0,this.limit=10,this.paginator.pageIndex=0}modifyInvitedUser(t){this._pageLoaderService.show(),this.saveProcessSignService.updateSigningInvitation(t).subscribe(t=>{this.cn.log(t),this._pageLoaderService.hide(),1e3===t.operationCode?this.showGeneralDialogInfo("Datos de firmante actualizados, la invitaci\xf3n fue reenviada.").subscribe():this.showGeneralDialogInfo("No se pudo reenviar la invitaci\xf3n, vuelva a intentarlo.").subscribe()},t=>{this.cn.log(t),this._pageLoaderService.hide()})}deleteInvitedUser(t,e){this._pageLoaderService.show(),this.saveProcessSignService.deleteSigningInvitation(t,e).subscribe(t=>{this.cn.log(t),this._pageLoaderService.hide(),1e3===t.operationCode?this.showGeneralDialogInfo("El compareciente fue eliminado.").subscribe():this.showGeneralDialogInfo("No se pudo eliminar el compareciente, vuelva a intentarlo.").subscribe()},t=>{this.cn.log(t),this._pageLoaderService.hide()})}getSignatureCategories(){this.categoriesPlaceholder="Acto (cargando...)",this.signatureCategoryService.getByEnterprise(this.user.enterpriseId).subscribe(t=>{this.cn.log("=====> GET SignatureCategories:"),this.cn.log(t),this.signatureCategoriesList=t.operationBody,this.categoriesPlaceholder="Acto"},t=>{this.cn.error("=====> GET SignatureCategories:"),this.cn.error(t),this.categoriesPlaceholder="Acto (No listadas)"})}deleteProcessSign(t){this._pageLoaderService.show(),this.deleteSignatureProcessService.deleteSignatureProcess(t).subscribe(e=>{this.showGeneralDialogInfo("Se ha eliminado correctamente el proceso "+t).subscribe(),this._pageLoaderService.hide()},t=>{this.cn.log(t),this._pageLoaderService.hide(),this.showGeneralDialogInfo("Ha ocurrido un error, vuelve a intentarlo.").subscribe()})}paymentProcessSign(t){this.globalVarService.processId=t,this.globalVarService.path_route="corporate/pv/",this.router.navigate([this.globalVarService.path_route+"payment/payment-summary"])}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cg),i.Ob(Lg),i.Ob(ag),i.Ob(Fo),i.Ob(Zs),i.Ob(o.f),i.Ob(fl),i.Ob(Jb),i.Ob(Gi),i.Ob(pg),i.Ob(Bi),i.Ob(iM),i.Ob(kg),i.Ob(xg),i.Ob(Ag),i.Ob(Sg),i.Ob(LV),i.Ob(gg),i.Ob(uU),i.Ob(zg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-docs-list-user"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},outputs:{dateSelect:"dateSelect"},features:[i.Cb([{provide:o.f,useValue:void 0},{provide:iM,useClass:Mj},{provide:rM,useValue:Lj}])],decls:73,vars:20,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center","mb-5"],[1,"col-12","col-md-6"],[1,"row"],[1,"col-12","col-md-3"],["matInput","","placeholder","Buscar...",3,"keydown.enter"],["search",""],["matSuffix","",2,"cursor","pointer",3,"click"],[1,"col-12","col-sm-3"],["multiple","",3,"formControl"],["value","Solo yo",3,"onSelectionChange"],["value","Reconocimiento de firma y contenido de documento privado",3,"onSelectionChange"],["value","Presentaci\xf3n Personal",3,"onSelectionChange"],["value","Autenticaci\xf3n de Firma",3,"onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],[1,"col-6","col-sm-3"],[3,"formGroup"],[1,"datepicker_aTIC"],["matInput","","placeholder","Fecha","formControlName","date",3,"satDatepicker","ngModelChange"],["touchUi","true",3,"rangeMode"],["picker",""],["matSuffix","",3,"for"],["mat-raised-button","",3,"hidden","click"],[1,"mat-elevation-z8","rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","idProceso"],["matColumnDef","asuntoProceso"],["matColumnDef","estado"],["matColumnDef","dateCreation"],["matColumnDef","dateModified"],["matColumnDef","symbol","stickyEnd",""],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions","page"],[3,"value","onSelectionChange"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["others",""],[3,"ngModel","ngModelChange","change"],[3,"disabled","checked"],[1,"tb-cnt_Asunto"],[1,"tb-asunto"],[1,"tb-para"],[4,"ngFor","ngForOf"],[4,"ngIf"],["elseBlockSignature",""],[1,"c_stateProcess","stateSigned"],[1,"c_stateProcess","stateSignaturePending"],[1,"c_stateProcess","stateNotSigned"],[1,"tb-fechaHora"],[1,"tb-fecha"],[1,"tb-hora"],["class","tb-fechaHora",4,"ngIf","ngIfElse"],["otherDate",""],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-icon-button","","color","accent","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["xPosition","before"],["navOptionProcess","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Mis Procesos"),i.Tb(),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"div",4),i.Ub(7,"mat-form-field"),i.Ub(8,"input",5,6),i.cc("keydown.enter",(function(){i.yc(t);const n=i.uc(9);return e.applyFilter(n.value)})),i.Tb(),i.Ub(10,"mat-icon",7),i.cc("click",(function(){i.yc(t);const n=i.uc(9);return e.applyFilter(n.value)})),i.Lc(11,"search"),i.Tb(),i.Tb(),i.Tb(),i.Ub(12,"div",8),i.Ub(13,"mat-form-field"),i.Ub(14,"mat-label"),i.Lc(15),i.Tb(),i.Ub(16,"mat-select",9),i.Ub(17,"mat-option",10),i.cc("onSelectionChange",(function(t){return e.onSelectCategory(t)})),i.Lc(18,"Solo yo"),i.Tb(),i.Ub(19,"mat-option",11),i.cc("onSelectionChange",(function(t){return e.onSelectCategory(t)})),i.Lc(20,"Reconocimiento de firma y contenido de documento privado"),i.Tb(),i.Ub(21,"mat-option",12),i.cc("onSelectionChange",(function(t){return e.onSelectCategory(t)})),i.Lc(22,"Presentaci\xf3n Personal"),i.Tb(),i.Ub(23,"mat-option",13),i.cc("onSelectionChange",(function(t){return e.onSelectCategory(t)})),i.Lc(24,"Autenticaci\xf3n de Firma"),i.Tb(),i.Jc(25,Rj,2,2,"mat-option",14),i.Tb(),i.Tb(),i.Tb(),i.Ub(26,"div",15),i.Ub(27,"mat-form-field"),i.Ub(28,"mat-label"),i.Lc(29,"Estado"),i.Tb(),i.Ub(30,"mat-select",9),i.Jc(31,Nj,2,2,"mat-option",14),i.Tb(),i.Tb(),i.Tb(),i.Ub(32,"div",15),i.Ub(33,"form",16),i.Ub(34,"mat-form-field",17),i.Ub(35,"input",18),i.cc("ngModelChange",(function(t){return e.onDateSelect(t)})),i.Tb(),i.Pb(36,"sat-datepicker",19,20),i.Pb(38,"sat-datepicker-toggle",21),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(39,"div",3),i.Ub(40,"div",8),i.Ub(41,"button",22),i.cc("click",(function(){return e.massiveSignature()})),i.Lc(42),i.Tb(),i.Tb(),i.Ub(43,"div",8),i.Ub(44,"button",22),i.cc("click",(function(){return e.clickOpenMassiveReject()})),i.Lc(45),i.Tb(),i.Tb(),i.Tb(),i.Pb(46,"br"),i.Ub(47,"div",23),i.Ub(48,"table",24),i.Sb(49,25),i.Jc(50,Fj,1,0,"th",26),i.Jc(51,Bj,4,2,"td",27),i.Rb(),i.Sb(52,28),i.Jc(53,zj,2,0,"th",26),i.Jc(54,qj,2,1,"td",27),i.Rb(),i.Sb(55,29),i.Jc(56,Hj,2,0,"th",26),i.Jc(57,Jj,7,2,"td",27),i.Rb(),i.Sb(58,30),i.Jc(59,Yj,2,0,"th",26),i.Jc(60,eB,5,3,"td",27),i.Rb(),i.Sb(61,31),i.Jc(62,nB,2,0,"th",26),i.Jc(63,iB,8,8,"td",27),i.Rb(),i.Sb(64,32),i.Jc(65,rB,2,0,"th",26),i.Jc(66,aB,4,2,"td",27),i.Rb(),i.Sb(67,33),i.Jc(68,cB,2,0,"th",34),i.Jc(69,pB,15,5,"td",35),i.Rb(),i.Jc(70,mB,1,0,"tr",36),i.Jc(71,fB,1,0,"tr",37),i.Tb(),i.Tb(),i.Ub(72,"mat-paginator",38),i.cc("page",(function(t){return e.changePage(t)})),i.Tb(),i.Tb()}if(2&t){const t=i.uc(37);i.Db(15),i.Mc(e.categoriesPlaceholder),i.Db(1),i.mc("formControl",e.signatureCategoriesControl),i.Db(9),i.mc("ngForOf",e.signatureCategoriesList),i.Db(5),i.mc("formControl",e.stateSignForm),i.Db(1),i.mc("ngForOf",e.stateSignList),i.Db(2),i.mc("formGroup",e.form),i.Db(2),i.mc("satDatepicker",t),i.Db(1),i.mc("rangeMode",!0),i.Db(2),i.mc("for",t),i.Db(3),i.mc("hidden",!e.validItem),i.Db(1),i.Nc("Firmar Masivamente ",e.countRows," proceso(s)"),i.Db(2),i.mc("hidden",!e.validItem),i.Db(1),i.Nc("Rechazar Masivamente ",e.countRows," proceso(s)"),i.Db(3),i.mc("dataSource",e.dataSource),i.Db(22),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("length",e.totalLength)("pageSize",e.limit)("pageSizeOptions",i.qc(19,bB))}},directives:[Uv,uy,Kv,kv,xv,aw,Na,Gc,Oh,o.s,zc,Fa,Yc,Aa,RM,tl,IM,FM,zm,JC,tx,KC,$C,cx,hx,EP,nx,sx,o.t,q_,Bc,Eb,Tb,yb,mx,_x],pipes:[o.f],styles:["table[_ngcontent-%COMP%]{width:100%}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}.c_stateProcess[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}.c_stateProcess.stateSigned[_ngcontent-%COMP%]{background:#78a34f}.c_stateProcess.stateSignaturePending[_ngcontent-%COMP%]{background:#f6d55c}.c_stateProcess.stateNotSigned[_ngcontent-%COMP%]{background:#ed553b}"]}),t})(),vB=(()=>{class t{constructor(t){this.data=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-more-info-formality"]],decls:28,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"df-more-info-dialog"],[1,"text-left","text-md-right"],[1,"mb-2"],[1,"exP-info-formality"],["expanded",""],[3,"innerHTML"],["mat-dialog-actions","",1,"justify-content-center"],["mat-dialog-close","",1,"customBtn","mb-2","mb-sm-4"]],template:function(t,e){1&t&&(i.Ub(0,"h5",0),i.Lc(1),i.Tb(),i.Ub(2,"div",1),i.Ub(3,"div",2),i.Ub(4,"p",3),i.Ub(5,"small"),i.Lc(6,"No. Acto Notarial:"),i.Tb(),i.Lc(7),i.Tb(),i.Tb(),i.Ub(8,"div",4),i.Ub(9,"mat-accordion",5),i.Ub(10,"mat-expansion-panel",6),i.Ub(11,"mat-expansion-panel-header"),i.Ub(12,"mat-panel-title"),i.Lc(13," \xbfQu\xe9 es? "),i.Tb(),i.Tb(),i.Pb(14,"div",7),i.Tb(),i.Ub(15,"mat-expansion-panel"),i.Ub(16,"mat-expansion-panel-header"),i.Ub(17,"mat-panel-title"),i.Lc(18," Requisitos "),i.Tb(),i.Tb(),i.Pb(19,"div",7),i.Tb(),i.Ub(20,"mat-expansion-panel"),i.Ub(21,"mat-expansion-panel-header"),i.Ub(22,"mat-panel-title"),i.Lc(23," Tarifa "),i.Tb(),i.Tb(),i.Pb(24,"div",7),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(25,"div",8),i.Ub(26,"button",9),i.Lc(27,"Cerrar"),i.Tb(),i.Tb()),2&t&&(i.Db(1),i.Mc(e.data.title),i.Db(6),i.Nc(" ",e.data.notarialActNumber," "),i.Db(7),i.mc("innerHTML",e.data.whatIsIt,i.zc),i.Db(5),i.mc("innerHTML",e.data.requirements,i.zc),i.Db(5),i.mc("innerHTML",e.data.rate,i.zc))},directives:[Wb,Kb,Wk,Hk,Jk,$k,Qb,$b],styles:[".exP-info-formality[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]{margin-bottom:1rem}.exP-info-formality[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.exP-info-formality[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%], .exP-info-formality[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]:first-of-type{border-radius:4px!important}.exP-info-formality[_ngcontent-%COMP%]   .mat-expansion-panel[_ngcontent-%COMP%]:not([class*=mat-elevation-z]){box-shadow:none;border:1px solid #bccbd6}.exP-info-formality[_ngcontent-%COMP%]   .mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]{height:52px;margin-bottom:10px}.exP-info-formality[_ngcontent-%COMP%]   .mat-expansion-panel-header.mat-expanded[_ngcontent-%COMP%]:focus{background-color:#fff}"]}),t})();class yB{}let wB=(()=>{class t{constructor(){this.list=[{title:"Autenticaci\xf3n de documentos",content:"Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR",icon:"description",textButton:"Comenzar",urlParam:"DocumentAuthentication",urlButton:"/corporate/pv/documents/upload-files",detail:{title:"Autenticaci\xf3n de documentos",notarialActNumber:"00000511",whatIsIt:"Quienes hayan suscrito un documento privado podr\xe1n acudir ante el Notario para que este autorice el reconocimiento que hagan de sus firmas y del contenido de aquel. En este caso se proceder\xe1 a extender una diligencia en el mismo documento o en hoja adicional, en que se expresen el nombre y descripci\xf3n del cargo del Notario ante quien comparece; el nombre e identificaciones de los comparecientes; la declaraci\xf3n de estos de que las firmas son suyas y el contenido del documento es cierto, y el lugar y fecha de la diligencia, que terminar\xe1 con las firmas de los declarantes y del Notario quien, adem\xe1s estampara el sello de la Notar\xeda.",requirements:"<ul> <li>Diligenciar los datos de las personas que van a firmar el o los documentos (No. de documento, Nombres, apellidos, departamento y ciudad de residencia, direcci\xf3n de residencia, correo electr\xf3nico)</li><li>Todos los usuarios que firmen el documento, deben validar su identidad a trav\xe9s de las preguntas de historial crediticio, tambi\xe9n conocidas como preguntas reto.</li><li>Capturar fotograf\xeda del rostro de la persona que vaya a firmar el documento.</li><li>Capturar video del rostro de la persona que vaya a firmar el documento, en el cual deber\xe1 indicar su nombre completo, n\xfamero de identificaci\xf3n y el documento que va autenticar.</li> </ul><b>Aspectos a tener en cuenta:</b><ul><li>Si la persona que inicia el proceso de autenticaci\xf3n de documentos desea firmar junto con otras personas, antes de iniciar el proceso debe conocer datos como: No. de documento, Nombres, apellidos, departamento y ciudad de residencia, direcci\xf3n de residencia, correo electr\xf3nico.</li><li>Las personas que participan en el proceso deben contar con una c\xe1mara web que les permita capturar una fotograf\xeda y un video en el momento de la realizaci\xf3n de la firma.</li></ul>",rate:'Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR. <a target="_blank" href="https://enotary.com.co/docs/00536_daf_tarifas_notariales.pdf">Ver resoluci\xf3n</a>'}},{title:"Matrimonio civil",content:"Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR",icon:"description",textButton:"Agendar",urlParam:"CivilMarriage",urlButton:"/corporate/scheduling/schedule/user-scheduling",detail:{title:"Matrimonio civil",notarialActNumber:"00000300",whatIsIt:"La uni\xf3n en matrimonio es un acto solemne que se puede realizar por notar\xeda. Para poder contraer matrimonio civil es necesario estar soltero o haber hecho el tr\xe1mite de divorcio y liquidaci\xf3n de la sociedad conyugal anterior.",requirements:"Dependiendo de varios casos particulares, los requisitos para contraer matrimonio pueden variar:<li>Documentos de identificaci\xf3n de los contrayentes.</li><li>Presentar la solicitud de matrimonio personalmente. En caso de que uno de los dos contrayentes no pueda asistir, se debe otorgar un Poder Especial a otra persona para que firme y elija la fecha para celebrar el matrimonio.</li></ul><b>Si tienen hijos en com\xfan, deben anexar:</b><ul><li>Registro Civil de los hijos mayores y menores para legitimarlos.</li></ul><b>Si estuvieron casados antes, deben anexar:</b><ul><li>Registro Civil del matrimonio anterior con su respectiva nota de divorcio.</li></ul><b>Si el matrimonio es con una persona extranjera, deben anexar:</b><ul><li>Certificado de solter\xeda del contrayente extranjero, debidamente traducido y apostillado.</li><li>Certificado de nacimiento debidamente traducido y apostillado.</li><li>En caso de que el contrayente extranjero no hable espa\xf1ol, se debe traer a un traductor oficial.</li><li>Si el contrayente extranjero estuvo casado debe adjuntar la sentencia de divorcio apostillada y traducida.</li></ul><b>Si tienen hijos de otra pareja, deben anexar:</b><ul><li>Inventario solemne de bienes , el cual se realiza a trav\xe9s del curador.</li><li>Copia aut\xe9ntica del Registro Civil de Nacimiento del menor(es).</li></ul><b>Si desean registrar un matrimonio cat\xf3lico, deben anexar:</b><ul><li>Partida eclesi\xe1stica.</li></ul>",rate:'Tarifa conforme al art\xedculo 11 de la resoluci\xf3n 00536 del 22/01/2021 de la SNR. <a target="_blank" href="https://enotary.com.co/docs/00536_daf_tarifas_notariales.pdf">Ver resoluci\xf3n</a>'}},{title:"Compraventa",content:"Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR",icon:"description",textButton:"Agendar",urlParam:"BuySell",urlButton:"/corporate/scheduling/schedule/user-scheduling",detail:{title:"Compraventa",notarialActNumber:"00000403",whatIsIt:"El contrato de COMPRAVENTA se realiza cuando una o varias personas deseen enajenar una propiedad que se encuentra a su nombre, es decir que quede a nombre de otra persona a cambio de una suma determinada de dinero. Para ello se debe hacer una escritura de COMPRAVENTA, firmar y registrarla en la oficina de instrumentos p\xfablicos.<br> Por ejemplo, usted quiere vender su apartamento por determinada cantidad de dinero, usted y la persona que est\xe1 interesada en comprar el inmueble deben asistir a una notar\xeda (puede ser cualquier notar\xeda en todo el pa\xeds, as\xed la propiedad no se encuentre ubicada en la misma ciudad), y firmar el contrato. Una vez concluida la venta, el comprador debe llevar la nueva escritura que est\xe1 a su nombre, a la oficina de Beneficencia y Registro para que se haga el respectivo reconocimiento del propietario sobre ese apartamento.",requirements:"<ul><li>Escritura mediante la cual el vendedor adquiri\xf3 el bien que est\xe1 vendiendo</li><li>Recibo predial del \xfaltimo a\xf1o</li><li>Paz y salvo de valorizaci\xf3n</li><li>Paz y salvo de administraci\xf3n si el inmueble est\xe1 sujeto al r\xe9gimen de propiedad horizontal</li><li>Si alguno de los otorgantes act\xfaa a trav\xe9s de apoderado se debe adjuntar  el poder especial o general</li><li>Para la firma asistir personalmente a la notar\xeda 19 Bogot\xe1.</li></ul>",rate:'Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR. <a target="_blank" href="https://enotary.com.co/docs/00536_daf_tarifas_notariales.pdf">Ver resoluci\xf3n</a>'}},{title:"Testamentos",content:"Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR",icon:"description",textButton:"Agendar",urlParam:"Wills",urlButton:"/corporate/scheduling/schedule/user-scheduling",detail:{title:"Testamentos",notarialActNumber:"00000253",whatIsIt:"El testamento es una figura en la que una persona puede asignar sus bienes para que sean repartidos a su disposici\xf3n, luego de fallecer. Existen el testamento abierto y el testamento cerrado. El primero es p\xfablico una vez firmada la escritura, en cambio el otro es completamente confidencial, y nadie conoce las asignaciones antes de que el causante haya fallecido.",requirements:"<b>Testamento abierto:</b><ul><li>Minuta que trae el testador, en la cual se determinan sus asignaciones testamentarias.</li><li>Si se trata de un testamento abierto, se necesitan 3 testigos capaces, que no sean familiares entre s\xed, ni del testador.</li><li>Fotocopia de la c\xe9dula del testador y de los testigos.</li><li>Certificado m\xe9dico de lucidez mental, a juicio del notario si lo considera necesario.</li></ul><b>Testamento cerrado:</b><ul><li>TEXTO de las disposiciones Testamentarias EN SOBRE CERRADO que trae el Testador y entrega al Notario.</li><li>Identificaci\xf3n completa de las 5 testigos, quienes firmar\xe1n la Escritura P\xfablica y el sobre cerrado que contiene el texto de las disposiciones testamentarias.</li><li>Firmar la correspondiente Escritura P\xfablica.</li><li>Fotocopia de la c\xe9dula de ciudadan\xeda del testador y los testigos</li><li>Certificado m\xe9dico de lucidez mental, cuando la persona es mayor de 70 a\xf1os</li></ul><b>ASPECTOS A TENER EN CUENTA:</b><ul><li>El testamento puede realizarlo \xfanicamente el testador, no puede actuar mediante apoderado.</li><li>El testamento es revocable y modificable.</li><li>Recuerde que existen herederos forzosos que deben recibir herencia, y no se pueden sacar del testamento a menos de que exista una justa causa.</li><li>Los efectos del testamento se cumplen s\xf3lo cuando el testador fallezca.</li></ul>",rate:'Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR. <a target="_blank" href="https://enotary.com.co/docs/00536_daf_tarifas_notariales.pdf">Ver resoluci\xf3n</a>'}},{title:"Autenticar para apostillar",content:"<b>Recuerda que si vas a autenticar para apostillar, debes comunicarte previamente\xa0con\xa0la\xa0Notar\xeda</b>",icon:"description",textButton:"Comenzar",urlParam:"",urlButton:"",detail:{title:"",notarialActNumber:"",whatIsIt:"",requirements:"",rate:""}}],this.listNotary=[{title:"Declaraci\xf3n Extraproceso",content:"Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR",icon:"description",textButton:"Comenzar",urlParam:"ExtraprocessDeclaration",urlButton:"/corporate/pv/documents/upload-files",detail:{title:"Declaraci\xf3n Extraproceso",notarialActNumber:"00000511",whatIsIt:"La declaraci\xf3n extrajuicio es una manifestaci\xf3n libre y espont\xe1nea con la que una persona puede ante la notar\xeda bajo la gravedad de juramento, dar un testimonio o de un hecho en particular.",requirements:"",rate:'Tarifa conforme a la resoluci\xf3n 00536 del 22/01/2021 de la SNR. <a target="_blank" href="https://enotary.com.co/docs/00536_daf_tarifas_notariales.pdf">Ver resoluci\xf3n</a>'}}],this.listByRole=[{role:Ig.LegalPerson,infoFormality:this.list},{role:Ig.Person,infoFormality:this.list},{role:Ig.AdministrativeOfficer,infoFormality:this.listNotary},{role:Ig.Officer,infoFormality:this.listNotary}]}listFormalities(t){return this.listByRole.filter(e=>e.role===t)[0].infoFormality}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function CB(t,e){if(1&t&&(i.Ub(0,"div",1),i.Ub(1,"div",2),i.Ub(2,"div",3),i.Ub(3,"div",4),i.Ub(4,"div",5),i.Pb(5,"img",6),i.Tb(),i.Ub(6,"p",7),i.Lc(7),i.Tb(),i.Ub(8,"p",8),i.Lc(9),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(5),i.nc("src",""===(null==t.notary?null:t.notary.notaryLogoUrl)?"./assets/images/df-img-notary.png":null==t.notary?null:t.notary.notaryLogoUrl,i.Bc),i.Db(2),i.Nc(" Notar\xeda ",(null==t.notary?null:t.notary.notaryNumber)>0?null==t.notary?null:t.notary.notaryNumber:null==t.notary?null:t.notary.enterpriseName," "),i.Db(2),i.Nc(" del C\xedrculo de ",null==t.notary?null:t.notary.city," ")}}let xB=(()=>{class t{constructor(t,e,n){this.cn=t,this.usersService=e,this.enterpriseService=n,this.user=new Tl,this.roles=Ig}ngOnInit(){this.countGet=0,this.user=JSON.parse(sessionStorage.getItem("userData")),null!=this.user.notaryId&&this.getNotary()}getNotary(){null===this.user?setTimeout(()=>{this.getNotary()},400):this.enterpriseService.getEnterpriseByIdNotary(this.user.notaryId.toString()).subscribe(t=>{this.cn.log("getNotary() response:",t),this.notary=t.operationBody[0],this.saveNotaryInLocalStorage(this.notary)},t=>{this.cn.error("getUser() error:",t)})}saveNotaryInLocalStorage(t){this.cn.log("saveInLocalStorageNotary(): ",t),sessionStorage.setItem("notaryData",JSON.stringify(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Gi),i.Ob(jg),i.Ob(US))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-notary"]],decls:1,vars:1,consts:[["class","bnn_home",4,"ngIf"],[1,"bnn_home"],[1,"sc_summary"],[1,"container","wt-430"],[1,"info_user_bnn","text-center"],[1,"imgprofile_bnn"],["alt","Profile picture",3,"src"],[1,"name_user_bnn"],[1,"id_user_bnn"]],template:function(t,e){1&t&&i.Jc(0,CB,10,3,"div",0),2&t&&i.mc("ngIf",e.user.role===e.roles.Person||e.user.role===e.roles.LegalPerson)},directives:[o.t],styles:[".bnn_home[_ngcontent-%COMP%]{background:rgba(38,82,118,.085);padding:2rem 0 6rem;margin:0 0 -5.6rem}.sc_summary[_ngcontent-%COMP%]{color:#22385e}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .info-notary-img[_ngcontent-%COMP%]{max-width:200px;min-height:40px;max-height:87px}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span.info-notary-result[_ngcontent-%COMP%]{font-weight:700}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span.info-notary-change[_ngcontent-%COMP%]{font-size:14px}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{width:70px;height:70px;margin:0 auto .8rem;border-radius:100%;position:relative;overflow:hidden;border:2px solid rgba(0,0,0,.1)}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .id_user_bnn[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .name_user_bnn[_ngcontent-%COMP%]{margin-bottom:0}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .name_user_bnn[_ngcontent-%COMP%]{font-weight:400;font-size:18px;text-transform:capitalize}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .id_user_bnn[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Tag[_ngcontent-%COMP%]{color:rgba(0,0,0,.5);font-weight:300;font-size:14px}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:0}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Name[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Tag[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]{margin-top:1rem}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]{border-right:1px solid #d1dbe2}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]:last-child{border-right:0}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .number_state[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .tag_state[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .number_state[_ngcontent-%COMP%]{font-weight:400;font-size:18px}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .tag_state[_ngcontent-%COMP%]{color:#88a0b5;font-weight:300;font-size:12px}.msg-entollment[_ngcontent-%COMP%]{padding:.6rem 1rem;border-radius:10px;font-size:14px}.msg-entollment.success-msg[_ngcontent-%COMP%]{background-color:#b6eee4;border:1px solid #3c9e8c}.msg-entollment.error-msg[_ngcontent-%COMP%]{background-color:#ffe5e5;border:1px solid #d96a6a}"]}),t})();function OB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",13),i.Ub(1,"button",14),i.cc("click",(function(){i.yc(t);const e=i.gc().$implicit;return i.gc().openDialogMoreInfo(null==e?null:e.detail)})),i.Lc(2,"M\xe1s informaci\xf3n"),i.Tb(),i.Tb()}}const SB=function(t){return{procedure:t}};function TB(t,e){if(1&t&&(i.Ub(0,"button",15),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("routerLink",t.urlButton),i.mc("queryParams",i.rc(3,SB,t.urlParam)),i.Db(1),i.Mc(t.textButton)}}function DB(t,e){if(1&t&&(i.Ub(0,"div",5),i.Ub(1,"div",6),i.Ub(2,"div",7),i.Ub(3,"mat-icon"),i.Lc(4),i.Tb(),i.Tb(),i.Ub(5,"div",8),i.Ub(6,"h5"),i.Lc(7),i.Tb(),i.Tb(),i.Ub(8,"div",9),i.Pb(9,"p",10),i.Jc(10,OB,3,0,"div",11),i.Tb(),i.Jc(11,TB,2,5,"button",12),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(4),i.Mc(null==t?null:t.icon),i.Db(3),i.Nc(" ",null==t?null:t.title," "),i.Db(2),i.mc("innerHTML",null==t?null:t.content,i.zc),i.Db(1),i.mc("ngIf",""!=(null==t||null==t.detail?null:t.detail.title)),i.Db(1),i.mc("ngIf",""!=t.urlButton)}}let kB=(()=>{class t{constructor(t,e){this.dialog=t,this.listFormalitiesService=e,this.user=new yB}ngOnInit(){this.user=JSON.parse(sessionStorage.getItem("userData")),this.list=this.listFormalitiesService.listFormalities(this.user.role)}openDialogMoreInfo(t){this.dialog.open(vB,{data:t,width:"830px"})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(wB))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-list-of-formalities"]],decls:9,vars:1,consts:[[1,"container"],[1,"box-white-with-bnn","mt-4"],[1,"title-with-line"],[1,"row","cnt-items-board"],["class","col-12 col-lg-4 item-board",4,"ngFor","ngForOf"],[1,"col-12","col-lg-4","item-board"],[1,"box-item-board"],[1,"box-item-board-icon"],[1,"box-item-board-title"],[1,"box-item-board-descr"],[3,"innerHTML"],["class","mb-2",4,"ngIf"],["mat-raised-button","","color","primary",3,"routerLink","queryParams",4,"ngIf"],[1,"mb-2"],["mat-button","","color","primary",3,"click"],["mat-raised-button","","color","primary",3,"routerLink","queryParams"]],template:function(t,e){1&t&&(i.Pb(0,"aswc-user-notary"),i.Ub(1,"div",0),i.Ub(2,"div",1),i.Ub(3,"h5",2),i.Lc(4,"Tr\xe1mites"),i.Tb(),i.Ub(5,"p"),i.Lc(6," Selecciona el tr\xe1mite que deseas realizar. "),i.Tb(),i.Ub(7,"div",3),i.Jc(8,DB,12,5,"div",4),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(8),i.mc("ngForOf",e.list))},directives:[xB,o.s,Kv,o.t,zm,ta],styles:[""]}),t})(),PB=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-mss-doc-signer"]],decls:15,vars:0,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"row","align-items-center"],[1,"col-12","col-md-6","border-right"],["src","./assets/images/mockup_web.png","alt","",1,"imgMessages"],[1,"col-12","col-md-6"],[1,"container","wt-360"],[1,"mt-4"],["mat-raised-button","","color","primary","href","#/corporate/pv/documents/list-of-formalities"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"div",6),i.Ub(7,"div"),i.Ub(8,"h4"),i.Lc(9,"Documento enviado con \xe9xito a las personas asignadas."),i.Tb(),i.Ub(10,"p"),i.Lc(11,"Los destinatarios ser\xe1n notificados cuando sea su turno."),i.Tb(),i.Ub(12,"div",7),i.Ub(13,"a",8),i.Lc(14," Autenticar m\xe1s documentos "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[qm],styles:[".imgMessages[_ngcontent-%COMP%]{display:block;max-width:280px;width:100%;margin:0 auto}"]}),t})(),EB=(()=>{class t{constructor(t){this.router=t,this.redirectUrl=""}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-mss-pending-payment"]],decls:17,vars:0,consts:[[1,"p_container"],[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/check-document.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],[1,"mt-4","text-center"],["mat-raised-button","","color","primary","routerLink","/login"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"h2"),i.Lc(7,"Esperando confirmaci\xf3n de pago"),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"div"),i.Ub(10,"p"),i.Lc(11,"El documento est\xe1 listo, pero debemos esperar confirmaci\xf3n del pago por parte del banco. Una vez conozcamos el estado de la transacci\xf3n, ser\xe1s notificado a trav\xe9s del correo electr\xf3nico."),i.Tb(),i.Ub(12,"small"),i.Lc(13,"Gracias por autenticar tus documentos con nosotros."),i.Tb(),i.Ub(14,"div",7),i.Ub(15,"button",8),i.Lc(16," Autenticar m\xe1s documentos "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[zm,ta],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})(),AB=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-mss-reject-process-massive"]],decls:15,vars:0,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"row","align-items-center"],[1,"col-12","col-md-6","border-right"],["src","./assets/images/mockup_web.png","alt","",1,"imgMessages"],[1,"col-12","col-md-6"],[1,"container","wt-360"],[1,"mt-4"],["mat-raised-button","","color","primary","href","#/corporate/pv/documents/my-transactions"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"div",6),i.Ub(7,"div"),i.Ub(8,"h4"),i.Lc(9,"Estamos procesando tu solicitud."),i.Tb(),i.Ub(10,"p"),i.Lc(11,"En unos minutos se rechazaran tus procesos."),i.Tb(),i.Ub(12,"div",7),i.Ub(13,"a",8),i.Lc(14," Autenticar m\xe1s documentos "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[qm],styles:[".imgMessages[_ngcontent-%COMP%]{display:block;max-width:280px;width:100%;margin:0 auto}"]}),t})(),IB=(()=>{class t{constructor(t,e){this.router=t,this.globalVarService=e}ngOnInit(){}finishButton(){sessionStorage.removeItem("userDataExternal"),sessionStorage.removeItem("x-token-external"),window.location.href=r.urlLanding}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(cg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-mss-signed-doc-ext"]],decls:20,vars:0,consts:[[1,"p_container"],[1,"container","wt-430","pt-5","pb-5"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/check-document.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],[1,"mt-4","text-center"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"h2"),i.Lc(7,"Proceso completado"),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"div"),i.Ub(10,"p"),i.Lc(11,"En maximo 5 minutos el tr\xe1mite pasar\xe1 a "),i.Ub(12,"b"),i.Lc(13,"control de legalidad"),i.Tb(),i.Lc(14," del notario. Una vez el notario autorice, ser\xe1s notificado a trav\xe9s del correo electr\xf3nico."),i.Tb(),i.Ub(15,"small"),i.Lc(16,"Gracias por autenticar tus documentos con nosotros."),i.Tb(),i.Ub(17,"div",7),i.Ub(18,"button",8),i.cc("click",(function(){return e.finishButton()})),i.Lc(19," Finalizar "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[zm],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})(),MB=(()=>{class t{constructor(){this.urlLink=""}ngOnInit(){}loadVariables(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-mss-signed-doc"]],decls:20,vars:0,consts:[[1,"p_container"],[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/check-document.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],[1,"mt-4","text-center"],["mat-raised-button","","color","primary","routerLink","/corporate/pv/documents/list-of-formalities"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"h2"),i.Lc(7,"Proceso completado con \xe9xito"),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"div"),i.Ub(10,"p"),i.Lc(11,"El documento est\xe1 listo. El proceso pasar\xe1 a "),i.Ub(12,"b"),i.Lc(13,"control de legalidad"),i.Tb(),i.Lc(14," del notario. Una vez el notario autorice, ser\xe1s notificado a trav\xe9s del correo electr\xf3nico."),i.Tb(),i.Ub(15,"small"),i.Lc(16,"Gracias por autenticar tus documentos con nosotros."),i.Tb(),i.Ub(17,"div",7),i.Ub(18,"button",8),i.Lc(19," Autenticar m\xe1s documentos "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[zm,ta],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})(),UB=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-mss-signed-docs-massive"]],decls:15,vars:0,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"row","align-items-center"],[1,"col-12","col-md-6","border-right"],["src","./assets/images/mockup_web.png","alt","",1,"imgMessages"],[1,"col-12","col-md-6"],[1,"container","wt-360"],[1,"mt-4"],["mat-raised-button","","color","primary","href","#/corporate/pv/documents/my-transactions"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"div",6),i.Ub(7,"div"),i.Ub(8,"h4"),i.Lc(9,"Estamos procesando tu solicitud."),i.Tb(),i.Ub(10,"p"),i.Lc(11,"En unos minutos se firmaran tus procesos."),i.Tb(),i.Ub(12,"div",7),i.Ub(13,"a",8),i.Lc(14," Firmar m\xe1s documentos "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[qm],styles:[".imgMessages[_ngcontent-%COMP%]{display:block;max-width:280px;width:100%;margin:0 auto}"]}),t})();class LB{constructor(){this.identificationNumber="",this.radId="",this.firstName="",this.lastName="",this.mailAddress=""}}let RB=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}close(t){this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(zb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-personal-data-policy"]],inputs:{modalContent:"modalContent",modalTitle:"modalTitle"},decls:7,vars:0,consts:[["mat-dialog-title",""],[1,"mat-typography"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1,"POL\xcdTICA DE TRATAMIENTO DE DATOS PERSONALES"),i.Tb(),i.Ub(2,"mat-dialog-content",1),i.Pb(3,"aswc-text-personal-data-policy"),i.Tb(),i.Ub(4,"mat-dialog-actions",2),i.Ub(5,"button",3),i.Lc(6,"Cerrar"),i.Tb(),i.Tb())},directives:[Wb,Kb,hR,Qb,zm,$b],styles:[""]}),t})();function NB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",5),i.Ub(1,"div",6),i.Ub(2,"div",7),i.Ub(3,"div",8),i.Pb(4,"img",22),i.Tb(),i.Ub(5,"div",10),i.Ub(6,"span",11),i.Lc(7,"Solo yo"),i.Tb(),i.Ub(8,"span",12),i.Lc(9,"Si s\xf3lo yo firmo el documento."),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"div",13),i.Ub(11,"mat-radio-button",23),i.cc("click",(function(){return i.yc(t),i.gc().changeActive("1","","1")})),i.Tb(),i.Tb(),i.Tb(),i.Tb()}}function FB(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",5),i.Ub(1,"div",6),i.Ub(2,"div",7),i.Ub(3,"div",8),i.Pb(4,"img",24),i.Tb(),i.Ub(5,"div",10),i.Ub(6,"span",11),i.Lc(7,"Otros y yo"),i.Tb(),i.Ub(8,"span",12),i.Lc(9,"Si firmo yo y adicionalmente otras personas firman el documento."),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"div",13),i.Ub(11,"mat-radio-button",25),i.cc("click",(function(){return i.yc(t),i.gc().changeActive("2","","1")})),i.Tb(),i.Tb(),i.Tb(),i.Tb()}}let VB=(()=>{class t{constructor(t,e,n,i,r,o,s){this.router=t,this._location=e,this.globalVarService=n,this.saveProcessSignService=i,this.cn=r,this._pageLoaderService=o,this.dialog=s,this.selection_=!1,this.requestSignFiles=new LB,this.signersList=new Array,this.conditionsAccepted=!1,this.showSelectSignersOnlyMe=!0,this.showSelectSignersOthersAndMe=!0,this.showSelectSignersOthers=!0,this.user=JSON.parse(sessionStorage.getItem("userData")),this.cn.log("id"+this.globalVarService.sesId)}ngOnInit(){this.user.role!==Ig.AdministrativeOfficer&&this.user.role!==Ig.Officer||(this.showSelectSignersOnlyMe=!1,this.showSelectSignersOthersAndMe=!1)}selectionType(t){this.cn.log("selectionType()"),this.selection_=!0,this.globalVarService.select_signers_type=t.target.value}changeActive(t,e,n){this.cn.log("changeActive()"),"1"===n&&(this.globalVarService.select_signers_type=t,this.selection_=!0)}nextStep(){switch(this.cn.log("nextStep()"),this.globalVarService.select_signers_type){case"1":this.addDefaultSignatory(),this.saveProcessSign();break;default:this.router.navigate([this.globalVarService.path_route+"documents/assign-signers"])}}backStep(){this.cn.log("backStep()"),this._location.back()}saveProcessSign(){this.cn.log("saveProcessSign()"),this.requestSaveProcessSign=new MV,this.requestSaveProcessSign.signatories=this.signersList,this.requestSaveProcessSign.idOriginProcess=this.user.identificationNumber,this.requestSaveProcessSign.emailOriginProcess=this.user.email,this.requestSaveProcessSign.processId=this.globalVarService.processId,this.requestSaveProcessSign.signatureCategory="Solo yo",this.requestSaveProcessSign.affair="Autenticaci\xf3n de documento privado",this.requestSaveProcessSign.message="",this.requestSaveProcessSign.typeProcedure=this.globalVarService.typeProcedure,this._pageLoaderService.show(),this.saveProcessSignService.saveProcess(this.requestSaveProcessSign).subscribe(t=>{this._pageLoaderService.hide(),this.cn.log(t),this.globalVarService.type_signature=pU.SIMPLE,this.router.navigate([this.globalVarService.path_route+"authentication/auth-methods"]),this.logger(`Se creo el tr\xe1mite ${this.globalVarService.processId} exitosamente.`)},t=>{this.cn.log(t),this._pageLoaderService.hide()})}addDefaultSignatory(){this.cn.log("addDefaultSignatory()");const t=new UV;t.identificationNumber=this.user.identificationNumber,t.email=this.user.email,t.firstName=this.user.firstName,t.lastName=this.user.lastName,t.authMethods=["OTP"],this.signersList.push(t)}showPersonalDataPolicy(){this.dialog.open(RB,{width:"1200px"})}logger(t){dg.info(t,"Crear tr\xe1mite")}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(o.n),i.Ob(cg),i.Ob(ag),i.Ob(Gi),i.Ob(pg),i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-select-signers"]],decls:36,vars:3,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"title-webPage"],[1,"cnt-opSgners"],["class","itm-opSigner",4,"ngIf"],[1,"itm-opSigner"],[1,"row","align-items-center"],[1,"col-9","info-opSigner"],[1,"ico-opSigner"],["src","assets/images/Iconos/selected-Otros.svg","onerror","this.onerror=null; this.src='./assets/images/Iconos/selected-Otros.png'"],[1,"tag-opSigner"],[1,"tag-opSignerTitle"],[1,"tag-opSignerDesc"],[1,"col-3","text-right"],["value","otros",1,"rdBtn-opSigners",3,"click"],[1,"mt-2"],[1,"accept-PersonalInfo"],[3,"change"],[1,"link",3,"click"],[1,"button-row","text-center","mt-5"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled","click"],["src","assets/images/Iconos/selected-soloYo.svg","onerror","this.onerror=null; this.src='./assets/images/Iconos/selected-soloYo.png'"],["value","yo",1,"rdBtn-opSigners",3,"click"],["src","assets/images/Iconos/selected-OtrosYo.svg","onerror","this.onerror=null; this.src='./assets/images/Iconos/selected-OtrosYo.png'"],["value","otrosyYo",1,"rdBtn-opSigners",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"\xbfQui\xe9nes har\xe1n el reconocimiento del documento privado?"),i.Tb(),i.Ub(5,"p"),i.Lc(6,"Selecciona una de las siguientes opciones para continuar:"),i.Tb(),i.Tb(),i.Ub(7,"div",3),i.Ub(8,"mat-radio-group"),i.Jc(9,NB,12,0,"div",4),i.Jc(10,FB,12,0,"div",4),i.Ub(11,"div",5),i.Ub(12,"div",6),i.Ub(13,"div",7),i.Ub(14,"div",8),i.Pb(15,"img",9),i.Tb(),i.Ub(16,"div",10),i.Ub(17,"span",11),i.Lc(18,"Solo otros"),i.Tb(),i.Ub(19,"span",12),i.Lc(20,"No se requiere mi firma, pero necesito que terceros firmen el documento."),i.Tb(),i.Tb(),i.Tb(),i.Ub(21,"div",13),i.Ub(22,"mat-radio-button",14),i.cc("click",(function(){return e.changeActive("3","","1")})),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(23,"div",15),i.Ub(24,"div",16),i.Ub(25,"mat-checkbox",17),i.cc("change",(function(t){return e.conditionsAccepted=t.checked})),i.Tb(),i.Ub(26,"span"),i.Lc(27," He le\xeddo y acepto la "),i.Ub(28,"a",18),i.cc("click",(function(){return e.showPersonalDataPolicy()})),i.Lc(29,"pol\xedtica de tratamiento de datos personales"),i.Tb(),i.Lc(30,". "),i.Tb(),i.Tb(),i.Tb(),i.Ub(31,"div",19),i.Ub(32,"button",20),i.cc("click",(function(){return e.backStep()})),i.Lc(33,"Volver"),i.Tb(),i.Ub(34,"button",21),i.cc("click",(function(){return e.nextStep()})),i.Lc(35,"Siguiente"),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(9),i.mc("ngIf",e.showSelectSignersOnlyMe),i.Db(1),i.mc("ngIf",e.showSelectSignersOnlyMe),i.Db(24),i.mc("disabled",!e.selection_||!e.conditionsAccepted))},directives:[sE,o.t,dE,q_,zm],styles:['.title-webPage[_ngcontent-%COMP%]{margin-bottom:2rem}.title-webPage[_ngcontent-%COMP%]:after{content:"";display:block;width:68px;margin-top:1rem;border-bottom:3px solid #4a5867}.title-webPage[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.cnt-opSgners[_ngcontent-%COMP%]   .itm-opSigner[_ngcontent-%COMP%]{border:2px solid #bde6ee;padding:10px 16px;border-radius:10px;margin-bottom:1.4rem}.cnt-opSgners[_ngcontent-%COMP%]   .itm-opSigner[_ngcontent-%COMP%]:last-child{margin-bottom:0}.cnt-opSgners[_ngcontent-%COMP%]   .itm-opSigner[_ngcontent-%COMP%]   .info-opSigner[_ngcontent-%COMP%]{display:flex;align-items:center}.cnt-opSgners[_ngcontent-%COMP%]   .itm-opSigner[_ngcontent-%COMP%]   .info-opSigner[_ngcontent-%COMP%]   .ico-opSigner[_ngcontent-%COMP%]{background-color:#fff;border-radius:50%;margin-right:1.2rem;box-shadow:1px 1px 6px 0 rgba(0,0,0,.15)}.cnt-opSgners[_ngcontent-%COMP%]   .itm-opSigner[_ngcontent-%COMP%]   .info-opSigner[_ngcontent-%COMP%]   .ico-opSigner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:80px}.cnt-opSgners[_ngcontent-%COMP%]   .itm-opSigner[_ngcontent-%COMP%]   .info-opSigner[_ngcontent-%COMP%]   .tag-opSigner[_ngcontent-%COMP%]   .tag-opSignerDesc[_ngcontent-%COMP%], .cnt-opSgners[_ngcontent-%COMP%]   .itm-opSigner[_ngcontent-%COMP%]   .info-opSigner[_ngcontent-%COMP%]   .tag-opSigner[_ngcontent-%COMP%]   .tag-opSignerTitle[_ngcontent-%COMP%]{display:block}.cnt-opSgners[_ngcontent-%COMP%]   .itm-opSigner[_ngcontent-%COMP%]   .info-opSigner[_ngcontent-%COMP%]   .tag-opSigner[_ngcontent-%COMP%]   .tag-opSignerTitle[_ngcontent-%COMP%]{font-weight:700;color:#4fbfd3;font-size:1.2rem}.div-disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5;background:#ccc}.accept-PersonalInfo[_ngcontent-%COMP%]{width:100%;max-width:538px;display:flex;margin:1rem auto;align-items:center;justify-content:center}.accept-PersonalInfo[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:.6rem}.link[_ngcontent-%COMP%]{color:#4fbfd3!important;cursor:pointer}.link[_ngcontent-%COMP%]:hover{text-decoration:underline!important}']}),t})();var jB=n("o9EK");const BB={firstName:[{type:"required",message:"Ingresa tu primer y segundo nombre"}],lastName:[{type:"required",message:"Ingresa tu primer y segundo apellido"}],email:[{type:"required",message:"El email es requerido"},{type:"email",message:"Debe ser un correo electr\xf3nico v\xe1lido"}],typeDocument:[{type:"required",message:"El tipo de documento es requerido"}],identificationNumber:[{type:"required",message:"El n\xfamero de identificaci\xf3n es requerido"},{type:"pattern",message:"El n\xfamero de identificaci\xf3n debe ser de 6 a 12 d\xedgitos."}],phone:[{type:"required",message:"El n\xfamero de celular es requerido"},{type:"pattern",message:"El n\xfamero de celular debe ser de 10 d\xedgitos."}],address:[{type:"required",message:"La direcci\xf3n es requerida"}],password:[{type:"required",message:"La contrase\xf1a es requerida"},{type:"pattern",message:"La contrase\xf1a debe contener un n\xfamero, una letra may\xfascula y una min\xfascula, y ser mayor a 8 d\xedgitos"}],confirmPassword:[{type:"required",message:"La confirmaci\xf3n de contrase\xf1a es requerida"},{type:"notMatch",message:"La confirmaci\xf3n de contrase\xf1a no coincide"}],currentPassword:[{type:"notMatch",message:"La contrase\xf1a actual es incorrecta"}],companyName:[{type:"required",message:"Nombre de empresa requerido"}],profession:[{type:"required",message:"Profesi\xf3n u ocupaci\xf3n requerida"}],department:[{type:"required",message:"Departamento requerido"},{type:"invalid",message:"Selecciona un departamento de la lista"}],city:[{type:"required",message:"Ciudad requerida"},{type:"invalid",message:"Selecciona una ciudad de la lista"}],notary:[{type:"required",message:"Notar\xeda requerida"},{type:"invalid",message:"Selecciona una notar\xeda de la lista"}],nit:[{type:"required",message:"NIT de empresa requerido"},{type:"pattern",message:"El NIT debe tener de 6 a 15 d\xedgitos solo n\xfameros"}],position:[{type:"required",message:"Cargo requerido"}],commercialSection:[{type:"required",message:"Sector comercial requerido"}],sexo:[{type:"required",message:"El sexo es requerido"}],maritalStatus:[{type:"required",message:"El estado civil es requerido"}],dateBirth:[{type:"required",message:"La Fecha de Nacimiento es requerida"}]};function zB(t,e){if(1&t&&(i.Ub(0,"mat-option",9),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.enterpriseName," ")}}function qB(t,e){if(1&t&&(i.Ub(0,"mat-error",11),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function HB(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,qB,2,1,"mat-error",10),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.notaryForm.get("notary").hasError(t.type)&&(n.notaryForm.get("notary").dirty||n.notaryForm.get("notary").touched))}}let GB=(()=>{class t{constructor(t,e,n,i,r){this.dialogRef=t,this.formBuilder=e,this.kcSvc=n,this.cn=i,this.notaryService=r,this.notaryForm=this.formBuilder.group({notary:[""]}),this.validation_messages=BB,this.notaries=[]}ngOnInit(){this.getUser(),this.notaryService.getNotariesPrivate().subscribe(t=>{this.notaries=t.operationBody}),this.filteredNotaries=this.showFilteredNotaries(this.notaryForm),this.validateNotary(this.notaryForm)}getUser(){this.kcSvc.accountUserProfile().subscribe(t=>{this.currentUser=t,this.notaryForm.controls.notary.setValue({enterpriseName:t.attributes.notaryName[0],id:t.attributes.notaryId[0]})},t=>{this.cn.log("getUser() error: ",t)})}filterNotaries(t){const e=t.toLowerCase();return this.notaries.filter(t=>0===t.enterpriseName.toLowerCase().indexOf(e))}showFilteredNotaries(t){return t.controls.notary.valueChanges.pipe(Object(KU.startWith)(""),Object(KU.map)(t=>"string"==typeof t?t:t.name),Object(KU.map)(t=>t?this.filterNotaries(t):this.notaries.slice()))}displayNotary(t){return t?t.enterpriseName:void 0}validateNotary(t){t.controls.notary.valueChanges.subscribe(e=>{t.controls.notary.value.id||t.controls.notary.setErrors({invalid:!0})})}clickChangeNotary(){this.currentUser.attributes.notaryId[0]=this.notaryForm.controls.notary.value.id,this.currentUser.attributes.notaryName[0]=this.notaryForm.controls.notary.value.enterpriseName,this.dialogRef.close(this.currentUser)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(fl),i.Ob(cr),i.Ob(Gi),i.Ob(Og))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-edit-preferred-notary"]],decls:18,vars:8,consts:[[3,"formGroup"],["placeholder","Notaria de preferencia","matInput","","formControlName","notary","required","",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["autoNotaries","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["align","center"],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"disabled","click"],["mat-raised-button","","mat-dialog-close",""],[3,"value"],["class","error-message",4,"ngIf"],[1,"error-message"]],template:function(t,e){if(1&t&&(i.Ub(0,"mat-dialog-content"),i.Ub(1,"h4"),i.Lc(2,"Notar\xeda de preferencia"),i.Tb(),i.Ub(3,"p"),i.Lc(4,"Selecciona a continuaci\xf3n una notar\xeda de tu preferencia para la realizaci\xf3n de los tr\xe1mites notariales."),i.Tb(),i.Ub(5,"form",0),i.Ub(6,"mat-form-field"),i.Pb(7,"input",1),i.Ub(8,"mat-autocomplete",2,3),i.Jc(10,zB,2,2,"mat-option",4),i.hc(11,"async"),i.Tb(),i.Jc(12,HB,2,1,"mat-error",5),i.Tb(),i.Tb(),i.Tb(),i.Ub(13,"mat-dialog-actions",6),i.Ub(14,"button",7),i.cc("click",(function(){return e.clickChangeNotary()})),i.Lc(15,"Guardar"),i.Tb(),i.Ub(16,"button",8),i.Lc(17,"Cancelar"),i.Tb(),i.Tb()),2&t){const t=i.uc(9);i.Db(5),i.mc("formGroup",e.notaryForm),i.Db(2),i.mc("matAutocomplete",t),i.Db(1),i.mc("displayWith",e.displayNotary),i.Db(2),i.mc("ngForOf",i.ic(11,6,e.filteredNotaries)),i.Db(2),i.mc("ngForOf",e.validation_messages.notary),i.Db(2),i.mc("disabled",e.notaryForm.invalid)}},directives:[Kb,zc,Fa,Yc,Uv,uy,Aa,kT,Na,tl,il,xT,o.s,Qb,zm,$b,Oh,bv,o.t],pipes:[o.b],styles:[""]}),t})();class JB{constructor(){this.file="",this.name="",this.type="",this.selected=!1}}let YB=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l){this.router=t,this.globalVarService=e,this.cn=n,this._pageLoaderService=i,this.route=r,this.balanceService=o,this.feederService=s,this.dialog=a,this.keycloakAdminService=c,this.usersService=l,this.myFiles=[],this.fullName="",this.identificationNumber="",this.prefferenceNotary="",this.UUID_var=jB.UUID.UUID().split("-")[0],this.user=JSON.parse(sessionStorage.getItem("userData")),sessionStorage.setItem("datauploadfile",this.UUID_var)}ngOnInit(){this.getPathModule(),this.loadVariables(),this.getParamUrl()}loadVariables(){this.cn.log("loadVariables()"),this.user=JSON.parse(sessionStorage.getItem("userData")),null===this.user?setTimeout(()=>{this.loadVariables()},400):(loadFileUpload(r.apiEndpoint),this.fullName=this.user.firstName+" "+this.user.lastName,this.identificationNumber=this.user.identificationNumber,this.prefferenceNotary=null===this.user.notaryName?"":this.user.notaryName)}getPathModule(){this.cn.log("getPathModule()"),this.globalVarService.path_route=this.router.url.includes("common-user")?"/common-user/pv/":"/corporate/pv/"}getParamUrl(){this.route.queryParamMap.subscribe(t=>{this.globalVarService.typeProcedure=t.get("procedure"),null!==t.get("procedure")&&void 0!==t.get("procedure")||this.router.navigate([this.globalVarService.path_route+"documents/list-of-formalities"])})}getFileDetails(t){this.cn.log("getFileDetails()"),this.myFiles_=new Array;for(let e=0;e<t.target.files.length;e++){this.myFiles.push(t.target.files[e]);const n=new JB;n.name=t.target.files[e].name,n.type=t.target.files[e].type;const i=new FileReader;i.onload=t=>{this.base64String=btoa(i.result.toString()),n.file=this.base64String,this.myFiles_.push(n)},i.readAsBinaryString(t.target.files[e])}this.globalVarService.pdf_array=this.myFiles_,this.cn.log(this.myFiles_)}_handleReaderLoaded(t){this.cn.log("_handleReaderLoaded()"),this.base64String=btoa(t.target.result)}redirectReadDocs(){this.cn.log("redirectReadDocs()"),this.globalVarService.processId=this.UUID_var,this.cn.log(this.pathModule),this.router.navigate([this.globalVarService.path_route+"documents/select-signers"])}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}dialogPreferredNotary(){this.dialog.open(GB,{width:"580px"}).afterClosed().subscribe(t=>{console.log(t),void 0!==t&&""!==t&&(this._pageLoaderService.show(),this.keycloakAdminService.getAuthTokenObservable().subscribe(e=>{this.keycloakAdminService.updateUser(t,e.access_token).subscribe(e=>{this.usersService.getUsers("email",t.email).subscribe(e=>{const n=e.operationBody[0];n.notaryId=t.attributes.notaryId[0],n.notaryName=t.attributes.notaryName[0],this.usersService.udpateUser(n).subscribe(t=>{this._pageLoaderService.hide(),this.user.notaryId=n.notaryId,this.user.notaryName=n.notaryName,this.prefferenceNotary=null===this.user.notaryName?"":this.user.notaryName,this.saveInLocalStorage(),this.showGeneralDialog("El cambio de Notar\xeda fue exitoso.")},t=>{this.cn.error("updateUser() error:",t),this.showGeneralDialog("Ocurrio un error al cambiar de Notar\xeda de preferencia, por favor vuelva intentarlo."),this._pageLoaderService.hide()})})},t=>{this.cn.log("ERROR UPDATING USER:::",t),this.showGeneralDialog("Ocurrio un error al cambiar de Notar\xeda de preferencia, por favor vuelva intentarlo."),this._pageLoaderService.hide()})}))})}saveInLocalStorage(){this.cn.log("saveInLocalStorage()"),sessionStorage.setItem("userData",JSON.stringify(this.user))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(cg),i.Ob(Gi),i.Ob(pg),i.Ob(Fo),i.Ob(bu),i.Ob(gu),i.Ob(Jb),i.Ob(fu),i.Ob(jg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-upload-file"]],decls:26,vars:0,consts:[["aria-live","polite","aria-atomic","true",2,"position","relative"],[2,"position","absolute","top","0","right","0"],["id","alert","role","alert","aria-live","assertive","aria-atomic","true","data-delay","4000",1,"toast","showAlert"],[1,"toast-header"],[1,"mr-auto"],["type","button","data-dismiss","toast","aria-label","Close",1,"ml-2","mb-1","close"],["aria-hidden","true"],[1,"toast-body"],["id","messageBodyAlert"],[1,"sc_upload_file"],[1,"container"],[1,"cn_fileUpload"],["type","file","name","files[]"],[1,"pl-3","pr-3","pb-3","text-center",2,"font-size","14px"],[2,"color","#cc0e00"],[1,"pl-3","pr-3","pb-3","text-center"],["id","btn_enviardocs","disabled","disabled","mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Ub(4,"strong",4),i.Lc(5,"Notificaci\xf3n"),i.Tb(),i.Ub(6,"button",5),i.Ub(7,"span",6),i.Lc(8,"\xd7"),i.Tb(),i.Tb(),i.Tb(),i.Ub(9,"div",7),i.Ub(10,"span",8),i.Lc(11,"Mensaje de fileupload"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(12,"aswc-user-notary"),i.Ub(13,"div",9),i.Ub(14,"div",10),i.Ub(15,"div",11),i.Pb(16,"input",12),i.Ub(17,"div",13),i.Ub(18,"b"),i.Ub(19,"span",14),i.Lc(20,"Importante:"),i.Tb(),i.Lc(21," Cargar 1 \xfanico documento por proceso, en caso contrario ser\xe1 rechazado. "),i.Tb(),i.Pb(22,"br"),i.Tb(),i.Ub(23,"div",15),i.Ub(24,"button",16),i.cc("click",(function(){return e.redirectReadDocs()})),i.Lc(25," COMENZAR "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[xB,zm],styles:['.bnn_home[_ngcontent-%COMP%]{background:rgba(38,82,118,.085);padding:2rem 0 6rem;margin:0 0 -5.6rem}.sc_summary[_ngcontent-%COMP%]{color:#22385e}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .info-notary-img[_ngcontent-%COMP%]{max-width:200px;min-height:40px;max-height:87px}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span.info-notary-result[_ngcontent-%COMP%]{font-weight:700}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span.info-notary-change[_ngcontent-%COMP%]{font-size:14px}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{width:54px;height:54px;margin:0 auto .8rem;border-radius:100%;position:relative;overflow:hidden;border:2px solid rgba(0,0,0,.1)}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .id_user_bnn[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .name_user_bnn[_ngcontent-%COMP%]{margin-bottom:0}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .name_user_bnn[_ngcontent-%COMP%]{font-weight:700;font-size:18px;text-transform:capitalize}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .id_user_bnn[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Tag[_ngcontent-%COMP%]{color:rgba(0,0,0,.8);font-size:14px}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .id_user_bnn[_ngcontent-%COMP%]:after{content:"";display:block;width:40px;height:2px;margin:1rem auto;background-color:#4fbfd3}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:0}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Name[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Tag[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]{margin-top:1rem}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]{border-right:1px solid #d1dbe2}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]:last-child{border-right:0}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .number_state[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .tag_state[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .number_state[_ngcontent-%COMP%]{font-weight:400;font-size:18px}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .tag_state[_ngcontent-%COMP%]{color:#88a0b5;font-weight:300;font-size:12px}.cn_fileUpload[_ngcontent-%COMP%]{position:relative;background:#fff;margin-top:1.4rem;border-radius:6px;box-shadow:2px 5px 10px 0 rgba(0,0,0,.2)}.cn_fileUpload[_ngcontent-%COMP%]   .int_fieUpload[_ngcontent-%COMP%]{position:absolute;border:1px dashed #4fbfd3;padding:1rem;left:1rem;right:1rem;top:1rem;bottom:1rem}.uploadfile-recharge[_ngcontent-%COMP%]{text-align:center;padding:2rem 0 0}.showAlert[_ngcontent-%COMP%]{transition:opacity .25s ease-in-out;-moz-transition:opacity .25s ease-in-out;-webkit-transition:opacity .25s ease-in-out}']}),t})(),$B=(()=>{class t{constructor(){this.fileDropped=new i.o}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.fileOver=!0}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.fileOver=!1}ondrop(t){t.preventDefault(),t.stopPropagation(),this.fileOver=!1;const e=t.dataTransfer.files;e.length>0&&this.fileDropped.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Jb({type:t,selectors:[["","appDnd",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.cc("dragover",(function(t){return e.onDragOver(t)}))("dragleave",(function(t){return e.onDragLeave(t)}))("drop",(function(t){return e.ondrop(t)})),2&t&&i.Gb("fileover",e.fileOver)},outputs:{fileDropped:"fileDropped"}}),t})();function WB(t,e){1&t&&(i.Ub(0,"div",3),i.Lc(1,"Subido"),i.Tb())}let KB=(()=>{class t{constructor(){this.progress=0}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-uploadfile-progress"]],inputs:{progress:"progress"},decls:3,vars:3,consts:[[1,"progress-cont"],[1,"progress"],["class","complete-message",4,"ngIf"],[1,"complete-message"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Pb(1,"div",1),i.Jc(2,WB,2,0,"div",2),i.Tb()),2&t&&(i.Db(1),i.Gc("width",e.progress+"%"),i.Db(1),i.mc("ngIf",100===e.progress))},directives:[o.t],styles:[".progress-cont[_ngcontent-%COMP%]{height:7px;width:100%;border-radius:4px;background-color:#d0d0d0;position:relative}.progress-cont[_ngcontent-%COMP%]   .progress[_ngcontent-%COMP%]{width:0;height:100%;position:absolute;z-index:1;top:0;left:0;border-radius:4px;background-color:#4fbfd3;transition:all .5s}.progress-cont[_ngcontent-%COMP%]   .complete-message[_ngcontent-%COMP%]{padding-top:8px;color:#4fbfd3;font-size:12px;text-align:right}"]}),t})();const QB=["fileDropRef"];function XB(t,e){1&t&&(i.Ub(0,"mat-icon"),i.Lc(1,"image"),i.Tb())}function ZB(t,e){1&t&&(i.Ub(0,"div",15),i.fc(),i.Ub(1,"svg",16),i.Pb(2,"polygon",17),i.Ub(3,"g"),i.Pb(4,"path",18),i.Pb(5,"path",19),i.Pb(6,"path",20),i.Pb(7,"path",21),i.Pb(8,"path",22),i.Tb(),i.Pb(9,"polygon",23),i.Tb(),i.Tb())}function tz(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",7),i.Jc(1,XB,2,0,"mat-icon",8),i.Jc(2,ZB,10,0,"div",9),i.Ub(3,"div",10),i.Ub(4,"h4",11),i.Lc(5),i.Tb(),i.Ub(6,"p",12),i.Lc(7),i.Tb(),i.Pb(8,"aswc-uploadfile-progress",13),i.Tb(),i.Ub(9,"img",14),i.cc("click",(function(){i.yc(t);const n=e.index;return i.gc().deleteFile(n)})),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",!(null!=t&&t.name.includes("pdf"))),i.Db(1),i.mc("ngIf",null==t?null:t.name.includes("pdf")),i.Db(3),i.Nc(" ",null==t?null:t.name," "),i.Db(2),i.Nc(" ",n.formatBytes(null==t?null:t.size)," "),i.Db(1),i.mc("progress",null==t?null:t.progress)}}let ez=(()=>{class t{constructor(t){this.dialog=t,this.files=[],this.filesAccepted=""}onFileDropped(t){this.files.pop(),this.prepareFilesList(t)}fileBrowseHandler(t){this.files.pop(),this.prepareFilesList(t)}deleteFile(t){this.files[t].progress<100?console.log("Upload in progress."):this.files.splice(t,1)}uploadFilesSimulator(t){setTimeout(()=>{if(t!==this.files.length){const e=setInterval(()=>{100===this.files[t].progress?(clearInterval(e),this.uploadFilesSimulator(t+1)):this.files[t].progress+=5},200)}},1e3)}prepareFilesList(t){if(!1===this.filesAccepted.includes(t[0].type))return this.showGeneralDialog("El tipo de extension, es invalido."),void(this.fileDropEl.nativeElement.value="");if(t[0].size>8e6)return this.showGeneralDialog("La imagen es demasido pesada, Max 8MB."),void(this.fileDropEl.nativeElement.value="");for(const e of t)e.progress=0,this.files.push(e);this.fileDropEl.nativeElement.value="",this.uploadFilesSimulator(0)}formatBytes(t,e=2){if(0===t)return"0 Bytes";const n=e<=0?0:e,i=Math.floor(Math.log(t)/Math.log(1024));return parseFloat((t/Math.pow(1024,i)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}showGeneralDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-dragndrop-uploadfile"]],viewQuery:function(t,e){var n;1&t&&i.Qc(QB,!0),2&t&&i.tc(n=i.dc())&&(e.fileDropEl=n.first)},inputs:{files:"files",filesAccepted:"filesAccepted"},decls:13,vars:2,consts:[["appDnd","",1,"container-fu",3,"fileDropped"],["type","file","id","fileDropRef",3,"accept","change"],["fileDropRef",""],[1,"icon-fu"],["for","fileDropRef"],[1,"files-list"],["class","single-file",4,"ngFor","ngForOf"],[1,"single-file"],[4,"ngIf"],["style","width: 35px;",4,"ngIf"],[1,"info"],[1,"name"],[1,"size"],[3,"progress"],["src","assets/images/dnd/ic-delete-file.svg","width","20px","alt","file",1,"delete",3,"click"],[2,"width","35px"],["version","1.1","id","Capa_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 58 58",0,"xml","space","preserve",2,"enable-background","new 0 0 58 58"],["points","51.5,14 37.5,0 6.5,0 6.5,58 51.5,58 ",2,"fill","#EDEADA"],["d","M16.5,23h25c0.552,0,1-0.447,1-1s-0.448-1-1-1h-25c-0.552,0-1,0.447-1,1S15.948,23,16.5,23z",2,"fill","#CEC9AE"],["d","M16.5,15h10c0.552,0,1-0.447,1-1s-0.448-1-1-1h-10c-0.552,0-1,0.447-1,1S15.948,15,16.5,15z",2,"fill","#CEC9AE"],["d","M41.5,29h-25c-0.552,0-1,0.447-1,1s0.448,1,1,1h25c0.552,0,1-0.447,1-1S42.052,29,41.5,29z",2,"fill","#CEC9AE"],["d","M41.5,37h-25c-0.552,0-1,0.447-1,1s0.448,1,1,1h25c0.552,0,1-0.447,1-1S42.052,37,41.5,37z",2,"fill","#CEC9AE"],["d","M41.5,45h-25c-0.552,0-1,0.447-1,1s0.448,1,1,1h25c0.552,0,1-0.447,1-1S42.052,45,41.5,45z",2,"fill","#CEC9AE"],["points","37.5,0 37.5,14 51.5,14 ",2,"fill","#CEC9AE"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.cc("fileDropped",(function(t){return e.onFileDropped(t)})),i.Ub(1,"input",1,2),i.cc("change",(function(t){return e.fileBrowseHandler(t.target.files)})),i.Tb(),i.Ub(3,"div",3),i.Ub(4,"mat-icon"),i.Lc(5,"cloud_upload"),i.Tb(),i.Tb(),i.Ub(6,"p"),i.Lc(7," Arrastra y suelta tu archivo aqu\xed o "),i.Ub(8,"label",4),i.Lc(9,"busca"),i.Tb(),i.Lc(10," los archivos. "),i.Tb(),i.Tb(),i.Ub(11,"div",5),i.Jc(12,tz,10,5,"div",6),i.Tb()),2&t&&(i.Db(1),i.nc("accept",e.filesAccepted),i.Db(11),i.mc("ngForOf",e.files))},directives:[$B,Kv,o.s,o.t,KB],styles:[".container-fu[_ngcontent-%COMP%]{background-color:#f6f8fa;border-radius:8px;padding:2rem;text-align:center;border:1px dashed #c3c8cc;position:relative;margin:0 auto}.container-fu[_ngcontent-%COMP%]   .icon-fu[_ngcontent-%COMP%]{color:rgba(0,0,0,.5)}.container-fu[_ngcontent-%COMP%]   .icon-fu[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:50px;width:auto;height:auto}.container-fu[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0;position:absolute;z-index:2;width:100%;height:100%;top:0;left:0;cursor:pointer}.container-fu[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#4fbfd3;text-decoration:underline}.container-fu[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-bottom:0;color:#38424c}.fileover[_ngcontent-%COMP%]{-webkit-animation:shake 1s;animation:shake 1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.files-list[_ngcontent-%COMP%]{margin-top:1.5rem}.files-list[_ngcontent-%COMP%]   .single-file[_ngcontent-%COMP%]{padding:.5rem;justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex;flex-grow:1}.files-list[_ngcontent-%COMP%]   .single-file[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{color:rgba(0,0,0,.5);font-size:36px;margin-right:8px;width:auto;height:auto}.files-list[_ngcontent-%COMP%]   .single-file[_ngcontent-%COMP%]   img.delete[_ngcontent-%COMP%]{margin-left:.5rem;cursor:pointer;align-self:flex-end}.files-list[_ngcontent-%COMP%]   .single-file[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#353f4a;margin:0 0 4px;word-break:break-all}@media (max-width:576px){.files-list[_ngcontent-%COMP%]   .single-file[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:12px}}.files-list[_ngcontent-%COMP%]   .single-file[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#a4a4a4;margin:0 0 .25rem}@media (max-width:576px){.files-list[_ngcontent-%COMP%]   .single-file[_ngcontent-%COMP%]   .size[_ngcontent-%COMP%]{font-size:10px}}.files-list[_ngcontent-%COMP%]   .single-file[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{width:100%}@-webkit-keyframes shake{0%{transform:translate(1px,1px) rotate(0deg)}10%{transform:translate(-1px,-2px) rotate(-1deg)}20%{transform:translate(-3px) rotate(1deg)}30%{transform:translate(3px,2px) rotate(0deg)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(-1deg)}60%{transform:translate(-3px,1px) rotate(0deg)}70%{transform:translate(3px,1px) rotate(-1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(1px,2px) rotate(0deg)}to{transform:translate(1px,-2px) rotate(-1deg)}}@keyframes shake{0%{transform:translate(1px,1px) rotate(0deg)}10%{transform:translate(-1px,-2px) rotate(-1deg)}20%{transform:translate(-3px) rotate(1deg)}30%{transform:translate(3px,2px) rotate(0deg)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(-1deg)}60%{transform:translate(-3px,1px) rotate(0deg)}70%{transform:translate(3px,1px) rotate(-1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(1px,2px) rotate(0deg)}to{transform:translate(1px,-2px) rotate(-1deg)}}"]}),t})(),nz=(()=>{class t{constructor(){}get identificationNumber(){return this._identificationNumber}set identificationNumber(t){this._identificationNumber=t}get email(){return this._email}set email(t){this._email=t}get applicationDate(){return this._applicationDate}set applicationDate(t){this._applicationDate=t}get termDate(){return this._termDate}set termDate(t){this._termDate=t}reset(){this._identificationNumber=null,this._applicationDate=null,this._termDate=null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function iz(t,e){1&t&&(i.Ub(0,"th",31),i.Lc(1," Usuario "),i.Tb())}function rz(t,e){if(1&t&&(i.Ub(0,"td",32),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Oc("",t.firstName," ",t.lastName,"")}}function oz(t,e){1&t&&(i.Ub(0,"th",31),i.Lc(1,"Tipo de documento"),i.Tb())}function sz(t,e){if(1&t&&(i.Ub(0,"td",32),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.identificationType)}}function az(t,e){1&t&&(i.Ub(0,"th",31),i.Lc(1,"No. de documento"),i.Tb())}function cz(t,e){if(1&t&&(i.Ub(0,"td",32),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.identificationNumber)}}function lz(t,e){1&t&&(i.Ub(0,"th",31),i.Lc(1,"Fecha de solicitud"),i.Tb())}function uz(t,e){if(1&t&&(i.Ub(0,"td",32),i.Ub(1,"span",33),i.Ub(2,"span",34),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",35),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.applicationDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.applicationDate,"hh:mm a"))}}function dz(t,e){1&t&&(i.Ub(0,"th",31),i.Lc(1,"Expiraci\xf3n de solicitud"),i.Tb())}function hz(t,e){if(1&t&&(i.Ub(0,"td",32),i.Ub(1,"span",33),i.Ub(2,"span",34),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",35),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.termDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.termDate,"hh:mm a"))}}function pz(t,e){1&t&&(i.Ub(0,"th",36),i.Lc(1,"M\xe1s"),i.Tb())}function mz(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",37),i.Ub(1,"button",38),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().validateUser(n.email,n.identificationNumber,n.applicationDate,n.termDate)})),i.Lc(2," Validar "),i.Tb(),i.Tb()}}function fz(t,e){1&t&&i.Pb(0,"tr",39)}function bz(t,e){1&t&&i.Pb(0,"tr",40)}function gz(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"No hay registros"),i.Tb())}function _z(t,e){if(1&t&&(i.Ub(0,"span"),i.Lc(1),i.Tb()),2&t){i.gc(2);const t=i.uc(18);i.Db(1),i.Nc(' No se encontraron registros con el filtro: "',t.value,'" ')}}function vz(t,e){if(1&t&&(i.Ub(0,"tr",41),i.Ub(1,"td",42),i.Jc(2,gz,2,0,"span",43),i.Jc(3,_z,2,1,"span",43),i.Tb(),i.Tb()),2&t){i.gc();const t=i.uc(18);i.Db(2),i.mc("ngIf",""===t.value),i.Db(1),i.mc("ngIf",""!==t.value)}}const yz=function(){return[10,20,30]};let wz=(()=>{class t{constructor(t,e,n,i,r,o,s,a){this._pageLoaderService=t,this.formBuilder=e,this.router=n,this.translate=i,this.dateAdapter=r,this.cn=o,this.enrollmentService=s,this.enrollmentValidationData=a,this.usersToValidate=null,this.filteredUsersToValidate=[],this.UsersData=new Sx,this.displayedColumns=["fullName","identificationType","identificationNumber","applicationDate","termDate","actions"],this.dateFilterForm=e.group({date:[{begin:null,end:null}]}),this.translate.use("es"),this.dateAdapter.setLocale("es")}ngOnInit(){this.enrollmentValidationData.reset();const t=JSON.parse(sessionStorage.getItem("userData"));this.getRequestsNotaryValidation(t.email)}ngAfterViewInit(){this.UsersData.paginator=this.paginator,tL.SetUpPaginator(this.paginator)}filterByDate(t){if(null!=t&&null!=t.begin&&null!=t.end){const e=t.begin,n=t.end;n.setHours(23,59,59),this.filteredUsersToValidate=this.usersToValidate.filter(t=>new Date(t.applicationDate)>=e&&new Date(t.applicationDate)<=n),this.UsersData.data=this.filteredUsersToValidate}else this.UsersData.data=this.usersToValidate}filterBySearch(t){this.UsersData.filter=t.target.value.trim().toLowerCase()}validateUser(t,e,n,i){this.enrollmentValidationData.email=t,this.enrollmentValidationData.identificationNumber=e,this.enrollmentValidationData.applicationDate=n,this.enrollmentValidationData.termDate=i,this.router.navigate(["corporate/notary-enrollment/enrollment-requests-detail"])}getRequestsNotaryValidation(t){this._pageLoaderService.show(),this.enrollmentService.getPendingEnrollmentValidationRequests(t).subscribe(t=>{this.cn.log("=====> getPendingRequestsNotaryValidation() Result"),this.cn.log(t),this._pageLoaderService.hide(),this.usersToValidate=t.operationBody,this.UsersData.data=this.usersToValidate},t=>{this.cn.error("=====> getPendingRequestsNotaryValidation() ERROR"),this.cn.error(t),this._pageLoaderService.hide()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(pg),i.Ob(fl),i.Ob(Zs),i.Ob(Bi),i.Ob(iM),i.Ob(Gi),i.Ob(_g),i.Ob(nz))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-notary-enrollment"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:45,vars:9,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center","mb-5"],[1,"col-12","col-md-6"],[1,"row"],[1,"col-12","col-md-4","col-lg-3"],[3,"formGroup"],["matInput","","placeholder","Fecha de solicitud","formControlName","date",3,"satDatepicker","ngModelChange"],[3,"rangeMode"],["picker",""],["matSuffix","",3,"for"],[1,"col-12","col-md-4","col-lg-3","offset-md-4","offset-lg-6"],["appearance","standard"],["matInput","","placeholder","Nombre, No. de documento",3,"keyup"],["search",""],["matSuffix",""],[1,"rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","fullName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","identificationType"],["matColumnDef","identificationNumber"],["matColumnDef","applicationDate"],["matColumnDef","termDate"],["matColumnDef","actions"],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fechaHora"],[1,"tb-fecha"],[1,"tb-hora"],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-raised-button","",3,"click"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],["colspan","6",1,"mat-cell"],[4,"ngIf"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Enrolamiento"),i.Tb(),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"div",4),i.Ub(7,"form",5),i.Ub(8,"mat-form-field"),i.Ub(9,"input",6),i.cc("ngModelChange",(function(t){return e.filterByDate(t)})),i.Tb(),i.Pb(10,"sat-datepicker",7,8),i.Pb(12,"sat-datepicker-toggle",9),i.Tb(),i.Tb(),i.Tb(),i.Ub(13,"div",10),i.Ub(14,"mat-form-field",11),i.Ub(15,"mat-label"),i.Lc(16,"Buscar..."),i.Tb(),i.Ub(17,"input",12,13),i.cc("keyup",(function(t){return e.filterBySearch(t)})),i.Tb(),i.Ub(19,"mat-icon",14),i.Lc(20,"search"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(21,"div",15),i.Ub(22,"table",16),i.Sb(23,17),i.Jc(24,iz,2,0,"th",18),i.Jc(25,rz,2,2,"td",19),i.Rb(),i.Sb(26,20),i.Jc(27,oz,2,0,"th",18),i.Jc(28,sz,2,1,"td",19),i.Rb(),i.Sb(29,21),i.Jc(30,az,2,0,"th",18),i.Jc(31,cz,2,1,"td",19),i.Rb(),i.Sb(32,22),i.Jc(33,lz,2,0,"th",18),i.Jc(34,uz,8,8,"td",19),i.Rb(),i.Sb(35,23),i.Jc(36,dz,2,0,"th",18),i.Jc(37,hz,8,8,"td",19),i.Rb(),i.Sb(38,24),i.Jc(39,pz,2,0,"th",25),i.Jc(40,mz,3,0,"td",26),i.Rb(),i.Jc(41,fz,1,0,"tr",27),i.Jc(42,bz,1,0,"tr",28),i.Jc(43,vz,4,2,"tr",29),i.Tb(),i.Tb(),i.Pb(44,"mat-paginator",30),i.Tb()),2&t){const t=i.uc(11);i.Db(7),i.mc("formGroup",e.dateFilterForm),i.Db(2),i.mc("satDatepicker",t),i.Db(1),i.mc("rangeMode",!0),i.Db(2),i.mc("for",t),i.Db(10),i.mc("dataSource",e.UsersData),i.Db(19),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(2),i.mc("pageSizeOptions",i.qc(8,yz))}},directives:[zc,Fa,Yc,Uv,uy,Aa,RM,Na,tl,IM,FM,kv,xv,Kv,JC,tx,KC,$C,cx,hx,yx,EP,nx,sx,zm,mx,_x,o.t],pipes:[o.f],styles:["td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}"]}),t})(),Cz=(()=>{class t{constructor(t,e,n){this.formBuilder=t,this.dialogRef=e,this.data=n,this.fg=this.formBuilder.group({nut:["",[Ha.required]],date:["",[Ha.required]]})}ngOnInit(){this.nutData=this.data,void 0!==this.nutData&&(void 0!==this.nutData.nut&&this.fg.controls.nut.setValue(this.nutData.nut),void 0!==this.nutData.date&&this.fg.controls.date.setValue(this.nutData.date))}save(){const t=new Date(this.fg.controls.date.value);this.dialogRef.close({nut:this.fg.controls.nut.value,date:t.toISOString()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(jb),i.Ob(zb))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-enrollment-validation-nut"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"formGroup"],["matInput","","placeholder","Fecha de generaci\xf3n","formControlName","date",3,"satDatepicker"],[3,"rangeMode"],["picker",""],["matSuffix","",3,"for"],["matInput","","placeholder","NUT","formControlName","nut","required",""],[1,"text-center","w-100"],["mat-raised-button","","color","primary",3,"disabled","click"],["type","button","mat-raised-button","","mat-dialog-close",""]],template:function(t,e){if(1&t&&(i.Ub(0,"h2",0),i.Lc(1,"Ingresar NUT"),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Ub(3,"form",1),i.Ub(4,"mat-form-field"),i.Pb(5,"input",2),i.Pb(6,"sat-datepicker",3,4),i.Pb(8,"sat-datepicker-toggle",5),i.Tb(),i.Ub(9,"mat-form-field"),i.Pb(10,"input",6),i.Tb(),i.Tb(),i.Tb(),i.Ub(11,"mat-dialog-actions"),i.Ub(12,"div",7),i.Ub(13,"button",8),i.cc("click",(function(){return e.save()})),i.Lc(14,"Guardar"),i.Tb(),i.Ub(15,"button",9),i.Lc(16,"Cancelar"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.uc(7);i.Db(3),i.mc("formGroup",e.fg),i.Db(2),i.mc("satDatepicker",t),i.Db(1),i.mc("rangeMode",!1),i.Db(2),i.mc("for",t),i.Db(5),i.mc("disabled",e.fg.invalid)}},directives:[Wb,Kb,zc,Fa,Yc,Uv,uy,Aa,RM,Na,tl,IM,FM,kv,il,Qb,zm,$b],styles:[""]}),t})(),xz=(()=>{class t{constructor(t,e){this.data=t,this.dialogRef=e}ngOnInit(){this.imageUrl=this.data.imageUrl}close(){this.dialogRef.close()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zb),i.Ob(jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-image-viewer"]],decls:7,vars:1,consts:[[1,"text-right"],["mat-mini-fab","","mat-dialog-close","",1,"btn-closeCustomModal","mb-2"],[1,"image-viewer"],["height","100%","width","100%",1,"image-viewer",3,"src"]],template:function(t,e){1&t&&(i.Ub(0,"mat-dialog-content"),i.Ub(1,"div",0),i.Ub(2,"button",1),i.Ub(3,"mat-icon"),i.Lc(4,"close"),i.Tb(),i.Tb(),i.Tb(),i.Ub(5,"div",2),i.Pb(6,"img",3),i.Tb(),i.Tb()),2&t&&(i.Db(6),i.nc("src",e.imageUrl,i.Bc))},directives:[Kb,zm,$b,Kv],styles:[".image-viewer[_ngcontent-%COMP%]{border-radius:5px}"]}),t})();function Oz(t,e){if(1&t&&(i.Ub(0,"div",41),i.Ub(1,"div",20),i.Ub(2,"div",32),i.Lc(3," NUT "),i.Tb(),i.Ub(4,"div",30),i.Ub(5,"div"),i.Ub(6,"span",14),i.Lc(7),i.Tb(),i.Tb(),i.Ub(8,"div"),i.Ub(9,"span",23),i.Lc(10),i.hc(11,"date"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(7),i.Mc(t.nut),i.Db(3),i.Mc(i.jc(11,2,t.nutDate,"dd/MM/yyyy"))}}function Sz(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",42),i.cc("click",(function(){return i.yc(t),i.gc().createNut()})),i.Lc(1,"Ingresar NUT"),i.Tb()}}function Tz(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"C\xe9dula de Ciudadan\xeda"),i.Tb())}function Dz(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"C\xe9dula de Extranjer\xeda"),i.Tb())}function kz(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"Pasaporte"),i.Tb())}function Pz(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"Masculino"),i.Tb())}function Ez(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"Femenino"),i.Tb())}function Az(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"Soltero"),i.Tb())}let Iz=(()=>{class t{constructor(t,e,n,i,r,o,s){this._pageLoaderService=t,this.router=e,this.cn=n,this.dialog=i,this._snackBar=r,this.enrollmentService=o,this.enrollmentValidationData=s,this.nutExists=!1,this.reviewCheck=!1}ngOnInit(){this.validateStartData(),this.getUserToEnrollData()}alertNut(){this._snackBar.open("Debes ingresar el NUT para validar y activar al usuario.","Vale",{duration:5e3,panelClass:["customSnackbar"]})}createNut(){this.dialog.open(Cz,{width:"400px",data:{nut:this.nut,date:this.nutDate}}).afterClosed().subscribe(t=>{void 0!==t&&void 0!==t.nut&&""!==t.nut&&void 0!==t.date&&""!==t.date&&(this.nut=t.nut,this.nutDate=t.date,this.nutExists=!0)})}showDocument(t){this.dialog.open(xz,{width:"600px",data:{imageUrl:t}}).afterClosed().subscribe()}validateUser(){this.nutExists?(this.cn.log("=====> Validate User"),this.cn.log(this.nut),this.cn.log(this.nutDate),this.cn.log(this.enrollmentValidationData.identificationNumber),this._pageLoaderService.show(),this.enrollmentService.validateUser(this.enrollmentValidationData.email,this.enrollmentValidationData.identificationNumber,this.nut,this.nutDate).subscribe(t=>{var e;switch(this.cn.log("=====> validateUser() Result"),this.cn.log(t),this._pageLoaderService.hide(),t.operationCode){case 1e3:dg.info(`Activaci\xf3n de cuenta ${null===(e=this.userToEnroll)||void 0===e?void 0:e.user.email}.`,"ENROLAMIENTO"),this.showDialog("Los datos del usuario coinciden con la informaci\xf3n de la Registradur\xeda Nacional del Estado Civil y la cuenta se encuentra activa en este momento para realizar tr\xe1mites en la notaria.").subscribe(t=>{this.router.navigate(["corporate/notary-enrollment/enrollment-requests"])});break;default:this.showDialog(t.operationMessage)}},t=>{this.cn.error("=====> validateUser() ERROR"),this.cn.error(t),this._pageLoaderService.hide()})):this.alertNut()}getUserToEnrollData(){this._pageLoaderService.show(),this.enrollmentService.getUserToEnroll(this.enrollmentValidationData.email).subscribe(t=>{this.cn.log("=====> getUserToEnroll() Result"),this.cn.log(t),this._pageLoaderService.hide(),this.userToEnroll=t.operationBody,this.cn.log("==============================================================="),this.cn.log(this.userToEnroll)},t=>{this.cn.error("=====> getUserToEnroll() ERROR"),this.cn.error(t),this._pageLoaderService.hide()})}showDialog(t){return this.dialog.open(fU,{width:"480px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}validateStartData(){this.cn.log("=====> StartData:"),this.cn.log(this.enrollmentValidationData),this.enrollmentValidationData&&this.enrollmentValidationData.identificationNumber||this.showDialog("Usuario no especificado.").subscribe(t=>{this.router.navigate(["corporate/notary-enrollment/enrollment-requests"])}),this.applicationDate=this.enrollmentValidationData.applicationDate,this.termDate=this.enrollmentValidationData.termDate}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(pg),i.Ob(Zs),i.Ob(Gi),i.Ob(Jb),i.Ob(QE),i.Ob(_g),i.Ob(nz))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-notary-user-info-to-activate"]],decls:127,vars:27,consts:[[1,"container"],[1,"mt-4"],["mat-button","","color","primary","routerLink","/corporate/notary-enrollment/enrollment-requests",1,"backButton"],[1,"mt-4","mb-4"],[1,"basicInfoEnrollment"],[1,"first-section-gray"],[1,"row","align-items-center"],[1,"col-12","col-md-auto","mb-3","mb-md-0","align-self-center"],[1,"profileImageEnrollment","mx-auto"],["alt","imagen-perfil","src","./assets/images/Iconos/default-profile.svg"],[1,"col-12","col-md"],[1,"tagsInfoEnrollment"],[1,"col-6","col-md-auto","text-center","text-md-left","div-y"],[1,"text-muted","small"],[1,"font-weight-bold"],[1,"col-6","col-md-auto","text-center","text-md-left"],[1,"col","mt-3","mt-md-0","text-center","text-md-right"],["class","infoNUT",4,"ngIf"],["class","mb-0","mat-raised-button","","color","primary",3,"click",4,"ngIf"],[1,"second-section-white"],[1,"row"],[1,"col-12","col-md","offset-md-4","offset-lg-8","div-y"],[1,"small"],[1,"text-muted"],[1,"col-12","col-md","div-y"],[1,"mt-5"],[1,"col-12","col-md-6"],[1,"title-with-line"],[1,"detailInfoEnrollment"],[1,"item-detailInfoEnrollment"],[1,"col"],[4,"ngIf"],[1,"col-auto"],["mat-raised-button","",3,"matMenuTriggerFor"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],[1,"wt-640","mt-2","mx-auto"],["color","primary",3,"change"],[1,"my-3","text-center"],[1,"customBtn","validate-btn",3,"disabled","click"],[1,"infoNUT"],["mat-raised-button","","color","primary",1,"mb-0",3,"click"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"button",2),i.Ub(3,"mat-icon"),i.Lc(4,"arrow_back"),i.Tb(),i.Lc(5," Volver "),i.Tb(),i.Tb(),i.Ub(6,"div",3),i.Ub(7,"h5"),i.Lc(8,"Enrolamiento"),i.Tb(),i.Tb(),i.Ub(9,"div",4),i.Ub(10,"div",5),i.Ub(11,"div",6),i.Ub(12,"div",7),i.Ub(13,"div",8),i.Pb(14,"img",9),i.Tb(),i.Tb(),i.Ub(15,"div",10),i.Ub(16,"div",11),i.Ub(17,"div",6),i.Ub(18,"div",12),i.Ub(19,"div",13),i.Lc(20,"Apellidos"),i.Tb(),i.Ub(21,"div",14),i.Lc(22),i.Tb(),i.Tb(),i.Ub(23,"div",15),i.Ub(24,"div",13),i.Lc(25,"Nombres"),i.Tb(),i.Ub(26,"div",14),i.Lc(27),i.Tb(),i.Tb(),i.Ub(28,"div",16),i.Jc(29,Oz,12,5,"div",17),i.Jc(30,Sz,2,0,"button",18),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(31,"div",19),i.Ub(32,"div",0),i.Ub(33,"div",20),i.Ub(34,"div",21),i.Ub(35,"p",22),i.Ub(36,"small",23),i.Lc(37,"Fecha de solicitud"),i.Tb(),i.Pb(38,"br"),i.Lc(39),i.hc(40,"date"),i.Tb(),i.Tb(),i.Ub(41,"div",24),i.Ub(42,"p",22),i.Ub(43,"small",23),i.Lc(44,"Expira"),i.Tb(),i.Pb(45,"br"),i.Lc(46),i.hc(47,"date"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(48,"div",25),i.Ub(49,"div",20),i.Ub(50,"div",26),i.Ub(51,"h5",27),i.Lc(52,"Informaci\xf3n del usuario"),i.Tb(),i.Ub(53,"div",28),i.Ub(54,"div",29),i.Ub(55,"div",6),i.Ub(56,"div",30),i.Ub(57,"span"),i.Ub(58,"small",23),i.Lc(59,"Tipo de documento"),i.Tb(),i.Pb(60,"br"),i.Jc(61,Tz,2,0,"span",31),i.Jc(62,Dz,2,0,"span",31),i.Jc(63,kz,2,0,"span",31),i.Tb(),i.Tb(),i.Ub(64,"div",32),i.Ub(65,"button",33),i.Lc(66,"Ver"),i.Tb(),i.Ub(67,"mat-menu",34,35),i.Ub(69,"button",36),i.cc("click",(function(){return e.showDocument(null==e.userToEnroll?null:e.userToEnroll.document.frontSideImage)})),i.Lc(70," Vista Frontal "),i.Tb(),i.Ub(71,"button",36),i.cc("click",(function(){return e.showDocument(null==e.userToEnroll?null:e.userToEnroll.document.backSideImage)})),i.Lc(72," Vista Posterior "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(73,"div",29),i.Ub(74,"span"),i.Ub(75,"small",23),i.Lc(76,"No. de documento"),i.Tb(),i.Pb(77,"br"),i.Lc(78),i.Tb(),i.Tb(),i.Ub(79,"div",29),i.Ub(80,"span"),i.Ub(81,"small",23),i.Lc(82,"Sexo"),i.Tb(),i.Pb(83,"br"),i.Jc(84,Pz,2,0,"span",31),i.Jc(85,Ez,2,0,"span",31),i.Tb(),i.Tb(),i.Ub(86,"div",29),i.Ub(87,"span"),i.Ub(88,"small",23),i.Lc(89,"Estado civil"),i.Tb(),i.Pb(90,"br"),i.Jc(91,Az,2,0,"span",31),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(92,"div",26),i.Ub(93,"h5",27),i.Lc(94,"Informaci\xf3n de ubicaci\xf3n y contacto"),i.Tb(),i.Ub(95,"div",28),i.Ub(96,"div",29),i.Ub(97,"span"),i.Ub(98,"small",23),i.Lc(99,"Correo electr\xf3nico"),i.Tb(),i.Pb(100,"br"),i.Lc(101),i.Tb(),i.Tb(),i.Ub(102,"div",29),i.Ub(103,"span"),i.Ub(104,"small",23),i.Lc(105,"M\xf3vil"),i.Tb(),i.Pb(106,"br"),i.Lc(107),i.Tb(),i.Tb(),i.Ub(108,"div",29),i.Ub(109,"span"),i.Ub(110,"small",23),i.Lc(111,"Departamento y ciudad"),i.Tb(),i.Pb(112,"br"),i.Lc(113),i.Tb(),i.Tb(),i.Ub(114,"div",29),i.Ub(115,"span"),i.Ub(116,"small",23),i.Lc(117,"Direcci\xf3n"),i.Tb(),i.Pb(118,"br"),i.Lc(119),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(120,"div"),i.Ub(121,"div",37),i.Ub(122,"mat-checkbox",38),i.cc("change",(function(t){return e.reviewCheck=t.checked})),i.Lc(123," He revisado el documento de identificaci\xf3n del usuario y validado que coincide con la informaci\xf3n registrada. "),i.Tb(),i.Tb(),i.Ub(124,"div",39),i.Ub(125,"button",40),i.cc("click",(function(){return e.validateUser()})),i.Lc(126," Validar y Activar "),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.uc(68);i.Db(22),i.Mc(null==e.userToEnroll?null:e.userToEnroll.user.lastName),i.Db(5),i.Mc(null==e.userToEnroll?null:e.userToEnroll.user.firstName),i.Db(2),i.mc("ngIf",e.nutExists),i.Db(1),i.mc("ngIf",!e.nutExists),i.Db(9),i.Nc(" ",i.jc(40,21,e.applicationDate,"dd/MM/yyyy, hh:mm a")," "),i.Db(7),i.Nc(" ",i.jc(47,24,e.termDate,"dd/MM/yyyy, hh:mm a")," "),i.Db(15),i.mc("ngIf","CC"===(null==e.userToEnroll?null:e.userToEnroll.user.typeDocument)),i.Db(1),i.mc("ngIf","CCEXT"===(null==e.userToEnroll?null:e.userToEnroll.user.typeDocument)),i.Db(1),i.mc("ngIf","PASSPORT"===(null==e.userToEnroll?null:e.userToEnroll.user.typeDocument)),i.Db(2),i.mc("matMenuTriggerFor",t),i.Db(13),i.Nc(" ",null==e.userToEnroll?null:e.userToEnroll.user.identificationNumber," "),i.Db(6),i.mc("ngIf","Male"===(null==e.userToEnroll?null:e.userToEnroll.user.sexo)),i.Db(1),i.mc("ngIf","Female"===(null==e.userToEnroll?null:e.userToEnroll.user.sexo)),i.Db(6),i.mc("ngIf","Single"===(null==e.userToEnroll?null:e.userToEnroll.user.maritalStatus)),i.Db(10),i.Nc(" ",null==e.userToEnroll?null:e.userToEnroll.user.email," "),i.Db(6),i.Oc(" ",null==e.userToEnroll?null:e.userToEnroll.user.dialCode," ",null==e.userToEnroll?null:e.userToEnroll.user.phone," "),i.Db(6),i.Oc(" ",null==e.userToEnroll?null:e.userToEnroll.user.city,", ",null==e.userToEnroll?null:e.userToEnroll.user.country," "),i.Db(6),i.Nc(" ",null==e.userToEnroll?null:e.userToEnroll.user.address," "),i.Db(6),i.mc("disabled",!e.reviewCheck)}},directives:[zm,ta,Kv,o.t,Eb,Tb,yb,q_],pipes:[o.f],styles:['.backButton.mat-button[_ngcontent-%COMP%]{padding:0}.basicInfoEnrollment[_ngcontent-%COMP%]{border-radius:6px;border:1px solid #c3c8cc;overflow:hidden}.basicInfoEnrollment[_ngcontent-%COMP%]   .first-section-gray[_ngcontent-%COMP%]{background-color:#f6f8fa;border-bottom:1px solid #c3c8cc;padding:1rem;position:relative}.basicInfoEnrollment[_ngcontent-%COMP%]   .first-section-gray[_ngcontent-%COMP%]   .profileImageEnrollment[_ngcontent-%COMP%]{width:65px;height:65px}.basicInfoEnrollment[_ngcontent-%COMP%]   .first-section-gray[_ngcontent-%COMP%]   .profileImageEnrollment[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:65px}.basicInfoEnrollment[_ngcontent-%COMP%]   .first-section-gray[_ngcontent-%COMP%]   .tagsInfoEnrollment[_ngcontent-%COMP%]   .div-y[_ngcontent-%COMP%]{position:relative}.basicInfoEnrollment[_ngcontent-%COMP%]   .first-section-gray[_ngcontent-%COMP%]   .tagsInfoEnrollment[_ngcontent-%COMP%]   .div-y[_ngcontent-%COMP%]:before{content:"";position:absolute;right:0;top:0;width:1px;height:100%;background-color:#c3c8cc}.basicInfoEnrollment[_ngcontent-%COMP%]   .first-section-gray[_ngcontent-%COMP%]   .tagsInfoEnrollment[_ngcontent-%COMP%]   .infoNUT[_ngcontent-%COMP%]{max-width:182px;border:1px solid #c3c8cc;padding:6px;border-radius:6px;float:right}.basicInfoEnrollment[_ngcontent-%COMP%]   .second-section-white[_ngcontent-%COMP%]   .div-y[_ngcontent-%COMP%]{position:relative}.basicInfoEnrollment[_ngcontent-%COMP%]   .second-section-white[_ngcontent-%COMP%]   .div-y[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:0;width:1px;height:100%;background-color:#c3c8cc}.basicInfoEnrollment[_ngcontent-%COMP%]   .second-section-white[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.basicInfoEnrollment[_ngcontent-%COMP%]   .second-section-white[_ngcontent-%COMP%]   .small[_ngcontent-%COMP%]{padding:8px 0}.detailInfoEnrollment[_ngcontent-%COMP%]{margin-bottom:1.4rem}.detailInfoEnrollment[_ngcontent-%COMP%]   .item-detailInfoEnrollment[_ngcontent-%COMP%]{border:1px solid #c3c8cc;padding:.3rem 1rem;border-radius:6px;margin-bottom:10px}.detailInfoEnrollment[_ngcontent-%COMP%]   .item-detailInfoEnrollment[_ngcontent-%COMP%]:last-child{margin-bottom:0}[_nghost-%COMP%] .mat-checkbox-layout{white-space:normal!important}[_nghost-%COMP%] .mat-checkbox-inner-container{margin-top:4px}.validate-btn[_ngcontent-%COMP%]:disabled{color:#c3c8cc;border-color:#c3c8cc}@media (max-width:768px){.infoNUT[_ngcontent-%COMP%]{float:none!important;margin:0 auto}.basicInfoEnrollment[_ngcontent-%COMP%]   .second-section-white[_ngcontent-%COMP%]   .div-y[_ngcontent-%COMP%]:before{width:0}}']}),t})();class Mz{constructor(){this.email="",this.identificationNumber="",this.bytesFileRearImage=[],this.bytesFileFrontImage=[],this.alias=""}}let Uz=(()=>{class t{constructor(t,e,n,i,r,o,s){this.router=t,this.dialog=e,this.cn=n,this._pageLoaderService=i,this.globalVarService=r,this.captureVideoimagenService=o,this.enrollmentService=s,this.files=[],this.fileUploadByte=null,this.userEnrollment=new AS}ngOnInit(){void 0!==this.globalVarService.idCardRearFile&&this.files.push(this.globalVarService.idCardRearFile)}finishValidation(){console.log(this.files),this.globalVarService.idCardRearFile=this.files[0],this.handleUpload(this.files[0])}handleUpload(t){const e=new FileReader;e.readAsArrayBuffer(t),e.onload=()=>{const t=new Uint8Array(e.result);this.fileUploadByte=Array.from(t),this.globalVarService.idCardRear=this.fileUploadByte,this.uploadIdCard()}}readUserData(){return this.cn.log("readUserData()"),JSON.parse(sessionStorage.getItem("userData"))}uploadIdCard(){this._pageLoaderService.show();const t=this.readUserData(),e=new Mz;e.email=t.email,e.identificationNumber=t.identificationNumber,e.alias=r.environment,e.bytesFileFrontImage=this.globalVarService.idCardFront,e.bytesFileRearImage=this.fileUploadByte,this.captureVideoimagenService.addFilesIdCard(e).subscribe(t=>{this.cn.log("=====> uploadIdCard(): ",t),this.getEnrollment()},t=>{this.cn.log("=====> Error uploadIdCard(): ",t),this.showGeneralDialog("Ocurrio un error al almacenar el documento, por favor intenta nuevamente."),this._pageLoaderService.hide()})}showGeneralDialog(t,e,n,i){void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:i,width:"830px",data:e})}getEnrollment(){const t=this.readUserData();this.enrollmentService.getEnrollment(+t.notaryId,t.email).subscribe(t=>{this.cn.log("getEnrollment()",t),this.userEnrollment=t.operationBody[0],this.updateEnrollment()},t=>{this.cn.log("Error getEnrollment()",t),this._pageLoaderService.hide()})}updateEnrollment(){!1===this.userEnrollment.validIdentificationNumber?(this.userEnrollment.validIdentificationNumber=!0,this._pageLoaderService.show(),this.enrollmentService.updateEnrollment(this.userEnrollment).subscribe(t=>{this.cn.log("updateEnrollment()",t),this.showGeneralDialog("",{title:"El documento de identidad se ha validado con \xe9xito",content:"El documento de identidad coincide con los datos suministrados en el registro. Por tu seguridad, ya no podr\xe1s modificar en la configuraci\xf3n de tu perfil datos como: tipo de documento, n\xfamero de documento, nombres y apellidos.",actions:[{text:"Finalizar",value:"accepted",funct:"redirectEnrollment"}]},void 0,!0),this._pageLoaderService.hide(),this.globalVarService.idCardRearFile=void 0,this.globalVarService.idCardFrontFile=void 0},t=>{this.cn.log("Error updateEnrollment()",t),this._pageLoaderService.hide()})):this._pageLoaderService.hide()}modalOpen(){this.showGeneralDialog("",{title:"El documento de identidad se ha validado con \xe9xito",content:"El documento de identidad coincide con los datos suministrados en el registro. Por tu seguridad, ya no podr\xe1s modificar en la configuraci\xf3n de tu perfil datos como: tipo de documento, n\xfamero de documento, nombres y apellidos.",actions:[{text:"Finalizar",value:"accepted",funct:"redirectEnrollment"}]},void 0,!0)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(Jb),i.Ob(Gi),i.Ob(pg),i.Ob(cg),i.Ob(bg),i.Ob(_g))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-validate-id-back"]],decls:23,vars:3,consts:[[1,"container"],[1,"row","align-items-center"],[1,"col-12","col-md-6"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"title-home","mb-5"],["src","./assets/images/Cedula_eNotary_back.png",1,"responsive-image"],[1,"col-12","col-md-5","offset-md-1","mt-5","mt-md-0"],[1,"title-with-line"],[1,"box-white-without-bnn"],[3,"filesAccepted","files"],[1,"text-center"],["mat-raised-button","","color","primary",1,"mr-2",3,"disabled","click"],["mat-raised-button","","routerLink","/corporate/enrollment/validate-id-front"],["routerLink","/corporate/pv/enrollment/user-enrollment",1,"cancel-text","mt-4"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"img",3),i.Ub(4,"h1",4),i.Lc(5,"Ahora vamos con la parte posterior del documento"),i.Tb(),i.Pb(6,"img",5),i.Tb(),i.Ub(7,"div",6),i.Ub(8,"h5",7),i.Lc(9,"Parte posterior"),i.Tb(),i.Ub(10,"p"),i.Lc(11," Sube un archivo .jpg o .png de m\xe1ximo 8 mb. "),i.Tb(),i.Ub(12,"div",8),i.Ub(13,"div"),i.Pb(14,"aswc-dragndrop-uploadfile",9),i.Tb(),i.Ub(15,"div",10),i.Ub(16,"button",11),i.cc("click",(function(){return e.finishValidation()})),i.Lc(17,"Finalizar"),i.Tb(),i.Ub(18,"button",12),i.Lc(19,"Volver"),i.Tb(),i.Tb(),i.Ub(20,"div"),i.Ub(21,"a",13),i.Lc(22,"Cancelar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(14),i.mc("filesAccepted","image/jpeg, image/png")("files",e.files),i.Db(2),i.mc("disabled",1!==e.files.length||100!==(null==e.files[0]?null:e.files[0].progress)))},styles:[".title-home[_ngcontent-%COMP%]{font-size:40px;font-weight:400}.responsive-image[_ngcontent-%COMP%]{max-width:100%;height:auto}"]}),t})();function Lz(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",14),i.cc("click",(function(){return i.yc(t),i.gc().validIdBack()})),i.Lc(1,"Continuar"),i.Tb()}if(2&t){const t=i.gc();i.mc("disabled",1!==t.files.length||100!==(null==t.files[0]?null:t.files[0].progress))}}function Rz(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",14),i.cc("click",(function(){return i.yc(t),i.gc().finishValidation()})),i.Lc(1,"Finalizar"),i.Tb()}if(2&t){const t=i.gc();i.mc("disabled",1!==t.files.length||100!==(null==t.files[0]?null:t.files[0].progress))}}let Nz=(()=>{class t{constructor(t,e,n,i,r,o,s){this.router=t,this.cn=e,this.dialog=n,this.globalVarService=i,this.captureVideoimagenService=r,this.enrollmentService=o,this._pageLoaderService=s,this.files=[],this.fileUploadByte=null,this.buttonhidden=!0,this.userEnrollment=new AS}ngOnInit(){this.user=JSON.parse(sessionStorage.getItem("userData")),void 0!==this.globalVarService.idCardFrontFile&&this.files.push(this.globalVarService.idCardFrontFile),this.valideTypeDocument()}valideTypeDocument(){this.buttonhidden="PASSPORT"!==this.user.typeDocument}validIdBack(){this.cn.log("validIdBack()"),this.handleUpload(this.files[0]),this.globalVarService.idCardFrontFile=this.files[0],this.router.navigate(["corporate/enrollment/validate-id-back"])}finishValidation(){console.log(this.files),this.globalVarService.idCardRearFile=this.files[0],this.handleUploadFinish(this.files[0])}handleUploadFinish(t){const e=new FileReader;e.readAsArrayBuffer(t),e.onload=()=>{const t=new Uint8Array(e.result);this.fileUploadByte=Array.from(t),this.globalVarService.idCardFront=this.fileUploadByte,this.uploadIdCard()}}handleUpload(t){const e=new FileReader;e.readAsArrayBuffer(t),e.onload=()=>{const t=new Uint8Array(e.result);this.fileUploadByte=Array.from(t),this.globalVarService.idCardFront=this.fileUploadByte}}uploadIdCard(){this._pageLoaderService.show();const t=this.readUserData(),e=new Mz;e.email=t.email,e.identificationNumber=t.identificationNumber,e.alias=r.environment,e.bytesFileFrontImage=this.fileUploadByte,e.bytesFileRearImage=null,this.captureVideoimagenService.addFilesIdCard(e).subscribe(t=>{this.cn.log("=====> uploadIdCard(): ",t),this.getEnrollment()},t=>{this.cn.log("=====> Error uploadIdCard(): ",t),this.showGeneralDialog("Ocurrio un error al almacenar el documento, por favor intenta nuevamente."),this._pageLoaderService.hide()})}getEnrollment(){const t=this.readUserData();this.enrollmentService.getEnrollment(+t.notaryId,t.email).subscribe(t=>{this.cn.log("getEnrollment()",t),this.userEnrollment=t.operationBody[0],this.updateEnrollment()},t=>{this.cn.log("Error getEnrollment()",t),this._pageLoaderService.hide()})}updateEnrollment(){!1===this.userEnrollment.validIdentificationNumber?(this.userEnrollment.validIdentificationNumber=!0,this._pageLoaderService.show(),this.enrollmentService.updateEnrollment(this.userEnrollment).subscribe(t=>{this.cn.log("updateEnrollment()",t),this.showGeneralDialog("",{title:"El documento de identidad se ha validado con \xe9xito",content:"El documento de identidad coincide con los datos suministrados en el registro. Por tu seguridad, ya no podr\xe1s modificar en la configuraci\xf3n de tu perfil datos como: tipo de documento, n\xfamero de documento, nombres y apellidos.",actions:[{text:"Finalizar",value:"accepted",funct:"redirectEnrollment"}]},void 0,!0),this._pageLoaderService.hide(),this.globalVarService.idCardRearFile=void 0,this.globalVarService.idCardFrontFile=void 0},t=>{this.cn.log("Error updateEnrollment()",t),this._pageLoaderService.hide()})):this._pageLoaderService.hide()}showGeneralDialog(t,e,n,i){void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:i,width:"830px",data:e})}readUserData(){return this.cn.log("readUserData()"),JSON.parse(sessionStorage.getItem("userData"))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(Gi),i.Ob(Jb),i.Ob(cg),i.Ob(bg),i.Ob(_g),i.Ob(pg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-validate-id-front"]],decls:23,vars:4,consts:[[1,"container"],[1,"row","align-items-center"],[1,"col-12","col-md-6"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"title-home","mb-5"],["src","./assets/images/Cedula_eNotary_front.png",1,"responsive-image"],[1,"col-12","col-md-5","offset-md-1","mt-5","mt-md-0"],[1,"title-with-line"],[1,"box-white-without-bnn"],[3,"filesAccepted","files"],[1,"text-center"],["mat-raised-button","","color","primary","class","mr-2",3,"disabled","click",4,"ngIf"],["mat-raised-button","","routerLink","/corporate/enrollment/validate-id-suggestions"],["routerLink","/corporate/pv/enrollment/user-enrollment",1,"cancel-text","mt-4"],["mat-raised-button","","color","primary",1,"mr-2",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"img",3),i.Ub(4,"h1",4),i.Lc(5,"Empecemos con la parte frontal de tu documento"),i.Tb(),i.Pb(6,"img",5),i.Tb(),i.Ub(7,"div",6),i.Ub(8,"h5",7),i.Lc(9,"Parte frontal"),i.Tb(),i.Ub(10,"p"),i.Lc(11," Sube un archivo .jpg o .png de m\xe1ximo 8 mb. "),i.Tb(),i.Ub(12,"div",8),i.Ub(13,"div"),i.Pb(14,"aswc-dragndrop-uploadfile",9),i.Tb(),i.Ub(15,"div",10),i.Jc(16,Lz,2,1,"button",11),i.Jc(17,Rz,2,1,"button",11),i.Ub(18,"button",12),i.Lc(19,"Volver"),i.Tb(),i.Tb(),i.Ub(20,"div"),i.Ub(21,"a",13),i.Lc(22,"Cancelar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(14),i.mc("filesAccepted","image/jpeg, image/png")("files",e.files),i.Db(2),i.mc("ngIf",e.buttonhidden),i.Db(1),i.mc("ngIf",!1===e.buttonhidden))},styles:[".title-home[_ngcontent-%COMP%]{font-size:40px;font-weight:400}.responsive-image[_ngcontent-%COMP%]{max-width:100%;height:auto}"]}),t})(),Fz=(()=>{class t{constructor(t,e,n){this._fb=t,this.router=e,this.cn=n}ngOnInit(){this.user=JSON.parse(sessionStorage.getItem("userData")),this.form=this._fb.group({typeDocument:[{value:this.user.typeDocument,disabled:!0}],identificationNumber:[this.user.identificationNumber]})}validIdFront(){this.cn.log("validIdFront()"),this.router.navigate(["corporate/enrollment/validate-id-front"])}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(Gi))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-validate-id-suggestions"]],decls:50,vars:2,consts:[[1,"container"],[1,"row","align-items-center"],[1,"col-12","col-md-6"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"title-home","mb-5"],[1,"col-12","col-md-5","offset-md-1","mt-5","mt-md-0"],[1,"title-with-line"],[1,"box-index-register"],[1,"verify-text"],["novalidate","",3,"formGroup"],["appearance","outline",1,"document-number"],["formControlName","typeDocument"],["value","CC"],["value","CCEXT"],["value","PASSPORT"],["matInput","","placeholder","No. documento","formControlName","identificationNumber","readonly",""],[1,"final-text"],["routerLink","/corporate/pv/profile/edit-profile",1,"profile-link"],[1,"customBtn","full-btn",3,"disabled","click"],["routerLink","/corporate/pv/enrollment/user-enrollment",1,"cancel-text","mt-3"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"img",3),i.Ub(4,"h1",4),i.Lc(5,"Antes de comenzar, por favor ten en cuenta lo siguiente:"),i.Tb(),i.Ub(6,"ul"),i.Ub(7,"li"),i.Lc(8," La fotos de la parte frontal y posterior deben estar correctamente enfocadas e iluminadas."),i.Tb(),i.Ub(9,"li"),i.Lc(10,"La informaci\xf3n del documento debe ser clara y legible."),i.Tb(),i.Ub(11,"li"),i.Lc(12,"La imagen debe corresponder \xfanicamente al documento de identidad, no deben haber objetos de fondo o al frente que obstruyan su reconocimiento."),i.Tb(),i.Ub(13,"li"),i.Lc(14,"La foto de la parte posterior del documento debe permitir la lectura del c\xf3digo bidimensional de este."),i.Tb(),i.Tb(),i.Tb(),i.Ub(15,"div",5),i.Ub(16,"h5",6),i.Lc(17,"Documento de identidad"),i.Tb(),i.Ub(18,"p"),i.Lc(19," Por tu seguridad, debemos validar que los datos de tu documento de identidad corresponden a los de registro. "),i.Tb(),i.Ub(20,"div",7),i.Ub(21,"div",8),i.Lc(22,' Verifica que el documento de identidad registrado sea el correcto y haz clic en el bot\xf3n "Continuar". '),i.Tb(),i.Ub(23,"form",9),i.Ub(24,"mat-form-field",10),i.Ub(25,"mat-label"),i.Lc(26,"Tipo de documento"),i.Tb(),i.Ub(27,"mat-select",11),i.Ub(28,"mat-option",12),i.Lc(29,"C\xe9dula de Ciudadania"),i.Tb(),i.Ub(30,"mat-option",13),i.Lc(31,"C\xe9dula de Extranjer\xeda"),i.Tb(),i.Ub(32,"mat-option",14),i.Lc(33,"Pasaporte"),i.Tb(),i.Tb(),i.Tb(),i.Ub(34,"mat-form-field",10),i.Ub(35,"mat-label"),i.Lc(36,"No. de documento"),i.Tb(),i.Pb(37,"input",15),i.Tb(),i.Ub(38,"div"),i.Ub(39,"p",16),i.Lc(40,"Si el documento es err\xf3neo, dir\xedgete a tu "),i.Ub(41,"a",17),i.Lc(42,"perfil"),i.Tb(),i.Lc(43,", actualiza la informaci\xf3n e inicia el proceso nuevamente."),i.Tb(),i.Tb(),i.Ub(44,"div"),i.Ub(45,"button",18),i.cc("click",(function(){return e.validIdFront()})),i.Lc(46,"Comenzar"),i.Tb(),i.Tb(),i.Ub(47,"div"),i.Ub(48,"a",19),i.Lc(49,"Cancelar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(23),i.mc("formGroup",e.form),i.Db(22),i.mc("disabled",!e.form.valid))},directives:[zc,Fa,Yc,Uv,xv,aw,Na,tl,Oh,uy,Aa,ea],styles:['@charset "UTF-8";.title-home[_ngcontent-%COMP%]{font-size:46px;font-weight:400}.box-index-register[_ngcontent-%COMP%]{background-color:#fff;padding:24px;border-radius:29px;box-shadow:1px 3px 12px 0 rgba(50,50,50,.2)}.final-text[_ngcontent-%COMP%]{font-size:12px;margin-bottom:20px}ul[_ngcontent-%COMP%]{list-style:none;padding-left:0}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;margin:0;padding-left:1.6rem}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"\u2022";position:absolute;top:-3px;left:0;color:#4fbfd3;margin-right:20px;font-size:20px}.header-recommendations[_ngcontent-%COMP%]{margin:0 0 30px;padding:0}.verify-text[_ngcontent-%COMP%]{margin:5px 0 20px}.profile-link[_ngcontent-%COMP%]{text-decoration:underline}']}),t})();class Vz{}class jz{}const Bz=[{name:"Afghanistan",dial_code:"+93",code:"AF"},{name:"Aland Islands",dial_code:"+358",code:"AX"},{name:"Albania",dial_code:"+355",code:"AL"},{name:"Algeria",dial_code:"+213",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",code:"AS"},{name:"Andorra",dial_code:"+376",code:"AD"},{name:"Angola",dial_code:"+244",code:"AO"},{name:"Anguilla",dial_code:"+1264",code:"AI"},{name:"Antarctica",dial_code:"+672",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG"},{name:"Argentina",dial_code:"+54",code:"AR"},{name:"Armenia",dial_code:"+374",code:"AM"},{name:"Aruba",dial_code:"+297",code:"AW"},{name:"Australia",dial_code:"+61",code:"AU"},{name:"Austria",dial_code:"+43",code:"AT"},{name:"Azerbaijan",dial_code:"+994",code:"AZ"},{name:"Bahamas",dial_code:"+1242",code:"BS"},{name:"Bahrain",dial_code:"+973",code:"BH"},{name:"Bangladesh",dial_code:"+880",code:"BD"},{name:"Barbados",dial_code:"+1246",code:"BB"},{name:"Belarus",dial_code:"+375",code:"BY"},{name:"Belgium",dial_code:"+32",code:"BE"},{name:"Belize",dial_code:"+501",code:"BZ"},{name:"Benin",dial_code:"+229",code:"BJ"},{name:"Bermuda",dial_code:"+1441",code:"BM"},{name:"Bhutan",dial_code:"+975",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA"},{name:"Botswana",dial_code:"+267",code:"BW"},{name:"Brazil",dial_code:"+55",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",code:"BN"},{name:"Bulgaria",dial_code:"+359",code:"BG"},{name:"Burkina Faso",dial_code:"+226",code:"BF"},{name:"Burundi",dial_code:"+257",code:"BI"},{name:"Cambodia",dial_code:"+855",code:"KH"},{name:"Cameroon",dial_code:"+237",code:"CM"},{name:"Canada",dial_code:"+1",code:"CA"},{name:"Cape Verde",dial_code:"+238",code:"CV"},{name:"Cayman Islands",dial_code:"+ 345",code:"KY"},{name:"Central African Republic",dial_code:"+236",code:"CF"},{name:"Chad",dial_code:"+235",code:"TD"},{name:"Chile",dial_code:"+56",code:"CL"},{name:"China",dial_code:"+86",code:"CN"},{name:"Christmas Island",dial_code:"+61",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC"},{name:"Colombia",dial_code:"+57",code:"CO"},{name:"Comoros",dial_code:"+269",code:"KM"},{name:"Congo",dial_code:"+242",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD"},{name:"Cook Islands",dial_code:"+682",code:"CK"},{name:"Costa Rica",dial_code:"+506",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",code:"CI"},{name:"Croatia",dial_code:"+385",code:"HR"},{name:"Cuba",dial_code:"+53",code:"CU"},{name:"Cyprus",dial_code:"+357",code:"CY"},{name:"Czech Republic",dial_code:"+420",code:"CZ"},{name:"Denmark",dial_code:"+45",code:"DK"},{name:"Djibouti",dial_code:"+253",code:"DJ"},{name:"Dominica",dial_code:"+1767",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",code:"DO"},{name:"Ecuador",dial_code:"+593",code:"EC"},{name:"Egypt",dial_code:"+20",code:"EG"},{name:"El Salvador",dial_code:"+503",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",code:"GQ"},{name:"Eritrea",dial_code:"+291",code:"ER"},{name:"Estonia",dial_code:"+372",code:"EE"},{name:"Ethiopia",dial_code:"+251",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",code:"FK"},{name:"Faroe Islands",dial_code:"+298",code:"FO"},{name:"Fiji",dial_code:"+679",code:"FJ"},{name:"Finland",dial_code:"+358",code:"FI"},{name:"France",dial_code:"+33",code:"FR"},{name:"French Guiana",dial_code:"+594",code:"GF"},{name:"French Polynesia",dial_code:"+689",code:"PF"},{name:"Gabon",dial_code:"+241",code:"GA"},{name:"Gambia",dial_code:"+220",code:"GM"},{name:"Georgia",dial_code:"+995",code:"GE"},{name:"Germany",dial_code:"+49",code:"DE"},{name:"Ghana",dial_code:"+233",code:"GH"},{name:"Gibraltar",dial_code:"+350",code:"GI"},{name:"Greece",dial_code:"+30",code:"GR"},{name:"Greenland",dial_code:"+299",code:"GL"},{name:"Grenada",dial_code:"+1473",code:"GD"},{name:"Guadeloupe",dial_code:"+590",code:"GP"},{name:"Guam",dial_code:"+1671",code:"GU"},{name:"Guatemala",dial_code:"+502",code:"GT"},{name:"Guernsey",dial_code:"+44",code:"GG"},{name:"Guinea",dial_code:"+224",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",code:"GW"},{name:"Guyana",dial_code:"+595",code:"GY"},{name:"Haiti",dial_code:"+509",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA"},{name:"Honduras",dial_code:"+504",code:"HN"},{name:"Hong Kong",dial_code:"+852",code:"HK"},{name:"Hungary",dial_code:"+36",code:"HU"},{name:"Iceland",dial_code:"+354",code:"IS"},{name:"India",dial_code:"+91",code:"IN"},{name:"Indonesia",dial_code:"+62",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR"},{name:"Iraq",dial_code:"+964",code:"IQ"},{name:"Ireland",dial_code:"+353",code:"IE"},{name:"Isle of Man",dial_code:"+44",code:"IM"},{name:"Israel",dial_code:"+972",code:"IL"},{name:"Italy",dial_code:"+39",code:"IT"},{name:"Jamaica",dial_code:"+1876",code:"JM"},{name:"Japan",dial_code:"+81",code:"JP"},{name:"Jersey",dial_code:"+44",code:"JE"},{name:"Jordan",dial_code:"+962",code:"JO"},{name:"Kazakhstan",dial_code:"+77",code:"KZ"},{name:"Kenya",dial_code:"+254",code:"KE"},{name:"Kiribati",dial_code:"+686",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR"},{name:"Kuwait",dial_code:"+965",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",code:"KG"},{name:"Laos",dial_code:"+856",code:"LA"},{name:"Latvia",dial_code:"+371",code:"LV"},{name:"Lebanon",dial_code:"+961",code:"LB"},{name:"Lesotho",dial_code:"+266",code:"LS"},{name:"Liberia",dial_code:"+231",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY"},{name:"Liechtenstein",dial_code:"+423",code:"LI"},{name:"Lithuania",dial_code:"+370",code:"LT"},{name:"Luxembourg",dial_code:"+352",code:"LU"},{name:"Macao",dial_code:"+853",code:"MO"},{name:"Macedonia",dial_code:"+389",code:"MK"},{name:"Madagascar",dial_code:"+261",code:"MG"},{name:"Malawi",dial_code:"+265",code:"MW"},{name:"Malaysia",dial_code:"+60",code:"MY"},{name:"Maldives",dial_code:"+960",code:"MV"},{name:"Mali",dial_code:"+223",code:"ML"},{name:"Malta",dial_code:"+356",code:"MT"},{name:"Marshall Islands",dial_code:"+692",code:"MH"},{name:"Martinique",dial_code:"+596",code:"MQ"},{name:"Mauritania",dial_code:"+222",code:"MR"},{name:"Mauritius",dial_code:"+230",code:"MU"},{name:"Mayotte",dial_code:"+262",code:"YT"},{name:"Mexico",dial_code:"+52",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM"},{name:"Moldova",dial_code:"+373",code:"MD"},{name:"Monaco",dial_code:"+377",code:"MC"},{name:"Mongolia",dial_code:"+976",code:"MN"},{name:"Montenegro",dial_code:"+382",code:"ME"},{name:"Montserrat",dial_code:"+1664",code:"MS"},{name:"Morocco",dial_code:"+212",code:"MA"},{name:"Mozambique",dial_code:"+258",code:"MZ"},{name:"Myanmar",dial_code:"+95",code:"MM"},{name:"Namibia",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",code:"NR"},{name:"Nepal",dial_code:"+977",code:"NP"},{name:"Netherlands",dial_code:"+31",code:"NL"},{name:"New Caledonia",dial_code:"+687",code:"NC"},{name:"New Zealand",dial_code:"+64",code:"NZ"},{name:"Nicaragua",dial_code:"+505",code:"NI"},{name:"Niger",dial_code:"+227",code:"NE"},{name:"Nigeria",dial_code:"+234",code:"NG"},{name:"Niue",dial_code:"+683",code:"NU"},{name:"Norfolk Island",dial_code:"+672",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP"},{name:"Norway",dial_code:"+47",code:"NO"},{name:"Oman",dial_code:"+968",code:"OM"},{name:"Pakistan",dial_code:"+92",code:"PK"},{name:"Palau",dial_code:"+680",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS"},{name:"Panama",dial_code:"+507",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",code:"PG"},{name:"Paraguay",dial_code:"+595",code:"PY"},{name:"Peru",dial_code:"+51",code:"PE"},{name:"Philippines",dial_code:"+63",code:"PH"},{name:"Pitcairn",dial_code:"+872",code:"PN"},{name:"Poland",dial_code:"+48",code:"PL"},{name:"Portugal",dial_code:"+351",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",code:"PR"},{name:"Qatar",dial_code:"+974",code:"QA"},{name:"Romania",dial_code:"+40",code:"RO"},{name:"Russia",dial_code:"+7",code:"RU"},{name:"Rwanda",dial_code:"+250",code:"RW"},{name:"Reunion",dial_code:"+262",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",code:"LC"},{name:"Saint Martin",dial_code:"+590",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC"},{name:"Samoa",dial_code:"+685",code:"WS"},{name:"San Marino",dial_code:"+378",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",code:"SA"},{name:"Senegal",dial_code:"+221",code:"SN"},{name:"Serbia",dial_code:"+381",code:"RS"},{name:"Seychelles",dial_code:"+248",code:"SC"},{name:"Sierra Leone",dial_code:"+232",code:"SL"},{name:"Singapore",dial_code:"+65",code:"SG"},{name:"Slovakia",dial_code:"+421",code:"SK"},{name:"Slovenia",dial_code:"+386",code:"SI"},{name:"Solomon Islands",dial_code:"+677",code:"SB"},{name:"Somalia",dial_code:"+252",code:"SO"},{name:"South Africa",dial_code:"+27",code:"ZA"},{name:"South Sudan",dial_code:"+211",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS"},{name:"Spain",dial_code:"+34",code:"ES"},{name:"Sri Lanka",dial_code:"+94",code:"LK"},{name:"Sudan",dial_code:"+249",code:"SD"},{name:"Suriname",dial_code:"+597",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ"},{name:"Swaziland",dial_code:"+268",code:"SZ"},{name:"Sweden",dial_code:"+46",code:"SE"},{name:"Switzerland",dial_code:"+41",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",code:"SY"},{name:"Taiwan",dial_code:"+886",code:"TW"},{name:"Tajikistan",dial_code:"+992",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ"},{name:"Thailand",dial_code:"+66",code:"TH"},{name:"Timor-Leste",dial_code:"+670",code:"TL"},{name:"Togo",dial_code:"+228",code:"TG"},{name:"Tokelau",dial_code:"+690",code:"TK"},{name:"Tonga",dial_code:"+676",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT"},{name:"Tunisia",dial_code:"+216",code:"TN"},{name:"Turkey",dial_code:"+90",code:"TR"},{name:"Turkmenistan",dial_code:"+993",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC"},{name:"Tuvalu",dial_code:"+688",code:"TV"},{name:"Uganda",dial_code:"+256",code:"UG"},{name:"Ukraine",dial_code:"+380",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",code:"AE"},{name:"United Kingdom",dial_code:"+44",code:"GB"},{name:"United States",dial_code:"+1",code:"US"},{name:"Uruguay",dial_code:"+598",code:"UY"},{name:"Uzbekistan",dial_code:"+998",code:"UZ"},{name:"Vanuatu",dial_code:"+678",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE"},{name:"Vietnam",dial_code:"+84",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",code:"WF"},{name:"Yemen",dial_code:"+967",code:"YE"},{name:"Zambia",dial_code:"+260",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",code:"ZW"}];let zz=(()=>{class t{constructor(t){this.el=t,this.regex=new RegExp(/^[0-9]+(\.[0-9]*){0,1}$/g),this.specialKeys=["Backspace","Tab","End","Home","ArrowRight","ArrowLeft","Delete"],this.spe=["Control","c","v","x","a"],this.key=null}onKeyDown(t){if(this.spe.includes(t.key)){if("Control"===t.key)return void(this.key=!0);if(this.key)return void(this.key=!1)}else if(this.key=!1,-1!==this.specialKeys.indexOf(t.key))return;let e=this.el.nativeElement.value.concat(t.key);e&&!String(e).match(this.regex)&&t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.l))},t.\u0275dir=i.Jb({type:t,selectors:[["","phoneNumberOnly",""]],hostBindings:function(t,e){1&t&&i.cc("keydown",(function(t){return e.onKeyDown(t)}))}}),t})();const qz=["flagDropdown"];function Hz(t,e){if(1&t){const t=i.Vb();i.Ub(0,"span",18),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().onFlageSelect(n)})),i.Pb(1,"img",19),i.Lc(2),i.Tb()}if(2&t){const t=e.$implicit;i.Db(1),i.mc("src","./assets/flags/"+(null==t?null:t.img),i.Bc)("alt",t.code),i.Db(1),i.Mc(t.name)}}function Gz(t,e){if(1&t&&(i.Ub(0,"mat-error",21),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function Jz(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,Gz,2,1,"mat-error",20),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.form.get("phone").hasError(t.type)&&(n.form.get("phone").dirty||n.form.get("phone").touched))}}let Yz=(()=>{class t{constructor(t){this.render=t,this.flags=[],this.countryDetails=Bz,this.onPressNumber=new i.o}onClick(t){t.target.className.includes("dropbtn")||t.target.className.includes("search-form-control")||this.render.removeClass(this.flagDropdown.nativeElement,"show")}ngOnInit(){this.formatFlags(),this.selectedFlag=this.flags.find(t=>"CO"===t.code),this.form.patchValue({dialCode:this.selectedFlag.dial_code})}onDropDownClick(){this.flagDropdown.nativeElement.classList.contains("show")?this.render.removeClass(this.flagDropdown.nativeElement,"show"):(this.formatFlags(),this.render.addClass(this.flagDropdown.nativeElement,"show"))}onFlageSelect(t){this.selectedFlag=t,this.form.patchValue({dialCode:this.selectedFlag.dial_code}),this.render.removeClass(this.flagDropdown.nativeElement,"show")}onNumberPress(t){t?(this.invalid=!1,this.onPressNumber.emit(t.length>=8&&t.length<=10?{valid:!0,tel:this.selectedFlag.dial_code+t,data:this.selectedFlag}:{valid:!1,tel:null})):(this.invalid=!0,this.onPressNumber.emit({valid:!1,tel:null}))}check(t){(!t||t&&t.length<8)&&(this.invalid=!0,this.onPressNumber.emit({valid:!1,tel:null}))}search(t){this.formatFlags(t)}formatFlags(t){this.flags=this.countryDetails.filter(e=>{if(t){const n=t.trim().toLowerCase();return e.code.toLowerCase().includes(n)||e.dial_code.includes(n)||e.name.toLowerCase().includes(n)}return e}).map(t=>(t.img=t.code.toLowerCase()+".png",t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(i.G))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-phone-number-input"]],viewQuery:function(t,e){var n;1&t&&i.Qc(qz,!0),2&t&&i.tc(n=i.dc())&&(e.flagDropdown=n.first)},hostBindings:function(t,e){1&t&&i.cc("click",(function(t){return e.onClick(t)}),!1,i.xc)},inputs:{form:"form",idform:"idform",validation_messages:"validation_messages"},outputs:{onPressNumber:"onPressNumber"},decls:23,vars:6,consts:[[1,"main-container-box"],[1,"dropdown-container-box"],[1,"dropdown"],[1,"btn-FlagsPhone",3,"click"],[1,"dropbtn-part",3,"src","alt"],[1,"dropdown-content"],["flagDropdown",""],["type","text","autocomplete","off","name","search","ngModel","",1,"search-form-control",3,"ngModelChange"],["searchInput",""],[3,"click",4,"ngFor","ngForOf"],[1,"input-container-box","fll_wt",3,"formGroup"],["type","hidden","formControlName","dialCode"],[1,"fll_wd"],["matPrefix",""],["type","tel","formControlName","phone","autocomplete","off","matInput","","placeholder","3000000000","phoneNumberOnly","",3,"ngModelChange"],["numberInput",""],["matSuffix","","matTooltip","Al diligenciar este campo, la persona tambi\xe9n recibir\xe1 notificaci\xf3n del proceso y/o podr\xe1 validar su identidad con clave de un solo uso a trav\xe9s de mensajes de texto en su celular.",1,"icn_Help"],[4,"ngFor","ngForOf"],[3,"click"],[3,"src","alt"],["class","error-message",4,"ngIf"],[1,"error-message"]],template:function(t,e){if(1&t){const t=i.Vb();i.Sb(0),i.Ub(1,"div",0),i.Ub(2,"div",1),i.Ub(3,"div",2),i.Ub(4,"button",3),i.cc("click",(function(){return i.yc(t),i.uc(9).value="",e.onDropDownClick()})),i.Pb(5,"img",4),i.Tb(),i.Ub(6,"div",5,6),i.Ub(8,"input",7,8),i.cc("ngModelChange",(function(){i.yc(t);const n=i.uc(9);return e.search(n.value)})),i.Tb(),i.Jc(10,Hz,3,3,"span",9),i.Tb(),i.Tb(),i.Tb(),i.Ub(11,"div",10),i.Pb(12,"input",11),i.Ub(13,"mat-form-field",12),i.Ub(14,"mat-label"),i.Lc(15,"Celular"),i.Tb(),i.Ub(16,"span",13),i.Lc(17),i.Tb(),i.Ub(18,"input",14,15),i.cc("ngModelChange",(function(){i.yc(t);const n=i.uc(19);return e.onNumberPress(n.value)})),i.Tb(),i.Ub(20,"mat-icon",16),i.Lc(21,"help_outline"),i.Tb(),i.Jc(22,Jz,2,1,"mat-error",17),i.Tb(),i.Tb(),i.Tb(),i.Rb()}2&t&&(i.Db(5),i.mc("src","./assets/flags/"+(null==e.selectedFlag?null:e.selectedFlag.img),i.Bc)("alt",null==e.selectedFlag?null:e.selectedFlag.code),i.Db(5),i.mc("ngForOf",e.flags),i.Db(1),i.mc("formGroup",e.form),i.Db(6),i.Nc("",e.selectedFlag.dial_code," \xa0"),i.Db(5),i.mc("ngForOf",e.validation_messages.phone))},directives:[Aa,Na,Bc,o.s,Fa,Yc,tl,Uv,xv,Tv,uy,zz,Kv,kv,zx,bv,o.t],styles:[".main-container-box[_ngcontent-%COMP%]{display:flex;align-items:center}.main-container-box[_ngcontent-%COMP%]   .btn-FlagsPhone[_ngcontent-%COMP%]{background-color:#fff;border:0;padding:0 8px 0 0}.main-container-box[_ngcontent-%COMP%]   .dropbtn[_ngcontent-%COMP%]{background-color:#ccc;color:#000;padding:12px;font-size:16px;cursor:pointer;border:1px solid #ccc;border-top-left-radius:5px;border-bottom-left-radius:5px;outline:none}.main-container-box[_ngcontent-%COMP%]   .dropbtn[_ngcontent-%COMP%]:focus{outline:none}.main-container-box[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]{position:relative;display:inline-block}.main-container-box[_ngcontent-%COMP%]   .dropdown-content[_ngcontent-%COMP%]{display:none;position:absolute;background-color:#f1f1f1;min-width:150px;overflow:auto;box-shadow:0 8px 16px 0 rgba(0,0,0,.2);z-index:9999;max-height:300px}.main-container-box[_ngcontent-%COMP%]   .dropdown-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#000;padding:5px 11px 8px;display:block;margin:10px}.main-container-box[_ngcontent-%COMP%]   .dropdown-content[_ngcontent-%COMP%]   .search-form-control[_ngcontent-%COMP%]{color:#000;padding:2px;display:block;margin:10px}.main-container-box[_ngcontent-%COMP%]   .dropdown-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{cursor:pointer}.main-container-box[_ngcontent-%COMP%]   .dropdown-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:relative;top:0;margin-right:5px}.main-container-box[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{background-color:#ddd}.main-container-box[_ngcontent-%COMP%]   .show[_ngcontent-%COMP%]{display:block}.main-container-box[_ngcontent-%COMP%]   .custom-form-control[_ngcontent-%COMP%]{width:100%;padding:12px;font-size:16px;border:1px solid #ccc;outline:none;border-top-right-radius:5px;border-bottom-right-radius:5px}.main-container-box[_ngcontent-%COMP%]   .custom-form-control[_ngcontent-%COMP%]:focus{outline:none!important}.main-container-box[_ngcontent-%COMP%]   .dial-code[_ngcontent-%COMP%]{padding:12.5px;font-size:16px;border:1px solid #ccc;font-weight:700}.custom-form-control-error[_ngcontent-%COMP%]{color:#ee3939;font-style:italic}"]}),t})(),$z=(()=>{class t{constructor(t,e,n,i,r,o,s){this._fb=t,this.cn=e,this._pageLoaderService=n,this.dialog=i,this.router=r,this.authCodeByOtpSmsService=o,this.enrollmentService=s,this.validation_messages={phone:[{type:"required",message:"Por favor, ingresa el Telefono m\xf3vil"},{type:"minlength",message:"El telefono m\xf3vil debe tener minimo 8 d\xedgitos."},{type:"maxlength",message:"El telefono m\xf3vil debe tener maximo 10 d\xedgitos."}]},this.userEnrollmentPhoneNumber=new Vz}ngOnInit(){this.user=JSON.parse(sessionStorage.getItem("userData")),this.formVerify=this._fb.group({phone:[this.user.phone,[Ha.required,Ha.minLength(8),Ha.maxLength(10)]],dialCode:[this.user.dialCode]})}sendCode(){this.userEnrollmentPhoneNumber.dialCode=this.formVerify.controls.dialCode.value,this.userEnrollmentPhoneNumber.phone=this.formVerify.controls.phone.value;const t=this.user.email,e=new jz;e.email=t,e.phone=this.userEnrollmentPhoneNumber.phone,e.dialCode=this.userEnrollmentPhoneNumber.dialCode.toString(),this.authCodeByOtpSmsService.createAuthCodeOTP(e).subscribe(t=>{this.cn.log("createAuthCodeOTPsms() reply:",t)},t=>{this.cn.error("createAuthCodeOTPsms() error:",t),this._pageLoaderService.hide()}),this.saveInLocalStorage(),this.router.navigate(["corporate/enrollment/validate-code"])}saveInLocalStorage(){sessionStorage.setItem("UEPhoneNumber",JSON.stringify(this.userEnrollmentPhoneNumber))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Gi),i.Ob(pg),i.Ob(Jb),i.Ob(Zs),i.Ob(mg),i.Ob(_g))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-enrollment-validate-phonenumber"]],decls:21,vars:5,consts:[[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"text-center"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"title-with-line"],[1,"cnt-top-up-balance","box-white-without-bnn"],[1,"content-top-up-balance"],["novalidate","",3,"formGroup"],[3,"idform","form","validation_messages"],[1,"mt-3","text-center"],["type","button",1,"customBtn","full-btn",3,"disabled","click"],[1,"small-txt","mt-4"],["routerLink","/corporate/pv/enrollment/user-enrollment"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div"),i.Ub(2,"div",1),i.Pb(3,"img",2),i.Tb(),i.Ub(4,"h5",3),i.Lc(5,"Validaci\xf3n del tel\xe9fono m\xf3vil"),i.Tb(),i.Ub(6,"p"),i.Lc(7," Por tu seguridad, debemos comprobar que el tel\xe9fono registrado realmente es tuyo. "),i.Tb(),i.Tb(),i.Ub(8,"div",4),i.Ub(9,"div",5),i.Ub(10,"div"),i.Ub(11,"p"),i.Lc(12,' Verifica que tu n\xfamero este correcto y haz clic en el bot\xf3n "Continuar". '),i.Tb(),i.Tb(),i.Ub(13,"form",6),i.Pb(14,"app-phone-number-input",7),i.Ub(15,"div",8),i.Ub(16,"button",9),i.cc("click",(function(){return e.sendCode()})),i.Lc(17,"Continuar"),i.Tb(),i.Ub(18,"div",10),i.Ub(19,"a",11),i.Lc(20,"Cancelar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(13),i.mc("formGroup",e.formVerify),i.Db(1),i.mc("idform",0)("form",e.formVerify)("validation_messages",e.validation_messages),i.Db(2),i.mc("disabled",!e.formVerify.valid))},directives:[zc,Fa,Yc,Yz,ea],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})(),Wz=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-enrollment-validate"]],decls:3,vars:0,consts:[[1,"cnt-bg-office"]],template:function(t,e){1&t&&(i.Pb(0,"aswc-page-loader-default"),i.Ub(1,"div",0),i.Pb(2,"router-outlet"),i.Tb())},styles:[""]}),t})();const Kz=["ngOtpInput"];function Qz(t,e){if(1&t){const t=i.Vb();i.Ub(0,"ng-otp-input",15,16),i.cc("onInputChange",(function(e){return i.yc(t),i.gc().onOtpChange(e)})),i.Tb()}if(2&t){const t=i.gc();i.mc("config",t.config)}}let Xz=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c){this.cn=t,this._pageLoaderService=e,this.dialog=n,this.router=i,this.kcSvc=r,this.authCodeByOtpSmsService=o,this.enrollmentService=s,this.usersService=a,this.authService=c,this.validateInput=!1,this.progressbarValue=0,this.curSec=300,this.seconds=300,this.showOtpComponent=!0,this.userEnrollment=new AS,this.config={allowNumbersOnly:!0,length:4,isPasswordInput:!1,disableAutoFocus:!1,placeholder:"",containerClass:"groupField-pinOTP",inputClass:"field-pinOTP"}}ngOnInit(){this.userEnrollmentPhoneNumber=JSON.parse(sessionStorage.getItem("UEPhoneNumber")),this.user=JSON.parse(sessionStorage.getItem("userData")),this.getUser(),this.startTimer(this.seconds)}ngOnDestroy(){this.cn.log("===== ngOnDestroy() ====="),void 0!==this.sub&&this.sub.unsubscribe()}getUser(){this._pageLoaderService.show();const t=this.authService.getUser();this.usersService.getUsers("email",t.email).subscribe(t=>{this.cn.log("===== getUsers() =====",t),this.userdb=t.operationBody[0],this._pageLoaderService.hide()})}onOtpChange(t){this.otp=t,this.validateInput=4===t.length}setVal(t){this.ngOtpInput.setValue(t)}startTimer(t){const e=aL(1e3);this.sub=e.subscribe(e=>{this.progressbarValue=100-100*e/t-2,--this.curSec,0===this.curSec&&(this.sub.unsubscribe(),this.validateInput=!1)})}verificateCode(){this._pageLoaderService.show(),this.authCodeByOtpSmsService.getAuthCodeOTP(+this.otp).subscribe(t=>{this.cn.log("getAuthCodeOTPSms() reply:",t),this.checkMinuteDifference(new Date(t.operationBody[0].expDate),new Date)<=0?(this.showGeneralDialog("El c\xf3digo que ingresaste ha expirado.").subscribe(),this._pageLoaderService.hide()):this.getEnrollment()},t=>{this.cn.error("getAuthCodeOTPSms() error:",t),this.showGeneralDialog("C\xf3digo inv\xe1lido").subscribe(),this._pageLoaderService.hide()})}sendCode(){this.reset();const t=this.user.email,e=new jz;e.email=t,e.phone=this.userEnrollmentPhoneNumber.phone,e.dialCode=this.userEnrollmentPhoneNumber.dialCode.toString(),this._pageLoaderService.show(),this.authCodeByOtpSmsService.createAuthCodeOTP(e).subscribe(t=>{this.cn.log("createAuthCodeOTPsms() reply:",t),this._pageLoaderService.hide(),this.startTimer(this.seconds),this.showGeneralDialog("El C\xf3digo de autenticaci\xf3n fue enviado exitosamente.").subscribe()},t=>{this.cn.error("createAuthCodeOTPsms() error:",t),this._pageLoaderService.hide()})}checkMinuteDifference(t,e){this.cn.log("time1:",t.getTime(),"time2:",e.getTime());const n=t.getTime()-e.getTime();this.cn.log("difference:",n);const i=Math.round(n/6e4);return this.cn.log("resultInMinutes:",i),i}showGeneralDialog(t,e,n,i){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:i,width:"830px",data:e}).afterClosed()}getEnrollment(){this._pageLoaderService.show(),this.enrollmentService.getEnrollment(+this.user.notaryId,this.user.email).subscribe(t=>{this.cn.log("getEnrollment()",t),this.userEnrollment=t.operationBody[0],this.updateEnrollment()},t=>{this.cn.log("Error getEnrollment()",t),this._pageLoaderService.hide()})}updateEnrollment(){!1===this.userEnrollment.validPhoneNumber?(this.userEnrollment.validPhoneNumber=!0,this._pageLoaderService.show(),this.enrollmentService.updateEnrollment(this.userEnrollment).subscribe(t=>{this.cn.log("updateEnrollment()",t),this.showGeneralDialog("",{title:"El tel\xe9fono m\xf3vil se ha validado con \xe9xito",content:"Ya puedes hacer uso del tel\xe9fono m\xf3vil registrado para recibir notificaciones de tus tr\xe1mites notariales en tu celular.",actions:[{text:"Finalizar",value:"accepted",funct:"redirectEnrollment"}]},void 0,!0).subscribe(),this._pageLoaderService.hide(),this.updateUserPhone(),sessionStorage.removeItem("UEPhoneNumber")},t=>{this.cn.log("Error updateEnrollment()",t),this._pageLoaderService.hide()})):this._pageLoaderService.hide()}updateUserPhone(){this.userdb.phone=this.userEnrollmentPhoneNumber.phone,this.userdb.dialCode=this.userEnrollmentPhoneNumber.dialCode,this.usersService.udpateUser(this.userdb).subscribe(t=>{this.user.phone=this.userEnrollmentPhoneNumber.phone,this.user.dialCode=this.userEnrollmentPhoneNumber.dialCode,this.saveInLocalStorage()},t=>{this.cn.error("updateUser() error:",t)})}reset(){this.progressbarValue=0,this.curSec=300,this.sub.unsubscribe()}saveInLocalStorage(){this.cn.log("saveInLocalStorage()"),sessionStorage.setItem("userData",JSON.stringify(this.user))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Gi),i.Ob(pg),i.Ob(Jb),i.Ob(Zs),i.Ob(cr),i.Ob(mg),i.Ob(_g),i.Ob(jg),i.Ob(qS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-enrollment-valide-code"]],viewQuery:function(t,e){var n;1&t&&i.Qc(Kz,!0),2&t&&i.tc(n=i.dc())&&(e.ngOtpInput=n.first)},decls:26,vars:7,consts:[[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"text-center"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"title-with-line"],[1,"cnt-top-up-balance","box-white-without-bnn"],[1,"content-top-up-balance"],[3,"config","onInputChange",4,"ngIf"],[1,"text-center","my-4"],[1,"text-color-primary","c-pointer",3,"click"],[1,"text-right","text-color-secondary"],["mode","determinate","color","accent",3,"value"],[1,"mt-3","text-center"],["type","button",1,"customBtn","full-btn",3,"disabled","click"],[1,"small-txt","mt-4"],["routerLink","/corporate/enrollment/validate-phonenumber"],[3,"config","onInputChange"],["ngOtpInput",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div"),i.Ub(2,"div",1),i.Pb(3,"img",2),i.Tb(),i.Ub(4,"h5",3),i.Lc(5,"C\xf3digo de verificaci\xf3n"),i.Tb(),i.Ub(6,"p"),i.Lc(7," Hemos enviado un c\xf3digo de verificaci\xf3n por mensaje de texto. "),i.Tb(),i.Tb(),i.Ub(8,"div",4),i.Ub(9,"div",5),i.Jc(10,Qz,2,1,"ng-otp-input",6),i.Ub(11,"div",7),i.Lc(12," \xbfNo lo recibiste?, "),i.Ub(13,"a",8),i.cc("click",(function(){return e.sendCode()})),i.Lc(14,"enviar un nuevo c\xf3digo"),i.Tb(),i.Tb(),i.Ub(15,"div"),i.Ub(16,"div",9),i.Lc(17),i.hc(18,"date"),i.Tb(),i.Pb(19,"mat-progress-bar",10),i.Tb(),i.Ub(20,"div",11),i.Ub(21,"button",12),i.cc("click",(function(){return e.verificateCode()})),i.Lc(22,"Validar"),i.Tb(),i.Ub(23,"div",13),i.Ub(24,"a",14),i.Lc(25,"Volver"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(10),i.mc("ngIf",e.showOtpComponent),i.Db(7),i.Nc(" ",i.jc(18,4,1e3*e.curSec,"mm:ss")," "),i.Db(2),i.mc("value",e.progressbarValue),i.Db(2),i.mc("disabled",!e.validateInput))},directives:[o.t,NP,ea,jI],pipes:[o.f],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})();function Zz(t,e){1&t&&(i.Ub(0,"span",16),i.Lc(1,"Validaci\xf3n en proceso"),i.Tb())}function tq(t,e){1&t&&(i.Ub(0,"span",17),i.Lc(1,"Validado"),i.Tb())}let eq=(()=>{class t{constructor(t,e){this.data=t,this.cn=e}ngOnInit(){this.info=this.data}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zb),i.Ob(Gi))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-user-face-to-face-msg"]],decls:45,vars:15,consts:[["mat-dialog-content",""],[1,"title-dialogs","text-center","mb-4"],["class","ttl-dialog-status ttl-dialog-status-alert",4,"ngIf"],["class","ttl-dialog-status ttl-dialog-status-success",4,"ngIf"],[1,"cnt-basicInfo-notary","mb-4"],[1,"row","align-items-center"],[1,"col-12","col-sm"],["alt","Notary logo",1,"info-notary-img",3,"src"],[1,"col-12","col-sm","mt-4","mt-sm-0"],[1,"basicInfo-notary","text-left","text-sm-right"],[1,"txt-bold"],[1,"mb-4"],[1,"list-info-notary"],["target","_blank",3,"href"],["mat-dialog-actions","",1,"justify-content-center"],["mat-dialog-close","",1,"customBtn","mb-2","mb-sm-4"],[1,"ttl-dialog-status","ttl-dialog-status-alert"],[1,"ttl-dialog-status","ttl-dialog-status-success"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"section"),i.Ub(2,"h5",1),i.Lc(3," La notar\xeda ha recibido la solicitud "),i.Jc(4,Zz,2,0,"span",2),i.Jc(5,tq,2,0,"span",3),i.Tb(),i.Ub(6,"p"),i.Lc(7," Hemos enviando tu solicitud para finalizar el proceso de enrolamiento y activar tu cuenta. Dir\xedgete a la notar\xeda antes del "),i.Ub(8,"b"),i.Lc(9),i.hc(10,"date"),i.Tb(),i.Lc(11," y solicita el proceso de validaci\xf3n de identidad para dar de alta a tu cuenta en eNotary. En caso de no acercarte en esa fecha, debes volver a solicitar la validaci\xf3n. "),i.Tb(),i.Tb(),i.Ub(12,"section",4),i.Ub(13,"div",5),i.Ub(14,"div",6),i.Pb(15,"img",7),i.Tb(),i.Ub(16,"div",8),i.Ub(17,"div",9),i.Ub(18,"span"),i.Lc(19,"Presentate en:"),i.Tb(),i.Ub(20,"span",10),i.Lc(21),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(22,"section",11),i.Ub(23,"ul",12),i.Ub(24,"li"),i.Ub(25,"b"),i.Lc(26,"Direcci\xf3n: "),i.Tb(),i.Lc(27),i.Tb(),i.Ub(28,"li"),i.Ub(29,"b"),i.Lc(30,"Tel\xe9fono: "),i.Tb(),i.Lc(31),i.Tb(),i.Ub(32,"li"),i.Ub(33,"b"),i.Lc(34,"Website: "),i.Tb(),i.Ub(35,"a",13),i.Lc(36),i.Tb(),i.Tb(),i.Ub(37,"li"),i.Ub(38,"b"),i.Lc(39,"Email: "),i.Tb(),i.Ub(40,"a",13),i.Lc(41),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(42,"div",14),i.Ub(43,"button",15),i.Lc(44,"Cerrar"),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.mc("ngIf","VALIDATION_IN_PROCESS"===e.info.status),i.Db(1),i.mc("ngIf","APPROVED"===e.info.status),i.Db(4),i.Mc(i.jc(10,12,e.info.termDate,"dd/MM/yyyy")),i.Db(6),i.nc("src",""===(null==e.info.notary?null:e.info.notary.notaryLogoUrl)?"./assets/images/df-img-notary.png":null==e.info.notary?null:e.info.notary.notaryLogoUrl,i.Bc),i.Db(6),i.Oc("Notar\xeda ",(null==e.info?null:e.info.notary.notaryNumber)>0?null==e.info?null:e.info.notary.notaryNumber:null==e.info?null:e.info.notary.enterpriseName," del C\xedrculo de ",e.info.notary.city," "),i.Db(6),i.Mc(e.info.notary.notaryAddress),i.Db(4),i.Mc(e.info.notary.notaryPhone),i.Db(4),i.nc("href",e.info.notary.notaryWebsite,i.Bc),i.Db(1),i.Mc(e.info.notary.notaryWebsite),i.Db(4),i.oc("href","mailto:",e.info.notary.notaryEmail,"",i.Bc),i.Db(1),i.Mc(e.info.notary.notaryEmail))},directives:[Kb,o.t,Qb,$b],pipes:[o.f],styles:[".cnt-basicInfo-notary[_ngcontent-%COMP%]{background-color:#f0f3f4;padding:10px}.cnt-basicInfo-notary[_ngcontent-%COMP%]   .basicInfo-notary[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}.cnt-basicInfo-notary[_ngcontent-%COMP%]   .basicInfo-notary[_ngcontent-%COMP%]   span.txt-bold[_ngcontent-%COMP%]{font-weight:700}.cnt-basicInfo-notary[_ngcontent-%COMP%]   .info-notary-img[_ngcontent-%COMP%]{max-width:144px;min-height:40px;max-height:65px}ul.list-info-notary[_ngcontent-%COMP%]{list-style:none;padding-left:0}@media (max-width:576px){ul.list-info-notary[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:8px;word-break:break-all}ul.list-info-notary[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{display:block}}"]}),t})();function nq(t,e){1&t&&(i.Ub(0,"div",18),i.Lc(1," Tu cuenta a\xfan no ha completado el proceso de enrolamiento con la notar\xeda seleccionada. "),i.Tb())}function iq(t,e){1&t&&(i.Ub(0,"div",19),i.Ub(1,"mat-icon"),i.Lc(2,"check_circle_outline"),i.Tb(),i.Tb())}function rq(t,e){1&t&&(i.Ub(0,"span",20),i.Lc(1,"Validado"),i.Tb())}function oq(t,e){1&t&&(i.Ub(0,"span",21),i.Lc(1,"Sin validar"),i.Tb())}function sq(t,e){1&t&&(i.Ub(0,"div",19),i.Ub(1,"mat-icon"),i.Lc(2,"check_circle_outline"),i.Tb(),i.Tb())}function aq(t,e){1&t&&(i.Ub(0,"span",20),i.Lc(1,"Validado"),i.Tb())}function cq(t,e){1&t&&(i.Ub(0,"span",21),i.Lc(1,"Sin validar"),i.Tb())}function lq(t,e){1&t&&(i.Ub(0,"div",19),i.Ub(1,"mat-icon"),i.Lc(2,"check_circle_outline"),i.Tb(),i.Tb())}function uq(t,e){1&t&&(i.Ub(0,"span",20),i.Lc(1,"Validado"),i.Tb())}function dq(t,e){1&t&&(i.Ub(0,"span",21),i.Lc(1,"Sin validar"),i.Tb())}function hq(t,e){1&t&&(i.Ub(0,"span",22),i.Lc(1,"Esperando validaci\xf3n"),i.Tb())}let pq=(()=>{class t{constructor(t,e,n,i,r,o){this._pageLoaderService=t,this.dialog=e,this.cn=n,this.enrollmentService=i,this._snackBar=r,this.router=o,this.userEnrollment=new AS,this.v1=!1,this.v2=!1,this.v3=!1}ngOnInit(){this.countGet=0,this.twofactor=JSON.parse(sessionStorage.getItem("userTwoFactor")),this.getEnrollmentUser()}getEnrollmentUser(){this.cn.log("getEnrollment()");const t=JSON.parse(sessionStorage.getItem("userData"));null===t?setTimeout(()=>{this.getEnrollmentUser()},400):(this._pageLoaderService.show(),this.enrollmentService.getEnrollment(+t.notaryId,t.email).subscribe(t=>{this.cn.log("getEnrollment()",t),this.userEnrollment=t.operationBody[0],this.v1=this.userEnrollment.validPhoneNumber,this.v2=this.userEnrollment.validIdentificationNumber,this.v3=this.userEnrollment.validInNotary,this.notaryValidationStatus=this.userEnrollment.stateValidedInNotary,this.updateEnrollment(),this._pageLoaderService.hide()},t=>{this.cn.log("Error getEnrollment()",t),this.countGet=this.countGet+1,this.countGet<=8?setTimeout(()=>{this.getEnrollmentUser()},400):this._pageLoaderService.hide()}))}updateEnrollment(){"sms"===this.twofactor.method&&!0===this.twofactor.twoFactorVerify&&!1===this.userEnrollment.validPhoneNumber&&(this.userEnrollment.validPhoneNumber=!0,this.v1=this.userEnrollment.validPhoneNumber,this._pageLoaderService.show(),this.enrollmentService.updateEnrollment(this.userEnrollment).subscribe(t=>{this.cn.log("updateEnrollment()",t)},t=>{this.cn.log("Error updateEnrollment()",t)}))}validatePhoneNumber(){this.router.navigate(["corporate/enrollment/validate-phonenumber"])}validateId(){this.router.navigate(["corporate/enrollment/validate-id-suggestions"])}validateInNotary(){this.v1&&this.v2?(this._pageLoaderService.show(),this.enrollmentService.requestEnrollmentValidation(this.userEnrollment.email).subscribe(t=>{switch(this.cn.log("=====> requestEnrollmentValidation() Result"),this.cn.log(t),this._pageLoaderService.hide(),t.operationCode){case 1e3:this.showNotaryValidationData(t.operationBody);break;default:this.showDialog(t.operationMessage)}},t=>{this.cn.error("=====> requestEnrollmentValidation() ERROR"),this.cn.error(t),this._pageLoaderService.hide(),this.showDialog("Ha ocurrido un error, vuelve a intentarlo.")})):this.alertEnroll()}alertEnroll(){this._snackBar.open("Debes completar la validaci\xf3n de documento y tel\xe9fono m\xf3vil.","Vale",{duration:5e3,panelClass:["customSnackbar"]})}showDialog(t){return this.dialog.open(fU,{width:"480px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}showNotaryValidationData(t){this.dialog.open(eq,{width:"830px",data:t}).afterClosed().subscribe(t=>{this.getEnrollmentUser()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(pg),i.Ob(Jb),i.Ob(Gi),i.Ob(_g),i.Ob(QE),i.Ob(Zs))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-enrollment"]],decls:67,vars:14,consts:[[1,"container"],[1,"box-white-with-bnn","mt-4"],[1,"title-with-line"],["class","msg-entollment error-msg",4,"ngIf"],[1,"row","cnt-items-board"],[1,"col-12","col-lg-4","item-board"],[1,"box-item-board"],["class","ico-check-board",4,"ngIf"],[1,"box-item-board-icon"],[1,"box-item-board-title"],[1,"box-item-board-title-state"],["class","success-title-state",4,"ngIf"],["class","invalid-title-state",4,"ngIf"],[1,"box-item-board-descr"],["mat-raised-button","","color","primary",3,"disabled","click"],["class","inProgress-title-state",4,"ngIf"],[1,"small-txt"],[1,"mb-0"],[1,"msg-entollment","error-msg"],[1,"ico-check-board"],[1,"success-title-state"],[1,"invalid-title-state"],[1,"inProgress-title-state"]],template:function(t,e){1&t&&(i.Pb(0,"aswc-user-notary"),i.Ub(1,"div"),i.Ub(2,"div",0),i.Ub(3,"div",1),i.Ub(4,"h5",2),i.Lc(5,"Enrolamiento"),i.Tb(),i.Ub(6,"p"),i.Lc(7," Para completar tu registro en eNotary, es necesario que realices los siguientes pasos de enrolamiento. "),i.Tb(),i.Jc(8,nq,2,0,"div",3),i.Ub(9,"div",4),i.Ub(10,"div",5),i.Ub(11,"div",6),i.Jc(12,iq,3,0,"div",7),i.Ub(13,"div",8),i.Ub(14,"mat-icon"),i.Lc(15,"smartphone"),i.Tb(),i.Tb(),i.Ub(16,"div",9),i.Ub(17,"h5"),i.Lc(18," Validar tel\xe9fono m\xf3vil "),i.Ub(19,"span",10),i.Jc(20,rq,2,0,"span",11),i.Jc(21,oq,2,0,"span",12),i.Tb(),i.Tb(),i.Tb(),i.Ub(22,"div",13),i.Ub(23,"p"),i.Lc(24," Se env\xeda un c\xf3digo al celular para validar el n\xfamero registrado. "),i.Tb(),i.Tb(),i.Ub(25,"button",14),i.cc("click",(function(){return e.validatePhoneNumber()})),i.Lc(26,"Validar"),i.Tb(),i.Tb(),i.Tb(),i.Ub(27,"div",5),i.Ub(28,"div",6),i.Jc(29,sq,3,0,"div",7),i.Ub(30,"div",8),i.Ub(31,"mat-icon"),i.Lc(32,"chrome_reader_mode"),i.Tb(),i.Tb(),i.Ub(33,"div",9),i.Ub(34,"h5"),i.Lc(35," Cargar documento de identidad "),i.Ub(36,"span",10),i.Jc(37,aq,2,0,"span",11),i.Jc(38,cq,2,0,"span",12),i.Tb(),i.Tb(),i.Tb(),i.Ub(39,"div",13),i.Ub(40,"p"),i.Lc(41," Se sube foto del documento para validar el c\xf3digo bidimensional. "),i.Tb(),i.Tb(),i.Ub(42,"button",14),i.cc("click",(function(){return e.validateId()})),i.Lc(43,"Validar"),i.Tb(),i.Tb(),i.Tb(),i.Ub(44,"div",5),i.Ub(45,"div",6),i.Jc(46,lq,3,0,"div",7),i.Ub(47,"div",8),i.Ub(48,"mat-icon"),i.Lc(49,"fingerprint"),i.Tb(),i.Tb(),i.Ub(50,"div",9),i.Ub(51,"h5"),i.Lc(52," Validar en notar\xeda "),i.Ub(53,"span",10),i.Jc(54,uq,2,0,"span",11),i.Jc(55,dq,2,0,"span",12),i.Jc(56,hq,2,0,"span",15),i.Tb(),i.Tb(),i.Tb(),i.Ub(57,"div",13),i.Ub(58,"p"),i.Lc(59," Se debe hacer validaci\xf3n de identidad presencial en la notar\xeda. "),i.Tb(),i.Tb(),i.Ub(60,"button",14),i.cc("click",(function(){return e.validateInNotary()})),i.Lc(61,"Validar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(62,"div",16),i.Ub(63,"p",17),i.Ub(64,"b"),i.Lc(65,"Nota"),i.Tb(),i.Lc(66,". El proceso de enrolamiento presencial es independiente de cada notaria. Cada vez que asocies una nueva notar\xeda a tu perfil debes acercarte a la correspondiente para validar tu identidad y dar de alta a tu cuenta. "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(8),i.mc("ngIf",!1===e.v1||!1===e.v2||!1===e.v3),i.Db(4),i.mc("ngIf",!0===e.v1),i.Db(8),i.mc("ngIf",!0===e.v1),i.Db(1),i.mc("ngIf",!1===e.v1),i.Db(4),i.mc("disabled",e.v1),i.Db(4),i.mc("ngIf",!0===e.v2),i.Db(8),i.mc("ngIf",!0===e.v2),i.Db(1),i.mc("ngIf",!1===e.v2),i.Db(4),i.mc("disabled",e.v2),i.Db(4),i.mc("ngIf",!0===e.v3),i.Db(8),i.mc("ngIf","Validado"===e.notaryValidationStatus),i.Db(1),i.mc("ngIf","Sin validar"===e.notaryValidationStatus),i.Db(1),i.mc("ngIf","Esperando validacion"===e.notaryValidationStatus),i.Db(4),i.mc("disabled",e.v3))},directives:[xB,o.t,Kv,zm],styles:['.bnn_home[_ngcontent-%COMP%]{background:rgba(38,82,118,.085);padding:2rem 0 6rem;margin:0 0 -5.6rem}.sc_summary[_ngcontent-%COMP%]{color:#22385e}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .info-notary-img[_ngcontent-%COMP%]{max-width:200px;min-height:40px;max-height:87px}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span.info-notary-result[_ngcontent-%COMP%]{font-weight:700}.bnn_home[_ngcontent-%COMP%]   .info-notary-bnn[_ngcontent-%COMP%]   span.info-notary-change[_ngcontent-%COMP%]{font-size:14px}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]{width:54px;height:54px;margin:0 auto .8rem;border-radius:100%;position:relative;overflow:hidden;border:2px solid rgba(0,0,0,.1)}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .imgprofile_bnn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;min-width:100%;min-height:100%}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .id_user_bnn[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .name_user_bnn[_ngcontent-%COMP%]{margin-bottom:0}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .name_user_bnn[_ngcontent-%COMP%]{font-weight:700;font-size:18px;text-transform:capitalize}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .id_user_bnn[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Tag[_ngcontent-%COMP%]{color:rgba(0,0,0,.8);font-size:14px}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .id_user_bnn[_ngcontent-%COMP%]:after{content:"";display:block;width:40px;height:2px;margin:1rem auto;background-color:#4fbfd3}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]{margin-top:10px;margin-bottom:0}.bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Name[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .info_user_bnn[_ngcontent-%COMP%]   .preferenceNotary[_ngcontent-%COMP%]   .preferenceNotary_Tag[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]{margin-top:1rem}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]{border-right:1px solid #d1dbe2}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]:last-child{border-right:0}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .number_state[_ngcontent-%COMP%], .bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .tag_state[_ngcontent-%COMP%]{display:block}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .number_state[_ngcontent-%COMP%]{font-weight:400;font-size:18px}.bnn_home[_ngcontent-%COMP%]   .summary-state-docs[_ngcontent-%COMP%]   .item_state_docs[_ngcontent-%COMP%]   .tag_state[_ngcontent-%COMP%]{color:#88a0b5;font-weight:300;font-size:12px}.msg-entollment[_ngcontent-%COMP%]{padding:.6rem 1rem;border-radius:10px;font-size:14px}.msg-entollment.success-msg[_ngcontent-%COMP%]{background-color:#b6eee4;border:1px solid #3c9e8c}.msg-entollment.error-msg[_ngcontent-%COMP%]{background-color:#ffe5e5;border:1px solid #d96a6a}']}),t})();function mq(t,e){if(1&t&&(i.Ub(0,"div"),i.Ub(1,"button",7),i.cc("click",(function(){const t=e.$implicit;return i.gc()[t.funct](t.value)})),i.Lc(2),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(2),i.Mc(t.text)}}let fq=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}close(t){this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(zb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-detail-modal"]],inputs:{modalContent:"modalContent",modalTitle:"modalTitle"},decls:10,vars:3,consts:[[1,"notification-modal"],["mat-dialog-content",""],["mat-dialog-title",""],[3,"innerHTML"],["messagecontainer",""],["mat-dialog-actions","",1,"bttns-notification-modal"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"h1",2),i.Lc(3),i.Tb(),i.Pb(4,"div",3),i.Ub(5,"template",null,4),i.Lc(7,"\n        "),i.Tb(),i.Tb(),i.Ub(8,"div",5),i.Jc(9,mq,3,1,"div",6),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.Mc(e.data.title),i.Db(1),i.mc("innerHTML",e.data.content,i.zc),i.Db(5),i.mc("ngForOf",e.data.actions))},directives:[Kb,Wb,Qb,o.s,zm],styles:[".notification-modal[_ngcontent-%COMP%]{text-align:center}.notification-modal[_ngcontent-%COMP%]   .mat-dialog-content[_ngcontent-%COMP%]{overflow:initial}.notification-modal[_ngcontent-%COMP%]   .box-ico-notification[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-24px -24px 2rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.notification-modal[_ngcontent-%COMP%]   .box-ico-notification[_ngcontent-%COMP%]   .ico-notification[_ngcontent-%COMP%]{max-width:6.4rem}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:1rem}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-right:0}"]}),t})(),bq=(()=>{class t{constructor(t,e){this.formBuilder=t,this.dialogRef=e,this.fg=this.formBuilder.group({message:["",[Ha.required]]})}rejectSignature(){this.dialogRef.close(this.fg.controls.message.value)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-dialog-reject-signature"]],decls:14,vars:2,consts:[["mat-dialog-title",""],[3,"formGroup"],["matInput","","placeholder","Razones por las cuales no firmas los documentos ","formControlName","message","required","",2,"height","65px"],[1,"text-center","w-100"],["type","button","mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1,"Rechazar Firma"),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Ub(3,"form",1),i.Ub(4,"mat-form-field"),i.Pb(5,"textarea",2),i.Tb(),i.Tb(),i.Tb(),i.Ub(6,"mat-dialog-actions"),i.Ub(7,"div",3),i.Ub(8,"p"),i.Lc(9,"\xbfSeguro quieres rechazar la firma de los documentos?"),i.Tb(),i.Ub(10,"button",4),i.Lc(11,"No"),i.Tb(),i.Ub(12,"button",5),i.cc("click",(function(){return e.rejectSignature()})),i.Lc(13,"Si"),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("formGroup",e.fg),i.Db(9),i.mc("disabled",e.fg.invalid))},directives:[Wb,Kb,zc,Fa,Yc,Uv,uy,Aa,Na,tl,il,Qb,zm,$b],styles:[""]}),t})();class gq{constructor(){this.email="",this.idNotary="",this.nameProcedure="",this.idProcedure="",this.date="",this.hour="",this.initDate="",this.endDate=""}}let _q=(()=>{class t{constructor(t,e){this.data=t,this.dialogRef=e}ngOnInit(){}convertHour(t){let e=t.split(":")[0],n=t.split(":")[1];const i=e>12?"pm":"am";return n=1===(n+"").length?"0"+n:n,e=e>12?e-12:e,e=1===(e+"").length?"0"+e:e,`${e}:${n} ${i}`}close(t){this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zb),i.Ob(jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-cancel-schedule"]],decls:14,vars:5,consts:[[1,"df-modal-mssg"],["mat-dialog-content",""],[1,"icon-std-modal"],["src","./assets/images/Iconos/standard-icons/ico-dfMessage-grlInfo.png","alt",""],[1,"titleAndDesc-std-modal"],["mat-dialog-actions","",1,"btnActions-std-modal"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","mat-dialog-close",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"img",3),i.Tb(),i.Ub(4,"div",4),i.Ub(5,"h5"),i.Lc(6,"Cancelar cita"),i.Tb(),i.Ub(7,"p"),i.Lc(8),i.Tb(),i.Tb(),i.Tb(),i.Ub(9,"div",5),i.Ub(10,"button",6),i.cc("click",(function(){return e.close("Confirmar")})),i.Lc(11,"Confirmar"),i.Tb(),i.Ub(12,"button",7),i.Lc(13,"Cerrar"),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(8),i.Pc("\xbfConfirmas que deseas cancelar la cita agendada para el ",e.data.date," a las ",e.convertHour(e.data.hour)," para realizar el tr\xe1mite: ",e.data.nameProcedure," en la Notar\xeda ",(null==e.data.notary?null:e.data.notary.notaryNumber)>0?null==e.data.notary?null:e.data.notary.notaryNumber:null==e.data.notary?null:e.data.notary.enterpriseName," del C\xedrculo de ",null==e.data.notary?null:e.data.notary.city,"?"))},directives:[Kb,Qb,zm,$b],styles:[""]}),t})(),vq=(()=>{class t{constructor(t){this.data=t}ngOnInit(){}convertHour(t){let e=t.split(":")[0],n=t.split(":")[1];const i=e>12?"pm":"am";return n=1===(n+"").length?"0"+n:n,e=e>12?e-12:e,e=1===(e+"").length?"0"+e:e,`${e}:${n} ${i}`}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(zb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-detail-schedule"]],decls:51,vars:12,consts:[["mat-dialog-content",""],[1,"title-dialogs","text-center","mb-4"],[1,"cnt-basicInfo-notary","mb-4"],[1,"row","align-items-center"],[1,"col-12","col-sm"],["alt","",1,"info-notary-img",3,"src"],[1,"col-12","col-sm","mt-4","mt-sm-0"],[1,"basicInfo-notary","text-left","text-sm-right"],[1,"txt-bold"],[1,"mb-4"],[1,"list-info-notary"],["target","_blank",3,"href"],["mat-dialog-actions","",1,"justify-content-center"],["mat-dialog-close","",1,"customBtn","mb-2","mb-sm-4"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"section"),i.Ub(2,"h5",1),i.Lc(3," Informaci\xf3n de la cita "),i.Tb(),i.Ub(4,"p"),i.Lc(5," Hemos enviando tu solicitud a la notar\xeda seleccionada. Dir\xedgete a la notar\xeda el d\xeda "),i.Ub(6,"b"),i.Lc(7),i.Tb(),i.Lc(8," a las "),i.Ub(9,"b"),i.Lc(10),i.Tb(),i.Lc(11," para realizar el tr\xe1mite: "),i.Ub(12,"b"),i.Lc(13),i.Tb(),i.Lc(14,". Si no puedes asistir, recuerda cancelar con "),i.Ub(15,"b"),i.Lc(16,"24 horas"),i.Tb(),i.Lc(17," de anticipaci\xf3n. "),i.Tb(),i.Tb(),i.Ub(18,"section",2),i.Ub(19,"div",3),i.Ub(20,"div",4),i.Pb(21,"img",5),i.Tb(),i.Ub(22,"div",6),i.Ub(23,"div",7),i.Ub(24,"span"),i.Lc(25,"Presentate en:"),i.Tb(),i.Ub(26,"span",8),i.Lc(27),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(28,"section",9),i.Ub(29,"ul",10),i.Ub(30,"li"),i.Ub(31,"b"),i.Lc(32,"Direcci\xf3n: "),i.Tb(),i.Lc(33),i.Tb(),i.Ub(34,"li"),i.Ub(35,"b"),i.Lc(36,"Tel\xe9fono: "),i.Tb(),i.Lc(37),i.Tb(),i.Ub(38,"li"),i.Ub(39,"b"),i.Lc(40,"Website: "),i.Tb(),i.Ub(41,"a",11),i.Lc(42),i.Tb(),i.Tb(),i.Ub(43,"li"),i.Ub(44,"b"),i.Lc(45,"Email: "),i.Tb(),i.Ub(46,"a",11),i.Lc(47),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(48,"div",12),i.Ub(49,"button",13),i.Lc(50,"Cerrar"),i.Tb(),i.Tb()),2&t&&(i.Db(7),i.Mc(e.data.date),i.Db(3),i.Mc(e.convertHour(e.data.hour)),i.Db(3),i.Mc(e.data.nameProcedure),i.Db(8),i.nc("src",""===(null==e.data.notary?null:e.data.notary.notaryLogoUrl)?"./assets/images/df-img-notary.png":null==e.data.notary?null:e.data.notary.notaryLogoUrl,i.Bc),i.Db(6),i.Oc("Notar\xeda ",(null==e.data.notary?null:e.data.notary.notaryNumber)>0?null==e.data.notary?null:e.data.notary.notaryNumber:null==e.data.notary?null:e.data.notary.enterpriseName," del C\xedrculo de ",null==e.data.notary?null:e.data.notary.city," "),i.Db(6),i.Nc(" ",null==e.data.notary?null:e.data.notary.notaryAddress," "),i.Db(4),i.Nc(" ",null==e.data.notary?null:e.data.notary.notaryPhone,""),i.Db(4),i.nc("href",null==e.data.notary?null:e.data.notary.notaryWebsite,i.Bc),i.Db(1),i.Mc(null==e.data.notary?null:e.data.notary.notaryWebsite),i.Db(4),i.oc("href","mailto:",null==e.data.notary?null:e.data.notary.notaryEmail,"",i.Bc),i.Db(1),i.Mc(null==e.data.notary?null:e.data.notary.notaryEmail))},directives:[Kb,Qb,$b],styles:[".cnt-basicInfo-notary[_ngcontent-%COMP%]{background-color:#f0f3f4;padding:10px}.cnt-basicInfo-notary[_ngcontent-%COMP%]   .basicInfo-notary[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}.cnt-basicInfo-notary[_ngcontent-%COMP%]   .basicInfo-notary[_ngcontent-%COMP%]   span.txt-bold[_ngcontent-%COMP%]{font-weight:700}.cnt-basicInfo-notary[_ngcontent-%COMP%]   .info-notary-img[_ngcontent-%COMP%]{max-width:144px;min-height:40px;max-height:65px}ul.list-info-notary[_ngcontent-%COMP%]{list-style:none;padding-left:0}@media (max-width:576px){ul.list-info-notary[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-bottom:8px;word-break:break-all}ul.list-info-notary[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{display:block}}"]}),t})();var yq=n("NFKh");let wq=(()=>{class t{constructor(t){this.dialog=t,this.isOpen=!0}toggle(){this.isOpen=!this.isOpen}openDialog(){this.dialog.open(fU,{width:"830px",data:{title:"titulo de ejemplo",content:"texto de ejemplo",actions:[{text:"rechazar",value:"rejected",funct:"close"},{text:"aceptar",value:"accepted2",funct:"close2"}]}}).afterClosed().subscribe(t=>{console.log("The dialog was closed: ",t)})}openDialogTermsAndConditions(){this.dialog.open(eg,{width:"70%",data:{title:"T\xc9RMINOS Y CONDICIONES DE USO DE ENOTARY"}}).afterClosed().subscribe(t=>{console.log("The dialog was closed: ",t)})}openDialogDetail(){this.dialog.open(Ej,{height:"60%",width:"70%",data:{title:"Detalle Proceso",content:[{id:1,text:"Sentence 1"},{id:2,text:"Sentence 2"},{id:3,text:"Sentence 3"},{id:4,text:"Sentenc4 "}],actions:[{text:"Cerrar",value:"rejected",funct:"close"}]}}).afterClosed().subscribe(t=>{console.log("The dialog was closed: ",t)})}showGeneralDialogCapture(t,e){const n={title:t};void 0===e&&(e=FU);const i=new Lb;i.disableClose=!0,i.data={height:"85%",width:"70%",data:n},this.dialog.open(FU,i).afterClosed().subscribe(t=>{})}decrypt(t){const e=yq.enc.Utf8.parse("AnSVqHZ57y9Pcb6E");return yq.AES.decrypt(t,e,{iv:e}).toString(yq.enc.Utf8)}click(){const t=this.decrypt("bYWf9jc2WFpA4yxp58GwKNRHN0ef0RgQhsn6zEcKDgY=");console.log("click decrypt:",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-test-modal"]],decls:16,vars:3,consts:[[1,"pt-4","text-center"],["mat-raised-button","","color","primary",3,"click"],[1,"open-close-container"],[3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"h2"),i.Lc(2,"Test Modal"),i.Tb(),i.Ub(3,"p"),i.Lc(4,"Esta pantalla se creo con el prop\xf3sito de probar las ventanas emergentes de angular, cuando ya no se requiera puede ser eleiminada."),i.Tb(),i.Ub(5,"button",1),i.cc("click",(function(){return e.showGeneralDialogCapture("")})),i.Lc(6,"ABRIR MODAL"),i.Tb(),i.Ub(7,"button",1),i.cc("click",(function(){return e.openDialogDetail()})),i.Lc(8,"ABRIR MODAL DETALLE"),i.Tb(),i.Ub(9,"button",1),i.cc("click",(function(){return e.openDialogTermsAndConditions()})),i.Lc(10,"ABRIR MODAL TERMINOS"),i.Tb(),i.Ub(11,"div",2),i.Ub(12,"p"),i.Lc(13),i.Tb(),i.Tb(),i.Ub(14,"button",3),i.cc("click",(function(){return e.click()})),i.Lc(15,"decrypt"),i.Tb(),i.Tb()),2&t&&(i.Db(7),i.mc("@fadeIn",void 0),i.Db(4),i.mc("@openClose",e.isOpen?"open":"closed"),i.Db(2),i.Nc("The box is now ",e.isOpen?"Open":"Closed","!"))},directives:[zm],encapsulation:2,data:{animation:[It("openClose",[Nt("open",Rt({height:"200px",opacity:1,backgroundColor:"yellow"})),Nt("closed",Rt({height:"100px",opacity:.5,backgroundColor:"green"})),Vt("open => closed",[Mt("1s")]),Vt("closed => open",[Mt("0.5s")])])]}}),t})();function Cq(t,e){1&t&&(i.Ub(0,"div",5),i.Ub(1,"div",2),i.Pb(2,"img",3),i.Ub(3,"label",4),i.Lc(4,"Estamos procesando tu solicitud "),i.Pb(5,"br"),i.Ub(6,"span"),i.Lc(7,"."),i.Tb(),i.Ub(8,"span"),i.Lc(9,"."),i.Tb(),i.Ub(10,"span"),i.Lc(11,"."),i.Tb(),i.Tb(),i.Tb(),i.Tb())}let xq=(()=>{class t{constructor(t){this._pageLoaderService=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(pg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-page-loader-default"]],decls:13,vars:1,consts:[["class","se-pre-con",4,"ngIf"],[1,"se-pre-con-jquery",2,"display","none"],[1,"content-loader-site","mx-auto"],["src","./assets/images/loader-64x/Preloader_1.gif","alt",""],[1,"content-loader-site"],[1,"se-pre-con"]],template:function(t,e){1&t&&(i.Jc(0,Cq,12,0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"img",3),i.Ub(4,"label",4),i.Lc(5,"Estamos procesando tu solicitud "),i.Pb(6,"br"),i.Ub(7,"span"),i.Lc(8,"."),i.Tb(),i.Ub(9,"span"),i.Lc(10,"."),i.Tb(),i.Ub(11,"span"),i.Lc(12,"."),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&i.mc("ngIf",e._pageLoaderService._loading)},directives:[o.t],styles:[".se-pre-con[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;left:0;top:0;width:100%;height:100%;z-index:9999;background:rgba(33,56,94,.95)}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{text-align:center}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:160px}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;font-weight:300;display:block}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:50px;-webkit-animation-name:blink;animation-name:blink;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.se-pre-con-jquery[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;left:0;top:0;width:100%;height:100%;z-index:99999;background:rgba(0,0,0,.95)}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{text-align:center}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:200px}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;font-weight:300;display:block}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:50px;-webkit-animation-name:blink;animation-name:blink;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}"]}),t})();function Oq(t,e){1&t&&(i.Ub(0,"div",1),i.Ub(1,"div",2),i.Pb(2,"img",3),i.Tb(),i.Tb())}let Sq=(()=>{class t{constructor(t){this._pageLoaderServiceInitial=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(BS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-page-loader-initial"]],decls:1,vars:1,consts:[["class","se-pre-con",4,"ngIf"],[1,"se-pre-con"],[1,"content-loader-site","mx-auto"],["src","./assets/images/loader-64x/Preloader_1.gif","alt",""]],template:function(t,e){1&t&&i.Jc(0,Oq,3,0,"div",0),2&t&&i.mc("ngIf",e._pageLoaderServiceInitial._loading)},directives:[o.t],styles:[".se-pre-con[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;left:0;top:0;width:100%;height:100%;z-index:9999;background:rgba(33,56,94,.95)}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{text-align:center}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:200px}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;font-weight:300;display:block}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:50px;-webkit-animation-name:blink;animation-name:blink;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.se-pre-con-jquery[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;left:0;top:0;width:100%;height:100%;z-index:99999;background:rgba(0,0,0,.95)}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{text-align:center}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:160px}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;font-weight:300;display:block}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:50px;-webkit-animation-name:blink;animation-name:blink;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.se-pre-con-jquery[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}"]}),t})();function Tq(t,e){1&t&&(i.Ub(0,"div",1),i.Ub(1,"div",2),i.Ub(2,"div",3),i.Pb(3,"img",4),i.Ub(4,"div",5),i.Lc(5," Estamos procesando tu solicitud "),i.Pb(6,"br"),i.Ub(7,"small"),i.Lc(8,"Este proceso puede tardar hasta 2 minutos"),i.Tb(),i.Pb(9,"br"),i.Tb(),i.Ub(10,"div",6),i.Ub(11,"ul",7),i.Ub(12,"li",8),i.Pb(13,"img",9),i.Ub(14,"div",10),i.Lc(15," Relizando la prueba de rostro vivo. "),i.Tb(),i.Tb(),i.Ub(16,"li",11),i.Pb(17,"img",9),i.Ub(18,"div",10),i.Lc(19," Verificando los datos del documento de identidad. "),i.Tb(),i.Tb(),i.Ub(20,"li",12),i.Pb(21,"img",9),i.Ub(22,"div",10),i.Lc(23," Verificando que el documento de identidad es v\xe1lido. "),i.Tb(),i.Tb(),i.Ub(24,"li",13),i.Pb(25,"img",9),i.Ub(26,"div",10),i.Lc(27," Verificando que el documento no ha sido alterado. "),i.Tb(),i.Tb(),i.Ub(28,"li",14),i.Pb(29,"img",9),i.Ub(30,"div",10),i.Lc(31," Verificando el rostro de la persona. "),i.Tb(),i.Tb(),i.Ub(32,"li",15),i.Pb(33,"img",9),i.Ub(34,"div",10),i.Lc(35," Verificando que no se encuentre en listas restrictivas. "),i.Tb(),i.Tb(),i.Ub(36,"li",16),i.Pb(37,"img",9),i.Ub(38,"div",10),i.Lc(39," Firmando los documentos. "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())}let Dq=(()=>{class t{constructor(t){this._pageLoaderServiceMati=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(hg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-page-loader-mati"]],decls:1,vars:1,consts:[["class","se-pre-con",4,"ngIf"],[1,"se-pre-con"],[1,"content-loader-site","mx-auto"],[1,"container","wt-430"],["src","./assets/images/loader-64x/Preloader_1.gif","alt",""],[1,"content-loader-site"],[1,"cnt_list_tasks"],[1,"list-unstyled","text-left"],[1,"media","animated","fadeInUp"],["src","./assets/images/Iconos/check.svg","alt","...",1,"ico-check_task","mr-3"],[1,"media-body"],[1,"media","animated","fadeInUp","time-4s"],[1,"media","animated","fadeInUp","time-8s"],[1,"media","animated","fadeInUp","time-12s"],[1,"media","animated","fadeInUp","time-16s"],[1,"media","animated","fadeInUp","time-20s"],[1,"media","animated","fadeInUp","time-24s"]],template:function(t,e){1&t&&i.Jc(0,Tq,40,0,"div",0),2&t&&i.mc("ngIf",e._pageLoaderServiceMati._loading)},directives:[o.t],styles:[".se-pre-con[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;left:0;top:0;width:100%;min-height:100%;z-index:9999;background:rgba(33,56,94,.95)}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{text-align:center}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:160px}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;font-weight:300;display:block}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:50px;-webkit-animation-name:blink;animation-name:blink;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}@-webkit-keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}@keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}.cnt_list_tasks[_ngcontent-%COMP%]{color:#fff;font-weight:200;font-size:1rem;margin-top:2.2rem}.cnt_list_tasks[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{align-items:center;margin-bottom:10px}.cnt_list_tasks[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]:last-child{margin-bottom:0}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-4s[_ngcontent-%COMP%]{-webkit-animation-delay:4s;animation-delay:4s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-8s[_ngcontent-%COMP%]{-webkit-animation-delay:8s;animation-delay:8s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-12s[_ngcontent-%COMP%]{-webkit-animation-delay:12s;animation-delay:12s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-16s[_ngcontent-%COMP%]{-webkit-animation-delay:16s;animation-delay:16s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-20s[_ngcontent-%COMP%]{-webkit-animation-delay:20s;animation-delay:20s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-24s[_ngcontent-%COMP%]{-webkit-animation-delay:24s;animation-delay:24s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-28s[_ngcontent-%COMP%]{-webkit-animation-delay:28s;animation-delay:28s}.cnt_list_tasks[_ngcontent-%COMP%]   .ico-check_task[_ngcontent-%COMP%]{max-width:28px}"]}),t})();function kq(t,e){1&t&&(i.Ub(0,"div",1),i.Ub(1,"div",2),i.Ub(2,"div",3),i.Pb(3,"img",4),i.Ub(4,"div",5),i.Lc(5," Estamos procesando tu solicitud "),i.Pb(6,"br"),i.Ub(7,"small"),i.Lc(8,"Este proceso puede tardar hasta 2 minutos"),i.Tb(),i.Pb(9,"br"),i.Tb(),i.Ub(10,"div",6),i.Ub(11,"ul",7),i.Ub(12,"li",8),i.Pb(13,"img",9),i.Ub(14,"div",10),i.Lc(15," Agregando informaci\xf3n del firmante al PDF. "),i.Tb(),i.Tb(),i.Ub(16,"li",11),i.Pb(17,"img",9),i.Ub(18,"div",10),i.Lc(19," Imprimiendo fecha y hora. "),i.Tb(),i.Tb(),i.Ub(20,"li",12),i.Pb(21,"img",9),i.Ub(22,"div",10),i.Lc(23," Protegiendo la informaci\xf3n del documento. "),i.Tb(),i.Tb(),i.Ub(24,"li",13),i.Pb(25,"img",9),i.Ub(26,"div",10),i.Lc(27," Finalizando proceso... "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())}let Pq=(()=>{class t{constructor(t){this._pageLoaderServiceSign=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(uU))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-page-loader-sign"]],decls:1,vars:1,consts:[["class","se-pre-con",4,"ngIf"],[1,"se-pre-con"],[1,"content-loader-site","mx-auto"],[1,"container","wt-430"],["src","./assets/images/loader-64x/FirmaDeDocumentos.gif","alt","Cargando...",1,"animationGif","img-fluid"],[1,"content-loader-site"],[1,"cnt_list_tasks"],[1,"list-unstyled","text-left"],[1,"media","animated","fadeInUp","time-3s"],["src","./assets/images/Iconos/check.svg","alt","...",1,"ico-check_task","mr-3"],[1,"media-body"],[1,"media","animated","fadeInUp","time-5s"],[1,"media","animated","fadeInUp","time-7s"],[1,"media","animated","fadeInUp","time-12s"]],template:function(t,e){1&t&&i.Jc(0,kq,28,0,"div",0),2&t&&i.mc("ngIf",e._pageLoaderServiceSign._loading)},directives:[o.t],styles:[".se-pre-con[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;left:0;top:0;width:100%;min-height:100%;z-index:9999;background:rgba(33,56,94,.95)}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{text-align:center}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:160px}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;font-weight:300;display:block}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:50px;-webkit-animation-name:blink;animation-name:blink;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}@-webkit-keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}@keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}.cnt_list_tasks[_ngcontent-%COMP%]{color:#fff;font-weight:200;font-size:1rem;margin-top:2.2rem}.cnt_list_tasks[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{align-items:center;margin-bottom:10px}.cnt_list_tasks[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]:last-child{margin-bottom:0}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-3s[_ngcontent-%COMP%]{-webkit-animation-delay:3s;animation-delay:3s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-5s[_ngcontent-%COMP%]{-webkit-animation-delay:5s;animation-delay:5s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-7s[_ngcontent-%COMP%]{-webkit-animation-delay:7s;animation-delay:7s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-12s[_ngcontent-%COMP%]{-webkit-animation-delay:12s;animation-delay:12s}.cnt_list_tasks[_ngcontent-%COMP%]   .ico-check_task[_ngcontent-%COMP%]{max-width:28px}"]}),t})(),Eq=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-page-loader"]],decls:40,vars:0,consts:[[1,"se-pre-con",2,"display","flex"],[1,"content-loader-site","mx-auto"],[1,"container","wt-430"],["src","./assets/images/loader-64x/Preloader_1.gif","alt",""],[1,"content-loader-site"],[1,"cnt_list_tasks"],[1,"list-unstyled","text-left"],[1,"media","animated","fadeInUp"],["src","./assets/images/Iconos/check.svg","alt","...",1,"ico-check_task","mr-3"],[1,"media-body"],[1,"media","animated","fadeInUp","time-4s"],[1,"media","animated","fadeInUp","time-8s"],[1,"media","animated","fadeInUp","time-12s"],[1,"media","animated","fadeInUp","time-16s"],[1,"media","animated","fadeInUp","time-20s"],[1,"media","animated","fadeInUp","time-24s"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Pb(3,"img",3),i.Ub(4,"div",4),i.Lc(5," Estamos procesando tu solicitud "),i.Pb(6,"br"),i.Ub(7,"small"),i.Lc(8,"Este proceso puede tardar hasta 2 minutos"),i.Tb(),i.Pb(9,"br"),i.Tb(),i.Ub(10,"div",5),i.Ub(11,"ul",6),i.Ub(12,"li",7),i.Pb(13,"img",8),i.Ub(14,"div",9),i.Lc(15," Relizando la prueba de rostro vivo. "),i.Tb(),i.Tb(),i.Ub(16,"li",10),i.Pb(17,"img",8),i.Ub(18,"div",9),i.Lc(19," Verificando los datos del documento de identidad. "),i.Tb(),i.Tb(),i.Ub(20,"li",11),i.Pb(21,"img",8),i.Ub(22,"div",9),i.Lc(23," Verificando que el documento de identidad es v\xe1lido. "),i.Tb(),i.Tb(),i.Ub(24,"li",12),i.Pb(25,"img",8),i.Ub(26,"div",9),i.Lc(27," Verificando que el documento no ha sido alterado. "),i.Tb(),i.Tb(),i.Ub(28,"li",13),i.Pb(29,"img",8),i.Ub(30,"div",9),i.Lc(31," Verificando el rostro de la persona. "),i.Tb(),i.Tb(),i.Ub(32,"li",14),i.Pb(33,"img",8),i.Ub(34,"div",9),i.Lc(35," Verificando que no se encuentre en listas restrictivas. "),i.Tb(),i.Tb(),i.Ub(36,"li",15),i.Pb(37,"img",8),i.Ub(38,"div",9),i.Lc(39," Firmando los documentos. "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},styles:[".se-pre-con[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;left:0;top:0;width:100%;min-height:100%;z-index:9999;background:rgba(33,56,94,.95)}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{text-align:center}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:160px}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;font-weight:300;display:block}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:50px;-webkit-animation-name:blink;animation-name:blink;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-fill-mode:both;animation-fill-mode:both}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.se-pre-con[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   .content-loader-site[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}@-webkit-keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}@keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}.cnt_list_tasks[_ngcontent-%COMP%]{color:#fff;font-weight:200;font-size:1rem;margin-top:2.2rem}.cnt_list_tasks[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{align-items:center;margin-bottom:10px}.cnt_list_tasks[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]:last-child{margin-bottom:0}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-4s[_ngcontent-%COMP%]{-webkit-animation-delay:4s;animation-delay:4s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-8s[_ngcontent-%COMP%]{-webkit-animation-delay:8s;animation-delay:8s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-12s[_ngcontent-%COMP%]{-webkit-animation-delay:12s;animation-delay:12s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-16s[_ngcontent-%COMP%]{-webkit-animation-delay:16s;animation-delay:16s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-20s[_ngcontent-%COMP%]{-webkit-animation-delay:20s;animation-delay:20s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-24s[_ngcontent-%COMP%]{-webkit-animation-delay:24s;animation-delay:24s}.cnt_list_tasks[_ngcontent-%COMP%]   .media.time-28s[_ngcontent-%COMP%]{-webkit-animation-delay:28s;animation-delay:28s}.cnt_list_tasks[_ngcontent-%COMP%]   .ico-check_task[_ngcontent-%COMP%]{max-width:28px}"]}),t})();var Aq=function(){function t(){}return t.AddUnsigned=function(t,e){var n,i,r,o,s;return r=2147483648&t,o=2147483648&e,s=(1073741823&t)+(1073741823&e),(n=1073741824&t)&(i=1073741824&e)?2147483648^s^r^o:n|i?1073741824&s?3221225472^s^r^o:1073741824^s^r^o:s^r^o},t.FF=function(t,e,n,i,r,o,s){return t=this.AddUnsigned(t,this.AddUnsigned(this.AddUnsigned(this.F(e,n,i),r),s)),this.AddUnsigned(this.RotateLeft(t,o),e)},t.GG=function(t,e,n,i,r,o,s){return t=this.AddUnsigned(t,this.AddUnsigned(this.AddUnsigned(this.G(e,n,i),r),s)),this.AddUnsigned(this.RotateLeft(t,o),e)},t.HH=function(t,e,n,i,r,o,s){return t=this.AddUnsigned(t,this.AddUnsigned(this.AddUnsigned(this.H(e,n,i),r),s)),this.AddUnsigned(this.RotateLeft(t,o),e)},t.II=function(t,e,n,i,r,o,s){return t=this.AddUnsigned(t,this.AddUnsigned(this.AddUnsigned(this.I(e,n,i),r),s)),this.AddUnsigned(this.RotateLeft(t,o),e)},t.ConvertToWordArray=function(t){for(var e,n=t.length,i=n+8,r=16*((i-i%64)/64+1),o=Array(r-1),s=0,a=0;a<n;)s=a%4*8,o[e=(a-a%4)/4]=o[e]|t.charCodeAt(a)<<s,a++;return o[e=(a-a%4)/4]=o[e]|128<<(s=a%4*8),o[r-2]=n<<3,o[r-1]=n>>>29,o},t.WordToHex=function(t){var e,n="",i="";for(e=0;e<=3;e++)n+=(i="0"+(t>>>8*e&255).toString(16)).substr(i.length-2,2);return n},t.Utf8Encode=function(t){var e,n="";t=t.replace(/\r\n/g,"\n");for(var i=0;i<t.length;i++)(e=t.charCodeAt(i))<128?n+=String.fromCharCode(e):e>127&&e<2048?(n+=String.fromCharCode(e>>6|192),n+=String.fromCharCode(63&e|128)):(n+=String.fromCharCode(e>>12|224),n+=String.fromCharCode(e>>6&63|128),n+=String.fromCharCode(63&e|128));return n},t.init=function(t){for("string"!=typeof t&&(t=JSON.stringify(t)),this._string=this.Utf8Encode(t),this.x=this.ConvertToWordArray(this._string),this.a=1732584193,this.b=4023233417,this.c=2562383102,this.d=271733878,this.k=0;this.k<this.x.length;this.k+=16)this.AA=this.a,this.BB=this.b,this.CC=this.c,this.DD=this.d,this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k],this.S11,3614090360),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+1],this.S12,3905402710),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+2],this.S13,606105819),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+3],this.S14,3250441966),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+4],this.S11,4118548399),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+5],this.S12,1200080426),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+6],this.S13,2821735955),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+7],this.S14,4249261313),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+8],this.S11,1770035416),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+9],this.S12,2336552879),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+10],this.S13,4294925233),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+11],this.S14,2304563134),this.a=this.FF(this.a,this.b,this.c,this.d,this.x[this.k+12],this.S11,1804603682),this.d=this.FF(this.d,this.a,this.b,this.c,this.x[this.k+13],this.S12,4254626195),this.c=this.FF(this.c,this.d,this.a,this.b,this.x[this.k+14],this.S13,2792965006),this.b=this.FF(this.b,this.c,this.d,this.a,this.x[this.k+15],this.S14,1236535329),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+1],this.S21,4129170786),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+6],this.S22,3225465664),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+11],this.S23,643717713),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k],this.S24,3921069994),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+5],this.S21,3593408605),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+10],this.S22,38016083),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+15],this.S23,3634488961),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+4],this.S24,3889429448),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+9],this.S21,568446438),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+14],this.S22,3275163606),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+3],this.S23,4107603335),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+8],this.S24,1163531501),this.a=this.GG(this.a,this.b,this.c,this.d,this.x[this.k+13],this.S21,2850285829),this.d=this.GG(this.d,this.a,this.b,this.c,this.x[this.k+2],this.S22,4243563512),this.c=this.GG(this.c,this.d,this.a,this.b,this.x[this.k+7],this.S23,1735328473),this.b=this.GG(this.b,this.c,this.d,this.a,this.x[this.k+12],this.S24,2368359562),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+5],this.S31,4294588738),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+8],this.S32,2272392833),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+11],this.S33,1839030562),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+14],this.S34,4259657740),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+1],this.S31,2763975236),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+4],this.S32,1272893353),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+7],this.S33,4139469664),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+10],this.S34,3200236656),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+13],this.S31,681279174),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k],this.S32,3936430074),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+3],this.S33,3572445317),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+6],this.S34,76029189),this.a=this.HH(this.a,this.b,this.c,this.d,this.x[this.k+9],this.S31,3654602809),this.d=this.HH(this.d,this.a,this.b,this.c,this.x[this.k+12],this.S32,3873151461),this.c=this.HH(this.c,this.d,this.a,this.b,this.x[this.k+15],this.S33,530742520),this.b=this.HH(this.b,this.c,this.d,this.a,this.x[this.k+2],this.S34,3299628645),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k],this.S41,4096336452),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+7],this.S42,1126891415),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+14],this.S43,2878612391),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+5],this.S44,4237533241),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+12],this.S41,1700485571),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+3],this.S42,2399980690),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+10],this.S43,4293915773),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+1],this.S44,2240044497),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+8],this.S41,1873313359),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+15],this.S42,4264355552),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+6],this.S43,2734768916),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+13],this.S44,1309151649),this.a=this.II(this.a,this.b,this.c,this.d,this.x[this.k+4],this.S41,4149444226),this.d=this.II(this.d,this.a,this.b,this.c,this.x[this.k+11],this.S42,3174756917),this.c=this.II(this.c,this.d,this.a,this.b,this.x[this.k+2],this.S43,718787259),this.b=this.II(this.b,this.c,this.d,this.a,this.x[this.k+9],this.S44,3951481745),this.a=this.AddUnsigned(this.a,this.AA),this.b=this.AddUnsigned(this.b,this.BB),this.c=this.AddUnsigned(this.c,this.CC),this.d=this.AddUnsigned(this.d,this.DD);return(this.WordToHex(this.a)+this.WordToHex(this.b)+this.WordToHex(this.c)+this.WordToHex(this.d)).toLowerCase()},t.x=Array(),t.S11=7,t.S12=12,t.S13=17,t.S14=22,t.S21=5,t.S22=9,t.S23=14,t.S24=20,t.S31=4,t.S32=11,t.S33=16,t.S34=23,t.S41=6,t.S42=10,t.S43=15,t.S44=21,t.RotateLeft=function(t,e){return t<<e|t>>>32-e},t.F=function(t,e,n){return t&e|~t&n},t.G=function(t,e,n){return t&n|e&~n},t.H=function(t,e,n){return t^e^n},t.I=function(t,e,n){return e^(t|~n)},t}(),Iq=function(t){return t.CREDIBANCO="credibanco",t.PAYU="payu",t}({});class Mq{}class Uq{constructor(){this.api_key="",this.merchantId="",this.accountId="",this.description="",this.referenceCode="",this.amount="",this.tax="",this.taxReturnBase="",this.signature="",this.test="",this.buyerEmail="",this.responseUrl="",this.confirmationUrl="",this.extra1="",this.extra2="",this.extra3="",this.payuEndpoint="",this.reference_pol="",this.cus="",this.pseBank="",this.lapPaymentMethod="",this.transactionId="",this.transactionState="",this.state_pol="",this.response_code_pol=""}}class Lq{getTotalChallengeQuestions(){return this.quoteReq.challengeQuestions*this.challengeQuestionsPrice}getTotalOTP(){return this.quoteReq.OTP*this.OTPPrice}getTotalFacialRecognition(){return this.quoteReq.facialRecognition*this.facialRecognitionPrice}getTotalMethods(){return this.getTotalChallengeQuestions()+this.getTotalOTP()+this.getTotalFacialRecognition()}getTotalSigns(){return this.quoteReq.getTotalSigns()*this.signPrice}getTotal(){return this.getTotalSigns()+this.getTotalMethods()}getTotal_(){return this.signPrice+this.challengeQuestionsPrice+this.writtingPrice+this.cyberTraffic}}var Rq=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};function Nq(t,e){if(1&t&&(i.Ub(0,"div",35),i.Ub(1,"div",7),i.Ub(2,"div",8),i.Ub(3,"p",9),i.Lc(4," Firma Digital "),i.Tb(),i.Tb(),i.Ub(5,"div",10),i.Ub(6,"div",11),i.Lc(7,"Pagar\xe1s"),i.Tb(),i.Ub(8,"div"),i.Ub(9,"span",12),i.Lc(10),i.hc(11,"currency"),i.Tb(),i.Ub(12,"span",13),i.Lc(13,"COP"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(10),i.Nc(" ",i.ic(11,1,t.quoteRes.signPrice),"")}}function Fq(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"Autenticaci\xf3n"),i.Tb())}function Vq(t,e){1&t&&(i.Ub(0,"span"),i.Lc(1,"Declaraci\xf3n"),i.Tb())}function jq(t,e){if(1&t&&(i.Ub(0,"div",35),i.Ub(1,"div",7),i.Ub(2,"div",8),i.Ub(3,"p",9),i.Jc(4,Fq,2,0,"span",36),i.Jc(5,Vq,2,0,"span",36),i.Tb(),i.Tb(),i.Ub(6,"div",10),i.Ub(7,"div",11),i.Lc(8,"Pagar\xe1s"),i.Tb(),i.Ub(9,"div"),i.Ub(10,"span",12),i.Lc(11),i.hc(12,"currency"),i.Tb(),i.Ub(13,"span",13),i.Lc(14,"COP"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.mc("ngIf","DocumentAuthentication"===t.typeProcedure),i.Db(1),i.mc("ngIf","ExtraprocessDeclaration"===t.typeProcedure),i.Db(6),i.Nc(" ",i.ic(12,3,t.quoteRes.challengeQuestionsPrice),"")}}function Bq(t,e){if(1&t&&(i.Ub(0,"div",35),i.Ub(1,"div",7),i.Ub(2,"div",8),i.Ub(3,"p",9),i.Lc(4," Transito cibern\xe9tico "),i.Tb(),i.Tb(),i.Ub(5,"div",10),i.Ub(6,"div",11),i.Lc(7,"Pagar\xe1s"),i.Tb(),i.Ub(8,"div"),i.Ub(9,"span",12),i.Lc(10),i.hc(11,"currency"),i.Tb(),i.Ub(12,"span",13),i.Lc(13,"COP"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(10),i.Nc(" ",i.ic(11,1,t.quoteRes.cyberTraffic),"")}}function zq(t,e){if(1&t&&(i.Ub(0,"div",35),i.Ub(1,"div",7),i.Ub(2,"div",8),i.Ub(3,"p",9),i.Lc(4," IVA "),i.Tb(),i.Tb(),i.Ub(5,"div",10),i.Ub(6,"div",11),i.Lc(7,"Pagar\xe1s"),i.Tb(),i.Ub(8,"div"),i.Ub(9,"span",12),i.Lc(10),i.hc(11,"currency"),i.Tb(),i.Ub(12,"span",13),i.Lc(13,"COP"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(10),i.Nc(" ",i.ic(11,1,t.quoteRes.VAT),"")}}function qq(t,e){if(1&t&&(i.Ub(0,"div",35),i.Ub(1,"div",7),i.Ub(2,"div",8),i.Ub(3,"p",9),i.Lc(4," Escritura "),i.Tb(),i.Tb(),i.Ub(5,"div",10),i.Ub(6,"div",11),i.Lc(7,"Pagar\xe1s"),i.Tb(),i.Ub(8,"div"),i.Ub(9,"span",12),i.Lc(10),i.hc(11,"currency"),i.Tb(),i.Ub(12,"span",13),i.Lc(13,"COP"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(10),i.Nc(" ",i.ic(11,1,t.quoteRes.writtingPrice),"")}}function Hq(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",37),i.Ub(1,"button",38),i.cc("click",(function(){i.yc(t);const e=i.gc(),n=i.uc(36);return e.submit(n)})),i.Lc(2,"Pagar ahora"),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.Db(1),i.mc("disabled",t.btn_disabled)}}function Gq(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",37),i.Ub(1,"button",38),i.cc("click",(function(){return i.yc(t),i.gc().submitCredibanco()})),i.Lc(2,"Pagar ahora"),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.Db(1),i.mc("disabled",t.btn_disabled)}}const Jq=function(){return{standalone:!0}};let Yq=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u){this.dialog=t,this.document=e,this.feederService=n,this._pageLoaderService=i,this.globalVarService=r,this.cn=o,this.router=s,this.signatureProcessesService=a,this.enterpriseService=c,this.credibancoService=l,this.processStatusService=u,this.payuPayment=new Uq,this.user=new Tl,this.quoteRes=new Lq,this.btn_disabled=!0,this.typeProcedure="",this.isWriting=!1,this.paymentGateway=Iq.PAYU,this.enumTypePaymentGateway=Iq}ngOnInit(){this.user=JSON.parse(sessionStorage.getItem(this.router.url.includes("corporate/pv/")?"userData":"userDataExternal")),this.calculateQuote()}calculateQuote(){this._pageLoaderService.show(),this.quoteRes.signPrice=0,this.quoteRes.challengeQuestionsPrice=0,this.quoteRes.writtingPrice=0,this.quoteRes.cyberTraffic=0,this.quoteRes.VAT=0,this.signatureProcessesService.getSignatureProcessByIdProcess(this.globalVarService.processId).subscribe(t=>Rq(this,void 0,void 0,(function*(){this.cn.log("calculateQuote(): ",t);const e=t.operationBody[0];switch(this.typeProcedure=e.typeProcedure,e.typeProcedure){case"DocumentAuthentication":this.quoteRes.signPrice=9400,this.quoteRes.challengeQuestionsPrice=2600,this.quoteRes.cyberTraffic=9400,this.quoteRes.VAT=4066,this.isWriting=!1;break;case"ExtraprocessDeclaration":this.quoteRes.signPrice=9400,this.quoteRes.challengeQuestionsPrice=18e3,this.quoteRes.cyberTraffic=9400,this.quoteRes.VAT=6992,this.isWriting=!1;break;default:this.quoteRes.writtingPrice=0,this.isWriting=!0}yield this.loadVariables(),this._pageLoaderService.hide()})),t=>{this.cn.log("err calculateQuote(): ",t),this.isWriting=!1,this.quoteRes.signPrice=7200,this.quoteRes.challengeQuestionsPrice=2e3,this.quoteRes.cyberTraffic=7200,this.loadVariables(),this._pageLoaderService.hide()}),this.btn_disabled=!1}showError(){this._pageLoaderService.hide(),this.showDialog("Ocurrio un error, vuelve a intentarlo.")}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}loadVariables(){return Rq(this,void 0,void 0,(function*(){this.cn.log("loadVariables()");let t=null;t=this.router.url.includes("corporate/pv/")?JSON.parse(sessionStorage.getItem("notaryData")):yield this.getNotary(),this.cn.log("notary(): ",t),this.paymentGateway=t.notaryTypePaymentGateway?t.notaryTypePaymentGateway:this.paymentGateway;const e=this.document.location,n=this.decrypt(t.notaryPayuAccountId),i=this.decrypt(t.notaryPayuApiKey),o=this.decrypt(t.notaryPayuMerchantId);this.router.url.includes("corporate/pv/")?(this.payuPayment.responseUrl=r.payResponseUrl.replace("{host}",e.host)+"#/corporate/pv/payment/response",this.external=!1):(this.payuPayment.responseUrl=r.payResponseUrl.replace("{host}",e.host)+"#/corporate/pb/payment/response",this.external=!0);const s=Math.floor(899999*Math.random())+1e5;this.payuPayment.api_key=i,this.payuPayment.merchantId=o,this.payuPayment.accountId=n,this.payuPayment.description="PPS Pago firma digital - eNotary",this.payuPayment.referenceCode=s.toString(),this.payuPayment.tax=this.quoteRes.VAT.toString(),this.payuPayment.taxReturnBase=this.quoteRes.getTotal_().toString(),this.payuPayment.currency="COP",this.payuPayment.signature="",this.payuPayment.test=r.test,this.payuPayment.buyerEmail=this.user.email,this.payuPayment.payuEndpoint=r.payuEndpoint,this.payuPayment.confirmationUrl=r.payConfirmationUrl,this.payuPayment.extra1=this.globalVarService.processId,this.payuPayment.extra2=this.user.identificationNumber,this.payuPayment.extra3=this.user.email,this.payuPayment.amount=(this.quoteRes.getTotal_()+this.quoteRes.VAT).toString(),this.payuPayment.signature=Aq.init(i+"~"+o+"~"+this.payuPayment.referenceCode+"~"+(this.quoteRes.getTotal_()+this.quoteRes.VAT).toString()+"~"+this.payuPayment.currency)}))}submit(t){return Rq(this,void 0,void 0,(function*(){if(this.cn.log("submit()"),this.external)try{const t={idProcess:this.globalVarService.processId,external:!0,email:this.user.email,statePayment:"pending"};yield this.processStatusService.updateProcessState(t).toPromise(),this.cn.log("processStatus")}catch(e){this.cn.log("processStatus error: ",e)}t.submit()}))}submitCredibanco(){const t=new Mq;t.amount=+((this.quoteRes.getTotal_()+this.quoteRes.VAT).toString()+"00"),t.email=this.user.email,t.identificationNumber=this.user.identificationNumber,t.ipAddress="",t.idProcess=this.globalVarService.processId,this._pageLoaderService.show(),this.credibancoService.register(t).subscribe(t=>{null!==t.operationBody.formUrl&&""!==t.operationBody.formUrl?window.location.href=t.operationBody.formUrl:(this.showGeneralDialog(t.operationBody.errorMessage).subscribe(),this._pageLoaderService.hide())},t=>{this._pageLoaderService.hide(),this.showGeneralDialog("\xa1Ups! Ocurri\xf3 un error al tratar de realizar esta operaci\xf3n.").subscribe()})}showGeneralDialog(t,e,n,i=!1){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"480px",data:e,disableClose:i}).afterClosed()}decrypt(t){const e=yq.enc.Utf8.parse("AnSVqHZ57y9Pcb6E");return yq.AES.decrypt(t,e,{iv:e}).toString(yq.enc.Utf8)}getNotary(){return Rq(this,void 0,void 0,(function*(){try{const t=yield this.enterpriseService.getEnterpriseByIdNotary(this.user.notaryId.toString()).toPromise();return this.saveNotaryInLocalStorage(t.operationBody[0]),t.operationBody[0]}catch(t){this.cn.error("getNotary() error:",t)}}))}saveNotaryInLocalStorage(t){this.cn.log("saveInLocalStorageNotary(): ",t),sessionStorage.setItem("notaryData",JSON.stringify(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(o.e),i.Ob(gu),i.Ob(pg),i.Ob(cg),i.Ob(Gi),i.Ob(Zs),i.Ob(Lg),i.Ob(US),i.Ob(Tg),i.Ob(Dg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-payment-summary"]],decls:55,vars:59,consts:[[1,"cnt-billingSummary"],[1,"container"],[1,"responseProcces"],[1,"items-Payment"],["class","itemPayment",4,"ngIf"],["class"," itemPayment",4,"ngIf"],[1,"itemPayment","totalPayment"],[1,"row","align-items-center"],[1,"col"],[1,"descriptionPay"],[1,"price-itemPayment"],[1,"tagPay"],[1,"valuePay"],[1,"currencyPay"],[1,"divisor"],[1,"note-ProccesPayment"],["method","post","autocomplete","off",3,"action"],["form",""],["class","mt-4 text-center",4,"ngIf"],["name","merchantId","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","accountId","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","description","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","referenceCode","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","amount","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","tax","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","taxReturnBase","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","currency","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","signature","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","test","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","buyerEmail","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","responseUrl","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","confirmationUrl","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","extra1","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","extra2","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","extra3","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],[1,"itemPayment"],[4,"ngIf"],[1,"mt-4","text-center"],["type","submit",1,"btn-submitPayment",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"section"),i.Ub(2,"div",1),i.Ub(3,"div",2),i.Ub(4,"h2"),i.Lc(5,"\xa1Estamos listos!"),i.Tb(),i.Ub(6,"p"),i.Lc(7,"El documento esta listo, para continuar realiza el pago."),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"section"),i.Ub(9,"div",1),i.Ub(10,"div",3),i.Jc(11,Nq,14,3,"div",4),i.Jc(12,jq,15,5,"div",5),i.Jc(13,Bq,14,3,"div",5),i.Jc(14,zq,14,3,"div",5),i.Jc(15,qq,14,3,"div",5),i.Ub(16,"div",6),i.Ub(17,"div",7),i.Ub(18,"div",8),i.Ub(19,"p",9),i.Lc(20," Total a pagar "),i.Tb(),i.Tb(),i.Ub(21,"div",10),i.Ub(22,"div",11),i.Lc(23,"Pagar\xe1s"),i.Tb(),i.Ub(24,"div"),i.Ub(25,"span",12),i.Lc(26),i.hc(27,"currency"),i.Tb(),i.Ub(28,"span",13),i.Lc(29,"COP"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(30,"div",14),i.Ub(31,"section"),i.Ub(32,"div",1),i.Ub(33,"p",15),i.Lc(34," Nota. El valor presentado corresponde unicamente a la autenticaci\xf3n de tu firma. En caso de que hayan asignado m\xe1s personas para la realizaci\xf3n del tramite, cada uno deber\xe1 pagar este mismo valor. "),i.Tb(),i.Tb(),i.Tb(),i.Ub(35,"form",16,17),i.Jc(37,Hq,3,1,"div",18),i.Jc(38,Gq,3,1,"div",18),i.Ub(39,"input",19),i.cc("ngModelChange",(function(t){return e.payuPayment.merchantId=t})),i.Tb(),i.Ub(40,"input",20),i.cc("ngModelChange",(function(t){return e.payuPayment.accountId=t})),i.Tb(),i.Ub(41,"input",21),i.cc("ngModelChange",(function(t){return e.payuPayment.description=t})),i.Tb(),i.Ub(42,"input",22),i.cc("ngModelChange",(function(t){return e.payuPayment.referenceCode=t})),i.Tb(),i.Ub(43,"input",23),i.cc("ngModelChange",(function(t){return e.payuPayment.amount=t})),i.Tb(),i.Ub(44,"input",24),i.cc("ngModelChange",(function(t){return e.payuPayment.tax=t})),i.Tb(),i.Ub(45,"input",25),i.cc("ngModelChange",(function(t){return e.payuPayment.taxReturnBase=t})),i.Tb(),i.Ub(46,"input",26),i.cc("ngModelChange",(function(t){return e.payuPayment.currency=t})),i.Tb(),i.Ub(47,"input",27),i.cc("ngModelChange",(function(t){return e.payuPayment.signature=t})),i.Tb(),i.Ub(48,"input",28),i.cc("ngModelChange",(function(t){return e.payuPayment.test=t})),i.Tb(),i.Ub(49,"input",29),i.cc("ngModelChange",(function(t){return e.payuPayment.buyerEmail=t})),i.Tb(),i.Ub(50,"input",30),i.cc("ngModelChange",(function(t){return e.payuPayment.responseUrl=t})),i.Tb(),i.Ub(51,"input",31),i.cc("ngModelChange",(function(t){return e.payuPayment.confirmationUrl=t})),i.Tb(),i.Ub(52,"input",32),i.cc("ngModelChange",(function(t){return e.payuPayment.extra1=t})),i.Tb(),i.Ub(53,"input",33),i.cc("ngModelChange",(function(t){return e.payuPayment.extra2=t})),i.Tb(),i.Ub(54,"input",34),i.cc("ngModelChange",(function(t){return e.payuPayment.extra3=t})),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(11),i.mc("ngIf",!1===e.isWriting),i.Db(1),i.mc("ngIf",!1===e.isWriting),i.Db(1),i.mc("ngIf",!1===e.isWriting),i.Db(1),i.mc("ngIf",!1===e.isWriting),i.Db(1),i.mc("ngIf",!0===e.isWriting),i.Db(11),i.Nc(" ",i.ic(27,41,e.quoteRes.getTotal_()+e.quoteRes.VAT),""),i.Db(9),i.nc("action",e.payuPayment.payuEndpoint,i.Bc),i.Db(2),i.mc("ngIf",e.paymentGateway===e.enumTypePaymentGateway.PAYU),i.Db(1),i.mc("ngIf",e.paymentGateway===e.enumTypePaymentGateway.CREDIBANCO),i.Db(1),i.mc("ngModel",e.payuPayment.merchantId)("ngModelOptions",i.qc(43,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.accountId)("ngModelOptions",i.qc(44,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.description)("ngModelOptions",i.qc(45,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.referenceCode)("ngModelOptions",i.qc(46,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.amount)("ngModelOptions",i.qc(47,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.tax)("ngModelOptions",i.qc(48,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.taxReturnBase)("ngModelOptions",i.qc(49,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.currency)("ngModelOptions",i.qc(50,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.signature)("ngModelOptions",i.qc(51,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.test)("ngModelOptions",i.qc(52,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.buyerEmail)("ngModelOptions",i.qc(53,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.responseUrl)("ngModelOptions",i.qc(54,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.confirmationUrl)("ngModelOptions",i.qc(55,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.extra1)("ngModelOptions",i.qc(56,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.extra2)("ngModelOptions",i.qc(57,Jq)),i.Db(1),i.mc("ngModel",e.payuPayment.extra3)("ngModelOptions",i.qc(58,Jq)))},directives:[o.t,zc,Fa,Uc,Aa,Na,Bc],pipes:[o.d],styles:[".cnt-billingSummary[_ngcontent-%COMP%]{width:100%;max-width:720px;margin:0 auto;padding:25px 0}.responseProcces[_ngcontent-%COMP%]{text-align:center;padding:2rem 0 2.4rem}.responseProcces[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{color:#4fbfd3}.responseProcces[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.items-Payment[_ngcontent-%COMP%]   .itemPayment[_ngcontent-%COMP%]{border-radius:10px;border:2px solid #dbe0e7;overflow:hidden;padding:0 15px;margin-bottom:1rem}.items-Payment[_ngcontent-%COMP%]   .itemPayment[_ngcontent-%COMP%]:last-child{margin-bottom:0}.items-Payment[_ngcontent-%COMP%]   .itemPayment[_ngcontent-%COMP%]   .descriptionPay[_ngcontent-%COMP%]{font-weight:700;margin-bottom:0;padding:10px 0}.items-Payment[_ngcontent-%COMP%]   .itemPayment[_ngcontent-%COMP%]   .price-itemPayment[_ngcontent-%COMP%]{min-width:148px;max-width:160px;padding:10px 16px;background-color:rgba(239,234,229,.6);text-align:right}.items-Payment[_ngcontent-%COMP%]   .itemPayment[_ngcontent-%COMP%]   .price-itemPayment[_ngcontent-%COMP%]   .tagPay[_ngcontent-%COMP%]{font-size:.8rem}.items-Payment[_ngcontent-%COMP%]   .itemPayment[_ngcontent-%COMP%]   .price-itemPayment[_ngcontent-%COMP%]   .valuePay[_ngcontent-%COMP%]{font-weight:700}.items-Payment[_ngcontent-%COMP%]   .itemPayment[_ngcontent-%COMP%]   .price-itemPayment[_ngcontent-%COMP%]   .currencyPay[_ngcontent-%COMP%]{font-size:.8rem;margin-left:5px}.items-Payment[_ngcontent-%COMP%]   .itemPayment.totalPayment[_ngcontent-%COMP%]{background-color:#22385e;border:2px solid #22385e;color:#fff}.items-Payment[_ngcontent-%COMP%]   .itemPayment.totalPayment[_ngcontent-%COMP%]   .price-itemPayment[_ngcontent-%COMP%]{background-color:transparent}.divisor[_ngcontent-%COMP%]{border:1px solid #dbe0e7;margin-top:18px}.note-ProccesPayment[_ngcontent-%COMP%]{color:#4a4a4a;font-size:.8rem;padding:1rem 0}.btn-submitPayment[_ngcontent-%COMP%]{background-color:#4fbfd3;border-radius:10px;border:0;color:#fff;padding:10px 35px;font-weight:700;box-shadow:0 6px 20px 0 rgba(0,0,0,.2)}"]}),t})();class $q{constructor(){this.docsQuantity=0,this.OTP=0,this.facialRecognition=0,this.challengeQuestions=0}getTotalPeople(){return this.OTP+this.facialRecognition+this.challengeQuestions}getTotalSigns(){return this.getTotalPeople()*this.docsQuantity}}function Wq(t,e){1&t&&i.Lc(0,"Diligencia la cantidad de documentos")}function Kq(t,e){1&t&&i.Lc(0,"Diligencia los firmantes y m\xe9todos de validaci\xf3n de identidad")}let Qq=(()=>{class t{constructor(t,e,n){this._formBuilder=t,this._router=e,this.dialog=n,this.isLinear=!0,this.docsQuantityForm=this._formBuilder.group({txtDocsQuantity:["",Ha.required]}),this.signersForm=this._formBuilder.group({txtChallengeQuestions:[],txtOTP:[],txtFacialRecognition:[]})}ngOnInit(){}goToQuote(){const t=this.docsQuantityForm.controls.txtDocsQuantity.value,e=this.signersForm.controls.txtChallengeQuestions.value,n=this.signersForm.controls.txtOTP.value,i=this.signersForm.controls.txtFacialRecognition.value,r=new $q;r.docsQuantity=""!==t?t:0,r.challengeQuestions=""!==e?e:0,r.OTP=""!==n?n:0,r.facialRecognition=""!==i?i:0,r.docsQuantity<=0?this.showDialog("La cantidad de documentos debe ser mayor a 0."):r.getTotalPeople()<=0?this.showDialog("Debe firmar por lo menos una persona."):(sessionStorage.setItem("quoteRequest",JSON.stringify(r)),this._router.navigate(["/corporate/pv/documents/quote-response"]))}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-quotation"]],decls:58,vars:7,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"mb-4"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],["type","number","matInput","","placeholder","\xbfCuantos documentos vas a firmar?","formControlName","txtDocsQuantity"],[1,"button-row","mt-4","mb-2"],["mat-raised-button","","color","primary","matStepperNext","",3,"disabled"],[1,"box-card","card-signers"],[1,"row","align-items-center"],[1,"col"],[1,"col-12","col-sm-6","col-md-2"],["type","number","matInput","","placeholder","N\xfam.","formControlName","txtChallengeQuestions"],["type","number","matInput","","placeholder","N\xfam.","formControlName","txtOTP"],["type","number","matInput","","placeholder","N\xfam.","formControlName","txtFacialRecognition"],["mat-raised-button","","matStepperPrevious","",1,"mr-2"],["mat-raised-button","","color","primary","matStepperNext","","type","button",3,"disabled","click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"h4",2),i.Lc(3,"Calcula el precio de la firma de tus documentos"),i.Tb(),i.Ub(4,"p"),i.Lc(5,"Conoce en segundos cu\xe1nto costar\xe1 tu servicio de firma electr\xf3nica. S\xf3lo ingresa cantidad de documentos, los firmantes, los m\xe9todos de validaci\xf3n de identidad y obt\xe9n un precio estimado de lo que pagar\xe1s."),i.Tb(),i.Ub(6,"mat-vertical-stepper",3,4),i.Ub(8,"mat-step",5),i.Ub(9,"form",6),i.Jc(10,Wq,1,0,"ng-template",7),i.Ub(11,"mat-form-field"),i.Pb(12,"input",8),i.Tb(),i.Ub(13,"div",9),i.Ub(14,"button",10),i.Lc(15,"CONTINUAR"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(16,"mat-step",5),i.Ub(17,"form",6),i.Jc(18,Kq,1,0,"ng-template",7),i.Ub(19,"div"),i.Ub(20,"p"),i.Lc(21,"Para realizar la cotizaci\xf3n, digita la cantidad de personas que van a firmar el o los documentos en el m\xe9todo de validaci\xf3n de identidad que emplearan las partes. En caso de no usar alguna, digita 0."),i.Tb(),i.Tb(),i.Ub(22,"div"),i.Ub(23,"div",11),i.Ub(24,"div",12),i.Ub(25,"div",13),i.Lc(26," \xbfCuantas personas van a validar su identidad con "),i.Ub(27,"strong"),i.Lc(28,"preguntas de historial crediticio"),i.Tb(),i.Lc(29,"? "),i.Tb(),i.Ub(30,"div",14),i.Ub(31,"mat-form-field"),i.Pb(32,"input",15),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(33,"div",11),i.Ub(34,"div",12),i.Ub(35,"div",13),i.Lc(36," \xbfCuantas personas van a validar su identidad con "),i.Ub(37,"strong"),i.Lc(38,"OTP"),i.Tb(),i.Lc(39,"? "),i.Tb(),i.Ub(40,"div",14),i.Ub(41,"mat-form-field"),i.Pb(42,"input",16),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(43,"div",11),i.Ub(44,"div",12),i.Ub(45,"div",13),i.Lc(46," \xbfCuantas personas van a validar su identidad con "),i.Ub(47,"strong"),i.Lc(48,"reconocimiento facial"),i.Tb(),i.Lc(49,"? "),i.Tb(),i.Ub(50,"div",14),i.Ub(51,"mat-form-field"),i.Pb(52,"input",17),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(53,"div",9),i.Ub(54,"button",18),i.Lc(55,"VOLVER"),i.Tb(),i.Ub(56,"button",19),i.cc("click",(function(){return e.goToQuote()})),i.Lc(57,"COTIZAR"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(6),i.mc("linear",e.isLinear),i.Db(2),i.mc("stepControl",e.docsQuantityForm),i.Db(1),i.mc("formGroup",e.docsQuantityForm),i.Db(5),i.mc("disabled",e.docsQuantityForm.invalid),i.Db(2),i.mc("stepControl",e.signersForm),i.Db(1),i.mc("formGroup",e.signersForm),i.Db(39),i.mc("disabled",e.signersForm.invalid))},directives:[Yw,zw,zc,Fa,Yc,Lw,Uv,Qa,uy,Aa,Na,tl,zm,$w,Kw],styles:[".box-card[_ngcontent-%COMP%]{background:#fff;padding:.5rem 1rem;margin-bottom:1rem;box-shadow:0 2px 5px 0 rgba(0,0,0,.25)}.box-card.card-signers[_ngcontent-%COMP%]{position:relative}.box-card.card-signers[_ngcontent-%COMP%]   .close-btn[_ngcontent-%COMP%]{position:absolute;right:.2rem;top:.2rem}.mat-radio-button[_ngcontent-%COMP%] ~ .mat-radio-button[_ngcontent-%COMP%]{margin-left:16px}"]}),t})();class Xq{constructor(){this.identification="",this.operation=""}}function Zq(t,e){1&t&&(i.Ub(0,"th",13),i.Lc(1," Descripci\xf3n "),i.Tb())}function tH(t,e){if(1&t&&(i.Ub(0,"td",14),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.description," ")}}function eH(t,e){1&t&&(i.Ub(0,"td",15),i.Lc(1," Total "),i.Tb())}function nH(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1," Valor "),i.Tb())}function iH(t,e){if(1&t&&(i.Ub(0,"td",17),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",i.ic(2,1,t.quoteSubTotal)," ")}}function rH(t,e){if(1&t&&(i.Ub(0,"td",18),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Mc(i.ic(2,1,t.quoteTotalValue))}}function oH(t,e){1&t&&i.Pb(0,"tr",19)}function sH(t,e){1&t&&i.Pb(0,"tr",20)}function aH(t,e){1&t&&i.Pb(0,"tr",21)}let cH=(()=>{class t{constructor(){this.displayedColumns=["description","quoteSubTotal"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-table-quote-total"]],inputs:{quoteTotalTable:"quoteTotalTable",quoteTotalValue:"quoteTotalValue"},decls:13,vars:4,consts:[[1,"mat-elevation-z8","rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","quoteSubTotal"],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-footer-cell","","class","text-right",4,"matFooterCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-footer-row","",4,"matFooterRowDef"],["mat-header-cell",""],["mat-cell",""],["mat-footer-cell",""],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-footer-cell","",1,"text-right"],["mat-header-row",""],["mat-row",""],["mat-footer-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"table",1),i.Sb(2,2),i.Jc(3,Zq,2,0,"th",3),i.Jc(4,tH,2,1,"td",4),i.Jc(5,eH,2,0,"td",5),i.Rb(),i.Sb(6,6),i.Jc(7,nH,2,0,"th",7),i.Jc(8,iH,3,3,"td",8),i.Jc(9,rH,3,3,"td",9),i.Rb(),i.Jc(10,oH,1,0,"tr",10),i.Jc(11,sH,1,0,"tr",11),i.Jc(12,aH,1,0,"tr",12),i.Tb(),i.Tb()),2&t&&(i.Db(1),i.mc("dataSource",e.quoteTotalTable),i.Db(9),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("matFooterRowDef",e.displayedColumns))},directives:[JC,tx,KC,$C,XC,cx,hx,ux,nx,sx,rx,mx,_x,bx],pipes:[o.d],styles:["table[_ngcontent-%COMP%]{width:100%}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();function lH(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1," Firmante "),i.Tb())}function uH(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" Firmante ",t.Item," ")}}function dH(t,e){1&t&&(i.Ub(0,"td",17),i.Lc(1," Total "),i.Tb())}function hH(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1," Valor Firma "),i.Tb())}function pH(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",i.ic(2,1,t.SignCost)," ")}}function mH(t,e){1&t&&i.Pb(0,"td",17)}function fH(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1," Documentos "),i.Tb())}function bH(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.Documents," ")}}function gH(t,e){1&t&&i.Pb(0,"td",17)}function _H(t,e){1&t&&(i.Ub(0,"th",18),i.Lc(1," Total "),i.Tb())}function vH(t,e){if(1&t&&(i.Ub(0,"td",19),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",i.ic(2,1,t.Total)," ")}}function yH(t,e){if(1&t&&(i.Ub(0,"td",20),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Nc(" ",i.ic(2,1,t.signersTotalValue)," ")}}function wH(t,e){1&t&&i.Pb(0,"tr",21)}function CH(t,e){1&t&&i.Pb(0,"tr",22)}function xH(t,e){1&t&&i.Pb(0,"tr",23)}let OH=(()=>{class t{constructor(){this.displayedColumns=["Item","SignCost","Documents","Total"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-table-quote-signers"]],inputs:{signersTable:"signersTable",signersTotalValue:"signersTotalValue"},decls:21,vars:4,consts:[[1,"mat-elevation-z8","rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","Item"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","SignCost"],["matColumnDef","Documents"],["matColumnDef","Total"],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-footer-cell","","class","text-right",4,"matFooterCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-footer-row","",4,"matFooterRowDef"],["mat-header-cell",""],["mat-cell",""],["mat-footer-cell",""],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-footer-cell","",1,"text-right"],["mat-header-row",""],["mat-row",""],["mat-footer-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"table",1),i.Sb(2,2),i.Jc(3,lH,2,0,"th",3),i.Jc(4,uH,2,1,"td",4),i.Jc(5,dH,2,0,"td",5),i.Rb(),i.Sb(6,6),i.Jc(7,hH,2,0,"th",3),i.Jc(8,pH,3,3,"td",4),i.Jc(9,mH,1,0,"td",5),i.Rb(),i.Sb(10,7),i.Jc(11,fH,2,0,"th",3),i.Jc(12,bH,2,1,"td",4),i.Jc(13,gH,1,0,"td",5),i.Rb(),i.Sb(14,8),i.Jc(15,_H,2,0,"th",9),i.Jc(16,vH,3,3,"td",10),i.Jc(17,yH,3,3,"td",11),i.Rb(),i.Jc(18,wH,1,0,"tr",12),i.Jc(19,CH,1,0,"tr",13),i.Jc(20,xH,1,0,"tr",14),i.Tb(),i.Tb()),2&t&&(i.Db(1),i.mc("dataSource",e.signersTable),i.Db(17),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("matFooterRowDef",e.displayedColumns))},directives:[JC,tx,KC,$C,XC,cx,hx,ux,nx,sx,rx,mx,_x,bx],pipes:[o.d],styles:["table[_ngcontent-%COMP%]{width:100%}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();function SH(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1," Validaci\xf3n "),i.Tb())}function TH(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.Method," ")}}function DH(t,e){1&t&&(i.Ub(0,"td",17),i.Lc(1," Total "),i.Tb())}function kH(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1," Valor validaci\xf3n "),i.Tb())}function PH(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",i.ic(2,1,t.MethodValue)," ")}}function EH(t,e){1&t&&i.Pb(0,"td",17)}function AH(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1," Firmantes "),i.Tb())}function IH(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.Persons," ")}}function MH(t,e){1&t&&i.Pb(0,"td",17)}function UH(t,e){1&t&&(i.Ub(0,"th",18),i.Lc(1," Total "),i.Tb())}function LH(t,e){if(1&t&&(i.Ub(0,"td",19),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",i.ic(2,1,t.TotalMethod)," ")}}function RH(t,e){if(1&t&&(i.Ub(0,"td",20),i.Lc(1),i.hc(2,"currency"),i.Tb()),2&t){const t=i.gc();i.Db(1),i.Nc(" ",i.ic(2,1,t.methodsTotalValue)," ")}}function NH(t,e){1&t&&i.Pb(0,"tr",21)}function FH(t,e){1&t&&i.Pb(0,"tr",22)}function VH(t,e){1&t&&i.Pb(0,"tr",23)}let jH=(()=>{class t{constructor(){this.displayedColumns=["Method","MethodValue","Persons","TotalMethod"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-table-quote-methods"]],inputs:{validationMethodTable:"validationMethodTable",methodsTotalValue:"methodsTotalValue"},decls:21,vars:4,consts:[[1,"mat-elevation-z8","rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","Method"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","MethodValue"],["matColumnDef","Persons"],["matColumnDef","TotalMethod"],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-footer-cell","","class","text-right",4,"matFooterCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-footer-row","",4,"matFooterRowDef"],["mat-header-cell",""],["mat-cell",""],["mat-footer-cell",""],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-footer-cell","",1,"text-right"],["mat-header-row",""],["mat-row",""],["mat-footer-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"table",1),i.Sb(2,2),i.Jc(3,SH,2,0,"th",3),i.Jc(4,TH,2,1,"td",4),i.Jc(5,DH,2,0,"td",5),i.Rb(),i.Sb(6,6),i.Jc(7,kH,2,0,"th",3),i.Jc(8,PH,3,3,"td",4),i.Jc(9,EH,1,0,"td",5),i.Rb(),i.Sb(10,7),i.Jc(11,AH,2,0,"th",3),i.Jc(12,IH,2,1,"td",4),i.Jc(13,MH,1,0,"td",5),i.Rb(),i.Sb(14,8),i.Jc(15,UH,2,0,"th",9),i.Jc(16,LH,3,3,"td",10),i.Jc(17,RH,3,3,"td",11),i.Rb(),i.Jc(18,NH,1,0,"tr",12),i.Jc(19,FH,1,0,"tr",13),i.Jc(20,VH,1,0,"tr",14),i.Tb(),i.Tb()),2&t&&(i.Db(1),i.mc("dataSource",e.validationMethodTable),i.Db(17),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("matFooterRowDef",e.displayedColumns))},directives:[JC,tx,KC,$C,XC,cx,hx,ux,nx,sx,rx,mx,_x,bx],pipes:[o.d],styles:["table[_ngcontent-%COMP%]{width:100%}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();function BH(t,e){1&t&&(i.Ub(0,"mat-icon",8),i.Lc(1,"attach_money"),i.Tb(),i.Lc(2," TOTAL COTIZADO "))}function zH(t,e){1&t&&(i.Ub(0,"mat-icon",8),i.Lc(1,"receipt"),i.Tb(),i.Lc(2," DETALLE "))}let qH=(()=>{class t{constructor(t,e,n,i,r){this._router=t,this._priceService=e,this.feederService=n,this.dialog=i,this._pageLoaderService=r,this.user=new Tl,null===sessionStorage.getItem("quoteRequest")&&this._router.navigate(["/corporate/pv/documents/quotation"])}ngOnInit(){let t=new $q;t=Object.assign(t,JSON.parse(sessionStorage.getItem("quoteRequest"))),sessionStorage.removeItem("quoteRequest"),this.user=JSON.parse(sessionStorage.getItem("userData")),this.calculateQuote(t)}calculateQuote(t){this._pageLoaderService.show();const e=new Xq;e.identification=this.user.enterpriseId,e.operation="Firma Electronica",this.feederService.GetOperationPrice(e).subscribe(n=>{e.operation="Biometria Facial",this.feederService.GetOperationPrice(e).subscribe(i=>{e.operation="Preguntas Reto",this.feederService.GetOperationPrice(e).subscribe(e=>{const r=new Lq;r.quoteReq=t,r.signPrice=n.price,r.challengeQuestionsPrice=e.price,r.OTPPrice=0,r.facialRecognitionPrice=i.price,this.makeQuote(r),this._pageLoaderService.hide()},t=>{this.showError()})},t=>{this.showError()})},t=>{this.showError()})}makeQuote(t){this.quoteTotalTable=[{description:"Firmas",quoteSubTotal:t.getTotalSigns()},{description:"M\xe9todos de validaci\xf3n de identidad",quoteSubTotal:t.getTotalMethods()}],this.quoteTotalValue=t.getTotal(),this.signersTable=[];for(let e=0;e<t.quoteReq.getTotalPeople();e++)this.signersTable.push({Item:e+1,SignCost:t.signPrice,Documents:t.quoteReq.docsQuantity,Total:t.signPrice*t.quoteReq.docsQuantity});this.signersTotalValue=t.getTotalSigns(),this.validationMethodTable=[{Method:"Preguntas de validaci\xf3n",MethodValue:t.challengeQuestionsPrice,Persons:t.quoteReq.challengeQuestions,TotalMethod:t.getTotalChallengeQuestions()},{Method:"OTP",MethodValue:t.OTPPrice,Persons:t.quoteReq.OTP,TotalMethod:t.getTotalOTP()},{Method:"Reconocimiento facial",MethodValue:t.facialRecognitionPrice,Persons:t.quoteReq.facialRecognition,TotalMethod:t.getTotalFacialRecognition()}],this.methodsTotalValue=t.getTotalMethods()}showError(){this._pageLoaderService.hide(),this.showDialog("Ocurrio un error, vuelve a intentarlo.")}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(Bg),i.Ob(gu),i.Ob(Jb),i.Ob(pg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-quote-response"]],decls:23,vars:6,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"mb-4"],["mat-tab-label",""],[1,"py-4"],[3,"quoteTotalTable","quoteTotalValue"],[3,"signersTable","signersTotalValue"],[3,"validationMethodTable","methodsTotalValue"],[1,"example-tab-icon","mr-2"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"h4",2),i.Lc(3,"Calcula el precio de la firma de tus documentos"),i.Tb(),i.Ub(4,"p"),i.Lc(5,"Conoce en segundos cu\xe1nto costar\xe1 tu servicio de firma electr\xf3nica. S\xf3lo ingresa cantidad de documentos, los firmantes, los m\xe9todos de validaci\xf3n de identidad y obt\xe9n un precio estimado de lo que pagar\xe1s."),i.Tb(),i.Ub(6,"mat-tab-group"),i.Ub(7,"mat-tab"),i.Jc(8,BH,3,0,"ng-template",3),i.Ub(9,"div",4),i.Pb(10,"h5"),i.Pb(11,"aswc-table-quote-total",5),i.Tb(),i.Tb(),i.Ub(12,"mat-tab"),i.Jc(13,zH,3,0,"ng-template",3),i.Ub(14,"div",4),i.Ub(15,"div",4),i.Ub(16,"h5"),i.Lc(17,"Firmas"),i.Tb(),i.Pb(18,"aswc-table-quote-signers",6),i.Tb(),i.Ub(19,"div",4),i.Ub(20,"h5"),i.Lc(21,"M\xe9todos de validaci\xf3n de identidad"),i.Tb(),i.Pb(22,"aswc-table-quote-methods",7),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(11),i.mc("quoteTotalTable",e.quoteTotalTable)("quoteTotalValue",e.quoteTotalValue),i.Db(7),i.mc("signersTable",e.signersTable)("signersTotalValue",e.signersTotalValue),i.Db(4),i.mc("validationMethodTable",e.validationMethodTable)("methodsTotalValue",e.methodsTotalValue))},directives:[QA,jA,LA,cH,OH,jH,Kv],styles:[""]}),t})();const HH=function(){return{standalone:!0}};let GH=(()=>{class t{constructor(t,e,n){this._fb=t,this.router=e,this.cn=n,this.payuPayment=new Uq,this.btn_cont_disabled=!0}ngOnInit(){this.myFormAmount=this._fb.group({amount:[null,Ha.compose([Ha.required])]}),this.loadVariables()}loadVariables(){this.cn.log("loadVariables()"),this.user=JSON.parse(sessionStorage.getItem("userData")),console.log(this.router.url),this.router.url.includes("common-user")?(console.log("common-user"),this.payuPayment.responseUrl=r.payResponseUrl+"#/common-user/pv/payment/response/"):this.payuPayment.responseUrl=r.payResponseUrl+"#/corporate/pv/payment/response/";const t=Math.floor(899999*Math.random())+1e5;this.payuPayment.api_key=r.payuApiKey,this.payuPayment.merchantId=r.payuMerchantId,this.payuPayment.accountId=r.payuAccountId,this.payuPayment.description="Recarga saldo NotariaSign",this.payuPayment.referenceCode=t.toString(),this.payuPayment.amount="0",this.payuPayment.tax="0",this.payuPayment.taxReturnBase="0",this.payuPayment.currency="COP",this.payuPayment.signature="",this.payuPayment.test=r.test,this.payuPayment.buyerEmail=this.user.email,this.payuPayment.payuEndpoint=r.payuEndpoint,this.payuPayment.confirmationUrl=r.payConfirmationUrl,this.payuPayment.extra2=this.user.enterpriseId}onInputValueChange(t){this.cn.log("onInputValueChange()");const e=t;e<1e4?this.btn_cont_disabled=!1:(this.payuPayment.amount=e.toString(),this.btn_cont_disabled=!0,this.payuPayment.signature=Aq.init(this.payuPayment.api_key+"~"+this.payuPayment.merchantId+"~"+this.payuPayment.referenceCode+"~"+e.toString()+"~"+this.payuPayment.currency))}submit(t){this.cn.log("submit()"),!1!==this.myFormAmount.valid&&t.submit()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(Gi))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-reusable-payment-recharge"]],decls:39,vars:45,consts:[[1,""],[1,"container","wt-430","pt-4","pb-4","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/balance-recharge-06.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],["id","itemResetPsw",1,"form-login"],["method","post","autocomplete","off",3,"formGroup","action"],["form",""],["currencyMask","","type","text","matInput","","placeholder","Monto","formControlName","amount",3,"ngModelChange"],[1,"mt-4","text-center"],["type","submit","mat-raised-button","","color","primary",3,"disabled","click"],["name","merchantId","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","accountId","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","description","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","referenceCode","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","amount","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","tax","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","taxReturnBase","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","currency","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","signature","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","test","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","buyerEmail","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","responseUrl","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","confirmationUrl","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"],["name","extra2","type","hidden",3,"ngModel","ngModelOptions","ngModelChange"]],template:function(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"h2"),i.Lc(7,"Recarga tu saldo"),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"div",7),i.Ub(10,"div"),i.Ub(11,"p"),i.Lc(12,"Digita el monto que deseas recargar y realiza el pago de forma f\xe1cil, r\xe1pida y segura."),i.Tb(),i.Tb(),i.Ub(13,"form",8,9),i.Ub(15,"mat-form-field"),i.Ub(16,"input",10),i.cc("ngModelChange",(function(t){return e.onInputValueChange(t)})),i.Tb(),i.Ub(17,"mat-hint"),i.Lc(18,"Recuerda que el monto m\xednimo a recargar es de "),i.Ub(19,"strong"),i.Lc(20,"$10.000"),i.Tb(),i.Lc(21," pesos colombianos. "),i.Tb(),i.Tb(),i.Ub(22,"div",11),i.Ub(23,"button",12),i.cc("click",(function(){i.yc(t);const n=i.uc(14);return e.submit(n)})),i.Lc(24,"CONTINUAR"),i.Tb(),i.Tb(),i.Ub(25,"input",13),i.cc("ngModelChange",(function(t){return e.payuPayment.merchantId=t})),i.Tb(),i.Ub(26,"input",14),i.cc("ngModelChange",(function(t){return e.payuPayment.accountId=t})),i.Tb(),i.Ub(27,"input",15),i.cc("ngModelChange",(function(t){return e.payuPayment.description=t})),i.Tb(),i.Ub(28,"input",16),i.cc("ngModelChange",(function(t){return e.payuPayment.referenceCode=t})),i.Tb(),i.Ub(29,"input",17),i.cc("ngModelChange",(function(t){return e.payuPayment.amount=t})),i.Tb(),i.Ub(30,"input",18),i.cc("ngModelChange",(function(t){return e.payuPayment.tax=t})),i.Tb(),i.Ub(31,"input",19),i.cc("ngModelChange",(function(t){return e.payuPayment.taxReturnBase=t})),i.Tb(),i.Ub(32,"input",20),i.cc("ngModelChange",(function(t){return e.payuPayment.currency=t})),i.Tb(),i.Ub(33,"input",21),i.cc("ngModelChange",(function(t){return e.payuPayment.signature=t})),i.Tb(),i.Ub(34,"input",22),i.cc("ngModelChange",(function(t){return e.payuPayment.test=t})),i.Tb(),i.Ub(35,"input",23),i.cc("ngModelChange",(function(t){return e.payuPayment.buyerEmail=t})),i.Tb(),i.Ub(36,"input",24),i.cc("ngModelChange",(function(t){return e.payuPayment.responseUrl=t})),i.Tb(),i.Ub(37,"input",25),i.cc("ngModelChange",(function(t){return e.payuPayment.confirmationUrl=t})),i.Tb(),i.Ub(38,"input",26),i.cc("ngModelChange",(function(t){return e.payuPayment.extra2=t})),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()}2&t&&(i.Db(13),i.nc("action",e.payuPayment.payuEndpoint,i.Bc),i.mc("formGroup",e.myFormAmount),i.Db(10),i.mc("disabled",!e.myFormAmount.valid||!e.btn_cont_disabled),i.Db(2),i.mc("ngModel",e.payuPayment.merchantId)("ngModelOptions",i.qc(31,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.accountId)("ngModelOptions",i.qc(32,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.description)("ngModelOptions",i.qc(33,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.referenceCode)("ngModelOptions",i.qc(34,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.amount)("ngModelOptions",i.qc(35,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.tax)("ngModelOptions",i.qc(36,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.taxReturnBase)("ngModelOptions",i.qc(37,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.currency)("ngModelOptions",i.qc(38,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.signature)("ngModelOptions",i.qc(39,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.test)("ngModelOptions",i.qc(40,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.buyerEmail)("ngModelOptions",i.qc(41,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.responseUrl)("ngModelOptions",i.qc(42,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.confirmationUrl)("ngModelOptions",i.qc(43,HH)),i.Db(1),i.mc("ngModel",e.payuPayment.extra2)("ngModelOptions",i.qc(44,HH)))},directives:[zc,Fa,Yc,Uv,uy,Aa,xl,Na,tl,Cv,zm,Bc],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})();var JH=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};const YH=["btn_redirect"];function $H(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"CUS:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",t.payuPayment.cus," ")}}function WH(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"Banco:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",t.payuPayment.pseBank," ")}}let KH=(()=>{class t{constructor(t,e,n,i,r,o){this.dialog=t,this.route=e,this.cn=n,this.router=i,this.globalVarService=r,this.processStatusService=o,this.payuPayment=new Uq,this.redirectUrl="",this.btn_text="CONTINUAR",this.processStatus=null}ngOnInit(){this.loadResponse()}loadResponse(){return JH(this,void 0,void 0,(function*(){this.cn.log("loadResponse()"),this.router.url.includes("corporate/pb/")?(this.redirectUrl="/corporate/pb",this.user=JSON.parse(sessionStorage.getItem("userDataExternal")),this.globalVarService.path_route="corporate/pb/"):(this.redirectUrl="/corporate/pv",this.globalVarService.path_route="corporate/pv/",this.user=JSON.parse(sessionStorage.getItem("userData"))),this.route.queryParams.subscribe(t=>{this.payuPayment.merchantId=t.merchantId,this.payuPayment.referenceCode=t.referenceCode,this.payuPayment.amount=t.TX_VALUE,this.payuPayment.currency=t.currency,this.payuPayment.transactionState=t.transactionState,this.payuPayment.signature=t.signature,this.payuPayment.reference_pol=t.reference_pol,this.payuPayment.cus=t.cus,this.payuPayment.description=t.description,this.payuPayment.pseBank=t.pseBank,this.payuPayment.lapPaymentMethod=t.lapPaymentMethod,this.payuPayment.transactionId=t.transactionId,this.payuPayment.extra1=t.extra1}),this.globalVarService.processId=this.payuPayment.extra1.toString(),this.btn_text="CONTINUAR";try{this.processStatus=yield this.processStatusService.getProcessStatusById(this.globalVarService.processId,this.user.email).toPromise(),this.cn.log("processStatus: ",this.processStatus)}catch(t){this.cn.log("processStatus error: ",t)}switch(this.cn.log("payuPayment: ",this.payuPayment),this.payuPayment.transactionState){case"4":this.estadoTx="APROBADA",this.btn_text=this.processStatus.operationBody.external?"VERIFICACI\xd3N FACIAL":this.btn_text,this.redirectUrl+=this.processStatus.operationBody.external?"/authentication/auth-veriff":"/messages/signed-docs";break;case"6":this.estadoTx="RECHAZADA",this.btn_text="REINTENTAR",this.redirectUrl+="/payment/payment-summary";break;case"104":this.estadoTx="ERROR",this.btn_text="REINTENTAR",this.redirectUrl+="/payment/payment-summary";break;case"7":this.estadoTx="PENDIENTE",this.btn_text=this.processStatus.operationBody.external?"VERIFICACI\xd3N FACIAL":this.btn_text,this.redirectUrl+=this.processStatus.operationBody.external?"/authentication/auth-veriff":"/messages/pending-payment";break;default:this.estadoTx="TRANSACCI\xd3N CON ERRORES",this.btn_text="REINTENTAR",this.redirectUrl+="/payment/payment-summary"}}))}redirectProcess(){return JH(this,void 0,void 0,(function*(){switch(this.payuPayment.transactionState){case"4":if(this.processStatus.operationBody.external)try{if(!(yield this.processStatusService.getProcessStatusById(this.globalVarService.processId,this.user.email).toPromise()).operationBody.payment)return void this.showGeneralDialog("Aun no se ha completado el pago, espera unos segundos o vuelve luego para completar el tramite.").subscribe()}catch(t){this.cn.log("processStatus error: ",t)}break;case"7":if(this.processStatus.operationBody.external)try{if(!(yield this.processStatusService.getProcessStatusById(this.globalVarService.processId,this.user.email).toPromise()).operationBody.payment)return void this.showGeneralDialog("El pago se encuentra en estado PENDIENTE, espera unos segundos o vuelve luego para completar el tramite.").subscribe()}catch(t){this.cn.log("processStatus error: ",t)}}console.log("url: ",this.globalVarService.path_route+this.redirectUrl),this.router.navigate([this.redirectUrl])}))}showGeneralDialog(t,e,n,i=!1){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"480px",data:e,disableClose:i}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(Fo),i.Ob(Gi),i.Ob(Zs),i.Ob(cg),i.Ob(Dg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-response"]],viewQuery:function(t,e){var n;1&t&&i.Qc(YH,!0),2&t&&i.tc(n=i.dc())&&(e.btn_redirect=n.first)},decls:55,vars:13,consts:[[1,""],[1,"container","wt-430","pt-4","pb-4","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/balance-recharge-06.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"sc-subtitle-top-up-balance"],[1,"balance-tag"],[1,"balance-result","text-color-success"],[1,"content-top-up-balance"],[1,"responde-table"],[4,"ngIf"],[1,"mt-4","text-center"],["mat-raised-button","","color","primary",3,"click"],["btn_redirect",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"div",6),i.Ub(7,"span",7),i.Lc(8,"Estado de la transacci\xf3n"),i.Tb(),i.Ub(9,"span",8),i.Lc(10),i.Tb(),i.Tb(),i.Tb(),i.Ub(11,"div",9),i.Ub(12,"table",10),i.Ub(13,"tr"),i.Ub(14,"td"),i.Lc(15,"ID de la transaccion:"),i.Tb(),i.Ub(16,"td"),i.Lc(17),i.Tb(),i.Tb(),i.Ub(18,"tr"),i.Ub(19,"td"),i.Lc(20,"Referencia de la venta:"),i.Tb(),i.Ub(21,"td"),i.Lc(22),i.Tb(),i.Tb(),i.Ub(23,"tr"),i.Ub(24,"td"),i.Lc(25,"Referencia de la transaccion:"),i.Tb(),i.Ub(26,"td"),i.Lc(27),i.Tb(),i.Tb(),i.Jc(28,$H,5,1,"tr",11),i.Jc(29,WH,5,1,"tr",11),i.Ub(30,"tr"),i.Ub(31,"td"),i.Lc(32,"Valor total:"),i.Tb(),i.Ub(33,"td"),i.Lc(34),i.hc(35,"currency"),i.Tb(),i.Tb(),i.Ub(36,"tr"),i.Ub(37,"td"),i.Lc(38,"Moneda:"),i.Tb(),i.Ub(39,"td"),i.Lc(40),i.Tb(),i.Tb(),i.Ub(41,"tr"),i.Ub(42,"td"),i.Lc(43,"Descripci\xf3n:"),i.Tb(),i.Ub(44,"td"),i.Lc(45),i.Tb(),i.Tb(),i.Ub(46,"tr"),i.Ub(47,"td"),i.Lc(48,"Entidad:"),i.Tb(),i.Ub(49,"td"),i.Lc(50),i.Tb(),i.Tb(),i.Tb(),i.Ub(51,"div",12),i.Ub(52,"button",13,14),i.cc("click",(function(){return e.redirectProcess()})),i.Lc(54),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(10),i.Mc(e.estadoTx),i.Db(7),i.Nc(" ",e.payuPayment.transactionId," "),i.Db(5),i.Nc(" ",e.payuPayment.reference_pol," "),i.Db(5),i.Nc(" ",e.payuPayment.referenceCode," "),i.Db(1),i.mc("ngIf",""!=e.payuPayment.pseBank),i.Db(1),i.mc("ngIf",""!=e.payuPayment.pseBank),i.Db(5),i.Nc("",i.ic(35,11,e.payuPayment.amount)," "),i.Db(6),i.Nc(" ",e.payuPayment.currency," "),i.Db(5),i.Nc(" ",e.payuPayment.description," "),i.Db(5),i.Nc(" ",e.payuPayment.lapPaymentMethod," "),i.Db(4),i.Nc(" ",e.btn_text," "))},directives:[o.t,zm],pipes:[o.d],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}.responde-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e8}.responde-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:last-child{border-bottom:0}.responde-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{vertical-align:top}"]}),t})(),QH=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,bl,gl,PT,aS,UT,Hm,JT,I_,$_,hD,Xw,Sk,Zb,K_,Qk,_P,Qv,dy,By,Ib,Wd,AP,VP,KP,hE,lh,cw,ES,VE,PE,WE,hA,Xw,Ox,dI,Lh,Hx,RI]]}),t})();const XH=["imgView"];let ZH=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.dialog=n}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(zb),i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-view-signature-graph"]],viewQuery:function(t,e){var n;1&t&&i.Qc(XH,!0),2&t&&i.tc(n=i.dc())&&(e.imgView=n.first)},decls:3,vars:1,consts:[["width","100%",3,"src"],["imgView",""]],template:function(t,e){1&t&&(i.Ub(0,"p"),i.Pb(1,"img",0,1),i.Tb()),2&t&&(i.Db(1),i.nc("src",e.data.urlImg,i.Bc))},styles:[""]}),t})();const tG=["fileSign"],eG=["imgSmall"];function nG(t,e){1&t&&(i.Ub(0,"mat-icon",54),i.Lc(1,"person"),i.Tb(),i.Lc(2," Datos b\xe1sicos "))}function iG(t,e){if(1&t&&(i.Ub(0,"mat-error",56),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function rG(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,iG,2,1,"mat-error",55),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.profileForm.get("firstName").hasError(t.type)&&(n.profileForm.get("firstName").dirty||n.profileForm.get("firstName").touched))}}function oG(t,e){if(1&t&&(i.Ub(0,"mat-error",56),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function sG(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,oG,2,1,"mat-error",55),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.profileForm.get("lastName").hasError(t.type)&&(n.profileForm.get("lastName").dirty||n.profileForm.get("lastName").touched))}}function aG(t,e){1&t&&(i.Ub(0,"mat-icon",54),i.Lc(1,"alternate_email"),i.Tb(),i.Lc(2," Cuenta "))}function cG(t,e){if(1&t&&(i.Ub(0,"mat-error",56),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function lG(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,cG,2,1,"mat-error",55),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.profileForm.get("currentPassword").hasError(t.type)&&n.profileForm.get("currentPassword").touched)}}function uG(t,e){if(1&t&&(i.Ub(0,"mat-error",56),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function dG(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,uG,2,1,"mat-error",55),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.profileForm.get("password").hasError(t.type)&&n.profileForm.get("password").touched)}}function hG(t,e){if(1&t&&(i.Ub(0,"mat-error",56),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function pG(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,hG,2,1,"mat-error",55),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.profileForm.get("confirmPassword").hasError(t.type)&&n.profileForm.get("confirmPassword").touched)}}function mG(t,e){1&t&&(i.Ub(0,"mat-icon",54),i.Lc(1,"phone"),i.Tb(),i.Lc(2," Contacto "))}function fG(t,e){if(1&t&&(i.Ub(0,"mat-option",57),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function bG(t,e){if(1&t&&(i.Ub(0,"mat-error",56),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function gG(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,bG,2,1,"mat-error",55),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.profileForm.get("department").hasError(t.type)&&(n.profileForm.get("department").dirty||n.profileForm.get("department").touched))}}function _G(t,e){if(1&t&&(i.Ub(0,"mat-option",57),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function vG(t,e){if(1&t&&(i.Ub(0,"mat-error",56),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function yG(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,vG,2,1,"mat-error",55),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.profileForm.get("city").hasError(t.type)&&(n.profileForm.get("city").dirty||n.profileForm.get("city").touched))}}function wG(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",58),i.cc("click",(function(){return i.yc(t),i.gc().updateUser()})),i.Lc(1,"Guardar cambios "),i.Tb()}if(2&t){const t=i.gc();i.mc("disabled",t.profileForm.invalid)}}function CG(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",59),i.cc("click",(function(){return i.yc(t),i.gc().updatePassword()})),i.Lc(1,"Guardar contrase\xf1a "),i.Tb()}}let xG=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u){this.kcSvc=t,this.formBuilder=e,this.keycloakAdminService=n,this.cn=i,this.dialog=r,this.usersService=o,this.geo=s,this._pageLoaderService=a,this.notaryService=c,this.enrollmentService=l,this.authService=u,this.labelTextFile="Ning\xfan archivo seleccionado",this.validation_messages=BB,this.fileToUpload=null,this.fileUploadByte=null,this.fileUploadBase64=null,this.changesFile=!0,this.deleteFile=!1,this.passwordChange=!1,this.blockPasswordBtn=!0,this.depts=[],this.cities=[],this.citiesByDept=[],this.userRole="",this.profileForm=this.formBuilder.group({firstName:[""],lastName:[""],typeDocument:[""],identificationNumber:[""],dialCode:[""],phone:[""],address:[""],profession:[""],companyName:[""],nit:[""],position:[""],commercialSection:[""],department:[""],city:[""],email:["",[Ha.email]],notary:[""],currentPassword:[""],password:[""],confirmPassword:[""]}),this.notaries=[]}ngOnInit(){this.getUser(),this.getEnrollmentUser(),this.notaryService.getNotariesPrivate().subscribe(t=>{this.notaries=t.operationBody}),this.geo.getCities().subscribe(t=>{this.cities=t}),this.geo.getDepartments().subscribe(t=>{this.depts=t}),this.filteredDepts=this.profileForm.controls.department.valueChanges.pipe(Pr(""),Object(m.a)(t=>"string"==typeof t?t:t.name),Object(m.a)(t=>t?this.filterDepts(t):this.depts.slice())),this.filteredNotaries=this.showFilteredNotaries(this.profileForm),this.validateNotary(this.profileForm),this.profileForm.controls.department.valueChanges.subscribe(t=>{t.id&&(this.citiesByDept=this.cities.filter(e=>0===e.department.name.indexOf(t.name)),this.profileForm.controls.city.setValue(""),this.profileForm.controls.city.updateValueAndValidity())}),this.filteredCities=this.profileForm.controls.city.valueChanges.pipe(Pr(""),Object(m.a)(t=>"string"==typeof t?t:t.name),Object(m.a)(t=>t?this.filterCities(t):this.citiesByDept.slice())),this.validatePassword()}getUser(){this._pageLoaderService.show();const t=this.authService.getUser();this.profileForm.controls.firstName.setValue(t.firstName),this.profileForm.controls.lastName.setValue(t.lastName),this.profileForm.controls.email.setValue(t.email),this.profileForm.controls.email.disable(),this.profileForm.controls.address.setValue(t.address),this.profileForm.controls.identificationNumber.setValue(t.identificationNumber),this.profileForm.controls.typeDocument.setValue(t.typeDocument),this.profileForm.controls.phone.setValue(t.phone),this.profileForm.controls.department.setValue({name:t.country}),this.profileForm.controls.city.setValue({name:t.city}),this.userRole===Ig.Person?this.profileForm.controls.notary.setValue({enterpriseName:t.notaryName[0],id:t.notaryId[0]}):this.removeValidators(this.profileForm),this.usersService.getUsers("email",t.email).subscribe(t=>{const e=(new Date).getTime();this.user=t.operationBody,null!==this.user[0].signatureImageUrl&&""!==this.user[0].signatureImageUrl?(this.urlImg=this.user[0].signatureImageUrl+"?"+e,this.imgSmall.nativeElement.src=this.urlImg,this.changesFile=!0):this.changesFile=!1}),this._pageLoaderService.hide()}getEnrollmentUser(){this.cn.log("getEnrollment()");const t=JSON.parse(sessionStorage.getItem("userData"));this._pageLoaderService.show(),this.enrollmentService.getEnrollment(+t.notaryId,t.email).subscribe(t=>{this.cn.log("getEnrollment()",t);const e=t.operationBody[0];!0===e.validIdentificationNumber&&(this.profileForm.controls.identificationNumber.disable(),this.profileForm.controls.typeDocument.disable()),!0===e.validPhoneNumber&&(this.profileForm.controls.phone.disable(),this.profileForm.controls.dialCode.disable()),this._pageLoaderService.hide()},t=>{this.cn.log("Error getEnrollment()",t),this._pageLoaderService.hide()})}displayDept(t){return t?t.name:void 0}displayCity(t){return t?t.name:void 0}filterDepts(t){const e=t.toLowerCase();return this.depts.filter(t=>0===t.name.toLowerCase().indexOf(e))}filterCities(t){const e=t.toLowerCase();return this.citiesByDept.filter(t=>0===t.name.toLowerCase().indexOf(e))}filterNotaries(t){const e=t.toLowerCase();return this.notaries.filter(t=>0===t.enterpriseName.toLowerCase().indexOf(e))}showFilteredNotaries(t){return t.controls.notary.valueChanges.pipe(Pr(""),Object(m.a)(t=>"string"==typeof t?t:t.name),Object(m.a)(t=>t?this.filterNotaries(t):this.notaries.slice()))}displayNotary(t){return t?t.enterpriseName:void 0}validateNotary(t){t.controls.notary.valueChanges.subscribe(t=>{})}validatePassword(){console.log("validatePassword"),this.profileForm.controls.confirmPassword.valueChanges.subscribe(t=>{this.profileForm.controls.password.value!==t&&this.profileForm.controls.confirmPassword.setErrors({notMatch:!0}),this.activatePasswordButton()}),this.profileForm.controls.password.valueChanges.subscribe(t=>{""!==t&&this.profileForm.controls.confirmPassword.setValue(""),this.activatePasswordButton()}),this.profileForm.controls.currentPassword.valueChanges.subscribe(t=>{this.activatePasswordButton()})}activatePasswordButton(){this.blockPasswordBtn=!(""!==this.profileForm.controls.currentPassword.value&&""!==this.profileForm.controls.password.value&&this.profileForm.controls.password.value===this.profileForm.controls.confirmPassword.value&&!this.profileForm.controls.currentPassword.hasError("notMatch"))}updateUser(t){const e=this.user[0];t?(this.cn.log(" ===== updatePassword() ===== "),this.clearPasswords(),this._pageLoaderService.hide(),this.showGeneralDialog("Contrase\xf1a cambiada correctamente.")):(this._pageLoaderService.show(),this.cn.log(" ===== updateUser() ===== "),e.firstName=this.profileForm.controls.firstName.value,e.lastName=this.profileForm.controls.lastName.value,e.city=this.profileForm.controls.city.value.name,e.country=this.profileForm.controls.department.value.name,e.address=this.profileForm.controls.address.value,e.phone=this.profileForm.controls.phone.value,e.dialCode=this.profileForm.controls.dialCode.value,e.typeDocument=this.profileForm.controls.typeDocument.value,e.identificationNumber=this.profileForm.controls.identificationNumber.value,e.role===Ig.Person&&this.logger("Actualizacion de datos guardados."),this.usersService.udpateUser(e).subscribe(t=>{this._pageLoaderService.hide(),this.labelTextFile="Ning\xfan archivo seleccionado";const n=(new Date).getTime();null!==this.user[0].signatureImageUrl&&""!==this.user[0].signatureImageUrl?(this.urlImg=this.user[0].signatureImageUrl+"?"+n,this.imgSmall.nativeElement.src=this.urlImg,this.changesFile=!0):this.deleteFile?this.changesFile=!1:(this.urlImg=this.fileUploadBase64,this.imgSmall.nativeElement.src=this.urlImg,this.changesFile=!0),this.deleteFile=!1,this.user[0]=e,this.user[0].notaryId=e.notaryId,this.user[0].notaryName=e.notaryName,this.saveInLocalStorage(),this.showGeneralDialog("Los cambios han sido guardados.")},t=>{this.cn.error("updateUser() error:",t),this._pageLoaderService.hide()}))}logger(t){dg.info(t,"Actualizaci\xf3n Usuario")}removeValidators(t){t.controls.notary.clearValidators(),t.controls.notary.updateValueAndValidity()}updatePassword(){return t=this,void 0,n=function*(){this._pageLoaderService.show();try{yield this.authService.updatePassword(this.profileForm.controls.password.value),this.cn.log("===== validateUserCredentials() SUCCESS =====",this.profileForm.controls.password.value),this.updateUser(!0)}catch(t){this.cn.log("===== validateUserCredentials() FAIL ====="),this.profileForm.controls.currentPassword.setErrors({notMatch:!0}),this.activatePasswordButton(),this._pageLoaderService.hide(),this.showGeneralDialog("La contrase\xf1a actual es incorrecta.")}},new((e=void 0)||(e=Promise))((function(i,r){function o(t){try{a(n.next(t))}catch(e){r(e)}}function s(t){try{a(n.throw(t))}catch(e){r(e)}}function a(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}a((n=n.apply(t,[])).next())}));var t,e,n}viewOption(t){this.passwordChange=3===t.index,3!==t.index&&this.clearPasswords()}showGeneralDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}clearPasswords(){this.profileForm.controls.currentPassword.setValue(""),this.profileForm.controls.password.setValue(""),this.profileForm.controls.confirmPassword.setValue("")}handleFileInput(t){if(this.labelTextFile="Ning\xfan archivo seleccionado",this.fileUploadByte=null,0===t.length)return;if("image/png"!==t.item(0).type&&"image/jpeg"!==t.item(0).type)return this.showGeneralDialog("El tipo de extension, es invalido."),void(this.fileSign.nativeElement.value="");if(t.item(0).size>1e6)return this.showGeneralDialog("La imagen es demasido pesada, Max 1MB."),void(this.fileSign.nativeElement.value="");this.labelTextFile=t.item(0).name,this.fileToUpload=t.item(0);const e=new FileReader;e.onload=()=>{const t=new Uint8Array(e.result);this.fileUploadByte=Array.from(t)},e.readAsArrayBuffer(this.fileToUpload);const n=new FileReader;n.onload=()=>{this.fileUploadBase64=n.result},n.readAsDataURL(this.fileToUpload)}clearInputsFile(){this.labelTextFile="Ning\xfan archivo seleccionado",this.fileSign.nativeElement.value=""}deleteImage(){this.imgSmall.nativeElement.src="./assets/images/defaultSign.png",this.user[0].signatureImageUrl=null,this.changesFile=!1,this.deleteFile=!0}showGeneralDialogCapture(t){return this.cn.log("showGeneralDialog()"),void 0===t&&(t=ZH),this.dialog.open(ZH,{maxWidth:"520px",data:{title:"",urlImg:this.urlImg}}).afterClosed()}saveInLocalStorage(){this.cn.log("saveInLocalStorage()"),sessionStorage.setItem("userData",JSON.stringify(this.user[0]))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cr),i.Ob(fl),i.Ob(fu),i.Ob(Gi),i.Ob(Jb),i.Ob(jg),i.Ob(NV),i.Ob(pg),i.Ob(Og),i.Ob(_g),i.Ob(qS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-edit-account"]],viewQuery:function(t,e){var n;1&t&&(i.Qc(tG,!0),i.Qc(eG,!0)),2&t&&(i.tc(n=i.dc())&&(e.fileSign=n.first),i.tc(n=i.dc())&&(e.imgSmall=n.first))},decls:121,vars:27,consts:[[1,"p_container"],[1,"container","wt-640","pt-4","pb-4"],[3,"formGroup"],[3,"selectedTabChange"],["mat-tab-label",""],[1,"content-tab-edProfile"],[1,"contianer"],[1,"sc-content-tab-edProfile"],[1,"sc-Required"],[1,"row"],[1,"col-12","col-sm-6"],["matInput","","placeholder","Nombres","formControlName","firstName","required",""],[4,"ngFor","ngForOf"],["matInput","","placeholder","Apellidos","formControlName","lastName","required",""],["placeholder","Tipo de documento","formControlName","typeDocument","required",""],["value","CC"],["value","CCEXT"],["value","PASSPORT"],["matInput","","type","number","placeholder","N\xfamero de documento","formControlName","identificationNumber","required",""],[1,"scc-Upload",3,"hidden"],[1,"cnt-showImgSgn","mb-4"],[1,"row","align-items-center"],[1,"cnt-img-digitalSign"],[1,"hvr-viewSing",3,"hidden","click"],[1,"btn-deleteLoadedSign",3,"hidden","click"],[1,"img-digitalSign"],["src","./assets/images/defaultSign.png","alt","Sign"],["imgSmall",""],[1,"col"],[1,"upload-btn-wrapper"],[1,"cnt-inpReplace"],["for","",1,"lbl-inpFile"],["mat-raised-button","","color","secondary",1,"btn-inpFile"],["accept","image/jpeg, image/png","type","file","name","myfile",3,"click","change"],["fileSign",""],[1,"text-center"],[1,"container"],[1,"fll_wt"],["matInput","","type","email","placeholder","Correo electr\xf3nico","formControlName","email","disabled",""],["type","password","matInput","","placeholder","Contrase\xf1a actual","formControlName","currentPassword"],["type","password","matInput","","placeholder","Nueva contrase\xf1a","formControlName","password","pattern","^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$"],["type","password","matInput","","placeholder","Confirmaci\xf3n de contrase\xf1a","formControlName","confirmPassword"],[1,"col-12","col-md-6"],["placeholder","Departamento","matInput","","formControlName","department","required","",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["autoDepts","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Ciudad","matInput","","formControlName","city","required","",3,"matAutocomplete"],["autoCities","matAutocomplete"],["matInput","","placeholder","Direcci\xf3n","formControlName","address"],[3,"idform","form","validation_messages"],[1,"bnts-form-edProfile","text-center"],["mat-raised-button","","color","primary","class","mr-3",3,"disabled","click",4,"ngIf"],["mat-raised-button","","color","primary","class","mr-3",3,"click",4,"ngIf"],[1,"example-tab-icon"],["class","error-message",4,"ngIf"],[1,"error-message"],[3,"value"],["mat-raised-button","","color","primary",1,"mr-3",3,"disabled","click"],["mat-raised-button","","color","primary",1,"mr-3",3,"click"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"h4"),i.Lc(3,"Editar Perfil"),i.Tb(),i.Ub(4,"div"),i.Ub(5,"form",2),i.Ub(6,"mat-tab-group",3),i.cc("selectedTabChange",(function(t){return e.viewOption(t)})),i.Ub(7,"mat-tab"),i.Jc(8,nG,3,0,"ng-template",4),i.Ub(9,"div",5),i.Ub(10,"div",6),i.Ub(11,"div",7),i.Ub(12,"div",8),i.Ub(13,"h5"),i.Lc(14,"Requeridos"),i.Tb(),i.Ub(15,"div",9),i.Ub(16,"div",10),i.Ub(17,"mat-form-field"),i.Pb(18,"input",11),i.Jc(19,rG,2,1,"mat-error",12),i.Tb(),i.Tb(),i.Ub(20,"div",10),i.Ub(21,"mat-form-field"),i.Pb(22,"input",13),i.Jc(23,sG,2,1,"mat-error",12),i.Tb(),i.Tb(),i.Tb(),i.Ub(24,"div",9),i.Ub(25,"div",10),i.Ub(26,"mat-form-field"),i.Ub(27,"mat-select",14),i.Ub(28,"mat-option",15),i.Lc(29,"C\xe9dula de Ciudadania"),i.Tb(),i.Ub(30,"mat-option",16),i.Lc(31,"C\xe9dula de Extranjer\xeda"),i.Tb(),i.Ub(32,"mat-option",17),i.Lc(33,"Pasaporte"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(34,"div",10),i.Ub(35,"mat-form-field"),i.Pb(36,"input",18),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(37,"div",19),i.Ub(38,"h5"),i.Lc(39,"Grafo manuscrito"),i.Tb(),i.Ub(40,"p"),i.Lc(41,"Carga una imagen de tu firma, la cual ser\xe1 adicionada al final del acta notarial."),i.Tb(),i.Ub(42,"mat-card",20),i.Ub(43,"div",21),i.Ub(44,"div",22),i.Ub(45,"div",23),i.cc("click",(function(){return e.showGeneralDialogCapture()})),i.Ub(46,"mat-icon"),i.Lc(47,"visibility"),i.Tb(),i.Tb(),i.Ub(48,"div",24),i.cc("click",(function(){return e.deleteImage()})),i.Ub(49,"mat-icon"),i.Lc(50,"delete"),i.Tb(),i.Tb(),i.Ub(51,"div",25),i.Pb(52,"img",26,27),i.Tb(),i.Tb(),i.Ub(54,"div",28),i.Ub(55,"div",29),i.Ub(56,"span",30),i.Ub(57,"label",31),i.Lc(58),i.Tb(),i.Ub(59,"button",32),i.Lc(60,"Cargar Firma"),i.Tb(),i.Tb(),i.Ub(61,"input",33,34),i.cc("click",(function(){return e.clearInputsFile()}))("change",(function(t){return e.handleFileInput(t.target.files)})),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(63,"div",35),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(64,"mat-tab"),i.Jc(65,aG,3,0,"ng-template",4),i.Ub(66,"div",5),i.Ub(67,"div",36),i.Ub(68,"div",7),i.Ub(69,"h5"),i.Lc(70,"Datos de la cuenta"),i.Tb(),i.Ub(71,"mat-form-field",37),i.Pb(72,"input",38),i.Tb(),i.Tb(),i.Ub(73,"div",7),i.Ub(74,"h5"),i.Lc(75,"Cambio de contrase\xf1a"),i.Tb(),i.Ub(76,"mat-form-field"),i.Pb(77,"input",39),i.Jc(78,lG,2,1,"mat-error",12),i.Tb(),i.Ub(79,"mat-form-field"),i.Pb(80,"input",40),i.Jc(81,dG,2,1,"mat-error",12),i.Tb(),i.Ub(82,"mat-form-field"),i.Pb(83,"input",41),i.Jc(84,pG,2,1,"mat-error",12),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(85,"mat-tab"),i.Jc(86,mG,3,0,"ng-template",4),i.Ub(87,"div",5),i.Ub(88,"div",36),i.Ub(89,"div",7),i.Ub(90,"h5"),i.Lc(91,"D\xf3nde te encuentras"),i.Tb(),i.Ub(92,"div",9),i.Ub(93,"div",42),i.Ub(94,"mat-form-field"),i.Pb(95,"input",43),i.Ub(96,"mat-autocomplete",44,45),i.Jc(98,fG,2,2,"mat-option",46),i.hc(99,"async"),i.Tb(),i.Jc(100,gG,2,1,"mat-error",12),i.Tb(),i.Tb(),i.Ub(101,"div",42),i.Ub(102,"mat-form-field"),i.Pb(103,"input",47),i.Ub(104,"mat-autocomplete",44,48),i.Jc(106,_G,2,2,"mat-option",46),i.hc(107,"async"),i.Tb(),i.Jc(108,yG,2,1,"mat-error",12),i.Tb(),i.Tb(),i.Tb(),i.Ub(109,"mat-form-field"),i.Pb(110,"input",49),i.Tb(),i.Tb(),i.Ub(111,"div",7),i.Ub(112,"h5"),i.Lc(113,"Tel\xe9fono de contacto"),i.Tb(),i.Ub(114,"div",9),i.Ub(115,"div",10),i.Pb(116,"app-phone-number-input",50),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(117,"div",51),i.Jc(118,wG,2,1,"button",52),i.Jc(119,CG,2,0,"button",53),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(120,"aswc-page-loader-default")),2&t){const t=i.uc(97),n=i.uc(105);i.Db(5),i.mc("formGroup",e.profileForm),i.Db(14),i.mc("ngForOf",e.validation_messages.firstName),i.Db(4),i.mc("ngForOf",e.validation_messages.lastName),i.Db(14),i.mc("hidden","Administrator"!==e.userRole),i.Db(8),i.mc("hidden",!e.changesFile),i.Db(3),i.mc("hidden",!e.changesFile),i.Db(10),i.Mc(e.labelTextFile),i.Db(20),i.mc("ngForOf",e.validation_messages.currentPassword),i.Db(3),i.mc("ngForOf",e.validation_messages.password),i.Db(3),i.mc("ngForOf",e.validation_messages.confirmPassword),i.Db(11),i.mc("matAutocomplete",t),i.Db(1),i.mc("displayWith",e.displayDept),i.Db(2),i.mc("ngForOf",i.ic(99,23,e.filteredDepts)),i.Db(2),i.mc("ngForOf",e.validation_messages.department),i.Db(3),i.mc("matAutocomplete",n),i.Db(1),i.mc("displayWith",e.displayCity),i.Db(2),i.mc("ngForOf",i.ic(107,25,e.filteredCities)),i.Db(2),i.mc("ngForOf",e.validation_messages.city),i.Db(8),i.mc("idform",0)("form",e.profileForm)("validation_messages",e.validation_messages),i.Db(2),i.mc("ngIf",e.blockPasswordBtn),i.Db(1),i.mc("ngIf",!e.blockPasswordBtn)}},styles:[".sc_bnn_edProfile[_ngcontent-%COMP%]{padding:2rem 0}.sc_bnn_edProfile[_ngcontent-%COMP%]   .cnt-img-edProfile[_ngcontent-%COMP%]{padding:.4rem;width:220px;height:220px;border-radius:50%;box-shadow:1px 1px 8px 0 rgba(2,2,2,.25)}.sc_bnn_edProfile[_ngcontent-%COMP%]   .img-edProfile[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;border-radius:50%;overflow:hidden}.sc_bnn_edProfile[_ngcontent-%COMP%]   .img-edProfile[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%}.content-tab-edProfile[_ngcontent-%COMP%]{padding:2rem 15px}.content-tab-edProfile[_ngcontent-%COMP%]   .sc-content-tab-edProfile[_ngcontent-%COMP%]{margin-bottom:2rem}.content-tab-edProfile[_ngcontent-%COMP%]   .sc-content-tab-edProfile[_ngcontent-%COMP%]:last-child{margin-bottom:0}.content-tab-edProfile[_ngcontent-%COMP%]   .bnts-form-edProfile[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-right:1rem}.content-tab-edProfile[_ngcontent-%COMP%]   .bnts-form-edProfile[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-right:0}.example-tab-icon[_ngcontent-%COMP%]{margin-right:8px}.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]{padding:10px}.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]   .cnt-img-digitalSign[_ngcontent-%COMP%]{position:relative;background:#dfdfdf;border:2px solid #b3b3b3;width:100px;height:70px;margin-left:15px}.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]   .cnt-img-digitalSign[_ngcontent-%COMP%]   .img-digitalSign[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden}.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]   .cnt-img-digitalSign[_ngcontent-%COMP%]   .img-digitalSign[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;min-width:100%;min-height:100%}.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]   .cnt-img-digitalSign[_ngcontent-%COMP%]:hover   .hvr-viewSing[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]   .cnt-img-digitalSign[_ngcontent-%COMP%]   .hvr-viewSing[_ngcontent-%COMP%]{position:absolute;display:none;cursor:pointer;padding:8px;background:rgba(0,0,0,.85);color:#fff;left:0;right:0;top:0;bottom:0}.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]   .cnt-img-digitalSign[_ngcontent-%COMP%]   .btn-deleteLoadedSign[_ngcontent-%COMP%]{background-color:#4fbfd3;color:#fff;display:flex;align-items:center;justify-content:center;position:absolute;right:-10px;top:-10px;width:24px;height:24px;border-radius:50%}.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]   .cnt-img-digitalSign[_ngcontent-%COMP%]   .btn-deleteLoadedSign[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:18px;height:auto;width:auto}.upload-btn-wrapper[_ngcontent-%COMP%]{position:relative;overflow:hidden}.cnt-inpReplace[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:space-between;width:100%;align-items:center;padding:8px;border-bottom:1px solid}.btn-inpFile[_ngcontent-%COMP%]{cursor:pointer}.lbl-inpFile[_ngcontent-%COMP%]{max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:20px;margin-bottom:0;font-size:.8rem}.upload-btn-wrapper[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{font-size:100px;position:absolute;left:0;top:0;opacity:0}@media (max-width:576px){.scc-Upload[_ngcontent-%COMP%]   .cnt-showImgSgn[_ngcontent-%COMP%]   .cnt-img-digitalSign[_ngcontent-%COMP%]{width:100%;height:70%;margin-right:15px}.upload-btn-wrapper[_ngcontent-%COMP%]   .cnt-inpReplace[_ngcontent-%COMP%]{border-bottom:0;justify-content:center;margin-top:.85rem}.upload-btn-wrapper[_ngcontent-%COMP%]   .cnt-inpReplace[_ngcontent-%COMP%]   .lbl-inpFile[_ngcontent-%COMP%]{display:none}}"]}),t})(),OG=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-reusable-modules"]],decls:1,vars:0,template:function(t,e){1&t&&i.Pb(0,"router-outlet")},directives:[ra],encapsulation:2}),t})();var SG=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))},TG=function(t){return t.CANCELED="CANCELED",t.FINISHED="FINISHED",t.STARTED="STARTED",t}({});let DG=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d,h,p,m){this.cn=t,this.router=e,this.globalVarService=n,this._pageLoaderServiceSign=i,this.dialog=r,this.signatureProcessesService=o,this.sendDocsToSignService=s,this.massiveSignatureService=a,this._pageLoaderService=c,this.invitationSignService=l,this.notificationsService=u,this.networkInfoService=d,this.location=h,this.authVeriffService=p,this.enterpriseService=m,this.isExternal=!1,this.btn_text="",this.redirectUrl="",this.isResponseOK=!1}ngOnInit(){this.uuid=jB.UUID.UUID().split("-")[0],console.log("uuid:",this.uuid),this.router.url.includes("corporate/pb/")?(this.user=JSON.parse(sessionStorage.getItem("userDataExternal")),this.globalVarService.path_route="corporate/pb/",this.isExternal=!0):(this.user=JSON.parse(sessionStorage.getItem("userData")),this.globalVarService.path_route="corporate/pv/");const t=btoa('"'+this.globalVarService.processId+'"');this.addDataProcessVeriff(),this.loadConfigVeriff(t)}addDataProcessVeriff(){return SG(this,void 0,void 0,(function*(){let t="";this._pageLoaderService.show();try{t=(yield this.networkInfoService.getIP().toPromise()).ip}catch(e){this.cn.log("Error get ip: ",e),this._pageLoaderService.hide()}this.authVeriffService.addDataProcessVeriff({citySign:"",email:this.user.email,external:this.isExternal,idCustom:this.uuid,identificationNumber:this.user.identificationNumber,ipAddress:t,signersType:this.globalVarService.select_signers_type,typeSignature:this.globalVarService.type_signature}).subscribe(t=>{this.cn.log("addDataProcessVeriff(): ",t),this._pageLoaderService.hide()},t=>{this.cn.log("Error - addDataProcessVeriff(): ",t),this._pageLoaderService.hide()})}))}loadConfigVeriff(t){return SG(this,void 0,void 0,(function*(){const e=this,n=Veriff({host:"https://stationapi.veriff.com",apiKey:r.veriffApiKey,parentId:"veriff-root",onSession:function(t,n){console.log("onsession: ",n,t,n.verification.id),window.veriffSDK.createVeriffFrame({url:n.verification.url,onEvent:function(t){switch(console.log("Verification:",t,n),t){case TG.CANCELED:console.log("Verification canceled.");break;case TG.FINISHED:console.log("Verification finished."),e.redirectProcess();break;case TG.STARTED:console.log("Verification started.")}}})}});n.setParams({person:{givenName:" ",lastName:" "},vendorData:`${t}:${this.user.identificationNumber}:${this.uuid}`}),n.mount({submitBtnText:"VALIDAR",loadingText:"Cargando..."})}))}redirectProcess(){new gU(this.signatureProcessesService,this.notificationsService,this.globalVarService).sendMessage(this.globalVarService.processId,"SignedSome"),this.router.navigate([this.globalVarService.path_route+"messages/signed-docs"])}convertProcessInString(t){return this.processFilter="",this.globalVarService.type_signature===pU.SIMPLE?this.processFilter+='"'+this.globalVarService.processId+'"':(this.processFilter="",t.forEach((e,n)=>{this.processFilter+='"'+e+'"',this.processFilter+=n!==t.length-1?",":""})),btoa(this.processFilter)}retryProcess(){this.cn.log("===== retryProcess() =====",this.resultValidate),this.btn_text="REINTENTAR"}showGeneralDialog(t){return this.cn.log("showGeneralDialog()"),this._pageLoaderService.hide(),this.dialog.open(fU,{width:"480px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Gi),i.Ob(Zs),i.Ob(cg),i.Ob(uU),i.Ob(Jb),i.Ob(Lg),i.Ob(Ag),i.Ob(xg),i.Ob(pg),i.Ob(Cg),i.Ob(Sg),i.Ob(ug),i.Ob(zg),i.Ob(fg),i.Ob(US))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-auth-veriff"]],decls:15,vars:0,consts:[[1,""],[1,"container","wt-430","pt-4","pb-4","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/face-detection.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],["id","itemResetPsw",1,"form-login"],[1,"center"],["id","veriff-root"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"h2"),i.Lc(7,"Reconocimiento facial"),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"div",7),i.Ub(10,"div"),i.Ub(11,"p"),i.Lc(12,"Haz clic en el bot\xf3n para iniciar el proceso de validaci\xf3n de identidad a trav\xe9s de reconocimiento facial. "),i.Tb(),i.Tb(),i.Ub(13,"div",8),i.Pb(14,"div",9),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:var(--second-color-v1);color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}.center[_ngcontent-%COMP%]{text-align:center}"]}),t})();function kG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"N\xfamero de terminal:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",null==t.paymentInformation||null==t.paymentInformation.cardAuthInfo?null:t.paymentInformation.cardAuthInfo.approvalCode," ")}}function PG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"Franquicia:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",null==t.paymentInformation||null==t.paymentInformation.cardAuthInfo?null:t.paymentInformation.cardAuthInfo.paymentSystem," ")}}function EG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"Titular de la Tarjeta:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",null==t.paymentInformation||null==t.paymentInformation.cardAuthInfo?null:t.paymentInformation.cardAuthInfo.cardholderName," ")}}function AG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"ID de la transaccion:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",null==t.paymentInformation||null==t.paymentInformation.pseInfo?null:t.paymentInformation.pseInfo.traceabilityCode," ")}}function IG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"Tipo de persona:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",t.userTypePSE(null==t.paymentInformation||null==t.paymentInformation.pseInfo?null:t.paymentInformation.pseInfo.userType)," ")}}function MG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"Tipo de documento:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",null==t.paymentInformation||null==t.paymentInformation.pseInfo?null:t.paymentInformation.pseInfo.docType," ")}}function UG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"Documento:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",null==t.paymentInformation||null==t.paymentInformation.pseInfo?null:t.paymentInformation.pseInfo.docNumber," ")}}function LG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"ID de la transaccion:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",null==t.paymentInformation||null==t.paymentInformation.efectyOrderInfo?null:t.paymentInformation.efectyOrderInfo.referenceNumber," ")}}function RG(t,e){if(1&t&&(i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2,"ID de la transaccion:"),i.Tb(),i.Ub(3,"td"),i.Lc(4),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(4),i.Nc(" ",null==t.paymentInformation||null==t.paymentInformation.efectyOrderInfo?null:t.paymentInformation.efectyOrderInfo.networkName," ")}}function NG(t,e){1&t&&(i.Ub(0,"button",17),i.Ub(1,"i",18),i.Lc(2,"home"),i.Tb(),i.Lc(3," VERIFICACI\xd3N FACIAL "),i.Tb())}function FG(t,e){1&t&&(i.Ub(0,"button",19),i.Ub(1,"i",18),i.Lc(2,"home"),i.Tb(),i.Lc(3," REINTENTAR PAGO"),i.Tb())}function VG(t,e){1&t&&(i.Ub(0,"button",20),i.Ub(1,"i",18),i.Lc(2,"home"),i.Tb(),i.Lc(3," CONTINUAR "),i.Tb())}function jG(t,e){1&t&&(i.Ub(0,"button",21),i.Ub(1,"i",18),i.Lc(2,"home"),i.Tb(),i.Lc(3," REINTENTAR PAGO"),i.Tb())}let BG=(()=>{class t{constructor(t,e,n,i,r,o,s){this.route=t,this.router=e,this.cn=n,this.pageLoader=i,this.credibancoService=r,this.processStatusService=o,this.globalVarService=s,this.processStatus=null}ngOnInit(){this.loadResponse()}loadResponse(){this.cn.log("loadResponse()"),this.router.url.includes("corporate/pb/")?(this.redirectUrl="/corporate/pb",this.user=JSON.parse(sessionStorage.getItem("userDataExternal")),this.globalVarService.path_route="corporate/pb/"):(this.redirectUrl="/corporate/pv",this.globalVarService.path_route="corporate/pv/",this.user=JSON.parse(sessionStorage.getItem("userData"))),this.route.queryParams.subscribe(t=>{this.orderId=t.orderId,null!=this.orderId?this.getInformation():this.router.navigate(["/corporate/pv/payment/recharge"])})}getInformation(){this.cn.log("getInformation()"),this.pageLoader.show(),this.credibancoService.getInformation(this.orderId).subscribe(t=>{return e=this,void 0,i=function*(){this.paymentInformation=t.operationBody;try{this.processStatus=yield this.processStatusService.getProcessStatusById(this.globalVarService.processId,this.user.email).toPromise()}catch(e){this.cn.log("processStatus error: ",e)}this.pageLoader.hide()},new((n=void 0)||(n=Promise))((function(t,r){function o(t){try{a(i.next(t))}catch(e){r(e)}}function s(t){try{a(i.throw(t))}catch(e){r(e)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,s)}a((i=i.apply(e,[])).next())}));var e,n,i},t=>{this.pageLoader.hide()})}statusPayment(){var t;let e="";switch(null===(t=this.paymentInformation)||void 0===t?void 0:t.orderStatus){case 2:e="Aprobado";break;case 4:e="Anulada";break;case 6:e="Rechazado";break;case 7:e="Pendiente";break;default:e="Pendiente"}return e}userTypePSE(t){let e="";switch(t){case"0":e="Persona Natural";break;case"1":e="Persona Jur\xeddica"}return e}classNameStatus(){var t;let e="";switch(null===(t=this.paymentInformation)||void 0===t?void 0:t.orderStatus){case 2:e="balance-result text-color-succes";break;case 4:case 6:e="balance-result text-color-errors";break;default:e="balance-result text-color-alert"}return e}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Fo),i.Ob(Zs),i.Ob(Gi),i.Ob(pg),i.Ob(Tg),i.Ob(Dg),i.Ob(cg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-response-credibanco"]],decls:48,vars:21,consts:[[1,""],[1,"container","wt-430","pt-4","pb-4","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/balance-recharge-06.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"sc-subtitle-top-up-balance"],[1,"balance-tag"],[3,"ngClass"],[1,"content-top-up-balance"],[1,"responde-table"],[4,"ngIf"],[1,"mt-4","text-center"],["mat-raised-button","","color","primary","routerLink","/corporate/pb/authentication/auth-veriff",4,"ngIf"],["mat-raised-button","","color","primary","routerLink","/corporate/pb/payment/payment-summary",4,"ngIf"],["mat-raised-button","","color","primary","routerLink","/corporate/pv/messages/signed-docs",4,"ngIf"],["mat-raised-button","","color","primary","routerLink","/corporate/pv/payment/payment-summary",4,"ngIf"],["mat-raised-button","","color","primary","routerLink","/corporate/pb/authentication/auth-veriff"],[1,"material-icons"],["mat-raised-button","","color","primary","routerLink","/corporate/pb/payment/payment-summary"],["mat-raised-button","","color","primary","routerLink","/corporate/pv/messages/signed-docs"],["mat-raised-button","","color","primary","routerLink","/corporate/pv/payment/payment-summary"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"div",6),i.Ub(7,"span",7),i.Lc(8,"Estado de la transacci\xf3n"),i.Tb(),i.Ub(9,"span",8),i.Lc(10),i.Tb(),i.Tb(),i.Tb(),i.Ub(11,"div",9),i.Ub(12,"table",10),i.Ub(13,"tr"),i.Ub(14,"td"),i.Lc(15,"N\xfamero de orden:"),i.Tb(),i.Ub(16,"td"),i.Lc(17),i.Tb(),i.Tb(),i.Ub(18,"tr"),i.Ub(19,"td"),i.Lc(20,"Descripci\xf3n:"),i.Tb(),i.Ub(21,"td"),i.Lc(22),i.Tb(),i.Tb(),i.Jc(23,kG,5,1,"tr",11),i.Jc(24,PG,5,1,"tr",11),i.Jc(25,EG,5,1,"tr",11),i.Jc(26,AG,5,1,"tr",11),i.Jc(27,IG,5,1,"tr",11),i.Jc(28,MG,5,1,"tr",11),i.Jc(29,UG,5,1,"tr",11),i.Jc(30,LG,5,1,"tr",11),i.Jc(31,RG,5,1,"tr",11),i.Ub(32,"tr"),i.Ub(33,"td"),i.Lc(34,"Moneda:"),i.Tb(),i.Ub(35,"td"),i.Lc(36," COP "),i.Tb(),i.Tb(),i.Ub(37,"tr"),i.Ub(38,"td"),i.Lc(39,"Valor total:"),i.Tb(),i.Ub(40,"td"),i.Lc(41),i.hc(42,"currency"),i.Tb(),i.Tb(),i.Tb(),i.Ub(43,"div",12),i.Jc(44,NG,4,0,"button",13),i.Jc(45,FG,4,0,"button",14),i.Jc(46,VG,4,0,"button",15),i.Jc(47,jG,4,0,"button",16),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(9),i.mc("ngClass",e.classNameStatus()),i.Db(1),i.Mc(e.statusPayment()),i.Db(7),i.Nc(" ",null==e.paymentInformation?null:e.paymentInformation.orderNumber," "),i.Db(5),i.Nc(" ",null==e.paymentInformation?null:e.paymentInformation.description," "),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.cardAuthInfo)),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.cardAuthInfo)),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.cardAuthInfo)),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.pseInfo)),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.pseInfo)),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.pseInfo)),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.pseInfo)),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.efectyOrderInfo)),i.Db(1),i.mc("ngIf",null!=(null==e.paymentInformation?null:e.paymentInformation.efectyOrderInfo)),i.Db(10),i.Nc("",i.jc(42,18,(null==e.paymentInformation?null:e.paymentInformation.amount)/100,"$")," "),i.Db(3),i.mc("ngIf",2===(null==e.paymentInformation?null:e.paymentInformation.orderStatus)&&e.processStatus.external),i.Db(1),i.mc("ngIf",2!==(null==e.paymentInformation?null:e.paymentInformation.orderStatus)&&e.processStatus.external),i.Db(1),i.mc("ngIf",2===(null==e.paymentInformation?null:e.paymentInformation.orderStatus)&&!e.processStatus.external),i.Db(1),i.mc("ngIf",2!==(null==e.paymentInformation?null:e.paymentInformation.orderStatus)&&!e.processStatus.external))},directives:[o.q,o.t,zm,ta],pipes:[o.d],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#21476b;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}.responde-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e8}.responde-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:last-child{border-bottom:0}.responde-table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{vertical-align:top}"]}),t})();const zG=ma.forChild([{path:"challenge-questions",component:WU,data:{titulo:"Preguntas reto"}},{path:"test-modal",component:wq,data:{titulo:"Test Modal"}},{path:"auth-mati",component:XU,data:{titulo:"Mati test"}},{path:"page-loader",component:Eq,data:{titulo:"Page Loader"}},{path:"page-loader-sign",component:Pq,data:{titulo:"Page Loader"}},{path:"capture-video",component:FU,data:{titulo:"video"}}]);let qG=(()=>{class t{constructor(t){this.httpClient=t}createScheduling(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(ou+"post/addScheduling",t,e).pipe(Ml())}getSchedulingsByIdNotaryAndDate(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(ou+"post/schedulingsByIdNotaryAndDate",t,e).pipe(Ml())}getSchedulingsByEmail(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(ou+"post/schedulingsByEmail",t,e).pipe(Ml())}getSchedulingsByNotaryAndRange(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.post(ou+"post/schedulingsByIdNotaryAndRangeDate",t,e).pipe(Ml())}getSchedulingById(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.get(ou+"get/detailScheduling/"+t,e).pipe(Ml())}deleteSchedulingById(t){const e={headers:new g({"Content-Type":"application/json","x-api-key":""})};return this.httpClient.delete(ou+"delete/"+t,e).pipe(Ml())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function HG(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Tr\xe1mite "),i.Tb())}function GG(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.nameProcedure," ")}}function JG(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Usuario "),i.Tb())}function YG(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",null==t.user?null:t.user.email," ")}}function $G(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Tipo de identificaci\xf3n "),i.Tb())}function WG(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.Nc(" ",n.findTypeDocument(null==t.user?null:t.user.typeDocument)," ")}}function KG(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Numero de identificaci\xf3n "),i.Tb())}function QG(t,e){if(1&t&&(i.Ub(0,"td",30),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",null==t.user?null:t.user.identificationNumber," ")}}function XG(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Solicitud "),i.Tb())}function ZG(t,e){if(1&t&&(i.Ub(0,"td",30),i.Ub(1,"span",31),i.Ub(2,"span",32),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",33),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.regDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.regDate,"hh:mm a"))}}function tJ(t,e){1&t&&(i.Ub(0,"th",29),i.Lc(1," Fecha de Cita "),i.Tb())}function eJ(t,e){if(1&t&&(i.Ub(0,"td",30),i.Ub(1,"span",31),i.Ub(2,"span",32),i.Lc(3),i.Tb(),i.Ub(4,"span",33),i.Lc(5),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(3),i.Mc(t.date),i.Db(2),i.Nc(" ",n.convertHour(t.hour)," ")}}function nJ(t,e){1&t&&i.Pb(0,"tr",34)}function iJ(t,e){1&t&&i.Pb(0,"tr",35)}const rJ=function(){return[10,20,30,40,50]},oJ=[];let sJ=(()=>{class t{constructor(t,e,n,i,r,s,a){this.translate=t,this.dateAdapter=e,this.formBuilder=n,this._pageLoaderService=i,this.userSchedulingService=r,this.enterpriseService=s,this.cn=a,this.displayedColumns=["formality","user","typeId","NoId","dateRequest","dateSchedule"],this.dataSource=new Sx(oJ),this.datepipe=new o.f("es"),this.minDate=new Date,this.fg=this.formBuilder.group({initDate:[""],endDate:[""]})}ngOnInit(){this.translate.use("es"),this.dateAdapter.setLocale("es");const t=this.datepipe.transform(this.minDate,"dd/MM/yyyy");this.fg.controls.initDate.setValue(this.minDate),this.fg.controls.endDate.setValue(this.minDate),this.getSchedulingByNotaryAndRangeDate(t,t)}ngAfterViewInit(){this.dataSource.paginator=this.paginator}applyFilter(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}getSchedulingByNotaryAndRangeDate(t,e){this._pageLoaderService.show();const n=JSON.parse(sessionStorage.getItem("userData"));this.enterpriseService.getEnterprise(n.enterpriseId).subscribe(n=>{this.cn.log("getEnterprise() response:",n);const i=new gq;i.idNotary=n.operationBody[0].enterpriseId.toString(),i.initDate=t,i.endDate=e,this.userSchedulingService.getSchedulingsByNotaryAndRange(i).subscribe(t=>{this.dataSource.data=t.operationBody,this._pageLoaderService.hide()},t=>{this.dataSource.data=[],this._pageLoaderService.hide()})},t=>{this.cn.error("getEnterprise() error: ",t),this._pageLoaderService.hide()})}convertHour(t){let e=t.split(":")[0],n=t.split(":")[1];const i=e>12?"pm":"am";return n=1===(n+"").length?"0"+n:n,e=e>12?e-12:e,e=1===(e+"").length?"0"+e:e,`${e}:${n} ${i}`}findTypeDocument(t){for(const e in cU)if(e===t)return cU[e];return""}onDateSelectDate(t){if(null!==this.fg.controls.initDate.value&&null!==this.fg.controls.endDate.value){const t=this.datepipe.transform(this.fg.controls.initDate.value,"dd/MM/yyyy"),e=this.datepipe.transform(this.fg.controls.endDate.value,"dd/MM/yyyy");this.getSchedulingByNotaryAndRangeDate(t,e)}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Bi),i.Ob(Fd),i.Ob(fl),i.Ob(pg),i.Ob(qG),i.Ob(US),i.Ob(Gi))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-notary-list-scheduling"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},features:[i.Cb([{provide:o.f,useValue:void 0},{provide:Fd,useClass:Mj},{provide:Vd,useValue:Lj}])],decls:49,vars:9,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center","mb-5"],[1,"col-12","col-md-6"],[1,"row"],[1,"col-12","col-md-4","col-lg-3"],[3,"formGroup"],["appearance","standard"],[3,"rangePicker","min"],["matStartDate","","placeholder","Fecha de inicio","formControlName","initDate"],["matEndDate","","placeholder","Fecha de fin","formControlName","endDate",3,"dateChange"],["matSuffix","",3,"for"],["picker",""],[1,"col-12","col-md-4","col-lg-3","offset-md-4","offset-lg-6"],["matInput","","placeholder","Ej. Tr\xe1mite, Usuario, No. de documento",3,"keyup"],["input",""],["matSuffix",""],[1,"rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","formality"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","user"],["matColumnDef","typeId"],["matColumnDef","NoId"],["matColumnDef","dateRequest"],["matColumnDef","dateSchedule"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fechaHora"],[1,"tb-fecha"],[1,"tb-hora"],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div"),i.Ub(2,"div",1),i.Ub(3,"div",2),i.Ub(4,"h4"),i.Lc(5,"Agendamientos"),i.Tb(),i.Tb(),i.Tb(),i.Ub(6,"div",3),i.Ub(7,"div",4),i.Ub(8,"form",5),i.Ub(9,"mat-form-field",6),i.Ub(10,"mat-label"),i.Lc(11,"Fecha de cita"),i.Tb(),i.Ub(12,"mat-date-range-input",7),i.Pb(13,"input",8),i.Ub(14,"input",9),i.cc("dateChange",(function(t){return e.onDateSelectDate(t)})),i.Tb(),i.Tb(),i.Pb(15,"mat-datepicker-toggle",10),i.Pb(16,"mat-date-range-picker",null,11),i.Tb(),i.Tb(),i.Tb(),i.Ub(18,"div",12),i.Ub(19,"mat-form-field",6),i.Ub(20,"mat-label"),i.Lc(21,"Buscar..."),i.Tb(),i.Ub(22,"input",13,14),i.cc("keyup",(function(t){return e.applyFilter(t)})),i.Tb(),i.Ub(24,"mat-icon",15),i.Lc(25,"search"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(26,"div",16),i.Ub(27,"table",17),i.Sb(28,18),i.Jc(29,HG,2,0,"th",19),i.Jc(30,GG,2,1,"td",20),i.Rb(),i.Sb(31,21),i.Jc(32,JG,2,0,"th",19),i.Jc(33,YG,2,1,"td",20),i.Rb(),i.Sb(34,22),i.Jc(35,$G,2,0,"th",19),i.Jc(36,WG,2,1,"td",20),i.Rb(),i.Sb(37,23),i.Jc(38,KG,2,0,"th",19),i.Jc(39,QG,2,1,"td",20),i.Rb(),i.Sb(40,24),i.Jc(41,XG,2,0,"th",19),i.Jc(42,ZG,8,8,"td",20),i.Rb(),i.Sb(43,25),i.Jc(44,tJ,2,0,"th",19),i.Jc(45,eJ,6,2,"td",20),i.Rb(),i.Jc(46,nJ,1,0,"tr",26),i.Jc(47,iJ,1,0,"tr",27),i.Tb(),i.Tb(),i.Pb(48,"mat-paginator",28),i.Tb()),2&t){const t=i.uc(17);i.Db(8),i.mc("formGroup",e.fg),i.Db(4),i.mc("rangePicker",t)("min",e.minDate),i.Db(3),i.mc("for",t),i.Db(12),i.mc("dataSource",e.dataSource),i.Db(19),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(8,rJ))}},directives:[zc,Fa,Yc,Uv,xv,Ok,vk,Aa,Na,tl,yk,bk,kv,wk,uy,Kv,JC,tx,KC,$C,cx,hx,EP,nx,sx,mx,_x],pipes:[o.f],styles:["td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}"]}),t})();function aJ(t,e){1&t&&(i.Ub(0,"th",26),i.Lc(1," Tr\xe1mite "),i.Tb())}function cJ(t,e){if(1&t&&(i.Ub(0,"td",27),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.nameProcedure," ")}}function lJ(t,e){1&t&&(i.Ub(0,"th",26),i.Lc(1," Notar\xeda "),i.Tb())}function uJ(t,e){if(1&t&&(i.Ub(0,"td",27),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" Notar\xeda ",(null==t.notary?null:t.notary.notaryNumber)>0?null==t.notary?null:t.notary.notaryNumber:null==t.notary?null:t.notary.enterpriseName," ")}}function dJ(t,e){1&t&&(i.Ub(0,"th",26),i.Lc(1," C\xedrculo "),i.Tb())}function hJ(t,e){if(1&t&&(i.Ub(0,"td",27),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",null==t.notary?null:t.notary.city," ")}}function pJ(t,e){1&t&&(i.Ub(0,"th",26),i.Lc(1," Solicitud "),i.Tb())}function mJ(t,e){if(1&t&&(i.Ub(0,"td",27),i.Ub(1,"span",28),i.Ub(2,"span",29),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",30),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.regDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.regDate,"hh:mm a"))}}function fJ(t,e){1&t&&(i.Ub(0,"th",26),i.Lc(1," Fecha de Cita "),i.Tb())}function bJ(t,e){if(1&t&&(i.Ub(0,"td",27),i.Ub(1,"span",28),i.Ub(2,"span",29),i.Lc(3),i.Tb(),i.Ub(4,"span",30),i.Lc(5),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(3),i.Mc(t.date),i.Db(2),i.Nc(" ",n.convertHour(t.hour)," ")}}function gJ(t,e){1&t&&(i.Ub(0,"th",31),i.Lc(1," M\xe1s "),i.Tb())}function _J(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",32),i.Ub(1,"button",33),i.Ub(2,"mat-icon"),i.Lc(3,"arrow_drop_down_circle"),i.Tb(),i.Tb(),i.Ub(4,"mat-menu",34,35),i.Ub(6,"button",36),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().openDialogDetailSchedule(n)})),i.Ub(7,"mat-icon"),i.Lc(8,"info"),i.Tb(),i.Ub(9,"span"),i.Lc(10,"Ver detalle"),i.Tb(),i.Tb(),i.Ub(11,"button",36),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().openDialogCancelSchedule(n)})),i.Ub(12,"mat-icon"),i.Lc(13,"cancel"),i.Tb(),i.Ub(14,"span"),i.Lc(15,"Cancelar cita"),i.Tb(),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=i.uc(5);i.Db(1),i.mc("matMenuTriggerFor",t)}}function vJ(t,e){1&t&&i.Pb(0,"tr",37)}function yJ(t,e){1&t&&i.Pb(0,"tr",38)}const wJ=function(){return[10,20,30,40,50]},CJ=[];let xJ=(()=>{class t{constructor(t,e,n){this.dialog=t,this._pageLoaderService=e,this.userSchedulingService=n,this.displayedColumns=["formality","notary","circle","dateRequest","dateSchedule","actions"],this.dataSource=new Sx(CJ)}ngOnInit(){this.getSchedulingByEmail()}getSchedulingByEmail(){this._pageLoaderService.show();const t=JSON.parse(sessionStorage.getItem("userData")),e=new gq;e.email=t.email,e.idNotary=t.notaryId,this.userSchedulingService.getSchedulingsByEmail(e).subscribe(t=>{this.dataSource.data=t.operationBody,this._pageLoaderService.hide()},t=>{this._pageLoaderService.hide()})}openDialogDetailSchedule(t){this.dialog.open(vq,{width:"830px",data:t}).afterClosed().subscribe(t=>{console.log("Dialog result: "+t)})}openDialogCancelSchedule(t){this.dialog.open(_q,{width:"830px",data:t}).afterClosed().subscribe(e=>{console.log("Dialog result: "+e),"Confirmar"===e&&this.deleteSchedulingById(t.id)})}ngAfterViewInit(){this.dataSource.paginator=this.paginator}applyFilter(t){this.dataSource.filter=t.target.value.trim().toLowerCase()}convertHour(t){let e=t.split(":")[0],n=t.split(":")[1];const i=e>12?"pm":"am";return n=1===(n+"").length?"0"+n:n,e=e>12?e-12:e,e=1===(e+"").length?"0"+e:e,`${e}:${n} ${i}`}deleteSchedulingById(t){this._pageLoaderService.show(),this.userSchedulingService.deleteSchedulingById(t).subscribe(t=>{this.dataSource.data=[],this.getSchedulingByEmail(),this.showGeneralDialog("La cita fue cancelada exitosamente.").subscribe(),this._pageLoaderService.hide()},t=>{this.showGeneralDialog("Ocurrio un error al tratar de cancelar la cita.").subscribe(),this._pageLoaderService.hide()})}showGeneralDialog(t,e,n){return void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(pg),i.Ob(qG))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-list-scheduling"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:41,vars:5,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center","mb-5"],[1,"col-12","col-md-6"],[1,"row","align-items-center"],[1,"col-12","col-sm-4","text-right","text-sm-left"],["mat-raised-button","","color","primary","routerLink","/corporate/scheduling/schedule/user-scheduling"],[1,"col-12","col-sm-4","col-lg-3","offset-sm-4","offset-lg-5","text-right"],["appearance","standard"],["matInput","","placeholder","Ej. Tr\xe1mite, Notaria, Ciudad",3,"keyup"],["input",""],["matSuffix",""],[1,"rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","formality"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","notary"],["matColumnDef","circle"],["matColumnDef","dateRequest"],["matColumnDef","dateSchedule"],["matColumnDef","actions","stickyEnd",""],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fechaHora"],[1,"tb-fecha"],[1,"tb-hora"],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-icon-button","","color","primary","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["xPosition","before"],["menu","matMenu"],["mat-menu-item","",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div"),i.Ub(2,"div",1),i.Ub(3,"div",2),i.Ub(4,"h4"),i.Lc(5,"Agendamientos"),i.Tb(),i.Tb(),i.Tb(),i.Ub(6,"div",3),i.Ub(7,"div",4),i.Ub(8,"button",5),i.Lc(9,"Agendar cita"),i.Tb(),i.Tb(),i.Ub(10,"div",6),i.Ub(11,"mat-form-field",7),i.Ub(12,"mat-label"),i.Lc(13,"Buscar..."),i.Tb(),i.Ub(14,"input",8,9),i.cc("keyup",(function(t){return e.applyFilter(t)})),i.Tb(),i.Ub(16,"mat-icon",10),i.Lc(17,"search"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(18,"div",11),i.Ub(19,"table",12),i.Sb(20,13),i.Jc(21,aJ,2,0,"th",14),i.Jc(22,cJ,2,1,"td",15),i.Rb(),i.Sb(23,16),i.Jc(24,lJ,2,0,"th",14),i.Jc(25,uJ,2,1,"td",15),i.Rb(),i.Sb(26,17),i.Jc(27,dJ,2,0,"th",14),i.Jc(28,hJ,2,1,"td",15),i.Rb(),i.Sb(29,18),i.Jc(30,pJ,2,0,"th",14),i.Jc(31,mJ,8,8,"td",15),i.Rb(),i.Sb(32,19),i.Jc(33,fJ,2,0,"th",14),i.Jc(34,bJ,6,2,"td",15),i.Rb(),i.Sb(35,20),i.Jc(36,gJ,2,0,"th",21),i.Jc(37,_J,16,1,"td",22),i.Rb(),i.Jc(38,vJ,1,0,"tr",23),i.Jc(39,yJ,1,0,"tr",24),i.Tb(),i.Tb(),i.Pb(40,"mat-paginator",25),i.Tb()),2&t&&(i.Db(19),i.mc("dataSource",e.dataSource),i.Db(19),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(4,wJ)))},directives:[zm,ta,Uv,xv,uy,Kv,kv,JC,tx,KC,$C,cx,hx,EP,nx,sx,Eb,Tb,yb,mx,_x],pipes:[o.f],styles:["td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}"]}),t})();function OJ(t,e){if(1&t&&(i.Ub(0,"mat-option",20),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Mc(t.name)}}function SJ(t,e){if(1&t&&(i.Ub(0,"mat-error",22),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function TJ(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,SJ,2,1,"mat-error",21),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("procedure").hasError(t.type)&&(n.fg.get("procedure").dirty||n.fg.get("procedure").touched))}}function DJ(t,e){if(1&t&&(i.Ub(0,"mat-error",22),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function kJ(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,DJ,2,1,"mat-error",21),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("date").hasError(t.type)&&(n.fg.get("date").dirty||n.fg.get("date").touched))}}function PJ(t,e){if(1&t&&(i.Ub(0,"mat-option",23),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.value)("disabled",t.disabled),i.Db(1),i.Mc(t.name)}}function EJ(t,e){if(1&t&&(i.Ub(0,"mat-error",22),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function AJ(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,EJ,2,1,"mat-error",21),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("hour").hasError(t.type)&&(n.fg.get("hour").dirty||n.fg.get("hour").touched))}}let IJ=(()=>{class t{constructor(t,e,n,i,r,s,a,c,l,u,d){this.translate=t,this.dateAdapter=e,this._location=n,this.formBuilder=i,this.route=r,this.cn=s,this._pageLoaderService=a,this.userSchedulingService=c,this._snackBar=l,this.dialog=u,this.enterpriseService=d,this.minDate=new Date,this.datepipe=new o.f("es"),this.fg=this.formBuilder.group({procedure:[""],date:[""],hour:[""]}),this.account_validation_messages={procedure:[{type:"required",message:"El tr\xe1mite es obligatorio"}],date:[{type:"required",message:"La fecha es obligatoria"}],hour:[{type:"required",message:"La hora es obligatoria"}]},this.hourSchedule=[{name:"08:00 am",value:"08:00",disabled:!1},{name:"09:00 am",value:"09:00",disabled:!1},{name:"10:00 am",value:"10:00",disabled:!1},{name:"11:00 am",value:"11:00",disabled:!1},{name:"12:00 pm",value:"12:00",disabled:!1},{name:"01:00 pm",value:"13:00",disabled:!1},{name:"02:00 pm",value:"14:00",disabled:!1},{name:"03:00 pm",value:"15:00",disabled:!1},{name:"04:00 pm",value:"16:00",disabled:!1},{name:"05:00 pm",value:"17:00",disabled:!1},{name:"06:00 pm",value:"18:00",disabled:!1}],this.procedures=[{name:"Matrimonio civil",value:"CivilMarriage"},{name:"Compraventa",value:"BuySell"},{name:"Testamentos",value:"Wills"}]}ngOnInit(){this.translate.use("es"),this.dateAdapter.setLocale("es"),this.user=JSON.parse(sessionStorage.getItem("userData")),this.route.queryParams.subscribe(t=>{if(void 0!==t.procedure){const e=this.procedures.find(e=>e.value===t.procedure);this.fg.controls.procedure.setValue(e)}})}onDateSelectDate(t){if(this.hourSchedule.forEach(t=>{t.disabled=!1}),null!==this.fg.value.date&&null!==this.fg.value.date){const t=this.datepipe.transform(new Date(this.fg.value.date),"dd/MM/yyyy");console.log("Date schedule: ",t),this._pageLoaderService.show();const e=new gq;e.idNotary=this.user.notaryId,e.date=t,this.userSchedulingService.getSchedulingsByIdNotaryAndDate(e).subscribe(t=>{this.validateHoursScheduling(t),this._pageLoaderService.hide()},t=>{this._pageLoaderService.hide();const e=new Date,n=e.getHours()+":00",i=this.datepipe.transform(new Date(this.fg.value.date),"dd/MM/yyyy"),r=this.datepipe.transform(e,"dd/MM/yyyy");this.hourSchedule.forEach(t=>{i===r&&t.value<=n&&(t.disabled=!0)})})}}validateHoursScheduling(t){const e=new Date,n=e.getHours()+":00",i=this.datepipe.transform(new Date(this.fg.value.date),"dd/MM/yyyy"),r=this.datepipe.transform(e,"dd/MM/yyyy");this.hourSchedule.forEach(e=>{t.operationBody.forEach(t=>{e.value===t.hour&&(e.disabled=!0),i===r&&e.value<=n&&(e.disabled=!0)})})}addMonths(t,e){const n=t.getDate();return t.setMonth(t.getMonth()+ +e),t.getDate()!==n&&t.setDate(0),t}addSchedule(){if(!this.fg.valid)return void this._snackBar.open("Debes ingresar los campos obligatorios","",{duration:5e3,panelClass:["customSnackbar"]});this._pageLoaderService.show();const t=this.datepipe.transform(new Date(this.fg.value.date),"dd/MM/yyyy"),e=this.convertHour(this.fg.controls.hour.value),n=new gq;n.idNotary=this.user.notaryId,n.email=this.user.email,n.date=t,n.hour=this.fg.controls.hour.value,n.idProcedure=this.fg.controls.procedure.value.value,n.nameProcedure=this.fg.controls.procedure.value.name,this.enterpriseService.getEnterpriseByIdNotary(this.user.notaryId.toString()).subscribe(i=>{this.cn.log("getNotary() response:",i);const r=i.operationBody[0],o=r.notaryNumber>0?r.notaryNumber:r.enterpriseName;this.userSchedulingService.createScheduling(n).subscribe(n=>{this.cn.log("addSchedule()",n),this.fg.reset(),this.showGeneralDialog("",{title:"Tu cita se agendo con \xe9xito",content:`Hemos enviado a tu correo electr\xf3nico la informaci\xf3n correspondiente al agendamiento de tu cita. Por favor, ac\xe9rcate a la Notaria ${o} del C\xedrculo de ${r.city} el d\xeda ${t} a las ${e}.`,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}).subscribe(),this._pageLoaderService.hide(),this.logger("Agendamiento creado")},t=>{this.cn.log("err addSchedule()",t),this.showGeneralDialog("Ocurrio un error al tratar de agendar la cita.").subscribe(),this._pageLoaderService.hide()})},t=>{this.cn.error("getUser() error:",t)})}logger(t){dg.info(t,"Agendadamiento")}convertHour(t){let e=t.split(":")[0],n=t.split(":")[1];const i=e>12?"pm":"am";return n=1===(n+"").length?"0"+n:n,e=e>12?e-12:e,e=1===(e+"").length?"0"+e:e,`${e}:${n} ${i}`}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}cancelSchedule(){this.cn.log("cancelSchedule()"),this._location.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Bi),i.Ob(Fd),i.Ob(o.n),i.Ob(fl),i.Ob(Fo),i.Ob(Gi),i.Ob(pg),i.Ob(qG),i.Ob(QE),i.Ob(Jb),i.Ob(US))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-scheduling"]],features:[i.Cb([{provide:o.f,useValue:void 0},{provide:Fd,useClass:Mj},{provide:Vd,useValue:Lj}])],decls:44,vars:10,consts:[[1,"cnt-bg-office"],[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"text-center"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"mb-2"],[1,"title-with-line"],[1,"box-white-without-bnn"],[3,"formGroup"],["appearance","standard"],["formControlName","procedure","required",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["matInput","","formControlName","date","required","",3,"matDatepicker","min","max","ngModelChange"],["matSuffix","",3,"for"],["picker",""],["formControlName","hour","required",""],[3,"value","disabled",4,"ngFor","ngForOf"],[1,"small-txt","mb-4"],[1,"customBtn","full-btn",3,"click"],[1,"cancel-text","mt-4","link",3,"click"],[3,"value"],["class","error-message",4,"ngIf"],[1,"error-message"],[3,"value","disabled"]],template:function(t,e){if(1&t&&(i.Pb(0,"aswc-page-loader-default"),i.Ub(1,"div",0),i.Ub(2,"div",1),i.Ub(3,"div"),i.Ub(4,"div",2),i.Pb(5,"img",3),i.Tb(),i.Ub(6,"div",4),i.Ub(7,"h5",5),i.Lc(8,"Agendar cita"),i.Tb(),i.Ub(9,"p"),i.Lc(10,"Por tu seguridad, debemos comprobar que el tel\xe9fono registrado realmente es tuyo."),i.Tb(),i.Tb(),i.Ub(11,"div",6),i.Ub(12,"form",7),i.Ub(13,"mat-form-field",8),i.Ub(14,"mat-label"),i.Lc(15,"Tr\xe1mite"),i.Tb(),i.Ub(16,"mat-select",9),i.Jc(17,OJ,2,2,"mat-option",10),i.Tb(),i.Jc(18,TJ,2,1,"mat-error",11),i.Tb(),i.Ub(19,"mat-form-field",8),i.Ub(20,"mat-label"),i.Lc(21,"Fecha"),i.Tb(),i.Ub(22,"input",12),i.cc("ngModelChange",(function(t){return e.onDateSelectDate(t)})),i.Tb(),i.Pb(23,"mat-datepicker-toggle",13),i.Pb(24,"mat-datepicker",null,14),i.Jc(26,kJ,2,1,"mat-error",11),i.Tb(),i.Ub(27,"mat-form-field",8),i.Ub(28,"mat-label"),i.Lc(29,"Hora"),i.Tb(),i.Ub(30,"mat-select",15),i.Jc(31,PJ,2,3,"mat-option",16),i.Tb(),i.Jc(32,AJ,2,1,"mat-error",11),i.Tb(),i.Ub(33,"div",17),i.Lc(34,' Al hacer clic en "Continuar" declaras que has le\xeddo y aceptado los '),i.Ub(35,"b"),i.Lc(36,"T\xe9rminos y Condiciones"),i.Tb(),i.Lc(37," para agendamiento de citas. "),i.Tb(),i.Ub(38,"div"),i.Ub(39,"button",18),i.cc("click",(function(){return e.addSchedule()})),i.Lc(40,"Agendar"),i.Tb(),i.Tb(),i.Ub(41,"div"),i.Ub(42,"a",19),i.cc("click",(function(){return e.cancelSchedule()})),i.Lc(43,"Cancelar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.uc(25);i.Db(12),i.mc("formGroup",e.fg),i.Db(5),i.mc("ngForOf",e.procedures),i.Db(1),i.mc("ngForOf",e.account_validation_messages.procedure),i.Db(4),i.mc("matDatepicker",t)("min",e.minDate)("max",e.maxDate),i.Db(1),i.mc("for",t),i.Db(3),i.mc("ngForOf",e.account_validation_messages.date),i.Db(5),i.mc("ngForOf",e.hourSchedule),i.Db(1),i.mc("ngForOf",e.account_validation_messages.hour)}},styles:[".link[_ngcontent-%COMP%]{color:#4fbfd3!important;cursor:pointer}"]}),t})();class MJ{constructor(){}get _email(){return this.email}set _email(t){this.email=t}get _docId(){return this.docId}set _docId(t){this.docId=t}}function UJ(t,e){1&t&&(i.Ub(0,"th",22),i.Lc(1," Estado"),i.Tb())}function LJ(t,e){if(1&t&&(i.Ub(0,"td",23),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.state)}}function RJ(t,e){1&t&&(i.Ub(0,"th",22),i.Lc(1," Descripci\xf3n"),i.Tb())}function NJ(t,e){if(1&t&&(i.Ub(0,"td",23),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.description,"")}}function FJ(t,e){1&t&&(i.Ub(0,"th",22),i.Lc(1," Creador por"),i.Tb())}function VJ(t,e){if(1&t&&(i.Ub(0,"td",23),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Oc(" ",t.userOrigin.firstName," ",t.userOrigin.lastName," ")}}function jJ(t,e){1&t&&(i.Ub(0,"th",22),i.Lc(1," Fecha"),i.Tb())}function BJ(t,e){if(1&t&&(i.Ub(0,"td",23),i.Ub(1,"span",24),i.Ub(2,"span",25),i.Lc(3),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(t.regDate)}}function zJ(t,e){1&t&&i.Pb(0,"th",22)}function qJ(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",26),i.Ub(1,"mat-menu",null,27),i.Ub(3,"button",28),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().clickSigner(n.idProcess)})),i.Ub(4,"mat-icon"),i.Lc(5,"visibility"),i.Tb(),i.Lc(6," Firmar "),i.Tb(),i.Tb(),i.Ub(7,"button",29),i.Ub(8,"mat-icon"),i.Lc(9,"more_vert"),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=i.uc(2);i.Db(7),i.mc("matMenuTriggerFor",t)}}function HJ(t,e){1&t&&i.Pb(0,"tr",30)}function GJ(t,e){if(1&t){const t=i.Vb();i.Ub(0,"tr",31),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().selection.toggle(n)})),i.Tb()}}const JJ=function(){return[10,20,30]};let YJ=(()=>{class t{constructor(t,e,n,i){this.router=t,this.globalVarService=e,this.getSignatureProcessesService=n,this.cn=i,this.ELEMENT_DATA=[],this.displayedColumns=["state","description","createby","date","symbol"],this.dataSource=new Sx(this.ELEMENT_DATA),this.selection=new Cf(!0,[]),this.user=JSON.parse(sessionStorage.getItem("userData"))}ngOnInit(){this.requestSignatureProcesses=new MJ,this.requestSignatureProcesses._docId=this.user.identificationNumber,this.requestSignatureProcesses._email=this.user.email,this.getSignatureProcessesService.getSignatureProcesses(this.requestSignatureProcesses).subscribe(t=>{this.dataSource.data=t.signatureProcess,this.paginator._changePageSize(this.paginator.pageSize),this.cn.log(this.ELEMENT_DATA)},t=>{this.cn.log(t)}),this.cn.log(this.dataSource),this.dataSource.paginator=this.paginator,this.paginator._intl.itemsPerPageLabel="Items por P\xe1gina.",this.paginator._intl.nextPageLabel="P\xe1gina Siguiente",this.paginator._intl.previousPageLabel="P\xe1gina Anterior",this.paginator._intl.firstPageLabel="Primera P\xe1gina",this.paginator._intl.lastPageLabel="\xdaltima P\xe1gina",this.getPathModule()}getPathModule(){this.cn.log("getPathModule()"),this.globalVarService.path_route=this.router.url.includes("common-user")?"/common-user/pv/":"/corporate/pv/"}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}clickSigner(t){this.cn.log("clickSigner()"),this.globalVarService.processId=t,this.router.navigate([this.globalVarService.path_route+"documents/doc-list"],{queryParams:{processId:t}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(cg),i.Ob(Lg),i.Ob(Gi))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-get-signature-processes"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:36,vars:5,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center","mb-5"],[1,"col-12","col-md-6"],[1,"row"],[1,"col-12","col-md-8"],[1,"fll_wd"],["matInput","","placeholder","Buscar"],[1,"col-12","col-md-4"],["placeholder","Filtrar","multiple",""],[1,"mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","state"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","createby"],["matColumnDef","date"],["matColumnDef","symbol"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fechaHora"],[1,"tb-fecha"],["mat-cell","",1,"text-right"],["navOptions","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Listado de procesos"),i.Tb(),i.Tb(),i.Ub(5,"div",2),i.Ub(6,"div",3),i.Ub(7,"div",4),i.Ub(8,"mat-form-field",5),i.Pb(9,"input",6),i.Tb(),i.Tb(),i.Ub(10,"div",7),i.Ub(11,"mat-form-field",5),i.Ub(12,"mat-select",8),i.Ub(13,"mat-optgroup"),i.Ub(14,"mat-option"),i.Lc(15,"None"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(16,"div",9),i.Ub(17,"table",10),i.Sb(18,11),i.Jc(19,UJ,2,0,"th",12),i.Jc(20,LJ,2,1,"td",13),i.Rb(),i.Sb(21,14),i.Jc(22,RJ,2,0,"th",12),i.Jc(23,NJ,2,1,"td",13),i.Rb(),i.Sb(24,15),i.Jc(25,FJ,2,0,"th",12),i.Jc(26,VJ,2,2,"td",13),i.Rb(),i.Sb(27,16),i.Jc(28,jJ,2,0,"th",12),i.Jc(29,BJ,4,1,"td",13),i.Rb(),i.Sb(30,17),i.Jc(31,zJ,1,0,"th",12),i.Jc(32,qJ,10,1,"td",18),i.Rb(),i.Jc(33,HJ,1,0,"tr",19),i.Jc(34,GJ,1,0,"tr",20),i.Tb(),i.Pb(35,"mat-paginator",21),i.Tb(),i.Tb()),2&t&&(i.Db(17),i.mc("dataSource",e.dataSource),i.Db(16),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(4,JJ)))},directives:[Uv,uy,aw,_h,Oh,JC,tx,KC,$C,cx,hx,EP,nx,sx,Tb,yb,Kv,zm,Eb,mx,_x],encapsulation:2}),t})();class $J{}const WJ=["ngOtpInput"];function KJ(t,e){if(1&t){const t=i.Vb();i.Ub(0,"ng-otp-input",17,18),i.cc("onInputChange",(function(e){return i.yc(t),i.gc().onOtpChange(e)})),i.Tb()}if(2&t){const t=i.gc();i.mc("config",t.config)}}let QJ=(()=>{class t{constructor(t,e,n,i,r,o){this.dialog=t,this.router=e,this._pageLoaderService=n,this.authenticationCodeOTPService=i,this.data=r,this.dialogRef=o,this.validateInput=!1,this.progressbarValue=0,this.curSec=300,this.seconds=300,this.showOtpComponent=!0,this.testament=new $J,this.config={allowNumbersOnly:!0,length:4,isPasswordInput:!1,disableAutoFocus:!1,placeholder:"",containerClass:"groupField-pinOTP",inputClass:"field-pinOTP"},this.chargeIncomminData()}chargeIncomminData(){this.file=this.data.file,this.testament=this.data.testament}ngOnDestroy(){void 0!==this.sub&&this.sub.unsubscribe()}ngOnInit(){this.startTimer(this.seconds)}reset(){this.progressbarValue=0,this.curSec=300,this.sub.unsubscribe()}startTimer(t){const e=aL(1e3);this.sub=e.subscribe(e=>{this.progressbarValue=100-100*e/t-2,--this.curSec,0===this.curSec&&(this.sub.unsubscribe(),this.validateInput=!1)})}onOtpChange(t){this.otp=t,this.validateInput=4===t.length}setVal(t){this.ngOtpInput.setValue(t)}verificateCode(){this._pageLoaderService.show(),this.authenticationCodeOTPService.getAuthCodeOTP(+this.otp).subscribe(t=>{this.checkMinuteDifference(new Date(t.operationBody[0].expDate),new Date)<=0?(this.showGeneralDialog("El c\xf3digo que ingresaste ha expirado.").subscribe(),dg.error(`autenticaci\xf3n fallida de notario para consulta del documento: ${this.file.documentName}. OTP expirado`,"TESTAMENTOS")):(this.download(),this.dialogRef.close()),this._pageLoaderService.hide()},t=>{this.showGeneralDialog("C\xf3digo inv\xe1lido").subscribe(),dg.error(`autenticaci\xf3n fallida de notario para consulta del documento: ${this.file.documentName}.`,"TESTAMENTOS"),this._pageLoaderService.hide()})}sendAuthCode(){this.reset();const t=new iL;t.email=JSON.parse(sessionStorage.getItem("userTwoFactor")).mail,this._pageLoaderService.show(),this.authenticationCodeOTPService.createAuthCodeOTP(t,"otp").subscribe(t=>{this._pageLoaderService.hide(),this.showGeneralDialog("El C\xf3digo de autenticaci\xf3n fue enviado exitosamente.").subscribe(),this.startTimer(this.seconds)},t=>{this._pageLoaderService.hide()})}download(){if(dg.info(`documento del testamento ${this.testament.testamentId} descargado: ${this.file.documentName}.`,"TESTAMENTOS"),this.file){let t=`https://${r.scriptureBucket}.s3-us-west-2.amazonaws.com/${this.file.key}`,e=document.createElement("a");document.body.appendChild(e),e.setAttribute("style","display: none"),e.href=t,e.download=this.file.documentName,e.click(),e.remove()}}showGeneralDialog(t,e,n){return void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}checkMinuteDifference(t,e){const n=t.getTime()-e.getTime();return Math.round(n/6e4)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(Zs),i.Ob(pg),i.Ob(nL),i.Ob(zb),i.Ob(jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-download-otp-validation"]],viewQuery:function(t,e){var n;1&t&&i.Qc(WJ,!0),2&t&&i.tc(n=i.dc())&&(e.ngOtpInput=n.first)},decls:28,vars:7,consts:[[1,"notification-modal","mat-typography"],[1,"container","mx-auto"],[1,"text-center"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"title-with-line"],[1,"cnt-top-up-balance","box-white-without-bnn"],[1,"content-top-up-balance"],[3,"config","onInputChange",4,"ngIf"],[1,"text-center","my-4"],[1,"text-color-primary","c-pointer",3,"click"],[1,"text-right","text-color-secondary"],["mode","determinate","color","accent",3,"value"],["align","end",1,"bttns-notification-modal"],[1,"mt-3","text-center","d-flex","w-100","flex-column"],["type","button",1,"customBtn","full-btn",3,"disabled","click"],[1,"small-txt","mt-4"],["mat-dialog-close",""],[3,"config","onInputChange"],["ngOtpInput",""]],template:function(t,e){1&t&&(i.Ub(0,"mat-dialog-content",0),i.Ub(1,"div",1),i.Ub(2,"div"),i.Ub(3,"div",2),i.Pb(4,"img",3),i.Tb(),i.Ub(5,"h5",4),i.Lc(6,"C\xf3digo de verificaci\xf3n"),i.Tb(),i.Ub(7,"p"),i.Lc(8," Hemos enviado un c\xf3digo de verificaci\xf3n por correo electr\xf3nico. "),i.Tb(),i.Tb(),i.Ub(9,"div",5),i.Ub(10,"div",6),i.Jc(11,KJ,2,1,"ng-otp-input",7),i.Ub(12,"div",8),i.Lc(13," \xbfNo lo recibiste?, "),i.Ub(14,"a",9),i.cc("click",(function(){return e.sendAuthCode()})),i.Lc(15,"enviar un nuevo c\xf3digo."),i.Tb(),i.Tb(),i.Ub(16,"div"),i.Ub(17,"div",10),i.Lc(18),i.hc(19,"date"),i.Tb(),i.Pb(20,"mat-progress-bar",11),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(21,"mat-dialog-actions",12),i.Ub(22,"div",13),i.Ub(23,"button",14),i.cc("click",(function(){return e.verificateCode()})),i.Lc(24,"Validar"),i.Tb(),i.Ub(25,"div",15),i.Ub(26,"a",16),i.Lc(27,"Volver"),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(11),i.mc("ngIf",e.showOtpComponent),i.Db(7),i.Nc(" ",i.jc(19,4,1e3*e.curSec,"mm:ss")," "),i.Db(2),i.mc("value",e.progressbarValue),i.Db(3),i.mc("disabled",!e.validateInput))},directives:[Kb,o.t,NP,Qb,$b,jI],pipes:[o.f],styles:['.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}.title-with-line[_ngcontent-%COMP%]{position:relative;margin-bottom:2rem}.title-with-line[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:-15px;left:0;background-color:#4fbfd3;width:96px;height:3px}']}),t})();class XJ{}let ZJ=(()=>{class t{constructor(t){this.httpClient=t,this.testamentSub=new dr(void 0),this.testament=this.testamentSub.asObservable()}updateTestament(t){this.testamentSub.next(t)}readTestamentWrite(t){return this.httpClient.patch(Rl,t).pipe(Ml())}createTestamentWrite(t){return this.httpClient.post(Rl,t).pipe(Ml())}consultTestamendById(t){return this.httpClient.put(Rl,t).pipe(Zi(this.handleError))}consultTestamendSearch(t){return console.log(t),this.httpClient.put(Rl,t).pipe(Zi(this.handleError))}consultTestamendByNotary(t){return this.httpClient.put(Rl,t).pipe(Zi(this.handleError))}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return console.error(e),Object(Dl.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),tY=(()=>{class t{constructor(t,e,n){this.loader=t,this.dialog=e,this.http=n}uploadPDF(t){return this.http.post(lu+"uploadPdf/",t).pipe(Zi(this.handleError))}handleError(t){const e=t.message?t.message:t.status?`${t.status} - ${t.statusText}`:"Server error";return Object(Dl.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(pg),i.Yb(Jb),i.Yb(A))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class eY{}class nY{}var iY=function(t){return t.Radicado="Radicado",t.Otorgado="Otorgado",t}({}),rY=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};function oY(t,e){1&t&&i.Lc(0,"DILIGENCIAR")}function sY(t,e){1&t&&i.Lc(0,"CARGAR TESTAMENTO")}function aY(t,e){1&t&&i.Lc(0,"CARGAR ESCRITURA")}let cY=(()=>{class t{constructor(t,e,n,i,r,o){this.testamentService=t,this.loader=e,this.formBuilder=n,this.dialog=i,this.route=r,this.fileService=o,this.filesScritp=[],this.filesTestament=[],this.filesProcess=[],this.getFilesArrayBuffer=t=>new Promise((e,n)=>{const i=new FileReader;i.readAsArrayBuffer(t),i.onload=()=>{const t=new Uint8Array(i.result);e(Array.from(t))}}),this.handleUpload=t=>new Promise((e,n)=>rY(this,void 0,void 0,(function*(){let i=this.testamentForm.value,r=JSON.parse(sessionStorage.getItem("userData")),o=new eY;o.notaryId=r.enterpriseId,o.scriptureId=i.testamentId,o.documentName=t.name,o.bytesFilePDF=yield this.getFilesArrayBuffer(t),this.fileService.uploadPDF(o).subscribe(o=>{if(o.fileKey){let n=new nY;n.documentId=jB.UUID.UUID(),n.documentName=t.name,n.fileHash="",n.key=o.fileKey,n.notaryId=r.enterpriseId,n.scriptureId=i.testamentId,this.filesProcess.push(n),e(o.fileKey)}else n(o)})}))),this.loader.show(),this.initForm()}ngAfterViewInit(){this.loader.hide()}ngOnInit(){}validateForm(t){this.testamentForm.valid&&(t.selected.completed=!0,t.next())}validateTestamentCharge(t){return rY(this,void 0,void 0,(function*(){this.testamentForm.valid&&1===this.filesTestament.length&&(yield this.handleUpload(this.filesTestament[0]).then(e=>{t.selected.completed=!0,t.next()}).catch(e=>{this.showDialog(e.operationMessage),t.selected.completed=!0,t.next()}))}))}initForm(){this.testamentForm=this.formBuilder.group({testamentId:["",[Ha.required,Ha.maxLength(20)]],testarioName:["",[Ha.required,Ha.maxLength(20)]],testarioId:["",[Ha.required,Ha.maxLength(20)]],writeDocHash:["",[Ha.required,Ha.maxLength(100)]],regDate:["",[Ha.required]]})}createTestament(){return rY(this,void 0,void 0,(function*(){this.loader.show();let t=new XJ;if(this.testamentForm.valid&&1===this.filesTestament.length&&1===this.filesScritp.length){let e=this.testamentForm.value;if(yield this.handleUpload(this.filesScritp[0]).then(t=>{}).catch(t=>{this.loader.hide(),dg.error("error creando testamento "+e.testamentId,"TESTAMENTOS"),this.showDialog(t.operationMessage)}),2===this.filesProcess.length){let n=JSON.parse(sessionStorage.getItem("userData"));t.testamentId=e.testamentId,t.writeDocHash=e.writeDocHash,t.regDate=e.regDate,t.testarioId=e.testarioId,t.testarioName=e.testarioName,t.files=this.filesProcess,t.notaryId=n.enterpriseId,t.notaryPersonId=n.identificationNumber,t.state=iY.Radicado,this.testamentService.createTestamentWrite(t).subscribe(t=>{2e3===t.operationCode&&(this.showDialog(t.operationMsg),this.loader.hide(),dg.info(`testamento ${e.testamentId} creado exitosamente`,"TESTAMENTOS"),this.route.navigate(["corporate/pv/testaments/consult"]))})}}}))}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(ZJ),i.Ob(pg),i.Ob(fl),i.Ob(Jb),i.Ob(Zs),i.Ob(tY))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-testaments-creation"]],decls:60,vars:11,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],["color","assent",1,"steperSigners",3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[1,"row"],[1,"w-100",3,"formGroup"],[1,"col-lg-6","col-sm-12","col-md-4"],["matInput","","placeholder","N\xfamero de testamento","formControlName","testamentId","required",""],["matInput","","placeholder","N\xfamero de testamento","formControlName","testarioName","required",""],["matInput","","placeholder","N\xfamero de testamento","formControlName","testarioId","required",""],["matInput","","formControlName","regDate",3,"matDatepicker"],["matSuffix","",3,"for"],["picker",""],["matInput","","placeholder","N\xfamero de testamento","formControlName","writeDocHash","required",""],[1,"button-row","mt-4","mb-2"],["mat-raised-button",""],["mat-raised-button","","matStepperNext","","color","primary",3,"click"],[1,"row","pl-3"],[3,"filesAccepted","files"],["mat-raised-button","","matStepperPrevious",""]],template:function(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"mat-vertical-stepper",2,3),i.Ub(4,"mat-step",4),i.Jc(5,oY,1,0,"ng-template",5),i.Ub(6,"div",6),i.Ub(7,"form",7),i.Ub(8,"div",8),i.Ub(9,"mat-form-field"),i.Ub(10,"mat-label"),i.Lc(11,"Nro. testamento"),i.Tb(),i.Pb(12,"input",9),i.Tb(),i.Tb(),i.Ub(13,"div",8),i.Ub(14,"mat-form-field"),i.Ub(15,"mat-label"),i.Lc(16,"Nombre del testador"),i.Tb(),i.Pb(17,"input",10),i.Tb(),i.Tb(),i.Ub(18,"div",8),i.Ub(19,"mat-form-field"),i.Ub(20,"mat-label"),i.Lc(21,"Id del testador"),i.Tb(),i.Pb(22,"input",11),i.Tb(),i.Tb(),i.Ub(23,"div",8),i.Ub(24,"mat-form-field"),i.Ub(25,"mat-label"),i.Lc(26,"Fecha de creaci\xf3n"),i.Tb(),i.Pb(27,"input",12),i.Pb(28,"mat-datepicker-toggle",13),i.Pb(29,"mat-datepicker",null,14),i.Tb(),i.Tb(),i.Ub(31,"div",8),i.Ub(32,"mat-form-field"),i.Ub(33,"mat-label"),i.Lc(34,"C\xf3digo Hash de la escritura"),i.Tb(),i.Pb(35,"input",15),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(36,"div",16),i.Ub(37,"button",17),i.Lc(38,"Volver"),i.Tb(),i.Ub(39,"button",18),i.cc("click",(function(){i.yc(t);const n=i.uc(3);return e.validateForm(n)})),i.Lc(40,"Siguiente"),i.Tb(),i.Tb(),i.Tb(),i.Ub(41,"mat-step",4),i.Jc(42,sY,1,0,"ng-template",5),i.Ub(43,"div",19),i.Pb(44,"aswc-dragndrop-uploadfile",20),i.Tb(),i.Ub(45,"div",16),i.Ub(46,"button",21),i.Lc(47,"Volver"),i.Tb(),i.Ub(48,"button",18),i.cc("click",(function(){i.yc(t);const n=i.uc(3);return e.validateTestamentCharge(n)})),i.Lc(49,"Siguiente"),i.Tb(),i.Tb(),i.Tb(),i.Ub(50,"mat-step",4),i.Jc(51,aY,1,0,"ng-template",5),i.Ub(52,"div",19),i.Pb(53,"aswc-dragndrop-uploadfile",20),i.Tb(),i.Ub(54,"div",16),i.Ub(55,"button",21),i.Lc(56,"Volver"),i.Tb(),i.Ub(57,"button",18),i.cc("click",(function(){return e.createTestament()})),i.Lc(58,"Finalizar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(59,"aswc-page-loader-default")}if(2&t){const t=i.uc(30);i.Db(2),i.mc("linear",!0),i.Db(2),i.mc("completed",!1),i.Db(3),i.mc("formGroup",e.testamentForm),i.Db(20),i.mc("matDatepicker",t),i.Db(1),i.mc("for",t),i.Db(13),i.mc("completed",!1),i.Db(3),i.mc("filesAccepted","application/pdf")("files",e.filesTestament),i.Db(6),i.mc("completed",!1),i.Db(3),i.mc("filesAccepted","application/pdf")("files",e.filesScritp)}},styles:[""]}),t})();var lY=function(t){return t.Notary="Notary",t.Id="id",t.Search="search",t}({});class uY{}function dY(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",15),i.Ub(1,"div",16),i.Ub(2,"div",17),i.Ub(3,"span",18),i.Lc(4),i.Tb(),i.Ub(5,"span",19),i.Lc(6),i.Tb(),i.Tb(),i.Ub(7,"div",20),i.Ub(8,"a",21),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().downloadDocument(n)})),i.Pb(9,"img",22),i.Tb(),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=i.gc();i.Db(4),i.Mc(null==t?null:t.documentName),i.Db(2),i.Mc(null==t?null:t.documentId),i.Db(3),i.mc("src",n.DOWNLOAD_ICON,i.Bc)}}let hY=(()=>{class t{constructor(t,e,n,i,r){this.testamentService=t,this.loader=e,this.dialog=n,this.route=i,this.authenticationCodeOTPService=r,this.START_DATE_ICON="../../../../assets/images/Iconos/start-date.svg",this.DOWNLOAD_ICON="../../../../assets/images/Iconos/download.svg",this.USER_ICON="../../../../assets/images/Iconos/information.svg",this.files=[],this.showOtpComponent=!0}ngOnDestroy(){this.testament=void 0,this.files=[]}validateTestament(){this.testament||this.back()}back(){this.route.navigate(["corporate/pv/testaments/consult"])}chargeTestament(){this.testamentService.testament.subscribe(t=>{if(t){this.loader.show();let e=new uY;e.criteria=lY.Id,e.id=t.id.toString(),this.testamentService.consultTestamendById(e).subscribe(t=>{this.loader.hide(),t.testaments.length>0&&(this.files=t.files,this.testament=new $J,this.testament=t.testaments[0],dg.info(`consultando testamento ${this.testament.testamentId}.`,"TESTAMENTOS")),this.validateTestament()})}else this.validateTestament()})}ngOnInit(){this.chargeTestament()}downloadDocument(t){this.sendAuthCode(),this.dialog.open(QJ,{data:{file:t,testament:this.testament},width:"500px"})}sendAuthCode(){const t=JSON.parse(sessionStorage.getItem("userData")).email,e=new iL;e.email=t,this.authenticationCodeOTPService.createAuthCodeOTP(e,"otp").subscribe()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(ZJ),i.Ob(pg),i.Ob(Jb),i.Ob(Zs),i.Ob(nL))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-testaments-details"]],decls:34,vars:10,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center"],[1,"col-12","col-sm-6"],[1,"cnt_searchResult","w-60"],[1,"cont_tabInfo"],[1,"row","w-100","m-1"],[1,"col-12"],[1,"signatories"],[1,"signatories_icon"],[3,"src"],[1,"signatories_info"],[1,"signatories_doc"],["class","cnt_signedDocument m-3",4,"ngFor","ngForOf"],[1,"button-row","mt-4","mb-2"],["mat-raised-button","",3,"click"],[1,"cnt_signedDocument","m-3"],[1,"signedDocument"],[1,"signedDocument_info"],[1,"signedDocument_name"],[1,"signedDocument_id"],[1,"signedDocument_icons"],[1,"signedDocument_ico",2,"cursor","pointer",3,"click"],["alt","Descargar Archivo","title","Descargar Archivo",3,"src"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Testamento"),i.Tb(),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"div",4),i.Ub(7,"h5"),i.Lc(8,"Detalle"),i.Tb(),i.Ub(9,"div",5),i.Ub(10,"div",6),i.Ub(11,"div",7),i.Ub(12,"div",8),i.Pb(13,"img",9),i.Tb(),i.Ub(14,"div",10),i.Ub(15,"span",11),i.Lc(16),i.Tb(),i.Ub(17,"span",11),i.Lc(18),i.Tb(),i.Ub(19,"span",11),i.Lc(20),i.Tb(),i.Ub(21,"span",11),i.Lc(22),i.Tb(),i.Ub(23,"span",11),i.Lc(24),i.hc(25,"date"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(26,"div",4),i.Ub(27,"h5"),i.Lc(28,"Documentos"),i.Tb(),i.Jc(29,dY,10,3,"div",12),i.Tb(),i.Tb(),i.Ub(30,"div",13),i.Ub(31,"button",14),i.cc("click",(function(){return e.back()})),i.Lc(32,"Volver"),i.Tb(),i.Tb(),i.Tb(),i.Pb(33,"aswc-page-loader-default")),2&t&&(i.Db(13),i.mc("src",e.USER_ICON,i.Bc),i.Db(3),i.Nc(" Id: ",null==e.testament?null:e.testament.id,""),i.Db(2),i.Nc(" Testamento: ",null==e.testament?null:e.testament.testamentId,""),i.Db(2),i.Nc("Testatario: ",null==e.testament?null:e.testament.testarioName,""),i.Db(2),i.Nc("Estado: ",null==e.testament?null:e.testament.state,""),i.Db(2),i.Nc("Creado: ",i.jc(25,7,null==e.testament?null:e.testament.regDate,"dd/MM/yyyy"),""),i.Db(5),i.mc("ngForOf",e.files))},styles:[".mat-dialog-content[_ngcontent-%COMP%]{display:inherit!important}.notification-modal[_ngcontent-%COMP%]   .bttns-notification-modal[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-right:0}.start_searchResult[_ngcontent-%COMP%]{background:rgba(38,82,118,.08);margin:-48px -24px 0;padding:1rem}.cnt_searchResult[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;max-height:720px}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]{margin-bottom:1.4rem}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.45rem;text-transform:uppercase;font-weight:700;color:#3c9e8c}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{display:block;color:#21476b;text-transform:none}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]   .c_stateProcess[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:50%}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]   .c_stateProcess.stateSigned[_ngcontent-%COMP%]{background:#3c9e8c}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]   .c_stateProcess.stateSignaturePending[_ngcontent-%COMP%]{background:#f6d55c}.cnt_searchResult[_ngcontent-%COMP%]   .title_searchResult[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]   .c_stateProcess.stateNotSigned[_ngcontent-%COMP%]{background:#ed553b}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]{border-radius:10px;border:1px solid #99acbc;padding:10px;display:flex;flex-wrap:wrap;justify-content:space-between;margin-bottom:12px}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]:last-child{margin-bottom:0}.signedDocument_icons[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;display:flex;flex-wrap:wrap}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;max-width:75%}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]   .signedDocument_id[_ngcontent-%COMP%], .cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]   .signedDocument_name[_ngcontent-%COMP%]{display:block}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]   .signedDocument_name[_ngcontent-%COMP%]{font-weight:600;white-space:nowrap;text-overflow:ellipsis}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_info[_ngcontent-%COMP%]   .signedDocument_id[_ngcontent-%COMP%]{font-size:.8rem}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_ico[_ngcontent-%COMP%]{width:42px;height:42px}.cnt_signedDocument[_ngcontent-%COMP%]   .signedDocument[_ngcontent-%COMP%]   .signedDocument_ico[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.cont_tabInfo[_ngcontent-%COMP%]{padding-top:1.4rem}.signedDocument_ico[_ngcontent-%COMP%]{width:42px}.tab-icon[_ngcontent-%COMP%]{margin-right:6px;color:#88a0b5!important}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:left}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_icon[_ngcontent-%COMP%]{margin-right:.6rem}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:42px}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_info[_ngcontent-%COMP%]   .dateProces_tag[_ngcontent-%COMP%], .cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_info[_ngcontent-%COMP%]   .dateProces_tagResult[_ngcontent-%COMP%]{display:block}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_info[_ngcontent-%COMP%]   .dateProces_tag[_ngcontent-%COMP%]{font-size:.8rem;font-weight:700;color:#6c7e8d}.cnt_datesProcess[_ngcontent-%COMP%]   .dateProcess[_ngcontent-%COMP%]   .dateProcess_info[_ngcontent-%COMP%]   .dateProces_tagResult[_ngcontent-%COMP%]{font-size:.9rem;text-transform:lowercase}.cnt_startedBy[_ngcontent-%COMP%]{margin-bottom:1.4rem}.cnt_startedBy[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%], h5[_ngcontent-%COMP%]{font-size:1rem;font-weight:700}.cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;width:100%;border:1px solid #99acbc;padding:10px;margin-bottom:18px;border-radius:10px}.cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_icon[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]   .signatories_icon[_ngcontent-%COMP%]{width:40px;height:40px;margin-right:10px}.cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]   .signatories_icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_info[_ngcontent-%COMP%]   .startedBy_name[_ngcontent-%COMP%], .cnt_startedBy[_ngcontent-%COMP%]   .startedBy_info[_ngcontent-%COMP%]   .startedBy_doc[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_doc[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_name[_ngcontent-%COMP%]{display:block}.cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_info[_ngcontent-%COMP%]   .startedBy_name[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_name[_ngcontent-%COMP%]{font-weight:600}.cnt_startedBy[_ngcontent-%COMP%]   .startedBy[_ngcontent-%COMP%]   .startedBy_info[_ngcontent-%COMP%]   .startedBy_doc[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_doc[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]{font-size:.8rem}.signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]{margin-top:8px}.signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .date_signDoc[_ngcontent-%COMP%], .signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]{display:block}.signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]   .c_stateSignDoc[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:4px}.signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]   .c_stateSignDoc.stateSigned[_ngcontent-%COMP%]{background:#3c9e8c}.signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]   .c_stateSignDoc.stateSignaturePending[_ngcontent-%COMP%]{background:#f6d55c}.signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .state_signDoc[_ngcontent-%COMP%]   .c_stateSignDoc.stateNotSigned[_ngcontent-%COMP%]{background:#ed553b}.signatories[_ngcontent-%COMP%]   .signatories_info[_ngcontent-%COMP%]   .signatories_moreInfo[_ngcontent-%COMP%]   .date_signDoc[_ngcontent-%COMP%]{margin-left:14px;text-transform:lowercase}.borde[_ngcontent-%COMP%]{border:1px solid red}.modify-signer-btn[_ngcontent-%COMP%]{position:absolute;top:5px;right:20px}.mat-tab-body-content[_ngcontent-%COMP%]{overflow:hidden}"]}),t})();var pY=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};let mY=(()=>{class t{constructor(t,e,n,i,r,o){this.fileService=t,this.data=e,this.testamentService=n,this.loader=i,this.dialog=r,this.dialogRef=o,this.files=[],this.testament=new $J,this.filesCharged=[],this.getFilesArrayBuffer=t=>new Promise((e,n)=>{const i=new FileReader;i.readAsArrayBuffer(t),i.onload=()=>{const t=new Uint8Array(i.result);e(Array.from(t))}}),this.handleUpload=t=>new Promise((e,n)=>pY(this,void 0,void 0,(function*(){let i=JSON.parse(sessionStorage.getItem("userData")),r=new eY;r.notaryId=i.enterpriseId,r.scriptureId=this.data.data,r.documentName=t.name,r.bytesFilePDF=yield this.getFilesArrayBuffer(t),this.fileService.uploadPDF(r).subscribe(r=>{if(r.fileKey){let n=new nY;n.documentId=jB.UUID.UUID(),n.documentName=t.name,n.fileHash="",n.key=r.fileKey,n.notaryId=i.enterpriseId,n.scriptureId=this.testament.testamentId,this.filesCharged.push(n),e(n)}else n(r)})}))),this.chargeTestament()}ngOnDestroy(){this.files=[],this.filesCharged=[],this.testament=new $J}chargeTestament(){this.loader.show();let t=new uY;t.criteria=lY.Id,t.id=this.data.data,this.testamentService.consultTestamendById(t).subscribe(t=>{this.loader.hide(),t.testaments.length>0&&(this.testament=t.testaments[0])})}ngOnInit(){}readTestament(){return pY(this,void 0,void 0,(function*(){let t=new XJ;if(1===this.files.length&&(this.loader.show(),yield this.handleUpload(this.files[0]).then(t=>console.log(t)).catch(t=>{dg.error("error cargando acta de apertura "+this.testament.testamentId,"TESTAMENTOS"),this.loader.hide(),this.showDialog(t.operationMessage)}),1===this.filesCharged.length)){let e=JSON.parse(sessionStorage.getItem("userData"));t.id=this.testament.id,t.testamentId=this.testament.testamentId,t.writeDocHash=this.testament.writeDocHash,t.regDate=this.testament.regDate,t.testarioId=this.testament.testarioId,t.testarioName=this.testament.testarioName,t.files=this.filesCharged,t.notaryId=e.enterpriseId,t.notaryPersonId=e.identificationNumber,t.state=iY.Otorgado,this.testamentService.readTestamentWrite(t).subscribe(t=>{dg.info("cargando acta de apertura "+this.testament.testamentId,"TESTAMENTOS"),this.loader.hide(),2e3===t.operationCode&&(this.showDialog(t.operationMsg),this.dialogRef.close())})}}))}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(tY),i.Ob(zb),i.Ob(ZJ),i.Ob(pg),i.Ob(Jb),i.Ob(jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-testaments-upload-file"]],decls:10,vars:2,consts:[[1,"col-12","pb-5"],[1,"row"],[3,"filesAccepted","files"],[1,"button-row","mt-4"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"h4"),i.Lc(2,"Adjuntar acta de apertura"),i.Tb(),i.Tb(),i.Ub(3,"div",1),i.Pb(4,"aswc-dragndrop-uploadfile",2),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"button",4),i.Lc(7,"Cancelar"),i.Tb(),i.Ub(8,"button",5),i.cc("click",(function(){return e.readTestament()})),i.Lc(9,"Finalizar"),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.mc("filesAccepted","application/pdf")("files",e.files))},styles:[""]}),t})();function fY(t,e){1&t&&(i.Ub(0,"th",28),i.Lc(1," Id "),i.Tb())}function bY(t,e){if(1&t&&(i.Ub(0,"td",29),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.id," ")}}function gY(t,e){1&t&&(i.Ub(0,"th",28),i.Lc(1," Testamento nro. "),i.Tb())}function _Y(t,e){if(1&t&&(i.Ub(0,"td",29),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.testamentId," ")}}function vY(t,e){1&t&&(i.Ub(0,"th",30),i.Lc(1," Fecha creaci\xf3n "),i.Tb())}function yY(t,e){if(1&t&&(i.Ub(0,"td",29),i.Ub(1,"span",31),i.Ub(2,"span",32),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",33),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.regDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.regDate,"hh:mm a"))}}function wY(t,e){1&t&&(i.Ub(0,"th",28),i.Lc(1," Testamentario "),i.Tb())}function CY(t,e){if(1&t&&(i.Ub(0,"td",29),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.testarioName," ")}}function xY(t,e){1&t&&(i.Ub(0,"th",28),i.Lc(1," Estado "),i.Tb())}function OY(t,e){if(1&t&&(i.Ub(0,"td",29),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.state," ")}}function SY(t,e){1&t&&(i.Ub(0,"th",34),i.Lc(1,"M\xe1s"),i.Tb())}function TY(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",39),i.cc("click",(function(){i.yc(t);const e=i.gc().$implicit;return i.gc().openUploadFileModal(e)})),i.Ub(1,"mat-icon"),i.Lc(2,"backup"),i.Tb(),i.Ub(3,"span"),i.Lc(4,"Adjuntar acta apertura"),i.Tb(),i.Tb()}}function DY(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",35),i.Ub(1,"button",36),i.Ub(2,"mat-icon"),i.Lc(3,"more_vert"),i.Tb(),i.Tb(),i.Ub(4,"mat-menu",37,38),i.Ub(6,"button",39),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().openDetailsModal(n)})),i.Ub(7,"mat-icon"),i.Lc(8,"receipt"),i.Tb(),i.Ub(9,"span"),i.Lc(10,"Ver detalle"),i.Tb(),i.Tb(),i.Jc(11,TY,5,0,"button",40),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=i.uc(5);i.Db(1),i.mc("matMenuTriggerFor",n),i.Db(10),i.mc("ngIf","Radicado"==t.state)}}function kY(t,e){1&t&&i.Pb(0,"tr",41)}function PY(t,e){1&t&&i.Pb(0,"tr",42)}const EY=function(){return[5,10,20,30,40,50]},AY=[];let IY=(()=>{class t{constructor(t,e,n,i,r){this.dialog=t,this.route=e,this.testamenService=n,this.loader=i,this.formBuilder=r,this.limit=10,this.skip=0,this.totalLength=0,this.pageIndex=0,this.displayedColumns=["id","testamentId","regDate","testarioName","state","symbol"],this.dataSource=new Sx(AY),this.chargeTestaments(),this.initSearchForm(),this.dataSource.paginator=this.paginator}initSearchForm(){this.searchForm=this.formBuilder.group({search:["",[Ha.required,Ha.maxLength(50)]]})}ngAfterViewInit(){this.paginator._intl.itemsPerPageLabel="Items por P\xe1gina.",this.paginator._intl.nextPageLabel="P\xe1gina Siguiente",this.paginator._intl.previousPageLabel="P\xe1gina Anterior",this.paginator._intl.firstPageLabel="Primera P\xe1gina",this.paginator._intl.lastPageLabel="\xdaltima P\xe1gina",this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}ngOnInit(){}resetPaginator(){this.skip=0,this.limit=5,this.paginator.pageIndex=0}createTestament(){this.route.navigate(["corporate/pv/testaments/creates"])}chargeTestaments(){this.loader.show();let t=JSON.parse(sessionStorage.getItem("userData")),e=new uY;e.criteria="notary",e.id=t.enterpriseId,this.testamenService.consultTestamendByNotary(e).subscribe(t=>{this.loader.hide(),2e3===t.operationCode&&t.testaments.length>0&&(this.dataSource.data=t.testaments)})}openDetailsModal(t){this.route.navigate(["corporate/pv/testaments/details"]),this.testamenService.updateTestament(t)}searchTestament(t){if(""!==t){let e=new uY;e.criteria=lY.Search,e.id=t,this.testamenService.consultTestamendSearch(e).subscribe(t=>{t.testaments.length>0&&(this.dataSource.data=t.testaments)})}else this.chargeTestaments()}openUploadFileModal(t){const e=new Lb;e.disableClose=!1,e.autoFocus=!0,e.data={width:"80%",data:t.id},this.dialog.open(mY,e).afterClosed().subscribe(t=>{this.chargeTestaments()})}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(Zs),i.Ob(ZJ),i.Ob(pg),i.Ob(fl))},t.\u0275cmp=i.Ib({type:t,selectors:[["app-testaments"]],viewQuery:function(t,e){var n;1&t&&(i.Qc(EP,!0),i.Qc(iA,!0)),2&t&&(i.tc(n=i.dc())&&(e.paginator=n.first),i.tc(n=i.dc())&&(e.sort=n.first))},decls:42,vars:6,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center"],[1,"col-12","col-sm-6"],[1,"col-12","col-sm-6","text-left","text-sm-right"],["mat-raised-button","","color","primary",3,"click"],[3,"formGroup"],[1,"row"],[1,"col-12","col-md-4","col-lg-3"],["appearance","standard"],["matInput","","placeholder","Ej. Tr\xe1mite, Usuario, No. de documento","formControlName","search",3,"keyup"],["input",""],["matSuffix","",2,"cursor","pointer"],[1,"rp-tableST"],["mat-table","","matSort","",1,"custom_tableST",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","testamentId"],["matColumnDef","regDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","testarioName"],["matColumnDef","state"],["matColumnDef","symbol","stickyEnd",""],["mat-header-cell","","class","text-right",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],[1,"tb-fechaHora"],[1,"tb-fecha"],[1,"tb-hora"],["mat-header-cell","",1,"text-right"],["mat-cell","",1,"text-right"],["mat-icon-button","","color","accent","aria-label","Example icon-button with a menu",3,"matMenuTriggerFor"],["xPosition","before"],["navOptionProcess","matMenu"],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Testamentos"),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"button",4),i.cc("click",(function(){return e.createTestament()})),i.Lc(7,"Ingresar escritura"),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"form",5),i.Ub(9,"div",6),i.Ub(10,"div",7),i.Ub(11,"mat-form-field",8),i.Ub(12,"mat-label"),i.Lc(13,"Buscar..."),i.Tb(),i.Ub(14,"input",9,10),i.cc("keyup",(function(t){return e.searchTestament(t.target.value)})),i.Tb(),i.Ub(16,"mat-icon",11),i.Lc(17,"search"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(18,"div",12),i.Ub(19,"table",13),i.Sb(20,14),i.Jc(21,fY,2,0,"th",15),i.Jc(22,bY,2,1,"td",16),i.Rb(),i.Sb(23,17),i.Jc(24,gY,2,0,"th",15),i.Jc(25,_Y,2,1,"td",16),i.Rb(),i.Sb(26,18),i.Jc(27,vY,2,0,"th",19),i.Jc(28,yY,8,8,"td",16),i.Rb(),i.Sb(29,20),i.Jc(30,wY,2,0,"th",15),i.Jc(31,CY,2,1,"td",16),i.Rb(),i.Sb(32,21),i.Jc(33,xY,2,0,"th",15),i.Jc(34,OY,2,1,"td",16),i.Rb(),i.Sb(35,22),i.Jc(36,SY,2,0,"th",23),i.Jc(37,DY,12,2,"td",24),i.Rb(),i.Jc(38,kY,1,0,"tr",25),i.Jc(39,PY,1,0,"tr",26),i.Tb(),i.Tb(),i.Pb(40,"mat-paginator",27),i.Tb(),i.Pb(41,"aswc-page-loader-default")),2&t&&(i.Db(8),i.mc("formGroup",e.searchForm),i.Db(11),i.mc("dataSource",e.dataSource),i.Db(19),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(5,EY)))},styles:["tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})(),MY=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l){this._fb=t,this.router=e,this.globalVarService=n,this.authenticationCodeOTPService=i,this.cn=r,this._pageLoaderService=o,this.dialog=s,this.authCodeByOtpSmsService=a,this.auth=c,this.userLoginService=l}ngOnInit(){if(this.formVerify=this._fb.group({method:["",[Ha.required]]}),this.twofactor=JSON.parse(sessionStorage.getItem("userTwoFactor")),null!=this.twofactor)this.changeMail(this.twofactor.mail),this.changePhone(this.twofactor.phone);else{const t=this.auth.getUser();this.userLoginService.user=t,this.userLoginService.twoFactorVerify(),this.twofactor=JSON.parse(sessionStorage.getItem("userTwoFactor")),this.changeMail(this.twofactor.mail),this.changePhone(this.twofactor.phone)}}selectMethod(){switch(this.formVerify.value.method){case"sms":this.twofactor.method="sms",this.sendAuthCodeSms(),this.router.navigate(["corporate/validate/verification-code"]);break;case"email":this.twofactor.method="email",this.sendAuthCode(),this.router.navigate(["corporate/validate/verification-code"])}this.saveInLocalStorage()}changeMail(t){const e=t.replace(/(?!^).(?=[^@]+@)/g,"*");this.mail=e}changePhone(t){const e=t.replace(/.(?=.{4,}$)/g,"*");this.phone=e}sendAuthCodeSms(){const t=this.twofactor.mail,e=new jz;e.email=t,e.phone=this.twofactor.phone,e.dialCode=this.twofactor.dialCode,this.authCodeByOtpSmsService.createAuthCodeOTP(e).subscribe(t=>{this.cn.log("createAuthCodeOTPsms() reply:",t)},t=>{this.cn.error("createAuthCodeOTPsms() error:",t)})}sendAuthCode(){const t=this.twofactor.mail,e=new iL;e.email=t,this.authenticationCodeOTPService.createAuthCodeOTP(e,"otp").subscribe(t=>{this.cn.log("createAuthCodeOTP() reply:",t)},t=>{this.cn.error("createAuthCodeOTP() error:",t)})}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}saveInLocalStorage(){this.cn.log("saveInLocalStorage()"),sessionStorage.setItem("userTwoFactor",JSON.stringify(this.twofactor))}logOut(){sessionStorage.clear(),this.auth.logout(),this.router.navigate(["login"])}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(cg),i.Ob(nL),i.Ob(Gi),i.Ob(pg),i.Ob(Jb),i.Ob(mg),i.Ob(qS),i.Ob(jS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-validate-login"]],decls:22,vars:4,consts:[[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"text-center"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"title-with-line"],[1,"cnt-top-up-balance","box-white-without-bnn"],[1,"content-top-up-balance"],["novalidate","",3,"formGroup"],["formControlName","method","labelPosition","before","color","primary",1,"verify-radio-group"],["value","sms",1,"verify-radio-button"],["value","email",1,"verify-radio-button"],[1,"mt-3","text-center"],["type","button",1,"customBtn","full-btn",3,"disabled","click"],[1,"cancel-text","mt-4","c-pointer","link",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div"),i.Ub(2,"div",1),i.Pb(3,"img",2),i.Tb(),i.Ub(4,"h5",3),i.Lc(5,"Validaci\xf3n de ingreso"),i.Tb(),i.Ub(6,"p"),i.Lc(7," Por tu seguridad, para poder ingresar debemos hacer una comprobaci\xf3n adicional. Selecciona el m\xe9todo de comprobaci\xf3n que deseas usar. "),i.Tb(),i.Tb(),i.Ub(8,"div",4),i.Ub(9,"div",5),i.Ub(10,"form",6),i.Ub(11,"mat-radio-group",7),i.Ub(12,"mat-radio-button",8),i.Lc(13),i.Tb(),i.Ub(14,"mat-radio-button",9),i.Lc(15),i.Tb(),i.Tb(),i.Ub(16,"div",10),i.Ub(17,"button",11),i.cc("click",(function(){return e.selectMethod()})),i.Lc(18,"Seleccionar"),i.Tb(),i.Tb(),i.Ub(19,"div"),i.Ub(20,"a",12),i.cc("click",(function(){return e.logOut()})),i.Lc(21,"Cancelar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(10),i.mc("formGroup",e.formVerify),i.Db(3),i.Nc(" Tel: ",e.phone," "),i.Db(2),i.Nc(" Email: ",e.mail," "),i.Db(2),i.mc("disabled",!e.formVerify.valid))},directives:[zc,Fa,Yc,sE,Na,tl,dE],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}.link[_ngcontent-%COMP%]{color:#4fbfd3!important;cursor:pointer}.link[_ngcontent-%COMP%]:hover{text-decoration:underline!important}"]}),t})();const UY=["ngOtpInput"];function LY(t,e){if(1&t){const t=i.Vb();i.Ub(0,"ng-otp-input",14,15),i.cc("onInputChange",(function(e){return i.yc(t),i.gc().onOtpChange(e)})),i.Tb()}if(2&t){const t=i.gc();i.mc("config",t.config)}}let RY=(()=>{class t{constructor(t,e,n,i,r,o,s){this.authenticationCodeOTPService=t,this.cn=e,this._pageLoaderService=n,this.dialog=i,this.router=r,this.authCodeByOtpSmsService=o,this.enrollmentService=s,this.validateInput=!1,this.progressbarValue=0,this.curSec=300,this.seconds=300,this.showOtpComponent=!0,this.config={allowNumbersOnly:!0,length:4,isPasswordInput:!1,disableAutoFocus:!1,placeholder:"",containerClass:"groupField-pinOTP",inputClass:"field-pinOTP"}}ngOnInit(){this.twofactor=JSON.parse(sessionStorage.getItem("userTwoFactor")),this.startTimer(this.seconds)}ngOnDestroy(){this.cn.log("===== ngOnDestroy() ====="),void 0!==this.sub&&this.sub.unsubscribe()}onOtpChange(t){this.otp=t,this.validateInput=4===t.length}setVal(t){this.ngOtpInput.setValue(t)}startTimer(t){const e=aL(1e3);this.sub=e.subscribe(e=>{this.progressbarValue=100-100*e/t-2,--this.curSec,0===this.curSec&&(this.sub.unsubscribe(),this.validateInput=!1)})}verificateCode(){switch(this.twofactor.method){case"sms":this._pageLoaderService.show(),this.authCodeByOtpSmsService.getAuthCodeOTP(+this.otp).subscribe(t=>{if(this.cn.log("getAuthCodeOTPSms() reply:",t),this.checkMinuteDifference(new Date(t.operationBody[0].expDate),new Date)<=0)this.showGeneralDialog("El c\xf3digo que ingresaste ha expirado.").subscribe();else switch(this.twofactor.role){case Ig.Administrator:case Ig.AdministrativeOfficer:case Ig.Officer:this.router.navigate(["corporate/pv/documents/my-transactions"]);break;case Ig.Person:case Ig.LegalPerson:this.validEnrollment(this.twofactor.idNotary,this.twofactor.mail,this.twofactor.role)}this.twofactor.twoFactorVerify=!0,this.saveInLocalStorage()},t=>{this.cn.error("getAuthCodeOTPSms() error:",t),this.showGeneralDialog("C\xf3digo inv\xe1lido").subscribe(),this._pageLoaderService.hide()});break;case"email":this._pageLoaderService.show(),this.authenticationCodeOTPService.getAuthCodeOTP(+this.otp).subscribe(t=>{if(this.cn.log("getAuthCodeOTP() reply:",t),this.checkMinuteDifference(new Date(t.operationBody[0].expDate),new Date)<=0)this.showGeneralDialog("El c\xf3digo que ingresaste ha expirado.").subscribe();else switch(this.twofactor.role){case Ig.Administrator:console.log("admin"),this.router.navigate(["corporate/pv/documents/my-transactions"]);break;case Ig.Person:this.validEnrollment(this.twofactor.idNotary,this.twofactor.mail,this.twofactor.role);break;case Ig.AdministrativeOfficer:case Ig.Officer:this.router.navigate(["corporate/pv/documents/list-of-formalities"]),this._pageLoaderService.hide();break;case Ig.LegalPerson:this.validEnrollment(this.twofactor.idNotary,this.twofactor.mail,this.twofactor.role)}this.twofactor.twoFactorVerify=!0,this.saveInLocalStorage()},t=>{this.cn.error("getAuthCodeOTP() error:",t),this.showGeneralDialog("C\xf3digo inv\xe1lido").subscribe(),this._pageLoaderService.hide()})}}return(){this.router.navigate(["corporate/validate/two-factor"])}validEnrollment(t,e,n){n!==Ig.LegalPerson&&n!==Ig.Person||(this._pageLoaderService.show(),this.enrollmentService.getEnrollment(t,e).subscribe(t=>{this.cn.log("validEnrollment()",t),this.router.navigate(!1===t.operationBody[0].validPhoneNumber||!1===t.operationBody[0].validIdentificationNumber||!1===t.operationBody[0].validInNotary?["corporate/pv/enrollment/user-enrollment"]:["corporate/pv/documents/list-of-formalities"]),this._pageLoaderService.hide()},t=>{this.cn.log("Error validEnrollment()",t),this.router.navigate(["corporate/pv/enrollment/user-enrollment"]),this._pageLoaderService.hide()}))}sendCodeByMethod(){switch(this.twofactor.method){case"sms":this.sendAuthCodeSms();break;case"email":this.sendAuthCode()}}sendAuthCodeSms(){this.reset();const t=this.twofactor.mail,e=new jz;e.email=t,e.phone=this.twofactor.phone,e.dialCode=this.twofactor.dialCode,this._pageLoaderService.show(),this.authCodeByOtpSmsService.createAuthCodeOTP(e).subscribe(t=>{this.cn.log("createAuthCodeOTPsms() reply:",t),this.showGeneralDialog("El C\xf3digo de autenticaci\xf3n fue enviado exitosamente.").subscribe(),this._pageLoaderService.hide(),this.startTimer(this.seconds)},t=>{this.cn.error("createAuthCodeOTPsms() error:",t),this._pageLoaderService.hide()})}sendAuthCode(){this.reset();const t=new iL;t.email=this.twofactor.mail,this._pageLoaderService.show(),this.authenticationCodeOTPService.createAuthCodeOTP(t,"otp").subscribe(t=>{this.cn.log("createAuthCodeOTP() reply:",t),this._pageLoaderService.hide(),this.showGeneralDialog("El C\xf3digo de autenticaci\xf3n fue enviado exitosamente.").subscribe(),this.startTimer(this.seconds)},t=>{this._pageLoaderService.hide(),this.cn.error("createAuthCodeOTP() error:",t)})}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}reset(){this.progressbarValue=0,this.curSec=300,this.sub.unsubscribe()}checkMinuteDifference(t,e){this.cn.log("time1:",t.getTime(),"time2:",e.getTime());const n=t.getTime()-e.getTime();this.cn.log("difference:",n);const i=Math.round(n/6e4);return this.cn.log("resultInMinutes:",i),i}saveInLocalStorage(){this.cn.log("saveInLocalStorage()"),sessionStorage.setItem("userTwoFactor",JSON.stringify(this.twofactor))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(nL),i.Ob(Gi),i.Ob(pg),i.Ob(Jb),i.Ob(Zs),i.Ob(mg),i.Ob(_g))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-verification-code"]],viewQuery:function(t,e){var n;1&t&&i.Qc(UY,!0),2&t&&i.tc(n=i.dc())&&(e.ngOtpInput=n.first)},decls:30,vars:7,consts:[[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"text-center"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"title-with-line"],[1,"cnt-top-up-balance","box-white-without-bnn"],[1,"content-top-up-balance"],[3,"config","onInputChange",4,"ngIf"],[1,"text-center","my-4"],[1,"text-color-primary","c-pointer",3,"click"],[1,"text-right","text-color-secondary"],["mode","determinate",3,"value"],[1,"text-center","small-txt","mt-4","mb-3"],[1,"mt-3","text-center"],["type","button",1,"customBtn","full-btn",3,"disabled","click"],[3,"config","onInputChange"],["ngOtpInput",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div"),i.Ub(2,"div",1),i.Pb(3,"img",2),i.Tb(),i.Ub(4,"h5",3),i.Lc(5,"C\xf3digo de verificaci\xf3n"),i.Tb(),i.Ub(6,"p"),i.Lc(7," Hemos enviado un c\xf3digo de verificaci\xf3n por mensaje de texto. "),i.Tb(),i.Tb(),i.Ub(8,"div",4),i.Ub(9,"div",5),i.Jc(10,LY,2,1,"ng-otp-input",6),i.Ub(11,"div",7),i.Lc(12," \xbfNo lo recibiste?, "),i.Ub(13,"a",8),i.cc("click",(function(){return e.sendCodeByMethod()})),i.Lc(14,"enviar un nuevo c\xf3digo"),i.Tb(),i.Lc(15,". "),i.Tb(),i.Ub(16,"div"),i.Ub(17,"div",9),i.Lc(18),i.hc(19,"date"),i.Tb(),i.Pb(20,"mat-progress-bar",10),i.Tb(),i.Ub(21,"div",11),i.Ub(22,"span"),i.Lc(23,"Puedes "),i.Ub(24,"a",8),i.cc("click",(function(){return e.return()})),i.Lc(25,"identificarte de otra manera"),i.Tb(),i.Lc(26,"."),i.Tb(),i.Tb(),i.Ub(27,"div",12),i.Ub(28,"button",13),i.cc("click",(function(){return e.verificateCode()})),i.Lc(29,"Validar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(10),i.mc("ngIf",e.showOtpComponent),i.Db(8),i.Nc(" ",i.jc(19,4,1e3*e.curSec,"mm:ss")," "),i.Db(2),i.mc("value",e.progressbarValue),i.Db(8),i.mc("disabled",!e.validateInput))},directives:[o.t,NP,jI],pipes:[o.f],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})(),NY=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:o.f,useValue:void 0}],imports:[[o.c,bl,gl,ni,PT,aS,UT,Hm,JT,I_,$_,hD,Xw,Sk,Zb,K_,Qk,_P,Qv,dy,By,Ib,Wd,AP,VP,KP,hE,lh,cw,ES,VE,PE,WE,hA,Xw,Ox,dI,Lh,Hx,RI,Ol,zG,VM,fM,QH,zI]]}),t})();i.Cc(xG,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(WU,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(AL,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(Wz,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(Nz,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(Uz,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(IJ,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(IY,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(oU,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(cY,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(hY,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(mY,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,ra,ta,ea,ia,js,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,jI,OG,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,WU,fU,wq,_B,fq,Ej,XU,eg,RB,Eq,xq,Dq,Sq,Pq,Qq,qH,jH,OH,cH,dR,GL,AL,tg,hR,UB,bq,cj,AB,VV,FU,ZH,sL,Yq,EB,GB,QV,MY,RY,pq,Wz,$z,Xz,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,eq,wz,Iz,vq,_q,vB,sJ,IY,oU,cY,hY,mY,Cz,xz,QJ,BG,DG],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]);let FY=(()=>{class t{constructor(t,e){this.kcSvc=t,this.router=e}ngOnInit(){}ngAfterViewInit(){}logOut(){sessionStorage.clear(),this.kcSvc.logout(r.urlLogout)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cr),i.Ob(Zs))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-corporate-header-default"]],decls:11,vars:0,consts:[[1,"cabecera-sitio","sticky-top"],[1,"mat-toolbar"],[1,"container"],[1,"row","align-items-center"],[1,"col"],["href","/"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logotipo_header"],[1,"col","text-right"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(i.Pb(0,"aswc-page-loader-default"),i.Ub(1,"header",0),i.Ub(2,"div",1),i.Ub(3,"div",2),i.Ub(4,"div",3),i.Ub(5,"div",4),i.Ub(6,"a",5),i.Pb(7,"img",6),i.Tb(),i.Tb(),i.Ub(8,"div",7),i.Ub(9,"button",8),i.cc("click",(function(){return e.logOut()})),i.Lc(10,"Salir"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},styles:[".sticky-top[_ngcontent-%COMP%]{z-index:999}.logotipo_header[_ngcontent-%COMP%]{width:160px}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.mat-toolbar[_ngcontent-%COMP%]{padding:8px 0;background:#fff;box-shadow:0 5px 14px 0 rgba(0,0,0,.12)}.mat-toolbar[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:last-child{margin-right:0}"]}),t})(),VY=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[],imports:[[aS,o.c,ma,J,bl,gl,ni,Gx,eS,kx,Lh,Hm,ES,Qv,By,NY]]}),t})();i.Cc(ig,[sS,vd,o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,zm,qm,q_,G_,Uh,Mh,Kv,Sf,Tb,yb,Eb,bb,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,bv,Uv,Cv,xv,Ov,Tv,kv,aw,sw,Oh,_h,ty,ey,uy,iy,ky,Ty,Iy,Py,Qd,Ey,Ay,uh,jy,Vy,W_,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,zx,qx,Mp,Vp,Tm,om,lm,wm,_m,Kp,e_,Kg,c_,Yg,Kx,nO,cO,pO,vO,SO,EO,RO,zO,YO,ZO,xS,OS,CS,TS,kS,SS,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,Sl,Mb,ng,ig,mT,d_,nS,FY],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(mT,[sS,vd,o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,zm,qm,q_,G_,Uh,Mh,Kv,Sf,Tb,yb,Eb,bb,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,bv,Uv,Cv,xv,Ov,Tv,kv,aw,sw,Oh,_h,ty,ey,uy,iy,ky,Ty,Iy,Py,Qd,Ey,Ay,uh,jy,Vy,W_,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,zx,qx,Mp,Vp,Tm,om,lm,wm,_m,Kp,e_,Kg,c_,Yg,Kx,nO,cO,pO,vO,SO,EO,RO,zO,YO,ZO,xS,OS,CS,TS,kS,SS,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,Sl,Mb,ng,ig,mT,d_,nS,FY],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(FY,[sS,vd,o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,zm,qm,q_,G_,Uh,Mh,Kv,Sf,Tb,yb,Eb,bb,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,bv,Uv,Cv,xv,Ov,Tv,kv,aw,sw,Oh,_h,ty,ey,uy,iy,ky,Ty,Iy,Py,Qd,Ey,Ay,uh,jy,Vy,W_,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,zx,qx,Mp,Vp,Tm,om,lm,wm,_m,Kp,e_,Kg,c_,Yg,Kx,nO,cO,pO,vO,SO,EO,RO,zO,YO,ZO,xS,OS,CS,TS,kS,SS,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,Sl,Mb,ng,ig,mT,d_,nS,FY],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]);let jY=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-common-user-private"]],decls:5,vars:0,consts:[[1,"p_container"]],template:function(t,e){1&t&&(i.Pb(0,"aswc-common-user-header-private"),i.Pb(1,"aswc-breadcrumbs"),i.Ub(2,"div",0),i.Pb(3,"router-outlet"),i.Tb(),i.Pb(4,"aswc-footer-private"))},directives:[Mb,nS,ra,Sl],styles:[".p_container[_ngcontent-%COMP%]{background:#fff;width:100%;min-height:100%}"]}),t})(),BY=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-dashboard"]],decls:2,vars:0,template:function(t,e){1&t&&(i.Ub(0,"p"),i.Lc(1," dashboard works!\n"),i.Tb())},styles:[""]}),t})();const zY=ma.forChild([{path:"common-user/pv",canActivate:[xa],component:jY,children:[{path:"documents",children:[{path:"upload-files",component:YB,data:{titulo:"Cargar documentos"}},{path:"select-signers",component:VB,data:{titulo:"Seleccionar firmantes"}},{path:"assign-signers",component:KV,data:{titulo:"Asignar firmantes"}},{path:"doc-list",component:sj,data:{titulo:"Documentos"}}]},{path:"authentication",children:[{path:"auth-methods",component:eL,data:{titulo:"M\xe9todos de autenticaci\xf3n"}}]},{path:"messages",children:[{path:"sent-documents",component:PB,data:{titulo:"Documentos enviados"}}]},{path:"payment",children:[{path:"recharge",component:GH,data:{titulo:"Recarga tu saldo"}},{path:"response",component:KH,data:{titulo:"Estado de la transacci\xf3n"}}]}]}]);class qY{constructor(){this.cc="",this.sesId=""}}function HY(t,e){1&t&&(i.Ub(0,"div",9),i.Ub(1,"ul"),i.Ub(2,"li"),i.Lc(3,"La c\xe9dula debe ser n\xfamerica y tener entre 6 y 11 caracteres."),i.Tb(),i.Tb(),i.Tb())}function GY(t,e){1&t&&(i.Ub(0,"div",9),i.Ub(1,"ul"),i.Ub(2,"li"),i.Lc(3,"No se encuentra la c\xe9dula asociada."),i.Tb(),i.Tb(),i.Tb())}function JY(t,e){1&t&&(i.Ub(0,"div",9),i.Ub(1,"ul"),i.Ub(2,"li"),i.Lc(3,"El proceso se encuentra en un estado inv\xe1lido. Contacte a su asesor"),i.Tb(),i.Tb(),i.Tb())}function YY(t,e){1&t&&(i.Ub(0,"div",9),i.Ub(1,"ul"),i.Ub(2,"li"),i.Lc(3,"En estos momentos no se pueda procesar la solicitud."),i.Tb(),i.Tb(),i.Tb())}let $Y=(()=>{class t{constructor(t,e,n,i,r){this.route=e,this.router=n,this.globalVarService=i,this.secureKeyService=r,this.requestSessionSecureKey=new qY,this.serviceError=!1,this.matchError=!1,this.stateError=!1,this.singleForm=t.group({cc:[null,Ha.compose([Ha.required,Ha.minLength(6),Ha.maxLength(13),Ha.pattern("[0-9]+")])]})}ngOnInit(){this.loadVariables()}loadVariables(){}saveProcessVars(){this.globalVarService.cc=this.requestSessionSecureKey.cc,this.requestSessionSecureKey.sesId=this.globalVarService.sesId}beginTransaction(){this.stateError=!1,this.serviceError=!1,this.matchError=!1,this.checkProcessStatus()}checkProcessStatus(){this.getDocsToSign()}getDocsToSign(){new XV,this.verifyGetDocsCall()}verifyGetDocsCall(){this.matchError||this.serviceError||this.stateError||(console.log("Call GenSessionSecureKey"),this.genSessionForSecureKey())}genSessionForSecureKey(){this.secureKeyService.initPostSecureKey(this.requestSessionSecureKey).subscribe(t=>{console.log("Response Service SecureKey:"+JSON.stringify(t)),200!==t.codeMessage?this.serviceError=!0:this.goToReadDocs()},t=>{this.serviceError=!0,console.log(t)})}goToReadDocs(){this.router.navigate(["authentication/read-docs"])}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Fo),i.Ob(Zs),i.Ob(cg),i.Ob(Eg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-user-id"]],decls:17,vars:7,consts:[[1,"container_login","text-center"],[1,"cuadro_login"],["ngNativeValidate","",3,"formGroup"],[1,"formulario_sitio"],[1,"form-group","text-left"],["for",""],["ngModelOptions","{ standalone: true }","placeholder","Ingrese su c\xe9dula sin puntos, ni comas","formControlName","cc",1,"form-control","square",3,"ngModel","ngModelChange","change"],["class","mensaje-alerta text-left",4,"ngIf"],[1,"btn","btn-resuelve-verde","square",3,"disabled","click"],[1,"mensaje-alerta","text-left"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"h4"),i.Lc(3,"INGRESA TU N\xdaMERO DE C\xc9DULA PARA CONTINUAR CON LA OPERACI\xd3N"),i.Tb(),i.Pb(4,"hr"),i.Ub(5,"form",2),i.Ub(6,"div",3),i.Ub(7,"div",4),i.Ub(8,"label",5),i.Lc(9,"N\xfamero de Identificaci\xf3n:"),i.Tb(),i.Ub(10,"input",6),i.cc("ngModelChange",(function(t){return e.requestSessionSecureKey.cc=t}))("change",(function(){return e.saveProcessVars()})),i.Tb(),i.Tb(),i.Jc(11,HY,4,0,"div",7),i.Jc(12,GY,4,0,"div",7),i.Jc(13,JY,4,0,"div",7),i.Jc(14,YY,4,0,"div",7),i.Tb(),i.Tb(),i.Ub(15,"button",8),i.cc("click",(function(){return e.beginTransaction()})),i.Lc(16," CONTINUAR "),i.Tb(),i.Tb(),i.Tb()),2&t&&(i.Db(5),i.mc("formGroup",e.singleForm),i.Db(5),i.mc("ngModel",e.requestSessionSecureKey.cc),i.Db(1),i.mc("ngIf",!e.singleForm.controls.cc.valid&&e.singleForm.controls.cc.touched),i.Db(1),i.mc("ngIf",e.matchError),i.Db(1),i.mc("ngIf",e.stateError),i.Db(1),i.mc("ngIf",e.serviceError),i.Db(1),i.mc("disabled",!e.singleForm.valid))},directives:[Fa,Yc,Aa,Na,tl,o.t],encapsulation:2}),t})();function WY(t,e){if(1&t){const t=i.Vb();i.Ub(0,"tr"),i.Ub(1,"td"),i.Lc(2),i.Tb(),i.Ub(3,"td"),i.Ub(4,"input",4),i.cc("ngModelChange",(function(n){return i.yc(t),e.$implicit.selected=n}))("change",(function(){return i.yc(t),i.gc().checkIfAllSelected()})),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit;i.Db(2),i.Mc(t.name),i.Db(2),i.mc("ngModel",t.selected)}}let KY=(()=>{class t{constructor(t,e,n){this.router=t,this.globalVarService=e,this._modalSecureKeyService=n,this.myFiles_=e.pdf_array}ngOnInit(){}selectAll(){for(let t=0;t<this.myFiles_.length;t++)this.myFiles_[t].selected=this.selectedAll;this.validform=!0===this.selectedAll}checkIfAllSelected(){this.selectedAll=this.myFiles_.every((function(t){return!0===t.selected})),this.validform=!0===this.selectedAll}modalClick(){this._modalSecureKeyService.mostrarModal()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs),i.Ob(cg),i.Ob(sg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-read-docs"]],decls:15,vars:3,consts:[[1,"table"],["type","checkbox",3,"ngModel","ngModelChange","change"],[4,"ngFor","ngForOf"],[1,"btn","btn-primary",3,"disabled","click"],["type","checkbox","id","docs","value","item1",3,"ngModel","ngModelChange","change"]],template:function(t,e){1&t&&(i.Ub(0,"p"),i.Lc(1," read-docs works!\n"),i.Tb(),i.Ub(2,"table",0),i.Ub(3,"thead"),i.Ub(4,"tr"),i.Ub(5,"th"),i.Lc(6,"Documento"),i.Tb(),i.Ub(7,"th"),i.Lc(8,"Opciones "),i.Ub(9,"input",1),i.cc("ngModelChange",(function(t){return e.selectedAll=t}))("change",(function(){return e.selectAll()})),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"tbody"),i.Jc(11,WY,5,2,"tr",2),i.Tb(),i.Tb(),i.Ub(12,"button",3),i.cc("click",(function(){return e.modalClick()})),i.Lc(13,"SIGUIENTE"),i.Tb(),i.Pb(14,"aswc-modal-secure-key")),2&t&&(i.Db(9),i.mc("ngModel",e.selectedAll),i.Db(2),i.mc("ngForOf",e.myFiles_),i.Db(1),i.mc("disabled",!e.validform))},encapsulation:2}),t})(),QY=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[o.d],imports:[[o.c,zY,VY,gl,J,bl,ni,PT,aS,UT,Hm,JT,I_,$_,hD,Xw,Sk,Zb,K_,Qk,_P,Qv,dy,By,Ib,Wd,AP,VP,KP,hE,lh,cw,ES,VE,PE,WE,hA,Ox,dI,Lh,Hx,RI,Ol,NY]]}),t})();i.Cc(KY,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Gc,Yc,tl,Wc,Qc,Bc,Fc,Uc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,xl,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,jY,BY,$Y,KY],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]);let XY=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-common-user-public"]],decls:4,vars:0,template:function(t,e){1&t&&(i.Pb(0,"aswc-common-user-header-public"),i.Pb(1,"aswc-breadcrumbs"),i.Pb(2,"router-outlet"),i.Pb(3,"aswc-footer-public"))},directives:[ig,nS,ra,ng],styles:[".p_container[_ngcontent-%COMP%]{background:#fff;width:100%;min-height:75%}"]}),t})(),ZY=(()=>{class t{constructor(t){this.router=t}ngOnInit(){this.router.navigate(["corporate/pv/documents/upload-files"])}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-index"]],decls:71,vars:0,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"row","align-items-center"],[1,"col-12","col-md-6","border-right"],[1,"col-12","col-md-6"],[1,"container","wt-360"],["id","opsLogin",1,"form-login","text-center"],[1,"btns_login"],["mat-raised-button","",1,"fll_wt"],[1,"soc-icon"],["src","./assets/images/Iconos/google.svg","alt","Google",1,"soc-icon-google"],["src","./assets/images/Iconos/facebook.svg","alt","Google",1,"soc-icon-facebook"],["id","btnOpCorreo","mat-raised-button","",1,"fll_wt"],[1,"material-icons"],[1,"small-txt","text-center"],["href",""],["id","itemCorreo",1,"form-login"],[1,"navigation_login"],["mat-icon-button",""],[1,"text-center"],["matInput","","placeholder","Email"],["matInput","","placeholder","Contrase\xf1a"],[1,"mt-2"],["mat-raised-button","","color","primary",1,"fll_wt"],["id","itemResetPsw",1,"form-login"],[1,"alert-message","mt-4","mb-4"],[1,"media"],[1,"media-body","small-txt"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Lc(4," No hay nada aqui "),i.Tb(),i.Ub(5,"div",4),i.Ub(6,"div",5),i.Ub(7,"div",6),i.Ub(8,"h4"),i.Lc(9,"Firma Electr\xf3nicamente"),i.Tb(),i.Ub(10,"p"),i.Lc(11,"\xa1Te ayudamos a hacerlo f\xe1cil y r\xe1pido!"),i.Tb(),i.Ub(12,"div",7),i.Ub(13,"button",8),i.Ub(14,"i",9),i.Pb(15,"img",10),i.Tb(),i.Lc(16," Entrar con Gmail"),i.Tb(),i.Ub(17,"button",8),i.Ub(18,"i",9),i.Pb(19,"img",11),i.Tb(),i.Lc(20," Entrar con Facebook"),i.Tb(),i.Ub(21,"button",12),i.Ub(22,"i",13),i.Lc(23,"email"),i.Tb(),i.Lc(24," Entrar con tu correo"),i.Tb(),i.Tb(),i.Ub(25,"p",14),i.Lc(26,"\xbfA\xfan no estas registrado?, "),i.Ub(27,"a",15),i.Lc(28,"Registrate Aqu\xed"),i.Tb(),i.Lc(29,"."),i.Tb(),i.Tb(),i.Ub(30,"div",16),i.Ub(31,"div",17),i.Ub(32,"button",18),i.Ub(33,"i",13),i.Lc(34,"keyboard_backspace"),i.Tb(),i.Tb(),i.Tb(),i.Ub(35,"h4",19),i.Lc(36,"Iniciar Sesi\xf3n"),i.Tb(),i.Ub(37,"form"),i.Ub(38,"mat-form-field"),i.Pb(39,"input",20),i.Tb(),i.Ub(40,"mat-form-field"),i.Pb(41,"input",21),i.Tb(),i.Ub(42,"mat-checkbox"),i.Lc(43,"Recordarme en este equipo"),i.Tb(),i.Ub(44,"div",22),i.Ub(45,"button",23),i.Lc(46,"Iniciar Sesi\xf3n"),i.Tb(),i.Tb(),i.Ub(47,"p",14),i.Lc(48,"\xbfHas olvidado tu contrase\xf1a?, "),i.Ub(49,"a",15),i.Lc(50,"Recordar Aqu\xed"),i.Tb(),i.Lc(51,"."),i.Tb(),i.Tb(),i.Tb(),i.Ub(52,"div",24),i.Ub(53,"div",17),i.Ub(54,"button",18),i.Ub(55,"i",13),i.Lc(56,"keyboard_backspace"),i.Tb(),i.Tb(),i.Tb(),i.Ub(57,"h4",19),i.Lc(58,"Recuperar Contrase\xf1a"),i.Tb(),i.Ub(59,"form"),i.Ub(60,"mat-card",25),i.Ub(61,"div",26),i.Ub(62,"i",13),i.Lc(63,"info"),i.Tb(),i.Ub(64,"div",27),i.Lc(65," Si creste tu cuenta con Facebook o Google, debes acceder a trav\xe9s de tu cuenta de Facebook o Google. "),i.Tb(),i.Tb(),i.Tb(),i.Ub(66,"mat-form-field"),i.Pb(67,"input",20),i.Tb(),i.Ub(68,"div",22),i.Ub(69,"button",23),i.Lc(70,"Iniciar Sesi\xf3n"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[zm,zc,Fa,Uc,Uv,uy,q_,P_],styles:[".mat-raised-button[_ngcontent-%COMP%]{margin-bottom:1rem;text-transform:uppercase}.mat-raised-button[_ngcontent-%COMP%]:last-child{margin-bottom:1rem}.soc-icon[_ngcontent-%COMP%]   img.soc-icon-facebook[_ngcontent-%COMP%], .soc-icon[_ngcontent-%COMP%]   img.soc-icon-google[_ngcontent-%COMP%]{width:20px;position:absolute;left:1rem;padding:9px 0}.mat-raised-button[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{position:absolute;left:1rem;padding:6px 0;color:rgba(0,0,0,.4)}.alert-message[_ngcontent-%COMP%]{padding:.8rem;color:#6d6f71}.alert-message[_ngcontent-%COMP%]   .material-icons[_ngcontent-%COMP%]{font-size:2.4rem;margin-right:.5rem}"]}),t})();class t${constructor(){this.title="",this.message=""}}var e$=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};function n$(t,e){if(1&t&&(i.Ub(0,"div",2),i.Ub(1,"div"),i.Ub(2,"div",3),i.Pb(3,"img",4),i.Tb(),i.Tb(),i.Ub(4,"div",5),i.Ub(5,"div",6),i.Ub(6,"h5",7),i.Lc(7),i.Tb(),i.Pb(8,"div",8),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(7),i.Mc(t.actionResponse.title),i.Db(1),i.mc("innerHTML",t.actionResponse.message,i.zc)}}function i$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function r$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,i$,2,1,"mat-error",15),i.Tb()),2&t){const t=e.$implicit,n=i.gc(2);i.Db(1),i.mc("ngIf",n.formResetPassword.get("newPassword").hasError(t.type)&&(n.formResetPassword.get("newPassword").dirty||n.formResetPassword.get("newPassword").touched))}}function o$(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",2),i.Ub(1,"div"),i.Ub(2,"div",3),i.Pb(3,"img",4),i.Tb(),i.Ub(4,"h5",7),i.Lc(5,"Nueva contrase\xf1a"),i.Tb(),i.Ub(6,"p"),i.Lc(7," Cambiar la contrase\xf1a de "),i.Ub(8,"b"),i.Lc(9),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"div",5),i.Ub(11,"div",6),i.Ub(12,"form",9),i.Ub(13,"mat-form-field",10),i.Ub(14,"mat-label"),i.Lc(15,"Nueva contrase\xf1a"),i.Tb(),i.Pb(16,"input",11),i.Jc(17,r$,2,1,"mat-error",12),i.Tb(),i.Ub(18,"div",13),i.Ub(19,"button",14),i.cc("click",(function(){return i.yc(t),i.gc().passwordResetClick()})),i.Lc(20,"Cambiar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=i.gc();i.Db(9),i.Mc(t.email),i.Db(3),i.mc("formGroup",t.formResetPassword),i.Db(5),i.mc("ngForOf",t.validation_messages.newPassword)}}let s$=(()=>{class t{constructor(t,e,n,i,r,o,s){this.route=t,this._fb=e,this.cn=n,this.router=i,this.dialog=r,this._snackBar=o,this.authService=s,this.mode="",this.actionCode="",this.email="",this.resetPassword=!1,this.actionResponse=new t$,this.validation_messages={newPassword:[{type:"required",message:"El campo Nueva Contrase\xf1a es requerido"},{type:"pattern",message:"La contrase\xf1a debe contener un n\xfamero, una letra may\xfascula y una min\xfascula, y ser mayor a 8 d\xedgitos"}]}}ngOnInit(){this.formResetPassword=this._fb.group({newPassword:["",[Ha.required]]}),this.loadAction()}loadAction(){return e$(this,void 0,void 0,(function*(){switch(this.route.queryParams.subscribe(t=>{this.mode=t.mode,this.actionCode=t.oobCode}),this.mode){case"resetPassword":this.resetPassword=!0;try{const t=yield this.authService.handleResetPassword(this.actionCode,null,null);this.email=t}catch(t){this.cn.error(t),this.resetPassword=!1,this.actionResponse.title="Solicitud caducada",this.actionResponse.message="<p>La petici\xf3n para cambiar la contrase\xf1a ha caducado o ya se ha usado el enlace.</p>"}break;case"recoverEmail":break;case"verifyEmail":try{const t=yield this.authService.handleVerifyEmail(this.actionCode,null,null);this.cn.log(t),this.actionResponse.title="Verifica tu Email",this.actionResponse.message="<p>Se ha verificado tu correo electr\xf3nico</p> <p>Ya puedes iniciar sesi\xf3n con la cuenta nueva.</p>"}catch(e){this.cn.error(e),this.actionResponse.title="Verifica tu Email",this.actionResponse.message="<p>Prueba a verificar el correo electr\xf3nico de nuevo</p><p>La petici\xf3n para verificar tu correo electr\xf3nico ha caducado o ya se ha usado el enlace.</p>"}}}))}passwordResetClick(){return e$(this,void 0,void 0,(function*(){if(this.formResetPassword.valid)try{yield this.authService.confirmPasswordReset(this.actionCode,this.formResetPassword.value.newPassword),this.actionResponse.title="Contrase\xf1a modificada",this.actionResponse.message="<p>Ya puedes iniciar sesi\xf3n con la nueva contrase\xf1a.</p>",this.resetPassword=!1}catch(t){this.cn.error(t)}else this._snackBar.open("Debes ingresar los campos obligatorios","",{duration:5e3,panelClass:["customSnackbar"]})}))}redirect(){this.router.navigate(["login"])}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Fo),i.Ob(fl),i.Ob(Gi),i.Ob(Zs),i.Ob(Jb),i.Ob(QE),i.Ob(qS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-action"]],decls:3,vars:2,consts:[[1,"cnt-bg-office"],["class","container wt-430 pt-5 pb-5 mx-auto",4,"ngIf"],[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"text-center"],["src","./assets/images/Logotipo_Color.png","alt","eNotary",1,"logo-without-header"],[1,"cnt-top-up-balance","box-white-without-bnn"],[1,"content-top-up-balance"],[1,"title-with-line"],[3,"innerHTML"],["novalidate","",3,"formGroup"],["appearance","outline"],["matInput","","type","password","placeholder","Nueva contrase\xf1a","formControlName","newPassword","pattern","^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$"],[4,"ngFor","ngForOf"],[1,"mt-3","text-center"],["type","button",1,"customBtn","full-btn",3,"click"],[4,"ngIf"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Jc(1,n$,9,2,"div",1),i.Jc(2,o$,21,3,"div",1),i.Tb()),2&t&&(i.Db(1),i.mc("ngIf",""!==e.actionResponse.title),i.Db(1),i.mc("ngIf",e.resetPassword))},directives:[o.t,zc,Fa,Yc,Uv,xv,uy,Aa,Na,tl,pl,o.s,bv],styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}.link[_ngcontent-%COMP%]{color:#4fbfd3!important;cursor:pointer}.link[_ngcontent-%COMP%]:hover{text-decoration:underline!important}"]}),t})();function a$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function c$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,a$,2,1,"mat-error",18),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.formAuthForgotPass.get("email").hasError(t.type)&&(n.formAuthForgotPass.get("email").dirty||n.formAuthForgotPass.get("email").touched))}}let l$=(()=>{class t{constructor(t,e,n,i,r,o){this._fb=t,this.router=e,this._snackBar=n,this.dialog=i,this.cn=r,this.auth=o,this.validation_messages={email:[{type:"required",message:"El campo Email es requerido"}]}}ngOnInit(){this.formAuthForgotPass=this._fb.group({email:["",[Ha.required]]})}fogotPassword(){return t=this,void 0,n=function*(){if(this.formAuthForgotPass.valid)try{const t=yield this.auth.sendPasswordResetEmail(this.formAuthForgotPass.value.email);this.cn.log(t),this.formAuthForgotPass.reset(),this.showGeneralDialog("En breve deber\xedas recibir un mensaje con m\xe1s instrucciones a tu correo electr\xf3nico.").subscribe()}catch(t){this.cn.log(t),this.formAuthForgotPass.reset(),this.showGeneralDialog("En breve deber\xedas recibir un mensaje con m\xe1s instrucciones a tu correo electr\xf3nico.").subscribe()}else this._snackBar.open("Debes ingresar los campos obligatorios","",{duration:5e3,panelClass:["customSnackbar"]})},new((e=void 0)||(e=Promise))((function(i,r){function o(t){try{a(n.next(t))}catch(e){r(e)}}function s(t){try{a(n.throw(t))}catch(e){r(e)}}function a(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}a((n=n.apply(t,[])).next())}));var t,e,n}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(QE),i.Ob(Jb),i.Ob(Gi),i.Ob(qS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-forgot-password"]],decls:36,vars:2,consts:[[1,"cnt-bg-office"],[1,"container"],[1,"row","align-items-center"],[1,"col-12","col-sm-6"],[1,"title-home","mb-5"],[1,"d-none","d-sm-block"],["src","./assets/images/process-index.png","alt","Proceso",1,"img-fluid","mb-5"],[1,"col-12","col-sm-5","offset-sm-1"],[1,"mb-4"],[1,"title-with-line"],[1,"box-index-register"],["novalidate","",3,"formGroup"],["appearance","outline"],["matInput","","placeholder","Email","formControlName","email"],[4,"ngFor","ngForOf"],["type","button",1,"customBtn","full-btn",3,"click"],[1,"small-txt","text-center","mt-4"],["routerLink","/login"],[4,"ngIf"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Ub(4,"h4",4),i.Lc(5,"Hacer "),i.Ub(6,"b"),i.Lc(7,"tr\xe1mites notariales"),i.Tb(),i.Lc(8," ahora es mucho m\xe1s "),i.Ub(9,"b"),i.Lc(10,"f\xe1cil"),i.Tb(),i.Lc(11,"."),i.Tb(),i.Ub(12,"div",5),i.Pb(13,"img",6),i.Ub(14,"p"),i.Lc(15," Selecciona y realiza el tr\xe1mite que necesites o agenda tu cita y gestiona tus procesos notariales de manera digital. "),i.Tb(),i.Tb(),i.Tb(),i.Ub(16,"div",7),i.Ub(17,"div",8),i.Ub(18,"h5",9),i.Lc(19,"Recordar contrase\xf1a"),i.Tb(),i.Ub(20,"p"),i.Lc(21,"Ingresa tu correo electr\xf3nico registrado en eNotary para recordar contrase\xf1a."),i.Tb(),i.Tb(),i.Ub(22,"div",10),i.Ub(23,"form",11),i.Ub(24,"mat-form-field",12),i.Ub(25,"mat-label"),i.Lc(26,"Email"),i.Tb(),i.Pb(27,"input",13),i.Jc(28,c$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(29,"div"),i.Ub(30,"button",15),i.cc("click",(function(){return e.fogotPassword()})),i.Lc(31,"Enviar"),i.Tb(),i.Tb(),i.Ub(32,"div",16),i.Ub(33,"a",17),i.Lc(34,"Volver a la identificaci\xf3n"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(35,"aswc-page-loader-default")),2&t&&(i.Db(23),i.mc("formGroup",e.formAuthForgotPass),i.Db(5),i.mc("ngForOf",e.validation_messages.email))},styles:[".title-home[_ngcontent-%COMP%]{font-size:46px;font-weight:400}.title-home[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#4fbfd3}.box-index-register[_ngcontent-%COMP%]{background-color:#fff;padding:24px;border-radius:29px;box-shadow:1px 3px 12px 0 rgba(50,50,50,.2)}"]}),t})();var u$=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};function d$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function h$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,d$,2,1,"mat-error",20),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.formAuthLogin.get("email").hasError(t.type)&&(n.formAuthLogin.get("email").dirty||n.formAuthLogin.get("email").touched))}}function p$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function m$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,p$,2,1,"mat-error",20),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.formAuthLogin.get("password").hasError(t.type)&&(n.formAuthLogin.get("password").dirty||n.formAuthLogin.get("password").touched))}}let f$=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d,h,p){this._fb=t,this.router=e,this._snackBar=n,this.dialog=i,this.cn=r,this.auth=o,this.sidebarService=s,this.enterpriseService=a,this.usersService=c,this.registrationInvitationsService=l,this.roleService=u,this._pageLoaderService=d,this.enrollmentService=h,this.signerDocUser=p,this.validation_messages={email:[{type:"required",message:"El campo Email es requerido"}],password:[{type:"required",message:"El campo Contrase\xf1a es requerido"}]}}ngOnInit(){this.formAuthLogin=this._fb.group({email:["",[Ha.required]],password:["",[Ha.required]]})}login(){return u$(this,void 0,void 0,(function*(){if(this.formAuthLogin.valid){this._pageLoaderService.show();try{const t=yield this.auth.login(this.formAuthLogin.value.email,this.formAuthLogin.value.password);t&&t.user.emailVerified?(yield this.auth.GetToken(),this.user=yield this.getUser(t.user.email),yield this.userLogin()):this.showGeneralDialog("",{title:"Verificar email",content:"Tienes que verificar tu email para activar tu cuenta.",actions:[{text:"Aceptar",value:"accepted",funct:"close"},{text:"Reenviar Correo",value:"reSendVerificationEmail",funct:"close"}]}).subscribe(t=>{switch(t){case"reSendVerificationEmail":this.auth.sendVerificationEmail(),this.showGeneralDialog("Te hemos enviado un email con instrucciones para verificar tu cuenta.")}})}catch(t){console.log("err login: ",t),this._snackBar.open("Usuario o contrase\xf1a incorrectos.","",{duration:5e3,panelClass:["customSnackbar"]})}this._pageLoaderService.hide()}else this._snackBar.open("Debes ingresar los campos obligatorios","",{duration:5e3,panelClass:["customSnackbar"]})}))}userLogin(){return u$(this,void 0,void 0,(function*(){const t=new jS(this.cn,this.router,this.sidebarService,this.enterpriseService,this.usersService,this.registrationInvitationsService,this.roleService,this._pageLoaderService,this.enrollmentService,this.signerDocUser);this.user.registered=!0,t.user=this.user,yield t.flowCreateEnterprise(),t.twoFactorVerify(),t.signDocumentsRegister(this.user.signerDoc,this.user.role),t.saveInLocalStorage("userData",this.user)}))}getUser(t){return u$(this,void 0,void 0,(function*(){try{return(yield this.usersService.getUsers("email",t).toPromise()).operationBody[0]}catch(e){this.showGeneralDialog("",{title:"Informaci\xf3n",content:"Ha ocurrido un error, vuelve a intentarlo.",actions:[{text:"Cerrar",value:"accepted",funct:"logout"}]})}return null}))}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(QE),i.Ob(Jb),i.Ob(Gi),i.Ob(qS),i.Ob(Ug),i.Ob(US),i.Ob(jg),i.Ob(RS),i.Ob(Pg),i.Ob(pg),i.Ob(_g),i.Ob(FS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-login"]],decls:44,vars:3,consts:[[1,"cnt-bg-office"],[1,"container"],[1,"row","align-items-center"],[1,"col-12","col-sm-6"],[1,"title-home","mb-5"],[1,"d-none","d-sm-block"],["src","./assets/images/process-index.png","alt","Proceso",1,"img-fluid","mb-5"],[1,"col-12","col-sm-5","offset-sm-1"],[1,"mb-4"],[1,"title-with-line"],[1,"box-index-register"],["novalidate","",3,"formGroup"],["appearance","outline"],["matInput","","placeholder","Email","formControlName","email"],[4,"ngFor","ngForOf"],["type","password","matInput","","placeholder","Contrase\xf1a","formControlName","password"],["type","button",1,"customBtn","full-btn",3,"click"],[1,"small-txt","text-center","mt-4"],["routerLink","/login/forgot-password"],["mat-raised-button","","color","primary","routerLink","/register",2,"width","100%"],[4,"ngIf"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Ub(4,"h4",4),i.Lc(5,"Hacer "),i.Ub(6,"b"),i.Lc(7,"tr\xe1mites notariales"),i.Tb(),i.Lc(8," ahora es mucho m\xe1s "),i.Ub(9,"b"),i.Lc(10,"f\xe1cil"),i.Tb(),i.Lc(11,"."),i.Tb(),i.Ub(12,"div",5),i.Pb(13,"img",6),i.Ub(14,"p"),i.Lc(15," Selecciona y realiza el tr\xe1mite que necesites o agenda tu cita y gestiona tus procesos notariales de manera digital. "),i.Tb(),i.Tb(),i.Tb(),i.Ub(16,"div",7),i.Ub(17,"div",8),i.Ub(18,"h5",9),i.Lc(19,"Realiza tus tr\xe1mites notariales"),i.Tb(),i.Ub(20,"p"),i.Lc(21,"Ingresa tus datos para iniciar sesi\xf3n."),i.Tb(),i.Tb(),i.Ub(22,"div",10),i.Ub(23,"form",11),i.Ub(24,"mat-form-field",12),i.Ub(25,"mat-label"),i.Lc(26,"Email"),i.Tb(),i.Pb(27,"input",13),i.Jc(28,h$,2,1,"mat-error",14),i.Tb(),i.Ub(29,"mat-form-field",12),i.Ub(30,"mat-label"),i.Lc(31,"Contrase\xf1a"),i.Tb(),i.Pb(32,"input",15),i.Jc(33,m$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(34,"div"),i.Ub(35,"button",16),i.cc("click",(function(){return e.login()})),i.Lc(36,"Iniciar Sesi\xf3n"),i.Tb(),i.Tb(),i.Ub(37,"div",17),i.Ub(38,"a",18),i.Lc(39,"\xbfHas olvidado tu contrase\xf1a?"),i.Tb(),i.Tb(),i.Ub(40,"div",17),i.Ub(41,"button",19),i.Lc(42,"Reg\xedstrate"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(43,"aswc-page-loader-default")),2&t&&(i.Db(23),i.mc("formGroup",e.formAuthLogin),i.Db(5),i.mc("ngForOf",e.validation_messages.email),i.Db(5),i.mc("ngForOf",e.validation_messages.password))},styles:[".title-home[_ngcontent-%COMP%]{font-size:46px;font-weight:400}.title-home[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#4fbfd3}.box-index-register[_ngcontent-%COMP%]{background-color:#fff;padding:24px;border-radius:29px;box-shadow:1px 3px 12px 0 rgba(50,50,50,.2)}"]}),t})(),b$=(()=>{class t{constructor(){}get user(){return this._user}set user(t){this._user=t}get idProcess(){return this._idProcess}set idProcess(t){this._idProcess=t}get verifyCode(){return this._verifyCode}set verifyCode(t){this._verifyCode=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class g${}var _$=function(t,e,n,i){return new(n||(n=Promise))((function(r,o){function s(t){try{c(i.next(t))}catch(e){o(e)}}function a(t){try{c(i.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))};let v$=(()=>{class t{constructor(t,e,n){this.enterpriseService=t,this.userService=e,this.cn=n,this.registrationValidation=new g$}validateUserNotary(t,e,n){return _$(this,void 0,void 0,(function*(){this.registrationValidation.isValid=!1,this.registrationValidation.message="";try{this.registrationValidation.message="El n\xfamero de identificaci\xf3n ya est\xe1 registrado como funcionario en la notar\xeda.",yield this.userService.verifyUserOfficer(t.identificationNumber,t.enterpriseId,!0).toPromise()}catch(e){404===e.status?this.registrationValidation.isValid=!0:this.sendError(e)}return this.registrationValidation}))}validateUser(t,e,n){return _$(this,void 0,void 0,(function*(){this.registrationValidation.isValid=!1,this.registrationValidation.message="";try{yield this.userService.verifyUserRegister(t.identificationNumber,n?Ig.Person:Ig.LegalPerson,!0).toPromise(),this.registrationValidation.message=n?"El n\xfamero de identificaci\xf3n ya est\xe1 registrado como persona.":"El n\xfamero de identificaci\xf3n ya est\xe1 registrado con una empresa."}catch(i){404===i.status?yield this.validateEnterprise(t.enterpriseId,e,n):this.sendError(i)}return this.registrationValidation}))}validateEnterprise(t,e,n){return _$(this,void 0,void 0,(function*(){if(e)this.registrationValidation.isValid=!0;else try{yield this.enterpriseService.getEnterprise(t).toPromise(),this.registrationValidation.isValid=!1,this.registrationValidation.message=n?"El n\xfamero de identificaci\xf3n ya est\xe1 registrado.":"Ya hay una empresa registrada con este NIT."}catch(i){404===i.status?this.registrationValidation.isValid=!0:this.sendError(i)}}))}addUserInRegister(t){return _$(this,void 0,void 0,(function*(){this.registrationValidation.message="";const e=yield this.userService.createUser(t).toPromise();return this.registrationValidation.message="OK",this.cn.log("Create user in register",e),this.registrationValidation}))}sendError(t){this.registrationValidation.isValid=!1,this.registrationValidation.message="Ha ocurrido un error, vuelve a intentarlo.",this.cn.log("ERROR",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(US),i.Yb(jg),i.Yb(Gi))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function y$(t,e){1&t&&(i.Ub(0,"mat-icon"),i.Lc(1,"person"),i.Tb(),i.Lc(2," Persona "))}function w$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function C$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,w$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("typeDocument").hasError(t.type)&&(n.personForm.get("typeDocument").dirty||n.personForm.get("typeDocument").touched))}}function x$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function O$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,x$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("identificationNumber").hasError(t.type)&&(n.personForm.get("identificationNumber").dirty||n.personForm.get("identificationNumber").touched))}}function S$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function T$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,S$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("firstName").hasError(t.type)&&(n.personForm.get("firstName").dirty||n.personForm.get("firstName").touched))}}function D$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function k$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,D$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("lastName").hasError(t.type)&&(n.personForm.get("lastName").dirty||n.personForm.get("lastName").touched))}}function P$(t,e){if(1&t&&(i.Ub(0,"mat-option",61),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function E$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function A$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,E$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("department").hasError(t.type)&&(n.personForm.get("department").dirty||n.personForm.get("department").touched))}}function I$(t,e){if(1&t&&(i.Ub(0,"mat-option",61),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function M$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function U$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,M$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("city").hasError(t.type)&&(n.personForm.get("city").dirty||n.personForm.get("city").touched))}}function L$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function R$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,L$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("address").hasError(t.type)&&(n.personForm.get("address").dirty||n.personForm.get("address").touched))}}function N$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function F$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,N$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("dateBirth").hasError(t.type)&&(n.personForm.get("dateBirth").dirty||n.personForm.get("dateBirth").touched))}}function V$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function j$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,V$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("sexo").hasError(t.type)&&(n.personForm.get("sexo").dirty||n.personForm.get("sexo").touched))}}function B$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function z$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,B$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("maritalStatus").hasError(t.type)&&(n.personForm.get("maritalStatus").dirty||n.personForm.get("maritalStatus").touched))}}function q$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function H$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,q$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("email").hasError(t.type)&&(n.personForm.get("email").dirty||n.personForm.get("email").touched))}}function G$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function J$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,G$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("password").hasError(t.type)&&(n.personForm.get("password").dirty||n.personForm.get("password").touched))}}function Y$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function $$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,Y$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.personForm.get("confirmPassword").hasError(t.type)&&(n.personForm.get("confirmPassword").dirty||n.personForm.get("confirmPassword").touched))}}function W$(t,e){1&t&&(i.Ub(0,"mat-icon"),i.Lc(1,"business"),i.Tb(),i.Lc(2," Empresa "))}function K$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function Q$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,K$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("companyName").hasError(t.type)&&(n.fg.get("companyName").dirty||n.fg.get("companyName").touched))}}function X$(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function Z$(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,X$,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("nit").hasError(t.type)&&(n.fg.get("nit").dirty||n.fg.get("nit").touched))}}function tW(t,e){if(1&t&&(i.Ub(0,"mat-option",61),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function eW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function nW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,eW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("department").hasError(t.type)&&(n.fg.get("department").dirty||n.fg.get("department").touched))}}function iW(t,e){if(1&t&&(i.Ub(0,"mat-option",61),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function rW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function oW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,rW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("city").hasError(t.type)&&(n.fg.get("city").dirty||n.fg.get("city").touched))}}function sW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function aW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,sW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("typeDocument").hasError(t.type)&&(n.fg.get("typeDocument").dirty||n.fg.get("typeDocument").touched))}}function cW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function lW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,cW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("identificationNumber").hasError(t.type)&&(n.fg.get("identificationNumber").dirty||n.fg.get("identificationNumber").touched))}}function uW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function dW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,uW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("firstName").hasError(t.type)&&(n.fg.get("firstName").dirty||n.fg.get("firstName").touched))}}function hW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function pW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,hW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("lastName").hasError(t.type)&&(n.fg.get("lastName").dirty||n.fg.get("lastName").touched))}}function mW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function fW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,mW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("address").hasError(t.type)&&(n.fg.get("address").dirty||n.fg.get("address").touched))}}function bW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function gW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,bW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("dateBirth").hasError(t.type)&&(n.fg.get("dateBirth").dirty||n.fg.get("dateBirth").touched))}}function _W(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function vW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,_W,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("sexo").hasError(t.type)&&(n.fg.get("sexo").dirty||n.fg.get("sexo").touched))}}function yW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function wW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,yW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("maritalStatus").hasError(t.type)&&(n.fg.get("maritalStatus").dirty||n.fg.get("maritalStatus").touched))}}function CW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function xW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,CW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("email").hasError(t.type)&&(n.fg.get("email").dirty||n.fg.get("email").touched))}}function OW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function SW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,OW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("password").hasError(t.type)&&(n.fg.get("password").dirty||n.fg.get("password").touched))}}function TW(t,e){if(1&t&&(i.Ub(0,"mat-error",60),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function DW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,TW,2,1,"mat-error",59),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("confirmPassword").hasError(t.type)&&(n.fg.get("confirmPassword").dirty||n.fg.get("confirmPassword").touched))}}function kW(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",62),i.cc("click",(function(){return i.yc(t),i.gc().createUser()})),i.Lc(1,"Continuar"),i.Tb()}if(2&t){const t=i.gc();i.mc("disabled",t.personForm.invalid||!t.conditionsAcceptedFirst||!t.conditionsAcceptedSecond)}}function PW(t,e){if(1&t){const t=i.Vb();i.Ub(0,"button",62),i.cc("click",(function(){return i.yc(t),i.gc().createUser()})),i.Lc(1,"Continuar"),i.Tb()}if(2&t){const t=i.gc();i.mc("disabled",t.fg.invalid||!t.conditionsAcceptedFirst||!t.conditionsAcceptedSecond)}}let EW=(()=>{class t{constructor(t,e,n,i,r,s,a,c,l,u,d,h,p,m,f,b,g,_,v){this.formBuilder=t,this.translate=e,this.dateAdapter=n,this.document=i,this.keycloakAdminService=r,this.registrationInvitationService=s,this.route=a,this.router=c,this.cn=l,this.keycloakService=u,this.authenticationService=d,this.dialog=h,this._pageLoaderService=p,this.geo=m,this.enterpriseService=f,this.registrationService=b,this.notaryService=g,this.preRegisterDataService=_,this.invitationSignService=v,this.registration_validation_messages=BB,this.datepipe=new o.f("es"),this.isPerson=!0,this.isInvitation=!1,this.conditionsAcceptedFirst=!1,this.conditionsAcceptedSecond=!1,this.notaryCode="9010011122",this.personForm=this.formBuilder.group({firstName:[""],lastName:[""],typeDocument:[""],identificationNumber:[""],dialCode:[""],phone:["",[Ha.required]],address:[""],department:[""],city:[""],dateBirth:[""],profession:[""],sexo:[""],maritalStatus:[""],email:["",[Ha.email]],notary:[""],password:[""],confirmPassword:[""]}),this.fg=this.formBuilder.group({companyName:[""],nit:[""],firstName:[""],lastName:[""],typeDocument:[""],identificationNumber:[""],dialCode:[""],phone:["",[Ha.required]],address:[""],department:[""],city:[""],dateBirth:[""],profession:[""],sexo:[""],maritalStatus:[""],email:["",[Ha.email]],password:[""],confirmPassword:[""]}),this.depts=[],this.cities=[],this.citiesByDept=[],this.notaries=[]}ngOnInit(){const t=this.document.location;this.cn.log(t),this.translate.use("es"),this.dateAdapter.setLocale("es"),this.authenticationService.isAutenticated()?this.router.navigate(["corporate/validate/two-factor"]):(this.verifyParams(),this.getNotaryByDomain(t.hostname)),this.geo.getCities().subscribe(t=>{this.cities=t}),this.geo.getDepartments().subscribe(t=>{this.depts=t}),this.filteredDepts=this.showFilteredDepts(this.fg),this.filteredDepts2=this.showFilteredDepts(this.personForm),this.filteredCities=this.showFilteredCities(this.fg),this.filteredCities2=this.showFilteredCities(this.personForm),this.validateDept(this.fg),this.validateDept(this.personForm),this.validateCity(this.fg),this.validateCity(this.personForm),this.validatePassword(this.fg),this.validatePassword(this.personForm)}displayDept(t){return t?t.name:void 0}displayCity(t){return t?t.name:void 0}displayNotary(t){return t?t.enterpriseName:void 0}filterDepts(t){const e=t.toLowerCase();return this.depts.filter(t=>0===t.name.toLowerCase().indexOf(e))}filterCities(t){const e=t.toLowerCase();return this.citiesByDept.filter(t=>0===t.name.toLowerCase().indexOf(e))}filterNotaries(t){const e=t.toLowerCase();return this.notaries.filter(t=>0===t.enterpriseName.toLowerCase().indexOf(e))}showFilteredDepts(t){return t.controls.department.valueChanges.subscribe(e=>{e.id&&(this.citiesByDept=this.cities.filter(t=>0===t.department.name.indexOf(e.name)),t.controls.city.setValue(""),t.controls.city.updateValueAndValidity())}),t.controls.department.valueChanges.pipe(Pr(""),Object(m.a)(t=>"string"==typeof t?t:t.name),Object(m.a)(t=>t?this.filterDepts(t):this.depts.slice()))}showFilteredCities(t){return t.controls.city.valueChanges.pipe(Pr(""),Object(m.a)(t=>"string"==typeof t?t:t.name),Object(m.a)(t=>t?this.filterCities(t):this.citiesByDept.slice()))}showFilteredNotaries(t){return t.controls.notary.valueChanges.pipe(Pr(""),Object(m.a)(t=>"string"==typeof t?t:t.name),Object(m.a)(t=>t?this.filterNotaries(t):this.notaries.slice()))}validateDept(t){t.controls.department.valueChanges.subscribe(e=>{t.controls.department.value.id||t.controls.department.setErrors({invalid:!0})})}validateCity(t){t.controls.city.valueChanges.subscribe(e=>{t.controls.city.value.id||t.controls.city.setErrors({invalid:!0})})}validateNotary(t){t.controls.notary.valueChanges.subscribe(e=>{t.controls.notary.value.id||t.controls.notary.setErrors({invalid:!0})})}validatePassword(t){t.controls.confirmPassword.valueChanges.subscribe(e=>{t.controls.password.value!==e&&t.controls.confirmPassword.setErrors({notMatch:!0})}),t.controls.password.valueChanges.subscribe(e=>{t.controls.confirmPassword.setValue("")})}createUser(){let t;this.cn.log(" ========== createUser() ========== "),this._pageLoaderService.show(),t=this.buildUser(this.isPerson?this.personForm:this.fg),this.registrationService.validateUser(t,!1,this.isPerson).then(e=>{e.isValid?this.registerUser(t):(this._pageLoaderService.hide(),this.showGeneralDialog(e.message).subscribe())}).catch(t=>{this.cn.log(t)})}buildUser(t){const e=new Tl;return e.firstName=t.controls.firstName.value,e.lastName=t.controls.lastName.value,e.typeDocument=t.controls.typeDocument.value,e.email=t.controls.email.value,e.identificationNumber=t.controls.identificationNumber.value,e.phone=t.controls.phone.value,e.city=t.controls.city.value.name,e.country=t.controls.department.value.name,e.address=t.controls.address.value,e.dateBirth=this.datepipe.transform(new Date(t.controls.dateBirth.value),"yyyy-MM-dd"),e.sexo=t.controls.sexo.value,e.maritalStatus=t.controls.maritalStatus.value,e.dialCode=t.controls.dialCode.value,e.signerDoc=!1,e.enterpriseId=t.controls.identificationNumber.value,e.enterpriseName=t.controls.identificationNumber.value,e.notaryId=this.notaryCode.toString(),e.registered=!1,this.isPerson?(e.role=Ig.Person,e.enterpriseId=t.controls.identificationNumber.value,e.enterpriseName=t.controls.identificationNumber.value):(e.role=Ig.LegalPerson,e.enterpriseId=t.controls.nit.value,e.enterpriseName=t.controls.companyName.value),e}testToken(){console.log("registerUser"),this.keycloakAdminService.getAuthTokenObservable().subscribe(t=>{console.log("token data: ",t)},t=>{console.error("registerUser error",t)})}registerUser(t){return e=this,void 0,i=function*(){try{const e=yield this.authenticationService.signup(t.email,this.personForm.controls.password.value);this.cn.log("registerUser: ",e),yield this.authenticationService.GetToken();const n=yield this.registrationService.addUserInRegister(t);this.cn.log("addInDb",n),this.authenticationService.sendVerificationEmail(),this._pageLoaderService.hide(),this.cn.log("===== Registration completed! ====="),this.personForm.reset(),this.showGeneralDialog("",{title:"El proceso de registro ha sido exitoso",content:"Para hacer uso de tu usuario notarial, ingresa al correo electr\xf3nico registrado y v\xe1lida tu cuenta haciendo clic en el enlace.",actions:[{text:"Cerrar",value:"accepted",funct:"login"}]}).subscribe(),this.authenticationService.logout()}catch(e){this._pageLoaderService.hide(),"auth/email-already-in-use"===(null==e?void 0:e.code)?this.showGeneralDialog("El correo electr\xf3nico ya se encuentra registrado.").subscribe():(this.showGeneralDialog("Ocurrio un error, vuelve a intentarlo.").subscribe(),yield this.authenticationService.deleteUser()),this.cn.error("registerUser error: ",e)}},new((n=void 0)||(n=Promise))((function(t,r){function o(t){try{a(i.next(t))}catch(e){r(e)}}function s(t){try{a(i.throw(t))}catch(e){r(e)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,s)}a((i=i.apply(e,[])).next())}));var e,n,i}loadPreRegisterData(t){this.personForm.controls.email.disable(),this.personForm.controls.email.setValue(t.email),this.personForm.controls.identificationNumber.setValue(t.identificationNumber),this.personForm.controls.firstName.setValue(t.firstName),this.personForm.controls.lastName.setValue(t.lastName),this.personForm.controls.department.setValue({name:t.country}),this.personForm.controls.city.setValue({name:t.city}),this.personForm.controls.address.setValue(t.address)}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}openDialogTermsAndConditions(){this.dialog.open(eg,{width:"70%",data:{title:"T\xc9RMINOS Y CONDICIONES DE USO DE ENOTARY"}})}showPersonalDataPolicy(){this.dialog.open(RB,{width:"1200px"})}verifyParams(){this.route.queryParams.subscribe(t=>{void 0!==t.idProcess&&void 0!==t.verifyCode&&(this.cn.log("ProcessId: ===> "+t.idProcess),this.cn.log("VerifyCode: ===> "+t.verifyCode),this.getInvitationSignUser(t.idProcess,t.verifyCode))})}getNotaryById(t){this._pageLoaderService.show(),this.enterpriseService.getEnterpriseByIdNotaryPublic(t).subscribe(t=>{this.cn.log("getNotaryById(): ",t),this.notaryCode=t.operationBody[0].enterpriseId,this._pageLoaderService.hide()},t=>{this.cn.error("=====> getNotaryById() ERROR: ",t),this.showGeneralDialog("Notar\xeda no encontrada, vuelve ha intentarlo."),this._pageLoaderService.hide()})}getNotaryByDomain(t){this._pageLoaderService.show(),this.enterpriseService.getNotaryByDomainPublic(t).subscribe(t=>{this.cn.log("getNotaryById(): ",t),this.notaryCode=t.operationBody[0].enterpriseId,this._pageLoaderService.hide()},t=>{this.cn.error("=====> getNotaryById() ERROR: ",t),this.showGeneralDialog("Notar\xeda no encontrada, vuelve ha intentarlo."),this._pageLoaderService.hide()})}getInvitationSignUser(t,e){this._pageLoaderService.show(),this.invitationSignService.GetInvitationSignUser(t,e).subscribe(n=>{this.cn.log("=====> getInvitationSignUser() RESULT: "),this.cn.log(n),this._pageLoaderService.hide(),this.validateInvitationSignUserResponse(n,t,e)},t=>{this.cn.error("=====> getInvitationSignUser() ERROR: "),this.cn.error(t),this._pageLoaderService.hide(),this.showGeneralDialog("Ha ocurrido un error, vuelve ha intentarlo.")})}validateInvitationSignUserResponse(t,e,n){switch(t.operationCode){case 1e3:const i={title:"Informaci\xf3n",content:"Debes estar registrado en eNotary para realizar tr\xe1mites notariales, este proceso solo lo tendr\xe1s que realizar una vez.",actions:[{text:"Reg\xedstrate",value:"accepted",funct:"close"},{text:"Iniciar sesi\xf3n",value:"accepted",funct:"login"}]};this.notaryCode=t.operationBody.invitationSign.idNotary,this.showGeneralDialog("",i).subscribe();break;case 1001:this.showGeneralDialog("",{title:"Informaci\xf3n",content:"Debes estar registrado en eNotary para realizar tr\xe1mites notariales.",actions:[{text:"Reg\xedstrate",value:"accepted",funct:"close"},{text:"Iniciar sesi\xf3n",value:"accepted",funct:"login"}]}).subscribe(i=>{this.notaryCode=t.operationBody.invitationSign.idNotary,this.preRegisterDataService.idProcess=e,this.preRegisterDataService.verifyCode=n,this.preRegisterDataService.user=t.operationBody,void 0!==this.preRegisterDataService.user&&void 0!==this.preRegisterDataService.idProcess&&void 0!==this.preRegisterDataService.verifyCode&&(this.cn.log("=====> Invited user to sign."),this.loadPreRegisterData(this.preRegisterDataService.user))});break;case 1010:this.showGeneralDialog("Informaci\xf3n incompleta.").subscribe(t=>{this.router.navigate(["/"])});break;case 1020:this.showGeneralDialog("Proceso o Usuario no encontrados.").subscribe(t=>{this.router.navigate(["/"])});break;case 1030:this.showGeneralDialog("La invitaci\xf3n ha expirado.").subscribe(t=>{this.router.navigate(["/"])})}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Bi),i.Ob(iM),i.Ob(o.e),i.Ob(fu),i.Ob(RS),i.Ob(Fo),i.Ob(Zs),i.Ob(Gi),i.Ob(cr),i.Ob(qS),i.Ob(Jb),i.Ob(pg),i.Ob(NV),i.Ob(US),i.Ob(v$),i.Ob(Og),i.Ob(b$),i.Ob(Cg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-registration-form"]],features:[i.Cb([{provide:o.f,useValue:void 0},{provide:iM,useClass:Mj},{provide:rM,useValue:Lj}])],decls:225,vars:64,consts:[[1,"cnt-bg-office"],[1,"container","wt-640"],[1,"mb-4"],[1,"title-with-line"],[1,"box-register"],["mat-stretch-tabs","","color","primary",3,"selectedTabChange"],["mat-tab-label",""],[1,"pb-5",3,"formGroup"],[1,"row"],[1,"col-12","col-md-6"],["formControlName","typeDocument","required",""],["value","CC"],["value","CCEXT"],["value","PASSPORT"],[4,"ngFor","ngForOf"],["matInput","","type","number","placeholder","N\xfamero de identificaci\xf3n","formControlName","identificationNumber","pattern","^[0-9]{6,12}$","required",""],["matInput","","placeholder","Nombres","formControlName","firstName","required",""],["matInput","","placeholder","Apellidos","formControlName","lastName","required",""],["placeholder","Departamento","matInput","","formControlName","department","required","",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["autoDepts","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Ciudad","matInput","","formControlName","city","required","",3,"matAutocomplete"],["autoCities","matAutocomplete"],["matInput","","placeholder","Direcci\xf3n","formControlName","address","required",""],[1,"datepicker_aTIC"],["matInput","","placeholder","Fecha de Nacimiento","formControlName","dateBirth","required","",3,"satDatepicker"],["touchUi","true",3,"rangeMode"],["picker",""],["matSuffix","",3,"for"],["formControlName","sexo","required",""],["value","Male"],["value","Female"],["formControlName","maritalStatus","required",""],["value","Single"],["value","Married"],[3,"idform","form","validation_messages"],["matInput","","type","email","placeholder","Correo","formControlName","email","required",""],["matInput","","placeholder","Contrase\xf1a","type","password","formControlName","password","pattern","^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$","required",""],["matInput","","placeholder","Confirmaci\xf3n de contrase\xf1a","type","password","formControlName","confirmPassword","required",""],[3,"selectedTabChange"],["data-content","Datos de la empresa",1,"hr-text"],["matInput","","placeholder","Nombre de empresa","autocomplete","off","formControlName","companyName","required",""],["matInput","","type","number","placeholder","NIT","formControlName","nit","required",""],["autoDepts1","matAutocomplete"],["autoCities1","matAutocomplete"],["data-content","Datos de usuario",1,"hr-text"],["matInput","","type","number","placeholder","N\xfamero de identificaci\xf3n","autocomplete","off","formControlName","identificationNumber","required",""],["matInput","","placeholder","Nombres","autocomplete","off","title","Ingresa tu primer y segundo nombre","formControlName","firstName","required",""],["matInput","","placeholder","Apellidos","autocomplete","off","title","Ingresa tu primer y segundo apellido","formControlName","lastName","required",""],["pickerEnterprise",""],[1,"mt-1"],[1,"small-txt"],["color","primary",3,"change"],[1,"link",3,"click"],[1,"text-center"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[1,"small-txt","mt-4"],["routerLink","/login"],["class","error-message",4,"ngIf"],[1,"error-message"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled","click"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h5",3),i.Lc(4,"Crear cuenta"),i.Tb(),i.Ub(5,"p"),i.Lc(6,"Crear una cuenta te permitir\xe1 estar asociado a una notar\xeda de tu preferencia para realizar tramites."),i.Tb(),i.Tb(),i.Ub(7,"div",4),i.Ub(8,"mat-tab-group",5),i.cc("selectedTabChange",(function(){return e.isPerson=!e.isPerson})),i.Ub(9,"mat-tab"),i.Jc(10,y$,3,0,"ng-template",6),i.Pb(11,"br"),i.Ub(12,"form",7),i.Ub(13,"div",8),i.Ub(14,"div",9),i.Ub(15,"mat-form-field"),i.Ub(16,"mat-label"),i.Lc(17,"Tipo de documento"),i.Tb(),i.Ub(18,"mat-select",10),i.Ub(19,"mat-option",11),i.Lc(20,"C\xe9dula de Ciudadania"),i.Tb(),i.Ub(21,"mat-option",12),i.Lc(22,"C\xe9dula de Extranjer\xeda"),i.Tb(),i.Ub(23,"mat-option",13),i.Lc(24,"Pasaporte"),i.Tb(),i.Tb(),i.Jc(25,C$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(26,"div",9),i.Ub(27,"mat-form-field"),i.Pb(28,"input",15),i.Jc(29,O$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(30,"div",9),i.Ub(31,"mat-form-field"),i.Pb(32,"input",16),i.Jc(33,T$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(34,"div",9),i.Ub(35,"mat-form-field"),i.Pb(36,"input",17),i.Jc(37,k$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(38,"div",9),i.Ub(39,"mat-form-field"),i.Pb(40,"input",18),i.Ub(41,"mat-autocomplete",19,20),i.Jc(43,P$,2,2,"mat-option",21),i.hc(44,"async"),i.Tb(),i.Jc(45,A$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(46,"div",9),i.Ub(47,"mat-form-field"),i.Pb(48,"input",22),i.Ub(49,"mat-autocomplete",19,23),i.Jc(51,I$,2,2,"mat-option",21),i.hc(52,"async"),i.Tb(),i.Jc(53,U$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(54,"div",9),i.Ub(55,"mat-form-field"),i.Pb(56,"input",24),i.Jc(57,R$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(58,"div",9),i.Ub(59,"mat-form-field",25),i.Pb(60,"input",26),i.Pb(61,"sat-datepicker",27,28),i.Pb(63,"sat-datepicker-toggle",29),i.Jc(64,F$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(65,"div",9),i.Ub(66,"mat-form-field"),i.Ub(67,"mat-label"),i.Lc(68,"Sexo"),i.Tb(),i.Ub(69,"mat-select",30),i.Ub(70,"mat-option",31),i.Lc(71,"Masculino"),i.Tb(),i.Ub(72,"mat-option",32),i.Lc(73,"Femenino"),i.Tb(),i.Tb(),i.Jc(74,j$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(75,"div",9),i.Ub(76,"mat-form-field"),i.Ub(77,"mat-label"),i.Lc(78,"Estado civil"),i.Tb(),i.Ub(79,"mat-select",33),i.Ub(80,"mat-option",34),i.Lc(81,"Soltero"),i.Tb(),i.Ub(82,"mat-option",35),i.Lc(83,"Casado"),i.Tb(),i.Tb(),i.Jc(84,z$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(85,"div",9),i.Pb(86,"app-phone-number-input",36),i.Tb(),i.Ub(87,"div",9),i.Ub(88,"mat-form-field"),i.Pb(89,"input",37),i.Jc(90,H$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(91,"div",9),i.Ub(92,"mat-form-field"),i.Pb(93,"input",38),i.Jc(94,J$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(95,"div",9),i.Ub(96,"mat-form-field"),i.Pb(97,"input",39),i.Jc(98,$$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(99,"mat-tab",40),i.cc("selectedTabChange",(function(){return e.isPerson=!e.isPerson})),i.Jc(100,W$,3,0,"ng-template",6),i.Ub(101,"form",7),i.Pb(102,"hr",41),i.Ub(103,"div",8),i.Ub(104,"div",9),i.Ub(105,"mat-form-field"),i.Pb(106,"input",42),i.Jc(107,Q$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(108,"div",9),i.Ub(109,"mat-form-field"),i.Pb(110,"input",43),i.Jc(111,Z$,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(112,"div",9),i.Ub(113,"mat-form-field"),i.Pb(114,"input",18),i.Ub(115,"mat-autocomplete",19,44),i.Jc(117,tW,2,2,"mat-option",21),i.hc(118,"async"),i.Tb(),i.Jc(119,nW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(120,"div",9),i.Ub(121,"mat-form-field"),i.Pb(122,"input",22),i.Ub(123,"mat-autocomplete",19,45),i.Jc(125,iW,2,2,"mat-option",21),i.hc(126,"async"),i.Tb(),i.Jc(127,oW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Tb(),i.Pb(128,"hr",46),i.Ub(129,"div",8),i.Ub(130,"div",9),i.Ub(131,"mat-form-field"),i.Ub(132,"mat-label"),i.Lc(133,"Tipo de documento"),i.Tb(),i.Ub(134,"mat-select",10),i.Ub(135,"mat-option",11),i.Lc(136,"C\xe9dula de Ciudadania"),i.Tb(),i.Ub(137,"mat-option",12),i.Lc(138,"C\xe9dula de Extranjer\xeda"),i.Tb(),i.Ub(139,"mat-option",13),i.Lc(140,"Pasaporte"),i.Tb(),i.Tb(),i.Jc(141,aW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(142,"div",9),i.Ub(143,"mat-form-field"),i.Pb(144,"input",47),i.Jc(145,lW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(146,"div",9),i.Ub(147,"mat-form-field"),i.Pb(148,"input",48),i.Jc(149,dW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(150,"div",9),i.Ub(151,"mat-form-field"),i.Pb(152,"input",49),i.Jc(153,pW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(154,"div",9),i.Ub(155,"mat-form-field"),i.Pb(156,"input",24),i.Jc(157,fW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(158,"div",9),i.Ub(159,"mat-form-field",25),i.Pb(160,"input",26),i.Pb(161,"sat-datepicker",27,50),i.Pb(163,"sat-datepicker-toggle",29),i.Jc(164,gW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(165,"div",9),i.Ub(166,"mat-form-field"),i.Ub(167,"mat-label"),i.Lc(168,"Sexo"),i.Tb(),i.Ub(169,"mat-select",30),i.Ub(170,"mat-option",31),i.Lc(171,"Masculino"),i.Tb(),i.Ub(172,"mat-option",32),i.Lc(173,"Femenino"),i.Tb(),i.Tb(),i.Jc(174,vW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(175,"div",9),i.Ub(176,"mat-form-field"),i.Ub(177,"mat-label"),i.Lc(178,"Estado civil"),i.Tb(),i.Ub(179,"mat-select",33),i.Ub(180,"mat-option",34),i.Lc(181,"Soltero"),i.Tb(),i.Ub(182,"mat-option",35),i.Lc(183,"Casado"),i.Tb(),i.Tb(),i.Jc(184,wW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(185,"div",9),i.Pb(186,"app-phone-number-input",36),i.Tb(),i.Ub(187,"div",9),i.Ub(188,"mat-form-field"),i.Pb(189,"input",37),i.Jc(190,xW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(191,"div",9),i.Ub(192,"mat-form-field"),i.Pb(193,"input",38),i.Jc(194,SW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Ub(195,"div",9),i.Ub(196,"mat-form-field"),i.Pb(197,"input",39),i.Jc(198,DW,2,1,"mat-error",14),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(199,"div"),i.Ub(200,"div",51),i.Ub(201,"p",52),i.Ub(202,"mat-checkbox",53),i.cc("change",(function(t){return e.conditionsAcceptedFirst=t.checked})),i.Tb(),i.Ub(203,"span"),i.Lc(204," He le\xeddo y aceptado los "),i.Ub(205,"a",54),i.cc("click",(function(){return e.openDialogTermsAndConditions()})),i.Lc(206,"T\xe9rminos y condiciones - Politicas de Privacidad"),i.Tb(),i.Lc(207," del sitio web "),i.Tb(),i.Tb(),i.Tb(),i.Ub(208,"div",51),i.Ub(209,"p",52),i.Ub(210,"mat-checkbox",53),i.cc("change",(function(t){return e.conditionsAcceptedSecond=t.checked})),i.Tb(),i.Ub(211,"span"),i.Lc(212," He le\xeddo y acepto la "),i.Ub(213,"a",54),i.cc("click",(function(){return e.showPersonalDataPolicy()})),i.Lc(214,"pol\xedtica de tratamiento de datos personales"),i.Tb(),i.Lc(215,". "),i.Tb(),i.Tb(),i.Tb(),i.Ub(216,"div",55),i.Jc(217,kW,2,1,"button",56),i.Jc(218,PW,2,1,"button",56),i.Ub(219,"p",57),i.Lc(220,"\xbfYa tienes una cuenta?, "),i.Ub(221,"a",58),i.Lc(222,"Inicia Sesi\xf3n"),i.Tb(),i.Lc(223,"."),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(224,"aswc-page-loader-default")),2&t){const t=i.uc(42),n=i.uc(50),r=i.uc(62),o=i.uc(116),s=i.uc(124),a=i.uc(162);i.Db(12),i.mc("formGroup",e.personForm),i.Db(13),i.mc("ngForOf",e.registration_validation_messages.typeDocument),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.identificationNumber),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.firstName),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.lastName),i.Db(3),i.mc("matAutocomplete",t),i.Db(1),i.mc("displayWith",e.displayDept),i.Db(2),i.mc("ngForOf",i.ic(44,56,e.filteredDepts2)),i.Db(2),i.mc("ngForOf",e.registration_validation_messages.department),i.Db(3),i.mc("matAutocomplete",n),i.Db(1),i.mc("displayWith",e.displayCity),i.Db(2),i.mc("ngForOf",i.ic(52,58,e.filteredCities2)),i.Db(2),i.mc("ngForOf",e.registration_validation_messages.city),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.address),i.Db(3),i.mc("satDatepicker",r),i.Db(1),i.mc("rangeMode",!1),i.Db(2),i.mc("for",r),i.Db(1),i.mc("ngForOf",e.registration_validation_messages.dateBirth),i.Db(10),i.mc("ngForOf",e.registration_validation_messages.sexo),i.Db(10),i.mc("ngForOf",e.registration_validation_messages.maritalStatus),i.Db(2),i.mc("idform",0)("form",e.personForm)("validation_messages",e.registration_validation_messages),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.email),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.password),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.confirmPassword),i.Db(3),i.mc("formGroup",e.fg),i.Db(6),i.mc("ngForOf",e.registration_validation_messages.companyName),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.nit),i.Db(3),i.mc("matAutocomplete",o),i.Db(1),i.mc("displayWith",e.displayDept),i.Db(2),i.mc("ngForOf",i.ic(118,60,e.filteredDepts)),i.Db(2),i.mc("ngForOf",e.registration_validation_messages.department),i.Db(3),i.mc("matAutocomplete",s),i.Db(1),i.mc("displayWith",e.displayCity),i.Db(2),i.mc("ngForOf",i.ic(126,62,e.filteredCities)),i.Db(2),i.mc("ngForOf",e.registration_validation_messages.city),i.Db(14),i.mc("ngForOf",e.registration_validation_messages.typeDocument),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.identificationNumber),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.firstName),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.lastName),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.address),i.Db(3),i.mc("satDatepicker",a),i.Db(1),i.mc("rangeMode",!1),i.Db(2),i.mc("for",a),i.Db(1),i.mc("ngForOf",e.registration_validation_messages.dateBirth),i.Db(10),i.mc("ngForOf",e.registration_validation_messages.sexo),i.Db(10),i.mc("ngForOf",e.registration_validation_messages.maritalStatus),i.Db(2),i.mc("idform",0)("form",e.fg)("validation_messages",e.registration_validation_messages),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.email),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.password),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.confirmPassword),i.Db(19),i.mc("ngIf",e.isPerson),i.Db(1),i.mc("ngIf",!e.isPerson)}},styles:[".soc-icon[_ngcontent-%COMP%]   img.soc-icon-facebook[_ngcontent-%COMP%], .soc-icon[_ngcontent-%COMP%]   img.soc-icon-google[_ngcontent-%COMP%]{width:20px;position:absolute;left:1rem;padding:9px 0}.pointer[_ngcontent-%COMP%]{cursor:pointer}.borde[_ngcontent-%COMP%]{border:1px solid red}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.box-register[_ngcontent-%COMP%]{background-color:#fff;padding:24px;border-radius:29px;box-shadow:1px 3px 12px 0 rgba(50,50,50,.2)}.link[_ngcontent-%COMP%]{color:#4fbfd3!important;cursor:pointer}.link[_ngcontent-%COMP%]:hover{text-decoration:underline!important}"]}),t})(),AW=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-registration-home"]],decls:45,vars:0,consts:[[1,"cnt-bg-office"],[1,"container"],[1,"row","align-items-center"],[1,"col-12","col-sm-6"],[1,"title-home","mb-5"],[1,"d-none","d-sm-block"],["src","./assets/images/process-index.png","alt","Proceso",1,"img-fluid","mb-5"],[1,"col-12","col-sm-5","offset-sm-1"],[1,"mb-5"],[1,"title-with-line"],[1,"box-index-register"],["appearance","outline"],["value","one"],["value","two"],["matInput","","placeholder","No. documento"],[1,"customBtn","full-btn"],[1,"small-txt","text-center","mt-4"],["routerLink","#"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Ub(4,"h4",4),i.Lc(5,"Hacer "),i.Ub(6,"b"),i.Lc(7,"tr\xe1mites"),i.Tb(),i.Lc(8," ahora es mucho m\xe1s "),i.Ub(9,"b"),i.Lc(10,"f\xe1cil"),i.Tb(),i.Lc(11,"."),i.Tb(),i.Ub(12,"div",5),i.Pb(13,"img",6),i.Ub(14,"p"),i.Lc(15," Selecciona y realiza el tr\xe1mite que necesites o agenda tu cita y gestiona tus procesos notariales de manera digital. "),i.Tb(),i.Tb(),i.Tb(),i.Ub(16,"div",7),i.Ub(17,"div",8),i.Ub(18,"h5",9),i.Lc(19,"Crear cuenta"),i.Tb(),i.Ub(20,"p"),i.Lc(21,"Crear una cuenta te permitir\xe1 estar asociado a una notar\xeda de tu preferencia para realizar tramites."),i.Tb(),i.Tb(),i.Ub(22,"div",10),i.Ub(23,"mat-form-field",11),i.Ub(24,"mat-label"),i.Lc(25,"Tipo de documento"),i.Tb(),i.Ub(26,"mat-select"),i.Ub(27,"mat-option",12),i.Lc(28,"C\xe9dula de Ciudadan\xeda"),i.Tb(),i.Ub(29,"mat-option",13),i.Lc(30,"C\xe9dula de Extranjer\xeda"),i.Tb(),i.Ub(31,"mat-option",13),i.Lc(32,"Pasaporte"),i.Tb(),i.Tb(),i.Tb(),i.Ub(33,"mat-form-field",11),i.Ub(34,"mat-label"),i.Lc(35,"No. de documento"),i.Tb(),i.Pb(36,"input",14),i.Tb(),i.Ub(37,"div"),i.Ub(38,"button",15),i.Lc(39,"Comenzar"),i.Tb(),i.Tb(),i.Ub(40,"div",16),i.Lc(41," \xbfYa estas registrado?, "),i.Ub(42,"a",17),i.Lc(43,"ingresa"),i.Tb(),i.Lc(44,". "),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb())},directives:[Uv,xv,aw,Oh,uy,ea],styles:[".title-home[_ngcontent-%COMP%]{font-size:46px;font-weight:400}.title-home[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:#4fbfd3}.box-index-register[_ngcontent-%COMP%]{background-color:#fff;padding:24px;border-radius:29px;box-shadow:1px 3px 12px 0 rgba(50,50,50,.2)}"]}),t})();function IW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function MW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,IW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("companyName").hasError(t.type)&&(n.fg.get("companyName").dirty||n.fg.get("companyName").touched))}}function UW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function LW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,UW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("nit").hasError(t.type)&&(n.fg.get("nit").dirty||n.fg.get("nit").touched))}}function RW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function NW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,RW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("firstName").hasError(t.type)&&(n.fg.get("firstName").dirty||n.fg.get("firstName").touched))}}function FW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function VW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,FW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("lastName").hasError(t.type)&&(n.fg.get("lastName").dirty||n.fg.get("lastName").touched))}}function jW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function BW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,jW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("identificationNumber").hasError(t.type)&&(n.fg.get("identificationNumber").dirty||n.fg.get("identificationNumber").touched))}}function zW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function qW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,zW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("position").hasError(t.type)&&(n.fg.get("position").dirty||n.fg.get("position").touched))}}function HW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function GW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,HW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("email").hasError(t.type)&&(n.fg.get("email").dirty||n.fg.get("email").touched))}}function JW(t,e){if(1&t&&(i.Ub(0,"mat-option",38),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function YW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function $W(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,YW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("department").hasError(t.type)&&(n.fg.get("department").dirty||n.fg.get("department").touched))}}function WW(t,e){if(1&t&&(i.Ub(0,"mat-option",38),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Nc(" ",t.name," ")}}function KW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function QW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,KW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("city").hasError(t.type)&&(n.fg.get("city").dirty||n.fg.get("city").touched))}}function XW(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function ZW(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,XW,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("password").hasError(t.type)&&(n.fg.get("password").dirty||n.fg.get("password").touched))}}function tK(t,e){if(1&t&&(i.Ub(0,"mat-error",37),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message," ")}}function eK(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,tK,2,1,"mat-error",36),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("confirmPassword").hasError(t.type)&&(n.fg.get("confirmPassword").dirty||n.fg.get("confirmPassword").touched))}}let nK=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d){this.formBuilder=t,this.dialog=e,this.keycloakAdminService=n,this.registrationInvitationService=i,this.route=r,this.router=o,this.cn=s,this.keycloakService=a,this._pageLoaderService=c,this.geo=l,this.registrationService=u,this.authenticationService=d,this.registration_validation_messages=BB,this.fg=this.formBuilder.group({firstName:[""],lastName:[""],identificationNumber:[""],dialCode:[""],phone:["",[Ha.required]],profession:[""],companyName:[""],nit:[""],position:[""],commercialSection:[""],department:[""],city:[""],email:["",[Ha.email]],password:[""],confirmPassword:[""]}),this.depts=[],this.cities=[],this.citiesByDept=[],this.conditionsAccepted=!1,this.isInvitation=!1,this.regCode=""}ngOnInit(){this.authenticationService.isAutenticated()&&this.router.navigate(["corporate/validate/two-factor"]),this.geo.getCities().subscribe(t=>{this.cities=t}),this.geo.getDepartments().subscribe(t=>{this.depts=t}),this.filteredDepts=this.showFilteredDepts(this.fg),this.filteredCities=this.showFilteredCities(this.fg),this.validateDept(this.fg),this.validateCity(this.fg),this.validatePassword(this.fg),this.route.queryParamMap.subscribe(t=>{this.regCode=t.get("regCode")}),this.loadFieldsNotary()}displayDept(t){return t?t.name:void 0}displayCity(t){return t?t.name:void 0}filterDepts(t){const e=t.toLowerCase();return this.depts.filter(t=>0===t.name.toLowerCase().indexOf(e))}filterCities(t){const e=t.toLowerCase();return this.citiesByDept.filter(t=>0===t.name.toLowerCase().indexOf(e))}showFilteredDepts(t){return t.controls.department.valueChanges.subscribe(e=>{e.id&&(this.citiesByDept=this.cities.filter(t=>0===t.department.name.indexOf(e.name)),t.controls.city.setValue(""),t.controls.city.updateValueAndValidity())}),t.controls.department.valueChanges.pipe(Pr(""),Object(m.a)(t=>"string"==typeof t?t:t.name),Object(m.a)(t=>t?this.filterDepts(t):this.depts.slice()))}showFilteredCities(t){return t.controls.city.valueChanges.pipe(Pr(""),Object(m.a)(t=>"string"==typeof t?t:t.name),Object(m.a)(t=>t?this.filterCities(t):this.citiesByDept.slice()))}validateDept(t){t.controls.department.valueChanges.subscribe(e=>{t.controls.department.value.id||t.controls.department.setErrors({invalid:!0})})}validateCity(t){t.controls.city.valueChanges.subscribe(e=>{t.controls.city.value.id||t.controls.city.setErrors({invalid:!0})})}validatePassword(t){t.controls.confirmPassword.valueChanges.subscribe(e=>{t.controls.password.value!==e&&t.controls.confirmPassword.setErrors({notMatch:!0})}),t.controls.password.valueChanges.subscribe(e=>{t.controls.confirmPassword.setValue("")})}loadFieldsNotary(){null!==this.regCode?this.registrationInvitationService.getRegistrationInvitations("regCode",this.regCode,!0).subscribe(t=>{this.cn.log("loadFieldsNotary(): ",t),this.invitationInfo=t.operationBody[0],t.operationBody.length>0&&(this.isInvitation=!0,this.fg.controls.companyName.disable(),this.fg.controls.nit.disable(),this.fg.controls.commercialSection.disable(),this.fg.controls.email.disable(),this.fg.controls.companyName.setValue(t.operationBody[0].enterpriseName),this.fg.controls.nit.setValue(t.operationBody[0].enterpriseId),this.fg.controls.email.setValue(t.operationBody[0].email))},t=>{this.showGeneralDialog("Invitaci\xf3n no v\xe1lida").subscribe()}):(this.fg.controls.companyName.disable(),this.fg.controls.nit.disable())}openDialogTermsAndConditions(){this.dialog.open(eg,{width:"70%",data:{title:"T\xc9RMINOS Y CONDICIONES DE USO DE ENOTARY"}})}showPersonalDataPolicy(){this.dialog.open(RB,{width:"1200px"})}showAuthMethodsInfo(){}createUser(){let t;this.cn.log(" ========== createUser() ========== "),this._pageLoaderService.show(),t=this.buildUser(this.fg),this.registrationService.validateUserNotary(t,null!==this.regCode,!1).then(e=>{e.isValid?(t.role=this.invitationInfo.role,this.registerUser(t)):(this._pageLoaderService.hide(),this.showGeneralDialog(e.message).subscribe())}).catch(t=>{this.cn.log(t)})}buildUser(t){const e=new Tl;return e.firstName=t.controls.firstName.value,e.lastName=t.controls.lastName.value,e.email=t.controls.email.value,e.identificationNumber=t.controls.identificationNumber.value,e.phone=t.controls.phone.value,e.city=t.controls.city.value.name,e.country=t.controls.department.value.name,e.dialCode=t.controls.dialCode.value,e.signerDoc=!0,e.enterpriseId=t.controls.nit.value,e.enterpriseName=t.controls.companyName.value,e.registered=!1,e}registerUser(t){return e=this,void 0,i=function*(){try{const e=yield this.authenticationService.signup(t.email,this.fg.controls.password.value);this.cn.log("registerUser: ",e),yield this.authenticationService.GetToken();const n=yield this.registrationService.addUserInRegister(t);this.cn.log("addInDb",n),this.authenticationService.sendVerificationEmail(),this._pageLoaderService.hide(),this.cn.log("===== Registration completed! ====="),this.fg.reset(),this.showGeneralDialog("",{title:"\xa1Registro exitoso!",content:"Verifica el correo electr\xf3nico para activar tu cuenta y luego inicia sesi\xf3n.",actions:[{text:"Cerrar",value:"accepted",funct:"login"}]}).subscribe(),this.authenticationService.logout()}catch(e){this._pageLoaderService.hide(),"auth/email-already-in-use"===(null==e?void 0:e.code)?this.showGeneralDialog("El correo electr\xf3nico ya se encuentra registrado.").subscribe():(this.showGeneralDialog("Ocurrio un error, vuelve a intentarlo.").subscribe(),yield this.authenticationService.deleteUser()),this.cn.error("registerUser error: ",e)}},new((n=void 0)||(n=Promise))((function(t,r){function o(t){try{a(i.next(t))}catch(e){r(e)}}function s(t){try{a(i.throw(t))}catch(e){r(e)}}function a(e){var i;e.done?t(e.value):(i=e.value,i instanceof n?i:new n((function(t){t(i)}))).then(o,s)}a((i=i.apply(e,[])).next())}));var e,n,i}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Jb),i.Ob(fu),i.Ob(RS),i.Ob(Fo),i.Ob(Zs),i.Ob(Gi),i.Ob(cr),i.Ob(pg),i.Ob(NV),i.Ob(v$),i.Ob(qS))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-registration-notary-form"]],decls:101,vars:26,consts:[[1,"cnt-bg-office"],[1,"container","wt-640"],[1,"mb-4"],[1,"title-with-line"],[1,"box-register"],[1,"pt-4","pb-5",3,"formGroup"],["data-content","Datos de la notar\xeda",1,"hr-text"],[1,"row"],[1,"col-12","col-md-6"],["matInput","","placeholder","Notar\xeda","formControlName","companyName","required",""],[4,"ngFor","ngForOf"],["matInput","","placeholder","NIT","formControlName","nit","pattern","^([0-9]){6,15}$","required",""],["data-content","Datos de usuario",1,"hr-text"],[1,"descText_Register"],["matInput","","placeholder","Nombres","formControlName","firstName","title","Ingresa tu primer y segundo nombre","required",""],["matInput","","placeholder","Apellidos","formControlName","lastName","title","Ingresa tu primer y segundo apellido","required",""],["matInput","","type","number","placeholder","N\xfamero de identificaci\xf3n","formControlName","identificationNumber","pattern","^[0-9]{6,12}$","required",""],[3,"idform","form","validation_messages"],["matInput","","placeholder","Cargo","formControlName","position","required",""],["matInput","","type","email","placeholder","Correo","formControlName","email","required",""],["placeholder","Departamento","matInput","","formControlName","department","required","",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["autoDepts1","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Ciudad","matInput","","formControlName","city","required","",3,"matAutocomplete"],["autoCities1","matAutocomplete"],["matInput","","placeholder","Contrase\xf1a","type","password","formControlName","password","pattern","^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$","required",""],["matInput","","placeholder","Confirmaci\xf3n de contrase\xf1a","type","password","formControlName","confirmPassword","required",""],[1,"accept-PersonalInfo"],[3,"change"],[1,"link",3,"click"],[1,"mt-1"],[1,"small-txt","text-center"],[1,"font-weight-bold","pointer",3,"click"],[1,"text-center"],["mat-raised-button","","color","primary",3,"disabled","click"],["class","error-message",4,"ngIf"],[1,"error-message"],[3,"value"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h5",3),i.Lc(4,"Crear cuenta"),i.Tb(),i.Tb(),i.Ub(5,"div",4),i.Ub(6,"form",5),i.Pb(7,"hr",6),i.Ub(8,"div",7),i.Ub(9,"div",8),i.Ub(10,"mat-form-field"),i.Pb(11,"input",9),i.Jc(12,MW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(13,"div",8),i.Ub(14,"mat-form-field"),i.Pb(15,"input",11),i.Jc(16,LW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Tb(),i.Pb(17,"hr",12),i.Ub(18,"div",13),i.Ub(19,"p"),i.Lc(20,"La informaci\xf3n correspondiente a "),i.Ub(21,"strong"),i.Lc(22,"Nombres"),i.Tb(),i.Lc(23,", "),i.Ub(24,"strong"),i.Lc(25,"Apellidos"),i.Tb(),i.Lc(26," y "),i.Ub(27,"strong"),i.Lc(28,"No. de documento"),i.Tb(),i.Lc(29," debe diligenciarse completa. Es de suma importancia que esta sea la misma que aparece en el "),i.Ub(30,"strong"),i.Lc(31,"documento de identidad"),i.Tb(),i.Lc(32,"."),i.Tb(),i.Tb(),i.Ub(33,"div",7),i.Ub(34,"div",8),i.Ub(35,"mat-form-field"),i.Pb(36,"input",14),i.Jc(37,NW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(38,"div",8),i.Ub(39,"mat-form-field"),i.Pb(40,"input",15),i.Jc(41,VW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(42,"div",8),i.Ub(43,"mat-form-field"),i.Pb(44,"input",16),i.Jc(45,BW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(46,"div",8),i.Pb(47,"app-phone-number-input",17),i.Tb(),i.Ub(48,"div",8),i.Ub(49,"mat-form-field"),i.Pb(50,"input",18),i.Jc(51,qW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(52,"div",8),i.Ub(53,"mat-form-field"),i.Pb(54,"input",19),i.Jc(55,GW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(56,"div",8),i.Ub(57,"mat-form-field"),i.Pb(58,"input",20),i.Ub(59,"mat-autocomplete",21,22),i.Jc(61,JW,2,2,"mat-option",23),i.hc(62,"async"),i.Tb(),i.Jc(63,$W,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(64,"div",8),i.Ub(65,"mat-form-field"),i.Pb(66,"input",24),i.Ub(67,"mat-autocomplete",21,25),i.Jc(69,WW,2,2,"mat-option",23),i.hc(70,"async"),i.Tb(),i.Jc(71,QW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(72,"div",8),i.Ub(73,"mat-form-field"),i.Pb(74,"input",26),i.Jc(75,ZW,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Ub(76,"div",8),i.Ub(77,"mat-form-field"),i.Pb(78,"input",27),i.Jc(79,eK,2,1,"mat-error",10),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(80,"div"),i.Ub(81,"div",28),i.Ub(82,"mat-checkbox",29),i.cc("change",(function(t){return e.conditionsAccepted=t.checked})),i.Tb(),i.Ub(83,"span"),i.Lc(84," He le\xeddo y acepto la "),i.Ub(85,"a",30),i.cc("click",(function(){return e.showPersonalDataPolicy()})),i.Lc(86,"pol\xedtica de tratamiento de datos personales"),i.Tb(),i.Lc(87," y el "),i.Ub(88,"a",30),i.cc("click",(function(){return e.showAuthMethodsInfo()})),i.Lc(89,"acuerdo sobre el uso de la firma electr\xf3nica"),i.Tb(),i.Lc(90,". "),i.Tb(),i.Tb(),i.Ub(91,"div",31),i.Ub(92,"p",32),i.Lc(93," Al hacer clic en el bot\xf3n \u201cCrear Cuenta\u201d estas aceptando nuestros "),i.Ub(94,"a",33),i.cc("click",(function(){return e.openDialogTermsAndConditions()})),i.Lc(95,"T\xe9rminos y Condiciones"),i.Tb(),i.Lc(96,". "),i.Tb(),i.Tb(),i.Ub(97,"div",34),i.Ub(98,"button",35),i.cc("click",(function(){return e.createUser()})),i.Lc(99,"Crear Cuenta"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(100,"aswc-page-loader-default")),2&t){const t=i.uc(60),n=i.uc(68);i.Db(6),i.mc("formGroup",e.fg),i.Db(6),i.mc("ngForOf",e.registration_validation_messages.companyName),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.nit),i.Db(21),i.mc("ngForOf",e.registration_validation_messages.firstName),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.lastName),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.identificationNumber),i.Db(2),i.mc("idform",0)("form",e.fg)("validation_messages",e.registration_validation_messages),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.position),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.email),i.Db(3),i.mc("matAutocomplete",t),i.Db(1),i.mc("displayWith",e.displayDept),i.Db(2),i.mc("ngForOf",i.ic(62,22,e.filteredDepts)),i.Db(2),i.mc("ngForOf",e.registration_validation_messages.department),i.Db(3),i.mc("matAutocomplete",n),i.Db(1),i.mc("displayWith",e.displayCity),i.Db(2),i.mc("ngForOf",i.ic(70,24,e.filteredCities)),i.Db(2),i.mc("ngForOf",e.registration_validation_messages.city),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.password),i.Db(4),i.mc("ngForOf",e.registration_validation_messages.confirmPassword),i.Db(19),i.mc("disabled",e.fg.invalid||!e.conditionsAccepted||""===e.regCode)}},styles:[".soc-icon[_ngcontent-%COMP%]   img.soc-icon-facebook[_ngcontent-%COMP%], .soc-icon[_ngcontent-%COMP%]   img.soc-icon-google[_ngcontent-%COMP%]{width:20px;position:absolute;left:1rem;padding:9px 0}.pointer[_ngcontent-%COMP%]{cursor:pointer}.borde[_ngcontent-%COMP%]{border:1px solid red}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.box-register[_ngcontent-%COMP%]{background-color:#fff;padding:24px;border-radius:29px;box-shadow:1px 3px 12px 0 rgba(50,50,50,.2)}"]}),t})();const iK=ma.forChild([{path:"common-user/pb",component:XY,children:[{path:"index",component:ZY,data:{titulo:"Iniciar Sesi\xf3n"}},{path:"document-register",component:AW,data:{titulo:"eNotary"}},{path:"registration-form",component:EW,data:{titulo:"Formulario de registro"}},{path:"registration-notary-form",component:nK,data:{titulo:"Formulario de registro"}}]},{path:"",redirectTo:"/login",pathMatch:"full"},{path:"login",component:XY,children:[{path:"",component:f$,data:{titulo:"Iniciar Sesi\xf3n"}},{path:"forgot-password",component:l$,data:{titulo:"Olvidate tu contrase\xf1a"}}]},{path:"action",component:s$,data:{titulo:"Accciones"}},{path:"register",component:XY,children:[{path:"",component:EW,data:{titulo:"Formulario de registro"}}]},{path:"terms-and-conditions",component:XY,children:[{path:"",component:tg,data:{titulo:"Terminos y condiciones"}}]}]);let rK=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:o.f,useValue:void 0}],imports:[[o.c,Tt,iK,VY,bl,gl,ni,PT,aS,UT,Hm,JT,I_,$_,hD,Xw,Sk,Lv,Zb,K_,Qk,_P,Qv,dy,By,Ib,Wd,AP,VP,KP,hE,lh,cw,ES,VE,PE,WE,hA,Ox,dI,Lh,Hx,RI,NY,fM,VM,QH]]}),t})();i.Cc(EW,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,bv,Uv,Cv,xv,Ov,Tv,kv,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,XY,ZY,EW,AW,nK,f$,s$,l$],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(nK,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,bv,Uv,Cv,xv,Ov,Tv,kv,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,XY,ZY,EW,AW,nK,f$,s$,l$],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(f$,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,bv,Uv,Cv,xv,Ov,Tv,kv,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,XY,ZY,EW,AW,nK,f$,s$,l$],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(l$,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,bv,Uv,Cv,xv,Ov,Tv,kv,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,OM,vM,IM,AM,RM,FM,NM,yM,CM,wM,xM,Yz,XY,ZY,EW,AW,nK,f$,s$,l$],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]);class oK extends yf{constructor(t,e,n){super(),this.paginator=t,this.sort=e,this.dataArray=n,this.data=n}connect(){const t=[Object(s.a)(this.data),this.paginator.page,this.sort.sortChange];return this.paginator.length=this.data.length,Object(ii.a)(...t).pipe(Object(m.a)(()=>this.getPagedData(this.getSortedData([...this.data]))))}disconnect(){}getPagedData(t){return t.splice(this.paginator.pageIndex*this.paginator.pageSize,this.paginator.pageSize)}getSortedData(t){return this.sort.active&&""!==this.sort.direction?t.sort((t,e)=>{const n="asc"===this.sort.direction;switch(this.sort.active){case"tbid":return function(t,e,n){return(t<e?-1:1)*(n?1:-1)}(+t.tbid,+e.tbid,n);default:return 0}}):t}}function sK(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1,"ID"),i.Tb())}function aK(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.tbid)}}function cK(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1,"C\xd3D. ESTADO"),i.Tb())}function lK(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.tbcodEstado)}}function uK(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1,"ESTADO"),i.Tb())}function dK(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.tbestado)}}function hK(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1,"RESPUESTA"),i.Tb())}function pK(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.tbrespuesta)}}function mK(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1,"FECHA"),i.Tb())}function fK(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.tbfecha)}}function bK(t,e){1&t&&(i.Ub(0,"th",15),i.Lc(1,"HORA"),i.Tb())}function gK(t,e){if(1&t&&(i.Ub(0,"td",16),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.tbhora)}}function _K(t,e){1&t&&i.Pb(0,"tr",17)}function vK(t,e){1&t&&i.Pb(0,"tr",18)}const yK=function(){return[25,50,100,250]};let wK=(()=>{class t{constructor(t){this.apiResponseService=t,this.displayedColumns=["tb-id","tb-codEstado","tb-estado","tb-respuesta","tb-fecha","tb-hora"]}ngOnInit(){this.apiResponseService.getReponseApiSign().subscribe(t=>{this.data_api=t,console.log(this.data_api),this.dataSource=new oK(this.paginator,this.sort,this.data_api)})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Ng))},t.\u0275cmp=i.Ib({type:t,selectors:[["api-request"]],viewQuery:function(t,e){var n;1&t&&(i.Qc(EP,!0),i.Qc(iA,!0)),2&t&&(i.tc(n=i.dc())&&(e.paginator=n.first),i.tc(n=i.dc())&&(e.sort=n.first))},decls:28,vars:8,consts:[[1,"container"],["mat-table","","matSort","","aria-label","Elements",1,"fll_wt",3,"dataSource"],["table",""],["matColumnDef","tb-id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","tb-codEstado"],["matColumnDef","tb-estado"],["matColumnDef","tb-respuesta"],["matColumnDef","tb-fecha"],["matColumnDef","tb-hora"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageIndex","pageSize","pageSizeOptions"],["paginator",""],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(i.Ub(0,"section"),i.Ub(1,"div",0),i.Ub(2,"h2"),i.Lc(3,"Respuestas del API"),i.Tb(),i.Ub(4,"table",1,2),i.Sb(6,3),i.Jc(7,sK,2,0,"th",4),i.Jc(8,aK,2,1,"td",5),i.Rb(),i.Sb(9,6),i.Jc(10,cK,2,0,"th",4),i.Jc(11,lK,2,1,"td",5),i.Rb(),i.Sb(12,7),i.Jc(13,uK,2,0,"th",4),i.Jc(14,dK,2,1,"td",5),i.Rb(),i.Sb(15,8),i.Jc(16,hK,2,0,"th",4),i.Jc(17,pK,2,1,"td",5),i.Rb(),i.Sb(18,9),i.Jc(19,mK,2,0,"th",4),i.Jc(20,fK,2,1,"td",5),i.Rb(),i.Sb(21,10),i.Jc(22,bK,2,0,"th",4),i.Jc(23,gK,2,1,"td",5),i.Rb(),i.Jc(24,_K,1,0,"tr",11),i.Jc(25,vK,1,0,"tr",12),i.Tb(),i.Pb(26,"mat-paginator",13,14),i.Tb(),i.Tb()),2&t&&(i.Db(4),i.mc("dataSource",e.dataSource),i.Db(20),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("length",e.dataSource.data.length)("pageIndex",0)("pageSize",25)("pageSizeOptions",i.qc(7,yK)))},directives:[JC,iA,tx,KC,$C,cx,hx,EP,nx,dA,sx,mx,_x],styles:[""]}),t})();function CK(t,e){if(1&t&&(i.Ub(0,"mat-error",14),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function xK(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,CK,2,1,"mat-error",13),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("firstName").hasError(t.type)&&(n.fg.get("firstName").dirty||n.fg.get("firstName").touched))}}function OK(t,e){if(1&t&&(i.Ub(0,"mat-error",14),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function SK(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,OK,2,1,"mat-error",13),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("lastName").hasError(t.type)&&(n.fg.get("lastName").dirty||n.fg.get("lastName").touched))}}function TK(t,e){if(1&t&&(i.Ub(0,"mat-error",14),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function DK(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,TK,2,1,"mat-error",13),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("identificationNumber").hasError(t.type)&&(n.fg.get("identificationNumber").dirty||n.fg.get("identificationNumber").touched))}}function kK(t,e){if(1&t&&(i.Ub(0,"mat-error",14),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function PK(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,kK,2,1,"mat-error",13),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("position").hasError(t.type)&&(n.fg.get("position").dirty||n.fg.get("position").touched))}}function EK(t,e){if(1&t&&(i.Ub(0,"mat-error",14),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function AK(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,EK,2,1,"mat-error",13),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("email").hasError(t.type)&&(n.fg.get("email").dirty||n.fg.get("email").touched))}}let IK=(()=>{class t{constructor(t,e){this.dialogRef=t,this.formBuilder=e,this.account_validation_messages={email:[{type:"required",message:"Campo requerido"},{type:"email",message:"Debe ser un correo electr\xf3nico v\xe1lido"}],firstName:[{type:"required",message:"Campo requerido"}],lastName:[{type:"required",message:"Campo requerido"}],position:[{type:"required",message:"Campo requerido"}],identificationNumber:[{type:"required",message:"Campo requerido"},{type:"pattern",message:"La identificaci\xf3n debe entre 6 y 13 d\xedgitos"}]},this.fg=this.formBuilder.group({email:["",[Ha.required,Ha.email]],firstName:["",[Ha.required]],lastName:["",[Ha.required]],position:["",[Ha.required]],identificationNumber:["",[Ha.required]]})}ngOnInit(){}saveContact(){const t=JSON.parse(JSON.stringify(this.fg.value)),e=JSON.parse(sessionStorage.getItem("userData"));t.enterpriseId=e.enterpriseId,this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(fl))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-dialog-insert-contact"]],decls:26,vars:7,consts:[["mat-dialog-title",""],[3,"formGroup"],[1,"row"],[1,"col-12","col-md-6"],["matInput","","placeholder","Nombres","formControlName","firstName","required",""],[4,"ngFor","ngForOf"],["matInput","","placeholder","Apellidos","formControlName","lastName","required",""],["matInput","","placeholder","Identificaci\xf3n","formControlName","identificationNumber","pattern","^([0-9]){6,15}$","required",""],["matInput","","placeholder","Cargo","formControlName","position","required",""],["matInput","","placeholder","Email","formControlName","email","required",""],[1,"justify-content-end"],["type","button","mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"disabled","click"],["class","error-message",4,"ngIf"],[1,"error-message"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1,"Agregar Contacto"),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Ub(3,"form",1),i.Ub(4,"div",2),i.Ub(5,"mat-form-field",3),i.Pb(6,"input",4),i.Jc(7,xK,2,1,"mat-error",5),i.Tb(),i.Ub(8,"mat-form-field",3),i.Pb(9,"input",6),i.Jc(10,SK,2,1,"mat-error",5),i.Tb(),i.Tb(),i.Ub(11,"div",2),i.Ub(12,"mat-form-field",3),i.Pb(13,"input",7),i.Jc(14,DK,2,1,"mat-error",5),i.Tb(),i.Ub(15,"mat-form-field",3),i.Pb(16,"input",8),i.Jc(17,PK,2,1,"mat-error",5),i.Tb(),i.Tb(),i.Ub(18,"mat-form-field"),i.Pb(19,"input",9),i.Jc(20,AK,2,1,"mat-error",5),i.Tb(),i.Tb(),i.Tb(),i.Ub(21,"mat-dialog-actions",10),i.Ub(22,"button",11),i.Lc(23,"CANCELAR"),i.Tb(),i.Ub(24,"button",12),i.cc("click",(function(){return e.saveContact()})),i.Lc(25,"AGREGAR "),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("formGroup",e.fg),i.Db(4),i.mc("ngForOf",e.account_validation_messages.firstName),i.Db(3),i.mc("ngForOf",e.account_validation_messages.lastName),i.Db(4),i.mc("ngForOf",e.account_validation_messages.identificationNumber),i.Db(3),i.mc("ngForOf",e.account_validation_messages.position),i.Db(3),i.mc("ngForOf",e.account_validation_messages.email),i.Db(4),i.mc("disabled",e.fg.invalid))},directives:[Wb,Kb,zc,Fa,Yc,Uv,uy,Aa,Na,tl,il,o.s,pl,Qb,zm,$b,bv,o.t],styles:[".borde[_ngcontent-%COMP%]{border:1px solid red}"]}),t})();function MK(t,e){1&t&&(i.Ub(0,"mat-icon",8),i.Lc(1,"verified_user"),i.Tb(),i.Lc(2," CONTACTOS "))}let UK=(()=>{class t{constructor(t,e,n){this.dialog=t,this._pageLoaderService=e,this.enterpriseContactsService=n,this.ContactsData=new Sx}ngOnInit(){this.getData()}getData(){const t=JSON.parse(sessionStorage.getItem("userData"));null===t?setTimeout(()=>{this.getData()},400):(this._pageLoaderService.show(),this.enterpriseContactsService.getContactsEnterprise(t.enterpriseId).subscribe(t=>{this.ContactsData.data=t.operationBody,this._pageLoaderService.hide()},t=>{404!==t.status?this.showLoadError():this._pageLoaderService.hide()}))}showLoadError(t){this._pageLoaderService.hide(),this.showDialog(void 0===t?"Ha ocurrido un error, vuelve a intentarlo.":t)}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}applyFilter(t,e){t.filter=e.trim().toLowerCase()}roleFilter(t,e){if(t.source.selected){const n=t.source.value;this.applyFilter(e,"Todos"===n?"":"Administrador"===n?"Administrator":"Agent")}}openDialog(){const t=new Lb;t.disableClose=!1,t.autoFocus=!0,t.data={width:"250px",data:{}},this.dialog.open(IK,t).afterClosed().subscribe(t=>{void 0!==t&&""!==t&&this.saveEnterpriseContact(t)})}openDialogSelect(){const t=new Lb;t.disableClose=!1,t.autoFocus=!0,t.data={width:"250px",data:{}},this.dialog.open(EV,t).afterClosed().subscribe(t=>{})}saveEnterpriseContact(t){this._pageLoaderService.show(),this.enterpriseContactsService.createContactEnterprise(t).subscribe(t=>{this.getData(),this._pageLoaderService.hide()},t=>{404!==t.status?this.showLoadError():(this.showLoadError("El correo electr\xf3nico y/o identificaci\xf3n coinciden en otro contacto."),this._pageLoaderService.hide())})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(pg),i.Ob(vg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-contacts-calendar"]],decls:15,vars:1,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center"],[1,"col-12","col-sm-6"],[1,"col-12","col-sm-6","text-left","text-sm-right"],["mat-raised-button","","color","primary",3,"click"],[1,"material-icons"],["mat-tab-label",""],[3,"ContactsData"],[1,"example-tab-icon","mr-2"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Agenda de Contactos"),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"button",4),i.cc("click",(function(){return e.openDialog()})),i.Ub(7,"i",5),i.Lc(8,"mail_outline"),i.Tb(),i.Lc(9,"Agregar Contacto"),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"mat-tab-group"),i.Ub(11,"mat-tab"),i.Jc(12,MK,3,0,"ng-template",6),i.Pb(13,"aswc-table-contacts",7),i.Tb(),i.Tb(),i.Tb(),i.Pb(14,"aswc-page-loader-default")),2&t&&(i.Db(13),i.mc("ContactsData",e.ContactsData))},styles:[""]}),t})();function LK(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1,"NOMBRE"),i.Tb())}function RK(t,e){if(1&t&&(i.Ub(0,"td",17),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Oc("",t.firstName," ",t.lastName,"")}}function NK(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1,"IDENTIFICACI\xd3N"),i.Tb())}function FK(t,e){if(1&t&&(i.Ub(0,"td",17),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.identificationNumber)}}function VK(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1,"CORREO"),i.Tb())}function jK(t,e){if(1&t&&(i.Ub(0,"td",17),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.email)}}function BK(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1,"CARGO"),i.Tb())}function zK(t,e){if(1&t&&(i.Ub(0,"td",17),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.position)}}function qK(t,e){1&t&&i.Pb(0,"th",16)}function HK(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",18),i.Ub(1,"mat-menu",null,19),i.Ub(3,"button",20),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().deleteContact(n.id)})),i.Ub(4,"mat-icon"),i.Lc(5,"delete"),i.Tb(),i.Lc(6," Eliminar "),i.Tb(),i.Tb(),i.Ub(7,"button",21),i.Ub(8,"mat-icon"),i.Lc(9,"more_vert"),i.Tb(),i.Tb(),i.Tb()}if(2&t){const t=i.uc(2);i.Db(7),i.mc("matMenuTriggerFor",t)}}function GK(t,e){1&t&&i.Pb(0,"tr",22)}function JK(t,e){1&t&&i.Pb(0,"tr",23)}const YK=function(){return[10,15,20]};let $K=(()=>{class t{constructor(t,e,n,i,r){this.contactsCalendarComponent=t,this._pageLoaderService=e,this.keycloakAdminService=n,this.enterpriseContactsService=i,this.dialog=r,this.displayedColumns=["name","identificationNumber","email","position","options"]}deleteContact(t){this.enterpriseContactsService.deleteContactEnterprise(t).subscribe(e=>{this.showDialog("El contacto fue eliminado exitosamente."),this._pageLoaderService.hide();for(let n=0;n<this.ContactsData.data.length;++n)this.ContactsData.data[n].id===t&&(this.ContactsData.data=this.ContactsData.data.filter(e=>e.id!==t))},t=>{this.showLoadError()})}showLoadError(t){this.showDialog(void 0===t?"Ha ocurrido un error, vuelve a intentarlo.":t)}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}ngOnInit(){this.ContactsData.paginator=this.paginator,tL.SetUpPaginator(this.paginator);const t=JSON.parse(sessionStorage.getItem("userData"));this.CurrentUserEmail=t.email}applyFilter(t){this.contactsCalendarComponent.applyFilter(this.ContactsData,t)}onFilterRoleChange(t){this.contactsCalendarComponent.roleFilter(t,this.ContactsData)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(UK),i.Ob(pg),i.Ob(fu),i.Ob(vg),i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-table-contacts"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},inputs:{ContactsData:"ContactsData"},decls:24,vars:5,consts:[[1,"row","mt-2"],[1,"col-6"],["matInput","","placeholder","Buscar",3,"keyup"],[1,"rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","identificationNumber"],["matColumnDef","email"],["matColumnDef","position"],["matColumnDef","options"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"text-right"],["navOptions","matMenu"],["mat-menu-item","",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"mat-form-field"),i.Ub(3,"input",2),i.cc("keyup",(function(t){return e.applyFilter(t.target.value)})),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(4,"div",3),i.Ub(5,"table",4),i.Sb(6,5),i.Jc(7,LK,2,0,"th",6),i.Jc(8,RK,2,2,"td",7),i.Rb(),i.Sb(9,8),i.Jc(10,NK,2,0,"th",6),i.Jc(11,FK,2,1,"td",7),i.Rb(),i.Sb(12,9),i.Jc(13,VK,2,0,"th",6),i.Jc(14,jK,2,1,"td",7),i.Rb(),i.Sb(15,10),i.Jc(16,BK,2,0,"th",6),i.Jc(17,zK,2,1,"td",7),i.Rb(),i.Sb(18,11),i.Jc(19,qK,1,0,"th",6),i.Jc(20,HK,10,1,"td",12),i.Rb(),i.Jc(21,GK,1,0,"tr",13),i.Jc(22,JK,1,0,"tr",14),i.Tb(),i.Tb(),i.Pb(23,"mat-paginator",15)),2&t&&(i.Db(5),i.mc("dataSource",e.ContactsData),i.Db(16),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(4,YK)))},directives:[Uv,uy,JC,tx,KC,$C,cx,hx,EP,nx,sx,Tb,yb,Kv,zm,Eb,mx,_x],styles:["tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();function WK(t,e){1&t&&i.Pb(0,"th",17)}function KK(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",18),i.Ub(1,"mat-radio-button",19),i.cc("change",(function(){i.yc(t);const n=e.$implicit;return i.gc().radioChangeSelect(n.id)})),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit;i.Db(1),i.mc("value",t.id)}}function QK(t,e){1&t&&(i.Ub(0,"th",17),i.Lc(1,"NOMBRE"),i.Tb())}function XK(t,e){if(1&t&&(i.Ub(0,"td",20),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Oc("",t.firstName," ",t.lastName,"")}}function ZK(t,e){1&t&&(i.Ub(0,"th",17),i.Lc(1,"IDENTIFICACI\xd3N"),i.Tb())}function tQ(t,e){if(1&t&&(i.Ub(0,"td",20),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.identificationNumber)}}function eQ(t,e){1&t&&(i.Ub(0,"th",17),i.Lc(1,"CORREO"),i.Tb())}function nQ(t,e){if(1&t&&(i.Ub(0,"td",20),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.email)}}function iQ(t,e){1&t&&i.Pb(0,"tr",21)}function rQ(t,e){1&t&&i.Pb(0,"tr",22)}const oQ=function(){return[10,15,20]};let sQ=(()=>{class t{constructor(t,e,n,i,r){this.dialogSelectContactComponent=t,this._pageLoaderService=e,this.keycloakAdminService=n,this.enterpriseContactsService=i,this.dialog=r,this.displayedColumns=["options","name","identificationNumber","email"]}deleteContact(t){this._pageLoaderService.show(),this.enterpriseContactsService.deleteContactEnterprise(t).subscribe(e=>{this._pageLoaderService.hide();for(let n=0;n<this.ContactsData.data.length;++n)this.ContactsData.data[n].id===t&&(this.ContactsData.data=this.ContactsData.data.filter(e=>e.id!==t))},t=>{this.showLoadError()})}showLoadError(t){}ngOnInit(){this.ContactsData.paginator=this.paginator,tL.SetUpPaginator(this.paginator);const t=JSON.parse(sessionStorage.getItem("userData"));this.CurrentUserEmail=t.email}applyFilter(t){this.dialogSelectContactComponent.applyFilter(this.ContactsData,t)}onFilterRoleChange(t){this.dialogSelectContactComponent.roleFilter(t,this.ContactsData)}radioChangeSelect(t){null!==t&&(this.disableSelect=!1,this.dialogSelectContactComponent.changeBooleanButton(this.disableSelect,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(EV),i.Ob(pg),i.Ob(fu),i.Ob(vg),i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-table-select-contact"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},inputs:{ContactsData:"ContactsData",disableSelect:"disableSelect"},decls:24,vars:5,consts:[[1,"row","mt-2"],[1,"col-6"],["matInput","","placeholder","Buscar..."],["search",""],["matSuffix","",2,"cursor","pointer",3,"click"],[1,"rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","options"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","text-right",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","identificationNumber"],["matColumnDef","email"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell","",1,"text-right"],[3,"value","change"],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"mat-form-field"),i.Pb(3,"input",2,3),i.Ub(5,"mat-icon",4),i.cc("click",(function(){i.yc(t);const n=i.uc(4);return e.applyFilter(n.value)})),i.Lc(6,"search"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(7,"div",5),i.Ub(8,"table",6),i.Sb(9,7),i.Jc(10,WK,1,0,"th",8),i.Jc(11,KK,2,1,"td",9),i.Rb(),i.Sb(12,10),i.Jc(13,QK,2,0,"th",8),i.Jc(14,XK,2,2,"td",11),i.Rb(),i.Sb(15,12),i.Jc(16,ZK,2,0,"th",8),i.Jc(17,tQ,2,1,"td",11),i.Rb(),i.Sb(18,13),i.Jc(19,eQ,2,0,"th",8),i.Jc(20,nQ,2,1,"td",11),i.Rb(),i.Jc(21,iQ,1,0,"tr",14),i.Jc(22,rQ,1,0,"tr",15),i.Tb(),i.Tb(),i.Pb(23,"mat-paginator",16)}2&t&&(i.Db(8),i.mc("dataSource",e.ContactsData),i.Db(13),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(4,oQ)))},directives:[Uv,uy,Kv,kv,JC,tx,KC,$C,cx,hx,EP,nx,sx,dE,mx,_x],styles:["tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})(),aQ=(()=>{class t{constructor(t,e){this.rendererFactory2=t,this.dialog=e,this._destroy$=new lr.a;const n=this.rendererFactory2.createRenderer(null,null);this.createOnClickObservable(n)}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}clearData(){this._destroy$.next(),this._destroy$.complete()}createOnClickObservable(t){let e;this.onClick$=function t(e,n,i){return i?t(e,n).pipe(Object(m.a)(t=>Object(Yi.a)(t)?i(...t):i(t))):new a.a(t=>{const i=(...e)=>t.next(1===e.length?e[0]:e);let r;try{r=e(i)}catch(o){return void t.error(o)}if(Object(Nh.a)(n))return()=>n(i,r)})}(n=>{e=t.listen("document","click",n)},()=>e()).pipe(Vh(this._destroy$))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(i.H),i.Yb(Jb))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),cQ=(()=>{class t{constructor(t,e,n,i,r){this.dialog=t,this.router=e,this.cn=n,this.enrollmentService=i,this.sessionService=r,this.userInactive=new lr.a}ngOnDestroy(){this.sesionSubscription.unsubscribe()}ngOnInit(){this.validateSession()}validateSession(){clearTimeout(this.userActivity),this.userActivity=null,this.setTimeout(),this.userActivity=new lr.a,this.sesionSubscription=this.userInactive.subscribe(()=>{this.sessionService.clearData(),clearTimeout(this.userActivity),sessionStorage.clear(),this.showGeneralDialog("La sesi\xf3n ha caducado, vuelve a iniciar sesi\xf3n.").subscribe()}),this.sessionService.onClick$.subscribe(t=>{this.refreshUserState()})}setTimeout(){this.userActivity=setTimeout(()=>this.userInactive.next(void 0),6e5)}refreshUserState(){clearTimeout(this.userActivity),this.setTimeout()}showGeneralDialog(t,e,n){return void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"logout"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(Zs),i.Ob(Gi),i.Ob(_g),i.Ob(aQ))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-corporate-private"]],decls:6,vars:0,consts:[[1,"mt-header"],[1,"main-api"]],template:function(t,e){1&t&&(i.Pb(0,"aswc-breadcrumbs"),i.Ub(1,"aswc-corporate-header-private"),i.Ub(2,"div",0),i.Ub(3,"div",1),i.Pb(4,"router-outlet"),i.Tb(),i.Tb(),i.Pb(5,"aswc-footer-public"),i.Tb())},styles:[""]}),t})(),lQ=(()=>{class t{constructor(t){this.dialog=t,this.userInactive=new lr.a}ngOnInit(){clearTimeout(this.userActivity),this.setTimeout(),this.userInactive.subscribe(()=>{clearTimeout(this.userActivity),this.showGeneralDialog("La sesi\xf3n ha caducado, vuelve a iniciar sesi\xf3n.").subscribe()})}setTimeout(){this.userActivity=setTimeout(()=>this.userInactive.next(void 0),1e4)}refreshUserState(){clearTimeout(this.userActivity),this.setTimeout()}showGeneralDialog(t,e,n){return void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"logout"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb))},t.\u0275dir=i.Jb({type:t,selectors:[["","aswcCorporatePrivate",""]],hostBindings:function(t,e){1&t&&i.cc("keyup",(function(t){return e.refreshUserState(t)}),!1,i.wc)("click",(function(t){return e.refreshUserState(t)}),!1,i.wc)("wheel",(function(t){return e.refreshUserState(t)}),!1,i.wc)}}),t})(),uQ=(()=>{class t{constructor(t,e,n,i){this.enrollmentService=t,this._pageLoaderService=e,this.router=n,this.dialog=i}canActivateChild(t,e){const n=JSON.parse(sessionStorage.getItem("userTwoFactor"));return 1==(null!==n)&&!0===n.twoFactorVerify?this.validEnrollment(n.idNotary,n.mail,n.role):(this.router.navigate(["corporate/validate/two-factor"]),!1)}validEnrollment(t,e,n){const i={title:"No has completado el proceso de enrolamiento",content:"Para realizar tr\xe1mites en eNotary, debes completar el proceso de enrolamiento con la notaria seleccionada.",actions:[{text:"Aceptar",value:"accepted",funct:"redirectEnrollment"}]},r=new lr.a;return n!==Ig.LegalPerson&&n!==Ig.Person||(this._pageLoaderService.show(),this.enrollmentService.getEnrollment(t,e).subscribe(t=>{const e=t.operationBody[0].validPhoneNumber,n=t.operationBody[0].validIdentificationNumber,o=t.operationBody[0].validInNotary;this._pageLoaderService.hide(),!1===e||!1===n||!1===o?(this.showGeneralDialog("",i),r.next(!1)):r.next(!0)},t=>{this.showGeneralDialog("",i),this._pageLoaderService.hide(),r.next(!1)}),r.asObservable())}showGeneralDialog(t,e,n){return void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(_g),i.Yb(pg),i.Yb(Zs),i.Yb(Jb))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),dQ=(()=>{class t{constructor(t,e){this.router=t,this.authenticationService=e}canActivate(t,e){return this.authenticationService.isAutenticated()?this.authenticationService.valiteToken():(sessionStorage.clear(),this.router.navigate(["login"]),!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Zs),i.Yb(qS))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),hQ=(()=>{class t{constructor(t,e){this.router=t,this.cn=e}canActivate(){return this.cn.log("canActivate()"),this.user=JSON.parse(sessionStorage.getItem("userData")),null===this.user?(this.router.navigate(["/corporate/pv/validate/verify-login"]),!1):(this.cn.log(this.user.role),this.user.role===Ig.Administrator||this.user.role===Ig.Person||this.user.role===Ig.AdministrativeOfficer||this.user.role===Ig.Officer||this.user.role===Ig.LegalPerson||(this.cn.log("Bloqueado por guard"),this.router.navigate(["/corporate/pv/validate/verify-login"]),!1))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Zs),i.Yb(Gi))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),pQ=(()=>{class t{constructor(t,e,n){this.router=t,this._pageLoaderService=e,this.enrollmentService=n}canActivateChild(t,e){const n=JSON.parse(sessionStorage.getItem("userTwoFactor"));return 1!=(null!==n)||!0!==n.twoFactorVerify||(this.validateRole(n),!1)}validateRole(t){switch(t.role){case Ig.Administrator:this.router.navigate(["corporate/pv/documents/my-transactions"]);break;case Ig.Person:this._pageLoaderService.show(),this.enrollmentService.getEnrollment(t.idNotary,t.mail).subscribe(t=>{this.router.navigate(!1===t.operationBody[0].validPhoneNumber||!1===t.operationBody[0].validIdentificationNumber||!1===t.operationBody[0].validInNotary?["corporate/pv/enrollment/user-enrollment"]:["corporate/pv/documents/upload-files"]),this._pageLoaderService.hide()},t=>{this.router.navigate(["corporate/pv/enrollment/user-enrollment"]),this._pageLoaderService.hide()})}}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Zs),i.Yb(pg),i.Yb(_g))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),mQ=(()=>{class t{constructor(t){this.router=t}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Zs))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-login"]],decls:4,vars:0,consts:[[1,"cnt-bg-office"]],template:function(t,e){1&t&&(i.Pb(0,"aswc-page-loader-default"),i.Ub(1,"div",0),i.Pb(2,"router-outlet"),i.Tb(),i.Pb(3,"aswc-footer-public"))},styles:[""]}),t})(),fQ=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c){this.kcSvc=t,this.cn=e,this.dialog=n,this.router=i,this.authService=r,this.keycloakAdminService=o,this.signerDocUser=s,this.userService=a,this.enterpriseService=c,this.user=new Tl,this.twoFactor=new MS}ngOnInit(){}initLogin2(){return t=this,void 0,n=function*(){const t=this.authService.user.email;try{this.usersGETReplyService=yield this.userService.getUsers("email",t).toPromise(),this.user=this.usersGETReplyService.operationBody[0]}catch(e){this.showGeneralDialog("",{title:"Informaci\xf3n",content:"Ha ocurrido un error, vuelve a intentarlo.",actions:[{text:"Cerrar",value:"accepted",funct:"logout"}]})}},new((e=void 0)||(e=Promise))((function(i,r){function o(t){try{a(n.next(t))}catch(e){r(e)}}function s(t){try{a(n.throw(t))}catch(e){r(e)}}function a(t){var n;t.done?i(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,s)}a((n=n.apply(t,[])).next())}));var t,e,n}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{disableClose:!0,width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cr),i.Ob(Gi),i.Ob(Jb),i.Ob(Zs),i.Ob(qS),i.Ob(fu),i.Ob(FS),i.Ob(jg),i.Ob(US))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-verify-login"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})();function bQ(t,e){if(1&t&&(i.Ub(0,"mat-error",9),i.Lc(1),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",t.message,"")}}function gQ(t,e){if(1&t&&(i.Ub(0,"mat-error"),i.Jc(1,bQ,2,1,"mat-error",8),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("ngIf",n.fg.get("email").hasError(t.type)&&(n.fg.get("email").dirty||n.fg.get("email").touched))}}function _Q(t,e){if(1&t&&(i.Ub(0,"mat-option",10),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.mc("value",t.value),i.Db(1),i.Nc(" ",t.viewValue," ")}}let vQ=(()=>{class t{constructor(t,e){this.dialogRef=t,this.formBuilder=e,this.roles=[{value:"AdministrativeOfficer",viewValue:"Funcionario Administrador"},{value:"Officer",viewValue:"Funcionario"}],this.account_validation_messages={email:[{type:"required",message:"El email de destino es obligatorio"},{type:"email",message:"Debe ser un correo electr\xf3nico v\xe1lido"}],role:[{type:"required",message:"El Rol es obligatorio"}]},this.fg=this.formBuilder.group({email:["",[Ha.required,Ha.email]],role:["",[Ha.required]]})}sendInvitation(){const t=JSON.parse(JSON.stringify(this.fg.value)),e=JSON.parse(sessionStorage.getItem("userData"));t.state="Invitaci\xf3n enviada",t.enterpriseId=e.enterpriseId,t.requesterEmail=e.email,this.dialogRef.close(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(jb),i.Ob(fl))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-corporate-invitation-dialog-send-invitation"]],decls:17,vars:4,consts:[["mat-dialog-title",""],[3,"formGroup"],["matInput","","placeholder","Email destino","formControlName","email","required",""],[4,"ngFor","ngForOf"],["formControlName","role"],[3,"value",4,"ngFor","ngForOf"],["type","button","mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary","cdkFocusInitial","",3,"disabled","click"],["class","error-message",4,"ngIf"],[1,"error-message"],[3,"value"]],template:function(t,e){1&t&&(i.Ub(0,"h2",0),i.Lc(1,"Enviar invitaci\xf3n"),i.Tb(),i.Ub(2,"mat-dialog-content"),i.Ub(3,"form",1),i.Ub(4,"mat-form-field"),i.Pb(5,"input",2),i.Jc(6,gQ,2,1,"mat-error",3),i.Tb(),i.Ub(7,"mat-form-field"),i.Ub(8,"mat-label"),i.Lc(9,"Rol *"),i.Tb(),i.Ub(10,"mat-select",4),i.Jc(11,_Q,2,2,"mat-option",5),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(12,"mat-dialog-actions"),i.Ub(13,"button",6),i.Lc(14,"CANCELAR"),i.Tb(),i.Ub(15,"button",7),i.cc("click",(function(){return e.sendInvitation()})),i.Lc(16,"ENVIAR INVITACI\xd3N "),i.Tb(),i.Tb()),2&t&&(i.Db(3),i.mc("formGroup",e.fg),i.Db(3),i.mc("ngForOf",e.account_validation_messages.email),i.Db(5),i.mc("ngForOf",e.roles),i.Db(4),i.mc("disabled",e.fg.invalid))},directives:[Wb,Kb,zc,Fa,Yc,Uv,uy,Aa,Na,tl,il,o.s,xv,aw,Qb,zm,$b,bv,o.t,Oh],styles:[""]}),t})();function yQ(t,e){1&t&&(i.Ub(0,"mat-icon",9),i.Lc(1,"verified_user"),i.Tb(),i.Lc(2," REGISTRADOS "))}function wQ(t,e){1&t&&(i.Ub(0,"mat-icon",9),i.Lc(1,"supervised_user_circle"),i.Tb(),i.Lc(2," INVITADOS "))}let CQ=(()=>{class t{constructor(t,e,n,i,r){this.dialog=t,this.cn=e,this._pageLoaderService=n,this._invitationsService=i,this._usersService=r,this.InvitationsData=new Sx,this.UsersData=new Sx,this.rolesList=["Todos","Administrador","Agente"]}ngOnInit(){this.getData()}getData(){const t=JSON.parse(sessionStorage.getItem("userData"));null===t?setTimeout(()=>{this.getData()},400):(this._pageLoaderService.show(),this._usersService.getUsers("enterpriseId",t.enterpriseId).subscribe(e=>{this.UsersData.data=e.operationBody,this._invitationsService.getRegistrationInvitations("enterpriseId",t.enterpriseId).subscribe(t=>{const e=[];t.operationBody.forEach(t=>{"Registrado"!==t.state&&e.push(t)}),this.InvitationsData.data=e,this._pageLoaderService.hide()},t=>{404!==t.status?this.showLoadError():this._pageLoaderService.hide()})},t=>{this.showLoadError()}))}openDialog(){const t=new Lb;t.disableClose=!0,t.autoFocus=!0,t.data={width:"250px",data:{}},this.dialog.open(vQ,t).afterClosed().subscribe(t=>{this.sendRegistrationInvitation(t)})}sendRegistrationInvitation(t){void 0!==t.email&&(this._pageLoaderService.show(),this._usersService.getUsers("email",t.email).subscribe(t=>{this._pageLoaderService.hide(),this.showDialog("Ya hay un usuario registrado con este correo electr\xf3nico.")},e=>{const n="\xa1Ups! La invitaci\xf3n no ha sido enviada, intenta de nuevo m\xe1s tarde.";404===e.status?this._invitationsService.addRegistrationInvitations(t).subscribe(e=>{this.cn.log("addRegistrationInvitations() response: ",e),1e3===e.operationCode?(this.getData(),this._pageLoaderService.hide(),dg.info(`Env\xedo invitaci\xf3n a ${t.email} para crear cuenta.`,"USUARIO"),this.showDialog("La invitaci\xf3n ha sido enviada correctamente.")):this.showLoadError(n)},t=>{this.showLoadError(n),this.cn.error("addRegistrationInvitations() error: ",t)}):(this.showLoadError(n),this.cn.error("addRegistrationInvitations() error: ",e))}))}applyFilter(t,e){t.filter=e.trim().toLowerCase()}roleFilter(t,e){if(t.source.selected){const n=t.source.value;this.applyFilter(e,"Todos"===n?"":"Administrador"===n?"Administrator":"Agent")}}showLoadError(t){this._pageLoaderService.hide(),this.showDialog(void 0===t?"Ha ocurrido un error, vuelve a intentarlo.":t)}showDialog(t){this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(Gi),i.Ob(pg),i.Ob(RS),i.Ob(jg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-app-users"]],decls:18,vars:4,consts:[[1,"container","pt-5","pb-4"],[1,"row","align-items-center"],[1,"col-12","col-sm-6"],[1,"col-12","col-sm-6","text-left","text-sm-right"],["mat-raised-button","","color","primary",3,"click"],[1,"material-icons"],["mat-tab-label",""],[3,"UsersData","rolesList"],[3,"InvitationsData","rolesList"],[1,"example-tab-icon","mr-2"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Usuarios"),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"button",4),i.cc("click",(function(){return e.openDialog()})),i.Ub(7,"i",5),i.Lc(8,"mail_outline"),i.Tb(),i.Lc(9,"Enviar Invitaci\xf3n"),i.Tb(),i.Tb(),i.Tb(),i.Ub(10,"mat-tab-group"),i.Ub(11,"mat-tab"),i.Jc(12,yQ,3,0,"ng-template",6),i.Pb(13,"aswc-table-register-users",7),i.Tb(),i.Ub(14,"mat-tab"),i.Jc(15,wQ,3,0,"ng-template",6),i.Pb(16,"aswc-table-guest-users",8),i.Tb(),i.Tb(),i.Tb(),i.Pb(17,"aswc-page-loader-default")),2&t&&(i.Db(13),i.mc("UsersData",e.UsersData)("rolesList",e.rolesList),i.Db(3),i.mc("InvitationsData",e.InvitationsData)("rolesList",e.rolesList))},styles:["tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();const xQ=ma.forChild([{path:"corporate/pv",canActivate:[dQ],component:cQ,children:[{path:"documents",canActivateChild:[uQ],children:[{path:"list-of-formalities",component:kB,data:{titulo:"Tr\xe1mites"}},{path:"quotation",component:Qq,data:{titulo:"Cotizaci\xf3n de proceso"}},{path:"quotation",component:Qq,data:{titulo:"Cotizaci\xf3n de proceso"}},{path:"quote-methods",component:jH,data:{titulo:"Tabla metodos"}},{path:"quote-signers",component:OH,data:{titulo:"Tabla Firmantes"}},{path:"quote-response",component:qH,data:{titulo:"Tabla Firmantes"}},{path:"my-transactions",component:_B,data:{titulo:"Mis procesos"}},{path:"doc-list",component:sj,data:{titulo:"Documentos para firmar"}},{path:"upload-files",component:YB,data:{titulo:"Cargar documentos"},pathMatch:"full"},{path:"select-signers",component:VB,data:{titulo:"\xbfQui\xe9nes firman el documento?"}},{path:"assign-signers",component:KV,data:{titulo:"Asignar firmantes"}}]},{path:"multimedia",canActivateChild:[uQ],children:[{path:"capture/:authenticationCode",component:FU,data:{titulo:"Multimedia"}}]},{path:"profile",children:[{path:"edit-profile",component:xG,data:{titulo:"Editar Perfil"}}]},{path:"authentication",canActivateChild:[uQ],children:[{path:"auth-methods",component:eL,data:{titulo:"M\xe9todos de validaci\xf3n de identidad"}},{path:"auth-otp",component:hL,data:{titulo:"C\xf3digo de autenticaci\xf3n"}},{path:"auth-challenge-questions",component:WU,data:{titulo:"Preguntas de validaci\xf3n de identidad"}},{path:"auth-mati",component:XU,data:{titulo:"Reconocimiento facial"}}]},{path:"payment",canActivate:[hQ],canActivateChild:[uQ],children:[{path:"recharge",component:GH,data:{titulo:"Recarga tu saldo"}},{path:"response",component:KH,data:{titulo:"Estado de la transacci\xf3n"}},{path:"payment-summary",component:Yq,data:{titulo:"Resumen pago"}}]},{path:"billing",canActivate:[hQ],children:[{path:"billing-summary",component:dR,data:{titulo:"Resumen \xfaltimo mes"}},{path:"billing-list",component:GL,data:{titulo:"Facturaci\xf3n"}},{path:"billing-details",component:AL,data:{titulo:"Detalle de la factura"}}]},{path:"messages",canActivateChild:[uQ],children:[{path:"sent-documents",component:PB,data:{titulo:"Documentos enviados"}},{path:"signed-docs",component:MB,data:{titulo:"Documentos Firmados"}},{path:"signed-docs-massive",component:UB,data:{titulo:"Documentos Firmados Masivamente"}},{path:"reject-process-massive",component:AB,data:{titulo:"Documentos Rechazados Masivamente"}},{path:"pending-payment",component:EB,data:{titulo:"Pendiente por verificacion"}}]},{path:"enrollment",children:[{path:"user-enrollment",component:pq,data:{titulo:"Enrolamiento usuario"}}]},{path:"",canActivate:[hQ],children:[{path:"users",component:CQ,data:{titulo:"Usuarios"}}]},{path:"testaments",canActivate:[hQ],children:[{path:"consult",component:IY,data:{titulo:"Testamentos"}},{path:"details",component:hY,data:{titulo:"Detalle del testamento"}},{path:"creates",component:cY,data:{titulo:"Crear escritura"}}]},{path:"logs",canActivate:[hQ],children:[{path:"consult",component:oU,data:{titulo:"Logs"}}]},{path:"",children:[{path:"contacts",component:UK,data:{titulo:"Agenda de Contactos"}}]}]},{path:"corporate/validate",canActivate:[dQ],canActivateChild:[pQ],component:mQ,children:[{path:"verify-login",component:fQ,data:{titulo:"verificar login"}},{path:"otp-notary",component:sL,data:{titulo:"otp notario"}},{path:"two-factor",component:MY,data:{titulo:"Validaci\xf3n de ingreso "}},{path:"verification-code",component:RY,data:{titulo:"C\xf3digo de verificaci\xf3n"}}]},{path:"corporate/enrollment",canActivate:[dQ],component:Wz,children:[{path:"validate-id-suggestions",component:Fz,data:{titulo:"Validaci\xf3n documento de identidad"}},{path:"validate-id-front",component:Nz,data:{titulo:"Validaci\xf3n documento de identidad"}},{path:"validate-id-back",component:Uz,data:{titulo:"Validaci\xf3n documento de identidad"}},{path:"validate-phonenumber",component:$z,data:{titulo:"Validaci\xf3n del tel\xe9fono m\xf3vil"}},{path:"validate-code",component:Xz,data:{titulo:"C\xf3digo de verificaci\xf3n"}}]},{path:"corporate/notary-enrollment",canActivate:[dQ],component:cQ,children:[{path:"enrollment-requests",component:wz,data:{titulo:"Solicitudes de enrolamiento"}},{path:"enrollment-requests-detail",component:Iz,data:{titulo:"Informaci\xf3n del solicitante"}}]},{path:"corporate/scheduling",canActivate:[dQ],children:[{path:"schedule",children:[{path:"user-scheduling",component:IJ,data:{titulo:"Agendar cita"}}]},{path:"consultation-scheduling",component:cQ,children:[{path:"user-list-scheduling",component:xJ,data:{titulo:"Agendamientos"}}]}]},{path:"corporate/notary-scheduling",canActivate:[dQ],component:cQ,children:[{path:"scheduling-requests",component:sJ,data:{titulo:"Citas agendadas"}}]}]);function OQ(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-option",18),i.cc("onSelectionChange",(function(e){return i.yc(t),i.gc().onFilterRoleChange(e)})),i.Lc(1),i.Tb()}if(2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Mc(t)}}function SQ(t,e){1&t&&(i.Ub(0,"th",19),i.Lc(1,"EMAIL"),i.Tb())}function TQ(t,e){if(1&t&&(i.Ub(0,"td",20),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.email)}}function DQ(t,e){1&t&&(i.Ub(0,"th",19),i.Lc(1,"ROL"),i.Tb())}function kQ(t,e){if(1&t&&(i.Ub(0,"td",20),i.Lc(1),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.Nc("",n.findRole(t.role)," ")}}function PQ(t,e){1&t&&(i.Ub(0,"th",19),i.Lc(1,"FECHA Y HORA"),i.Tb())}function EQ(t,e){if(1&t&&(i.Ub(0,"td",20),i.Ub(1,"span",21),i.Ub(2,"span",22),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Ub(5,"span",23),i.Lc(6),i.hc(7,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,2,t.sendedDate,"dd/MM/yyyy")),i.Db(3),i.Mc(i.jc(7,5,t.sendedDate,"hh:mm a"))}}function AQ(t,e){1&t&&i.Pb(0,"th",19)}function IQ(t,e){if(1&t&&(i.Ub(0,"td",24),i.Pb(1,"mat-menu",null,25),i.Ub(3,"button",26),i.Ub(4,"mat-icon"),i.Lc(5,"more_vert"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.uc(2);i.Db(3),i.mc("matMenuTriggerFor",t)}}function MQ(t,e){1&t&&i.Pb(0,"tr",27)}function UQ(t,e){1&t&&i.Pb(0,"tr",28)}const LQ=function(){return[5,10,20]};let RQ=(()=>{class t{constructor(t){this.usersComponent=t,this.displayedColumns=["email","role","sendedDateTime","options"]}ngOnInit(){tL.SetUpPaginator(this.paginator),this.InvitationsData.paginator=this.paginator}applyFilter(t){this.usersComponent.applyFilter(this.InvitationsData,t)}onFilterRoleChange(t){this.usersComponent.roleFilter(t,this.InvitationsData)}findRole(t){for(const e in Mg)if(e===t)return Mg[e];return""}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(CQ))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-table-guest-users"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},inputs:{InvitationsData:"InvitationsData",rolesList:"rolesList"},decls:25,vars:6,consts:[[1,"row","mt-2"],[1,"col-6"],["matInput","","placeholder","Buscar",3,"keyup"],[1,"col-3"],["placeholder","Rol"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],[1,"rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","role"],["matColumnDef","sendedDateTime"],["matColumnDef","options"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[3,"value","onSelectionChange"],["mat-header-cell",""],["mat-cell",""],[1,"tb-dateTime"],[1,"tb-date"],[1,"tb-time"],["mat-cell","",1,"text-right"],["navOptions","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"mat-form-field"),i.Ub(3,"input",2),i.cc("keyup",(function(t){return e.applyFilter(t.target.value)})),i.Tb(),i.Tb(),i.Tb(),i.Ub(4,"div",3),i.Ub(5,"mat-form-field"),i.Ub(6,"mat-select",4),i.Jc(7,OQ,2,2,"mat-option",5),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"table",7),i.Sb(10,8),i.Jc(11,SQ,2,0,"th",9),i.Jc(12,TQ,2,1,"td",10),i.Rb(),i.Sb(13,11),i.Jc(14,DQ,2,0,"th",9),i.Jc(15,kQ,2,1,"td",10),i.Rb(),i.Sb(16,12),i.Jc(17,PQ,2,0,"th",9),i.Jc(18,EQ,8,8,"td",10),i.Rb(),i.Sb(19,13),i.Jc(20,AQ,1,0,"th",9),i.Jc(21,IQ,6,1,"td",14),i.Rb(),i.Jc(22,MQ,1,0,"tr",15),i.Jc(23,UQ,1,0,"tr",16),i.Tb(),i.Tb(),i.Pb(24,"mat-paginator",17)),2&t&&(i.Db(7),i.mc("ngForOf",e.rolesList),i.Db(2),i.mc("dataSource",e.InvitationsData),i.Db(13),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(5,LQ)))},directives:[Uv,uy,aw,o.s,JC,tx,KC,$C,cx,hx,EP,Oh,nx,sx,Tb,zm,Eb,Kv,mx,_x],pipes:[o.f],styles:["tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();function NQ(t,e){if(1&t){const t=i.Vb();i.Ub(0,"mat-option",20),i.cc("onSelectionChange",(function(e){return i.yc(t),i.gc().onFilterRoleChange(e)})),i.Lc(1),i.Tb()}if(2&t){const t=e.$implicit;i.mc("value",t),i.Db(1),i.Mc(t)}}function FQ(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"NOMBRE"),i.Tb())}function VQ(t,e){if(1&t&&(i.Ub(0,"td",22),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Oc("",t.firstName," ",t.lastName,"")}}function jQ(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"IDENTIFICACI\xd3N"),i.Tb())}function BQ(t,e){if(1&t&&(i.Ub(0,"td",22),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.identificationNumber)}}function zQ(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"CORREO"),i.Tb())}function qQ(t,e){if(1&t&&(i.Ub(0,"td",22),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Mc(t.email)}}function HQ(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"ROL"),i.Tb())}function GQ(t,e){if(1&t&&(i.Ub(0,"td",22),i.Lc(1),i.Tb()),2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.Mc(n.findRole(t.role))}}function JQ(t,e){1&t&&(i.Ub(0,"th",21),i.Lc(1,"ACTIVO"),i.Tb())}function YQ(t,e){if(1&t){const t=i.Vb();i.Ub(0,"td",22),i.Ub(1,"mat-slide-toggle",23),i.cc("change",(function(n){i.yc(t);const r=e.$implicit;return i.gc().disableUser(r,n)})),i.Tb(),i.Tb()}if(2&t){const t=e.$implicit,n=i.gc();i.Db(1),i.mc("checked",t.active)("disabled",t.email==n.CurrentUserEmail)}}function $Q(t,e){1&t&&i.Pb(0,"th",21)}function WQ(t,e){if(1&t&&(i.Ub(0,"td",24),i.Pb(1,"mat-menu",null,25),i.Ub(3,"button",26),i.Ub(4,"mat-icon"),i.Lc(5,"more_vert"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.uc(2);i.Db(3),i.mc("matMenuTriggerFor",t)}}function KQ(t,e){1&t&&i.Pb(0,"tr",27)}function QQ(t,e){1&t&&i.Pb(0,"tr",28)}const XQ=function(){return[10,15,20]};let ZQ=(()=>{class t{constructor(t,e,n,i){this.usersComponent=t,this._pageLoaderService=e,this._usersService=n,this.keycloakAdminService=i,this.displayedColumns=["name","identificationNumber","email","role","active","options"]}ngOnInit(){tL.SetUpPaginator(this.paginator),this.UsersData.paginator=this.paginator;const t=JSON.parse(sessionStorage.getItem("userData"));this.CurrentUserEmail=t.email}applyFilter(t){this.usersComponent.applyFilter(this.UsersData,t)}onFilterRoleChange(t){this.usersComponent.roleFilter(t,this.UsersData)}disableUser(t,e){t.active=e.checked,this._pageLoaderService.show(),this.keycloakAdminService.getAuthTokenObservable().subscribe(n=>{this.keycloakAdminService.disableUser(t.email,e.checked,n.access_token).subscribe(e=>{this._usersService.udpateUser(t).subscribe(t=>{this._pageLoaderService.hide(),this.usersComponent.showDialog("Usuario actualizado.")},t=>{this.usersComponent.showLoadError()})},t=>{this.usersComponent.showLoadError()})},t=>{this.usersComponent.showLoadError()})}findRole(t){for(const e in Mg)if(e===t)return Mg[e];return""}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(CQ),i.Ob(pg),i.Ob(jg),i.Ob(fu))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-table-register-users"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},inputs:{UsersData:"UsersData",rolesList:"rolesList"},decls:31,vars:6,consts:[[1,"row","mt-2"],[1,"col-6"],["matInput","","placeholder","Buscar",3,"keyup"],[1,"col-3"],["placeholder","Rol"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],[1,"rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","identificationNumber"],["matColumnDef","email"],["matColumnDef","role"],["matColumnDef","active"],["matColumnDef","options"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[3,"value","onSelectionChange"],["mat-header-cell",""],["mat-cell",""],[3,"checked","disabled","change"],["mat-cell","",1,"text-right"],["navOptions","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"mat-form-field"),i.Ub(3,"input",2),i.cc("keyup",(function(t){return e.applyFilter(t.target.value)})),i.Tb(),i.Tb(),i.Tb(),i.Ub(4,"div",3),i.Ub(5,"mat-form-field"),i.Ub(6,"mat-select",4),i.Jc(7,NQ,2,2,"mat-option",5),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"table",7),i.Sb(10,8),i.Jc(11,FQ,2,0,"th",9),i.Jc(12,VQ,2,2,"td",10),i.Rb(),i.Sb(13,11),i.Jc(14,jQ,2,0,"th",9),i.Jc(15,BQ,2,1,"td",10),i.Rb(),i.Sb(16,12),i.Jc(17,zQ,2,0,"th",9),i.Jc(18,qQ,2,1,"td",10),i.Rb(),i.Sb(19,13),i.Jc(20,HQ,2,0,"th",9),i.Jc(21,GQ,2,1,"td",10),i.Rb(),i.Sb(22,14),i.Jc(23,JQ,2,0,"th",9),i.Jc(24,YQ,2,2,"td",10),i.Rb(),i.Sb(25,15),i.Jc(26,$Q,1,0,"th",9),i.Jc(27,WQ,6,1,"td",16),i.Rb(),i.Jc(28,KQ,1,0,"tr",17),i.Jc(29,QQ,1,0,"tr",18),i.Tb(),i.Tb(),i.Pb(30,"mat-paginator",19)),2&t&&(i.Db(7),i.mc("ngForOf",e.rolesList),i.Db(2),i.mc("dataSource",e.UsersData),i.Db(19),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(5,XQ)))},directives:[Uv,uy,aw,o.s,JC,tx,KC,$C,cx,hx,EP,Oh,nx,sx,OE,Tb,zm,Eb,Kv,mx,_x],styles:["tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})(),tX=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},providers:[{provide:o.f,useValue:void 0}],imports:[[o.c,xQ,VY,bl,ni,PT,aS,UT,Hm,JT,I_,$_,hD,Xw,Sk,Zb,K_,Qk,_P,Qv,dy,By,Ib,Wd,AP,VP,KP,hE,lh,cw,ES,VE,PE,WE,hA,Ox,dI,Lh,Hx,RI,gl,NY,zI]]}),t})();function eX(t,e){if(1&t&&(i.Ub(0,"div",10),i.Ub(1,"h4",11),i.Lc(2),i.hc(3,"titlecase"),i.Tb(),i.Ub(4,"div"),i.Ub(5,"p"),i.Ub(6,"strong"),i.Lc(7),i.hc(8,"titlecase"),i.Tb(),i.Lc(9,", te ha enviado "),i.Ub(10,"span"),i.Lc(11),i.Tb(),i.Lc(12," para autenticar. "),i.Tb(),i.Tb(),i.Tb()),2&t){const t=i.gc();i.Db(2),i.Nc("Hola ",i.ic(3,4,t.userSigning),","),i.Db(5),i.Mc(i.ic(8,6,t.userWhoStarted)),i.Db(4),i.Oc("",t.documentsCount," ",t.documentsCount>1?" documentos":" documento","")}}function nX(t,e){}function iX(t,e){1&t&&(i.Ub(0,"div",12),i.Ub(1,"h4"),i.Lc(2,"Documentos firmados"),i.Tb(),i.Tb())}function rX(t,e){1&t&&i.Pb(0,"div")}function oX(t,e){if(1&t&&(i.Ub(0,"a",24),i.Lc(1,"Ver"),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.path,i.Bc)}}function sX(t,e){if(1&t&&(i.Ub(0,"a",24),i.Lc(1,"Ver"),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.signedPath,i.Bc)}}function aX(t,e){if(1&t&&(i.Ub(0,"div",13),i.Ub(1,"div",14),i.Ub(2,"div",15),i.Ub(3,"span"),i.Lc(4),i.Tb(),i.Tb(),i.Ub(5,"div",16),i.Ub(6,"div",17),i.Ub(7,"div",18),i.Ub(8,"mat-icon"),i.Lc(9,"description"),i.Tb(),i.Tb(),i.Ub(10,"div",19),i.Ub(11,"p"),i.Lc(12),i.Tb(),i.Tb(),i.Tb(),i.Ub(13,"div",20),i.Jc(14,rX,1,0,"div",21),i.Jc(15,oX,2,1,"ng-template",null,22,i.Kc),i.Jc(17,sX,2,1,"ng-template",null,23,i.Kc),i.Tb(),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit,n=e.index,r=i.uc(16),o=i.uc(18),s=i.gc();i.Db(4),i.Mc(n+1),i.Db(8),i.Mc(t.fileName),i.Db(2),i.mc("ngIf","signed"!==s.globalVarService.state_docs)("ngIfThen",r)("ngIfElse",o)}}function cX(t,e){if(1&t){const t=i.Vb();i.Ub(0,"div",25),i.Ub(1,"button",26),i.cc("click",(function(){return i.yc(t),i.gc().cancelButton()})),i.Lc(2,"Cancelar"),i.Tb(),i.Ub(3,"button",27),i.cc("click",(function(){return i.yc(t),i.gc().nextStep()})),i.Lc(4,"Continuar"),i.Tb(),i.Tb()}}i.Cc(cQ,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,Gc,Yc,tl,Wc,Qc,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,jI,cQ,wK,vQ,RQ,ZQ,CQ,UK,$K,IK,EV,sQ,fQ,mQ,lQ],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(CQ,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,Gc,Yc,tl,Wc,Qc,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,jI,cQ,wK,vQ,RQ,ZQ,CQ,UK,$K,IK,EV,sQ,fQ,mQ,lQ],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(UK,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,Gc,Yc,tl,Wc,Qc,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,jI,cQ,wK,vQ,RQ,ZQ,CQ,UK,$K,IK,EV,sQ,fQ,mQ,lQ],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(EV,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,Gc,Yc,tl,Wc,Qc,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,jI,cQ,wK,vQ,RQ,ZQ,CQ,UK,$K,IK,EV,sQ,fQ,mQ,lQ],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(mQ,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,Gc,Yc,tl,Wc,Qc,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,jI,cQ,wK,vQ,RQ,ZQ,CQ,UK,$K,IK,EV,sQ,fQ,mQ,lQ],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]);let lX=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d,h){this.globalVarService=t,this._modalSecureKeyService=e,this._location=n,this.router=i,this.cn=r,this._pageLoaderService=o,this.dialog=s,this.sendDocsToSignService=a,this.invitationSignService=c,this.rejectSignatureService=l,this.signatureProcessesService=u,this.notificationsService=d,this.processStatusService=h,this.ELEMENT_DATA=[],this.displayedColumns=["select","estado","tituloDocumento","startedBy","enterpriseName","dateCreation","dateModified","symbol"],this.dataSource=new Sx(this.ELEMENT_DATA),this.selection=new Cf(!0,[]),this.nextButton=!1,this.userWhoStarted="",this.documentsCount=0,this.enterpriseName="",this.userSigning="",this.signatory=JSON.parse(sessionStorage.getItem("userDataExternal"))}ngOnInit(){this.user=JSON.parse(sessionStorage.getItem("userDataExternal")),this.dataSource.data=this.globalVarService.pdf_array,this.userStarted=this.globalVarService.pdf_userStarted,"signed"===this.globalVarService.state_docs&&(this.displayedColumns=["estado","tituloDocumento","startedBy","enterpriseName","dateCreation","dateModified","symbol"]),this.documentsCount=this.globalVarService.pdf_array.length,this.userSigning=null!=this.signatory?this.signatory.firstName+" "+this.signatory.lastName:"",this.userWhoStarted=this.globalVarService.pdf_userStarted.firstName+" "+this.globalVarService.pdf_userStarted.lastName}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?(this.selection.clear(),this.nextButton=!1):(this.dataSource.data.forEach(t=>this.selection.select(t)),this.nextButton=!0)}toggleCheckbox(t){this.cn.log("toggleCheckbox()"),this.selection.toggle(t),t.selected=!t.selected,this.nextButton=!!this.isAllSelected()}cancelButton(){this.cn.log("cancelButton()"),this._location.back()}sendDocsToSign(){this.cn.log("===== SEND DOCS TO SIGN ====="),new _U(this.cn,this._pageLoaderService,this.dialog,this.router,this.globalVarService,this.sendDocsToSignService,this.invitationSignService,this.signatureProcessesService,this.notificationsService).SendDocsToSign("",!1)}nextStep(){this.cn.log("nextStep()");const t={idProcess:this.globalVarService.processId,external:!0,email:this.user.email};this._pageLoaderService.show(),this.processStatusService.addProcessState(t).subscribe(t=>{this._pageLoaderService.hide(),t.operationBody.payment?t.operationBody.auth?this.showGeneralDialog("Documentos firmados.").subscribe(t=>{this._location.back()}):this.router.navigate([this.globalVarService.path_route+"authentication/auth-veriff"]):this.router.navigate([this.globalVarService.path_route+"payment/payment-summary"])},t=>{this.cn.log("nextStep() err:",t),this.showGeneralDialog("Ha ocurrido un error, vuelve a intentarlo.").subscribe(t=>{this._location.back()})})}openRejectSignatureDialog(){this.dialog.open(Aj,{height:"300px",width:"600px",data:{title:"Rechazar firma",text:"Razones por las cuales no firmas los documentos",textWarning:"Seguro quieres rechazar la firma de los documentos"}}).afterClosed().subscribe(t=>{void 0!==t&&""!==t&&this.rejectSignature(t)})}rejectSignature(t){this._pageLoaderService.show();const e=new Ij;e.processId=this.globalVarService.processId,e.identificationNumber=this.globalVarService.cc,e.message=t,this.cn.log("RejectSignature Request ===> ",e),this.rejectSignatureService.RejectSignature(e).subscribe(t=>{this.cn.log("RejectSignature Response ===> ",t);let e="";switch(this._pageLoaderService.hide(),t.operationCode){case 1e3:e="Tu respuesta ha sido enviada.";break;case 1010:e="Ha ocurrido un error, vuelve a intentarlo."}this.showGeneralDialog(e).subscribe(t=>{this._location.back()})},t=>{this._pageLoaderService.hide(),this.cn.log("rejectSignature() ERROR: ",t),this.showGeneralDialog("Ha ocurrido un error, vuelve a intentarlo.").subscribe(t=>{this._location.back()})})}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(cg),i.Ob(sg),i.Ob(o.n),i.Ob(Zs),i.Ob(Gi),i.Ob(pg),i.Ob(Jb),i.Ob(Ag),i.Ob(Cg),i.Ob(kg),i.Ob(Lg),i.Ob(Sg),i.Ob(Dg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-check-documents"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:12,vars:4,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"row"],["class","col-12 col-sm-9",4,"ngIf","ngIfElse"],["thenBlockTitle",""],["class","col-12 col-sm-9"],["elseBlockTitle",""],[1,"row","justify-content-center","list-docNoRegister"],["class","col-12 col-md-6",4,"ngFor","ngForOf"],["class","btns-actions text-center mb-4",4,"ngIf"],[1,"col-12","col-sm-9"],[1,"mb-4"],[1,"mb-5"],[1,"col-12","col-md-6"],[1,"item-docNoRegister"],[1,"numDocNoRegister"],[1,"cnt-infoDocNoRegister"],[1,"DocNoRegister"],[1,"iconDocNoRegister"],[1,"infoDocNoRegister"],[1,"btnDocNoRegister"],[4,"ngIf","ngIfThen","ngIfElse"],["thenBlock",""],["elseBlock",""],["mat-raised-button","",3,"href"],[1,"btns-actions","text-center","mb-4"],["mat-raised-button","",1,"mr-4",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Jc(3,eX,13,8,"div",3),i.Jc(4,nX,0,0,"ng-template",null,4,i.Kc),i.Jc(6,iX,3,0,"ng-template",5,6,i.Kc),i.Tb(),i.Ub(8,"div",7),i.Jc(9,aX,19,5,"div",8),i.Tb(),i.Jc(10,cX,5,0,"div",9),i.Tb(),i.Tb(),i.Pb(11,"aswc-page-loader-default")),2&t){const t=i.uc(7);i.Db(3),i.mc("ngIf","signed"!==e.globalVarService.state_docs)("ngIfElse",t),i.Db(6),i.mc("ngForOf",e.globalVarService.pdf_array),i.Db(1),i.mc("ngIf","signed"!==e.globalVarService.state_docs)}},styles:[".cnt-expTerm[_ngcontent-%COMP%]{background-color:rgba(190,210,230,.4);border:2px solid #86d2df;color:#22385e;display:flex;width:100%;padding:10px;align-items:center;border-radius:5px}.cnt-expTerm[_ngcontent-%COMP%]   .icon-expTerm[_ngcontent-%COMP%]{margin-right:10px}.cnt-expTerm[_ngcontent-%COMP%]   .icon-expTerm[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:44px;width:auto;height:auto}.cnt-expTerm[_ngcontent-%COMP%]   .info-expTerm[_ngcontent-%COMP%]   .date-expTerm[_ngcontent-%COMP%], .cnt-expTerm[_ngcontent-%COMP%]   .info-expTerm[_ngcontent-%COMP%]   .tag-expTerm[_ngcontent-%COMP%]{display:block}.cnt-expTerm[_ngcontent-%COMP%]   .info-expTerm[_ngcontent-%COMP%]   .tag-expTerm[_ngcontent-%COMP%]{font-size:.8rem}.cnt-expTerm[_ngcontent-%COMP%]   .info-expTerm[_ngcontent-%COMP%]   .date-expTerm[_ngcontent-%COMP%]{font-weight:700}.list-docNoRegister[_ngcontent-%COMP%]{padding:2.6rem 0 .8rem}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]{position:relative;padding:1rem;margin-bottom:1.8rem;box-shadow:3px 3px 8px 0 rgba(0,0,0,.24)}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .numDocNoRegister[_ngcontent-%COMP%]{background-color:#22385e;color:#fff;position:absolute;display:flex;align-items:center;width:40px;left:0;top:0;bottom:0;padding:5px;font-size:20px;font-weight:700;justify-content:center}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]{margin-left:40px;display:flex;align-items:center;justify-content:space-between}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]{display:flex;align-items:center}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .iconDocNoRegister[_ngcontent-%COMP%]{margin-right:6px}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .iconDocNoRegister[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{font-size:48px;color:rgba(0,0,0,.3);height:auto;width:auto}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .infoDocNoRegister[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-width:240px;margin-bottom:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .btnDocNoRegister[_ngcontent-%COMP%]{text-align:right}.accept-PersonalInfo[_ngcontent-%COMP%]{width:100%;max-width:538px;display:flex;margin:1rem auto;align-items:center;justify-content:center}.accept-PersonalInfo[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:.6rem}.btns-actions[_ngcontent-%COMP%]{margin-top:2rem}table[_ngcontent-%COMP%]{width:100%}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}.info-text[_ngcontent-%COMP%]{display:flex;align-items:center}.info-text[_ngcontent-%COMP%]   .icon-Select[_ngcontent-%COMP%]{color:#4fbfd3;margin-right:8px;font-size:1.8rem}.link[_ngcontent-%COMP%]{color:#3c948c!important;cursor:pointer}.link[_ngcontent-%COMP%]:hover{text-decoration:underline!important}@media (max-width:992px){.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .infoDocNoRegister[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-width:128px}}@media (max-width:768px){.list-docNoRegister[_ngcontent-%COMP%]   .item-docNoRegister[_ngcontent-%COMP%]   .cnt-infoDocNoRegister[_ngcontent-%COMP%]   .DocNoRegister[_ngcontent-%COMP%]   .infoDocNoRegister[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{max-width:128px}}"]}),t})(),uX=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-corporate-public"]],decls:4,vars:0,template:function(t,e){1&t&&(i.Pb(0,"aswc-common-user-header-public"),i.Pb(1,"aswc-breadcrumbs"),i.Pb(2,"router-outlet"),i.Pb(3,"aswc-footer-public"))},directives:[ig,nS,ra,ng],styles:[".p_container[_ngcontent-%COMP%]{background:#fff;width:100%;min-height:100%}"]}),t})();class dX{constructor(){this.identificationNumber="",this.idProcess="",this.verifyCode=""}}function hX(t,e){1&t&&(i.Ub(0,"mat-error",13),i.Lc(1," El N\xfamero de documento debe ser n\xfamerico y tener entre 6 y 11 caracteres. "),i.Tb())}let pX=(()=>{class t{constructor(t,e,n,i,r,o,s,a,c,l,u,d){this._fb=t,this.router=e,this.route=n,this.globalVarService=i,this.processStateService=r,this.docsToSignService=o,this.secureKeyService=s,this.usersService=a,this.invitationSignService=c,this.cn=l,this._pageLoaderService=u,this.dialog=d,this.serviceError=!1,this.matchError=!1,this.stateError=!1,this.user=new Tl}ngOnInit(){this.myFormIdentityCard=this._fb.group({cc:[null,Ha.compose([Ha.required,Ha.minLength(6),Ha.maxLength(13),Ha.pattern("[0-9]+")])]}),this.loadVariables()}loadVariables(){this.cn.log("loadVariables()"),this.globalVarService.processId=this.route.snapshot.paramMap.get("processId"),this.veryfyCode=this.route.snapshot.paramMap.get("veryfyCode"),this.globalVarService.type_sign="external"}nextStep(){this.cn.log("nextStep()"),!1!==this.myFormIdentityCard.valid&&(this.globalVarService.cc=this.myFormIdentityCard.get("cc").value,this.cn.log(this.globalVarService.cc),this.isInvitationSign())}isInvitationSign(){this.cn.log("isInvitationSign()"),this._pageLoaderService.show();const t=new dX;t.identificationNumber=this.globalVarService.cc,t.idProcess=this.globalVarService.processId,t.verifyCode=this.veryfyCode,this.invitationSignService.IsInvitedToSign(t).subscribe(t=>{this.cn.log("isInvitationSign()",t.body),this.user.id=t.body.operationBody.users[0].id,this.user.firstName=t.body.operationBody.users[0].firstName,this.user.lastName=t.body.operationBody.users[0].lastName,this.user.email=t.body.operationBody.users[0].email,this.user.address=t.body.operationBody.users[0].address,this.user.identificationNumber=t.body.operationBody.users[0].identificationNumber,this.user.phone=t.body.operationBody.users[0].phone,this.user.enterpriseId=t.body.operationBody.users[0].enterpriseId,this.user.enterpriseName=t.body.operationBody.users[0].enterpriseName,this.user.role=t.body.operationBody.users[0].role,this.user.dialCode=t.body.operationBody.users[0].dialCode,this.user.notaryId=t.body.operationBody.users[0].notaryId,this.globalVarService.authMethods=t.body.operationBody.users[0].invitationSign.authMethods,this.globalVarService.dateProcessSign=t.body.operationBody.dateProcessSign,this.getDocsToSign(t.body.operationBody.processTimeValid)},t=>{this._pageLoaderService.hide(),this.cn.error("isInvitationSign():",t),this.showGeneralDialog("Id. De proceso y/o Documento no coinciden").subscribe()})}getDocsToSign(t){this.cn.log("getDocsToSign()");const e=new XV;e._identificationNumber=this.globalVarService.cc,e._email=this.user.email,e._idProcess=this.globalVarService.processId,this.docsToSignService.getDocsToSign(e).subscribe(e=>{switch(this.cn.log("getDocsToSign() reply:",e),e.operationCode){case 100:t||"signed"===e.status?(this.globalVarService.state_docs=e.status,this.globalVarService.pdf_array=e.files,this.globalVarService.pdf_userStarted=e.userLoaded,this.saveInLocalStorage(),this.globalVarService.pdf_array.length>0&&("Sin pagar"===this.globalVarService.pdf_array[0].stateSignatureUser?this.goToPayment():this.goToReadDocs())):this.showGeneralDialog("El tiempo para firmar los documentos se ha superado.").subscribe();break;case 301:this.showGeneralDialog("Informaci\xf3n incompleta").subscribe();break;case 901:this.showGeneralDialog("El proceso ha sido rechazado.").subscribe();break;default:this.showGeneralDialog("Id. De proceso y/o Documento no coinciden.").subscribe()}this._pageLoaderService.hide()},t=>{this._pageLoaderService.hide(),this.cn.error("getDocsToSign() error:",t)})}goToReadDocs(){this.cn.log("goToReadDocs()"),this.globalVarService.path_route="corporate/pb/",this.globalVarService.select_signers_type="-1",this.globalVarService.type_signature=pU.SIMPLE,this.router.navigate(["corporate/pb/acceptance-of-documents"])}goToPayment(){this.cn.log("goToReadDocs()"),this.globalVarService.path_route="corporate/pb/",this.globalVarService.select_signers_type="-1",this.globalVarService.type_signature=pU.SIMPLE,this.router.navigate(["corporate/pb/payment/payment-summary"])}saveInLocalStorage(){this.cn.log("saveInLocalStorage()"),this.cn.log("UserDataExternal: "+JSON.stringify(this.user)),sessionStorage.setItem("userDataExternal",JSON.stringify(this.user))}showGeneralDialog(t,e,n){return this.cn.log("showGeneralDialog()"),void 0===e&&(e={title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}),void 0===n&&(n=fU),this.dialog.open(n,{width:"830px",data:e}).afterClosed()}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(fl),i.Ob(Zs),i.Ob(Fo),i.Ob(cg),i.Ob(Fg),i.Ob(wg),i.Ob(Eg),i.Ob(jg),i.Ob(Cg),i.Ob(Gi),i.Ob(pg),i.Ob(Jb))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-identification-document"]],decls:22,vars:2,consts:[[1,"p_container"],[1,"container","wt-430","pt-5","pb-5","mx-auto"],[1,"cnt-top-up-balance","cnt_white"],[1,"bnr-top-up-balance"],["src","./assets/images/Iconos/doc-id.svg","alt","",1,"ico-top-up-balance"],[1,"sc-title-top-up-balance","text-center"],[1,"content-top-up-balance"],["id","itemResetPsw",1,"form-login"],["novalidate","",3,"formGroup"],["matInput","","placeholder","N\xfamero de documento","formControlName","cc"],["class","error-message",4,"ngIf"],[1,"mt-2"],["type","button","mat-raised-button","","color","primary",1,"fll_wt",3,"click"],[1,"error-message"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"div",3),i.Pb(4,"img",4),i.Tb(),i.Ub(5,"div",5),i.Ub(6,"h2"),i.Lc(7,"N\xfamero de documento"),i.Tb(),i.Tb(),i.Ub(8,"div",6),i.Ub(9,"div",7),i.Ub(10,"div"),i.Ub(11,"p"),i.Lc(12,"Para continuar, diligencia tu n\xfamero de documento a continuaci\xf3n."),i.Tb(),i.Tb(),i.Ub(13,"form",8),i.Ub(14,"mat-form-field"),i.Pb(15,"input",9),i.Jc(16,hX,2,0,"mat-error",10),i.Tb(),i.Ub(17,"div",11),i.Pb(18,"br"),i.Ub(19,"button",12),i.cc("click",(function(){return e.nextStep()})),i.Lc(20,"Continuar"),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Tb(),i.Pb(21,"aswc-page-loader-default")),2&t&&(i.Db(13),i.mc("formGroup",e.myFormIdentityCard),i.Db(3),i.mc("ngIf",!e.myFormIdentityCard.controls.cc.valid&&e.myFormIdentityCard.controls.cc.touched))},styles:[".cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]{background:#22385e;color:#fff;text-align:center;margin:-1rem -1rem 1rem;padding:1rem;border-top-left-radius:2px;border-top-right-radius:2px}.cnt-top-up-balance[_ngcontent-%COMP%]   .bnr-top-up-balance[_ngcontent-%COMP%]   .ico-top-up-balance[_ngcontent-%COMP%]{display:block;width:6.4rem;margin:0 auto}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]{margin-bottom:1rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.4rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;color:#8b8d90}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-tag[_ngcontent-%COMP%]{font-size:.8rem}.cnt-top-up-balance[_ngcontent-%COMP%]   .sc-title-top-up-balance[_ngcontent-%COMP%]   .sc-subtitle-top-up-balance[_ngcontent-%COMP%]   span.balance-result[_ngcontent-%COMP%]{font-size:1.2rem;letter-spacing:2px}"]}),t})(),mX=(()=>{class t{constructor(t,e,n,i,r,o,s){this.dialog=t,this.router=e,this.activatedRoute=n,this.cn=i,this._pageLoaderService=r,this.invitationSignService=o,this.preRegisterDataService=s}ngOnInit(){this.loadVariables(),this.getInvitationSignUser()}loadVariables(){this.processId=this.activatedRoute.snapshot.paramMap.get("processId"),this.verifyCode=this.activatedRoute.snapshot.paramMap.get("verifyCode"),this.cn.log("ProcessId: ===> "+this.processId),this.cn.log("VerifyCode: ===> "+this.verifyCode)}getInvitationSignUser(){this._pageLoaderService.show(),this.invitationSignService.GetInvitationSignUser(this.processId,this.verifyCode).subscribe(t=>{this.cn.log("=====> getInvitationSignUser() RESULT: "),this.cn.log(t),this._pageLoaderService.hide(),this.validateInvitationSignUserResponse(t)},t=>{this.cn.error("=====> getInvitationSignUser() ERROR: "),this.cn.error(t),this._pageLoaderService.hide(),this.showDialogInfo("Ha ocurrido un error, vuelve ha intentarlo.")})}showDialogInfo(t){return this.dialog.open(fU,{width:"830px",data:{title:"Informaci\xf3n",content:t,actions:[{text:"Aceptar",value:"accepted",funct:"close"}]}}).afterClosed()}validateInvitationSignUserResponse(t){switch(t.operationCode){case 1e3:this.showDialogInfo("Debes estar registrado en enotary para realizar tramites notariales.").subscribe(t=>{this.router.navigate(["/login"])});break;case 1001:this.showDialogInfo("Debes estar registrado en enotary para realizar tramites notariales.").subscribe(e=>{this.preRegisterDataService.idProcess=this.processId,this.preRegisterDataService.verifyCode=this.verifyCode,this.preRegisterDataService.user=t.operationBody});break;case 1010:this.showDialogInfo("Informaci\xf3n incompleta.").subscribe(t=>{this.router.navigate(["/"])});break;case 1020:this.showDialogInfo("Proceso o Usuario no encontrados.").subscribe(t=>{this.router.navigate(["/"])});break;case 1030:this.showDialogInfo("La invitaci\xf3n ha expirado.").subscribe(t=>{this.router.navigate(["/"])})}}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(Jb),i.Ob(Zs),i.Ob(Fo),i.Ob(Gi),i.Ob(pg),i.Ob(Cg),i.Ob(b$))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-invitation-sign"]],decls:2,vars:0,template:function(t,e){1&t&&(i.Ub(0,"p"),i.Lc(1,"AutenTIC Sign"),i.Tb())},styles:[""]}),t})();function fX(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1," Estado "),i.Tb())}function bX(t,e){if(1&t&&(i.Ub(0,"td",17),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc("",t.state," ")}}function gX(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1," Titulo del Documento "),i.Tb())}function _X(t,e){if(1&t&&(i.Ub(0,"td",17),i.Lc(1),i.Tb()),2&t){const t=e.$implicit;i.Db(1),i.Nc(" ",t.fileName," ")}}function vX(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1," Fecha y Hora creaci\xf3n "),i.Tb())}function yX(t,e){if(1&t&&(i.Ub(0,"td",17),i.Ub(1,"span",18),i.Ub(2,"span",19),i.Lc(3),i.hc(4,"date"),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.Mc(i.jc(4,1,t.regDate,"dd/MM/yyyy, hh:mm a"))}}function wX(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1," Fecha y Hora \xdaltimo Cambio "),i.Tb())}function CX(t,e){if(1&t&&(i.Ub(0,"div"),i.Lc(1),i.hc(2,"date"),i.Tb()),2&t){const t=i.gc().$implicit;i.Db(1),i.Nc(" ",i.jc(2,1,t.lastChangeDate,"dd/MM/yyyy, hh:mm a")," ")}}function xX(t,e){if(1&t&&(i.Ub(0,"td",17),i.Ub(1,"span",18),i.Ub(2,"span",19),i.Jc(3,CX,3,4,"div",20),i.Tb(),i.Tb(),i.Tb()),2&t){const t=e.$implicit;i.Db(3),i.mc("ngIf",t.lastChangeDate.length>2)}}function OX(t,e){1&t&&(i.Ub(0,"th",16),i.Lc(1,"Descargar"),i.Tb())}function SX(t,e){1&t&&i.Pb(0,"div")}function TX(t,e){if(1&t&&(i.Ub(0,"a",25),i.Ub(1,"mat-icon"),i.Lc(2,"cloud_download"),i.Tb(),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.path,i.Bc)}}function DX(t,e){if(1&t&&(i.Ub(0,"a",25),i.Ub(1,"mat-icon"),i.Lc(2,"cloud_download"),i.Tb(),i.Tb()),2&t){const t=i.gc().$implicit;i.nc("href",t.signedPath,i.Bc)}}function kX(t,e){if(1&t&&(i.Ub(0,"td",21),i.Jc(1,SX,1,0,"div",22),i.Jc(2,TX,3,1,"ng-template",null,23,i.Kc),i.Jc(4,DX,3,1,"ng-template",null,24,i.Kc),i.Tb()),2&t){const t=e.$implicit,n=i.uc(3),r=i.uc(5);i.Db(1),i.mc("ngIf","Firmado"!==t.state)("ngIfThen",n)("ngIfElse",r)}}function PX(t,e){1&t&&i.Pb(0,"tr",26)}function EX(t,e){if(1&t){const t=i.Vb();i.Ub(0,"tr",27),i.cc("click",(function(){i.yc(t);const n=e.$implicit;return i.gc().selection.toggle(n)})),i.Tb()}}const AX=function(){return[10,20,30]};let IX=(()=>{class t{constructor(t,e,n,i){this.docsToSignService=t,this.route=e,this.cn=n,this._pageLoaderService=i,this.ELEMENT_DATA=[],this.displayedColumns=["estado","tituloDocumento","dateCreation","dateModified","symbol"],this.dataSource=new Sx(this.ELEMENT_DATA),this.selection=new Cf(!0,[]),this.nextButton=!1}ngAfterViewInit(){this.dataSource.paginator=this.paginator,tL.SetUpPaginator(this.paginator)}ngOnInit(){this.idProcess=this.route.snapshot.paramMap.get("processId"),this.getDocsToSignByIdProcess()}getDocsToSignByIdProcess(){this.cn.log("getDocsToSignByIdProcess()"),console.log("init",this.idProcess),this._pageLoaderService.show(),this.docsToSignService.getDocsToSignByIdProcess(this.idProcess).subscribe(t=>{this.dataSource.data=t.files,this.paginator._changePageSize(this.paginator.pageSize),console.log("getDocsToSignByIdProcess() reply: ",t),this._pageLoaderService.hide()},t=>{console.error("getDocsToSignByIdProcess() error: ",t),this._pageLoaderService.hide()})}}return t.\u0275fac=function(e){return new(e||t)(i.Ob(wg),i.Ob(Fo),i.Ob(Gi),i.Ob(pg))},t.\u0275cmp=i.Ib({type:t,selectors:[["aswc-view-documents-signed"]],viewQuery:function(t,e){var n;1&t&&i.Qc(EP,!0),2&t&&i.tc(n=i.dc())&&(e.paginator=n.first)},decls:26,vars:5,consts:[[1,"p_container"],[1,"container","pt-5","pb-5"],[1,"mb-5"],[1,"mat-elevation-z8","rp-tableST"],["mat-table","",1,"custom_tableST",3,"dataSource"],["matColumnDef","estado"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","tituloDocumento"],["matColumnDef","dateCreation"],["matColumnDef","dateModified"],["matColumnDef","symbol"],["mat-cell","","class","text-right",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"tb-fechaHora"],[1,"tb-fecha"],[4,"ngIf"],["mat-cell","",1,"text-right"],[4,"ngIf","ngIfThen","ngIfElse"],["thenBlock",""],["elseBlock",""],["mat-icon-button","",3,"href"],["mat-header-row",""],["mat-row","",3,"click"]],template:function(t,e){1&t&&(i.Ub(0,"div",0),i.Ub(1,"div",1),i.Ub(2,"div",2),i.Ub(3,"h4"),i.Lc(4,"Vista de Documentos"),i.Tb(),i.Tb(),i.Ub(5,"div",3),i.Ub(6,"table",4),i.Sb(7,5),i.Jc(8,fX,2,0,"th",6),i.Jc(9,bX,2,1,"td",7),i.Rb(),i.Sb(10,8),i.Jc(11,gX,2,0,"th",6),i.Jc(12,_X,2,1,"td",7),i.Rb(),i.Sb(13,9),i.Jc(14,vX,2,0,"th",6),i.Jc(15,yX,5,4,"td",7),i.Rb(),i.Sb(16,10),i.Jc(17,wX,2,0,"th",6),i.Jc(18,xX,4,1,"td",7),i.Rb(),i.Sb(19,11),i.Jc(20,OX,2,0,"th",6),i.Jc(21,kX,6,3,"td",12),i.Rb(),i.Jc(22,PX,1,0,"tr",13),i.Jc(23,EX,1,0,"tr",14),i.Tb(),i.Pb(24,"mat-paginator",15),i.Tb(),i.Tb(),i.Tb(),i.Pb(25,"aswc-page-loader-default")),2&t&&(i.Db(6),i.mc("dataSource",e.dataSource),i.Db(16),i.mc("matHeaderRowDef",e.displayedColumns),i.Db(1),i.mc("matRowDefColumns",e.displayedColumns),i.Db(1),i.mc("pageSizeOptions",i.qc(4,AX)))},styles:["table[_ngcontent-%COMP%]{width:100%}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]{border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);transition:all .5s ease}tr.mat-footer-row[_ngcontent-%COMP%], tr.mat-row[_ngcontent-%COMP%]:hover{background:rgba(0,0,0,.05)}td.mat-cell[_ngcontent-%COMP%]{font-size:.8rem}.mat-elevation-z8[_ngcontent-%COMP%]{box-shadow:none}.tb-date[_ngcontent-%COMP%], .tb-dateTime[_ngcontent-%COMP%], .tb-time[_ngcontent-%COMP%]{display:block}.tb-time[_ngcontent-%COMP%]{font-size:.7rem;color:#6d6f71}"]}),t})();const MX=ma.forChild([{path:"corporate/pb",component:uX,children:[{path:"invitation-sign/:processId/:verifyCode",component:mX,data:{titulo:"Proceso de firma"}},{path:"identification-document/:processId/:veryfyCode",component:pX,data:{titulo:"Documento de identidad"}},{path:"terms-and-conditions",component:eg,data:{titulo:"Terminos y condiciones"}},{path:"acceptance-of-documents",component:lX,data:{titulo:"Aceptaci\xf3n de documentos"}},{path:"view-documents-signed/:processId",component:IX,data:{titulo:"Ver Documentos"}},{path:"authentication",children:[{path:"auth-methods",component:eL,data:{titulo:"M\xe9todos de autenticaci\xf3n"}},{path:"auth-otp",component:hL,data:{titulo:"Authentication Code"}},{path:"auth-challenge-questions",component:WU,data:{titulo:"C\xf3digo de autenticaci\xf3n"}},{path:"auth-mati",component:XU,data:{titulo:"Reconocimiento facial"}},{path:"auth-veriff",component:DG,data:{titulo:"Reconocimiento facial Veriff"}}]},{path:"payment",children:[{path:"payment-summary",component:Yq,data:{titulo:"Resumen pago"}},{path:"response",component:KH,data:{titulo:"Estado de la transacci\xf3n"}},{path:"response-credibanco",component:BG,data:{titulo:"Estado de la recarga"}}]},{path:"messages",children:[{path:"signed-docs",component:IB,data:{titulo:"Documentos firmados"}},{path:"pending-payment",component:EB,data:{titulo:"Pendiente por verificacion"}}]},{path:"multimedia",children:[{path:"capture/:authenticationCode",component:FU,data:{titulo:"Multimedia"}}]}]}]);let UX=(()=>{class t{}return t.\u0275mod=i.Mb({type:t}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)},imports:[[o.c,MX,VY,bl,gl,ni,PT,aS,UT,Hm,JT,I_,$_,hD,Xw,Sk,Zb,K_,Qk,_P,Qv,dy,By,Ib,Wd,AP,VP,KP,hE,lh,cw,ES,VE,PE,WE,hA,Ox,dI,Lh,Hx,RI,NY]]}),t})();i.Cc(pX,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,uX,pX,lX,IX,Aj,mX],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(lX,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,uX,pX,lX,IX,Aj,mX],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]),i.Cc(IX,[o.q,o.r,o.s,o.t,o.A,o.w,o.x,o.y,o.z,o.u,o.v,ra,ta,ea,ia,js,Sl,Mb,ng,ig,mT,d_,nS,FY,zc,sc,uc,Aa,Qa,nc,ka,oc,lc,tc,Na,Fa,il,ll,dl,pl,rl,al,Bc,Fc,Uc,Gc,Yc,tl,Wc,Qc,Sf,xT,Oh,_h,kT,OT,vd,sS,MT,zm,qm,zT,GT,P_,E_,A_,__,v_,y_,w_,C_,O_,S_,T_,x_,D_,k_,q_,G_,cD,eD,uD,nD,ZT,tD,Gw,Yw,zw,Lw,qw,$w,Kw,Vw,Bw,ZD,MD,ck,sk,mk,bk,fk,JD,QD,YD,XD,Ok,vk,yk,wk,Fb,$b,Wb,Kb,Qb,W_,Wk,Hk,Gk,Jk,$k,Yk,Bk,gP,iP,rP,Qd,sP,aP,oP,Kv,ty,ey,bv,Uv,Cv,xv,Ov,Tv,kv,uy,iy,ky,Ty,Iy,Py,Ey,Ay,uh,jy,Vy,Tb,yb,Eb,bb,EP,NP,$P,WP,sE,dE,ch,aw,sw,xS,OS,CS,TS,kS,SS,RE,TE,OE,$E,iA,dA,JC,KC,cx,tx,$C,hx,XC,ux,nx,sx,rx,mx,_x,bx,yx,Cx,QA,LA,jA,sI,uI,MA,Uh,Mh,zx,qx,kI,TI,PI,UI,II,SI,AI,GH,KH,sj,YB,KV,VB,eL,PB,hL,MB,YJ,xG,IB,fU,_B,fq,Ej,xq,Dq,Sq,Pq,dR,GL,AL,eg,RB,tg,hR,bq,AB,FU,ZH,sL,Yq,QV,MY,RY,pq,Wz,$z,ez,KB,$B,Nz,Uz,Fz,xB,kB,IJ,xJ,IY,oU,cY,hY,mY,BG,DG,uX,pX,lX,IX,Aj,mX],[o.b,o.H,o.p,o.k,o.F,o.g,o.D,o.G,o.d,o.f,o.i,o.j,o.l]);let LX=(()=>{class t{constructor(){this.requestInFlight$=new dr(!1)}setHttpStatus(t){this.requestInFlight$.next(t)}getHttpStatus(){return this.requestInFlight$.asObservable()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})(),RX=(()=>{class t{constructor(t,e,n){this.cn=t,this.kcSvc=e,this.authService=n}intercept(t,e){if(-1===t.url.search(r.endpointKeycloak)&&-1===t.url.search("free")&&-1===t.url.search("https://maps.googleapis.com")&&-1===t.url.search("invitationsign")&&-1===t.url.search("/getfiles/")&&-1===t.url.search("https://api.ipify.org")){let e,n=this.authService.token;void 0!==n?(this.cn.log("::::: TOKEN SENT :::::"),e=t.headers.set("x-token",n)):(n=sessionStorage.getItem("x-token-external"),this.cn.log("::::: TOKEN EXTERNAL SENDED :::::"),e=t.headers.set("x-token",n)),t=t.clone({headers:e})}let n;return this.cn.log("Request intercepted: ",t),e.handle(t).pipe(Object(KU.tap)(t=>{t instanceof k&&(n=t)},()=>{}),Object(KU.finalize)(()=>{}))}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(Gi),i.Yb(cr),i.Yb(qS))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const NX=[{provide:M,useClass:RX,multi:!0}];let FX=(()=>{class t{constructor(t,e,n){this._globalVarsService=t,this.router=e,this.cn=n}canActivate(){return this.cn.log("canActivate()"),this.cn.log(this._globalVarsService.cc),this.cn.log(this._globalVarsService.sesId),this.cn.log("Bloqueado por guard"),this.router.navigate(["index"]),!1}}return t.\u0275fac=function(e){return new(e||t)(i.Yb(cg),i.Yb(Zs),i.Yb(Gi))},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const VX=[];let jX,BX=(()=>{class t{constructor(){this.scripts={},VX.forEach(t=>{this.scripts[t.name]={loaded:!1,src:t.src}})}load(...t){const e=[];return t.forEach(t=>e.push(this.loadScript(t))),Promise.all(e)}loadScript(t){return new Promise((e,n)=>{if(this.scripts[t].loaded)e({script:t,loaded:!0,status:"Already Loaded"});else{const n=document.createElement("script");n.type="text/javascript",n.src=this.scripts[t].src,n.readyState?n.onreadystatechange=()=>{"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,this.scripts[t].loaded=!0,e({script:t,loaded:!0,status:"Loaded"}))}:n.onload=()=>{this.scripts[t].loaded=!0,e({script:t,loaded:!0,status:"Loaded"})},n.onerror=n=>e({script:t,loaded:!1,status:"Loaded"}),document.getElementsByTagName("head")[0].appendChild(n)}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Kb({token:t,factory:t.\u0275fac}),t})();const zX=[RX,LX];Object(o.N)($.a);let qX=(()=>{class t{constructor(t,e){this.translate=t,this.injector=e,t.addLangs(["es"]),t.setDefaultLang("es"),t.use("es"),jX=this.injector}}return t.\u0275mod=i.Mb({type:t,bootstrap:[Sa]}),t.\u0275inj=i.Lb({factory:function(e){return new(e||t)(i.Yb(Bi),i.Yb(i.t))},providers:[cr,BX,xa,FX,NX,zX],imports:[[Ji.forRoot({env:!r.logging}),zi.forRoot(),Tt,Oa,QY,rK,UX,tX,NY,J,ni,qi.AngularFireModule.initializeApp(r.firebaseConfig),Hi.AngularFireAuthModule]]}),t})();r.production&&Object(i.W)(),Ot().bootstrapModule(qX).catch(t=>console.log(t))},zVF4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("30Go"),r={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw s(e)},s=function(t){return new Error("Firebase Database ("+r.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},a=function(t){for(var e=[],n=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=63&r|128):55296==(64512&r)&&i+1<t.length&&56320==(64512&t.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&t.charCodeAt(++i)),e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128)}return e},c={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,i=[],r=0;r<t.length;r+=3){var o=t[r],s=r+1<t.length,a=s?t[r+1]:0,c=r+2<t.length,l=c?t[r+2]:0,u=(15&a)<<2|l>>6,d=63&l;c||(d=64,s||(u=64)),i.push(n[o>>2],n[(3&o)<<4|a>>4],n[u],n[d])}return i.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(a(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,i=0;n<t.length;){var r=t[n++];if(r<128)e[i++]=String.fromCharCode(r);else if(r>191&&r<224){var o=t[n++];e[i++]=String.fromCharCode((31&r)<<6|63&o)}else if(r>239&&r<365){var s=((7&r)<<18|(63&(o=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[i++]=String.fromCharCode(55296+(s>>10)),e[i++]=String.fromCharCode(56320+(1023&s))}else{o=t[n++];var a=t[n++];e[i++]=String.fromCharCode((15&r)<<12|(63&o)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,i=[],r=0;r<t.length;){var o=n[t.charAt(r++)],s=r<t.length?n[t.charAt(r)]:0,a=++r<t.length?n[t.charAt(r)]:64,c=++r<t.length?n[t.charAt(r)]:64;if(++r,null==o||null==s||null==a||null==c)throw Error();i.push(o<<2|s>>4),64!==a&&(i.push(s<<4&240|a>>2),64!==c&&i.push(a<<6&192|c))}return i},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},l=function(t){try{return c.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function u(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=u(t[n],e[n]));return t}var d=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,i){n?e.reject(n):e.resolve(i),"function"==typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,i))}},t}();function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function p(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}var m=function(t){function e(n,i){var r=t.call(this,i)||this;return r.code=n,r.name="FirebaseError",Object.setPrototypeOf(r,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,f.prototype.create),r}return i.__extends(e,t),e}(Error),f=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=e[0]||{},r=this.service+"/"+t,o=this.errors[t],s=o?b(o,i):"Error",a=this.serviceName+": "+s+" ("+r+").",c=new m(r,a),l=0,u=Object.keys(i);l<u.length;l++){var d=u[l];"_"!==d.slice(-1)&&(d in c&&console.warn('Overwriting FirebaseError base field "'+d+'" can cause unexpected behavior.'),c[d]=i[d])}return c},t}();function b(t,e){return t.replace(g,(function(t,n){var i=e[n];return null!=i?String(i):"<"+n+"?>"}))}var g=/\{\$([^}]+)}/g;function _(t){return JSON.parse(t)}var v=function(t){var e={},n={},i={},r="";try{var o=t.split(".");e=_(l(o[0])||""),n=_(l(o[1])||""),r=o[2],i=n.d||{},delete n.d}catch(s){}return{header:e,claims:n,data:i,signature:r}},y=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"==typeof t)for(var i=0;i<16;i++)n[i]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(i=0;i<16;i++)n[i]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(i=16;i<80;i++)n[i]=4294967295&((d=n[i-3]^n[i-8]^n[i-14]^n[i-16])<<1|d>>>31);var r,o,s=this.chain_[0],a=this.chain_[1],c=this.chain_[2],l=this.chain_[3],u=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(r=l^a&(c^l),o=1518500249):(r=a^c^l,o=1859775393):i<60?(r=a&c|l&(a|c),o=2400959708):(r=a^c^l,o=3395469782);var d=(s<<5|s>>>27)+r+u+o+n[i]&4294967295;u=l,l=c,c=4294967295&(a<<30|a>>>2),a=s,s=d}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+u&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,i=0,r=this.buf_,o=this.inbuf_;i<e;){if(0===o)for(;i<=n;)this.compress_(t,i),i+=this.blockSize;if("string"==typeof t){for(;i<e;)if(r[o]=t.charCodeAt(i),++i,++o===this.blockSize){this.compress_(r),o=0;break}}else for(;i<e;)if(r[o]=t[i],++i,++o===this.blockSize){this.compress_(r),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.update(this.pad_,this.inbuf_<56?56-this.inbuf_:this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var i=0;for(n=0;n<5;n++)for(var r=24;r>=0;r-=8)t[i]=this.chain_[n]>>r&255,++i;return t},t}(),w=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(n)})).catch((function(t){n.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,n){var i,r=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(i=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,i=["next","error","complete"];n<i.length;n++){var r=i[n];if(r in t&&"function"==typeof t[r])return!0}return!1}(t)?t:{next:t,error:e,complete:n}).next&&(i.next=C),void 0===i.error&&(i.error=C),void 0===i.complete&&(i.complete=C);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{r.finalError?i.error(r.finalError):i.complete()}catch(t){}})),this.observers.push(i),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(i){"undefined"!=typeof console&&console.error&&console.error(i)}}))},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((function(){e.observers=void 0,e.onNoObservers=void 0})))},t}();function C(){}function x(t,e,n){var i="";switch(e){case 1:i=n?"first":"First";break;case 2:i=n?"second":"Second";break;case 3:i=n?"third":"Third";break;case 4:i=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}return t+" failed: "+i+" argument "}e.CONSTANTS=r,e.Deferred=d,e.ErrorFactory=f,e.FirebaseError=m,e.MAX_VALUE_MILLIS=144e5,e.RANDOM_FACTOR=.5,e.Sha1=y,e.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},e.assert=o,e.assertionError=s,e.async=function(t,e){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];Promise.resolve(!0).then((function(){t.apply(void 0,n)})).catch((function(t){e&&e(t)}))}},e.base64=c,e.base64Decode=l,e.base64Encode=function(t){var e=a(t);return c.encodeByteArray(e,!0)},e.calculateBackoffMillis=function(t,e,n){void 0===e&&(e=1e3),void 0===n&&(n=2);var i=e*Math.pow(n,t),r=Math.round(.5*i*(Math.random()-.5)*2);return Math.min(144e5,i+r)},e.contains=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.createSubscribe=function(t,e){var n=new w(t,e);return n.subscribe.bind(n)},e.decode=v,e.deepCopy=function(t){return u(void 0,t)},e.deepExtend=u,e.errorPrefix=x,e.getUA=h,e.isAdmin=function(t){var e=v(t).claims;return"object"==typeof e&&!0===e.admin},e.isBrowser=function(){return"object"==typeof self&&self.self===self},e.isBrowserExtension=function(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id},e.isElectron=function(){return h().indexOf("Electron/")>=0},e.isEmpty=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},e.isIE=function(){var t=h();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isIndexedDBAvailable=function(){return"indexedDB"in self&&null!=indexedDB},e.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},e.isNode=p,e.isNodeSdk=function(){return!0===r.NODE_CLIENT||!0===r.NODE_ADMIN},e.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},e.isSafari=function(){return!p()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},e.isUWP=function(){return h().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=v(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=v(t).claims,n=Math.floor((new Date).getTime()/1e3),i=0,r=0;return"object"==typeof e&&(e.hasOwnProperty("nbf")?i=e.nbf:e.hasOwnProperty("iat")&&(i=e.iat),r=e.hasOwnProperty("exp")?e.exp:i+86400),!!n&&!!i&&!!r&&n>=i&&n<=r},e.issuedAtTime=function(t){var e=v(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=_,e.map=function(t,e,n){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=e.call(n,t[r],r,t));return i},e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEach((function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},i=0,r=Object.entries(t);i<r.length;i++){var o=r[i];n(o[0],o[1])}return e.length?"&"+e.join("&"):""},e.querystringDecode=function(t){var e={};return t.replace(/^\?/,"").split("&").forEach((function(t){if(t){var n=t.split("=");e[n[0]]=n[1]}})),e},e.safeGet=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0},e.stringLength=function(t){for(var e=0,n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e++:i<2048?e+=2:i>=55296&&i<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,i=0;i<t.length;i++){var r=t.charCodeAt(i);if(r>=55296&&r<=56319){var s=r-55296;i++,o(i<t.length,"Surrogate pair missing trail surrogate."),r=65536+(s<<10)+(t.charCodeAt(i)-56320)}r<128?e[n++]=r:r<2048?(e[n++]=r>>6|192,e[n++]=63&r|128):r<65536?(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,i){var r;if(i<e?r="at least "+e:i>n&&(r=0===n?"none":"no more than "+n),r)throw new Error(t+" failed: Was called with "+i+(1===i?" argument.":" arguments.")+" Expects "+r+".")},e.validateCallback=function(t,e,n,i){if((!i||n)&&"function"!=typeof n)throw new Error(x(t,e,i)+"must be a valid function.")},e.validateContextObject=function(t,e,n,i){if((!i||n)&&("object"!=typeof n||null===n))throw new Error(x(t,e,i)+"must be a valid context object.")},e.validateIndexedDBOpenable=function(){return new Promise((function(t,e){try{var n=!0,i="validate-browser-context-for-indexeddb-analytics-module",r=window.indexedDB.open(i);r.onsuccess=function(){r.result.close(),n||window.indexedDB.deleteDatabase(i),t(!0)},r.onupgradeneeded=function(){n=!1},r.onerror=function(){var t;e((null===(t=r.error)||void 0===t?void 0:t.message)||"")}}catch(o){e(o)}}))},e.validateNamespace=function(t,e,n,i){if((!i||n)&&"string"!=typeof n)throw new Error(x(t,e,i)+"must be a valid firebase namespace.")}},zfKp:function(t,e,n){"use strict";e.observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},"zk/k":function(t,e,n){"use strict";e.TimeoutError=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},zvlq:function(t,e,n){"use strict";var i=n("XdTn");e.asapScheduler=new(n("UGPC").AsapScheduler)(i.AsapAction),e.asap=e.asapScheduler},zx2A:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c}));var i=n("7o/Q"),r=n("HDdC"),o=n("SeVD");class s extends i.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends i.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function c(t,e){if(!e.closed)return t instanceof r.a?t.subscribe(e):Object(o.a)(t)(e)}},zzsZ:function(t,e,n){"use strict";var i=n("Q1FS"),r=n("OAkW"),o=n("2qMH");e.fromArray=function(t,e){return e?o.scheduleArray(t,e):new i.Observable(r.subscribeToArray(t))}}},[[0,0]]]);