You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/angular/main.a9c3fed74cd736cbe7ae.js

1 line
2.0 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+DxB":function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"+qE3":function(t,e,n){"use strict";var i,r="object"==typeof Reflect?Reflect:null,s=r&&"function"==typeof r.apply?r.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};i=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise(function(n,i){function r(){void 0!==s&&t.removeListener("error",s),n([].slice.call(arguments))}var s;"error"!==e&&(s=function(n){t.removeListener(e,r),i(n)},t.once("error",s)),t.once(e,r)})},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function u(t,e,n,i){var r,s,o;if(l(n),void 0===(s=t._events)?(s=t._events=Object.create(null),t._eventsCount=0):(void 0!==s.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),s=t._events),o=s[e]),void 0===o)o=s[e]=n,++t._eventsCount;else if("function"==typeof o?o=s[e]=i?[n,o]:[o,n]:i?o.unshift(n):o.push(n),(r=h(t))>0&&o.length>r&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,console&&console.warn&&console.warn(a)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},r=d.bind(i);return r.listener=n,i.wrapFn=r,r}function p(t,e,n){var i=t._events;if(void 0===i)return[];var r=i[e];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(r):b(r,r.length)}function m(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},a.prototype.getMaxListeners=function(){return h(this)},a.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var c=r[t];if(void 0===c)return!1;if("function"==typeof c)s(c,this,e);else{var l=c.length,h=b(c,l);for(n=0;n<l;++n)s(h[n],this,e)}return!0},a.prototype.on=a.prototype.addListener=function(t,e){return u(this,t,e,!1)},a.prototype.prependListener=function(t,e){return u(this,t,e,!0)},a.prototype.once=function(t,e){return l(e),this.on(t,f(this,t,e)),this},a.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,f(this,t,e)),this},a.prototype.off=a.prototype.removeListener=function(t,e){var n,i,r,s,o;if(l(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(r=-1,s=n.length-1;s>=0;s--)if(n[s]===e||n[s].listener===e){o=n[s].listener,r=s;break}if(r<0)return this;0===r?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,r),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,o||e)}return this},a.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var r,s=Object.keys(n);for(i=0;i<s.length;++i)"removeListener"!==(r=s[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},"+zbs":function(t,e,n){"use strict";n.d(e,"a",function(){return U});var i=n("iELJ"),r=n("wHSu"),s=n("7nzP"),o=n("8Y7J"),a=n("cpEJ"),c=n("7o2P"),l=n("zHaW"),h=n("VDRc"),u=n("SVse"),d=n("ura0"),f=n("bwdU"),p=n("PDjf"),m=n("Nv++"),b=n("Dxy4"),g=n("aLe/"),_=n("BSbQ"),y=n("O4ig"),v=n("dEYt"),w=n("o4Yh"),x=n("ZFy/"),C=n("Tj54");const S=["scrollContainer"];function E(t,e){1&t&&(o.Tb(0),o.Kc(1," (zero amount) "),o.Sb())}const k=function(t){return{"mr-0":t}};function O(t,e){if(1&t&&o.Qb(0,"span",45),2&t){const t=o.hc(4);o.oc("ngClass",o.sc(1,k,t.screenSize===t.screenSizeEnum.XS))}}function A(t,e){if(1&t&&o.Qb(0,"span",46),2&t){const t=o.hc(4);o.oc("ngClass",o.sc(1,k,t.screenSize===t.screenSizeEnum.XS))}}function D(t,e){if(1&t&&o.Qb(0,"span",47),2&t){const t=o.hc(4);o.oc("ngClass",o.sc(1,k,t.screenSize===t.screenSizeEnum.XS))}}function I(t,e){if(1&t&&(o.Vb(0,"div",34),o.Vb(1,"div",39),o.Vb(2,"span",40),o.Ic(3,O,1,3,"span",41),o.Ic(4,A,1,3,"span",42),o.Ic(5,D,1,3,"span",43),o.Kc(6),o.Ub(),o.Vb(7,"span",44),o.Kc(8),o.ic(9,"number"),o.Ub(),o.Ub(),o.Qb(10,"mat-divider",19),o.Ub()),2&t){const t=e.$implicit,n=o.hc(3);o.Db(3),o.oc("ngIf","SETTLED"===t.state),o.Db(1),o.oc("ngIf","ACCEPTED"===t.state),o.Db(1),o.oc("ngIf","CANCELED"===t.state),o.Db(1),o.Mc(" ",t.chan_id," "),o.Db(2),o.Lc(o.kc(9,6,+t.amt_msat/1e3||0,n.getDecimalFormat(t))),o.Db(2),o.oc("inset",!0)}}function T(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",14),o.Vb(1,"mat-expansion-panel",32),o.dc("opened",function(){return o.zc(t),o.hc(2).flgOpened=!0})("closed",function(){return o.zc(t),o.hc(2).onExpansionClosed()}),o.Vb(2,"mat-expansion-panel-header"),o.Vb(3,"mat-panel-title"),o.Vb(4,"h4",33),o.Kc(5,"HTLCs"),o.Ub(),o.Ub(),o.Ub(),o.Vb(6,"div",34),o.Vb(7,"div",35),o.Vb(8,"span",36),o.Kc(9,"Channel ID"),o.Ub(),o.Vb(10,"span",37),o.Kc(11,"Amount (Sats)"),o.Ub(),o.Ub(),o.Qb(12,"mat-divider",19),o.Ic(13,I,11,9,"div",38),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=o.hc(2);o.Db(12),o.oc("inset",!0),o.Db(1),o.oc("ngForOf",t.invoice.htlcs)}}function L(t,e){1&t&&o.Qb(0,"mat-divider",19),2&t&&o.oc("inset",!0)}function P(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"mat-divider",19),o.Vb(2,"div",14),o.Vb(3,"div",20),o.Vb(4,"h4",16),o.Kc(5,"R Preimage"),o.Ub(),o.Vb(6,"span",21),o.Kc(7),o.Ub(),o.Ub(),o.Ub(),o.Qb(8,"mat-divider",19),o.Vb(9,"div",14),o.Vb(10,"div",28),o.Vb(11,"h4",16),o.Kc(12,"State"),o.Ub(),o.Vb(13,"span",21),o.Kc(14),o.Ub(),o.Ub(),o.Vb(15,"div",29),o.Vb(16,"h4",16),o.Kc(17,"Expiry"),o.Ub(),o.Vb(18,"span",21),o.Kc(19),o.Ub(),o.Ub(),o.Vb(20,"div",29),o.Vb(21,"h4",16),o.Kc(22,"Private Routing Hints"),o.Ub(),o.Vb(23,"span",21),o.Kc(24),o.Ub(),o.Ub(),o.Ub(),o.Qb(25,"mat-divider",19),o.Ic(26,T,14,2,"div",30),o.Ic(27,L,1,1,"mat-divider",31),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.invoice.r_preimage||"-"),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(t.invoice.state),o.Db(5),o.Lc(t.invoice.expiry),o.Db(5),o.Lc(t.invoice.private?"Yes":"No"),o.Db(1),o.oc("inset",!0),o.Db(1),o.oc("ngIf",t.invoice.htlcs&&t.invoice.htlcs.length>0),o.Db(1),o.oc("ngIf",t.invoice.htlcs&&t.invoice.htlcs.length>0)}}function R(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",48),o.Vb(1,"button",49),o.dc("click",function(){return o.zc(t),o.hc().onScrollDown()}),o.Vb(2,"mat-icon",50),o.Kc(3,"arrow_downward"),o.Ub(),o.Ub(),o.Ub()}}function M(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Show Advanced"),o.Ub())}function j(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Hide Advanced"),o.Ub())}const F=function(t){return{"display-none":t}},N=function(t){return{"xs-scroll-y":t}},V=function(t){return{"h-46":t}};let U=(()=>{class t{constructor(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.D,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.q,this.flgOpened=!1}set container(t){t&&(this.scrollContainer=t)}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.q.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(t){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+t)}getDecimalFormat(t){return t.amt_msat<1e3?"1.0-4":"1.0-0"}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.f),o.Pb(i.a),o.Pb(a.b),o.Pb(c.a),o.Pb(l.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-invoice-information"]],viewQuery:function(t,e){if(1&t&&o.Pc(S,!0),2&t){let t;o.vc(t=o.ec())&&(e.container=t.first)}},decls:58,vars:41,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxLayout","column","fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],[3,"perfectScrollbar","ngClass"],["scrollContainer",""],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"qrcode",2),o.Ub(),o.Vb(3,"div",3),o.Vb(4,"mat-card-header",4),o.Vb(5,"div",5),o.Qb(6,"fa-icon",6),o.Vb(7,"span",7),o.Kc(8),o.Ub(),o.Ub(),o.Vb(9,"button",8),o.dc("click",function(){return e.onClose()}),o.Kc(10,"X"),o.Ub(),o.Ub(),o.Vb(11,"mat-card-content",9),o.Vb(12,"div",10),o.Vb(13,"div",11),o.Qb(14,"qrcode",2),o.Ub(),o.Vb(15,"div",12,13),o.Vb(17,"div",14),o.Vb(18,"div",15),o.Vb(19,"h4",16),o.Kc(20),o.Ub(),o.Vb(21,"span",17),o.Kc(22),o.ic(23,"number"),o.Ic(24,E,2,0,"ng-container",18),o.Ub(),o.Ub(),o.Vb(25,"div",15),o.Vb(26,"h4",16),o.Kc(27,"Memo"),o.Ub(),o.Vb(28,"span",17),o.Kc(29),o.Ub(),o.Ub(),o.Ub(),o.Qb(30,"mat-divider",19),o.Vb(31,"div",14),o.Vb(32,"div",15),o.Vb(33,"h4",16),o.Kc(34,"Date Created"),o.Ub(),o.Vb(35,"span",17),o.Kc(36),o.Ub(),o.Ub(),o.Vb(37,"div",15),o.Vb(38,"h4",16),o.Kc(39,"Date Settled"),o.Ub(),o.Vb(40,"span",17),o.Kc(41),o.Ub(),o.Ub(),o.Ub(),o.Qb(42,"mat-divider",19),o.Vb(43,"div",14),o.Vb(44,"div",20),o.Vb(45,"h4",16),o.Kc(46,"Payment Request"),o.Ub(),o.Vb(47,"span",21),o.Kc(48),o.Ub(),o.Ub(),o.Ub(),o.Ic(49,P,28,9,"div",18),o.Ub(),o.Ub(),o.Ub(),o.Ic(50,R,4,0,"div",22),o.Vb(51,"div",23),o.Vb(52,"button",24),o.dc("click",function(){return e.onShowAdvanced()}),o.Ic(53,M,2,0,"p",25),o.Ic(54,j,2,0,"ng-template",null,26,o.Jc),o.Ub(),o.Vb(56,"button",27),o.dc("copied",function(t){return e.onCopyPayment(t)}),o.Kc(57),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.wc(55);o.Db(1),o.oc("ngClass",o.sc(33,F,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.payment_request)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(4),o.oc("icon",e.faReceipt),o.Db(2),o.Lc(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.Db(3),o.oc("ngClass",o.sc(35,N,e.screenSize===e.screenSizeEnum.XS)),o.Db(2),o.oc("ngClass",o.sc(37,F,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.payment_request)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(1),o.oc("ngClass",o.sc(39,V,e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced)),o.Db(5),o.Lc(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),o.Db(2),o.Mc("",o.jc(23,31,e.invoice.value||0)," Sats"),o.Db(2),o.oc("ngIf",!e.invoice.value),o.Db(5),o.Lc(e.invoice.memo),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(e.invoice.creation_date_str),o.Db(5),o.Lc(e.invoice.settle_date_str||"-"),o.Db(1),o.oc("inset",!0),o.Db(6),o.Lc(e.invoice.payment_request),o.Db(1),o.oc("ngIf",e.showAdvanced),o.Db(1),o.oc("ngIf",e.invoice.htlcs&&e.invoice.htlcs.length>0&&e.showAdvanced&&e.flgOpened),o.Db(3),o.oc("ngIf",!e.showAdvanced)("ngIfElse",t),o.Db(3),o.oc("payload",e.invoice.payment_request),o.Db(1),o.Lc(e.screenSize===e.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}},directives:[h.c,h.b,h.a,u.m,d.a,f.a,p.c,m.a,b.a,p.b,g.b,u.o,_.a,y.a,v.a,w.c,w.e,w.f,u.n,x.a,C.a],pipes:[u.f],styles:[""]}),t})()},"/ab2":function(t,e,n){var i=n("iUdu"),r=n("QihY"),s=n("6F8h");e.createCipher=e.Cipher=i.createCipher,e.createCipheriv=e.Cipheriv=i.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(s)}},"/ayr":function(t,e,n){var i;function r(t){this.rand=t}if(t.exports=function(t){return i||(i=new r(null)),i.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=n(6);if("function"!=typeof s.randomBytes)throw new Error("Not supported");r.prototype._rand=function(t){return s.randomBytes(t)}}catch(o){}},"/q54":function(t,e,n){"use strict";n.d(e,"c",function(){return f}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return g}),n.d(e,"g",function(){return _}),n.d(e,"a",function(){return y}),n.d(e,"b",function(){return S}),n.d(e,"i",function(){return Y}),n.d(e,"h",function(){return Z}),n.d(e,"j",function(){return X}),n.d(e,"f",function(){return $});var i=n("8Y7J"),r=n("SVse"),s=n("XNiG"),o=n("2Vo4"),a=n("HDdC"),c=n("VRyK"),l=(n("7Hc7"),n("LRne"),n("xgIS"),n("pLZG")),h=(n("lJxs"),n("Kj3r"),n("eIep"),n("1G5W"),n("IzEk"),n("vkgz"));const u={provide:i.b,useFactory:function(t,e){return()=>{if(Object(r.A)(e)){const e=Array.from(t.querySelectorAll(`[class*=${d}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(d+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[r.d,i.D],multi:!0},d="flex-layout-";let f=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[u]}),t})();class p{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 p(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let m=(()=>{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.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const b={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},g=new i.s("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>b}),_=new i.s("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),y=new i.s("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function v(t,e){return t=t?t.clone():new p,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const w="inline",x=["row","column","row-reverse","column-reverse"];function C(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 S=(()=>{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 s.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 x.find(t=>t===e)||(e=x[0]),n===w&&(n=i!==w?i:"",i=w),[e,C(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.cc()},t.\u0275dir=i.Kb({type:t,features:[i.Bb]}),t})();const E=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{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}],k="(orientation: portrait) and (max-width: 599.98px)",O="(orientation: landscape) and (max-width: 959.98px)",A="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",D="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",I="(orientation: portrait) and (min-width: 840px)",T="(orientation: landscape) and (min-width: 1280px)",L={HANDSET:`${k}, ${O}`,TABLET:`${A} , ${D}`,WEB:`${I}, ${T} `,HANDSET_PORTRAIT:""+k,TABLET_PORTRAIT:A+" ",WEB_PORTRAIT:""+I,HANDSET_LANDSCAPE:""+O,TABLET_LANDSCAPE:""+D,WEB_LANDSCAPE:""+T},P=[{alias:"handset",priority:2e3,mediaQuery:L.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:L.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:L.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:L.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:L.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:L.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:L.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:L.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:L.WEB_PORTRAIT,overlapping:!0}],R=/(\.|-|_)/g;function M(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const j=new i.s("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Object(i.Y)(y),e=Object(i.Y)(g),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=t.alias.replace(R,"|").split("|").map(M).join(""),t.overlapping=!!t.overlapping)}),i;var i}((e.disableDefaultBps?[]:E).concat(e.addOrientationBps?P:[]),n)}});function F(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function N(t,e){return(t.priority||0)-(e.priority||0)}let V=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(N)}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.Zb(j))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(j))},token:t,providedIn:"root"}),t})(),U=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new o.a(new p(!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(Object(l.a)(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(c.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=>!B[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=>B[t]=i)}catch(i){console.error(i)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new p(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 p(!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(r.A)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.B),i.Zb(i.D),i.Zb(r.d))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(i.B),Object(i.Zb)(i.D),Object(i.Zb)(r.d))},token:t,providedIn:"root"}),t})();const B={},z="print",H={alias:z,mediaQuery:z,priority:1e3};let W=(()=>{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 K,this.deactivations=[]}withPrintQuery(t){return[...t,z]}isPrintEvent(t){return t.mediaQuery.startsWith(z)}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(F)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),v(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 p(!0,z))),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(F))}}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.Zb(V),i.Zb(g),i.Zb(r.d))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(V),Object(i.Zb)(g),Object(i.Zb)(r.d))},token:t,providedIn:"root"}),t})();class K{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(H),t.sort(F),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(z)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function q(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 Y=(()=>{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:q(e),this._applyMultiValueStyleToElement(i,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:q(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){const e="flex-direction";let n=this.lookupStyle(t,e);return[n||"row",this.lookupInlineStyle(t,e)||Object(r.B)(this._platformId)&&this._serverModuleLoaded?n:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Object(r.A)(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(r.A)(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],s=Array.isArray(i)?i:[i];s.sort();for(let t of s)t=t?t+"":"",Object(r.A)(this._platformId)||!this._serverModuleLoaded?Object(r.A)(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.Zb(m),i.Zb(_),i.Zb(i.D),i.Zb(g))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(m),Object(i.Zb)(_),Object(i.Zb)(i.D),Object(i.Zb)(g))},token:t,providedIn:"root"}),t})();class Z{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}function X(t,e="1",n="1"){let i=[e,n,t],r=t.indexOf("calc");if(r>0){i[2]=G(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]=G(t.trim());else{let r=t.split(" ");i=3===r.length?r:[e,n,t]}return i}function G(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let $=(()=>{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 s.a,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=v(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(F),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(F),this.updateStyles()))}init(t,e,n,i,r=[]){Q(this.updateMap,t,e,n),Q(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 s=(r.get(i)||new Map).set(e,n);r.set(i,s),this.elementMap.set(t,r)}else r=(new Map).set(i,(new Map).set(e,n)),this.elementMap.set(t,r);const s=this.getValue(t,e);void 0!==s&&this.updateElement(t,e,s)}trackValue(t,e){return this.subject.asObservable().pipe(Object(l.a)(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(c.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(h.a)(this.hook.interceptEvents(this)),Object(l.a)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(U),i.Zb(V),i.Zb(W))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(U),Object(i.Zb)(V),Object(i.Zb)(W))},token:t,providedIn:"root"}),t})();function Q(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)}}},"/uUt":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t,e){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new o(t,this.compare,this.keySelector))}}class o extends i.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))}}},"/uX3":function(t,e,n){"use strict";n.d(e,"bb",function(){return i}),n.d(e,"Y",function(){return r}),n.d(e,"I",function(){return s}),n.d(e,"a",function(){return o}),n.d(e,"j",function(){return a}),n.d(e,"c",function(){return c}),n.d(e,"A",function(){return l}),n.d(e,"B",function(){return h}),n.d(e,"e",function(){return u}),n.d(e,"y",function(){return d}),n.d(e,"b",function(){return f}),n.d(e,"z",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"R",function(){return b}),n.d(e,"l",function(){return g}),n.d(e,"P",function(){return _}),n.d(e,"n",function(){return y}),n.d(e,"N",function(){return v}),n.d(e,"L",function(){return w}),n.d(e,"W",function(){return x}),n.d(e,"O",function(){return C}),n.d(e,"M",function(){return S}),n.d(e,"r",function(){return E}),n.d(e,"s",function(){return k}),n.d(e,"u",function(){return O}),n.d(e,"ab",function(){return A}),n.d(e,"v",function(){return D}),n.d(e,"G",function(){return I}),n.d(e,"H",function(){return T}),n.d(e,"m",function(){return L}),n.d(e,"Q",function(){return P}),n.d(e,"f",function(){return R}),n.d(e,"k",function(){return M}),n.d(e,"g",function(){return j}),n.d(e,"E",function(){return F}),n.d(e,"F",function(){return N}),n.d(e,"i",function(){return V}),n.d(e,"C",function(){return U}),n.d(e,"D",function(){return B}),n.d(e,"h",function(){return z}),n.d(e,"V",function(){return H}),n.d(e,"o",function(){return W}),n.d(e,"Z",function(){return K}),n.d(e,"K",function(){return q}),n.d(e,"q",function(){return Y}),n.d(e,"S",function(){return Z}),n.d(e,"X",function(){return X}),n.d(e,"U",function(){return G}),n.d(e,"T",function(){return $}),n.d(e,"x",function(){return Q}),n.d(e,"J",function(){return J}),n.d(e,"t",function(){return tt}),n.d(e,"w",function(){return et}),n.d(e,"cb",function(){return nt}),n.d(e,"p",function(){return it});const i="VOID",r="UPDATE_SELECTED_NODE_OPTIONS",s="RESET_ROOT_STORE",o="CLEAR_EFFECT_ERROR_ROOT",a="EFFECT_ERROR_ROOT",c="CLOSE_ALL_DIALOGS",l="OPEN_SNACKBAR",h="OPEN_SPINNER",u="CLOSE_SPINNER",d="OPEN_ALERT",f="CLOSE_ALERT",p="OPEN_CONFIRMATION",m="CLOSE_CONFIRMATION",b="SHOW_PUBKEY",g="FETCH_CONFIG",_="SHOW_CONFIG",y="FETCH_RTL_CONFIG",v="SET_RTL_CONFIG",w="SAVE_SETTINGS",x="TWO_FA_SAVE_SETTINGS",C="SET_SELECTED_NODE",S="SET_NODE_DATA",E="IS_AUTHORIZED",k="IS_AUTHORIZED_RES",O="LOGIN",A="VERIFY_TWO_FA",D="LOGOUT",I="RESET_PASSWORD",T="RESET_PASSWORD_RES",L="FETCH_FILE",P="SHOW_FILE";class R{constructor(t){this.payload=t,this.type=o}}class M{constructor(t){this.payload=t,this.type=a}}class j{constructor(){this.type=c}}class F{constructor(t){this.payload=t,this.type=l}}class N{constructor(t){this.payload=t,this.type=h}}class V{constructor(){this.type=u}}class U{constructor(t){this.payload=t,this.type=d}}class B{constructor(t){this.payload=t,this.type=p}}class z{constructor(t){this.payload=t,this.type=m}}class H{constructor(){this.type=b}}class W{constructor(t){this.payload=t,this.type=g}}class K{constructor(){this.type=r}}class q{constructor(t){this.payload=t,this.type=s}}class Y{constructor(){this.type=y}}class Z{constructor(t){this.payload=t,this.type=w}}class X{constructor(t){this.payload=t,this.type=x}}class G{constructor(t){this.payload=t,this.type=C}}class ${constructor(t){this.payload=t,this.type=S}}class Q{constructor(){this.type=D}}class J{constructor(t){this.payload=t,this.type=I}}class tt{constructor(t){this.payload=t,this.type=E}}class et{constructor(t){this.payload=t,this.type=O}}class nt{constructor(t){this.payload=t,this.type=A}}class it{constructor(t){this.payload=t,this.type=L}}},0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("bHdf");function r(){return Object(i.a)(1)}},"0FX9":function(t,e,n){var i=n("Z92M"),r=n("qmMu"),s=n("QUaw"),o=n("QAZZ");function a(t,e,n,s,o){var a=[].slice.call(arguments,1),c=a.length,l="function"==typeof a[c-1];if(!l&&!i())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=e,e=s=void 0):2!==c||e.getContext||(s=n,n=e,e=void 0),new Promise(function(i,o){try{var a=r.create(n,s);i(t(a,e,s))}catch(c){o(c)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(o=n,n=e,e=s=void 0):3===c&&(e.getContext&&void 0===o?(o=s,s=void 0):(o=s,s=n,n=e,e=void 0));try{var h=r.create(n,s);o(null,t(h,e,s))}catch(u){o(u)}}e.create=r.create,e.toCanvas=a.bind(null,s.render),e.toDataURL=a.bind(null,s.renderToDataURL),e.toString=a.bind(null,function(t,e,n){return o.render(t,n)})},"0ROu":function(t,e,n){"use strict";var i={};function r(t,e,n){n||(n=Error);var r=function(t){var n,i;function r(n,i,r){return t.call(this,function(t,n,i){return"string"==typeof e?e:e(t,n,i)}(n,i,r))||this}return i=t,(n=r).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i,r}(n);r.prototype.name=n.name,r.prototype.code=t,i[t]=r}function s(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(t){return String(t)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,n){var i,r,o,a;if("string"==typeof e&&"not "===e.substr(0,"not ".length)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))r="The ".concat(t," ").concat(i," ").concat(s(e,"type"));else{var c=("number"!=typeof a&&(a=0),a+".".length>(o=t).length||-1===o.indexOf(".",a)?"argument":"property");r='The "'.concat(t,'" ').concat(c," ").concat(i," ").concat(s(e,"type"))}return r+". Received type ".concat(typeof n)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},"0XuU":function(t,e,n){t.exports=n("43KI").Transform},"0cit":function(t,e,n){"use strict";const i=n("P7XM");function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function s(t,e){this.path=t,this.rethrow(e)}e.Reporter=r,r.prototype.isError=function(t){return t instanceof s},r.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,n){const i=this._reporterState;this.exitKey(t),null!==i.obj&&(i.obj[e]=n)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){const e=this._reporterState,n=e.obj;return e.obj=t,n},r.prototype.error=function(t){let e;const n=this._reporterState,i=t instanceof s;if(e=i?t:new s(n.path.map(function(t){return"["+JSON.stringify(t)+"]"}).join(""),t.message||t,t.stack),!n.options.partial)throw e;return i||n.errors.push(e),e},r.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},i(s,Error),s.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},"0dfH":function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("wHSu"),r=n("8Y7J"),s=n("iInd"),o=n("VDRc"),a=n("Nv++"),c=n("PDjf"),l=n("Dxy4");let h=(()=>{class t{constructor(t){this.router=t,this.faTimes=i.I}goToHelp(){this.router.navigate(["/help"])}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(s.g))},t.\u0275cmp=r.Jb({type:t,selectors:[["rtl-not-found"]],decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(r.Vb(0,"div",0),r.Qb(1,"fa-icon",1),r.Vb(2,"span",2),r.Kc(3,"Page Not Found"),r.Ub(),r.Ub(),r.Vb(4,"div",3),r.Vb(5,"mat-card"),r.Vb(6,"mat-card-content",4),r.Vb(7,"div",5),r.Vb(8,"div",6),r.Kc(9,"This page does not exist!"),r.Ub(),r.Vb(10,"span",7),r.Vb(11,"button",8),r.dc("click",function(){return e.goToHelp()}),r.Kc(12,"Go To Help"),r.Ub(),r.Ub(),r.Ub(),r.Ub(),r.Ub(),r.Ub()),2&t&&(r.Db(1),r.oc("icon",e.faTimes))},directives:[o.c,o.b,a.a,c.a,c.b,o.a,l.a],encapsulation:2}),t})()},1:function(t,e){},"1CSz":function(t,e,n){"use strict";var i=n("P7XM"),r=n("hwdV").Buffer,s=n("ZDAU"),o=r.alloc(128),a=64;function c(t,e){s.call(this,"digest"),"string"==typeof e&&(e=r.from(e)),this._alg=t,this._key=e,e.length>a?e=t(e):e.length<a&&(e=r.concat([e,o],a));for(var n=this._ipad=r.allocUnsafe(a),i=this._opad=r.allocUnsafe(a),c=0;c<a;c++)n[c]=54^e[c],i[c]=92^e[c];this._hash=[n]}i(c,s),c.prototype._update=function(t){this._hash.push(t)},c.prototype._final=function(){var t=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,t]))},t.exports=c},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("zx2A");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){const n=new o(t),r=Object(i.c)(this.notifier,new i.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class o extends i.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1IWx":function(t,e,n){t.exports=r;var i=n("+qE3").EventEmitter;function r(){i.call(this)}n("P7XM")(r,i),r.Readable=n("43KI"),r.Writable=n("LGOv"),r.Duplex=n("CWBI"),r.Transform=n("0XuU"),r.PassThrough=n("wq4j"),r.Stream=r,r.prototype.pipe=function(t,e){var n=this;function r(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",r),t.on("drain",s),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",c));var o=!1;function a(){o||(o=!0,t.end())}function c(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(h(),0===i.listenerCount(this,"error"))throw t}function h(){n.removeListener("data",r),t.removeListener("drain",s),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",h),n.removeListener("close",h),t.removeListener("close",h)}return n.on("error",l),t.on("error",l),n.on("end",h),n.on("close",h),t.on("close",h),t.emit("pipe",n),t}},"1O3W":function(t,e,n){"use strict";n.d(e,"a",function(){return X}),n.d(e,"b",function(){return Z}),n.d(e,"c",function(){return K}),n.d(e,"d",function(){return k}),n.d(e,"e",function(){return P}),n.d(e,"f",function(){return $});var i=n("7KAL"),r=n("8Y7J"),s=n("SCoL"),o=n("9gLZ"),a=n("SVse"),c=n("8LU1"),l=n("1z/I"),h=n("XNiG"),u=n("quSY"),d=n("VRyK"),f=n("IzEk"),p=n("1G5W"),m=n("7o/Q");class b{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new g(t,this.predicate,this.inclusive))}}class g extends m.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())}}var _=n("Ht+U");class y{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=Object(c.d)(-this._previousScrollPosition.left),t.style.top=Object(c.d)(-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}}class v{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){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 w{enable(){}disable(){}attach(){}}function x(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function C(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class S{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){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();x(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 E=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new w,this.close=t=>new v(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new y(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.c),r.Zb(i.e),r.Zb(r.B),r.Zb(a.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(i.c),Object(r.Zb)(i.e),Object(r.Zb)(r.B),Object(r.Zb)(a.d))},token:t,providedIn:"root"}),t})();class k{constructor(t){if(this.scrollStrategy=new w,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class O{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 A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let D=(()=>{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)(r.Zb(a.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(a.d))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends D{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)(r.Zb(a.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(a.d))},token:t,providedIn:"root"}),t})(),T=(()=>{class t extends D{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.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(e))break;r._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",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._document.body.removeEventListener("contextmenu",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)(r.Zb(a.d),r.Zb(s.a))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(a.d),Object(r.Zb)(s.a))},token:t,providedIn:"root"}),t})();const L=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let P=(()=>{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="cdk-overlay-container";if(this._platform.isBrowser||L){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;t<e.length;t++)e[t].parentNode.removeChild(e[t])}const e=this._document.createElement("div");e.classList.add(t),L?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(a.d),r.Zb(s.a))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(a.d),Object(r.Zb)(s.a))},token:t,providedIn:"root"}),t})();class R{constructor(t,e,n,i,r,s,o,a,c){this._portalOutlet=t,this._host=e,this._pane=n,this._config=i,this._ngZone=r,this._keyboardDispatcher=s,this._document=o,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new h.a,this._attachments=new h.a,this._detachments=new h.a,this._locationChanges=u.a.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new h.a,this._outsidePointerEvents=new h.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.pipe(Object(f.a)(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._locationChanges=this._location.subscribe(()=>this.dispose())),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.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.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}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}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=Object(c.d)(this._config.width),t.height=Object(c.d)(this._config.height),t.minWidth=Object(c.d)(this._config.minWidth),t.minHeight=Object(c.d)(this._config.minHeight),t.maxWidth=Object(c.d)(this._config.maxWidth),t.maxHeight=Object(c.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";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(t)})}):this._backdropElement.classList.add(t)}_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;Object(c.b)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(p.a)(Object(d.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 M="cdk-overlay-connected-position-bounding-box",j=/([A-Za-z%]+)$/;class F{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 h.a,this._resizeSubscription=u.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(M),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 s of this._preferredPositions){let o=this._getOriginPoint(t,s),a=this._getOverlayPoint(o,e,s),c=this._getOverlayFit(a,e,n,s);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!r||r.overlayFit.visibleArea<c.visibleArea)&&(r={overlayFit:c,overlayPoint:a,originPoint:o,position:s,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&&N(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(M),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:s}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(r+=o),a&&(s+=a);let c=0-s,l=s+e.height-n.height,h=this._subtractOverflows(e.width,0-r,r+e.width-n.width),u=this._subtractOverflows(e.height,c,l),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,r=n.right-e.x,s=V(this._overlayRef.getConfig().minHeight),o=V(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=r;return(t.fitsInViewportVertically||null!=s&&s<=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),s=Math.max(t.y+e.height-i.height,0),o=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?o||-s: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 A(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,s,o,a,c,l;if("top"===e.overlayY)s=t.y,r=n.height-s+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,r=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),i=this._lastBoundingBoxSize.height;r=2*e,s=t.y-e,r>i&&!this._isInitialRender&&!this._growAfterOpen&&(s=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:s,left:c,bottom:o,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=Object(c.d)(n.height),i.top=Object(c.d)(n.top),i.bottom=Object(c.d)(n.bottom),i.width=Object(c.d)(n.width),i.left=Object(c.d)(n.left),i.right=Object(c.d)(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=Object(c.d)(t)),r&&(i.maxWidth=Object(c.d)(r))}this._lastBoundingBoxSize=n,N(this._boundingBox.style,i)}_resetBoundingBoxStyles(){N(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){N(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();N(n,this._getExactOverlayY(e,t,i)),N(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=Object(c.d)(s.maxHeight):r&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=Object(c.d)(s.maxWidth):r&&(n.maxWidth="")),N(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 s=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=s,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Object(c.d)(r.y),i}_getExactOverlayX(t,e,n){let i,r={left:"",right:""},s=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=Object(c.d)(s.x),r}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,n),isOriginOutsideView:x(t,n),isOverlayClipped:C(e,n),isOverlayOutsideView:x(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(){}_addPanelClasses(t){this._pane&&Object(c.b)(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 r.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 N(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function V(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(j);return n&&"px"!==n?null:parseFloat(e)}return t||null}class U{constructor(t,e,n,i,r,s,o){this._preferredPositions=[],this._positionStrategy=new F(n,i,r,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=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 O(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}}const B="cdk-global-overlay-wrapper";class z{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(B),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:s,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==r&&"100vh"!==r||o&&"100%"!==o&&"100vh"!==o);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(B),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let H=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new z}connectedTo(t,e,n){return new U(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new F(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.e),r.Zb(a.d),r.Zb(s.a),r.Zb(P))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(i.e),Object(r.Zb)(a.d),Object(r.Zb)(s.a),Object(r.Zb)(P))},token:t,providedIn:"root"}),t})(),W=0,K=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=r,this._injector=s,this._ngZone=o,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new k(t);return r.direction=r.direction||this._directionality.value,new R(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-"+W++,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(r.g)),new l.f(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(E),r.Zb(P),r.Zb(r.j),r.Zb(H),r.Zb(I),r.Zb(r.t),r.Zb(r.B),r.Zb(a.d),r.Zb(o.b),r.Zb(a.j),r.Zb(T))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const q=[{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"}],Y=new r.s("cdk-connected-overlay-scroll-strategy");let Z=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),X=(()=>{class t{constructor(t,e,n,i,s){this._overlay=t,this._dir=s,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.a.EMPTY,this._attachSubscription=u.a.EMPTY,this._detachSubscription=u.a.EMPTY,this._positionSubscription=u.a.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new r.o,this.positionChange=new r.o,this.attach=new r.o,this.detach=new r.o,this.overlayKeydown=new r.o,this.overlayOutsideClick=new r.o,this._templatePortal=new l.i(e,n),this._scrollStrategyFactory=i,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=Object(c.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(c.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(c.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(c.c)(t)}get push(){return this._push}set push(t){this._push=Object(c.c)(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=q);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),t.keyCode!==_.f||this.disableClose||Object(_.r)(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 k({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 b(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)(r.Pb(K),r.Pb(r.O),r.Pb(r.S),r.Pb(Y),r.Pb(o.b,8))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],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:[r.Bb]}),t})();const G={provide:Y,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let $=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:[K,G],imports:[[o.a,l.h,i.d],i.d]}),t})()},"1sBl":function(t,e,n){var i=n("e/Dd").getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,n=i(t),r=145===n?26:2*Math.ceil((n-13)/(2*e-2)),s=[n-7],o=1;o<e-1;o++)s[o]=s[o-1]-r;return s.push(6),s.reverse()},e.getPositions=function(t){for(var n=[],i=e.getRowColCoords(t),r=i.length,s=0;s<r;s++)for(var o=0;o<r;o++)0===s&&0===o||0===s&&o===r-1||s===r-1&&0===o||n.push([i[s],i[o]]);return n}},"1w4i":function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},"1z/I":function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return h}),n.d(e,"g",function(){return p}),n.d(e,"h",function(){return b}),n.d(e,"i",function(){return a});var i=n("8Y7J"),r=n("SVse");class s{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends s{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends s{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 c extends s{constructor(t){super(),this.element=t instanceof i.l?t.nativeElement:t}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}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 h extends l{constructor(t,e,n,i,r){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,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]}}class u extends h{}let d=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.O),i.Pb(i.S))},t.\u0275dir=i.Kb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.Ab]}),t})(),f=(()=>{class t extends l{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.o,this.attachDomPortal=t=>{const e=t.element,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.Pb(i.j),i.Pb(i.S),i.Pb(r.d))},t.\u0275dir=i.Kb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Ab]}),t})(),p=(()=>{class t extends f{}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[i.Cb([{provide:f,useExisting:t}]),i.Ab]}),t})();const m=i.Xb(p);let b=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})()},2:function(t,e){},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("XNiG"),r=n("9ppp");class s extends i.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 r.a;return this._value}next(t){super.next(this._value=t)}}},"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}}},"2h+y":function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"d",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return c});var i=n("8Y7J"),r=n("mZtN");let s=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.getItem("token")}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),o=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!!this.sessionService.getItem("lndUnlocked")}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),a=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),c=(()=>{class t{constructor(t){this.sessionService=t}canActivate(){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})()},"2j6C":function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},"2q5Q":function(t,e){t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},3:function(t,e){},"3BRs":function(t,e,n){"use strict";var i=n("lm0R");function r(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;for(t.entry=null;i;){var r=i.callback;e.pendingcb--,r(void 0),i=i.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=b;var s,o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=m;var a=Object.create(n("Onz0"));a.inherits=n("P7XM");var c,l={deprecate:n("t9FE")},h=n("QpuX"),u=n("hwdV").Buffer,d=global.Uint8Array||function(){},f=n("RoFp");function p(){}function m(t,e){s=s||n("sZro");var a=e instanceof s;this.objectMode=!!(t=t||{}).objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var c=t.highWaterMark,l=t.writableHighWaterMark;this.highWaterMark=c||0===c?c:a&&(l||0===l)?l:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,s=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,s){--e.pendingcb,n?(i.nextTick(s,r),i.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(s(r),t._writableState.errorEmitted=!0,t.emit("error",r),x(t,e))}(t,n,r,e,s);else{var a=v(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),r?o(_,t,n,a,s):_(t,n,a,s)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function b(t){if(s=s||n("sZro"),!(c.call(b,this)||this instanceof s))return new b(t);this._writableState=new m(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function g(t,e,n,i,r,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,n?t._writev(r,e.onwrite):t._write(r,s,e.onwrite),e.sync=!1}function _(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),x(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=new Array(e.bufferedRequestCount),s=e.corkedRequestsFree;s.entry=n;for(var o=0,a=!0;n;)i[o]=n,n.isBuf||(a=!1),n=n.next,o+=1;i.allBuffers=a,g(t,e,!0,e.length,i,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new r(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk;if(g(t,e,!1,e.objectMode?1:c.length,c,n.encoding,n.callback),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function v(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)})}function x(t,e){var n=v(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}a.inherits(b,h),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===b&&t&&t._writableState instanceof m}})):c=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(t,e,n){var r,s=this._writableState,o=!1,a=!s.objectMode&&(u.isBuffer(r=t)||r instanceof d);return a&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof n&&(n=p),s.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}(this,n):(a||function(t,e,n,r){var s=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),i.nextTick(r,o),s=!1),s}(this,s,t,n))&&(s.pendingcb++,o=function(t,e,n,i,r,s){if(!n){var o=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,n)),e}(e,i,r);i!==o&&(n=!0,r="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var c=e.length<e.highWaterMark;if(c||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:s,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else g(t,e,!1,a,i,r,s);return c}(this,s,a,t,e,n)),o},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||y(this,t))},b.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=f.destroy,b.prototype._undestroy=f.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("D0XW"),r=n("mlxB"),s=n("7o/Q"),o=n("WMd4");function a(t,e=i.a){const n=Object(r.a)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(n,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends s.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(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new h(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}class h{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("quSY");class r extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class s 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}}},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("D0XW"),r=n("zx2A");class s{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.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(r.c)(n,new r.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 a=n("PqYM");function c(t,e=i.a){return n=()=>Object(a.a)(t,e),function(t){return t.lift(new s(n))};var n}},"3X7Y":function(t,e,n){var i=n("u/Db");function r(t){this.mode=i.NUMERIC,this.data=t.toString()}r.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(t){var e,n,i;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),i=parseInt(n,10),t.put(i,10);var r=this.data.length-e;r>0&&(n=this.data.substr(e),i=parseInt(n,10),t.put(i,3*r+1))},t.exports=r},4:function(t,e){},"40+f":function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return w}),n.d(e,"c",function(){return h});var i=n("8Y7J"),r=n("UhP/"),s=n("8LU1"),o=n("9gLZ");const a=["*"],c=".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",l=new i.s("MAT_GRID_LIST");let h=(()=>{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(Object(s.f)(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(Object(s.f)(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(l,8))},t.\u0275cmp=i.Jb({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:a,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(i.nc(),i.Vb(0,"figure",0),i.mc(1),i.Ub())},styles:[c],encapsulation:2,changeDetection:0}),t})();class u{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 d(this.rowIndex,e)}_findMatchingGap(t){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 d{constructor(t,e){this.row=t,this.col=e}}const f=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class p{constructor(){this._rows=0,this._rowspan=0}init(t,e,n,i){this._gutterSize=y(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":_(`(${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",_(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 m extends p{constructor(t){super(),this.fixedRowHeight=t}init(t,e,n,i){super.init(t,e,n,i),this.fixedRowHeight=y(this.fixedRowHeight),f.test(this.fixedRowHeight)}setRowStyles(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",_(this.getTileSize(this.fixedRowHeight,t.rowspan)))}getComputedHeight(){return["height",_(`${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 b extends p{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",_(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",_(`${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(":");this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class g extends p{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",_(this.getTileSize(n,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function _(t){return`calc(${t})`}function y(t){return t.match(/([A-Za-z%]+)$/)?t:t+"px"}let v=(()=>{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(Object(s.f)(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(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new g:t&&t.indexOf(":")>-1?new b(t):new m(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new u);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.Pb(i.l),i.Pb(o.b,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,h,!0),2&t){let t;i.vc(t=i.ec())&&(e._tiles=t)}},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:l,useExisting:t}])],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(i.nc(),i.Vb(0,"div"),i.mc(1),i.Ub())},styles:[c],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.k,r.i],r.k,r.i]}),t})()},"43KI":function(t,e,n){(e=t.exports=n("rXFu")).Stream=e,e.Readable=e,e.Writable=n("3BRs"),e.Duplex=n("sZro"),e.Transform=n("J78i"),e.PassThrough=n("eA/Y")},"49sm":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"4Hv8":function(t,e,n){var i=n("WnY+"),r=n("tcrS"),s=n("afKu"),o=n("hwdV").Buffer,a=n("fSpj"),c=n("n53Y"),l=n("i+bA"),h=o.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,n){var a=function(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new r).update(t).digest()}:"md5"===t?i:function(e){return s(t).update(e).digest()}}(t),c="sha512"===t||"sha384"===t?128:64;e.length>c?e=a(e):e.length<c&&(e=o.concat([e,h],c));for(var l=o.allocUnsafe(c+u[t]),d=o.allocUnsafe(c+u[t]),f=0;f<c;f++)l[f]=54^e[f],d[f]=92^e[f];var p=o.allocUnsafe(c+n+4);l.copy(p,0,0,c),this.ipad1=p,this.ipad2=l,this.opad=d,this.alg=t,this.blocksize=c,this.hash=a,this.size=u[t]}d.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,n,i,r){a(n,i);var s=new d(r=r||"sha1",t=l(t,c,"Password"),(e=l(e,c,"Salt")).length),h=o.allocUnsafe(i),f=o.allocUnsafe(e.length+4);e.copy(f,0,0,e.length);for(var p=0,m=u[r],b=Math.ceil(i/m),g=1;g<=b;g++){f.writeUInt32BE(g,e.length);for(var _=s.run(f,s.ipad1),y=_,v=1;v<n;v++){y=s.run(y,s.ipad2);for(var w=0;w<m;w++)_[w]^=y[w]}_.copy(h,p),p+=m}return h}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4dMO":function(t,e,n){var i=n("MzeL"),r=n("AQYT");t.exports=function(t){return new o(t)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(t){this.curveType=s[t],this.curveType||(this.curveType={name:t}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function a(t,e,n){Array.isArray(t)||(t=t.toArray());var i=new Buffer(t);if(n&&i.length<n){var r=new Buffer(n-i.length);r.fill(0),i=Buffer.concat([r,i])}return e?i.toString(e):i}s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,o.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},o.prototype.computeSecret=function(t,e,n){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),a(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},o.prototype.getPublicKey=function(t,e){var n=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(n[0]=n[n.length-1]%2?7:6),a(n,t)},o.prototype.getPrivateKey=function(t){return a(this.keys.getPrivate(),t)},o.prototype.setPublicKey=function(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this.keys._importPublic(t),this},o.prototype.setPrivateKey=function(t,e){e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e));var n=new r(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}},"4r19":function(t,e,n){"use strict";n.d(e,"a",function(){return A});var i=n("iELJ"),r=n("wHSu"),s=n("7nzP"),o=n("8Y7J"),a=n("cpEJ"),c=n("7o2P"),l=n("zHaW"),h=n("VDRc"),u=n("SVse"),d=n("ura0"),f=n("bwdU"),p=n("PDjf"),m=n("Nv++"),b=n("Dxy4"),g=n("BSbQ"),_=n("O4ig"),y=n("dEYt");function v(t,e){if(1&t&&(o.Vb(0,"div",13),o.Vb(1,"div",26),o.Qb(2,"fa-icon",27),o.Vb(3,"span"),o.Kc(4),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.hc();o.Db(2),o.oc("icon",t.faExclamationTriangle),o.Db(2),o.Lc(t.invoice.warning_capacity)}}function w(t,e){1&t&&(o.Tb(0),o.Kc(1," (zero amount) "),o.Sb())}function x(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"mat-divider",18),o.Vb(2,"div",13),o.Vb(3,"div",19),o.Vb(4,"h4",15),o.Kc(5,"Payment Hash"),o.Ub(),o.Vb(6,"span",20),o.Kc(7),o.Ub(),o.Ub(),o.Ub(),o.Qb(8,"mat-divider",18),o.Vb(9,"div",13),o.Vb(10,"div",14),o.Vb(11,"h4",15),o.Kc(12,"Status"),o.Ub(),o.Vb(13,"span",20),o.Kc(14),o.ic(15,"titlecase"),o.Ub(),o.Ub(),o.Vb(16,"div",14),o.Vb(17,"h4",15),o.Kc(18,"Label"),o.Ub(),o.Vb(19,"span",20),o.Kc(20),o.Ub(),o.Ub(),o.Ub(),o.Qb(21,"mat-divider",18),o.Vb(22,"div",13),o.Vb(23,"div",14),o.Vb(24,"h4",15),o.Kc(25,"Amount Received"),o.Ub(),o.Vb(26,"span",20),o.Kc(27),o.ic(28,"number"),o.Ub(),o.Ub(),o.Vb(29,"div",14),o.Vb(30,"h4",15),o.Kc(31,"Date Settled"),o.Ub(),o.Vb(32,"span",16),o.Kc(33),o.Ub(),o.Ub(),o.Ub(),o.Qb(34,"mat-divider",18),o.Ub()),2&t){const t=o.hc();o.Db(7),o.Lc(t.invoice.payment_hash),o.Db(7),o.Lc(o.jc(15,6,t.invoice.status)),o.Db(6),o.Lc(t.invoice.label),o.Db(7),o.Nc("",o.jc(28,8,t.invoice.msatoshi_received/1e3)," ",t.invoice.msatoshi_received?"Sats":"",""),o.Db(6),o.Lc(t.invoice.paid_at_str||"-")}}function C(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Show Advanced"),o.Ub())}function S(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Hide Advanced"),o.Ub())}const E=function(t){return{"display-none":t}},k=function(t){return{"xs-scroll-y":t}},O=function(t,e){return{"mt-2":t,"mt-1":e}};let A=(()=>{class t{constructor(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.D,this.faExclamationTriangle=r.o,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.q}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.q.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.f),o.Pb(i.a),o.Pb(a.b),o.Pb(c.a),o.Pb(l.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-cl-invoice-information"]],decls:51,vars:38,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"qrcode",2),o.Ub(),o.Vb(3,"div",3),o.Vb(4,"mat-card-header",4),o.Vb(5,"div",5),o.Qb(6,"fa-icon",6),o.Vb(7,"span",7),o.Kc(8),o.Ub(),o.Ub(),o.Vb(9,"button",8),o.dc("click",function(){return e.onClose()}),o.Kc(10,"X"),o.Ub(),o.Ub(),o.Vb(11,"mat-card-content",9),o.Vb(12,"div",10),o.Vb(13,"div",11),o.Qb(14,"qrcode",2),o.Ub(),o.Ic(15,v,5,2,"div",12),o.Vb(16,"div",13),o.Vb(17,"div",14),o.Vb(18,"h4",15),o.Kc(19),o.Ub(),o.Vb(20,"span",16),o.Kc(21),o.ic(22,"number"),o.Ic(23,w,2,0,"ng-container",17),o.Ub(),o.Ub(),o.Vb(24,"div",14),o.Vb(25,"h4",15),o.Kc(26,"Date Expiry"),o.Ub(),o.Vb(27,"span",16),o.Kc(28),o.Ub(),o.Ub(),o.Ub(),o.Qb(29,"mat-divider",18),o.Vb(30,"div",13),o.Vb(31,"div",19),o.Vb(32,"h4",15),o.Kc(33,"Description"),o.Ub(),o.Vb(34,"span",16),o.Kc(35),o.Ub(),o.Ub(),o.Ub(),o.Qb(36,"mat-divider",18),o.Vb(37,"div",13),o.Vb(38,"div",19),o.Vb(39,"h4",15),o.Kc(40,"Invoice"),o.Ub(),o.Vb(41,"span",20),o.Kc(42),o.Ub(),o.Ub(),o.Ub(),o.Ic(43,x,35,10,"div",17),o.Vb(44,"div",21),o.Vb(45,"button",22),o.dc("click",function(){return e.onShowAdvanced()}),o.Ic(46,C,2,0,"p",23),o.Ic(47,S,2,0,"ng-template",null,24,o.Jc),o.Ub(),o.Vb(49,"button",25),o.dc("copied",function(t){return e.onCopyPayment(t)}),o.Kc(50,"Copy Invoice"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.wc(48);o.Db(1),o.oc("ngClass",o.sc(29,E,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.bolt11)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(4),o.oc("icon",e.faReceipt),o.Db(2),o.Lc(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.Db(3),o.oc("ngClass",o.sc(31,k,e.screenSize===e.screenSizeEnum.XS)),o.Db(2),o.oc("ngClass",o.sc(33,E,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.bolt11)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(1),o.oc("ngIf",e.invoice.warning_capacity),o.Db(4),o.Lc(e.screenSize===e.screenSizeEnum.XS?"Amount":"Amount Requested"),o.Db(2),o.Mc("",o.jc(22,27,e.invoice.msatoshi/1e3||0)," Sats"),o.Db(2),o.oc("ngIf",!e.invoice.msatoshi),o.Db(5),o.Lc(e.invoice.expires_at_str),o.Db(7),o.Lc(e.invoice.description||"-"),o.Db(7),o.Lc(e.invoice.bolt11),o.Db(1),o.oc("ngIf",e.showAdvanced),o.Db(1),o.oc("ngClass",o.tc(35,O,!e.showAdvanced,e.showAdvanced)),o.Db(2),o.oc("ngIf",!e.showAdvanced)("ngIfElse",t),o.Db(3),o.oc("payload",e.invoice.bolt11)}},directives:[h.c,h.b,h.a,u.m,d.a,f.a,p.c,m.a,b.a,p.b,u.o,g.a,_.a,y.a],pipes:[u.f,u.x],styles:[""]}),t})()},5:function(t,e){},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(o((n,s)=>Object(r.a)(t(n,s)).pipe(Object(i.a)((t,i)=>e(n,t,s,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 s.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 s.a(this),n=this.destination;n.add(e);const i=Object(s.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()}}},"5QHs":function(t,e,n){"use strict";n.d(e,"a",function(){return S}),n.d(e,"b",function(){return _}),n.d(e,"c",function(){return E});var i=n("SVse"),r=n("8Y7J"),s=n("UhP/"),o=n("Dxy4"),a=n("ZTz/"),c=n("ZFy/"),l=n("8LU1"),h=n("XNiG"),u=n("Q2Ze");function d(t,e){if(1&t&&(r.Vb(0,"mat-option",19),r.Kc(1),r.Ub()),2&t){const t=e.$implicit;r.oc("value",t),r.Db(1),r.Mc(" ",t," ")}}function f(t,e){if(1&t){const t=r.Wb();r.Vb(0,"mat-form-field",16),r.Vb(1,"mat-select",17),r.dc("selectionChange",function(e){return r.zc(t),r.hc(2)._changePageSize(e.value)}),r.Ic(2,d,2,2,"mat-option",18),r.Ub(),r.Ub()}if(2&t){const t=r.hc(2);r.oc("appearance",t._formFieldAppearance)("color",t.color),r.Db(1),r.oc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),r.Db(1),r.oc("ngForOf",t._displayedPageSizeOptions)}}function p(t,e){if(1&t&&(r.Vb(0,"div",20),r.Kc(1),r.Ub()),2&t){const t=r.hc(2);r.Db(1),r.Lc(t.pageSize)}}function m(t,e){if(1&t&&(r.Vb(0,"div",12),r.Vb(1,"div",13),r.Kc(2),r.Ub(),r.Ic(3,f,3,6,"mat-form-field",14),r.Ic(4,p,2,1,"div",15),r.Ub()),2&t){const t=r.hc();r.Db(2),r.Mc(" ",t._intl.itemsPerPageLabel," "),r.Db(1),r.oc("ngIf",t._displayedPageSizeOptions.length>1),r.Db(1),r.oc("ngIf",t._displayedPageSizeOptions.length<=1)}}function b(t,e){if(1&t){const t=r.Wb();r.Vb(0,"button",21),r.dc("click",function(){return r.zc(t),r.hc().firstPage()}),r.gc(),r.Vb(1,"svg",7),r.Qb(2,"path",22),r.Ub(),r.Ub()}if(2&t){const t=r.hc();r.oc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),r.Eb("aria-label",t._intl.firstPageLabel)}}function g(t,e){if(1&t){const t=r.Wb();r.gc(),r.fc(),r.Vb(0,"button",23),r.dc("click",function(){return r.zc(t),r.hc().lastPage()}),r.gc(),r.Vb(1,"svg",7),r.Qb(2,"path",24),r.Ub(),r.Ub()}if(2&t){const t=r.hc();r.oc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),r.Eb("aria-label",t._intl.lastPageLabel)}}let _=(()=>{class t{constructor(){this.changes=new h.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(r.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const y={provide:_,deps:[[new r.C,new r.M,_]],useFactory:function(t){return t||new _}},v=new r.s("MAT_PAGINATOR_DEFAULT_OPTIONS");class w{}const x=Object(s.z)(Object(s.B)(w));let C=(()=>{class t extends x{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 r.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(Object(l.f)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Object(l.f)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Object(l.f)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Object(l.f)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Object(l.c)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Object(l.c)(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)(r.Pb(_),r.Pb(r.h),r.Pb(void 0))},t.\u0275dir=r.Kb({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[r.Ab]}),t})(),S=(()=>{class t extends C{constructor(t,e,n){super(t,e,n),n&&null!=n.formFieldAppearance&&(this._formFieldAppearance=n.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(_),r.Pb(r.h),r.Pb(v,8))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[r.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,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","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&&(r.Vb(0,"div",0),r.Vb(1,"div",1),r.Ic(2,m,5,3,"div",2),r.Vb(3,"div",3),r.Vb(4,"div",4),r.Kc(5),r.Ub(),r.Ic(6,b,3,5,"button",5),r.Vb(7,"button",6),r.dc("click",function(){return e.previousPage()}),r.gc(),r.Vb(8,"svg",7),r.Qb(9,"path",8),r.Ub(),r.Ub(),r.fc(),r.Vb(10,"button",9),r.dc("click",function(){return e.nextPage()}),r.gc(),r.Vb(11,"svg",7),r.Qb(12,"path",10),r.Ub(),r.Ub(),r.Ic(13,g,3,5,"button",11),r.Ub(),r.Ub(),r.Ub()),2&t&&(r.Db(2),r.oc("ngIf",!e.hidePageSize),r.Db(3),r.Mc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),r.Db(1),r.oc("ngIf",e.showFirstLastButtons),r.Db(1),r.oc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),r.Eb("aria-label",e._intl.previousPageLabel),r.Db(3),r.oc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),r.Eb("aria-label",e._intl.nextPageLabel),r.Db(3),r.oc("ngIf",e.showFirstLastButtons))},directives:[i.o,o.a,c.a,u.c,a.a,i.n,s.m],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})(),E=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:[y],imports:[[i.c,o.b,a.b,c.b,s.i]]}),t})()},6:function(t,e){},"6F8h":function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},"6lN/":function(t,e,n){"use strict";var i=n("AQYT"),r=n("86MQ"),s=r.getNAF,o=r.getJSF,a=r.assert;function c(t,e){this.type=t,this.p=new i(e.p,16),this.red=e.prime?i.red(e.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=e.n&&new i(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(t,e){a(t.precomputed);var n=t._getDoubles(),i=s(e,1,this._bitLength),r=(1<<n.step+1)-(n.step%2==0?2:1);r/=3;for(var o=[],c=0;c<i.length;c+=n.step){var l=0;for(e=c+n.step-1;e>=c;e--)l=(l<<1)+i[e];o.push(l)}for(var h=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=r;d>0;d--){for(c=0;c<o.length;c++)(l=o[c])===d?u=u.mixedAdd(n.points[c]):l===-d&&(u=u.mixedAdd(n.points[c].neg()));h=h.add(u)}return h.toP()},c.prototype._wnafMul=function(t,e){for(var n=4,i=t._getNAFPoints(n),r=i.points,o=s(e,n=i.wnd,this._bitLength),c=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(e=0;l>=0&&0===o[l];l--)e++;if(l>=0&&e++,c=c.dblp(e),l<0)break;var h=o[l];a(0!==h),c="affine"===t.type?c.mixedAdd(h>0?r[h-1>>1]:r[-h-1>>1].neg()):c.add(h>0?r[h-1>>1]:r[-h-1>>1].neg())}return"affine"===t.type?c.toP():c},c.prototype._wnafMulAdd=function(t,e,n,i,r){for(var a=this._wnafT1,c=this._wnafT2,l=this._wnafT3,h=0,u=0;u<i;u++){var d=(C=e[u])._getNAFPoints(t);a[u]=d.wnd,c[u]=d.points}for(u=i-1;u>=1;u-=2){var f=u-1,p=u;if(1===a[f]&&1===a[p]){var m=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(m[1]=e[f].add(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].add(e[p].neg())):(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],g=o(n[f],n[p]);h=Math.max(g[0].length,h),l[f]=new Array(h),l[p]=new Array(h);for(var _=0;_<h;_++)l[f][_]=b[3*(1+(0|g[0][_]))+(1+(0|g[1][_]))],l[p][_]=0,c[f]=m}else l[f]=s(n[f],a[f],this._bitLength),l[p]=s(n[p],a[p],this._bitLength),h=Math.max(l[f].length,h),h=Math.max(l[p].length,h)}var y=this.jpoint(null,null,null),v=this._wnafT4;for(u=h;u>=0;u--){for(var w=0;u>=0;){var x=!0;for(_=0;_<i;_++)v[_]=0|l[_][u],0!==v[_]&&(x=!1);if(!x)break;w++,u--}if(u>=0&&w++,y=y.dblp(w),u<0)break;for(_=0;_<i;_++){var C,S=v[_];0!==S&&(S>0?C=c[_][S-1>>1]:S<0&&(C=c[_][-S-1>>1].neg()),y="affine"===C.type?y.mixedAdd(C):y.add(C))}}for(u=0;u<i;u++)c[u]=null;return r?y:y.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(t,e){t=r.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*n)return 6===t[0]?a(t[t.length-1]%2==0):7===t[0]&&a(t[t.length-1]%2==1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(t){return this.encode(t,!0)},l.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},l.prototype.encode=function(t,e){return r.encode(this._encode(e),t)},l.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},l.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},l.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,r=0;r<e;r+=t){for(var s=0;s<t;s++)i=i.dbl();n.push(i)}return{step:t,points:n}},l.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,i=1===n?null:this.dbl(),r=1;r<n;r++)e[r]=e[r-1].add(i);return{wnd:t,points:e}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},7:function(t,e){},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("HDdC");function r(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7Hc7":function(t,e,n){"use strict";n.d(e,"a",function(){return d});let i=1;const r=(()=>Promise.resolve())(),s={};function o(t){return t in s&&(delete s[t],!0)}const a={setImmediate(t){const e=i++;return s[e]=!0,r.then(()=>o(e)&&t()),e},clearImmediate(t){o(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 h=n("IjjT");class u extends h.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 d=new u(l)},"7KAL":function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"b",function(){return g}),n.d(e,"c",function(){return p}),n.d(e,"d",function(){return _}),n.d(e,"e",function(){return b}),n("8LU1");var i=n("8Y7J"),r=n("XNiG"),s=n("LRne"),o=n("HDdC"),a=n("xgIS");n("3N8a"),n("IjjT"),n("7Hc7");var c=(n("quSY"),n("7+OI"),n("/uUt"),n("3UWI")),l=n("pLZG"),h=n("1G5W");n("JX91"),n("7o/Q"),n("eIep"),n("jtHE");var u=n("SCoL"),d=n("SVse"),f=n("9gLZ");n("CtHx");let p=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.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 o.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(c.a)(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(Object(l.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getWindow(){return this._document.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(()=>{const t=this._getWindow();return Object(a.a)(t.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.Zb(i.B),i.Zb(u.a),i.Zb(d.d,8))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(i.B),Object(i.Zb)(u.a),Object(i.Zb)(d.d,8))},token:t,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new r.a,this._elementScrolled=new o.a(t=>this.ngZone.runOutsideAngular(()=>Object(a.a)(this.elementRef.nativeElement,"scroll").pipe(Object(h.a)(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!=Object(u.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(u.d)()?t.left=t.right:1==Object(u.d)()&&(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(u.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e="left",n="right",i=this.elementRef.nativeElement;if("top"==t)return i.scrollTop;if("bottom"==t)return i.scrollHeight-i.clientHeight-i.scrollTop;const r=this.dir&&"rtl"==this.dir.value;return"start"==t?t=r?n:e:"end"==t&&(t=r?e:n),r&&2==Object(u.d)()?t==e?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:r&&1==Object(u.d)()?t==e?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:t==e?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(p),i.Pb(i.B),i.Pb(f.b,8))},t.\u0275dir=i.Kb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),b=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new r.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._document,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(Object(c.a)(t)):this._change}_getWindow(){return this._document.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.Zb(u.a),i.Zb(i.B),i.Zb(d.d,8))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(u.a),Object(i.Zb)(i.B),Object(i.Zb)(d.d,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})(),_=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[f.a,u.b,g],f.a,g]}),t})()},"7bNT":function(t,e,n){"use strict";n.d(e,"a",function(){return H}),n.d(e,"b",function(){return N}),n.d(e,"c",function(){return ot}),n.d(e,"d",function(){return W});var i=n("tqRt"),r=n("VRyK"),s=n("HDdC"),o=n("XNiG"),a=(n("NXyV"),n("WMd4")),c=n("7o/Q");class l{call(t,e){return e.subscribe(new h(t))}}class h extends c.a{_next(t){}}class u{call(t,e){return e.subscribe(new d(t))}}class d extends c.a{constructor(t){super(t)}_next(t){this.destination.next(a.a.createNext(t))}_error(t){const e=this.destination;e.next(a.a.createError(t)),e.complete()}_complete(){const t=this.destination;t.next(a.a.createComplete()),t.complete()}}var f=n("lJxs"),p=n("JIr8"),m=n("pLZG"),b=n("quSY");function g(t,e,n,i){return r=>r.lift(new _(t,e,n,i))}class _{constructor(t,e,n,i){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=i}call(t,e){return e.subscribe(new y(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class y extends c.a{constructor(t,e,n,i,r){super(t),this.keySelector=e,this.elementSelector=n,this.durationSelector=i,this.subjectSelector=r,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(t){let e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)}_group(t,e){let n=this.groups;n||(n=this.groups=new Map);let i,r=n.get(e);if(this.elementSelector)try{i=this.elementSelector(t)}catch(s){this.error(s)}else i=t;if(!r){r=this.subjectSelector?this.subjectSelector():new o.a,n.set(e,r);const t=new w(e,r,this);if(this.destination.next(t),this.durationSelector){let t;try{t=this.durationSelector(new w(e,r))}catch(s){return void this.error(s)}this.add(t.subscribe(new v(e,r,this)))}}r.closed||r.next(i)}_error(t){const e=this.groups;e&&(e.forEach((e,n)=>{e.error(t)}),e.clear()),this.destination.error(t)}_complete(){const t=this.groups;t&&(t.forEach((t,e)=>{t.complete()}),t.clear()),this.destination.complete()}removeGroup(t){this.groups.delete(t)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class v extends c.a{constructor(t,e,n){super(e),this.key=t,this.group=e,this.parent=n}_next(t){this.complete()}_unsubscribe(){const{parent:t,key:e}=this;this.key=this.parent=null,t&&t.removeGroup(e)}}class w extends s.a{constructor(t,e,n){super(),this.key=t,this.groupSubject=e,this.refCountSubscription=n}_subscribe(t){const e=new b.a,{refCountSubscription:n,groupSubject:i}=this;return n&&!n.closed&&e.add(new x(n)),e.add(i.subscribe(t)),e}}class x extends b.a{constructor(t){super(),this.parent=t,t.count++}unsubscribe(){const t=this.parent;t.closed||this.closed||(super.unsubscribe(),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}var C=n("5+tZ"),S=n("Cfvw"),E=n("zx2A");function k(t,e){return e?n=>n.pipe(k((n,i)=>Object(S.a)(t(n,i)).pipe(Object(f.a)((t,r)=>e(n,t,i,r))))):e=>e.lift(new O(t))}class O{constructor(t){this.project=t}call(t,e){return e.subscribe(new A(t,this.project))}}class A extends E.b{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new E.a(this),n=this.destination;n.add(e);const i=Object(E.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}class D{call(t,e){return e.subscribe(new I(t))}}class I extends c.a{constructor(t){super(t)}_next(t){t.observe(this.destination)}}var T=n("IzEk"),L=(n("bOdf"),n("nYR2"),n("8Y7J"));const P={dispatch:!0,useEffectsErrorHandler:!0},R="__@ngrx/effects_create__";function M(t){return Object.getOwnPropertyNames(t).filter(e=>t[e]&&t[e].hasOwnProperty(R)).map(e=>Object.assign({propertyName:e},t[e][R]))}function j(t){return Object.getPrototypeOf(t)}const F="__@ngrx/effects__";function N(t={}){return function(e,n){var i,r;i=e,r=Object.assign(Object.assign(Object.assign({},P),t),{propertyName:n}),U(i)?i.constructor[F].push(r):Object.defineProperty(i.constructor,F,{value:[r]})}}function V(t){return Object(i.m)(B,j)(t)}function U(t){return t.constructor.hasOwnProperty(F)}function B(t){return U(t)?t.constructor[F]:[]}function z(t,e,n=10){return t.pipe(Object(p.a)(i=>(e&&e.handleError(i),n<=1?t:z(t,e,n-1))))}let H=(()=>{class t extends s.a{constructor(t){super(),t&&(this.source=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}}return t.\u0275fac=function(e){return new(e||t)(L.Zb(i.f))},t.\u0275prov=L.Lb({token:t,factory:t.\u0275fac}),t})();function W(...t){return Object(m.a)(e=>t.some(t=>"string"==typeof t?t===e.type:t.type===e.type))}function K(t){return q(t,"ngrxOnInitEffects")}function q(t,e){return t&&e in t&&"function"==typeof t[e]}const Y=new L.s("@ngrx/effects Internal Root Guard"),Z=(new L.s("ngrx/effects: Immediate Effects"),new L.s("ngrx/effects: User Provided Effects")),X=new L.s("ngrx/effects: Internal Root Effects"),G=new L.s("ngrx/effects: Root Effects"),$=new L.s("ngrx/effects: Internal Feature Effects"),Q=new L.s("ngrx/effects: Feature Effects"),J=new L.s("ngrx/effects: Effects Error Handler");let tt=(()=>{class t extends o.a{constructor(t,e){super(),this.errorHandler=t,this.effectsErrorHandler=e}addEffects(t){this.next(t)}toActions(){return this.pipe(g(j),Object(C.a)(t=>t.pipe(g(et))),Object(C.a)(t=>{const e=t.pipe(k(t=>{return(e=this.errorHandler,n=this.effectsErrorHandler,t=>{const i=function(t,e,n){const i=j(t).constructor.name,s=(o=t,[V,M].reduce((t,e)=>t.concat(e(o)),[])).map(({propertyName:r,dispatch:s,useEffectsErrorHandler:o})=>{const a="function"==typeof t[r]?t[r]():t[r],c=o?n(a,e):a;return!1===s?c.pipe(function(t){return t.lift(new l)}):c.pipe(function(t){return t.lift(new u)}).pipe(Object(f.a)(e=>({effect:t[r],notification:e,propertyName:r,sourceName:i,sourceInstance:t})))});var o;return Object(r.a)(...s)}(t,e,n);return q(t,"ngrxOnRunEffects")?t.ngrxOnRunEffects(i):i})(t);var e,n}),Object(f.a)(t=>(function(t,e){if("N"===t.notification.kind){const n=t.notification.value;!function(t){return"function"!=typeof t&&t&&t.type&&"string"==typeof t.type}(n)&&e.handleError(new Error(`Effect ${function({propertyName:t,sourceInstance:e,sourceName:n}){const i="function"==typeof e[t];return`"${n}.${String(t)}${i?"()":""}"`}(t)} dispatched an invalid action: ${function(t){try{return JSON.stringify(t)}catch(e){return t}}(n)}`))}}(t,this.errorHandler),t.notification)),Object(m.a)(t=>"N"===t.kind),function(t){return t.lift(new D)}),n=t.pipe(Object(T.a)(1),Object(m.a)(K),Object(f.a)(t=>t.ngrxOnInitEffects()));return Object(r.a)(e,n)}))}}return t.\u0275fac=function(e){return new(e||t)(L.Zb(L.n),L.Zb(J))},t.\u0275prov=L.Lb({token:t,factory:t.\u0275fac}),t})();function et(t){return q(t,"ngrxOnIdentifyEffects")?t.ngrxOnIdentifyEffects():""}let nt=(()=>{class t{constructor(t,e){this.effectSources=t,this.store=e,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(L.Zb(tt),L.Zb(i.h))},t.\u0275prov=L.Lb({token:t,factory:t.\u0275fac}),t})();const it="@ngrx/effects/init";Object(i.n)(it);let rt=(()=>{class t{constructor(t,e,n,i,r,s,o){this.sources=t,e.start(),i.forEach(e=>t.addEffects(e)),n.dispatch({type:it})}addEffects(t){this.sources.addEffects(t)}}return t.\u0275mod=L.Nb({type:t}),t.\u0275inj=L.Mb({factory:function(e){return new(e||t)(L.Zb(tt),L.Zb(nt),L.Zb(i.h),L.Zb(G),L.Zb(i.k,8),L.Zb(i.i,8),L.Zb(Y,8))}}),t})(),st=(()=>{class t{constructor(t,e,n,i){e.forEach(e=>e.forEach(e=>t.addEffects(e)))}}return t.\u0275mod=L.Nb({type:t}),t.\u0275inj=L.Mb({factory:function(e){return new(e||t)(L.Zb(rt),L.Zb(Q),L.Zb(i.k,8),L.Zb(i.i,8))}}),t})(),ot=(()=>{class t{static forFeature(t=[]){return{ngModule:st,providers:[t,{provide:$,multi:!0,useValue:t},{provide:Z,multi:!0,useValue:[]},{provide:Q,multi:!0,useFactory:at,deps:[L.t,$,Z]}]}}static forRoot(t=[]){return{ngModule:rt,providers:[{provide:J,useValue:z},nt,tt,H,t,{provide:X,useValue:[t]},{provide:Y,useFactory:ct,deps:[[nt,new L.C,new L.M],[X,new L.L]]},{provide:Z,multi:!0,useValue:[]},{provide:G,useFactory:at,deps:[L.t,X,Z]}]}}}return t.\u0275mod=L.Nb({type:t}),t.\u0275inj=L.Mb({factory:function(e){return new(e||t)}}),t})();function at(t,e,n){const i=[];for(let r of e)i.push(...r);for(let r of n)i.push(...r);return function(t,e){return e.map(e=>t.get(e))}(t,i)}function ct(t,e){if((1!==e.length||0!==e[0].length)&&t)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},"7ckf":function(t,e,n){"use strict";var i=n("w8CP"),r=n("2j6C");function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=s,s.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending=this.pending?this.pending.concat(t):t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var r=0;r<t.length;r+=this._delta32)this._update(t,r,r+this._delta32)}return this},s.prototype.digest=function(t){return this.update(this._pad()),r(null===this.pending),this._digest(t)},s.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,i=new Array(n+this.padLength);i[0]=128;for(var r=1;r<n;r++)i[r]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)i[r++]=0;i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=t>>>24&255,i[r++]=t>>>16&255,i[r++]=t>>>8&255,i[r++]=255&t}else for(i[r++]=255&t,i[r++]=t>>>8&255,i[r++]=t>>>16&255,i[r++]=t>>>24&255,i[r++]=0,i[r++]=0,i[r++]=0,i[r++]=0,s=8;s<this.padLength;s++)i[r++]=0;return i}},"7nzP":function(t,e,n){"use strict";n.d(e,"y",function(){return r}),n.d(e,"e",function(){return s}),n.d(e,"f",function(){return o}),n.d(e,"k",function(){return a}),n.d(e,"t",function(){return c}),n.d(e,"n",function(){return l}),n.d(e,"o",function(){return h}),n.d(e,"a",function(){return u}),n.d(e,"u",function(){return d}),n.d(e,"i",function(){return f}),n.d(e,"j",function(){return p}),n.d(e,"m",function(){return m}),n.d(e,"w",function(){return b}),n.d(e,"b",function(){return g}),n.d(e,"c",function(){return _}),n.d(e,"v",function(){return y}),n.d(e,"g",function(){return v}),n.d(e,"h",function(){return w}),n.d(e,"q",function(){return x}),n.d(e,"d",function(){return C}),n.d(e,"x",function(){return S}),n.d(e,"r",function(){return E}),n.d(e,"s",function(){return k}),n.d(e,"l",function(){return O}),n.d(e,"p",function(){return A});var i=n("5QHs");function r(t){const e=new i.b;return e.itemsPerPageLabel=t+" per page:",e}const s=["Sats","BTC"],o={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},a=[{id:"USD",name:"USD"},{id:"AUD",name:"AUD"},{id:"BRL",name:"BRL"},{id:"CAD",name:"CAD"},{id:"CHF",name:"CHF"},{id:"CLP",name:"CLP"},{id:"CNY",name:"CNY"},{id:"DKK",name:"DKK"},{id:"EUR",name:"EUR"},{id:"GBP",name:"GBP"},{id:"HKD",name:"HKD"},{id:"INR",name:"INR"},{id:"ISK",name:"ISK"},{id:"JPY",name:"JPY"},{id:"KRW",name:"KRW"},{id:"NZD",name:"NZD"},{id:"PLN",name:"PLN"},{id:"RUB",name:"RUB"},{id:"SEK",name:"SEK"},{id:"SGD",name:"SGD"},{id:"THB",name:"THB"},{id:"TWD",name:"TWD"}],c=["SECS","MINS","HOURS","DAYS"],l=10,h=[5,10,25,100],u=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"}],d=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],f=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Payment Amount",placeholder:"Percentage Limit"}],p=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"}],m={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var b=function(t){return t.OPERATOR="OPERATOR",t.MERCHANT="MERCHANT",t.ALL="ALL",t}({}),g=function(t){return t.INFORMATION="Information",t.WARNING="Warning",t.ERROR="Error",t.SUCCESS="Success",t.CONFIRM="Confirm",t}({}),_=function(t){return t.TOKEN="TOKEN",t.PASSWORD="PASSWORD",t}({}),y=function(t){return t.SECS="SECS",t.MINS="MINS",t.HOURS="HOURS",t.DAYS="DAYS",t}({}),v=function(t){return t.SATS="Sats",t.BTC="BTC",t.LITOSHIS="LITOSHIS",t.LTC="LTC",t.OTHER="OTHER",t}({}),w=function(t){return t.ARRAY="ARRAY",t.NUMBER="NUMBER",t.STRING="STRING",t.BOOLEAN="BOOLEAN",t.PASSWORD="PASSWORD",t.DATE="DATE",t.DATE_TIME="DATE_TIME",t}({}),x=function(t){return t.XS="XS",t.SM="SM",t.MD="MD",t.LG="LG",t.XL="XL",t}({});const C={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},S={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""}};var E=function(t){return t.INITIATED="Initiated",t.PREIMAGE_REVEALED="Preimage Revealed",t.HTLC_PUBLISHED="HTLC Published",t.SUCCESS="Successful",t.FAILED="Failed",t.INVOICE_SETTLED="Invoice Settled",t}({}),k=function(t){return t.LOOP_OUT="LOOP_OUT",t.LOOP_IN="LOOP_IN",t}({});const O=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],A=["MONTHLY","YEARLY"]},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("n6bG"),r=n("gRHU"),s=n("quSY"),o=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends s.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 h(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new h(this,t,e,n)}}[o.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 h extends l{constructor(t,e,n,s){let o;super(),this._parentSubscriber=t;let a=this;Object(i.a)(e)?o=e:e&&(o=e.next,n=e.error,s=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=o,this._error=n,this._complete=s}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()}}},"7o2P":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("LRne"),r=n("IzEk"),s=n("lJxs"),o=n("7nzP"),a=n("8Y7J"),c=n("iiaH");let l=(()=>{class t{constructor(t){this.dataService=t,this.currencyUnits=[],this.CurrencyUnitEnum=o.g,this.conversionData={data:null,last_fetched:null},this.screenSize=o.q.MD,this.containerSize={width:1200,height:800}}ngOnInit(){}getScreenSize(){return this.screenSize}setScreenSize(t){this.screenSize=t}getContainerSize(){return this.containerSize}setContainerSize(t,e){this.containerSize={width:t,height:e}}sortByKey(t,e,n,i="asc"){return t.sort("number"===n?"desc"===i?(t,n)=>+t[e]>+n[e]?-1:1:(t,n)=>+t[e]>+n[e]?1:-1:"desc"===i?(t,n)=>t[e]>n[e]?-1:1:(t,n)=>t[e]>n[e]?1:-1)}sortDescByKey(t,e){return t.sort(function(t,n){const i=+t[e],r=+n[e];return i>r?-1:i<r?1:0})}sortAscByKey(t,e){return t.sort(function(t,n){const i=+t[e],r=+n[e];return i<r?-1:i>r?1:0})}camelCase(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0==e?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,"")}titleCase(t){return t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()}convertCurrency(t,e,n,o){let a=(new Date).valueOf();return o&&n?this.conversionData.data&&this.conversionData.last_fetched&&a<this.conversionData.last_fetched.valueOf()+3e5?Object(i.a)(this.convertWithFiat(t,e,n)):this.dataService.getFiatRates().pipe(Object(r.a)(1),Object(s.a)(i=>(this.conversionData.data=i?JSON.parse(i):{},this.conversionData.last_fetched=a,this.convertWithFiat(t,e,n)))):Object(i.a)(this.convertWithoutFiat(t,e))}convertWithoutFiat(t,e){let n={};switch(n[o.g.SATS]=0,n[o.g.BTC]=0,e){case o.g.SATS:n[o.g.SATS]=t,n[o.g.BTC]=1e-8*t;break;case o.g.BTC:n[o.g.SATS]=1e8*t,n[o.g.BTC]=t}return n}convertWithFiat(t,e,n){let i={unit:n,symbol:this.conversionData.data[n].symbol};switch(i[o.g.SATS]=0,i[o.g.BTC]=0,i[o.g.OTHER]=0,e){case o.g.SATS:i[o.g.SATS]=t,i[o.g.BTC]=1e-8*t,i[o.g.OTHER]=1e-8*t*this.conversionData.data[n].last;break;case o.g.BTC:i[o.g.SATS]=1e8*t,i[o.g.BTC]=t,i[o.g.OTHER]=t*this.conversionData.data[n].last;break;case o.g.OTHER:i[o.g.SATS]=t/this.conversionData.data[n].last*1e8,i[o.g.BTC]=t/this.conversionData.data[n].last,i[o.g.OTHER]=t}return i}convertTime(t,e,n){switch(e){case o.v.SECS:switch(n){case o.v.MINS:t/=60;break;case o.v.HOURS:t/=3600;break;case o.v.DAYS:t/=86400}break;case o.v.MINS:switch(n){case o.v.SECS:t*=60;break;case o.v.HOURS:t/=60;break;case o.v.DAYS:t/=1440}break;case o.v.HOURS:switch(n){case o.v.SECS:t*=3600;break;case o.v.MINS:t*=60;break;case o.v.DAYS:t/=24}break;case o.v.DAYS:switch(n){case o.v.SECS:t=3600*t*24;break;case o.v.MINS:t=60*t*24;break;case o.v.HOURS:t*=24}}return t}convertTimestampToDate(t){return new Date(1e3*t).toUTCString().substring(5,22).replace(" ","/").replace(" ","/").toUpperCase()}downloadFile(t,e,n=".json",i=".csv"){let r=new Blob;r=".json"===n?new Blob(["\ufeff"+this.convertToCSV(t)],{type:"text/csv;charset=utf-8;"}):new Blob(["\ufeff"+t],{type:"text;charset=utf-8;"});let s=document.createElement("a"),o=URL.createObjectURL(r);-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")&&s.setAttribute("target","_blank"),s.setAttribute("href",o),s.setAttribute("download",e+i),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s)}convertToCSV(t){let e=[],n="",i="",r="";"object"!=typeof t&&(t=JSON.parse(t)),t.forEach((t,n)=>{for(var i in t)e.findIndex(t=>t===i)<0&&e.push(i)});let s=e.join(",");return r=s+"\r\n",t.forEach(t=>{n="",e.forEach(e=>{t.hasOwnProperty(e)?Array.isArray(t[e])?(i="",t[e].forEach((t,e)=>{i+="object"==typeof t?"("+JSON.stringify(t).replace(/\,/g,";")+")":"("+t+")"}),n+=i+","):n+="object"==typeof t[e]?JSON.stringify(t[e]).replace(/\,/g,";")+",":t[e]+",":n+=","}),r+=n.slice(0,-1)+"\r\n"}),r}isVersionCompatible(t,e){let n=t.trim().replace("v","").split("-")[0].split("."),i=e.split(".");return+n[0]>+i[0]||+n[0]==+i[0]&&+n[1]>+i[1]||+n[0]==+i[0]&&+n[1]==+i[1]&&+n[2]>=+i[2]}}return t.\u0275fac=function(e){return new(e||t)(a.Zb(c.a))},t.\u0275prov=a.Lb({token:t,factory:t.\u0275fac}),t})()},"7zrB":function(t,e,n){"use strict";const i=n("ND7S"),r=n("IPZY"),s=n("P7XM");function o(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new o(t,e)},o.prototype._createNamed=function(t){const e=this.name;function n(t){this._initNamed(t,e)}return s(n,t),n.prototype._initNamed=function(e,n){t.call(this,e,n)},new n(this)},o.prototype._getDecoder=function(t){return this.decoders.hasOwnProperty(t=t||"der")||(this.decoders[t]=this._createNamed(r[t])),this.decoders[t]},o.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},o.prototype._getEncoder=function(t){return this.encoders.hasOwnProperty(t=t||"der")||(this.encoders[t]=this._createNamed(i[t])),this.encoders[t]},o.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},"86MQ":function(t,e,n){"use strict";var i=e,r=n("AQYT"),s=n("2j6C"),o=n("dlgc");i.assert=s,i.toArray=o.toArray,i.zero2=o.zero2,i.toHex=o.toHex,i.encode=o.encode,i.getNAF=function(t,e,n){var i=new Array(Math.max(t.bitLength(),n)+1);i.fill(0);for(var r=1<<e+1,s=t.clone(),o=0;o<i.length;o++){var a,c=s.andln(r-1);s.isOdd()?s.isubn(a=c>(r>>1)-1?(r>>1)-c:c):a=0,i[o]=a,s.iushrn(1)}return i},i.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var i=0,r=0;t.cmpn(-i)>0||e.cmpn(-r)>0;){var s,o,a,c=t.andln(3)+i&3,l=e.andln(3)+r&3;3===c&&(c=-1),3===l&&(l=-1),s=0==(1&c)?0:3!=(a=t.andln(7)+i&7)&&5!==a||2!==l?c:-c,n[0].push(s),o=0==(1&l)?0:3!=(a=e.andln(7)+r&7)&&5!==a||2!==c?l:-l,n[1].push(o),2*i===s+1&&(i=1-i),2*r===o+1&&(r=1-r),t.iushrn(1),e.iushrn(1)}return n},i.cachedProperty=function(t,e,n){var i="_"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=n.call(this)}},i.parseBytes=function(t){return"string"==typeof t?i.toArray(t,"hex"):t},i.intFromLE=function(t){return new r(t,"hex","le")}},"8LU1":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return l}),n.d(e,"f",function(){return s}),n.d(e,"g",function(){return h});var i=n("8Y7J");function r(t){return null!=t&&""+t!="false"}function s(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof i.l?t.nativeElement:t}function h(t,e=/\s+/){const n=[];if(null!=t){const i=Array.isArray(t)?t:(""+t).split(e);for(const t of i){const e=(""+t).trim();e&&n.push(e)}}return n}},"8Qe2":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return d});var i=n("UhP/"),r=n("YEUz"),s=n("8LU1"),o=n("omvX"),a=n("8Y7J");let c=0;class l{}const h=Object(i.z)(l);let u=(()=>{class t extends h{constructor(t,e,n,i,r){super(),this._ngZone=t,this._elementRef=e,this._ariaDescriber=n,this._renderer=i,this._animationMode=r,this._hasContent=!1,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=c++}get color(){return this._color}set color(t){this._setColor(t),this._color=t}get overlap(){return this._overlap}set overlap(t){this._overlap=Object(s.c)(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=Object(s.c)(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._stringifyContent():this._badgeElement=this._createBadgeElement(),this._badgeElement}_createBadgeElement(){const t=this._renderer.createElement("span"),e="mat-badge-active",n="mat-badge-content";return this._clearExistingBadges(n),t.setAttribute("id","mat-badge-content-"+this._id),t.classList.add(n),t.textContent=this._stringifyContent(),"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(e)})}):t.classList.add(e),t}_updateHostAriaDescription(t,e){const n=this._updateTextContent();e&&this._ariaDescriber.removeDescription(n,e),t&&this._ariaDescriber.describe(n,t)}_setColor(t){if(t!==this._color){const e=this._elementRef.nativeElement.classList;this._color&&e.remove("mat-badge-"+this._color),t&&e.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)}}_stringifyContent(){const t=this.content;return null==t?"":""+t}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.B),a.Pb(a.l),a.Pb(r.c),a.Pb(a.G),a.Pb(o.a,8))},t.\u0275dir=a.Kb({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(t,e){2&t&&a.Hb("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:[a.Ab,a.Bb]}),t})(),d=(()=>{class t{}return t.\u0275mod=a.Nb({type:t}),t.\u0275inj=a.Mb({factory:function(e){return new(e||t)},imports:[[r.a,i.i],i.i]}),t})()},"8Spv":function(t,e,n){t.exports=n("+qE3").EventEmitter},"8Y7J":function(t,e,n){"use strict";n.d(e,"a",function(){return hn}),n.d(e,"b",function(){return ul}),n.d(e,"c",function(){return ol}),n.d(e,"d",function(){return rl}),n.d(e,"e",function(){return sl}),n.d(e,"f",function(){return oh}),n.d(e,"g",function(){return Zl}),n.d(e,"h",function(){return Ka}),n.d(e,"i",function(){return xl}),n.d(e,"j",function(){return _a}),n.d(e,"k",function(){return pl}),n.d(e,"l",function(){return xa}),n.d(e,"m",function(){return nh}),n.d(e,"n",function(){return ki}),n.d(e,"o",function(){return Pc}),n.d(e,"p",function(){return ms}),n.d(e,"q",function(){return vn}),n.d(e,"r",function(){return k}),n.d(e,"s",function(){return ln}),n.d(e,"t",function(){return Ts}),n.d(e,"u",function(){return Va}),n.d(e,"v",function(){return Ua}),n.d(e,"w",function(){return fl}),n.d(e,"x",function(){return nc}),n.d(e,"y",function(){return Gl}),n.d(e,"z",function(){return ec}),n.d(e,"A",function(){return Hl}),n.d(e,"B",function(){return El}),n.d(e,"C",function(){return wn}),n.d(e,"D",function(){return hl}),n.d(e,"E",function(){return ll}),n.d(e,"F",function(){return Mc}),n.d(e,"G",function(){return Sa}),n.d(e,"H",function(){return Ca}),n.d(e,"I",function(){return Li}),n.d(e,"J",function(){return ka}),n.d(e,"K",function(){return yi}),n.d(e,"L",function(){return xn}),n.d(e,"M",function(){return Cn}),n.d(e,"N",function(){return Jl}),n.d(e,"O",function(){return $a}),n.d(e,"P",function(){return Ll}),n.d(e,"Q",function(){return un}),n.d(e,"R",function(){return Oa}),n.d(e,"S",function(){return rc}),n.d(e,"T",function(){return L}),n.d(e,"U",function(){return Wl}),n.d(e,"V",function(){return g}),n.d(e,"W",function(){return Bl}),n.d(e,"X",function(){return f}),n.d(e,"Y",function(){return Ln}),n.d(e,"Z",function(){return Ul}),n.d(e,"ab",function(){return rh}),n.d(e,"bb",function(){return Ml}),n.d(e,"cb",function(){return dl}),n.d(e,"db",function(){return gs}),n.d(e,"eb",function(){return ra}),n.d(e,"fb",function(){return gi}),n.d(e,"gb",function(){return ti}),n.d(e,"hb",function(){return Hn}),n.d(e,"ib",function(){return Kn}),n.d(e,"jb",function(){return Xn}),n.d(e,"kb",function(){return Yn}),n.d(e,"lb",function(){return qn}),n.d(e,"mb",function(){return Zn}),n.d(e,"nb",function(){return ta}),n.d(e,"ob",function(){return ih}),n.d(e,"pb",function(){return ea}),n.d(e,"qb",function(){return na}),n.d(e,"rb",function(){return Wn}),n.d(e,"sb",function(){return F}),n.d(e,"tb",function(){return Bs}),n.d(e,"ub",function(){return co}),n.d(e,"vb",function(){return ao}),n.d(e,"wb",function(){return Jo}),n.d(e,"xb",function(){return kt}),n.d(e,"yb",function(){return h}),n.d(e,"zb",function(){return zn}),n.d(e,"Ab",function(){return Ps}),n.d(e,"Bb",function(){return yt}),n.d(e,"Cb",function(){return ma}),n.d(e,"Db",function(){return _r}),n.d(e,"Eb",function(){return qs}),n.d(e,"Fb",function(){return Io}),n.d(e,"Gb",function(){return Yo}),n.d(e,"Hb",function(){return Do}),n.d(e,"Ib",function(){return Xc}),n.d(e,"Jb",function(){return Z}),n.d(e,"Kb",function(){return et}),n.d(e,"Lb",function(){return b}),n.d(e,"Mb",function(){return _}),n.d(e,"Nb",function(){return Q}),n.d(e,"Ob",function(){return nt}),n.d(e,"Pb",function(){return Gs}),n.d(e,"Qb",function(){return no}),n.d(e,"Rb",function(){return so}),n.d(e,"Sb",function(){return ro}),n.d(e,"Tb",function(){return io}),n.d(e,"Ub",function(){return eo}),n.d(e,"Vb",function(){return to}),n.d(e,"Wb",function(){return oo}),n.d(e,"Xb",function(){return sn}),n.d(e,"Yb",function(){return Zo}),n.d(e,"Zb",function(){return Tn}),n.d(e,"ac",function(){return on}),n.d(e,"bc",function(){return il}),n.d(e,"cc",function(){return $s}),n.d(e,"dc",function(){return lo}),n.d(e,"ec",function(){return Qc}),n.d(e,"fc",function(){return we}),n.d(e,"gc",function(){return ve}),n.d(e,"hc",function(){return mo}),n.d(e,"ic",function(){return Oc}),n.d(e,"jc",function(){return Ac}),n.d(e,"kc",function(){return Dc}),n.d(e,"lc",function(){return Ic}),n.d(e,"mc",function(){return _o}),n.d(e,"nc",function(){return go}),n.d(e,"oc",function(){return Qs}),n.d(e,"pc",function(){return yo}),n.d(e,"qc",function(){return vo}),n.d(e,"rc",function(){return yc}),n.d(e,"sc",function(){return vc}),n.d(e,"tc",function(){return wc}),n.d(e,"uc",function(){return xc}),n.d(e,"vc",function(){return Kc}),n.d(e,"wc",function(){return Xs}),n.d(e,"xc",function(){return Ii}),n.d(e,"yc",function(){return Di}),n.d(e,"zc",function(){return qt}),n.d(e,"Ac",function(){return vi}),n.d(e,"Bc",function(){return wi}),n.d(e,"Cc",function(){return J}),n.d(e,"Dc",function(){return Gc}),n.d(e,"Ec",function(){return qc}),n.d(e,"Fc",function(){return Ao}),n.d(e,"Gc",function(){return ho}),n.d(e,"Hc",function(){return Xo}),n.d(e,"Ic",function(){return Zs}),n.d(e,"Jc",function(){return nl}),n.d(e,"Kc",function(){return zo}),n.d(e,"Lc",function(){return Ho}),n.d(e,"Mc",function(){return Wo}),n.d(e,"Nc",function(){return Ko}),n.d(e,"Oc",function(){return qo}),n.d(e,"Pc",function(){return Yc});var i=n("XNiG"),r=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(t){for(let e in t)if(t[e]===c)return e;throw Error("Could not find renamed property on target object.")}function l(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).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 u(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=c({__forward_ref__:c});function f(t){return t.__forward_ref__=f,t.toString=function(){return h(this())},t}function p(t){return m(t)?t():t}function m(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===f}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const g=b;function _(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return v(t,x)||v(t,S)}function v(t,e){return t.hasOwnProperty(e)?t[e]:null}function w(t){return t&&(t.hasOwnProperty(C)||t.hasOwnProperty(E))?t[C]:null}const x=c({"\u0275prov":c}),C=c({"\u0275inj":c}),S=c({ngInjectableDef:c}),E=c({ngInjectorDef:c});var k=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}({});let O;function A(t){const e=O;return O=t,e}function D(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&k.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${h(t)}]`)}function I(t){return{toString:t}.toString()}var T=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),L=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const P="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,M="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,j="undefined"!=typeof global&&global,F=P||j||R||M,N={},V=[],U=c({"\u0275cmp":c}),B=c({"\u0275dir":c}),z=c({"\u0275pipe":c}),H=c({"\u0275mod":c}),W=c({"\u0275loc":c}),K=c({"\u0275fac":c}),q=c({__NG_ELEMENT_ID__:c});let Y=0;function Z(t){return I(()=>{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===T.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||L.Emulated,id:"c",styles:t.styles||V,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,s=t.pipes;return n.id+=Y++,n.inputs=tt(t.inputs,e),n.outputs=tt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(X):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(G):null,n})}function X(t){return it(t)||function(t){return t[B]||null}(t)}function G(t){return function(t){return t[z]||null}(t)}const $={};function Q(t){const e={type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&I(()=>{$[t.id]=t.type}),e}function J(t,e){return I(()=>{const n=rt(t,!0);n.declarations=e.declarations||V,n.imports=e.imports||V,n.exports=e.exports||V})}function tt(t,e){if(null==t)return N;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,e&&(e[r]=s)}return n}const et=Z;function nt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function it(t){return t[U]||null}function rt(t,e){const n=t[H]||null;if(!n&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return n}const st=20,ot=10;function at(t){return Array.isArray(t)&&"object"==typeof t[1]}function ct(t){return Array.isArray(t)&&!0===t[1]}function lt(t){return 0!=(8&t.flags)}function ht(t){return 2==(2&t.flags)}function ut(t){return 1==(1&t.flags)}function dt(t){return null!==t.template}function ft(t,e){return t.hasOwnProperty(K)?t[K]:null}class pt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function mt(t){return"string"==typeof t?t:null==t?"":String(t)}function bt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():mt(t)}function gt(t,e){const n=e?" in "+e:"";throw new pt("201",`No provider for ${bt(t)} found${n}`)}class _t{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function yt(){return vt}function vt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),wt}function wt(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===N)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,n,i){const r=Ct(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:N,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],c=o[a];s[a]=new _t(c&&c.currentValue,e,o===N),t[i]=e}function Ct(t){return t.__ngSimpleChanges__||null}yt.ngInherit=!0;const St="http://www.w3.org/2000/svg";let Et=void 0;function kt(t){Et=t}function Ot(){return void 0!==Et?Et:"undefined"!=typeof document?document:void 0}function At(t){return!!t.listen}const Dt={createRenderer:(t,e)=>Ot()};function It(t){for(;Array.isArray(t);)t=t[0];return t}function Tt(t,e){return It(e[t])}function Lt(t,e){return It(e[t.index])}function Pt(t,e){return t.data[e]}function Rt(t,e){return t[e]}function Mt(t,e){const n=e[t];return at(n)?n:n[0]}function jt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ft(t){return 4==(4&t[2])}function Nt(t){return 128==(128&t[2])}function Vt(t,e){return null==e?null:t[e]}function Ut(t){t[18]=0}function Bt(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 zt={lFrame:fe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ht(){return zt.bindingsEnabled}function Wt(){return zt.lFrame.lView}function Kt(){return zt.lFrame.tView}function qt(t){zt.lFrame.contextLView=t}function Yt(){let t=Zt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Zt(){return zt.lFrame.currentTNode}function Xt(t,e){const n=zt.lFrame;n.currentTNode=t,n.isParent=e}function Gt(){return zt.lFrame.isParent}function $t(){zt.lFrame.isParent=!1}function Qt(){return zt.isInCheckNoChangesMode}function Jt(t){zt.isInCheckNoChangesMode=t}function te(){const t=zt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ee(){return zt.lFrame.bindingIndex}function ne(){return zt.lFrame.bindingIndex++}function ie(t){const e=zt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function re(t,e){const n=zt.lFrame;n.bindingIndex=n.bindingRootIndex=t,se(e)}function se(t){zt.lFrame.currentDirectiveIndex=t}function oe(t){const e=zt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function ae(){return zt.lFrame.currentQueryIndex}function ce(t){zt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,n){if(n&k.SkipSelf){let i=e,r=t;for(;i=i.parent,!(null!==i||n&k.Host||(i=le(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}const i=zt.lFrame=de();return i.currentTNode=e,i.lView=t,!0}function ue(t){const e=de(),n=t[1];zt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function de(){const t=zt.lFrame,e=null===t?null:t.child;return null===e?fe(t):e}function fe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function pe(){const t=zt.lFrame;return zt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const me=pe;function be(){const t=pe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function ge(){return zt.lFrame.selectedIndex}function _e(t){zt.lFrame.selectedIndex=t}function ye(){const t=zt.lFrame;return Pt(t.tView,t.selectedIndex)}function ve(){zt.lFrame.currentNamespace=St}function we(){zt.lFrame.currentNamespace=null}function xe(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:s,ngAfterViewChecked:o,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)),s&&(t.viewHooks||(t.viewHooks=[])).push(-n,s),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Ce(t,e,n){ke(t,e,3,n)}function Se(t,e,n,i){(3&t[2])===n&&ke(t,e,n,i)}function Ee(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function ke(t,e,n,i){const r=null!=i?i:-1;let s=0;for(let o=void 0!==i?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(s=e[o],null!=i&&s>=i)break}else e[o]<0&&(t[18]+=65536),(s<r||-1==r)&&(Oe(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Oe(t,e,n,i){const r=n[i]<0,s=n[i+1],o=t[r?-n[i]:n[i]];r?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,s.call(o)):s.call(o)}const Ae=-1;class De{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ie(t,e,n){const i=At(t);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const o=n[r++],a=n[r++],c=n[r++];i?t.setAttribute(e,a,c,o):e.setAttributeNS(o,a,c)}else{const o=s,a=n[++r];Le(o)?i&&t.setProperty(e,o,a):i?t.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Te(t){return 3===t||4===t||6===t}function Le(t){return 64===t.charCodeAt(0)}function Pe(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||Re(t,n,r,null,-1===n||2===n?e[++i]:null)}}return t}function Re(t,e,n,i,r){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const n=t[s++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=s-1;break}}}for(;s<t.length;){const e=t[s];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function Me(t){return t!==Ae}function je(t){return 32767&t}function Fe(t,e){let n=t>>16,i=e;for(;n>0;)i=i[15],n--;return i}let Ne=!0;function Ve(t){const e=Ne;return Ne=t,e}let Ue=0;function Be(t,e){const n=He(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,ze(i.data,t),ze(e,null),ze(i.blueprint,null));const r=We(t,e),s=t.injectorIndex;if(Me(r)){const t=je(r),n=Fe(r,e),i=n[1].data;for(let r=0;r<8;r++)e[s+r]=n[t+r]|i[t+r]}return e[s+8]=r,s}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function He(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function We(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 Ae;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Ae}function Ke(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(q)&&(i=n[q]),null==i&&(i=n[q]=Ue++);const r=255&i,s=1<<r,o=64&r,a=32&r,c=e.data;128&r?o?a?c[t+7]|=s:c[t+6]|=s:a?c[t+5]|=s:c[t+4]|=s:o?a?c[t+3]|=s:c[t+2]|=s:a?c[t+1]|=s:c[t]|=s}(t,e,n)}function qe(t,e,n){if(n&k.Optional)return t;gt(e,"NodeInjector")}function Ye(t,e,n,i){if(n&k.Optional&&void 0===i&&(i=null),0==(n&(k.Self|k.Host))){const r=t[9],s=A(void 0);try{return r?r.get(e,i,n&k.Optional):D(e,i,n&k.Optional)}finally{A(s)}}return qe(i,e,n)}function Ze(t,e,n,i=k.Default,r){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(q)?t[q]:void 0;return"number"==typeof e?e>=0?255&e:Ge:e}(n);if("function"==typeof s){if(!he(e,t,i))return i&k.Host?qe(r,n,i):Ye(e,n,i,r);try{const t=s();if(null!=t||i&k.Optional)return t;gt(n)}finally{me()}}else if("number"==typeof s){let r=null,o=He(t,e),a=Ae,c=i&k.Host?e[16][6]:null;for((-1===o||i&k.SkipSelf)&&(a=-1===o?We(t,e):e[o+8],a!==Ae&&en(i,!1)?(r=e[1],o=je(a),e=Fe(a,e)):o=-1);-1!==o;){const t=e[1];if(tn(s,o,t.data)){const t=$e(o,e,n,r,i,c);if(t!==Xe)return t}a=e[o+8],a!==Ae&&en(i,e[1].data[o+8]===c)&&tn(s,o,e)?(r=t,o=je(a),e=Fe(a,e)):o=-1}}}return Ye(e,n,i,r)}const Xe={};function Ge(){return new nn(Yt(),Wt())}function $e(t,e,n,i,r,s){const o=e[1],a=o.data[t+8],c=Qe(a,o,n,null==i?ht(a)&&Ne:i!=o&&0!=(3&a.type),r&k.Host&&s===a);return null!==c?Je(e,o,c,a):Xe}function Qe(t,e,n,i,r){const s=t.providerIndexes,o=e.data,a=1048575&s,c=t.directiveStart,l=s>>20,h=r?a+l:t.directiveEnd;for(let u=i?a:a+l;u<h;u++){const t=o[u];if(u<c&&n===t||u>=c&&t.type===n)return u}if(r){const t=o[c];if(t&&dt(t)&&t.type===n)return c}return null}function Je(t,e,n,i){let r=t[n];const s=e.data;if(r instanceof De){const o=r;o.resolving&&function(t,e){throw new pt("200","Circular dependency in DI detected for "+t)}(bt(s[n]));const a=Ve(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?A(o.injectImpl):null;he(t,i,k.Default);try{r=t[n]=o.factory(void 0,s,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const i=vt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==c&&A(c),Ve(a),o.resolving=!1,me()}}return r}function tn(t,e,n){const i=64&t,r=32&t;let s;return s=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],!!(s&1<<t)}function en(t,e){return!(t&k.Self||t&k.Host&&e)}class nn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Ze(this._tNode,this._lView,t,void 0,e)}}function rn(t){const e=t;if(m(t))return()=>{const t=rn(p(e));return t?t():null};let n=ft(e);if(null===n){const t=w(e);n=t&&t.factory}return n||null}function sn(t){return I(()=>{const e=t.prototype.constructor,n=e[K]||rn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[K]||rn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function on(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(Te(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}(Yt(),t)}const an="__parameters__";function cn(t,e,n){return I(()=>{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(an)?t[an]:Object.defineProperty(t,an,{value:[]})[an];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})}class ln{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=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const hn=new ln("AnalyzeForEntryComponents"),un=Function;function dn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let i=t[n];Array.isArray(i)?(e===t&&(e=t.slice(0,n)),dn(i,e)):e!==t&&e.push(i)}return e}function fn(t,e){t.forEach(t=>Array.isArray(t)?fn(t,e):e(t))}function pn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function mn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function bn(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function gn(t,e,n){let i=yn(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 _n(t,e){const n=yn(t,e);if(n>=0)return t[1|n]}function yn(t,e){return function(t,e,n){let i=0,r=t.length>>1;for(;r!==i;){const n=i+(r-i>>1),s=t[n<<1];if(e===s)return n<<1;s>e?r=n:i=n+1}return~(r<<1)}(t,e)}const vn=cn("Inject",t=>({token:t})),wn=cn("Optional"),xn=cn("Self"),Cn=cn("SkipSelf"),Sn={},En=/\n/gm,kn="__source",On=c({provide:String,useValue:c});let An=void 0;function Dn(t){const e=An;return An=t,e}function In(t,e=k.Default){if(void 0===An)throw new Error("inject() must be called from an injection context");return null===An?D(t,void 0,e):An.get(t,e&k.Optional?null:void 0,e)}function Tn(t,e=k.Default){return(O||In)(p(t),e)}const Ln=Tn;function Pn(t){const e=[];for(let n=0;n<t.length;n++){const i=p(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=k.Default;for(let e=0;e<i.length;e++){const r=i[e];r instanceof wn||"Optional"===r.ngMetadataName||r===wn?n|=k.Optional:r instanceof Cn||"SkipSelf"===r.ngMetadataName||r===Cn?n|=k.SkipSelf:r instanceof xn||"Self"===r.ngMetadataName||r===xn?n|=k.Self:t=r instanceof vn||r===vn?r.token:r}e.push(Tn(t,n))}else e.push(Tn(i))}return e}let Rn;function Mn(t){var e;return(null===(e=function(){if(void 0===Rn&&(Rn=null,F.trustedTypes))try{Rn=F.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Rn}())||void 0===e?void 0:e.createHTML(t))||t}class jn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Fn extends jn{getTypeName(){return"HTML"}}class Nn extends jn{getTypeName(){return"Style"}}class Vn extends jn{getTypeName(){return"Script"}}class Un extends jn{getTypeName(){return"URL"}}class Bn extends jn{getTypeName(){return"ResourceURL"}}function zn(t){return t instanceof jn?t.changingThisBreaksApplicationSecurity:t}function Hn(t,e){const n=Wn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Wn(t){return t instanceof jn&&t.getTypeName()||null}function Kn(t){return new Fn(t)}function qn(t){return new Nn(t)}function Yn(t){return new Vn(t)}function Zn(t){return new Un(t)}function Xn(t){return new Bn(t)}class Gn{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(Mn(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class $n{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=Mn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Mn(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 Qn=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Jn=/^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 ti(t){return(t=String(t)).match(Qn)||t.match(Jn)?t:"unsafe:"+t}function ei(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function ni(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ii=ei("area,br,col,hr,img,wbr"),ri=ei("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),si=ei("rp,rt"),oi=ni(si,ri),ai=ni(ii,ni(ri,ei("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")),ni(si,ei("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")),oi),ci=ei("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),li=ei("srcset"),hi=ni(ci,li,ei("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"),ei("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")),ui=ei("script,style,template");class di{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(!ai.hasOwnProperty(e))return this.sanitizedSomething=!0,!ui.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,s=e.toLowerCase();if(!hi.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=t.value;ci[s]&&(o=ti(o)),li[s]&&(i=o,o=(i=String(i)).split(",").map(t=>ti(t.trim())).join(", ")),this.buf.push(" ",e,'="',mi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ai.hasOwnProperty(e)&&!ii.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(mi(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,pi=/([^\#-~ |!])/g;function mi(t){return t.replace(/&/g,"&amp;").replace(fi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(pi,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let bi;function gi(t,e){let n=null;try{bi=bi||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(Mn(""),"text/html")}catch(t){return!1}}()?new Gn:new $n(t)}(t);let i=e?String(e):"";n=bi.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=bi.getInertBodyElement(i)}while(i!==s);return(new di).sanitizeChildren(_i(n)||n)}finally{if(n){const t=_i(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function _i(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yi=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 vi(t){const e=xi();return e?e.sanitize(yi.HTML,t)||"":Hn(t,"HTML")?zn(t):gi(Ot(),mt(t))}function wi(t){const e=xi();return e?e.sanitize(yi.URL,t)||"":Hn(t,"URL")?zn(t):ti(mt(t))}function xi(){const t=Wt();return t&&t[12]}function Ci(t){return t.ngDebugContext}function Si(t){return t.ngOriginalError}function Ei(t,...e){t.error(...e)}class ki{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||Ei}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Ci(t)?Ci(t):this._findContext(Si(t)):null}_findOriginalError(t){let e=Si(t);for(;e&&Si(e);)e=Si(e);return e}}function Oi(t,e){t.__ngContext__=e}const Ai=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Di(t){return{name:"window",target:t.ownerDocument.defaultView}}function Ii(t){return{name:"body",target:t.ownerDocument.body}}function Ti(t){return t instanceof Function?t():t}var Li=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Pi(t,e){return(void 0)(t,e)}function Ri(t){const e=t[3];return ct(e)?e[3]:e}function Mi(t){return Fi(t[13])}function ji(t){return Fi(t[4])}function Fi(t){for(;null!==t&&!ct(t);)t=t[4];return t}function Ni(t,e,n,i,r){if(null!=i){let s,o=!1;ct(i)?s=i:at(i)&&(o=!0,i=i[0]);const a=It(i);0===t&&null!==n?null==r?qi(e,n,a):Ki(e,n,a,r||null,!0):1===t&&null!==n?Ki(e,n,a,r||null,!0):2===t?function(t,e,n){const i=Zi(t,e);i&&function(t,e,n,i){At(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,i,r){const s=n[7];s!==It(n)&&Ni(e,t,i,s,r);for(let o=ot;o<n.length;o++){const r=n[o];er(r[1],r,t,e,i,s)}}(e,t,s,n,r)}}function Vi(t,e,n){return At(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Ui(t,e){const n=t[9],i=n.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,Bt(r,-1)),n.splice(i,1)}function Bi(t,e){if(t.length<=ot)return;const n=ot+e,i=t[n];if(i){const s=i[17];null!==s&&s!==t&&Ui(s,i),e>0&&(t[n-1][4]=i[4]);const o=mn(t,ot+e);er(i[1],r=i,r[11],2,null,null),r[0]=null,r[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}var r;return i}function zi(t,e){if(!(256&e[2])){const n=e[11];At(n)&&n.destroyNode&&er(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Hi(t[1],t);for(;e;){let n=null;if(at(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)at(e)&&Hi(e[1],e),e=e[3];null===e&&(e=t),at(e)&&Hi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Hi(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 De)){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,i=e[7];let r=-1;if(null!==n){for(let t=0;t<n.length-1;t+=2)if("string"==typeof n[t]){const s=n[t+1],o="function"==typeof s?s(e):It(e[s]),a=i[r=n[t+2]],c=n[t+3];"boolean"==typeof c?o.removeEventListener(n[t],a,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),t+=2}else{const e=i[r=n[t+1]];n[t].call(e)}if(null!==i)for(let t=r+1;t<i.length;t++)(0,i[t])();e[7]=null}}(t,e),1===e[1].type&&At(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&ct(e[3])){n!==e[3]&&Ui(n,e);const i=e[19];null!==i&&i.detachView(t)}}}function Wi(t,e,n){return function(t,e,n){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return n[0];if(2&i.flags){const e=t.data[i.directiveStart].encapsulation;if(e===L.None||e===L.Emulated)return null}return Lt(i,n)}(t,e.parent,n)}function Ki(t,e,n,i,r){At(t)?t.insertBefore(e,n,i,r):e.insertBefore(n,i,r)}function qi(t,e,n){At(t)?t.appendChild(e,n):e.appendChild(n)}function Yi(t,e,n,i,r){null!==i?Ki(t,e,n,i,r):qi(t,e,n)}function Zi(t,e){return At(t)?t.parentNode(e):e.parentNode}function Xi(t,e,n){return Gi(t,e,n)}let Gi=function(t,e,n){return 40&t.type?Lt(t,n):null};function $i(t,e,n,i){const r=Wi(t,i,e),s=e[11],o=Xi(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(n))for(let a=0;a<n.length;a++)Yi(s,r,n[a],o,!1);else Yi(s,r,n,o,!1)}function Qi(t,e){if(null!==e){const n=e.type;if(3&n)return Lt(e,t);if(4&n)return Ji(-1,t[e.index]);if(8&n){const n=e.child;if(null!==n)return Qi(t,n);{const n=t[e.index];return ct(n)?Ji(-1,n):It(n)}}if(32&n)return Pi(e,t)()||It(t[e.index]);{const n=t[16],i=n[6],r=Ri(n),s=i.projection[e.projection];return null!=s?Qi(r,s):Qi(t,e.next)}}return null}function Ji(t,e){const n=ot+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return Qi(t,i)}return e[7]}function tr(t,e,n,i,r,s,o){for(;null!=n;){const a=i[n.index],c=n.type;if(o&&0===e&&(a&&Oi(It(a),i),n.flags|=4),64!=(64&n.flags))if(8&c)tr(t,e,n.child,i,r,s,!1),Ni(e,t,r,a,s);else if(32&c){const o=Pi(n,i);let c;for(;c=o();)Ni(e,t,r,c,s);Ni(e,t,r,a,s)}else 16&c?nr(t,e,i,n,r,s):Ni(e,t,r,a,s);n=o?n.projectionNext:n.next}}function er(t,e,n,i,r,s){tr(n,i,t.firstChild,e,r,s,!1)}function nr(t,e,n,i,r,s){const o=n[16],a=o[6].projection[i.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)Ni(e,t,r,a[c],s);else tr(t,e,a,o[3],r,s,!0)}function ir(t,e,n){At(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function rr(t,e,n){At(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function sr(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}}const or="ng-template";function ar(t,e,n){let i=0;for(;i<t.length;){let r=t[i++];if(n&&"class"===r){if(r=t[i],-1!==sr(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 cr(t){return 4===t.type&&t.value!==or}function lr(t,e,n){return e===(4!==t.type||n?t.value:or)}function hr(t,e,n){let i=4;const r=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(Te(t[e]))return e;return t.length}(r);let o=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!o)if(4&i){if(i=2|1&i,""!==c&&!lr(t,c,n)||""===c&&1===e.length){if(ur(i))return!1;o=!0}}else{const l=8&i?c:e[++a];if(8&i&&null!==t.attrs){if(!ar(t.attrs,l,n)){if(ur(i))return!1;o=!0}continue}const h=dr(8&i?"class":c,r,cr(t),n);if(-1===h){if(ur(i))return!1;o=!0;continue}if(""!==l){let t;t=h>s?"":r[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==sr(e,l,0)||2&i&&l!==t){if(ur(i))return!1;o=!0}}}}else{if(!o&&!ur(i)&&!ur(c))return!1;if(o&&ur(c))continue;o=!1,i=c|1&i}}return ur(i)||o}function ur(t){return 0==(1&t)}function dr(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 fr(t,e,n=!1){for(let i=0;i<e.length;i++)if(hr(t,e[i],n))return!0;return!1}function pr(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 mr(t,e){return t?":not("+e.trim()+")":e}function br(t){let e=t[0],n=1,i=2,r="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&i){const e=t[++n];r+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||ur(o)||(e+=mr(s,r),r=""),i=o,s=s||!ur(i);n++}return""!==r&&(e+=mr(s,r)),e}const gr={};function _r(t){yr(Kt(),Wt(),ge()+t,Qt())}function yr(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ce(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Se(e,i,0,n)}_e(n)}function vr(t,e){return t<<17|e<<2}function wr(t){return t>>17&32767}function xr(t){return 2|t}function Cr(t){return(131068&t)>>2}function Sr(t,e){return-131069&t|e<<2}function Er(t){return 1|t}function kr(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const n=t.data[s];ce(r),n.contentQueries(2,e[s],s)}}}function Or(t,e,n,i,r,s,o,a,c,l){const h=e.blueprint.slice();return h[0]=r,h[2]=140|i,Ut(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=c||t&&t[12]||null,h[9]=l||t&&t[9]||null,h[6]=s,h[16]=2==e.type?t[16]:h,h}function Ar(t,e,n,i,r){let s=t.data[e];if(null===s)s=function(t,e,n,i,r){const s=Zt(),o=Gt(),a=t.data[e]=function(t,e,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,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,o?s:s&&s.parent,n,e,i,r);return null===t.firstChild&&(t.firstChild=a),null!==s&&(o?null==s.child&&null!==a.parent&&(s.child=a):null===s.next&&(s.next=a)),a}(t,e,n,i,r),zt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const t=function(){const t=zt.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===t?-1:t.injectorIndex}return Xt(s,!0),s}function Dr(t,e,n,i){if(0===n)return-1;const r=e.length;for(let s=0;s<n;s++)e.push(i),t.blueprint.push(i),t.data.push(null);return r}function Ir(t,e,n){ue(e);try{const i=t.viewQuery;null!==i&&os(1,i,n);const r=t.template;null!==r&&Pr(t,e,r,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&kr(t,e),t.staticViewQueries&&os(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)es(t,e[n])}(e,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,be()}}function Tr(t,e,n,i){const r=e[2];if(256==(256&r))return;ue(e);const s=Qt();try{Ut(e),zt.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Pr(t,e,n,2,i);const o=3==(3&r);if(!s)if(o){const n=t.preOrderCheckHooks;null!==n&&Ce(e,n,null)}else{const n=t.preOrderHooks;null!==n&&Se(e,n,0,null),Ee(e,0)}if(function(t){for(let e=Mi(t);null!==e;e=ji(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])&&Bt(i,1),n[2]|=1024}}}(e),function(t){for(let e=Mi(t);null!==e;e=ji(e))for(let t=ot;t<e.length;t++){const n=e[t],i=n[1];Nt(n)&&Tr(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&kr(t,e),!s)if(o){const n=t.contentCheckHooks;null!==n&&Ce(e,n)}else{const n=t.contentHooks;null!==n&&Se(e,n,1),Ee(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let t=0;t<n.length;t++){const i=n[t];if(i<0)_e(~i);else{const r=i,s=n[++t],o=n[++t];re(s,r),o(2,e[r])}}}finally{_e(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)Jr(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&os(2,c,i),!s)if(o){const n=t.viewCheckHooks;null!==n&&Ce(e,n)}else{const n=t.viewHooks;null!==n&&Se(e,n,2),Ee(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Bt(e[3],-1))}finally{be()}}function Lr(t,e,n,i){const r=e[10],s=!Qt(),o=Ft(e);try{s&&!o&&r.begin&&r.begin(),o&&Ir(t,e,i),Tr(t,e,n,i)}finally{s&&!o&&r.end&&r.end()}}function Pr(t,e,n,i,r){const s=ge();try{_e(-1),2&i&&e.length>st&&yr(t,e,st,Qt()),n(i,r)}finally{_e(s)}}function Rr(t,e,n){if(lt(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 Mr(t,e,n){Ht()&&(function(t,e,n,i){const r=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||Be(n,e),Oi(i,e);const o=n.initialInputs;for(let a=r;a<s;a++){const i=t.data[a],s=dt(i);s&&Xr(e,n,i);const c=Je(e,t,a,n);Oi(c,e),null!==o&&Gr(0,a-r,c,i,0,o),s&&(Mt(n.index,e)[8]=c)}}(t,e,n,Lt(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,r=n.directiveEnd,s=n.index,o=zt.lFrame.currentDirectiveIndex;try{_e(s);for(let n=i;n<r;n++){const i=t.data[n],r=e[n];se(n),null===i.hostBindings&&0===i.hostVars&&null===i.hostAttrs||Wr(i,r)}}finally{_e(-1),se(o)}}(t,e,n))}function jr(t,e,n=Lt){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?n(e,t):t[o];t[r++]=a}}}function Fr(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Nr(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Nr(t,e,n,i,r,s,o,a,c,l){const h=st+i,u=h+r,d=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:gr);return n}(h,u),f="function"==typeof l?l():l;return d[1]={type:t,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:e,data:d.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:u,hostBindingOpCodes: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 s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:c,consts:f,incompleteFirstPass:!1}}function Vr(t,e,n,i){const r=cs(e);null===n?r.push(i):(r.push(n),t.firstCreatePass&&ls(t).push(i,r.length-1))}function Ur(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 Br(t,e,n,i,r,s,o,a){const c=Lt(e,n);let l,h=e.inputs;var u;!a&&null!=h&&(l=h[i])?(ds(t,n,l,i,r),ht(e)&&function(t,e){const n=Mt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(i="class"===(u=i)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,r=null!=o?o(r,e.value||"",i):r,At(s)?s.setProperty(c,i,r):Le(i)||(c.setProperty?c.setProperty(i,r):c[i]=r))}function zr(t,e,n,i){let r=!1;if(Ht()){const s=function(t,e,n){const i=t.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];fr(n,o.selectors,!1)&&(r||(r=[]),Ke(Be(n,e),t,o.type),dt(o)?(Kr(t,n),r.unshift(o)):r.push(o))}return r}(t,e,n),o=null===i?null:{"":-1};if(null!==s){r=!0,Yr(n,t.data.length,s.length);for(let t=0;t<s.length;t++){const e=s[t];e.providersResolver&&e.providersResolver(e)}let i=!1,a=!1,c=Dr(t,e,s.length,null);for(let r=0;r<s.length;r++){const l=s[r];n.mergedAttrs=Pe(n.mergedAttrs,l.hostAttrs),Zr(t,n,e,c,l),qr(c,l,o),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128);const h=l.type.prototype;!i&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),i=!0),a||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),a=!0),c++}!function(t,e){const n=e.directiveEnd,i=t.data,r=e.attrs,s=[];let o=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=i[c],n=t.inputs,l=null===r||cr(e)?null:$r(n,r);s.push(l),o=Ur(n,c,o),a=Ur(t.outputs,c,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=s,e.inputs=o,e.outputs=a}(t,n)}o&&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 pt("301",`Export of name '${e[t+1]}' not found!`);i.push(e[t],r)}}}(n,i,o)}return n.mergedAttrs=Pe(n.mergedAttrs,n.attrs),r}function Hr(t,e,n,i,r,s){const o=s.hostBindings;if(o){let n=t.hostBindingOpCodes;null===n&&(n=t.hostBindingOpCodes=[]);const s=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=s&&n.push(s),n.push(i,r,o)}}function Wr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Kr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function qr(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;dt(e)&&(n[""]=t)}}function Yr(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Zr(t,e,n,i,r){t.data[i]=r;const s=r.factory||(r.factory=ft(r.type)),o=new De(s,dt(r),null);t.blueprint[i]=o,n[i]=o,Hr(t,e,0,i,Dr(t,n,r.hostVars,gr),r)}function Xr(t,e,n){const i=Lt(e,t),r=Fr(n),s=t[10],o=ns(t,Or(t,r,null,n.onPush?64:16,i,e,s,s.createRenderer(i,n),null,null));t[e.index]=o}function Gr(t,e,n,i,r,s){const o=s[e];if(null!==o){const t=i.setInput;for(let e=0;e<o.length;){const r=o[e++],s=o[e++],a=o[e++];null!==t?i.setInput(n,a,r,s):n[s]=a}}}function $r(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 Qr(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function Jr(t,e){const n=Mt(e,t);if(Nt(n)){const t=n[1];80&n[2]?Tr(t,n,t.template,n[8]):n[5]>0&&ts(n)}}function ts(t){for(let n=Mi(t);null!==n;n=ji(n))for(let t=ot;t<n.length;t++){const e=n[t];if(1024&e[2]){const t=e[1];Tr(t,e,t.template,e[8])}else e[5]>0&&ts(e)}const e=t[1].components;if(null!==e)for(let n=0;n<e.length;n++){const i=Mt(e[n],t);Nt(i)&&i[5]>0&&ts(i)}}function es(t,e){const n=Mt(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),Ir(i,n,n[8])}function ns(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function is(t){for(;t;){t[2]|=64;const e=Ri(t);if(0!=(512&t[2])&&!e)return t;t=e}return null}function rs(t,e,n){const i=e[10];i.begin&&i.begin();try{Tr(t,e,t.template,n)}catch(r){throw us(e,r),r}finally{i.end&&i.end()}}function ss(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=jt(n),r=i[1];Lr(r,i,r.template,n)}}(t[8])}function os(t,e,n){ce(0),e(t,n)}const as=(()=>Promise.resolve(null))();function cs(t){return t[7]||(t[7]=[])}function ls(t){return t.cleanup||(t.cleanup=[])}function hs(t,e,n){return(null===t||dt(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 us(t,e){const n=t[9],i=n?n.get(ki,null):null;i&&i.handleError(e)}function ds(t,e,n,i,r){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],c=e[o],l=t.data[o];null!==l.setInput?l.setInput(c,r,i,a):c[a]=r}}function fs(t,e,n){const i=Tt(e,t);!function(t,e,n){At(t)?t.setValue(e,n):e.textContent=n}(t[11],i,n)}function ps(t,e,n){let i=n?t.styles:null,r=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?s=t:1==s?r=u(r,t):2==s&&(i=u(i,t+": "+e[++o]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=r:t.classesWithoutHost=r}const ms=new ln("INJECTOR",-1);class bs{get(t,e=Sn){if(e===Sn){const e=new Error(`NullInjectorError: No provider for ${h(t)}!`);throw e.name="NullInjectorError",e}return e}}const gs=new ln("Set Injector scope."),_s={},ys={},vs=[];let ws=void 0;function xs(){return void 0===ws&&(ws=new bs),ws}function Cs(t,e=null,n=null,i){return new Ss(t,n,e||xs(),i)}class Ss{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&&fn(e,n=>this.processProvider(n,t,e)),fn([t],t=>this.processInjectorType(t,[],r)),this.records.set(ms,Os(void 0,this));const s=this.records.get(gs);this.scope=null!=s?s.value:null,this.source=i||("object"==typeof t?null:h(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=Sn,n=k.Default){this.assertNotDestroyed();const i=Dn(this);try{if(!(n&k.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof ln)&&y(t);e=n&&this.injectableDefInScope(n)?Os(Es(t),_s):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&k.Self?xs():this.parent).get(t,e=n&k.Optional&&e===Sn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(h(t)),i)throw s;return function(t,e,n,i){const r=t.ngTempTokenPath;throw e[kn]&&r.unshift(e[kn]),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let r=h(e);if(Array.isArray(e))r=e.map(h).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):h(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(En,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Dn(i)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(h(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=p(t)))return!1;let i=w(t);const r=null==i&&t.ngModule||void 0,s=void 0===r?t:r,o=-1!==n.indexOf(s);if(void 0!==r&&(i=w(r)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(s);try{fn(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];fn(i,t=>this.processProvider(t,n,i||vs))}}this.injectorDefTypes.add(s),this.records.set(s,Os(i.factory,_s));const a=i.providers;if(null!=a&&!o){const e=t;fn(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=Ds(t=p(t))?t:p(t&&t.provide);const r=function(t,e,n){return As(t)?Os(void 0,t.useValue):Os(ks(t),_s)}(t);if(Ds(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Os(void 0,_s,!0),e.factory=()=>Pn(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===_s&&(e.value=ys,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 Es(t){const e=y(t),n=null!==e?e.factory:ft(t);if(null!==n)return n;const i=w(t);if(null!==i)return i.factory;if(t instanceof ln)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=bn(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[x]||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 ks(t,e,n){let i=void 0;if(Ds(t)){const e=p(t);return ft(e)||Es(e)}if(As(t))i=()=>p(t.useValue);else if((r=t)&&r.useFactory)i=()=>t.useFactory(...Pn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Tn(p(t.useExisting));else{const e=p(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ft(e)||Es(e);i=()=>new e(...Pn(t.deps))}var r;return i}function Os(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function As(t){return null!==t&&"object"==typeof t&&On in t}function Ds(t){return"function"==typeof t}const Is=function(t,e,n){return function(t,e=null,n=null,i){const r=Cs(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let Ts=(()=>{class t{static create(t,e){return Array.isArray(t)?Is(t,e,""):Is(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Sn,t.NULL=new bs,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>Tn(ms)}),t.__NG_ELEMENT_ID__=-1,t})();function Ls(t,e){xe(jt(t)[1],Yt())}function Ps(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let r=void 0;if(dt(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=Rs(t.inputs),e.declaredInputs=Rs(t.declaredInputs),e.outputs=Rs(t.outputs);const n=r.hostBindings;n&&Fs(t,n);const s=r.viewQuery,o=r.contentQueries;if(s&&Ms(t,s),o&&js(t,o),l(t.inputs,r.inputs),l(t.declaredInputs,r.declaredInputs),l(t.outputs,r.outputs),dt(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===Ps&&(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=Pe(r.hostAttrs,n=Pe(n,r.hostAttrs))}}(i)}function Rs(t){return t===N?{}:t===V?[]:t}function Ms(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function js(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function Fs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let Ns=null;function Vs(){if(!Ns){const t=F.Symbol;if(t&&t.iterator)Ns=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&&(Ns=n)}}}return Ns}class Us{constructor(t){this.wrapped=t}static wrap(t){return new Us(t)}static unwrap(t){return Us.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Us}}function Bs(t){return!!zs(t)&&(Array.isArray(t)||!(t instanceof Map)&&Vs()in t)}function zs(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Hs(t,e,n){return t[e]=n}function Ws(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ks(t,e,n,i){const r=Ws(t,e,n);return Ws(t,e+1,i)||r}function qs(t,e,n,i){const r=Wt();return Ws(r,ne(),e)&&(Kt(),function(t,e,n,i,r,s){const o=Lt(t,e);!function(t,e,n,i,r,s,o){if(null==s)At(t)?t.removeAttribute(e,r,n):e.removeAttribute(r);else{const a=null==o?mt(s):o(s,i||"",r);At(t)?t.setAttribute(e,r,a,n):n?e.setAttributeNS(n,r,a):e.setAttribute(r,a)}}(e[11],o,s,t.value,n,i,r)}(ye(),r,t,e,n,i)),qs}function Ys(t,e,n,i){return Ws(t,ne(),n)?e+mt(n)+i:gr}function Zs(t,e,n,i,r,s,o,a){const c=Wt(),l=Kt(),h=t+st,u=l.firstCreatePass?function(t,e,n,i,r,s,o,a,c){const l=e.consts,h=Ar(e,t,4,o||null,Vt(l,a));zr(e,n,h,Vt(l,c)),xe(e,h);const u=h.tViews=Nr(2,h,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l);return null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(h,l,c,e,n,i,r,s,o):l.data[h];Xt(u,!1);const d=c[11].createComment("");$i(l,c,d,u),Oi(d,c),ns(c,c[h]=Qr(d,c,d,u)),ut(u)&&Mr(l,c,u),null!=o&&jr(c,u,a)}function Xs(t){return Rt(zt.lFrame.contextLView,st+t)}function Gs(t,e=k.Default){const n=Wt();return null===n?Tn(t,e):Ze(Yt(),n,p(t),e)}function $s(){throw new Error("invalid")}function Qs(t,e,n){const i=Wt();return Ws(i,ne(),e)&&Br(Kt(),ye(),i,t,e,i[11],n,!1),Qs}function Js(t,e,n,i,r){const s=r?"class":"style";ds(t,n,e.inputs[s],s,i)}function to(t,e,n,i){const r=Wt(),s=Kt(),o=st+t,a=r[11],c=r[o]=Vi(a,e,zt.lFrame.currentNamespace),l=s.firstCreatePass?function(t,e,n,i,r,s,o){const a=e.consts,c=Ar(e,t,2,r,Vt(a,s));return zr(e,n,c,Vt(a,o)),null!==c.attrs&&ps(c,c.attrs,!1),null!==c.mergedAttrs&&ps(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,n,i):s.data[o];Xt(l,!0);const h=l.mergedAttrs;null!==h&&Ie(a,c,h);const u=l.classes;null!==u&&rr(a,c,u);const d=l.styles;null!==d&&ir(a,c,d),64!=(64&l.flags)&&$i(s,r,c,l),0===zt.lFrame.elementDepthCount&&Oi(c,r),zt.lFrame.elementDepthCount++,ut(l)&&(Mr(s,r,l),Rr(s,l,r)),null!==i&&jr(r,l)}function eo(){let t=Yt();Gt()?$t():(t=t.parent,Xt(t,!1));const e=t;zt.lFrame.elementDepthCount--;const n=Kt();n.firstCreatePass&&(xe(n,t),lt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Js(n,e,Wt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Js(n,e,Wt(),e.stylesWithoutHost,!1)}function no(t,e,n,i){to(t,e,n,i),eo()}function io(t,e,n){const i=Wt(),r=Kt(),s=t+st,o=r.firstCreatePass?function(t,e,n,i,r){const s=e.consts,o=Vt(s,i),a=Ar(e,t,8,"ng-container",o);return null!==o&&ps(a,o,!0),zr(e,n,a,Vt(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,n):r.data[s];Xt(o,!0);const a=i[s]=i[11].createComment("");$i(r,i,a,o),Oi(a,i),ut(o)&&(Mr(r,i,o),Rr(r,o,i)),null!=n&&jr(i,o)}function ro(){let t=Yt();const e=Kt();Gt()?$t():(t=t.parent,Xt(t,!1)),e.firstCreatePass&&(xe(e,t),lt(t)&&e.queries.elementEnd(t))}function so(t,e,n){io(t,e,n),ro()}function oo(){return Wt()}function ao(t){return!!t&&"function"==typeof t.then}function co(t){return!!t&&"function"==typeof t.subscribe}function lo(t,e,n=!1,i){const r=Wt(),s=Kt(),o=Yt();return uo(s,r,r[11],o,t,e,n,i),lo}function ho(t,e,n=!1,i){const r=Yt(),s=Wt(),o=Kt();return uo(o,s,hs(oe(o.data),r,s),r,t,e,n,i),ho}function uo(t,e,n,i,r,s,o=!1,a){const c=ut(i),l=t.firstCreatePass&&ls(t),h=cs(e);let u=!0;if(3&i.type){const d=Lt(i,e),f=a?a(d):N,p=f.target||d,m=h.length,b=a?t=>a(It(t[i.index])).target:i.index;if(At(n)){let o=null;if(!a&&c&&(o=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const t=r[s];if(t===n&&r[s+1]===i){const t=e[7],n=r[s+2];return t.length>n?t[n]:null}"string"==typeof t&&(s+=2)}return null}(t,e,r,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,u=!1;else{s=po(i,e,s,!1);const t=n.listen(f.name||p,r,s);h.push(s,t),l&&l.push(r,b,m,m+1)}}else s=po(i,e,s,!0),p.addEventListener(r,s,o),h.push(s),l&&l.push(r,b,m,o)}else s=po(i,e,s,!1);const d=i.outputs;let f;if(u&&null!==d&&(f=d[r])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(s),o=h.length;h.push(s,t),l&&l.push(r,i.index,o,-(o+1))}}}function fo(t,e,n){try{return!1!==e(n)}catch(i){return us(t,i),!1}}function po(t,e,n,i){return function r(s){if(s===Function)return n;const o=2&t.flags?Mt(t.index,e):e;0==(32&e[2])&&is(o);let a=fo(e,n,s),c=r.__ngNextListenerFn__;for(;c;)a=fo(e,c,s)&&a,c=c.__ngNextListenerFn__;return i&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function mo(t=1){return function(t){return(zt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,zt.lFrame.contextLView))[8]}(t)}function bo(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 s=e[r];if("*"!==s){if(null===i?fr(t,s,!0):pr(i,s))return r}else n=r}return n}function go(t){const e=Wt()[16][6];if(!e.projection){const n=e.projection=bn(t?t.length:1,null),i=n.slice();let r=e.child;for(;null!==r;){const e=t?bo(r,t):0;null!==e&&(i[e]?i[e].projectionNext=r:n[e]=r,i[e]=r),r=r.next}}}function _o(t,e=0,n){const i=Wt(),r=Kt(),s=Ar(r,st+t,16,null,n||null);null===s.projection&&(s.projection=e),$t(),64!=(64&s.flags)&&function(t,e,n){nr(e[11],0,e,n,Wi(t,n,e),Xi(n.parent||e[6],n,e))}(r,i,s)}function yo(t,e,n){return vo(t,"",e,"",n),yo}function vo(t,e,n,i,r){const s=Wt(),o=Ys(s,e,n,i);return o!==gr&&Br(Kt(),ye(),s,t,o,s[11],r,!1),vo}const wo=[];function xo(t,e,n,i,r){const s=t[n+1],o=null===e;let a=i?wr(s):Cr(s),c=!1;for(;0!==a&&(!1===c||o);){const n=t[a+1];Co(t[a],e)&&(c=!0,t[a+1]=i?Er(n):xr(n)),a=i?wr(n):Cr(n)}c&&(t[n+1]=i?xr(s):Er(s))}function Co(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&yn(t,e)>=0}const So={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Eo(t){return t.substring(So.key,So.keyEnd)}function ko(t,e){const n=So.textEnd;return n===e?-1:(e=So.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,So.key=e,n),Oo(t,e,n))}function Oo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Ao(t,e,n){return Lo(t,e,n,!1),Ao}function Do(t,e){return Lo(t,e,null,!0),Do}function Io(t){Po(gn,To,t,!0)}function To(t,e){for(let n=function(t){return function(t){So.key=0,So.keyEnd=0,So.value=0,So.valueEnd=0,So.textEnd=t.length}(t),ko(t,Oo(t,0,So.textEnd))}(e);n>=0;n=ko(e,n))gn(t,Eo(e),!0)}function Lo(t,e,n,i){const r=Wt(),s=Kt(),o=ie(2);s.firstUpdatePass&&Mo(s,t,o,i),e!==gr&&Ws(r,o,e)&&No(s,s.data[ge()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(zn(t)))),t}(e,n),i,o)}function Po(t,e,n,i){const r=Kt(),s=ie(2);r.firstUpdatePass&&Mo(r,null,s,i);const o=Wt();if(n!==gr&&Ws(o,s,n)){const a=r.data[ge()];if(Bo(a,i)&&!Ro(r,s)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=u(t,n||"")),Js(r,a,o,n,i)}else!function(t,e,n,i,r,s,o,a){r===gr&&(r=wo);let c=0,l=0,h=0<r.length?r[0]:null,u=0<s.length?s[0]:null;for(;null!==h||null!==u;){const d=c<r.length?r[c+1]:void 0,f=l<s.length?s[l+1]:void 0;let p=null,m=void 0;h===u?(c+=2,l+=2,d!==f&&(p=u,m=f)):null===u||null!==h&&h<u?(c+=2,p=h):(l+=2,p=u,m=f),null!==p&&No(t,e,n,i,p,m,o,a),h=c<r.length?r[c]:null,u=l<s.length?s[l]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function(t,e,n){if(null==n||""===n)return wo;const i=[],r=zn(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&e(i,r);return i}(t,e,n),i,s)}}function Ro(t,e){return e>=t.expandoStartIndex}function Mo(t,e,n,i){const r=t.data;if(null===r[n+1]){const s=r[ge()],o=Ro(t,n);Bo(s,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const r=oe(t);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Fo(n=jo(null,t,e,n,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=jo(r,t,e,n,i),null===s){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Cr(i))return t[wr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=jo(null,t,e,n[1],i),n=Fo(n,e.attrs,i),function(t,e,n,i){t[wr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else s=function(t,e,n){let i=void 0;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=Fo(i,t[s].hostAttrs,n);return Fo(i,e.attrs,n)}(t,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),n}(r,s,e,i),function(t,e,n,i,r,s){let o=s?e.classBindings:e.styleBindings,a=wr(o),c=Cr(o);t[i]=n;let l,h=!1;if(Array.isArray(n)){const t=n;l=t[1],(null===l||yn(t,l)>0)&&(h=!0)}else l=n;if(r)if(0!==c){const e=wr(t[a+1]);t[i+1]=vr(e,a),0!==e&&(t[e+1]=Sr(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=vr(a,0),0!==a&&(t[a+1]=Sr(t[a+1],i)),a=i;else t[i+1]=vr(c,0),0===a?a=i:t[c+1]=Sr(t[c+1],i),c=i;h&&(t[i+1]=xr(t[i+1])),xo(t,l,i,!0),xo(t,l,i,!1),function(t,e,n,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof e&&yn(s,e)>=0&&(n[i+1]=Er(n[i+1]))}(e,l,t,i,s),o=vr(a,c),s?e.classBindings=o:e.styleBindings=o}(r,s,e,n,o,i)}}function jo(t,e,n,i,r){let s=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(s=e[a],i=Fo(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Fo(t,e,n){const i=n?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),gn(t,o,!!n||e[++s]))}return void 0===t?null:t}function No(t,e,n,i,r,s,o,a){if(!(3&e.type))return;const c=t.data,l=c[a+1];Uo(1==(1&l)?Vo(c,e,n,r,Cr(l),o):void 0)||(Uo(s)||2==(2&l)&&(s=Vo(c,null,n,r,a,o)),function(t,e,n,i,r){const s=At(t);if(e)r?s?t.addClass(n,i):n.classList.add(i):s?t.removeClass(n,i):n.classList.remove(i);else{let e=-1===i.indexOf("-")?void 0:Li.DashCase;if(null==r)s?t.removeStyle(n,i,e):n.style.removeProperty(i);else{const o="string"==typeof r&&r.endsWith("!important");o&&(r=r.slice(0,-10),e|=Li.Important),s?t.setStyle(n,i,r,e):n.style.setProperty(i,r,o?"important":"")}}}(i,o,Tt(ge(),n),r,s))}function Vo(t,e,n,i,r,s){const o=null===e;let a=void 0;for(;r>0;){const e=t[r],s=Array.isArray(e),c=s?e[1]:e,l=null===c;let h=n[r+1];h===gr&&(h=l?wo:void 0);let u=l?_n(h,i):c===i?h:void 0;if(s&&!Uo(u)&&(u=_n(e,i)),Uo(u)&&(a=u,o))return a;const d=t[r+1];r=o?wr(d):Cr(d)}if(null!==e){let t=s?e.residualClasses:e.residualStyles;null!=t&&(a=_n(t,i))}return a}function Uo(t){return void 0!==t}function Bo(t,e){return 0!=(t.flags&(e?16:32))}function zo(t,e=""){const n=Wt(),i=Kt(),r=t+st,s=i.firstCreatePass?Ar(i,r,1,e,null):i.data[r],o=n[r]=function(t,e){return At(t)?t.createText(e):t.createTextNode(e)}(n[11],e);$i(i,n,o,s),Xt(s,!1)}function Ho(t){return Wo("",t,""),Ho}function Wo(t,e,n){const i=Wt(),r=Ys(i,t,e,n);return r!==gr&&fs(i,ge(),r),Wo}function Ko(t,e,n,i,r){const s=Wt(),o=function(t,e,n,i,r,s){const o=Ks(t,ee(),n,r);return ie(2),o?e+mt(n)+i+mt(r)+s:gr}(s,t,e,n,i,r);return o!==gr&&fs(s,ge(),o),Ko}function qo(t,e,n,i,r,s,o,a,c){const l=Wt(),h=function(t,e,n,i,r,s,o,a,c,l){const h=function(t,e,n,i,r,s){const o=Ks(t,e,n,i);return Ks(t,e+2,r,s)||o}(t,ee(),n,r,o,c);return ie(4),h?e+mt(n)+i+mt(r)+s+mt(o)+a+mt(c)+l:gr}(l,t,e,n,i,r,s,o,a,c);return h!==gr&&fs(l,ge(),h),qo}function Yo(t,e,n){Po(gn,To,Ys(Wt(),t,e,n),!0)}function Zo(t,e,n){const i=Wt();return Ws(i,ne(),e)&&Br(Kt(),ye(),i,t,e,i[11],n,!0),Zo}function Xo(t,e,n){const i=Wt();if(Ws(i,ne(),e)){const r=Kt(),s=ye();Br(r,s,i,t,e,hs(oe(r.data),s,i),n,!0)}return Xo}const Go=void 0;var $o=["en",[["a","p"],["AM","PM"],Go],[["AM","PM"],Go,Go],[["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"]],Go,[["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"]],Go,[["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}",Go,"{1} 'at' {0}",Go],[".",",",";","%","+","-","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 Qo={};function Jo(t,e,n){"string"!=typeof e&&(n=e,e=t[ra.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),Qo[e]=t,n&&(Qo[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 $o;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 Qo||(Qo[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),Qo[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}({});const sa="en-US";let oa=sa;function aa(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 ca(t,e,n,i,r){if(t=p(t),Array.isArray(t))for(let s=0;s<t.length;s++)ca(t[s],e,n,i,r);else{const s=Kt(),o=Wt();let a=Ds(t)?t:p(t.provide),c=ks(t);const l=Yt(),h=1048575&l.providerIndexes,u=l.directiveStart,d=l.providerIndexes>>20;if(Ds(t)||!t.multi){const i=new De(c,r,Gs),f=ua(a,e,r?h:h+d,u);-1===f?(Ke(Be(l,o),s,a),la(s,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(i),o.push(i)):(n[f]=i,o[f]=i)}else{const f=ua(a,e,h+d,u),p=ua(a,e,h,h+d),m=f>=0&&n[f],b=p>=0&&n[p];if(r&&!b||!r&&!m){Ke(Be(l,o),s,a);const h=function(t,e,n,i,r){const s=new De(t,n,Gs);return s.multi=[],s.index=e,s.componentProviders=0,ha(s,r,i&&!n),s}(r?fa:da,n.length,r,i,c);!r&&b&&(n[p].providerFactory=h),la(s,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,r&&(l.providerIndexes+=1048576),n.push(h),o.push(h)}else la(s,t,f>-1?f:p,ha(n[r?p:f],c,!r&&i));!r&&i&&b&&n[p].componentProviders++}}}function la(t,e,n,i){const r=Ds(e);if(r||e.useClass){const s=(e.useClass||e).prototype.ngOnDestroy;if(s){const o=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,s]):o[t+1].push(i,s)}else o.push(n,s)}}}function ha(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 fa(t,e,n,i){const r=this.multi;let s;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Je(n,n[1],this.providerFactory.index,i);s=e.slice(0,t),pa(r,s);for(let n=t;n<e.length;n++)s.push(e[n])}else s=[],pa(r,s);return s}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=Kt();if(i.firstCreatePass){const r=dt(t);ca(n,i.data,i.blueprint,r,!0),ca(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class ba{}class ga{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let _a=(()=>{class t{}return t.NULL=new ga,t})();function ya(...t){}function va(t,e){return new xa(Lt(t,e))}const wa=function(){return va(Yt(),Wt())};let xa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=wa,t})();class Ca{}let Sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ea(),t})();const Ea=function(){const t=Wt(),e=Mt(Yt().index,t);return function(t){return t[11]}(at(e)?e:t)};let ka=(()=>{class t{}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null}),t})();class Oa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Aa=new Oa("11.0.5");class Da{constructor(){}supports(t){return Bs(t)}create(t){return new Ta(t)}}const Ia=(t,e)=>e;class Ta{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||Ia}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 s=!n||e&&e.currentIndex<Ma(n,i,r)?e:n,o=Ma(s,i,r),a=s.currentIndex;if(s===n)i--,n=n._nextRemoved;else if(e=e._next,null==s.previousIndex)i++;else{r||(r=[]);const t=o-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<r.length?r[n]:r[n]=0,s=i+n;e<=s&&s<t&&(r[n]=i+1)}r[s.previousIndex]=e-t}}o!==a&&t(s,o,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=[]),!Bs(t))throw new Error(`Error trying to diff '${h(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,s=!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)?(s&&(r=this._verifyReinsertion(r,n,i,e)),Object.is(r.item,n)||this._addIdentityChange(r,n)):(r=this._mismatch(r,n,i,e),s=!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[Vs()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(s&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),s=!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 La(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 Ra),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 Ra),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 La{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 Pa{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 Ra{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Pa,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 ja{constructor(){}supports(t){return t instanceof Map||zs(t)}create(){return new Fa}}class Fa{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||zs(t)))throw new Error(`Error trying to diff '${h(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 Na(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 Na{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 Va=(()=>{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 Cn,new wn]]}}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=b({token:t,providedIn:"root",factory:()=>new t([new Da])}),t})(),Ua=(()=>{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 Cn,new wn]]}}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=b({token:t,providedIn:"root",factory:()=>new t([new ja])}),t})();function Ba(t,e,n,i,r=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&i.push(It(s)),ct(s))for(let t=ot;t<s.length;t++){const e=s[t],n=e[1].firstChild;null!==n&&Ba(e[1],e,n,i)}const o=n.type;if(8&o)Ba(t,e,n.child,i);else if(32&o){const t=Pi(n,e);let r;for(;r=t();)i.push(r)}else if(16&o){const t=e[16],r=t[6].projection[n.projection];if(Array.isArray(r))i.push(...r);else{const e=Ri(t);Ba(e[1],e,r,i,!0)}}n=r?n.projectionNext:n.next}return i}class za{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 Ba(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}zi(this._lView[1],this._lView)}onDestroy(t){Vr(this._lView[1],this._lView,null,t)}markForCheck(){is(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){rs(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Jt(!0);try{rs(t,e,n)}finally{Jt(!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,er(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 Ha extends za{constructor(t){super(t),this._view=t}detectChanges(){ss(this._view)}checkNoChanges(){!function(t){Jt(!0);try{ss(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const Wa=qa;let Ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=Wa,t.__ChangeDetectorRef__=!0,t})();function qa(t=!1){return function(t,e,n){if(!n&&ht(t)){const n=Mt(t.index,e);return new za(n,n)}return 47&t.type?new za(e[16],e):null}(Yt(),Wt(),t)}const Ya=[new ja],Za=new Va([new Da]),Xa=new Ua(Ya),Ga=function(){return tc(Yt(),Wt())};let $a=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ga,t})();const Qa=$a,Ja=class extends Qa{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Or(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ir(e,n,t),new za(n)}};function tc(t,e){return 4&t.type?new Ja(e,t,va(t,e)):null}class ec{}class nc{}const ic=function(){return lc(Yt(),Wt())};let rc=(()=>{class t{}return t.__NG_ELEMENT_ID__=ic,t})();const sc=rc,oc=class extends sc{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return va(this._hostTNode,this._hostLView)}get injector(){return new nn(this._hostTNode,this._hostLView)}get parentInjector(){const t=We(this._hostTNode,this._hostLView);if(Me(t)){const e=Fe(t,this._hostLView),n=je(t);return new nn(e[1].data[n+8],e)}return new nn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ac(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-ot}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const s=n||this.parentInjector;if(!r&&null==t.ngModule&&s){const t=s.get(ec,null);t&&(r=t)}const o=t.create(s,i,void 0,r);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(ct(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new oc(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),s=this._lContainer;!function(t,e,n,i){const r=ot+i,s=n.length;i>0&&(n[r-1][4]=e),i<s-ot?(e[4]=n[r],pn(n,ot+i,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,s,r);const o=Ji(r,s),a=n[11],c=Zi(a,s[7]);return null!==c&&function(t,e,n,i,r,s){i[0]=r,i[6]=e,er(t,i,n,1,r,s)}(i,s[6],a,n,c,o),t.attachToViewContainerRef(this),pn(cc(s),r,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=ac(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),n=Bi(this._lContainer,e);n&&(mn(cc(this._lContainer),e),zi(n[1],n))}detach(t){const e=this._adjustIndex(t,-1),n=Bi(this._lContainer,e);return n&&null!=mn(cc(this._lContainer),e)?new za(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}};function ac(t){return t[8]}function cc(t){return t[8]||(t[8]=[])}function lc(t,e){let n;const i=e[t.index];if(ct(i))n=i;else{let r;if(8&t.type)r=It(i);else{const n=e[11];r=n.createComment("");const i=Lt(t,e);Ki(n,Zi(n,i),r,function(t,e){return At(t)?t.nextSibling(e):e.nextSibling}(n,i),!1)}e[t.index]=n=Qr(i,e,r,t),ns(e,n)}return new oc(n,t,e)}const hc={};class uc extends _a{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=it(t);return new pc(e,this.ngModule)}}function dc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const fc=new ln("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ai});class pc extends ba{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(br).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return dc(this.componentDef.inputs)}get outputs(){return dc(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const s=t.get(n,hc,r);return s!==hc||i===hc?s:e.get(n,i,r)}}}(t,i.injector):t,s=r.get(Ca,Dt),o=r.get(ka,null),a=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(At(t))return t.selectRootElement(e,n===L.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Vi(s.createRenderer(null,this.componentDef),c,function(t){const e=t.toLowerCase();return"svg"===e?St:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:Ai,clean:as,playerHandler:null,flags:0},d=Nr(0,null,null,1,0,null,null,null,null,null),f=Or(null,d,u,h,null,null,s,a,o,r);let p,m;ue(f);try{const t=function(t,e,n,i,r,s){const o=n[1];n[20]=t;const a=Ar(o,20,2,"#host",null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(ps(a,c,!0),null!==t&&(Ie(r,t,c),null!==a.classes&&rr(r,t,a.classes),null!==a.styles&&ir(r,t,a.styles)));const l=i.createRenderer(t,e),h=Or(n,Fr(e),null,e.onPush?64:16,n[20],a,i,l,null,null);return o.firstCreatePass&&(Ke(Be(a,n),o,e.type),Kr(o,a),Yr(a,n.length,1)),ns(n,h),n[20]=h}(l,this.componentDef,f,s,a);if(l)if(n)Ie(a,l,["ng-version",Aa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&e.push(s,t[++i]):8===r&&n.push(s);else{if(!ur(r))break;r=s}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Ie(a,l,t),e&&e.length>0&&rr(a,l,e.join(" "))}if(m=Pt(d,st),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}p=function(t,e,n,i,r){const s=n[1],o=function(t,e,n){const i=Yt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Zr(t,i,e,Dr(t,e,1,null),n));const r=Je(e,t,i.directiveStart,i);Oi(r,e);const s=Lt(i,e);return s&&Oi(s,e),r}(s,n,e);if(i.components.push(o),t[8]=o,r&&r.forEach(t=>t(o,e)),e.contentQueries){const t=Yt();e.contentQueries(1,o,t.directiveStart)}const a=Yt();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(_e(a.index),Hr(n[1],a,0,a.directiveStart,a.directiveEnd,e),Wr(e,o)),o}(t,this.componentDef,f,u,[Ls]),Ir(d,f,null)}finally{be()}return new mc(this.componentType,p,va(m,f),f,m)}}class mc extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new Ha(i),this.componentType=t}get injector(){return new nn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const bc=new Map;class gc extends ec{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new uc(this);const n=rt(t),i=t[W]||null;i&&aa(i),this._bootstrapComponents=Ti(n.bootstrap),this._r3Injector=Cs(t,e,[{provide:ec,useValue:this},{provide:_a,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ts.THROW_IF_NOT_FOUND,n=k.Default){return t===Ts||t===ec||t===ms?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 _c extends nc{constructor(t){super(),this.moduleType=t,null!==rt(t)&&function(t){const e=new Set;!function t(n){const i=rt(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(r,bc.get(r),n),bc.set(r,n));const s=Ti(i.imports);for(const o of s)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new gc(this.moduleType,t)}}function yc(t,e,n){const i=te()+t,r=Wt();return r[i]===gr?Hs(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function vc(t,e,n,i){return Sc(Wt(),te(),t,e,n,i)}function wc(t,e,n,i,r){return Ec(Wt(),te(),t,e,n,i,r)}function xc(t,e,n,i,r,s){return kc(Wt(),te(),t,e,n,i,r,s)}function Cc(t,e){const n=t[e];return n===gr?void 0:n}function Sc(t,e,n,i,r,s){const o=e+n;return Ws(t,o,r)?Hs(t,o+1,s?i.call(s,r):i(r)):Cc(t,o+1)}function Ec(t,e,n,i,r,s,o){const a=e+n;return Ks(t,a,r,s)?Hs(t,a+2,o?i.call(o,r,s):i(r,s)):Cc(t,a+2)}function kc(t,e,n,i,r,s,o,a){const c=e+n;return function(t,e,n,i,r){const s=Ks(t,e,n,i);return Ws(t,e+2,r)||s}(t,c,r,s,o)?Hs(t,c+3,a?i.call(a,r,s,o):i(r,s,o)):Cc(t,c+3)}function Oc(t,e){const n=Kt();let i;const r=t+st;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 pt("302",`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 s=i.factory||(i.factory=ft(i.type)),o=A(Gs);try{const t=Ve(!1),e=s();return Ve(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Wt(),r,e),e}finally{A(o)}}function Ac(t,e,n){const i=t+st,r=Wt(),s=Rt(r,i);return Lc(r,Tc(r,i)?Sc(r,te(),e,s.transform,n,s):s.transform(n))}function Dc(t,e,n,i){const r=t+st,s=Wt(),o=Rt(s,r);return Lc(s,Tc(s,r)?Ec(s,te(),e,o.transform,n,i,o):o.transform(n,i))}function Ic(t,e,n,i,r){const s=t+st,o=Wt(),a=Rt(o,s);return Lc(o,Tc(o,s)?kc(o,te(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function Tc(t,e){return t[1].data[e].pure}function Lc(t,e){return Us.isWrapped(e)&&(e=Us.unwrap(e),t[ee()]=gr),e}const Pc=class extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,s=t=>null,o=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(s=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(s=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,s,o);return t instanceof r.a&&t.add(a),a}};function Rc(){return this._results[Vs()]()}class Mc{constructor(){this.dirty=!0,this._results=[],this.changes=new Pc,this.length=0;const t=Vs(),e=Mc.prototype;e[t]||(e[t]=Rc)}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=dn(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 jc{constructor(t){this.queryList=t,this.matches=null}clone(){return new jc(this.queryList)}setDirty(){this.queryList.setDirty()}}class Fc{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 Fc(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!==el(t,e).matches&&this.queries[e].setDirty()}}class Nc{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class Vc{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 Vc(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 Uc{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 Uc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&8&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,Bc(e,r)),this.matchTNodeWithReadOption(t,e,Qe(e,t,r,!1,!1))}else n===$a?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Qe(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===xa||i===rc||i===$a&&4&e.type)this.addMatch(e.index,-2);else{const n=Qe(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 Bc(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 zc(t,e,n,i){return-1===n?function(t,e){return 11&t.type?va(t,e):4&t.type?tc(t,e):null}(e,t):-2===n?function(t,e,n){return n===xa?va(e,t):n===$a?tc(e,t):n===rc?lc(e,t):void 0}(t,e,i):Je(t,t[1],n,e)}function Hc(t,e,n,i){const r=e[19].queries[i];if(null===r.matches){const i=t.data,s=n.matches,o=[];for(let t=0;t<s.length;t+=2){const r=s[t];o.push(r<0?null:zc(e,i[r],s[t+1],n.metadata.read))}r.matches=o}return r.matches}function Wc(t,e,n,i){const r=t.queries.getByIndex(n),s=r.matches;if(null!==s){const o=Hc(t,e,r,n);for(let t=0;t<s.length;t+=2){const n=s[t];if(n>0)i.push(o[t/2]);else{const r=s[t+1],o=e[-n];for(let t=ot;t<o.length;t++){const e=o[t];e[17]===e[3]&&Wc(e[1],e,r,i)}if(null!==o[9]){const t=o[9];for(let e=0;e<t.length;e++){const n=t[e];Wc(n[1],n,r,i)}}}}}return i}function Kc(t){const e=Wt(),n=Kt(),i=ae();ce(i+1);const r=el(n,i);if(t.dirty&&Ft(e)===r.metadata.isStatic){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?Wc(n,e,i,[]):Hc(n,e,r,i);t.reset(s),t.notifyOnChanges()}return!0}return!1}function qc(t,e,n){Zc(Kt(),Wt(),t,e,n,!0)}function Yc(t,e,n){Zc(Kt(),Wt(),t,e,n,!1)}function Zc(t,e,n,i,r,s){t.firstCreatePass&&(tl(t,new Nc(n,i,s,r),-1),s&&(t.staticViewQueries=!0)),Jc(t,e)}function Xc(t,e,n,i){$c(Kt(),Wt(),e,n,i,!1,Yt(),t)}function Gc(t,e,n,i){$c(Kt(),Wt(),e,n,i,!0,Yt(),t)}function $c(t,e,n,i,r,s,o,a){t.firstCreatePass&&(tl(t,new Nc(n,i,s,r),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(n.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),s&&(t.staticContentQueries=!0)),Jc(t,e)}function Qc(){return t=Wt(),e=ae(),t[19].queries[e].queryList;var t,e}function Jc(t,e){const n=new Mc;Vr(t,e,n,n.destroy),null===e[19]&&(e[19]=new Fc),e[19].queries.push(new jc(n))}function tl(t,e,n){null===t.queries&&(t.queries=new Vc),t.queries.track(new Uc(e,n))}function el(t,e){return t.queries.getByIndex(e)}function nl(t,e){return tc(t,e)}function il(t=k.Default){const e=qa(!0);if(null!=e||t&k.Optional)return e;gt("ChangeDetectorRef")}const rl=new ln("Application Initializer");let sl=(()=>{class t{constructor(t){this.appInits=t,this.resolve=ya,this.reject=ya,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]();ao(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)(Tn(rl,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const ol=new ln("AppId"),al={provide:ol,useFactory:function(){return`${cl()}${cl()}${cl()}`},deps:[]};function cl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ll=new ln("Platform Initializer"),hl=new ln("Platform ID"),ul=new ln("appBootstrapListener");let dl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const fl=new ln("LocaleId"),pl=new ln("DefaultCurrencyCode");class ml{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const bl=function(t){return new _c(t)},gl=bl,_l=function(t){return Promise.resolve(bl(t))},yl=function(t){const e=bl(t),n=Ti(rt(t).declarations).reduce((t,e)=>{const n=it(e);return n&&t.push(new pc(n)),t},[]);return new ml(e,n)},vl=yl,wl=function(t){return Promise.resolve(yl(t))};let xl=(()=>{class t{constructor(){this.compileModuleSync=gl,this.compileModuleAsync=_l,this.compileModuleAndAllComponentsSync=vl,this.compileModuleAndAllComponentsAsync=wl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const Cl=(()=>Promise.resolve(0))();function Sl(t){"undefined"==typeof Zone?Cl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class El{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Pc(!1),this.onMicrotaskEmpty=new Pc(!1),this.onStable=new Pc(!1),this.onError=new Pc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.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),Ol(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,s,o,a)=>{try{return Dl(t),n.invokeTask(r,s,o,a)}finally{e&&"eventTask"===s.type&&e(),Il(t)}},onInvoke:(e,n,i,r,s,o,a)=>{try{return Dl(t),e.invoke(i,r,s,o,a)}finally{Il(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,Al(t),Ol(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!El.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(El.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,s=r.scheduleEventTask("NgZoneEvent: "+i,t,kl,ya,ya);try{return r.runTask(s,e,n)}finally{r.cancelTask(s)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const kl={};function Ol(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 Dl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Il(t){t._nesting--,Ol(t)}class Tl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Pc,this.onMicrotaskEmpty=new Pc,this.onStable=new Pc,this.onError=new Pc}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 Ll=(()=>{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:()=>{El.assertNotInAngularZone(),Sl(()=>{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())Sl(()=>{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)(Tn(El))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})(),Pl=(()=>{class t{constructor(){this._applications=new Map,Fl.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 Fl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();class Rl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Ml(t){Fl=t}let jl,Fl=new Rl,Nl=!0,Vl=!1;function Ul(){return Vl=!0,Nl}function Bl(){if(Vl)throw new Error("Cannot enable prod mode after platform setup.");Nl=!1}const zl=new ln("AllowMultipleToken");class Hl{constructor(t,e){this.name=t,this.token=e}}function Wl(t,e,n=[]){const i="Platform: "+e,r=new ln(i);return(e=[])=>{let s=Kl();if(!s||s.injector.get(zl,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:gs,useValue:"platform"});!function(t){if(jl&&!jl.destroyed&&!jl.injector.get(zl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");jl=t.get(ql);const e=t.get(ll,null);e&&e.forEach(t=>t())}(Ts.create({providers:t,name:i}))}return function(t){const e=Kl();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 Kl(){return jl&&!jl.destroyed?jl:null}let ql=(()=>{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 Tl:("zone.js"===t?void 0:t)||new El({enableLongStackTrace:Ul(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:El,useValue:n}];return n.run(()=>{const e=Ts.create({providers:i,parent:this.injector,name:t.moduleType.name}),r=t.create(e),s=r.injector.get(ki,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});r.onDestroy(()=>{Xl(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const i=n();return ao(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(s,n,()=>{const t=r.injector.get(sl);return t.runInitializers(),t.donePromise.then(()=>(aa(r.injector.get(fl,sa)||sa),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=Yl({},e);return function(t,e,n){const i=new _c(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Zl);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(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)(Tn(Ts))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Yl(t,e){return Array.isArray(e)?e.reduce(Yl,t):Object.assign(Object.assign({},t),e)}let Zl=(()=>{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._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new s.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new s.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{El.assertNotInAngularZone(),Sl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{El.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,h.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 ba?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ec),r=n.create(Ts.NULL,[],e||n.selector,i),s=r.location.nativeElement,o=r.injector.get(Ll,null),a=o&&r.injector.get(Pl);return o&&a&&a.registerApplication(s,o),r.onDestroy(()=>{this.detachView(r.hostView),Xl(this.components,r),a&&a.unregisterApplication(s)}),this._loadComponent(r),Ul()&&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()}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;Xl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ul,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Tn(El),Tn(dl),Tn(Ts),Tn(ki),Tn(_a),Tn(sl))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Xl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Gl{}class $l{}const Ql={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Jl=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ql}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>th(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("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>th(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Tn(xl),Tn($l,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function th(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class eh extends Ka{}class nh extends eh{}const ih=function(t){return null},rh=Wl(null,"core",[{provide:hl,useValue:"unknown"},{provide:ql,deps:[Ts]},{provide:Pl,deps:[]},{provide:dl,deps:[]}]),sh=[{provide:Zl,useClass:Zl,deps:[El,dl,Ts,ki,_a,sl]},{provide:fc,deps:[El],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:sl,useClass:sl,deps:[[new wn,rl]]},{provide:xl,useClass:xl,deps:[]},al,{provide:Va,useFactory:function(){return Za},deps:[]},{provide:Ua,useFactory:function(){return Xa},deps:[]},{provide:fl,useFactory:function(t){return aa(t=t||"undefined"!=typeof $localize&&$localize.locale||sa),t},deps:[[new vn(fl),new wn,new Cn]]},{provide:pl,useValue:"USD"}];let oh=(()=>{class t{constructor(t){}}return t.\u0275mod=Q({type:t}),t.\u0275inj=_({factory:function(e){return new(e||t)(Tn(Zl))},providers:sh}),t})()},"8cin":function(t,e,n){"use strict";t.exports=h;var i=n("0ROu").codes,r=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,o=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,c=n("Xn1i");function l(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new s);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function h(t){if(!(this instanceof h))return new h(t);c.call(this,t),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",u)}function u(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(e,n){d(t,e,n)})}function d(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new a;if(t._transformState.transforming)throw new o;return t.push(null)}n("2q5Q")(h,c),h.prototype.push=function(t,e){return this._transformState.needTransform=!1,c.prototype.push.call(this,t,e)},h.prototype._transform=function(t,e,n){n(new r("_transform()"))},h.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},h.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},h.prototype._destroy=function(t,e){c.prototype._destroy.call(this,t,function(t){e(t)})}},"9GDS":function(t,e,n){var i=n("mObS"),r=n("hwdV").Buffer;function s(t){var e=r.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var n,o=r.alloc(0),a=0;o.length<e;)n=s(a++),o=r.concat([o,i("sha1").update(t).update(n).digest()]);return o.slice(0,e)}},"9XZ3":function(t,e,n){"use strict";var i=n("P7XM"),r=n("k+aG"),s=n("hwdV").Buffer,o=new Array(16);function a(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(t,e){return t<<e|t>>>32-e}function l(t,e,n,i,r,s,o){return c(t+(e&n|~e&i)+r+s|0,o)+e|0}function h(t,e,n,i,r,s,o){return c(t+(e&i|n&~i)+r+s|0,o)+e|0}function u(t,e,n,i,r,s,o){return c(t+(e^n^i)+r+s|0,o)+e|0}function d(t,e,n,i,r,s,o){return c(t+(n^(e|~i))+r+s|0,o)+e|0}i(a,r),a.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,i=this._b,r=this._c,s=this._d;n=l(n,i,r,s,t[0],3614090360,7),s=l(s,n,i,r,t[1],3905402710,12),r=l(r,s,n,i,t[2],606105819,17),i=l(i,r,s,n,t[3],3250441966,22),n=l(n,i,r,s,t[4],4118548399,7),s=l(s,n,i,r,t[5],1200080426,12),r=l(r,s,n,i,t[6],2821735955,17),i=l(i,r,s,n,t[7],4249261313,22),n=l(n,i,r,s,t[8],1770035416,7),s=l(s,n,i,r,t[9],2336552879,12),r=l(r,s,n,i,t[10],4294925233,17),i=l(i,r,s,n,t[11],2304563134,22),n=l(n,i,r,s,t[12],1804603682,7),s=l(s,n,i,r,t[13],4254626195,12),r=l(r,s,n,i,t[14],2792965006,17),n=h(n,i=l(i,r,s,n,t[15],1236535329,22),r,s,t[1],4129170786,5),s=h(s,n,i,r,t[6],3225465664,9),r=h(r,s,n,i,t[11],643717713,14),i=h(i,r,s,n,t[0],3921069994,20),n=h(n,i,r,s,t[5],3593408605,5),s=h(s,n,i,r,t[10],38016083,9),r=h(r,s,n,i,t[15],3634488961,14),i=h(i,r,s,n,t[4],3889429448,20),n=h(n,i,r,s,t[9],568446438,5),s=h(s,n,i,r,t[14],3275163606,9),r=h(r,s,n,i,t[3],4107603335,14),i=h(i,r,s,n,t[8],1163531501,20),n=h(n,i,r,s,t[13],2850285829,5),s=h(s,n,i,r,t[2],4243563512,9),r=h(r,s,n,i,t[7],1735328473,14),n=u(n,i=h(i,r,s,n,t[12],2368359562,20),r,s,t[5],4294588738,4),s=u(s,n,i,r,t[8],2272392833,11),r=u(r,s,n,i,t[11],1839030562,16),i=u(i,r,s,n,t[14],4259657740,23),n=u(n,i,r,s,t[1],2763975236,4),s=u(s,n,i,r,t[4],1272893353,11),r=u(r,s,n,i,t[7],4139469664,16),i=u(i,r,s,n,t[10],3200236656,23),n=u(n,i,r,s,t[13],681279174,4),s=u(s,n,i,r,t[0],3936430074,11),r=u(r,s,n,i,t[3],3572445317,16),i=u(i,r,s,n,t[6],76029189,23),n=u(n,i,r,s,t[9],3654602809,4),s=u(s,n,i,r,t[12],3873151461,11),r=u(r,s,n,i,t[15],530742520,16),n=d(n,i=u(i,r,s,n,t[2],3299628645,23),r,s,t[0],4096336452,6),s=d(s,n,i,r,t[7],1126891415,10),r=d(r,s,n,i,t[14],2878612391,15),i=d(i,r,s,n,t[5],4237533241,21),n=d(n,i,r,s,t[12],1700485571,6),s=d(s,n,i,r,t[3],2399980690,10),r=d(r,s,n,i,t[10],4293915773,15),i=d(i,r,s,n,t[1],2240044497,21),n=d(n,i,r,s,t[8],1873313359,6),s=d(s,n,i,r,t[15],4264355552,10),r=d(r,s,n,i,t[6],2734768916,15),i=d(i,r,s,n,t[13],1309151649,21),n=d(n,i,r,s,t[4],4149444226,6),s=d(s,n,i,r,t[11],3174756917,10),r=d(r,s,n,i,t[2],718787259,15),i=d(i,r,s,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+r|0,this._d=this._d+s|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=s.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},"9b/N":function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return u});var i=n("8LU1"),r=n("8Y7J"),s=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(i.e)(t);return new s.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 o.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)(r.Zb(c))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(c))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(i.f)(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(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(l),r.Pb(r.l),r.Pb(r.B))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),u=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:[c]}),t})()},"9gLZ":function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var i=n("8Y7J"),r=n("SVse");const s=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.Y)(r.d)}});let o=(()=>{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.Zb(s,8))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(s,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})()},"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})()},ANxK:function(t,e,n){var i=n("WKKt"),r=n("wk3p"),s=n("Vh22"),o={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(t){var e=new Buffer(r[t].prime,"hex"),n=new Buffer(r[t].gen,"hex");return new s(e,n)},e.createDiffieHellman=e.DiffieHellman=function t(e,n,r,a){return Buffer.isBuffer(n)||void 0===o[n]?t(e,"binary",n,r):(n=n||"binary",a=a||"binary",r=r||new Buffer([2]),Buffer.isBuffer(r)||(r=new Buffer(r,a)),"number"==typeof e?new s(i(e,r),r,!0):(Buffer.isBuffer(e)||(e=new Buffer(e,n)),new s(e,r,!0)))}},AQYT:function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function s(t,e,n){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=n(5).Buffer}catch(S){}function a(t,e,n){for(var i=0,r=Math.min(t.length,n),s=e;s<r;s++){var o=t.charCodeAt(s)-48;i<<=4,i|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return i}function c(t,e,n,i){for(var r=0,s=Math.min(t.length,n),o=e;o<s;o++){var a=t.charCodeAt(o)-48;r*=i,r+=a>=49?a-49+10:a>=17?a-17+10:a}return r}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===e?this._parseHex(t,r):this._parseBase(t,e,r),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},s.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},s.prototype._initArray=function(t,e,n){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var s,o,a=0;if("be"===n)for(r=t.length-1,s=0;r>=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(r=0,s=0;r<t.length;r+=3)this.words[s]|=(o=t[r]|t[r+1]<<8|t[r+2]<<16)<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,r,s=0;for(n=t.length-6,i=0;n>=e;n-=6)r=a(t,n,n+6),this.words[i]|=r<<s&67108863,this.words[i+1]|=r>>>26-s&4194303,(s+=24)>=26&&(s-=26,i++);n+6!==e&&(r=a(t,e,n+6),this.words[i]|=r<<s&67108863,this.words[i+1]|=r>>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var s=t.length-n,o=s%i,a=Math.min(s,s-o)+n,l=0,h=n;h<a;h+=i)l=c(t,h,h+i,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var u=1;for(l=c(t,h,t.length,e),h=0;h<o;h++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;n.words[0]=67108863&o;for(var c=1;c<i;c++){for(var l=a>>>26,h=67108863&a,u=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=u;d++)l+=(o=(r=0|t.words[c-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;n.words[c]=0|h,a=0|l}return 0!==a?n.words[c]=0|a:n.length--,n.strip()}s.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var r=0,s=0,o=0;o<this.length;o++){var a=this.words[o],c=(16777215&(a<<r|s)).toString(16);n=0!=(s=a>>>24-r&16777215)||o!==this.length-1?l[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(n=s.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=h[t],f=u[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return i(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,n){var r=this.byteLength(),s=n||Math.max(1,r);i(r<=s,"byte array longer than desired length"),i(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===e,l=new t(s),h=this.clone();if(c){for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),l[a]=o;for(;a<s;a++)l[a]=0}else{for(a=0;a<s-r;a++)l[a]=0;for(a=0;!h.isZero();a++)o=h.andln(255),h.iushrn(8),l[s-a-1]=o}return l},s.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},s.prototype.ior=function(t){return i(0==(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},s.prototype.iand=function(t){return i(0==(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},s.prototype.ixor=function(t){return i(0==(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<r:this.words[n]&~(1<<r),this.strip()},s.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var r=0,s=0;s<i.length;s++)this.words[s]=67108863&(e=(0|n.words[s])+(0|i.words[s])+r),r=e>>>26;for(;0!==r&&s<n.length;s++)this.words[s]=67108863&(e=(0|n.words[s])+r),r=e>>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this},s.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=this);for(var s=0,o=0;o<i.length;o++)s=(e=(0|n.words[o])-(0|i.words[o])+s)>>26,this.words[o]=67108863&e;for(;0!==s&&o<n.length;o++)s=(e=(0|n.words[o])+s)>>26,this.words[o]=67108863&e;if(0===s&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var f=function(t,e,n){var i,r,s,o=t.words,a=e.words,c=n.words,l=0,h=0|o[0],u=8191&h,d=h>>>13,f=0|o[1],p=8191&f,m=f>>>13,b=0|o[2],g=8191&b,_=b>>>13,y=0|o[3],v=8191&y,w=y>>>13,x=0|o[4],C=8191&x,S=x>>>13,E=0|o[5],k=8191&E,O=E>>>13,A=0|o[6],D=8191&A,I=A>>>13,T=0|o[7],L=8191&T,P=T>>>13,R=0|o[8],M=8191&R,j=R>>>13,F=0|o[9],N=8191&F,V=F>>>13,U=0|a[0],B=8191&U,z=U>>>13,H=0|a[1],W=8191&H,K=H>>>13,q=0|a[2],Y=8191&q,Z=q>>>13,X=0|a[3],G=8191&X,$=X>>>13,Q=0|a[4],J=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,it=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var bt=(l+(i=Math.imul(u,B))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,B)|0))<<13)|0;l=((s=Math.imul(d,z))+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(p,B),r=(r=Math.imul(p,z))+Math.imul(m,B)|0,s=Math.imul(m,z);var gt=(l+(i=i+Math.imul(u,W)|0)|0)+((8191&(r=(r=r+Math.imul(u,K)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,B),r=(r=Math.imul(g,z))+Math.imul(_,B)|0,s=Math.imul(_,z),i=i+Math.imul(p,W)|0,r=(r=r+Math.imul(p,K)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,K)|0;var _t=(l+(i=i+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,Z)|0)+Math.imul(d,Y)|0))<<13)|0;l=((s=s+Math.imul(d,Z)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(v,B),r=(r=Math.imul(v,z))+Math.imul(w,B)|0,s=Math.imul(w,z),i=i+Math.imul(g,W)|0,r=(r=r+Math.imul(g,K)|0)+Math.imul(_,W)|0,s=s+Math.imul(_,K)|0,i=i+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,Z)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,Z)|0;var yt=(l+(i=i+Math.imul(u,G)|0)|0)+((8191&(r=(r=r+Math.imul(u,$)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,$)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,B),r=(r=Math.imul(C,z))+Math.imul(S,B)|0,s=Math.imul(S,z),i=i+Math.imul(v,W)|0,r=(r=r+Math.imul(v,K)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,K)|0,i=i+Math.imul(g,Y)|0,r=(r=r+Math.imul(g,Z)|0)+Math.imul(_,Y)|0,s=s+Math.imul(_,Z)|0,i=i+Math.imul(p,G)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,$)|0;var vt=(l+(i=i+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(k,B),r=(r=Math.imul(k,z))+Math.imul(O,B)|0,s=Math.imul(O,z),i=i+Math.imul(C,W)|0,r=(r=r+Math.imul(C,K)|0)+Math.imul(S,W)|0,s=s+Math.imul(S,K)|0,i=i+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,Z)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,Z)|0,i=i+Math.imul(g,G)|0,r=(r=r+Math.imul(g,$)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,$)|0,i=i+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,tt)|0;var wt=(l+(i=i+Math.imul(u,nt)|0)|0)+((8191&(r=(r=r+Math.imul(u,it)|0)+Math.imul(d,nt)|0))<<13)|0;l=((s=s+Math.imul(d,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(D,B),r=(r=Math.imul(D,z))+Math.imul(I,B)|0,s=Math.imul(I,z),i=i+Math.imul(k,W)|0,r=(r=r+Math.imul(k,K)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,K)|0,i=i+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,Z)|0)+Math.imul(S,Y)|0,s=s+Math.imul(S,Z)|0,i=i+Math.imul(v,G)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,$)|0,i=i+Math.imul(g,J)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(_,J)|0,s=s+Math.imul(_,tt)|0,i=i+Math.imul(p,nt)|0,r=(r=r+Math.imul(p,it)|0)+Math.imul(m,nt)|0,s=s+Math.imul(m,it)|0;var xt=(l+(i=i+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(L,B),r=(r=Math.imul(L,z))+Math.imul(P,B)|0,s=Math.imul(P,z),i=i+Math.imul(D,W)|0,r=(r=r+Math.imul(D,K)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,K)|0,i=i+Math.imul(k,Y)|0,r=(r=r+Math.imul(k,Z)|0)+Math.imul(O,Y)|0,s=s+Math.imul(O,Z)|0,i=i+Math.imul(C,G)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(S,G)|0,s=s+Math.imul(S,$)|0,i=i+Math.imul(v,J)|0,r=(r=r+Math.imul(v,tt)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,tt)|0,i=i+Math.imul(g,nt)|0,r=(r=r+Math.imul(g,it)|0)+Math.imul(_,nt)|0,s=s+Math.imul(_,it)|0,i=i+Math.imul(p,st)|0,r=(r=r+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(l+(i=i+Math.imul(u,ct)|0)|0)+((8191&(r=(r=r+Math.imul(u,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(M,B),r=(r=Math.imul(M,z))+Math.imul(j,B)|0,s=Math.imul(j,z),i=i+Math.imul(L,W)|0,r=(r=r+Math.imul(L,K)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,K)|0,i=i+Math.imul(D,Y)|0,r=(r=r+Math.imul(D,Z)|0)+Math.imul(I,Y)|0,s=s+Math.imul(I,Z)|0,i=i+Math.imul(k,G)|0,r=(r=r+Math.imul(k,$)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,$)|0,i=i+Math.imul(C,J)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(S,J)|0,s=s+Math.imul(S,tt)|0,i=i+Math.imul(v,nt)|0,r=(r=r+Math.imul(v,it)|0)+Math.imul(w,nt)|0,s=s+Math.imul(w,it)|0,i=i+Math.imul(g,st)|0,r=(r=r+Math.imul(g,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,i=i+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var St=(l+(i=i+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(N,B),r=(r=Math.imul(N,z))+Math.imul(V,B)|0,s=Math.imul(V,z),i=i+Math.imul(M,W)|0,r=(r=r+Math.imul(M,K)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,K)|0,i=i+Math.imul(L,Y)|0,r=(r=r+Math.imul(L,Z)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,Z)|0,i=i+Math.imul(D,G)|0,r=(r=r+Math.imul(D,$)|0)+Math.imul(I,G)|0,s=s+Math.imul(I,$)|0,i=i+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,s=s+Math.imul(O,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(S,nt)|0,s=s+Math.imul(S,it)|0,i=i+Math.imul(v,st)|0,r=(r=r+Math.imul(v,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,i=i+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,i=i+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var Et=(l+(i=i+Math.imul(u,pt)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(N,W),r=(r=Math.imul(N,K))+Math.imul(V,W)|0,s=Math.imul(V,K),i=i+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,Z)|0)+Math.imul(j,Y)|0,s=s+Math.imul(j,Z)|0,i=i+Math.imul(L,G)|0,r=(r=r+Math.imul(L,$)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,$)|0,i=i+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(I,J)|0,s=s+Math.imul(I,tt)|0,i=i+Math.imul(k,nt)|0,r=(r=r+Math.imul(k,it)|0)+Math.imul(O,nt)|0,s=s+Math.imul(O,it)|0,i=i+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(S,st)|0,s=s+Math.imul(S,ot)|0,i=i+Math.imul(v,ct)|0,r=(r=r+Math.imul(v,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,i=i+Math.imul(g,ut)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(_,ut)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(i=i+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(N,Y),r=(r=Math.imul(N,Z))+Math.imul(V,Y)|0,s=Math.imul(V,Z),i=i+Math.imul(M,G)|0,r=(r=r+Math.imul(M,$)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,$)|0,i=i+Math.imul(L,J)|0,r=(r=r+Math.imul(L,tt)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,tt)|0,i=i+Math.imul(D,nt)|0,r=(r=r+Math.imul(D,it)|0)+Math.imul(I,nt)|0,s=s+Math.imul(I,it)|0,i=i+Math.imul(k,st)|0,r=(r=r+Math.imul(k,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,i=i+Math.imul(C,ct)|0,r=(r=r+Math.imul(C,lt)|0)+Math.imul(S,ct)|0,s=s+Math.imul(S,lt)|0,i=i+Math.imul(v,ut)|0,r=(r=r+Math.imul(v,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var Ot=(l+(i=i+Math.imul(g,pt)|0)|0)+((8191&(r=(r=r+Math.imul(g,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(N,G),r=(r=Math.imul(N,$))+Math.imul(V,G)|0,s=Math.imul(V,$),i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,tt)|0,i=i+Math.imul(L,nt)|0,r=(r=r+Math.imul(L,it)|0)+Math.imul(P,nt)|0,s=s+Math.imul(P,it)|0,i=i+Math.imul(D,st)|0,r=(r=r+Math.imul(D,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,i=i+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,lt)|0)+Math.imul(O,ct)|0,s=s+Math.imul(O,lt)|0,i=i+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(S,ut)|0,s=s+Math.imul(S,dt)|0;var At=(l+(i=i+Math.imul(v,pt)|0)|0)+((8191&(r=(r=r+Math.imul(v,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(V,J)|0,s=Math.imul(V,tt),i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(j,nt)|0,s=s+Math.imul(j,it)|0,i=i+Math.imul(L,st)|0,r=(r=r+Math.imul(L,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,i=i+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,lt)|0)+Math.imul(I,ct)|0,s=s+Math.imul(I,lt)|0,i=i+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,dt)|0;var Dt=(l+(i=i+Math.imul(C,pt)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;l=((s=s+Math.imul(S,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(N,nt),r=(r=Math.imul(N,it))+Math.imul(V,nt)|0,s=Math.imul(V,it),i=i+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,i=i+Math.imul(L,ct)|0,r=(r=r+Math.imul(L,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,i=i+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(I,ut)|0,s=s+Math.imul(I,dt)|0;var It=(l+(i=i+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((s=s+Math.imul(O,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(N,st),r=(r=Math.imul(N,ot))+Math.imul(V,st)|0,s=Math.imul(V,ot),i=i+Math.imul(M,ct)|0,r=(r=r+Math.imul(M,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,i=i+Math.imul(L,ut)|0,r=(r=r+Math.imul(L,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Tt=(l+(i=i+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((s=s+Math.imul(I,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(N,ct),r=(r=Math.imul(N,lt))+Math.imul(V,ct)|0,s=Math.imul(V,lt),i=i+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(j,ut)|0,s=s+Math.imul(j,dt)|0;var Lt=(l+(i=i+Math.imul(L,pt)|0)|0)+((8191&(r=(r=r+Math.imul(L,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,i=Math.imul(N,ut),r=(r=Math.imul(N,dt))+Math.imul(V,ut)|0,s=Math.imul(V,dt);var Pt=(l+(i=i+Math.imul(M,pt)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(j,pt)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var Rt=(l+(i=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(V,pt)|0))<<13)|0;return l=((s=Math.imul(V,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=bt,c[1]=gt,c[2]=_t,c[3]=yt,c[4]=vt,c[5]=wt,c[6]=xt,c[7]=Ct,c[8]=St,c[9]=Et,c[10]=kt,c[11]=Ot,c[12]=At,c[13]=Dt,c[14]=It,c[15]=Tt,c[16]=Lt,c[17]=Pt,c[18]=Rt,0!==l&&(c[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=d),s.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,s=0;s<n.length-1;s++){var o=r;r=0;for(var a=67108863&i,c=Math.min(s,e.length-1),l=Math.max(0,s-t.length+1);l<=c;l++){var h=(0|t.words[s-l])*(0|e.words[l]),u=67108863&h;a=67108863&(u=u+a|0),r+=(o=(o=o+(h/67108864|0)|0)+(u>>>26)|0)>>>26,o&=67108863}n.words[s]=a,i=o,o=r}return 0!==i?n.words[s]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=s.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,r=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},m.prototype.permute=function(t,e,n,i,r,s){for(var o=0;o<s;o++)i[o]=e[t[o]],r[o]=n[t[o]]},m.prototype.transform=function(t,e,n,i,r,s){this.permute(s,t,e,n,i,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,c=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),h=0;h<r;h+=a)for(var u=c,d=l,f=0;f<o;f++){var p=n[h+f],m=i[h+f],b=n[h+f+o],g=i[h+f+o],_=u*b-d*g;g=u*g+d*b,n[h+f]=p+(b=_),i[h+f]=m+g,n[h+f+o]=p-b,i[h+f+o]=m-g,f!==a&&(_=c*u-l*d,d=c*d+l*u,u=_)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,r=0;for(n=n/2|0;n;n>>>=1)r++;return 1<<r+1+i},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},m.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},m.prototype.convert13b=function(t,e,n,r){for(var s=0,o=0;o<e;o++)n[2*o]=8191&(s+=0|t[o]),n[2*o+1]=8191&(s>>>=13),s>>>=13;for(o=2*e;o<r;++o)n[o]=0;i(0===s),i(0==(-8192&s))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(i),s=this.stub(i),o=new Array(i),a=new Array(i),c=new Array(i),l=new Array(i),h=new Array(i),u=new Array(i),d=n.words;d.length=i,this.convert13b(t.words,t.length,o,i),this.convert13b(e.words,e.length,l,i),this.transform(o,s,a,c,i,r),this.transform(l,s,h,u,i,r);for(var f=0;f<i;f++){var p=a[f]*h[f]-c[f]*u[f];c[f]=a[f]*u[f]+c[f]*h[f],a[f]=p}return this.conjugate(a,c,i),this.transform(a,c,d,s,i,r),this.conjugate(d,s,i),this.normalize13b(d,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),p(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.prototype.imuln=function(t){i("number"==typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var r=(0|this.words[n])*t,s=(67108863&r)+(67108863&e);e>>=26,e+=r/67108864|0,e+=s>>>26,this.words[n]=67108863&s}return 0!==e&&(this.words[n]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n%26;e[n]=(t.words[n/26|0]&1<<i)>>>i}return e}(t);if(0===e.length)return new s(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var r=n.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(n=n.mul(r));return n},s.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,n=t%26,r=(t-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&s;this.words[e]=(0|this.words[e])-a<<n|o,o=a>>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this.strip()},s.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,n){var r;i("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<<s,c=n;if(r-=o,r=Math.max(0,r),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var h=0;for(l=this.length-1;l>=0&&(0!==h||l>=r);l--){var u=0|this.words[l];this.words[l]=h<<26-s|u>>>s,h=u&a}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;return!(this.length<=n||!(this.words[n]&1<<e))},s.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;return i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n?this:(0!==e&&n++,this.length=Math.min(n,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.prototype.iaddn=function(t){return i("number"==typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,n){var r,s;this._expand(t.length+n);var o=0;for(r=0;r<t.length;r++){s=(0|this.words[r+n])+o;var a=(0|t.words[r])*e;o=((s-=67108863&a)>>26)-(a/67108864|0),this.words[r+n]=67108863&s}for(;r<this.length-n;r++)o=(s=(0|this.words[r+n])+o)>>26,this.words[r+n]=67108863&s;if(0===o)return this.strip();for(i(-1===o),o=0,r=0;r<this.length;r++)o=(s=-(0|this.words[r])+o)>>26,this.words[r]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var n,i=this.clone(),r=t,o=0|r.words[r.length-1];0!=(n=26-this._countBits(o))&&(r=r.ushln(n),i.iushln(n),o=0|r.words[r.length-1]);var a,c=i.length-r.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var h=i.clone()._ishlnsubmul(r,1,c);0===h.negative&&(i=h,a&&(a.words[c]=1));for(var u=c-1;u>=0;u--){var d=67108864*(0|i.words[r.length+u])+(0|i.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),i._ishlnsubmul(r,d,u);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(r,1,u),i.isZero()||(i.negative^=1);a&&(a.words[u]=d)}return a&&a.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:a||null,mod:i}},s.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),r=t.andln(1),s=n.cmp(i);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,r=this.length-1;r>=0;r--)n=(e*n+(0|this.words[r]))%t;return n},s.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*e;this.words[n]=r/t|0,e=r%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),u=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(h),c.isub(u)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(a),o.isub(c)):(n.isub(e),a.isub(r),c.isub(o))}return{a:a,b:c,gcd:n.iushln(l)}},s.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0==(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var u=0,d=1;0==(n.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a)):(n.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var s=e;e=n,n=s}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var s=r,o=n;0!==s&&o<this.length;o++){var a=0|this.words[o];s=(a+=s)>>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},s.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){i<r?e=-1:i>r&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new x(t)},s.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},r(_,g),_.prototype.split=function(t,e){for(var n=4194303,i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(o&n)<<4|s>>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];t.words[n]=67108863&(e+=977*i),e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(y,g),r(v,g),r(w,g),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,r=67108863&i;i>>>=26,t.words[n]=r,e=i}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new y;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return b[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new s(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);i(!r.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,l).cmp(c);)h.redIAdd(c);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=o;0!==f.cmp(a);){for(var m=f,b=0;0!==m.cmp(a);b++)m=m.redSqr();i(b<p);var g=this.pow(u,new s(1).iushln(p-b-1));d=d.redMul(g),u=g.redSqr(),f=f.redMul(u),p=b}return d},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new s(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var r=n[0],o=0,a=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var u=l>>h&1;r!==n[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===i&&0===h)&&(r=this.mul(r,n[o]),a=0,o=0)):a=0}c=26}return r},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new C(t)},r(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n("YuTi")(t))},AUX7:function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},AYSA:function(t,e,n){"use strict";var i=n("2j6C");function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i<n;i++)this.buffer[this.bufferOff+i]=t[e+i];return this.bufferOff+=n,n},r.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(t){var e=0,n=0,i=new Array(((this.bufferOff+t.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var r=t.length-(t.length-e)%this.blockSize;e<r;e+=this.blockSize)this._update(t,e,i,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},r.prototype._updateDecrypt=function(t){for(var e=0,n=0,i=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,r=new Array(i*this.blockSize);i>0;i--)e+=this._buffer(t,e),n+=this._flushBuffer(r,n);return e+=this._buffer(t,e),r},r.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},r.prototype._unpad=function(t){return t},r.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},AZa5:function(t,e,n){var i=n("Wogr"),r=n("u/Db");function s(t){this.mode=r.BYTE,this.data=new i(t)}s.getBitsLength=function(t){return 8*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){for(var e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},t.exports=s},AhHn:function(t,e,n){"use strict";const i=e;i._reverse=function(t){const e={};return Object.keys(t).forEach(function(n){(0|n)==n&&(n|=0),e[t[n]]=n}),e},i.der=n("i3FT")},AytR:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});const i="./api",r={production:!0,isDebugMode:!1,AUTHENTICATE_API:i+"/authenticate",CONF_API:i+"/conf",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYREQUEST_API:"/payreq",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",LOOP_API:"/loop",MESSAGE_API:"/message",VERSION:"0.10.0-beta"}},"B/J0":function(t,e,n){"use strict";var i=n("w8CP"),r=n("bu2F");function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(s,r),t.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},"B0X+":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("s7LF"),r=n("8Y7J");let s=(()=>{class t{validate(t){return this.min?i.t.min(+this.min)(t):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Kb({type:t,selectors:[["input","min",""]],inputs:{min:"min"},features:[r.Cb([{provide:i.j,useExisting:t,multi:!0}])]}),t})()},BCVQ:function(t,e){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=new RegExp(n,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(i,"g"),e.NUMERIC=new RegExp("[0-9]+","g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var r=new RegExp("^"+n+"$"),s=new RegExp("^[0-9]+$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return r.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return o.test(t)}},BSbQ:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var i=n("8LU1"),r=n("UhP/"),s=n("8Y7J");let o=(()=>{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(i.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(i.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Eb("aria-orientation",e.vertical?"vertical":"horizontal"),s.Hb("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})(),a=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t})()},BTe0:function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return _});var i=n("8Y7J"),r=n("SVse"),s=n("UhP/"),o=n("8LU1"),a=n("omvX"),c=n("quSY"),l=n("xgIS"),h=n("pLZG");const u=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const f=Object(s.x)(d,"primary"),p=new i.s("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(i.Y)(r.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let m=0,b=(()=>{class t extends f{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=c.a.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+m++;const s=r?r.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${s}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===n}get value(){return this._value}set value(t){this._value=g(Object(o.f)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=g(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Object(l.a)(t,"transitionend").pipe(Object(h.a)(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.Pb(i.l),i.Pb(i.B),i.Pb(a.a,8),i.Pb(p,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&i.Pc(u,!0),2&t){let t;i.vc(t=i.ec())&&(e._primaryValueBar=t.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.Hb("_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.gc(),i.Vb(0,"svg",0),i.Vb(1,"defs"),i.Vb(2,"pattern",1),i.Qb(3,"circle",2),i.Ub(),i.Ub(),i.Qb(4,"rect",3),i.Ub(),i.fc(),i.Qb(5,"div",4),i.Qb(6,"div",5,6),i.Qb(8,"div",7)),2&t&&(i.Db(2),i.oc("id",e.progressbarId),i.Db(2),i.Eb("fill",e._rectangleFillValue),i.Db(1),i.oc("ngStyle",e._bufferTransform()),i.Db(1),i.oc("ngStyle",e._primaryTransform()))},directives:[r.p],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 g(t,e=0,n=100){return Math.max(e,Math.min(n,t))}let _=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.c,s.i],s.i]}),t})()},BfC4:function(t,e,n){"use strict";var i=n("0ROu").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,r){var s=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,r,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new i(r?n:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}}},"C+gy":function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},CH9F:function(t,e,n){var i=n("P7XM"),r=n("tnIz"),s=n("hwdV").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,r.call(this,64,56)}function l(t){return t<<30|t>>>2}function h(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,u=0;u<16;++u)n[u]=t.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((e=i)<<5|e>>>27)+h(f,r,s,a)+c+n[d]+o[f];c=a,a=s,s=l(r),r=i,i=p}this._a=i+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},CWBI:function(t,e,n){t.exports=n("sZro")},CfXC:function(t,e,n){var i=n("OfWw"),r=n("hwdV").Buffer,s=n("ZDAU");function o(t,e,n,o){s.call(this),this._cipher=new i.AES(e),this._prev=r.from(n),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._mode=t}n("P7XM")(o,s),o.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("HDdC"),r=n("SeVD"),s=n("quSY"),o=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),h=n("I55L");function u(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a(n=>{const i=new s.a;return i.add(e.schedule(()=>{const r=t[o.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 s.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(h.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 s.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))}},CqXF:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.value=t}call(t,e){return e.subscribe(new o(t,this.value))}}class o extends i.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}},CtHx:function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return d}),n.d(e,"d",function(){return f}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return p}),n.d(e,"h",function(){return c});var i=n("7+OI"),r=n("LRne"),s=n("XNiG"),o=n("8Y7J");class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return Object(i.a)(this._data)?this._data:Object(r.a)(this._data)}disconnect(){}}class h{applyChanges(t,e,n,i,r){t.forEachOperation((t,i,s)=>{let o,a;if(null==t.previousIndex){const r=n(t,i,s);o=e.createEmbeddedView(r.templateRef,r.context,r.index),a=1}else null==s?(e.remove(i),a=3):(o=e.get(i),e.move(o,s),a=2);r&&r({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,r){t.forEachOperation((t,s,o)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>n(t,s,o),o,e,i(t)),c=a?1:0):null==o?(this._detachAndCacheView(s,e),c=3):(a=this._moveView(s,o,e,i(t)),c=2),r&&r({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,n,i){let r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=i);const s=t();return n.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(t,e){const n=this._detachView(t,e);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const r=n.get(t);return n.move(r,e),r.context.$implicit=i,r}_maybeCacheView(t,e){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(t);else{const n=e.indexOf(t);-1===n?t.destroy():e.remove(n)}}_insertViewFromCache(t,e){const n=this._viewCache.pop();return n&&e.insert(n,t),n||null}_detachView(t,e){return e.detach(t)}}class d{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new s.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){}}let f=(()=>{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(o.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const p=new o.s("_ViewRepeater")},Cyaj:function(t,e,n){!function(e){"use strict";var i={};t.exports?(i.bytesToHex=n("bCQu").bytesToHex,i.convertString=n("Qi+P"),t.exports=a):(i.bytesToHex=e.convertHex.bytesToHex,i.convertString=e.convertString,e.sha256=a);var r=[];!function(){function t(t){for(var e=Math.sqrt(t),n=2;n<=e;n++)if(!(t%n))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)t(n)&&(r[i]=e(Math.pow(n,1/3)),i++),n++}();var s=[],o=function(t,e,n){for(var i=t[0],o=t[1],a=t[2],c=t[3],l=t[4],h=t[5],u=t[6],d=t[7],f=0;f<64;f++){if(f<16)s[f]=0|e[n+f];else{var p=s[f-15],m=s[f-2];s[f]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+s[f-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+s[f-16]}var b=i&o^i&a^o&a,g=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&h^~l&u)+r[f]+s[f];d=u,u=h,h=l,l=c+g|0,c=a,a=o,o=i,i=g+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+b)|0}t[0]=t[0]+i|0,t[1]=t[1]+o|0,t[2]=t[2]+a|0,t[3]=t[3]+c|0,t[4]=t[4]+l|0,t[5]=t[5]+h|0,t[6]=t[6]+u|0,t[7]=t[7]+d|0};function a(t,e){t.constructor===String&&(t=i.convertString.UTF8.stringToBytes(t));var n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],r=function(t){for(var e=[],n=0,i=0;n<t.length;n++,i+=8)e[i>>>5]|=t[n]<<24-i%32;return e}(t),s=8*t.length;r[s>>5]|=128<<24-s%32,r[15+(s+64>>9<<4)]=s;for(var a=0;a<r.length;a+=16)o(n,r,a);var c=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e}(n);return e&&e.asBytes?c:e&&e.asString?i.convertString.bytesToString(c):i.bytesToHex(c)}a.x2=function(t,e){return a(a(t,{asBytes:!0}),e)}}(this)},D0XW:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("3N8a");const r=new(n("IjjT").a)(i.a)},D9sq:function(t,e,n){"use strict";n.d(e,"a",function(){return E});var i=n("mrSG"),r=n("7bNT"),s=n("XNiG"),o=n("LRne"),a=n("zp1y"),c=n("5+tZ"),l=n("1G5W"),h=n("lJxs"),u=n("JIr8"),d=n("AytR"),f=n("V8Fa"),p=n("lF6s"),m=n("/uX3"),b=n("bdpe"),g=n("8Y7J"),_=n("IheW"),y=n("tqRt"),v=n("mZtN"),w=n("cpEJ"),x=n("7o2P"),C=n("iInd"),S=n("SVse");let E=(()=>{class t{constructor(t,e,n,i,f,g,_,y){this.actions$=t,this.httpClient=e,this.store=n,this.sessionService=i,this.logger=f,this.commonService=g,this.router=_,this.location=y,this.CHILD_API_URL=d.a+"/ecl",this.unSubs=[new s.a,new s.a],this.infoFetchECL=this.actions$.pipe(Object(r.d)(p.o),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new p.e("FetchInfo")),this.httpClient.get(this.CHILD_API_URL+d.b.GETINFO_API).pipe(Object(l.a)(this.actions$.pipe(Object(r.d)(m.O))),Object(h.a)(e=>(this.logger.info(e),this.initializeRemainingData(e,t.payload.loadPage),{type:p.Z,payload:e||{}})),Object(u.a)(t=>(this.router.navigate(["/error"],{state:{errorCode:t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.status?t.status:"",errorMessage:(t.error&&t.error.message?t.error.message+" ":"")+(t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&t.error.error.errno&&"string"==typeof t.error.error.errno?t.error.error.errno:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:"Unknown Error")}}),this.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t),Object(o.a)({type:m.bb}))))))),this.fetchFees=this.actions$.pipe(Object(r.d)(p.n),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchFees")),this.httpClient.get(this.CHILD_API_URL+d.b.FEES_API+"/fees").pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.X,payload:t||{}}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(o.a)({type:m.bb})))))))),this.fetchPayments=this.actions$.pipe(Object(r.d)(p.r),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchPayments")),this.httpClient.get(this.CHILD_API_URL+d.b.FEES_API+"/payments").pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.fb,payload:t||{}}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(o.a)({type:m.bb})))))))),this.channelsFetch=this.actions$.pipe(Object(r.d)(p.l),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchChannels")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new p.pb(e&&e.activeChannels.length>0?e.activeChannels:[])),this.store.dispatch(new p.ub(e&&e.pendingChannels.length>0?e.pendingChannels:[])),this.store.dispatch(new p.rb(e&&e.inactiveChannels.length>0?e.inactiveChannels:[])),this.store.dispatch(new p.sb(e.lightningBalances)),t.payload.fetchPayments&&this.store.dispatch(new p.z),{type:p.U,payload:e.channelStatus}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels","Fetching Channels Failed.",t),Object(o.a)({type:m.bb})))))))),this.channelStatsFetch=this.actions$.pipe(Object(r.d)(p.m),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchChannelStats")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/stats").pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.V,payload:t&&t.length>0?t:[]}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannelStats","Fetching Channel Stats Failed.",t),Object(o.a)({type:m.bb})))))))),this.fetchOnchainBalance=this.actions$.pipe(Object(r.d)(p.q),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchOnchainBalance")),this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API+"/balance"))),Object(h.a)(t=>(this.logger.info(t),{type:p.eb,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchOnchainBalance","Fetching Onchain Balances Failed.",t),Object(o.a)({type:m.bb})))),this.peersFetch=this.actions$.pipe(Object(r.d)(p.s),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchPeers")),this.httpClient.get(this.CHILD_API_URL+d.b.PEERS_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.gb,payload:t&&t.length?t:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPeers","Fetching Peers Failed.",t),Object(o.a)({type:m.bb}))))))),this.getNewAddress=this.actions$.pipe(Object(r.d)(p.C),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:p.db,payload:t})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Generate New Address Failed",this.CHILD_API_URL+d.b.ON_CHAIN_API,t),Object(o.a)({type:m.bb})))))),this.setNewAddress=this.actions$.pipe(Object(r.d)(p.db),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.saveNewPeer=this.actions$.pipe(Object(r.d)(p.O),Object(a.a)(this.store.select("ecl")),Object(c.a)(([t,e])=>(this.store.dispatch(new p.e("SaveNewPeer")),this.httpClient.post(this.CHILD_API_URL+d.b.PEERS_API+(t.payload.id.includes("@")?"?uri=":"?nodeId=")+t.payload.id,{}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new p.tb(t&&t.length?t:[])),{type:p.G,payload:{peer:t[0]}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(o.a)({type:m.bb}))))))),this.detachPeer=this.actions$.pipe(Object(r.d)(p.h),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.nodeId).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Disconnecting Peer!")),{type:p.K,payload:{nodeId:t.payload.nodeId}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.nodeId,e),Object(o.a)({type:m.bb})))))),this.openNewChannel=this.actions$.pipe(Object(r.d)(p.N),Object(c.a)(t=>(this.store.dispatch(new p.e("SaveNewChannel")),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API,t.payload.feeRate&&t.payload.feeRate>0?{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private,fundingFeerateSatByte:t.payload.feeRate}:{nodeId:t.payload.nodeId,fundingSatoshis:t.payload.amount,channelFlags:+!t.payload.private}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new p.A),this.store.dispatch(new p.y),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Channel Added Successfully!")),{type:p.l})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(o.a)({type:m.bb}))))))),this.updateChannel=this.actions$.pipe(Object(r.d)(p.wb),Object(c.a)(t=>{let e="?feeBaseMsat="+t.payload.baseFeeMsat+"&feeProportionalMillionths="+t.payload.feeRate;return e=t.payload.channelIds?e+"&channelIds="+t.payload.channelIds:e+"&channelId="+t.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API+"/updateRelayFee"+e,{}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new m.E(t.payload.channelIds?"Channels Updated Successfully.":"Channel Updated Successfully!")),{type:p.l})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Update Channel Failed",this.CHILD_API_URL+d.b.CHANNELS_API,t),Object(o.a)({type:m.bb}))))})),this.closeChannel=this.actions$.pipe(Object(r.d)(p.c),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.CHANNELS_API+"?channelId="+t.payload.channelId+"&force="+t.payload.force).pipe(Object(h.a)(e=>(this.logger.info(e),setTimeout(()=>{this.store.dispatch(new m.i),this.store.dispatch(new p.u({fetchPayments:!1})),this.store.dispatch(new m.E(t.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"))},2e3),{type:m.bb})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_API,t),Object(o.a)({type:m.bb})))))),this.queryRoutesFetch=this.actions$.pipe(Object(r.d)(p.D),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount).pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.ib,payload:t})),Object(u.a)(e=>(this.store.dispatch(new p.vb([])),this.handleErrorWithAlert("ERROR","Get Query Routes Failed",this.CHILD_API_URL+d.b.PAYMENTS_API+"/route?nodeId="+t.payload.nodeId+"&amountMsat="+t.payload.amount,e),Object(o.a)({type:m.bb})))))),this.setQueryRoutes=this.actions$.pipe(Object(r.d)(p.ib),Object(h.a)(t=>t.payload)),this.sendPayment=this.actions$.pipe(Object(r.d)(p.R),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new p.e("SendPayment")),this.httpClient.post(this.CHILD_API_URL+d.b.PAYMENTS_API,t.payload).pipe(Object(h.a)(e=>{if(this.logger.info(e),e.error){this.store.dispatch(new m.i),this.logger.error("Error: "+e.payment_error);const n={status:e.payment_error.status,error:e.payment_error.error&&e.payment_error.error.error&&"object"==typeof e.payment_error.error.error?e.payment_error.error.error:{error:e.payment_error.error&&e.payment_error.error.error?e.payment_error.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API,n),Object(o.a)({type:m.bb})}return setTimeout(()=>{this.store.dispatch(new p.ob(e)),this.store.dispatch(new m.i),this.store.dispatch(new p.u({fetchPayments:!0})),this.store.dispatch(new p.z),this.store.dispatch(new m.E("Payment Submitted!"))},3e3),{type:m.bb}}),Object(u.a)(e=>{this.logger.error("Error: "+JSON.stringify(e));const n={status:e.status,error:e.error&&e.error.error&&"object"==typeof e.error.error?e.error.error:{error:e.error&&e.error.error?e.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API,n),Object(o.a)({type:m.bb})}))))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(p.t),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchTransactions")),this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),Object(h.a)(t=>(this.logger.info(t),{type:p.jb,payload:t&&t.length>0?t:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(o.a)({type:m.bb})))),this.SendOnchainFunds=this.actions$.pipe(Object(r.d)(p.P),Object(c.a)(t=>(this.store.dispatch(new p.e("SendOnchainFunds")),this.httpClient.post(this.CHILD_API_URL+d.b.ON_CHAIN_API,t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new p.y),{type:p.Q,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SendOnchainFunds","Sending Fund Failed.",t),Object(o.a)({type:m.bb}))))))),this.createInvoice=this.actions$.pipe(Object(r.d)(p.d),Object(c.a)(t=>(this.store.dispatch(new p.e("CreateInvoice")),this.httpClient.post(this.CHILD_API_URL+d.b.INVOICES_API,t.payload).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),e.amount=t.payload.amountMsat,e.timestamp=(new Date).getTime()/1e3,e.timestampStr=this.commonService.convertTimestampToDate(+e.timestamp),e.expiresAt=Math.round(e.timestamp+t.payload.expireIn),e.expiresAtStr=this.commonService.convertTimestampToDate(+e.expiresAt),e.description=t.payload.description,e.status="unpaid",this.store.dispatch(new m.C({data:{invoice:e,newlyAdded:!1,component:b.a}})),{type:p.p})),Object(u.a)(t=>(this.handleErrorWithoutAlert("CreateInvoice","Create Invoice Failed.",t),Object(o.a)({type:m.bb}))))))),this.invoicesFetch=this.actions$.pipe(Object(r.d)(p.p),Object(c.a)(t=>(this.store.dispatch(new p.e("FetchInvoices")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:p.ab,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(o.a)({type:m.bb}))))))),this.peerLookup=this.actions$.pipe(Object(r.d)(p.H),Object(c.a)(t=>(this.store.dispatch(new p.e("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/nodes/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:p.cb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new p.k({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Peer Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/nodes/"+t.payload,e),Object(o.a)({type:m.bb}))))))),this.setLookup=this.actions$.pipe(Object(r.d)(p.cb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.store.select("ecl").pipe(Object(l.a)(this.unSubs[0])).subscribe(t=>{"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>4&&(t.initialAPIResponseStatus[0]="COMPLETE",this.store.dispatch(new m.i))})}initializeRemainingData(t,e){this.sessionService.setItem("eclUnlocked","true");const n={identity_pubkey:t.nodeId,alias:t.alias,testnet:"testnet"===t.network,chains:t.publicAddresses,uris:t.uris,version:t.version,currency_unit:"BTC",smaller_currency_unit:"Sats",numberOfPendingChannels:0};this.store.dispatch(new m.F("Initializing Node Data...")),this.store.dispatch(new m.T(n)),this.store.dispatch(new p.u({fetchPayments:!0})),this.store.dispatch(new p.v),this.store.dispatch(new p.y),this.store.dispatch(new p.A);let i=this.location.path();i.includes("/lnd/")?i=i.replace("/lnd/","/ecl/"):i.includes("/cl/")&&(i=i.replace("/cl/","/ecl/")),(i.includes("/login")||i.includes("/error")||""===i||"HOME"===e||i.includes("?access-key="))&&(i="/ecl/home"),this.router.navigate([i])}handleErrorWithoutAlert(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new p.k({action:t,code:n.status.toString(),message:n.error&&n.error.error&&"string"==typeof n.error.error?n.error.error:e})))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new m.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error&&i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:f.a}})))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(g.Zb(r.a),g.Zb(_.b),g.Zb(y.h),g.Zb(v.a),g.Zb(w.b),g.Zb(x.a),g.Zb(C.g),g.Zb(S.j))},t.\u0275prov=g.Lb({token:t,factory:t.\u0275fac}),Object(i.a)([Object(r.b)()],t.prototype,"infoFetchECL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFees",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchPayments",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelStatsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchOnchainBalance",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peersFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getNewAddress",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setNewAddress",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewPeer",void 0),Object(i.a)([Object(r.b)()],t.prototype,"detachPeer",void 0),Object(i.a)([Object(r.b)()],t.prototype,"openNewChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"updateChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"closeChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"queryRoutesFetch",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setQueryRoutes",void 0),Object(i.a)([Object(r.b)()],t.prototype,"sendPayment",void 0),Object(i.a)([Object(r.b)()],t.prototype,"transactionsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"SendOnchainFunds",void 0),Object(i.a)([Object(r.b)()],t.prototype,"createInvoice",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoicesFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peerLookup",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setLookup",void 0),t})()},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},DLvh:function(t,e,n){"use strict";var i,r=e,s=n("fZJM"),o=n("QTa/"),a=n("86MQ").assert;function c(t){this.curve="short"===t.type?new o.short(t):"edwards"===t.type?new o.edwards(t):new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var n=new c(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=n("QJsb")}catch(h){i=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},DaRl:function(t,e,n){"use strict";var i=n("2j6C"),r=n("P7XM"),s={};function o(t){i.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}r(e,t);for(var n=Object.keys(s),i=0;i<n.length;i++){var o=n[i];e.prototype[o]=s[o]}return e.create=function(t){return new e(t)},e},s._cbcInit=function(){var t=new o(this.options.iv);this._cbcState=t},s._update=function(t,e,n,i){var r=this.constructor.super_.prototype,s=this._cbcState.iv;if("encrypt"===this.type){for(var o=0;o<this.blockSize;o++)s[o]^=t[e+o];for(r._update.call(this,s,0,n,i),o=0;o<this.blockSize;o++)s[o]=n[i+o]}else{for(r._update.call(this,t,e,n,i),o=0;o<this.blockSize;o++)n[i+o]^=s[o];for(o=0;o<this.blockSize;o++)s[o]=t[e+o]}}},Dxy4:function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"b",function(){return f});var i=n("UhP/"),r=n("omvX"),s=n("8Y7J"),o=n("YEUz");const a=["mat-button",""],c=["*"],l=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const u=Object(i.x)(Object(i.z)(Object(i.y)(h)));let d=(()=>{class t extends u{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 l)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)(s.Pb(s.l),s.Pb(o.h),s.Pb(r.a,8))},t.\u0275cmp=s.Jb({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){if(1&t&&s.Pc(i.r,!0),2&t){let t;s.vc(t=s.ec())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(s.Eb("disabled",e.disabled||null),s.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[s.Ab],attrs:a,ngContentSelectors:c,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&&(s.nc(),s.Vb(0,"span",0),s.mc(1),s.Ub(),s.Qb(2,"span",1),s.Qb(3,"span",2)),2&t&&(s.Db(2),s.Hb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),s.oc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.r],styles:[".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}.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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[i.s,i.i],i.i]}),t})()},DyzK:function(t,e,n){var i=n("Ku4m"),r=n("9GDS"),s=n("g9U9"),o=n("AQYT"),a=n("qVij"),c=n("mObS"),l=n("UpF+"),h=n("hwdV").Buffer;t.exports=function(t,e,n){var u;u=t.padding?t.padding:n?1:4;var d,f=i(t),p=f.modulus.byteLength();if(e.length>p||new o(e).cmp(f.modulus)>=0)throw new Error("decryption error");d=n?l(new o(e),f):a(e,f);var m=h.alloc(p-d.length);if(d=h.concat([m,d],p),4===u)return function(t,e){var n=t.modulus.byteLength(),i=c("sha1").update(h.alloc(0)).digest(),o=i.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,o+1),l=e.slice(o+1),u=s(a,r(l,o)),d=s(l,r(u,n-o-1));if(function(t,e){t=h.from(t),e=h.from(e);var n=0,i=t.length;t.length!==e.length&&(n++,i=Math.min(t.length,e.length));for(var r=-1;++r<i;)n+=t[r]^e[r];return n}(i,d.slice(0,o)))throw new Error("decryption error");for(var f=o;0===d[f];)f++;if(1!==d[f++])throw new Error("decryption error");return d.slice(f)}(f,d);if(1===u)return function(t,e,n){for(var i=e.slice(0,2),r=2,s=0;0!==e[r++];)if(r>=e.length){s++;break}var o=e.slice(2,r-1);if(("0002"!==i.toString("hex")&&!n||"0001"!==i.toString("hex")&&n)&&s++,o.length<8&&s++,s)throw new Error("decryption error");return e.slice(r)}(0,d,n);if(3===u)return d;throw new Error("unknown padding")}},"E+IA":function(t,e,n){"use strict";var i=n("w8CP"),r=n("7ckf"),s=n("qlaj"),o=i.rotl32,a=i.sum32,c=i.sum32_5,l=s.ft_1,h=r.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,h),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=o(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var r=this.h[0],s=this.h[1],h=this.h[2],d=this.h[3],f=this.h[4];for(i=0;i<n.length;i++){var p=~~(i/20),m=c(o(r,5),l(p,s,h,d),f,n[i],u[p]);f=d,d=h,h=o(s,30),s=r,r=m}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],h),this.h[3]=a(this.h[3],d),this.h[4]=a(this.h[4],f)},d.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},ELBg:function(t,e,n){"use strict";var i={single_source_shortest_paths:function(t,e,n){var r={},s={};s[e]=0;var o,a,c,l,h,u,d=i.PriorityQueue.make();for(d.push(e,0);!d.empty();)for(c in l=(o=d.pop()).cost,h=t[a=o.value]||{})h.hasOwnProperty(c)&&(u=l+h[c],(void 0===s[c]||s[c]>u)&&(s[c]=u,d.push(c,u),r[c]=a));if(void 0!==n&&void 0===s[n]){var f=["Could not find a path from ",e," to ",n,"."].join("");throw new Error(f)}return r},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],i=e;i;)n.push(i),i=t[i];return n.reverse(),n},find_path:function(t,e,n){var r=i.single_source_shortest_paths(t,e,n);return i.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(t){var e,n=i.PriorityQueue,r={};for(e in t=t||{},n)n.hasOwnProperty(e)&&(r[e]=n[e]);return r.queue=[],r.sorter=t.sorter||n.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=i},EW2V:function(t,e,n){t.exports=n("tOiH")},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return s});var i=n("HDdC");const r=new i.a(t=>t.complete());function s(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):r}},Edxu:function(t,e,n){"use strict";var i=65536,r=n("hwdV").Buffer,s=global.crypto||global.msCrypto;t.exports=s&&s.getRandomValues?function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var n=r.allocUnsafe(t);if(t>0)if(t>i)for(var o=0;o<t;o+=i)s.getRandomValues(n.slice(o,o+i));else s.getRandomValues(n);return"function"==typeof e?process.nextTick(function(){e(null,n)}):n}:function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},F12H:function(t,e,n){"use strict";n.d(e,"a",function(){return O});var i=n("mrSG"),r=n("7bNT"),s=n("XNiG"),o=n("LRne"),a=n("zp1y"),c=n("5+tZ"),l=n("1G5W"),h=n("lJxs"),u=n("JIr8"),d=n("AytR"),f=n("+zbs"),p=n("V8Fa"),m=n("7nzP"),b=n("/uX3"),g=n("MCVq"),_=n("8Y7J"),y=n("IheW"),v=n("tqRt"),w=n("cpEJ"),x=n("7o2P"),C=n("mZtN"),S=n("iELJ"),E=n("iInd"),k=n("SVse");let O=(()=>{class t{constructor(t,e,n,i,p,_,y,v,w){this.actions$=t,this.httpClient=e,this.store=n,this.logger=i,this.commonService=p,this.sessionService=_,this.dialog=y,this.router=v,this.location=w,this.CHILD_API_URL=d.a+"/lnd",this.unSubs=[new s.a,new s.a],this.infoFetch=this.actions$.pipe(Object(r.d)(g.t),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new g.i("FetchInfo")),this.httpClient.get(this.CHILD_API_URL+d.b.GETINFO_API).pipe(Object(l.a)(this.actions$.pipe(Object(r.d)(b.O))),Object(h.a)(e=>(this.logger.info(e),e.identity_pubkey?(e.lnImplementation="LND",this.initializeRemainingData(e,t.payload.loadPage),{type:g.Eb,payload:e||{}}):(this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:g.Eb,payload:{}}))),Object(u.a)(t=>("string"==typeof t.error.error&&t.error.error.includes("Not Found")||502===t.status?(this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t)):(this.router.navigate(["/error"],{state:{errorCode:t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.status?t.status:"",errorMessage:(t.error.message?t.error.message+" ":"")+(t.error.error&&t.error.error.error&&t.error.error.error.error&&t.error.error.error.error.error&&"string"==typeof t.error.error.error.error.error?t.error.error.error.error.error:t.error.error&&t.error.error.error&&t.error.error.error.error&&"string"==typeof t.error.error.error.error?t.error.error.error.error:t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error.error&&"string"==typeof t.error.error?t.error.error:"string"==typeof t.error?t.error:"Unknown Error")}}),this.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t)),Object(o.a)({type:b.bb}))))))),this.peersFetch=this.actions$.pipe(Object(r.d)(g.y),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchPeers")),this.httpClient.get(this.CHILD_API_URL+d.b.PEERS_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Lb,payload:t||[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPeers","Fetching Peers Failed.",t),Object(o.a)({type:b.bb}))))))),this.saveNewPeer=this.actions$.pipe(Object(r.d)(g.sb),Object(a.a)(this.store.select("lnd")),Object(c.a)(([t,e])=>(this.store.dispatch(new g.i("SaveNewPeer")),this.httpClient.post(this.CHILD_API_URL+d.b.PEERS_API,{pubkey:t.payload.pubkey,host:t.payload.host,perm:t.payload.perm}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new g.ac(t&&t.length>0?t:[])),{type:g.db,payload:{peer:t[0]}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(o.a)({type:b.bb}))))))),this.detachPeer=this.actions$.pipe(Object(r.d)(g.k),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.pubkey).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new b.i),this.store.dispatch(new b.E("Peer Disconnected Successfully.")),{type:g.ib,payload:{pubkey:t.payload.pubkey}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.pubkey,e),Object(o.a)({type:b.bb})))))),this.saveNewInvoice=this.actions$.pipe(Object(r.d)(g.rb),Object(c.a)(t=>(this.store.dispatch(new g.i("SaveNewInvoice")),this.httpClient.post(this.CHILD_API_URL+d.b.INVOICES_API,{memo:t.payload.memo,amount:t.payload.invoiceValue,private:t.payload.private,expiry:t.payload.expiry}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new g.I({num_max_invoices:t.payload.pageSize,reversed:!0})),t.payload.openModal?(e.memo=t.payload.memo,e.value=t.payload.invoiceValue,e.expiry=t.payload.expiry,e.cltv_expiry="144",e.private=t.payload.private,e.creation_date=Math.round((new Date).getTime()/1e3).toString(),e.creation_date_str=this.commonService.convertTimestampToDate(+e.creation_date),this.store.dispatch(new b.i),{type:b.y,payload:{data:{invoice:e,newlyAdded:!0,component:f.a}}}):{type:g.eb,payload:{paymentRequest:e.payment_request}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewInvoice","Add Invoice Failed.",t),Object(o.a)({type:b.bb}))))))),this.openNewChannel=this.actions$.pipe(Object(r.d)(g.qb),Object(c.a)(t=>(this.store.dispatch(new g.i("SaveNewChannel")),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API,{node_pubkey:t.payload.selectedPeerPubkey,local_funding_amount:t.payload.fundingAmount,private:t.payload.private,trans_type:t.payload.transType,trans_type_value:t.payload.transTypeValue,spend_unconfirmed:t.payload.spendUnconfirmed}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new g.D("blockchain")),this.store.dispatch(new g.C),this.store.dispatch(new g.d({channelPoint:"ALL",showMessage:"Channel Added Successfully!"})),{type:g.z})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(o.a)({type:b.bb}))))))),this.updateChannel=this.actions$.pipe(Object(r.d)(g.fc),Object(c.a)(t=>this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API+"/chanPolicy",{baseFeeMsat:t.payload.baseFeeMsat,feeRate:t.payload.feeRate,timeLockDelta:t.payload.timeLockDelta,chanPoint:t.payload.chanPoint}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new b.i),this.store.dispatch(new b.E("all"===t.payload.chanPoint?"All Channels Updated Successfully.":"Channel Updated Successfully!")),{type:g.o})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Update Channel Failed",this.CHILD_API_URL+d.b.CHANNELS_API+"/chanPolicy",t),Object(o.a)({type:b.bb})))))),this.closeChannel=this.actions$.pipe(Object(r.d)(g.g),Object(c.a)(t=>{let e=this.CHILD_API_URL+d.b.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly;return t.payload.targetConf&&(e=e+"&target_conf="+t.payload.targetConf),t.payload.satPerByte&&(e=e+"&sat_per_byte="+t.payload.satPerByte),this.httpClient.delete(e).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new b.i),this.store.dispatch(new g.D("channels")),this.store.dispatch(new g.D("blockchain")),this.store.dispatch(new g.C),this.store.dispatch(t.payload.forcibly?new g.N:new g.E),this.store.dispatch(new g.d({channelPoint:"ALL",showMessage:"Channel Closed Successfully!"})),{type:g.hb,payload:{channelPoint:t.payload.channelPoint}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_API+"/"+t.payload.channelPoint+"?force="+t.payload.forcibly,e),Object(o.a)({type:b.bb}))))})),this.backupChannels=this.actions$.pipe(Object(r.d)(g.b),Object(c.a)(t=>(this.store.dispatch(new g.i("BackupChannels")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new b.i),this.store.dispatch(new b.E(t.payload.showMessage+" "+e.message)),{type:g.c,payload:e.message})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"BackupChannels",code:e.status,message:e.error.error})),this.handleErrorWithAlert("ERROR",t.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/"+t.payload.channelPoint,e),Object(o.a)({type:b.bb}))))))),this.verifyChannels=this.actions$.pipe(Object(r.d)(g.ic),Object(c.a)(t=>(this.store.dispatch(new g.i("VerifyChannels")),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,{}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new b.E(t.message)),{type:g.jc,payload:t.message})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"VerifyChannels",code:e.status,message:e.error.error})),this.handleErrorWithAlert("ERROR","Unable to Verify Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/verify/"+t.payload.channelPoint,e),Object(o.a)({type:b.bb}))))))),this.restoreChannels=this.actions$.pipe(Object(r.d)(g.lb),Object(c.a)(t=>(this.store.dispatch(new g.i("RestoreChannels")),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,{}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new b.E(t.message)),this.store.dispatch(new g.cc(t.list)),{type:g.mb,payload:t.message})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"RestoreChannels",code:e.status,message:e.error.error})),this.handleErrorWithAlert("ERROR","Unable to Restore Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/restore/"+t.payload.channelPoint,e),Object(o.a)({type:b.bb}))))))),this.fetchFees=this.actions$.pipe(Object(r.d)(g.r),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchFees")),this.httpClient.get(this.CHILD_API_URL+d.b.FEES_API))),Object(h.a)(t=>(this.logger.info(t),t.forwarding_events_history&&(this.store.dispatch(new g.Yb(t.forwarding_events_history)),delete t.forwarding_events_history),{type:g.Bb,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(o.a)({type:b.bb})))),this.balanceFetch=this.actions$.pipe(Object(r.d)(g.p),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchBalance/"+t.payload)),this.httpClient.get(this.CHILD_API_URL+d.b.BALANCE_API+"/"+t.payload).pipe(Object(h.a)(e=>("channels"===t.payload&&this.store.dispatch(new g.D("blockchain")),this.logger.info(e),{type:g.wb,payload:e?{target:t.payload,balance:e}:{target:t.payload,balance:"channels"===t.payload?{balance:"",btc_balance:""}:{total_balance:"",btc_total_balance:""}}})),Object(u.a)(e=>(this.handleErrorWithoutAlert("FetchBalance/"+t.payload,"Fetching"+this.commonService.titleCase(t.payload)+" Balance Failed.",e),Object(o.a)({type:b.bb}))))))),this.networkInfoFetch=this.actions$.pipe(Object(r.d)(g.w),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchNetwork")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/info"))),Object(h.a)(t=>(this.logger.info(t),{type:g.Ib,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchNetwork","Fetching Network Failed.",t),Object(o.a)({type:b.bb})))),this.channelsAllFetch=this.actions$.pipe(Object(r.d)(g.o),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchChannels/all")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.vb,payload:t&&t.channels&&t.channels.length>0?t.channels:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels/all","Fetching All Channels Failed.",t),Object(o.a)({type:b.bb}))))))),this.channelsPendingFetch=this.actions$.pipe(Object(r.d)(g.z),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchChannels/pending")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/pending").pipe(Object(h.a)(t=>{this.logger.info(t);let e={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return t&&(e.total_limbo_balance=t.total_limbo_balance,t.pending_closing_channels&&(e.closing.num_channels=t.pending_closing_channels.length,e.total_channels=e.total_channels+t.pending_closing_channels.length,t.pending_closing_channels.forEach(t=>{e.closing.limbo_balance=+e.closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.pending_force_closing_channels&&(e.force_closing.num_channels=t.pending_force_closing_channels.length,e.total_channels=e.total_channels+t.pending_force_closing_channels.length,t.pending_force_closing_channels.forEach(t=>{e.force_closing.limbo_balance=+e.force_closing.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.pending_open_channels&&(e.open.num_channels=t.pending_open_channels.length,e.total_channels=e.total_channels+t.pending_open_channels.length,t.pending_open_channels.forEach(t=>{e.open.limbo_balance=+e.open.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)})),t.waiting_close_channels&&(e.waiting_close.num_channels=t.waiting_close_channels.length,e.total_channels=e.total_channels+t.waiting_close_channels.length,t.waiting_close_channels.forEach(t=>{e.waiting_close.limbo_balance=+e.waiting_close.limbo_balance+(t.channel.local_balance?+t.channel.local_balance:0)}))),{type:g.Mb,payload:t?{channels:t,pendingChannels:e}:{channels:{},pendingChannels:e}}}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels/pending","Fetching Pending Channels Failed.",t),Object(o.a)({type:b.bb}))))))),this.channelsClosedFetch=this.actions$.pipe(Object(r.d)(g.q),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchChannels/closed")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/closed").pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Ab,payload:t&&t.channels&&t.channels.length>0?t.channels:[]}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels/closed","Fetching Closed Channels Failed.",t),Object(o.a)({type:b.bb})))))))),this.invoicesFetch=this.actions$.pipe(Object(r.d)(g.u),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchInvoices")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe(Object(h.a)(e=>(this.logger.info(e),t.payload.reversed&&!t.payload.index_offset&&this.store.dispatch(new g.dc(+e.last_index_offset)),{type:g.Fb,payload:e})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(o.a)({type:b.bb}))))))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(g.A),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchTransactions")),this.httpClient.get(this.CHILD_API_URL+d.b.TRANSACTIONS_API))),Object(h.a)(t=>(this.logger.info(t),{type:g.Qb,payload:t&&t.length>0?t:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(o.a)({type:b.bb})))),this.utxosFetch=this.actions$.pipe(Object(r.d)(g.B),Object(a.a)(this.store.select("lnd")),Object(c.a)(([t,e])=>(this.store.dispatch(new g.i("FetchUTXOs")),this.httpClient.get(this.CHILD_API_URL+d.b.WALLET_API+"/getUTXOs?max_confs="+(e.information&&e.information.block_height?e.information.block_height:1e9)))),Object(h.a)(t=>(this.logger.info(t),{type:g.Rb,payload:t&&t.length>0?t:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchUTXOs","Fetching UTXOs Failed.",t),Object(o.a)({type:b.bb})))),this.paymentsFetch=this.actions$.pipe(Object(r.d)(g.x),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchPayments")),this.httpClient.get(this.CHILD_API_URL+d.b.PAYMENTS_API))),Object(h.a)(t=>(this.logger.info(t),{type:g.Kb,payload:t||[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(o.a)({type:b.bb})))),this.sendPayment=this.actions$.pipe(Object(r.d)(g.tb),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>{this.store.dispatch(new g.i("SendPayment"));let n={};return t.payload.outgoingChannel&&(n.outgoingChannel=t.payload.outgoingChannel.chan_id),t.payload.allowSelfPayment&&(n.allowSelfPayment=t.payload.allowSelfPayment),t.payload.lastHopPubkey&&(n.lastHopPubkey=t.payload.lastHopPubkey),t.payload.feeLimitType&&t.payload.feeLimitType!==m.i[0]&&(n.feeLimit={},n.feeLimit[t.payload.feeLimitType.id]=t.payload.feeLimit),t.payload.zeroAmtInvoice?n.paymentDecoded=t.payload.paymentDecoded:n.paymentReq=t.payload.paymentReq,this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API+"/transactions",n).pipe(Object(h.a)(e=>{if(this.logger.info(e),e.payment_error){if(t.payload.allowSelfPayment)return this.store.dispatch(new g.I({num_max_invoices:m.n,reversed:!0})),{type:g.ub,payload:e};{this.logger.error("Error: "+e.payment_error);const n={status:e.payment_error.status,error:e.payment_error.error&&e.payment_error.error.error&&"object"==typeof e.payment_error.error.error?e.payment_error.error.error:{error:e.payment_error.error&&e.payment_error.error.error?e.payment_error.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.CHANNELS_API+"/transactions",n),Object(o.a)({type:b.bb})}}if(this.store.dispatch(new g.C),this.store.dispatch(new g.D("channels")),this.store.dispatch(new g.L),t.payload.allowSelfPayment)this.store.dispatch(new g.I({num_max_invoices:m.n,reversed:!0}));else{this.store.dispatch(new b.i);let t="Payment Sent Successfully.";e.payment_route&&e.payment_route.total_fees_msat&&(t="Payment sent successfully with the total fee "+e.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch(new b.E(t))}return{type:g.ub,payload:e}}),Object(u.a)(e=>{if(t.payload.allowSelfPayment)return this.store.dispatch(new g.I({num_max_invoices:m.n,reversed:!0})),Object(o.a)({type:g.ub,payload:e});{this.logger.error("Error: "+JSON.stringify(e));const n={status:e.status,error:e.error&&e.error.error&&"object"==typeof e.error.error?e.error.error:{error:e.error&&e.error.error?e.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.CHANNELS_API+"/transactions",n),Object(o.a)({type:b.bb})}}))})),this.graphNodeFetch=this.actions$.pipe(Object(r.d)(g.s),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchGraphNode")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/node/"+t.payload.pubkey).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Db,payload:t&&t.node?{node:t.node}:{node:null}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchGraphNode","Fetching Graph Node Failed.",t),Object(o.a)({type:b.bb}))))))),this.setGraphNode=this.actions$.pipe(Object(r.d)(g.Db),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.getNewAddress=this.actions$.pipe(Object(r.d)(g.T),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.NEW_ADDRESS_API+"?type="+t.payload.addressId).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Jb,payload:t&&t.address?t.address:{}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Generate New Address Failed",this.CHILD_API_URL+d.b.NEW_ADDRESS_API+"?type="+t.payload.addressId,e),Object(o.a)({type:b.bb})))))),this.setNewAddress=this.actions$.pipe(Object(r.d)(g.Jb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.SetChannelTransaction=this.actions$.pipe(Object(r.d)(g.xb),Object(c.a)(t=>(this.store.dispatch(new g.i("SetChannelTransaction")),this.httpClient.post(this.CHILD_API_URL+d.b.TRANSACTIONS_API,{amount:t.payload.amount,address:t.payload.address,sendAll:t.payload.sendAll,fees:t.payload.fees,blocks:t.payload.blocks}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new g.O),this.store.dispatch(new g.D("blockchain")),{type:g.yb,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SetChannelTransaction","Sending Fund Failed.",t),Object(o.a)({type:b.bb}))))))),this.fetchForwardingHistory=this.actions$.pipe(Object(r.d)(g.S),Object(c.a)(t=>(this.store.dispatch(new g.i("GetForwardingHistory")),this.httpClient.post(this.CHILD_API_URL+d.b.SWITCH_API,{num_max_events:t.payload.num_max_events,index_offset:t.payload.index_offset,end_time:t.payload.end_time,start_time:t.payload.start_time}).pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Cb,payload:t})),Object(u.a)(t=>(this.store.dispatch(new g.n({action:"GetForwardingHistory",code:t.status,message:t.error.error})),this.handleErrorWithAlert("ERROR","Get Forwarding History Failed",this.CHILD_API_URL+d.b.SWITCH_API,t),Object(o.a)({type:b.bb}))))))),this.queryRoutesFetch=this.actions$.pipe(Object(r.d)(g.U),Object(c.a)(t=>{let e=this.CHILD_API_URL+d.b.NETWORK_API+"/routes/"+t.payload.destPubkey+"/"+t.payload.amount;return t.payload.outgoingChanId&&(e=e+"?outgoing_chan_id="+t.payload.outgoingChanId),this.httpClient.get(e).pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Nb,payload:t})),Object(u.a)(t=>(this.store.dispatch(new g.bc({})),this.handleErrorWithAlert("ERROR","Get Query Routes Failed",this.CHILD_API_URL+d.b.NETWORK_API,t),Object(o.a)({type:b.bb}))))})),this.setQueryRoutes=this.actions$.pipe(Object(r.d)(g.Nb),Object(h.a)(t=>t.payload)),this.genSeed=this.actions$.pipe(Object(r.d)(g.Q),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.WALLET_API+"/genseed/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info("Generated GenSeed!"),this.logger.info(t),this.store.dispatch(new b.i),{type:g.R,payload:t.cipher_seed_mnemonic})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Genseed Generation Failed",this.CHILD_API_URL+d.b.WALLET_API+"/genseed/"+t.payload,e),Object(o.a)({type:b.bb})))))),this.updateSelNodeOptions=this.actions$.pipe(Object(r.d)(b.Y),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.WALLET_API+"/updateSelNodeOptions").pipe(Object(h.a)(t=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(t),this.store.dispatch(new b.i),{type:b.bb})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",t),Object(o.a)({type:b.bb})))))),this.genSeedResponse=this.actions$.pipe(Object(r.d)(g.R),Object(h.a)(t=>t.payload)),this.initWalletRes=this.actions$.pipe(Object(r.d)(g.ab),Object(h.a)(t=>t.payload)),this.initWallet=this.actions$.pipe(Object(r.d)(g.Z),Object(c.a)(t=>this.httpClient.post(this.CHILD_API_URL+d.b.WALLET_API+"/wallet/initwallet",{wallet_password:t.payload.pwd,cipher_seed_mnemonic:t.payload.cipher?t.payload.cipher:"",aezeed_passphrase:t.payload.passphrase?t.payload.passphrase:""}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.ab,payload:t})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Wallet Initialization Failed",this.CHILD_API_URL+d.b.WALLET_API+"/initwallet",t),Object(o.a)({type:b.bb})))))),this.unlockWallet=this.actions$.pipe(Object(r.d)(g.ec),Object(c.a)(t=>this.httpClient.post(this.CHILD_API_URL+d.b.WALLET_API+"/wallet/unlockwallet",{wallet_password:t.payload.pwd}).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),this.store.dispatch(new b.F("Initializing Node...")),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),setTimeout(()=>{this.store.dispatch(new b.i),this.logger.info("Successfully Initialized!"),this.store.dispatch(new g.H({loadPage:"HOME"}))},5e3),{type:b.bb})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Unlock Wallet Failed",this.CHILD_API_URL+d.b.WALLET_API+"/unlockwallet",t),Object(o.a)({type:b.bb})))))),this.peerLookup=this.actions$.pipe(Object(r.d)(g.fb),Object(c.a)(t=>(this.store.dispatch(new g.i("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/node/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Gb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Peer Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/node/"+t.payload,e),Object(o.a)({type:b.bb}))))))),this.channelLookup=this.actions$.pipe(Object(r.d)(g.e),Object(c.a)(t=>(this.store.dispatch(new g.i("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/edge/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Gb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Channel Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/edge/"+t.payload,e),this.store.dispatch(new g.Zb({})),Object(o.a)({type:b.bb}))))))),this.invoiceLookup=this.actions$.pipe(Object(r.d)(g.bb),Object(c.a)(t=>(this.store.dispatch(new g.i("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API+"/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Gb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new g.n({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Invoice Lookup Failed",this.CHILD_API_URL+d.b.INVOICES_API+"/"+t.payload,e),Object(o.a)({type:b.bb}))))))),this.setLookup=this.actions$.pipe(Object(r.d)(g.Gb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.getRestoreChannelList=this.actions$.pipe(Object(r.d)(g.kb),Object(c.a)(t=>(this.store.dispatch(new g.i("RestoreChannelsList")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API+"/restore/list").pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.i),{type:g.Ob,payload:t||{all_restore_exists:!1,files:[]}})),Object(u.a)(t=>(this.store.dispatch(new g.n({action:"RestoreChannelsList",code:t.status,message:t.error.message})),this.handleErrorWithAlert("ERROR","Restore Channels List Failed",this.CHILD_API_URL+d.b.CHANNELS_BACKUP_API,t),Object(o.a)({type:b.bb}))))))),this.setRestoreChannelList=this.actions$.pipe(Object(r.d)(g.Ob),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.getLoopSwaps=this.actions$.pipe(Object(r.d)(g.v),Object(c.a)(t=>(this.store.dispatch(new g.i("FetchSwaps")),this.httpClient.get(this.CHILD_API_URL+d.b.LOOP_API+"/swaps").pipe(Object(h.a)(t=>(this.logger.info(t),{type:g.Hb,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchSwaps","Fetching Swaps Failed.",t),Object(o.a)({type:b.bb}))))))),this.store.select("lnd").pipe(Object(l.a)(this.unSubs[0])).subscribe(t=>{"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>8&&(t.initialAPIResponseStatus[0]="COMPLETE",this.store.dispatch(new b.i))})}initializeRemainingData(t,e){if(this.sessionService.setItem("lndUnlocked","true"),t.chains){if("string"==typeof t.chains[0])t.smaller_currency_unit=t.chains[0].toString().toLowerCase().indexOf("bitcoin")<0?m.g.LITOSHIS:m.g.SATS,t.currency_unit=t.chains[0].toString().toLowerCase().indexOf("bitcoin")<0?m.g.LTC:m.g.BTC;else if("object"==typeof t.chains[0]&&t.chains[0].hasOwnProperty("chain")){const e=t.chains[0];t.smaller_currency_unit=e.chain.toLowerCase().indexOf("bitcoin")<0?m.g.LITOSHIS:m.g.SATS,t.currency_unit=e.chain.toLowerCase().indexOf("bitcoin")<0?m.g.LTC:m.g.BTC}t.version=t.version?t.version.split(" ")[0]:""}else t.smaller_currency_unit=m.g.SATS,t.currency_unit=m.g.BTC,t.version=t.version?t.version.split(" ")[0]:"";const n={identity_pubkey:t.identity_pubkey,alias:t.alias,testnet:t.testnet,chains:t.chains,uris:t.uris,version:t.version,currency_unit:t.currency_unit,smaller_currency_unit:t.smaller_currency_unit};this.store.dispatch(new b.F("Initializing Node Data...")),this.store.dispatch(new b.T(n)),this.store.dispatch(new g.M),this.store.dispatch(new g.D("channels")),this.store.dispatch(new g.K),this.store.dispatch(new g.C),this.store.dispatch(new g.N),this.store.dispatch(new g.E),this.store.dispatch(new g.I({num_max_invoices:10,reversed:!0})),this.store.dispatch(new g.L),this.store.dispatch(new g.F);let i=this.location.path();i.includes("/cl/")?i=i.replace("/cl/","/lnd/"):i.includes("/ecl/")&&(i=i.replace("/ecl/","/lnd/")),(i.includes("/unlock")||i.includes("/login")||i.includes("/error")||""===i||"HOME"===e||i.includes("?access-key="))&&(i="/lnd/home"),this.router.navigate([i])}handleErrorWithoutAlert(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new b.g),this.store.dispatch(new b.x),this.store.dispatch(new b.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new b.i),this.store.dispatch(new g.n({action:t,code:n.status.toString(),message:n.error.error&&n.error.error.error&&n.error.error.error.error&&n.error.error.error.error.error&&"string"==typeof n.error.error.error.error.error?n.error.error.error.error.error:n.error.error&&n.error.error.error&&n.error.error.error.error&&"string"==typeof n.error.error.error.error?n.error.error.error.error:n.error.error&&n.error.error.error&&"string"==typeof n.error.error.error?n.error.error.error:n.error.error&&"string"==typeof n.error.error?n.error.error:"string"==typeof n.error?n.error:e})))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new b.g),this.store.dispatch(new b.x),this.store.dispatch(new b.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new b.i),this.store.dispatch(new b.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.error&&"string"==typeof i.error.error.error.error.error?i.error.error.error.error.error:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:p.a}})))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(_.Zb(r.a),_.Zb(y.b),_.Zb(v.h),_.Zb(w.b),_.Zb(x.a),_.Zb(C.a),_.Zb(S.c),_.Zb(E.g),_.Zb(k.j))},t.\u0275prov=_.Lb({token:t,factory:t.\u0275fac}),Object(i.a)([Object(r.b)()],t.prototype,"infoFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peersFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewPeer",void 0),Object(i.a)([Object(r.b)()],t.prototype,"detachPeer",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewInvoice",void 0),Object(i.a)([Object(r.b)()],t.prototype,"openNewChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"updateChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"closeChannel",void 0),Object(i.a)([Object(r.b)()],t.prototype,"backupChannels",void 0),Object(i.a)([Object(r.b)()],t.prototype,"verifyChannels",void 0),Object(i.a)([Object(r.b)()],t.prototype,"restoreChannels",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFees",void 0),Object(i.a)([Object(r.b)()],t.prototype,"balanceFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"networkInfoFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsAllFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsPendingFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsClosedFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoicesFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"transactionsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"utxosFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"paymentsFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"sendPayment",void 0),Object(i.a)([Object(r.b)()],t.prototype,"graphNodeFetch",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setGraphNode",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getNewAddress",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setNewAddress",void 0),Object(i.a)([Object(r.b)()],t.prototype,"SetChannelTransaction",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchForwardingHistory",void 0),Object(i.a)([Object(r.b)()],t.prototype,"queryRoutesFetch",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setQueryRoutes",void 0),Object(i.a)([Object(r.b)()],t.prototype,"genSeed",void 0),Object(i.a)([Object(r.b)()],t.prototype,"updateSelNodeOptions",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"genSeedResponse",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"initWalletRes",void 0),Object(i.a)([Object(r.b)()],t.prototype,"initWallet",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"unlockWallet",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peerLookup",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelLookup",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoiceLookup",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setLookup",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getRestoreChannelList",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setRestoreChannelList",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getLoopSwaps",void 0),t})()},FUXG:function(t,e,n){"use strict";e.utils=n("Xudb"),e.Cipher=n("AYSA"),e.DES=n("Titl"),e.CBC=n("DaRl"),e.EDE=n("H+yo")},GS7A:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return p}),n.d(e,"i",function(){return c}),n.d(e,"j",function(){return h}),n.d(e,"k",function(){return l}),n.d(e,"l",function(){return d}),n.d(e,"m",function(){return o}),n.d(e,"n",function(){return g}),n.d(e,"o",function(){return _});class i{}class r{}const s="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:2,steps:t,options:e}}function l(t){return{type:6,styles:t,offset:null}}function h(t,e,n){return{type:0,name:t,styles:e,options:n}}function u(t){return{type:5,steps:t}}function d(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function f(t=null){return{type:9,options:t}}function p(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,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(){m(()=>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){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class g{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?m(()=>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(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}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}}const _="!"},Giow:function(t,e,n){"use strict";var i=n("P7XM"),r=n("1CSz"),s=n("ZDAU"),o=n("hwdV").Buffer,a=n("WnY+"),c=n("tcrS"),l=n("afKu"),h=o.alloc(128);function u(t,e){s.call(this,"digest"),"string"==typeof e&&(e=o.from(e));var n="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>n?e=("rmd160"===t?new c:l(t)).update(e).digest():e.length<n&&(e=o.concat([e,h],n));for(var i=this._ipad=o.allocUnsafe(n),r=this._opad=o.allocUnsafe(n),a=0;a<n;a++)i[a]=54^e[a],r[a]=92^e[a];this._hash="rmd160"===t?new c:l(t),this._hash.update(i)}i(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new u("rmd160",e):"md5"===t?new r(a,e):new u(t,e)}},GyhO:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("LRne"),r=n("0EUg");function s(...t){return Object(r.a)()(Object(i.a)(...t))}},"H+yo":function(t,e,n){"use strict";var i=n("2j6C"),r=n("P7XM"),s=n("AYSA"),o=n("Titl");function a(t,e){i.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),r=e.slice(8,16),s=e.slice(16,24);this.ciphers="encrypt"===t?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:r}),o.create({type:"encrypt",key:s})]:[o.create({type:"decrypt",key:s}),o.create({type:"encrypt",key:r}),o.create({type:"decrypt",key:n})]}function c(t){s.call(this,t);var e=new a(this.type,this.options.key);this._edeState=e}r(c,s),t.exports=c,c.create=function(t){return new c(t)},c.prototype._update=function(t,e,n,i){var r=this._edeState;r.ciphers[0]._update(t,e,n,i),r.ciphers[1]._update(n,i,n,i),r.ciphers[2]._update(n,i,n,i)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},H7XF:function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[1];return 3*(e[0]+n)/4-n},e.toByteArray=function(t){var e,n,i=l(t),o=i[0],a=i[1],c=new s(function(t,e,n){return 3*(e+n)/4-n}(0,o,a)),h=0,u=a>0?o-4:o;for(n=0;n<u;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[h++]=e>>16&255,c[h++]=e>>8&255,c[h++]=255&e;return 2===a&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[h++]=255&e),1===a&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[h++]=e>>8&255,c[h++]=255&e),c},e.fromByteArray=function(t){for(var e,n=t.length,r=n%3,s=[],o=16383,a=0,c=n-r;a<c;a+=o)s.push(h(t,a,a+o>c?c:a+o));return 1===r?s.push(i[(e=t[n-1])>>2]+i[e<<4&63]+"=="):2===r&&s.push(i[(e=(t[n-2]<<8)+t[n-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),s.join("")};for(var i=[],r=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a<c;++a)i[a]=o[a],r[o.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function h(t,e,n){for(var r,s=[],o=e;o<n;o+=3)s.push(i[(r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]))>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("7o/Q"),r=n("2QA8"),s=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),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:o}=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(s.a)}(t,e,n);if(a.add(o?o.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=h(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)}[o.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=h(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},HEbw:function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n("Edxu"),e.createHash=e.Hash=n("mObS"),e.createHmac=e.Hmac=n("Giow");var i=n("EW2V"),r=Object.keys(i),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);e.getHashes=function(){return s};var o=n("oJl4");e.pbkdf2=o.pbkdf2,e.pbkdf2Sync=o.pbkdf2Sync;var a=n("lWpZ");e.Cipher=a.Cipher,e.createCipher=a.createCipher,e.Cipheriv=a.Cipheriv,e.createCipheriv=a.createCipheriv,e.Decipher=a.Decipher,e.createDecipher=a.createDecipher,e.Decipheriv=a.Decipheriv,e.createDecipheriv=a.createDecipheriv,e.getCiphers=a.getCiphers,e.listCiphers=a.listCiphers;var c=n("ANxK");e.DiffieHellmanGroup=c.DiffieHellmanGroup,e.createDiffieHellmanGroup=c.createDiffieHellmanGroup,e.getDiffieHellman=c.getDiffieHellman,e.createDiffieHellman=c.createDiffieHellman,e.DiffieHellman=c.DiffieHellman;var l=n("tpL1");e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=n("4dMO");var h=n("ZEK9");e.publicEncrypt=h.publicEncrypt,e.privateEncrypt=h.privateEncrypt,e.publicDecrypt=h.publicDecrypt,e.privateDecrypt=h.privateDecrypt;var u=n("dcwN");e.randomFill=u.randomFill,e.randomFillSync=u.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},HeVh:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return C}),n.d(e,"c",function(){return b});var i=n("8Y7J"),r=n("8LU1"),s=n("XNiG"),o=n("itXk"),a=n("GyhO"),c=n("HDdC"),l=n("IzEk"),h=n("zP0r"),u=n("Kj3r"),d=n("lJxs"),f=n("JX91"),p=n("1G5W"),m=n("SCoL");let b=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})();const g=new Set;let _,y=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):v}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!g.has(t))try{_||(_=document.createElement("style"),_.setAttribute("type","text/css"),document.head.appendChild(_)),_.sheet&&(_.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),g.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(m.a))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(m.a))},token:t,providedIn:"root"}),t})();function v(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let w=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new s.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return x(Object(r.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=x(Object(r.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(o.b)(e);return n=Object(a.a)(n.pipe(Object(l.a)(1)),n.pipe(Object(h.a)(1),Object(u.a)(0))),n.pipe(Object(d.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(f.a)(e),Object(d.a)(({matches:e})=>({query:t,matches:e})),Object(p.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(y),i.Zb(i.B))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(y),Object(i.Zb)(i.B))},token:t,providedIn:"root"}),t})();function x(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const C={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},Hjy1:function(t,e,n){var i=n("ZDAU"),r=n("FUXG"),s=n("P7XM"),o=n("hwdV").Buffer,a={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function c(t){i.call(this);var e,n=t.mode.toLowerCase(),r=a[n];e=t.decrypt?"decrypt":"encrypt";var s=t.key;o.isBuffer(s)||(s=o.from(s)),"des-ede"!==n&&"des-ede-cbc"!==n||(s=o.concat([s,s.slice(0,8)]));var c=t.iv;o.isBuffer(c)||(c=o.from(c)),this._des=r.create({key:s,iv:c,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=c,s(c,i),c.prototype._update=function(t){return o.from(this._des.update(t))},c.prototype._final=function(){return o.from(this._des.final())}},"Ht+U":function(t,e,n){"use strict";n.d(e,"a",function(){return _}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return m}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return s}),n.d(e,"f",function(){return o}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return d}),n.d(e,"i",function(){return g}),n.d(e,"j",function(){return l}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return p}),n.d(e,"m",function(){return a}),n.d(e,"n",function(){return r}),n.d(e,"o",function(){return f}),n.d(e,"p",function(){return y}),n.d(e,"q",function(){return b}),n.d(e,"r",function(){return v});const i=8,r=9,s=13,o=27,a=32,c=33,l=34,h=35,u=36,d=37,f=38,p=39,m=40,b=48,g=57,_=65,y=90;function v(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},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},IG1u:function(t,e,n){var i,r=n("hwdV").Buffer,s=n("fSpj"),o=n("n53Y"),a=n("4Hv8"),c=n("i+bA"),l=global.crypto&&global.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u=[];function d(t,e,n,i,s){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then(function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:s}},t,i<<3)}).then(function(t){return r.from(t)})}t.exports=function(t,e,n,f,p,m){"function"==typeof p&&(m=p,p=void 0);var b=h[(p=p||"sha1").toLowerCase()];if(!b||"function"!=typeof global.Promise)return process.nextTick(function(){var i;try{i=a(t,e,n,f,p)}catch(r){return m(r)}m(null,i)});if(s(n,f),t=c(t,o,"Password"),e=c(e,o,"Salt"),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then(function(t){process.nextTick(function(){e(null,t)})},function(t){process.nextTick(function(){e(t)})})}(function(t){if(global.process&&!global.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==u[t])return u[t];var e=d(i=i||r.alloc(8),i,10,128,t).then(function(){return!0}).catch(function(){return!1});return u[t]=e,e}(b).then(function(i){return i?d(t,e,n,f,b):a(t,e,n,f,p)}),m)}},IPZY:function(t,e,n){"use strict";const i=e;i.der=n("z71Z"),i.pem=n("jfd1")},ITfd:function(t,e,n){"use strict";var i=n("w8CP"),r=n("2j6C");function s(t,e,n){if(!(this instanceof s))return new s(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,n))}t.exports=s,s.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),r(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},s.prototype.update=function(t,e){return this.inner.update(t,e),this},s.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},IheW:function(t,e,n){"use strict";n.d(e,"a",function(){return A}),n.d(e,"b",function(){return k}),n.d(e,"c",function(){return B}),n.d(e,"d",function(){return m});var i=n("8Y7J"),r=n("LRne"),s=n("HDdC"),o=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("SVse");class h{}class u{}class d{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 d?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 d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?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 f{encodeKey(t){return p(t)}encodeValue(t){return p(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function p(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 m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,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,s]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(r)||[];o.push(s),n.set(r,o)}),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 m({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 b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function g(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{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 d),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 m,this.urlWithParams=e}serializeBody(){return null===this.body?null:b(this.body)||g(this.body)||_(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?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||_(this.body)?null:g(this.body)?this.body.type||null:b(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"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,s=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=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 y(e,n,r,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:s})}}var v=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 w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,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 x extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new x({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 C extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({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 S extends w{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 k=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof y)i=t;else{let r=void 0;r=n.headers instanceof d?n.headers:new d(n.headers);let s=void 0;n.params&&(s=n.params instanceof m?n.params:new m({fromObject:n.params})),i=new y(t,e,void 0!==n.body?n.body:null,{headers:r,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(r.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===n.observe)return s;const l=s.pipe(Object(a.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.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 l.pipe(Object(c.a)(t=>t.body))}case"response":return l;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 m).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.Zb(h))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();class O{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const A=new i.s("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const I=/^\)\]\}',?\n/;class T{}let L=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{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 s.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 s=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",s=new d(n.getAllResponseHeaders()),o=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 x({headers:s,status:e,statusText:i,url:o}),r},o=()=>{let{headers:i,status:r,statusText:o,url:a}=s(),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(I,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=t,l&&(l=!1,c={error:h,text:c})}}l?(e.next(new C({body:c,headers:i,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new S({error:c,headers:i,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=s(),r=new S({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(s()),c=!0);let r={type:v.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&n.responseText&&(r.partialText=n.responseText),e.next(r)},h=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",l),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(T))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const R=new i.s("XSRF_COOKIE_NAME"),M=new i.s("XSRF_HEADER_NAME");class j{}let F=(()=>{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(l.F)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(l.d),i.Zb(i.D),i.Zb(R))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),N=(()=>{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.Zb(j),i.Zb(M))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{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(A,[]);this.chain=t.reduceRight((t,e)=>new O(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(u),i.Zb(i.t))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:N,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[N,{provide:A,useExisting:N,multi:!0},{provide:j,useClass:F},{provide:R,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),t})(),B=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[k,{provide:h,useClass:V},P,{provide:u,useExisting:P},L,{provide:T,useExisting:L}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},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}}}},Iqt3:function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n("tjlA").Buffer,o=n(2).inspect,a=o&&o.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e;return(e=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e=s.allocUnsafe(t>>>0),n=this.head,i=0;n;)s.prototype.copy.call(n.data,e,i),i+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,i=e.data;for(t-=i.length;e=e.next;){var r=e.data,s=t>r.length?r.length:t;if(i+=s===r.length?r:r.slice(0,t),0==(t-=s)){s===r.length?(++n,this.head=e.next?e.next:this.tail=null):(this.head=e,e.data=r.slice(s));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var r=n.data,o=t>r.length?r.length:t;if(r.copy(e,e.length-t,0,o),0==(t-=o)){o===r.length?(++i,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=r.slice(o));break}++i}return this.length-=i,e}},{key:a,value:function(t,e){return o(this,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},e,{depth:0,customInspect:!1}))}}])&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,e),t}()},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q"),r=n("4I5i"),s=n("EY2u");function o(t){return e=>0===t?Object(s.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new r.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends i.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()))}}},IzUq:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},J6Nv:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},J78i:function(t,e,n){"use strict";t.exports=o;var i=n("sZro"),r=Object.create(n("Onz0"));function s(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);i.call(this,t),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",a)}function a(){var t=this;"function"==typeof this._flush?this._flush(function(e,n){c(t,e,n)}):c(this,null,null)}function c(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}r.inherits=n("P7XM"),r.inherits(o,i),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,i.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;i.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},J9en:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n("HEbw"))&&"object"==typeof i&&"default"in i?i.default:i;e.createDigest=(t,e,n)=>r.createHmac(t,Buffer.from(e,"hex")).update(Buffer.from(n,"hex")).digest().toString("hex"),e.createRandomBytes=(t,e)=>r.randomBytes(t).toString(e)},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("zx2A");function r(t){return function(e){const n=new s(t),i=e.lift(n);return n.caught=i}}class s{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends i.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 r=new i.a(this);this.add(r);const s=Object(i.c)(n,r);s!==r&&this.add(s)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("GyhO"),r=n("z+Ro");function s(...t){const e=t[t.length-1];return Object(r.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},JzKC:function(t,e,n){var i=n("Wogr"),r=n("aZ40");e.mul=function(t,e){var n=new i(t.length+e.length-1);n.fill(0);for(var s=0;s<t.length;s++)for(var o=0;o<e.length;o++)n[s+o]^=r.mul(t[s],e[o]);return n},e.mod=function(t,e){for(var n=new i(t);n.length-e.length>=0;){for(var s=n[0],o=0;o<e.length;o++)n[o]^=r.mul(e[o],s);for(var a=0;a<n.length&&0===n[a];)a++;n=n.slice(a)}return n},e.generateECPolynomial=function(t){for(var n=new i([1]),s=0;s<t;s++)n=e.mul(n,[1,r.exp(s)]);return n}},KAEN:function(t){t.exports=JSON.parse('{"_from":"elliptic@^6.5.3","_id":"elliptic@6.5.3","_inBundle":false,"_integrity":"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"elliptic@^6.5.3","name":"elliptic","escapedName":"elliptic","rawSpec":"^6.5.3","saveSpec":null,"fetchSpec":"^6.5.3"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz","_shasum":"cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6","_spec":"elliptic@^6.5.3","_where":"C:\\\\Workspace\\\\RTL\\\\node_modules\\\\browserify-sign","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"bundleDependencies":false,"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"deprecated":false,"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.3"}')},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q"),r=n("D0XW");function s(t,e=r.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends i.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(c,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 c(t){t.debouncedNext()}},Kqap:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new s(t,e,n))}}class s{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new o(t,this.accumulator,this.seed,this.hasSeed))}}class o extends i.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)}}},Ku4m:function(t,e,n){var i=n("QRH4"),r=n("1w4i"),s=n("TdD3"),o=n("/ab2"),a=n("oJl4"),c=n("hwdV").Buffer;function l(t){var e;"object"!=typeof t||c.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=c.from(t));var n,l,h=s(t,e),u=h.tag,d=h.data;switch(u){case"CERTIFICATE":l=i.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=i.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=i.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=r[t.algorithm.decrypt.cipher.algo.join(".")],l=t.algorithm.decrypt.cipher.iv,h=t.subjectPrivateKey,u=parseInt(s.split("-")[1],10)/8,d=a.pbkdf2Sync(e,n,i,u,"sha1"),f=o.createDecipheriv(s,d,l),p=[];return p.push(f.update(h)),p.push(f.final()),c.concat(p)}(d=i.EncryptedPrivateKey.decode(d,"der"),e);case"PRIVATE KEY":switch(n=(l=i.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:i.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=i.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=i.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+u)}}t.exports=l,l.signature=i.signature},"Kz+i":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("J9en"),r=n("fkiA"),s=n("g9mE");const o=new s.HOTP({createDigest:i.createDigest}),a=new s.TOTP({createDigest:i.createDigest}),c=new s.Authenticator({createDigest:i.createDigest,createRandomBytes:i.createRandomBytes,keyDecoder:r.keyDecoder,keyEncoder:r.keyEncoder});e.authenticator=c,e.hotp=o,e.totp=a},LGOv:function(t,e,n){t.exports=n("3BRs")},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("z+Ro"),r=n("yCtX"),s=n("jZKg");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(s.a)(t,e)):Object(r.a)(t)}},LUZP:function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return E}),n.d(e,"c",function(){return k});var i=n("8Y7J"),r=n("8LU1"),s=n("UhP/"),o=n("Ht+U"),a=n("XNiG"),c=n("VRyK"),l=n("GS7A"),h=n("SVse"),u=n("YEUz");const d=["mat-sort-header",""];function f(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",3),i.dc("@arrowPosition.start",function(){return i.zc(t),i.hc()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.zc(t),i.hc()._disableViewStateAnimation=!1}),i.Qb(1,"div",4),i.Vb(2,"div",5),i.Qb(3,"div",6),i.Qb(4,"div",7),i.Qb(5,"div",8),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.oc("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),i.Db(2),i.oc("@indicator",t._getArrowDirectionState()),i.Db(1),i.oc("@leftPointer",t._getArrowDirectionState()),i.Db(1),i.oc("@rightPointer",t._getArrowDirectionState())}}const p=["*"];class m{}const b=Object(s.B)(Object(s.z)(m));let g=(()=>{class t extends b{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new a.a,this.start="asc",this._direction="",this.sortChange=new i.o}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(r.c)(t)}register(t){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 _(e||t)},t.\u0275dir=i.Kb({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 _=i.Xb(g),y=s.b.ENTERING+" "+s.a.STANDARD_CURVE,v={indicator:Object(l.m)("indicator",[Object(l.j)("active-asc, asc",Object(l.k)({transform:"translateY(0px)"})),Object(l.j)("active-desc, desc",Object(l.k)({transform:"translateY(10px)"})),Object(l.l)("active-asc <=> active-desc",Object(l.e)(y))]),leftPointer:Object(l.m)("leftPointer",[Object(l.j)("active-asc, asc",Object(l.k)({transform:"rotate(-45deg)"})),Object(l.j)("active-desc, desc",Object(l.k)({transform:"rotate(45deg)"})),Object(l.l)("active-asc <=> active-desc",Object(l.e)(y))]),rightPointer:Object(l.m)("rightPointer",[Object(l.j)("active-asc, asc",Object(l.k)({transform:"rotate(45deg)"})),Object(l.j)("active-desc, desc",Object(l.k)({transform:"rotate(-45deg)"})),Object(l.l)("active-asc <=> active-desc",Object(l.e)(y))]),arrowOpacity:Object(l.m)("arrowOpacity",[Object(l.j)("desc-to-active, asc-to-active, active",Object(l.k)({opacity:1})),Object(l.j)("desc-to-hint, asc-to-hint, hint",Object(l.k)({opacity:.54})),Object(l.j)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Object(l.k)({opacity:0})),Object(l.l)("* => asc, * => desc, * => active, * => hint, * => void",Object(l.e)("0ms")),Object(l.l)("* <=> *",Object(l.e)(y))]),arrowPosition:Object(l.m)("arrowPosition",[Object(l.l)("* => desc-to-hint, * => desc-to-active",Object(l.e)(y,Object(l.g)([Object(l.k)({transform:"translateY(-25%)"}),Object(l.k)({transform:"translateY(0)"})]))),Object(l.l)("* => hint-to-desc, * => active-to-desc",Object(l.e)(y,Object(l.g)([Object(l.k)({transform:"translateY(0)"}),Object(l.k)({transform:"translateY(25%)"})]))),Object(l.l)("* => asc-to-hint, * => asc-to-active",Object(l.e)(y,Object(l.g)([Object(l.k)({transform:"translateY(25%)"}),Object(l.k)({transform:"translateY(0)"})]))),Object(l.l)("* => hint-to-asc, * => active-to-asc",Object(l.e)(y,Object(l.g)([Object(l.k)({transform:"translateY(0)"}),Object(l.k)({transform:"translateY(-25%)"})]))),Object(l.j)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Object(l.k)({transform:"translateY(0)"})),Object(l.j)("hint-to-desc, active-to-desc, desc",Object(l.k)({transform:"translateY(-25%)"})),Object(l.j)("hint-to-asc, active-to-asc, asc",Object(l.k)({transform:"translateY(25%)"}))]),allowChildren:Object(l.m)("allowChildren",[Object(l.l)("* <=> *",[Object(l.h)("@*",Object(l.f)(),{optional:!0})])])};let w=(()=>{class t{constructor(){this.changes=new a.a,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const x={provide:w,deps:[[new i.C,new i.M,w]],useFactory:function(t){return t||new w}};class C{}const S=Object(s.z)(C);let E=(()=>{class t extends S{constructor(t,e,n,i,r,s){super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=r,this._elementRef=s,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=Object(c.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=Object(r.c)(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()||t.keyCode!==o.m&&t.keyCode!==o.e||(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.Pb(w),i.Pb(i.h),i.Pb(g,8),i.Pb("MAT_SORT_HEADER_COLUMN_DEF",8),i.Pb(u.h),i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&i.dc("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.Hb("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:d,ngContentSelectors:p,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.nc(),i.Vb(0,"div",0),i.Vb(1,"div",1),i.mc(2),i.Ub(),i.Ic(3,f,6,6,"div",2),i.Ub()),2&t&&(i.Hb("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.oc("ngIf",e._renderArrow()))},directives:[h.o],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:[v.indicator,v.leftPointer,v.rightPointer,v.arrowOpacity,v.arrowPosition,v.allowChildren]},changeDetection:0}),t})(),k=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[x],imports:[[h.c,s.i]]}),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()},Lnru:function(t,e,n){"use strict";n.d(e,"a",function(){return Xo}),n.d(e,"b",function(){return Yo}),n.d(e,"c",function(){return la});var i=n("8Y7J"),r=n("SVse"),s=n("GS7A"),o=n("1z/I"),a=n("mrSG"),c=n("xgIS"),l=n("Kj3r");function h(){}var u=function(t){return null==t?h:function(){return this.querySelector(t)}};function d(){return[]}var f=function(t){return null==t?d:function(){return this.querySelectorAll(t)}},p=function(t){return function(){return this.matches(t)}},m=function(t){return new Array(t.length)};function b(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function g(t,e,n,i,r,s){for(var o,a=0,c=e.length,l=s.length;a<l;++a)(o=e[a])?(o.__data__=s[a],i[a]=o):n[a]=new b(t,s[a]);for(;a<c;++a)(o=e[a])&&(r[a]=o)}function _(t,e,n,i,r,s,o){var a,c,l,h={},u=e.length,d=s.length,f=new Array(u);for(a=0;a<u;++a)(c=e[a])&&(f[a]=l="$"+o.call(c,c.__data__,a,e),l in h?r[a]=c:h[l]=c);for(a=0;a<d;++a)(c=h[l="$"+o.call(t,s[a],a,s)])?(i[a]=c,c.__data__=s[a],h[l]=null):n[a]=new b(t,s[a]);for(a=0;a<u;++a)(c=e[a])&&h[f[a]]===c&&(r[a]=c)}function y(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}b.prototype={constructor:b,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var v="http://www.w3.org/1999/xhtml",w={svg:"http://www.w3.org/2000/svg",xhtml:v,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},x=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),w.hasOwnProperty(e)?{space:w[e],local:t}:t};function C(t){return function(){this.removeAttribute(t)}}function S(t){return function(){this.removeAttributeNS(t.space,t.local)}}function E(t,e){return function(){this.setAttribute(t,e)}}function k(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function O(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function A(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var D=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function I(t){return function(){this.style.removeProperty(t)}}function T(t,e,n){return function(){this.style.setProperty(t,e,n)}}function L(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function P(t,e){return t.style.getPropertyValue(e)||D(t).getComputedStyle(t,null).getPropertyValue(e)}function R(t){return function(){delete this[t]}}function M(t,e){return function(){this[t]=e}}function j(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function F(t){return t.trim().split(/^|\s+/)}function N(t){return t.classList||new V(t)}function V(t){this._node=t,this._names=F(t.getAttribute("class")||"")}function U(t,e){for(var n=N(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function B(t,e){for(var n=N(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function z(t){return function(){U(this,t)}}function H(t){return function(){B(this,t)}}function W(t,e){return function(){(e.apply(this,arguments)?U:B)(this,t)}}function K(){this.textContent=""}function q(t){return function(){this.textContent=t}}function Y(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Z(){this.innerHTML=""}function X(t){return function(){this.innerHTML=t}}function G(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function $(){this.nextSibling&&this.parentNode.appendChild(this)}function Q(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function J(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===v&&e.documentElement.namespaceURI===v?e.createElement(t):e.createElementNS(n,t)}}function tt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}V.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var et=function(t){var e=x(t);return(e.local?tt:J)(e)};function nt(){return null}function it(){var t=this.parentNode;t&&t.removeChild(this)}function rt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function st(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var ot={},at=null;function ct(t,e,n){return t=lt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function lt(t,e,n){return function(i){var r=at;at=i;try{t.call(this,this.__data__,e,n)}finally{at=r}}}function ht(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function ut(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,s=e.length;i<s;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?e.length=r:delete this.__on}}}function dt(t,e,n){var i=ot.hasOwnProperty(t.type)?ct:lt;return function(r,s,o){var a,c=this.__on,l=i(e,s,o);if(c)for(var h=0,u=c.length;h<u;++h)if((a=c[h]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=l,a.capture=n),void(a.value=e);this.addEventListener(t.type,l,n),a={type:t.type,name:t.name,value:e,listener:l,capture:n},c?c.push(a):this.__on=[a]}}function ft(t,e,n){var i=D(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function pt(t,e){return function(){return ft(this,t,e)}}function mt(t,e){return function(){return ft(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ot={mouseenter:"mouseover",mouseleave:"mouseout"}));var bt=[null];function gt(t,e){this._groups=t,this._parents=e}function _t(){return new gt([[document.documentElement]],bt)}gt.prototype=_t.prototype={constructor:gt,select:function(t){"function"!=typeof t&&(t=u(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o,a=e[r],c=a.length,l=i[r]=new Array(c),h=0;h<c;++h)(s=a[h])&&(o=t.call(s,s.__data__,h,a))&&("__data__"in s&&(o.__data__=s.__data__),l[h]=o);return new gt(i,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=f(t));for(var e=this._groups,n=e.length,i=[],r=[],s=0;s<n;++s)for(var o,a=e[s],c=a.length,l=0;l<c;++l)(o=a[l])&&(i.push(t.call(o,o.__data__,l,a)),r.push(o));return new gt(i,r)},filter:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],a=o.length,c=i[r]=[],l=0;l<a;++l)(s=o[l])&&t.call(s,s.__data__,l,o)&&c.push(s);return new gt(i,this._parents)},data:function(t,e){if(!t)return p=new Array(this.size()),h=-1,this.each(function(t){p[++h]=t}),p;var n,i=e?_:g,r=this._parents,s=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var o=s.length,a=new Array(o),c=new Array(o),l=new Array(o),h=0;h<o;++h){var u=r[h],d=s[h],f=d.length,p=t.call(u,u&&u.__data__,h,r),m=p.length,b=c[h]=new Array(m),y=a[h]=new Array(m);i(u,d,b,y,l[h]=new Array(f),p,e);for(var v,w,x=0,C=0;x<m;++x)if(v=b[x]){for(x>=C&&(C=x+1);!(w=y[C])&&++C<m;);v._next=w||null}}return(a=new gt(a,r))._enter=c,a._exit=l,a},enter:function(){return new gt(this._enter||this._groups.map(m),this._parents)},exit:function(){return new gt(this._exit||this._groups.map(m),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,s=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(r=e(r)),null==n?s.remove():n(s),i&&r?i.merge(r).order():r},merge:function(t){for(var e=this._groups,n=t._groups,i=e.length,r=Math.min(i,n.length),s=new Array(i),o=0;o<r;++o)for(var a,c=e[o],l=n[o],h=c.length,u=s[o]=new Array(h),d=0;d<h;++d)(a=c[d]||l[d])&&(u[d]=a);for(;o<i;++o)s[o]=e[o];return new gt(s,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],s=r.length-1,o=r[s];--s>=0;)(i=r[s])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=y);for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var o,a=n[s],c=a.length,l=r[s]=new Array(c),h=0;h<c;++h)(o=a[h])&&(l[h]=o);l.sort(e)}return new gt(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var o=i[r];if(o)return o}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,s=e[n],o=0,a=s.length;o<a;++o)(r=s[o])&&t.call(r,r.__data__,o,s);return this},attr:function(t,e){var n=x(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?S:C:"function"==typeof e?n.local?A:O:n.local?k:E)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?I:"function"==typeof e?L:T)(t,e,null==n?"":n)):P(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?R:"function"==typeof e?j:M)(t,e)):this.node()[t]},classed:function(t,e){var n=F(t+"");if(arguments.length<2){for(var i=N(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?W:e?z:H)(n,e))},text:function(t){return arguments.length?this.each(null==t?K:("function"==typeof t?Y:q)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Z:("function"==typeof t?G:X)(t)):this.node().innerHTML},raise:function(){return this.each($)},lower:function(){return this.each(Q)},append:function(t){var e="function"==typeof t?t:et(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:et(t),i=null==e?nt:"function"==typeof e?e:u(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(it)},clone:function(t){return this.select(t?st:rt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,s=ht(t+""),o=s.length;if(!(arguments.length<2)){for(a=e?dt:ut,null==n&&(n=!1),i=0;i<o;++i)this.each(a(s[i],e,n));return this}var a=this.node().__on;if(a)for(var c,l=0,h=a.length;l<h;++l)for(i=0,c=a[l];i<o;++i)if((r=s[i]).type===c.type&&r.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?mt:pt)(t,e))}};var yt=_t,vt={value:function(){}};function wt(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new xt(i)}function xt(t){this._=t}function Ct(t,e){return t.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function St(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function Et(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=vt,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}xt.prototype=wt.prototype={constructor:xt,on:function(t,e){var n,i=this._,r=Ct(t+"",i),s=-1,o=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=r[s]).type)i[n]=Et(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Et(i[n],t.name,null);return this}for(;++s<o;)if((n=(t=r[s]).type)&&(n=St(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new xt(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),s=0;s<n;++s)r[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=0,n=(i=this._[t]).length;s<n;++s)i[s].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,s=i.length;r<s;++r)i[r].value.apply(e,n)}};var kt=wt,Ot=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function At(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Dt(){}var It=.7,Tt=1/It,Lt="\\s*([+-]?\\d+)\\s*",Pt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mt=/^#([0-9a-f]{3,8})$/,jt=new RegExp("^rgb\\("+[Lt,Lt,Lt]+"\\)$"),Ft=new RegExp("^rgb\\("+[Rt,Rt,Rt]+"\\)$"),Nt=new RegExp("^rgba\\("+[Lt,Lt,Lt,Pt]+"\\)$"),Vt=new RegExp("^rgba\\("+[Rt,Rt,Rt,Pt]+"\\)$"),Ut=new RegExp("^hsl\\("+[Pt,Rt,Rt]+"\\)$"),Bt=new RegExp("^hsla\\("+[Pt,Rt,Rt,Pt]+"\\)$"),zt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ht(){return this.rgb().formatHex()}function Wt(){return this.rgb().formatRgb()}function Kt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Mt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?qt(e):3===n?new Gt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Yt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Yt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jt.exec(t))?new Gt(e[1],e[2],e[3],1):(e=Ft.exec(t))?new Gt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Nt.exec(t))?Yt(e[1],e[2],e[3],e[4]):(e=Vt.exec(t))?Yt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ut.exec(t))?te(e[1],e[2]/100,e[3]/100,1):(e=Bt.exec(t))?te(e[1],e[2]/100,e[3]/100,e[4]):zt.hasOwnProperty(t)?qt(zt[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function qt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function Yt(t,e,n,i){return i<=0&&(t=e=n=NaN),new Gt(t,e,n,i)}function Zt(t){return t instanceof Dt||(t=Kt(t)),t?new Gt((t=t.rgb()).r,t.g,t.b,t.opacity):new Gt}function Xt(t,e,n,i){return 1===arguments.length?Zt(t):new Gt(t,e,n,null==i?1:i)}function Gt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function $t(){return"#"+Jt(this.r)+Jt(this.g)+Jt(this.b)}function Qt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Jt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function te(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ne(t,e,n,i)}function ee(t){if(t instanceof ne)return new ne(t.h,t.s,t.l,t.opacity);if(t instanceof Dt||(t=Kt(t)),!t)return new ne;if(t instanceof ne)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,c=(s+r)/2;return a?(o=e===s?(n-i)/a+6*(n<i):n===s?(i-e)/a+2:(e-n)/a+4,a/=c<.5?s+r:2-s-r,o*=60):a=c>0&&c<1?0:o,new ne(o,a,c,t.opacity)}function ne(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function ie(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function re(t,e,n,i,r){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*i+o*r)/6}Ot(Dt,Kt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Ht,formatHex:Ht,formatHsl:function(){return ee(this).formatHsl()},formatRgb:Wt,toString:Wt}),Ot(Gt,Xt,At(Dt,{brighter:function(t){return t=null==t?Tt:Math.pow(Tt,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?It:Math.pow(It,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$t,formatHex:$t,formatRgb:Qt,toString:Qt})),Ot(ne,function(t,e,n,i){return 1===arguments.length?ee(t):new ne(t,e,n,null==i?1:i)},At(Dt,{brighter:function(t){return t=null==t?Tt:Math.pow(Tt,t),new ne(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?It:Math.pow(It,t),new ne(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Gt(ie(t>=240?t-240:t+120,r,i),ie(t,r,i),ie(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var se=function(t){return function(){return t}};function oe(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):se(isNaN(t)?e:t)}var ae=function t(e){var n=function(t){return 1==(t=+t)?oe:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):se(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=Xt(t)).r,(e=Xt(e)).r),r=n(t.g,e.g),s=n(t.b,e.b),o=oe(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=s(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function ce(t){return function(e){var n,i,r=e.length,s=new Array(r),o=new Array(r),a=new Array(r);for(n=0;n<r;++n)i=Xt(e[n]),s[n]=i.r||0,o[n]=i.g||0,a[n]=i.b||0;return s=t(s),o=t(o),a=t(a),i.opacity=1,function(t){return i.r=s(t),i.g=o(t),i.b=a(t),i+""}}}ce(function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],s=t[i+1];return re((n-i/e)*e,i>0?t[i-1]:2*r-s,r,s,i<e-1?t[i+2]:2*s-r)}}),ce(function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e);return re((n-i/e)*e,t[(i+e-1)%e],t[i%e],t[(i+1)%e],t[(i+2)%e])}});var le=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(s){for(n=0;n<i;++n)r[n]=t[n]*(1-s)+e[n]*s;return r}};function he(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,s=new Array(r),o=new Array(i);for(n=0;n<r;++n)s[n]=ye(t[n],e[n]);for(;n<i;++n)o[n]=e[n];return function(t){for(n=0;n<r;++n)o[n]=s[n](t);return o}}var ue,de,fe=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},pe=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},me=function(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=ye(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},be=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ge=new RegExp(be.source,"g"),_e=function(t,e){var n,i,r,s=be.lastIndex=ge.lastIndex=0,o=-1,a=[],c=[];for(t+="",e+="";(n=be.exec(t))&&(i=ge.exec(e));)(r=i.index)>s&&(r=e.slice(s,r),a[o]?a[o]+=r:a[++o]=r),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,c.push({i:o,x:pe(n,i)})),s=ge.lastIndex;return s<e.length&&(r=e.slice(s),a[o]?a[o]+=r:a[++o]=r),a.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,i=0;i<e;++i)a[(n=c[i]).i]=n.x(t);return a.join("")})},ye=function(t,e){var n,i,r=typeof e;return null==e||"boolean"===r?se(e):("number"===r?pe:"string"===r?(n=Kt(e))?(e=n,ae):_e:e instanceof Kt?ae:e instanceof Date?fe:(i=e,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(e)?he:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?me:pe:le))(t,e)},ve=0,we=0,xe=0,Ce=0,Se=0,Ee=0,ke="object"==typeof performance&&performance.now?performance:Date,Oe="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ae(){return Se||(Oe(De),Se=ke.now()+Ee)}function De(){Se=0}function Ie(){this._call=this._time=this._next=null}function Te(t,e,n){var i=new Ie;return i.restart(t,e,n),i}function Le(){Se=(Ce=ke.now())+Ee,ve=we=0;try{!function(){Ae(),++ve;for(var t,e=ue;e;)(t=Se-e._time)>=0&&e._call.call(null,t),e=e._next;--ve}()}finally{ve=0,function(){for(var t,e,n=ue,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ue=e);de=t,Re(i)}(),Se=0}}function Pe(){var t=ke.now(),e=t-Ce;e>1e3&&(Ee-=e,Ce=t)}function Re(t){ve||(we&&(we=clearTimeout(we)),t-Se>24?(t<1/0&&(we=setTimeout(Le,t-ke.now()-Ee)),xe&&(xe=clearInterval(xe))):(xe||(Ce=ke.now(),xe=setInterval(Pe,1e3)),ve=1,Oe(Le)))}Ie.prototype=Te.prototype={constructor:Ie,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ae():+n)+(null==e?0:+e),this._next||de===this||(de?de._next=this:ue=this,de=this),this._call=t,this._time=n,Re()},stop:function(){this._call&&(this._call=null,this._time=1/0,Re())}};var Me=function(t,e,n){var i=new Ie;return i.restart(function(n){i.stop(),t(n+e)},e=null==e?0:+e,n),i},je=kt("start","end","cancel","interrupt"),Fe=[],Ne=function(t,e,n,i,r,s){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function s(c){var l,h,u,d;if(1!==n.state)return a();for(l in r)if((d=r[l]).name===n.name){if(3===d.state)return Me(s);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+l<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[l])}if(Me(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(c))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(u=n.tween.length),l=0,h=-1;l<u;++l)(d=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[++h]=d);i.length=h+1}}function o(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),s=-1,o=i.length;++s<o;)i[s].call(t,r);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var i in n.state=6,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=Te(function(t){n.state=1,n.timer.restart(s,n.delay,n.time),n.delay<=t&&s(t-n.delay)},0,n.time)}(t,n,{name:e,index:i,group:r,on:je,tween:Fe,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})};function Ve(t,e){var n=Be(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function Ue(t,e){var n=Be(t,e);if(n.state>3)throw new Error("too late; already running");return n}function Be(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var ze,He,We,Ke,qe=180/Math.PI,Ye={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ze=function(t,e,n,i,r,s){var o,a,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,c/=a),t*i<e*n&&(t=-t,e=-e,c=-c,o=-o),{translateX:r,translateY:s,rotate:Math.atan2(e,t)*qe,skewX:Math.atan(c)*qe,scaleX:o,scaleY:a}};function Xe(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(s,o){var a=[],c=[];return s=t(s),o=t(o),function(t,i,r,s,o,a){if(t!==r||i!==s){var c=o.push("translate(",null,e,null,n);a.push({i:c-4,x:pe(t,r)},{i:c-2,x:pe(i,s)})}else(r||s)&&o.push("translate("+r+e+s+n)}(s.translateX,s.translateY,o.translateX,o.translateY,a,c),function(t,e,n,s){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),s.push({i:n.push(r(n)+"rotate(",null,i)-2,x:pe(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(s.rotate,o.rotate,a,c),function(t,e,n,s){t!==e?s.push({i:n.push(r(n)+"skewX(",null,i)-2,x:pe(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(s.skewX,o.skewX,a,c),function(t,e,n,i,s,o){if(t!==n||e!==i){var a=s.push(r(s)+"scale(",null,",",null,")");o.push({i:a-4,x:pe(t,n)},{i:a-2,x:pe(e,i)})}else 1===n&&1===i||s.push(r(s)+"scale("+n+","+i+")")}(s.scaleX,s.scaleY,o.scaleX,o.scaleY,a,c),s=o=null,function(t){for(var e,n=-1,i=c.length;++n<i;)a[(e=c[n]).i]=e.x(t);return a.join("")}}}var Ge=Xe(function(t){return"none"===t?Ye:(ze||(ze=document.createElement("DIV"),He=document.documentElement,We=document.defaultView),ze.style.transform=t,t=We.getComputedStyle(He.appendChild(ze),null).getPropertyValue("transform"),He.removeChild(ze),t=t.slice(7,-1).split(","),Ze(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),$e=Xe(function(t){return null==t?Ye:(Ke||(Ke=document.createElementNS("http://www.w3.org/2000/svg","g")),Ke.setAttribute("transform",t),(t=Ke.transform.baseVal.consolidate())?Ze((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Ye)},", ",")",")");function Qe(t,e){var n,i;return function(){var r=Ue(this,t),s=r.tween;if(s!==n)for(var o=0,a=(i=n=s).length;o<a;++o)if(i[o].name===e){(i=i.slice()).splice(o,1);break}r.tween=i}}function Je(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var s=Ue(this,t),o=s.tween;if(o!==i){r=(i=o).slice();for(var a={name:e,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===e){r[c]=a;break}c===l&&r.push(a)}s.tween=r}}function tn(t,e,n){var i=t._id;return t.each(function(){var t=Ue(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Be(t,i).value[e]}}var en=function(t,e){var n;return("number"==typeof e?pe:e instanceof Kt?ae:(n=Kt(e))?(e=n,ae):_e)(t,e)};function nn(t){return function(){this.removeAttribute(t)}}function rn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function sn(t,e,n){var i,r,s=n+"";return function(){var o=this.getAttribute(t);return o===s?null:o===i?r:r=e(i=o,n)}}function on(t,e,n){var i,r,s=n+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===s?null:o===i?r:r=e(i=o,n)}}function an(t,e,n){var i,r,s;return function(){var o,a,c=n(this);if(null!=c)return(o=this.getAttribute(t))===(a=c+"")?null:o===i&&a===r?s:(r=a,s=e(i=o,c));this.removeAttribute(t)}}function cn(t,e,n){var i,r,s;return function(){var o,a,c=n(this);if(null!=c)return(o=this.getAttributeNS(t.space,t.local))===(a=c+"")?null:o===i&&a===r?s:(r=a,s=e(i=o,c));this.removeAttributeNS(t.space,t.local)}}function ln(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function hn(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function un(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&hn(t,r)),n}return r._value=e,r}function dn(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&ln(t,r)),n}return r._value=e,r}function fn(t,e){return function(){Ve(this,t).delay=+e.apply(this,arguments)}}function pn(t,e){return e=+e,function(){Ve(this,t).delay=e}}function mn(t,e){return function(){Ue(this,t).duration=+e.apply(this,arguments)}}function bn(t,e){return e=+e,function(){Ue(this,t).duration=e}}function gn(t,e){if("function"!=typeof e)throw new Error;return function(){Ue(this,t).ease=e}}function _n(t,e,n){var i,r,s=function(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})}(e)?Ve:Ue;return function(){var o=s(this,t),a=o.on;a!==i&&(r=(i=a).copy()).on(e,n),o.on=r}}var yn=yt.prototype.constructor;function vn(t){return function(){this.style.removeProperty(t)}}function wn(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function xn(t,e,n){var i,r;function s(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&wn(t,s,n)),i}return s._value=e,s}function Cn(t){return function(e){this.textContent=t.call(this,e)}}function Sn(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Cn(i)),e}return i._value=t,i}var En=0;function kn(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function On(){return++En}var An=yt.prototype;kn.prototype=(function(t){return yt().transition(t)}).prototype={constructor:kn,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=u(t));for(var i=this._groups,r=i.length,s=new Array(r),o=0;o<r;++o)for(var a,c,l=i[o],h=l.length,d=s[o]=new Array(h),f=0;f<h;++f)(a=l[f])&&(c=t.call(a,a.__data__,f,l))&&("__data__"in a&&(c.__data__=a.__data__),d[f]=c,Ne(d[f],e,n,f,d,Be(a,n)));return new kn(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=f(t));for(var i=this._groups,r=i.length,s=[],o=[],a=0;a<r;++a)for(var c,l=i[a],h=l.length,u=0;u<h;++u)if(c=l[u]){for(var d,p=t.call(c,c.__data__,u,l),m=Be(c,n),b=0,g=p.length;b<g;++b)(d=p[b])&&Ne(d,e,n,b,p,m);s.push(p),o.push(c)}return new kn(s,o,e,n)},filter:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s,o=e[r],a=o.length,c=i[r]=[],l=0;l<a;++l)(s=o[l])&&t.call(s,s.__data__,l,o)&&c.push(s);return new kn(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=Math.min(i,n.length),s=new Array(i),o=0;o<r;++o)for(var a,c=e[o],l=n[o],h=c.length,u=s[o]=new Array(h),d=0;d<h;++d)(a=c[d]||l[d])&&(u[d]=a);for(;o<i;++o)s[o]=e[o];return new kn(s,this._parents,this._name,this._id)},selection:function(){return new yn(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=On(),i=this._groups,r=i.length,s=0;s<r;++s)for(var o,a=i[s],c=a.length,l=0;l<c;++l)if(o=a[l]){var h=Be(o,e);Ne(o,t,n,l,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new kn(i,this._parents,t,n)},call:An.call,nodes:An.nodes,node:An.node,size:An.size,empty:An.empty,each:An.each,on:function(t,e){var n=this._id;return arguments.length<2?Be(this.node(),n).on.on(t):this.each(_n(n,t,e))},attr:function(t,e){var n=x(t),i="transform"===n?$e:en;return this.attrTween(t,"function"==typeof e?(n.local?cn:an)(n,i,tn(this,"attr."+t,e)):null==e?(n.local?rn:nn)(n):(n.local?on:sn)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=x(t);return this.tween(n,(i.local?un:dn)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Ge:en;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var s=P(this,t),o=(this.style.removeProperty(t),P(this,t));return s===o?null:s===n&&o===i?r:r=e(n=s,i=o)}}(t,i)).on("end.style."+t,vn(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,s;return function(){var o=P(this,t),a=n(this),c=a+"";return null==a&&(this.style.removeProperty(t),c=a=P(this,t)),o===c?null:o===i&&c===r?s:(r=c,s=e(i=o,a))}}(t,i,tn(this,"style."+t,e))).each(function(t,e){var n,i,r,s,o="style."+e,a="end."+o;return function(){var c=Ue(this,t),l=c.on,h=null==c.value[o]?s||(s=vn(e)):void 0;l===n&&r===h||(i=(n=l).copy()).on(a,r=h),c.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,s=n+"";return function(){var o=P(this,t);return o===s?null:o===i?r:r=e(i=o,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,xn(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(tn(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Sn(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Be(this.node(),n).tween,s=0,o=r.length;s<o;++s)if((i=r[s]).name===t)return i.value;return null}return this.each((null==e?Qe:Je)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?fn:pn)(e,t)):Be(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?mn:bn)(e,t)):Be(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(gn(e,t)):Be(this.node(),e).ease},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(s,o){var a={value:o},c={value:function(){0==--r&&s()}};n.each(function(){var n=Ue(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),n.on=e})})}};var Dn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function In(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Dn.time=Ae(),Dn;return n}function Tn(t){return{type:t}}yt.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,i,r,s=t.__transition,o=!0;if(s){for(r in e=null==e?null:e+"",s)(n=s[r]).name===e?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete s[r]):o=!1;o&&delete t.__transition}}(this,t)})},yt.prototype.transition=function(t){var e,n;t instanceof kn?(e=t._id,t=t._name):(e=On(),(n=Dn).time=Ae(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,s=0;s<r;++s)for(var o,a=i[s],c=a.length,l=0;l<c;++l)(o=a[l])&&Ne(o,t,e,l,a,n||In(o,e));return new kn(i,this._parents,t,e)},["w","e"].map(Tn),["n","s"].map(Tn),["n","w","e","s","nw","ne","sw","se"].map(Tn);var Ln=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Pn=function(t){let e=t,n=t;function i(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){const s=i+r>>>1;n(t[s],e)<0?i=s+1:r=s}return i}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>Ln(t(e),n)}(t)),{left:i,center:function(t,n,r,s){null==r&&(r=0),null==s&&(s=t.length);const o=i(t,n,r,s-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){const s=i+r>>>1;n(t[s],e)>0?r=s:i=s+1}return i}}},Rn=Math.sqrt(50),Mn=Math.sqrt(10),jn=Math.sqrt(2);function Fn(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),s=i/Math.pow(10,r);return r>=0?(s>=Rn?10:s>=Mn?5:s>=jn?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(s>=Rn?10:s>=Mn?5:s>=jn?2:1)}var Nn=new Date,Vn=new Date;function Un(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,s){var o,a=[];if(n=r.ceil(n),s=null==s?1:Math.floor(s),!(n<i&&s>0))return a;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<i);return a},r.filter=function(n){return Un(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););})},n&&(r.count=function(e,i){return Nn.setTime(+e),Vn.setTime(+i),t(Nn),t(Vn),Math.floor(n(Nn,Vn))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}Un(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()}).every=function(t){return isFinite(t=Math.floor(t))&&t>0?Un(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null},Un(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});var Bn=1e3,zn=6e4,Hn=36e5;function Wn(t){return Un(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zn)/6048e5})}Wn(0),Wn(1),Wn(2),Wn(3),Wn(4),Wn(5),Wn(6),Un(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zn)/864e5,t=>t.getDate()-1),Un(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn-t.getMinutes()*zn)},function(t,e){t.setTime(+t+e*Hn)},function(t,e){return(e-t)/Hn},function(t){return t.getHours()}),Un(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn)},function(t,e){t.setTime(+t+e*zn)},function(t,e){return(e-t)/zn},function(t){return t.getMinutes()}),Un(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Bn)},function(t,e){return(e-t)/Bn},function(t){return t.getUTCSeconds()});var Kn=Un(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Kn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Un(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):Kn:null};var qn=new Date,Yn=new Date;function Zn(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,s){var o,a=[];if(n=r.ceil(n),s=null==s?1:Math.floor(s),!(n<i&&s>0))return a;do{a.push(o=new Date(+n)),e(n,s),t(n)}while(o<n&&n<i);return a},r.filter=function(n){return Zn(function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););})},n&&(r.count=function(e,i){return qn.setTime(+e),Yn.setTime(+i),t(qn),t(Yn),Math.floor(n(qn,Yn))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var Xn=864e5,Gn=6048e5;function $n(t){return Zn(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/Gn})}var Qn=$n(0),Jn=$n(1),ti=($n(2),$n(3),$n(4)),ei=($n(5),$n(6),Zn(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Xn},function(t){return t.getUTCDate()-1}));function ni(t){return Zn(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Gn})}var ii=ni(0),ri=ni(1),si=(ni(2),ni(3),ni(4)),oi=(ni(5),ni(6),Zn(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/Xn},function(t){return t.getDate()-1})),ai=Zn(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});ai.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null};var ci=ai,li=Zn(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});li.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Zn(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null};var hi=li;var ui={"-":"",_:" ",0:"0"},di=/[\\^$*+?|[\]().{}]/g;function fi(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",s=r.length;return i+(s<n?new Array(n-s+1).join(e)+r:r)}function pi(t){return t.replace(di,"\\$&")}function mi(t){return new RegExp("^(?:"+t.map(pi).join("|")+")","i")}function bi(t){for(var e={},n=-1,i=t.length;++n<i;)e[t[n].toLowerCase()]=n;return e}function gi(t,e){return fi(t.getDate(),e,2)}function _i(t,e){return fi(t.getHours(),e,2)}function yi(t,e){return fi(t.getHours()%12||12,e,2)}function vi(t,e){return fi(1+oi.count(ci(t),t),e,3)}function wi(t,e){return fi(t.getMilliseconds(),e,3)}function xi(t,e){return wi(t,e)+"000"}function Ci(t,e){return fi(t.getMonth()+1,e,2)}function Si(t,e){return fi(t.getMinutes(),e,2)}function Ei(t,e){return fi(t.getSeconds(),e,2)}function ki(t){var e=t.getDay();return 0===e?7:e}function Oi(t,e){return fi(ii.count(ci(t)-1,t),e,2)}function Ai(t){var e=t.getDay();return e>=4||0===e?si(t):si.ceil(t)}function Di(t,e){return t=Ai(t),fi(si.count(ci(t),t)+(4===ci(t).getDay()),e,2)}function Ii(t){return t.getDay()}function Ti(t,e){return fi(ri.count(ci(t)-1,t),e,2)}function Li(t,e){return fi(t.getFullYear()%100,e,2)}function Pi(t,e){return fi((t=Ai(t)).getFullYear()%100,e,2)}function Ri(t,e){return fi(t.getFullYear()%1e4,e,4)}function Mi(t,e){var n=t.getDay();return fi((t=n>=4||0===n?si(t):si.ceil(t)).getFullYear()%1e4,e,4)}function ji(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+fi(e/60|0,"0",2)+fi(e%60,"0",2)}function Fi(t,e){return fi(t.getUTCDate(),e,2)}function Ni(t,e){return fi(t.getUTCHours(),e,2)}function Vi(t,e){return fi(t.getUTCHours()%12||12,e,2)}function Ui(t,e){return fi(1+ei.count(hi(t),t),e,3)}function Bi(t,e){return fi(t.getUTCMilliseconds(),e,3)}function zi(t,e){return Bi(t,e)+"000"}function Hi(t,e){return fi(t.getUTCMonth()+1,e,2)}function Wi(t,e){return fi(t.getUTCMinutes(),e,2)}function Ki(t,e){return fi(t.getUTCSeconds(),e,2)}function qi(t){var e=t.getUTCDay();return 0===e?7:e}function Yi(t,e){return fi(Qn.count(hi(t)-1,t),e,2)}function Zi(t){var e=t.getUTCDay();return e>=4||0===e?ti(t):ti.ceil(t)}function Xi(t,e){return t=Zi(t),fi(ti.count(hi(t),t)+(4===hi(t).getUTCDay()),e,2)}function Gi(t){return t.getUTCDay()}function $i(t,e){return fi(Jn.count(hi(t)-1,t),e,2)}function Qi(t,e){return fi(t.getUTCFullYear()%100,e,2)}function Ji(t,e){return fi((t=Zi(t)).getUTCFullYear()%100,e,2)}function tr(t,e){return fi(t.getUTCFullYear()%1e4,e,4)}function er(t,e){var n=t.getUTCDay();return fi((t=n>=4||0===n?ti(t):ti.ceil(t)).getUTCFullYear()%1e4,e,4)}function nr(){return"+0000"}function ir(){return"%"}function rr(t){return+t}function sr(t){return Math.floor(+t/1e3)}!function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,c=t.shortMonths,l=(mi(r),bi(r),mi(s),bi(s),mi(o),bi(o),mi(a),bi(a),mi(c),bi(c),{a:function(t){return o[t.getDay()]},A:function(t){return s[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:gi,e:gi,f:xi,g:Pi,G:Mi,H:_i,I:yi,j:vi,L:wi,m:Ci,M:Si,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:rr,s:sr,S:Ei,u:ki,U:Oi,V:Di,w:Ii,W:Ti,x:null,X:null,y:Li,Y:Ri,Z:ji,"%":ir}),h={a:function(t){return o[t.getUTCDay()]},A:function(t){return s[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:Fi,e:Fi,f:zi,g:Ji,G:er,H:Ni,I:Vi,j:Ui,L:Bi,m:Hi,M:Wi,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:rr,s:sr,S:Ki,u:qi,U:Yi,V:Xi,w:Gi,W:$i,x:null,X:null,y:Qi,Y:tr,Z:nr,"%":ir};function u(t,e){return function(n){var i,r,s,o=[],a=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++a<l;)37===t.charCodeAt(a)&&(o.push(t.slice(c,a)),null!=(r=ui[i=t.charAt(++a)])?i=t.charAt(++a):r="e"===i?" ":"0",(s=e[i])&&(i=s(n,r)),o.push(i),c=a+1);return o.push(t.slice(c,a)),o.join("")}}l.x=u(n,l),l.X=u(i,l),l.c=u(e,l),h.x=u(n,h),h.X=u(i,h),h.c=u(e,h)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var or=function(t){return null===t?NaN:+t};const ar=Pn(Ln).right;Pn(or);var cr=ar,lr=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function hr(t){return+t}var ur=[0,1];function dr(t){return t}function fr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function pr(t,e,n){var i=t[0],r=t[1],s=e[0],o=e[1];return r<i?(i=fr(r,i),s=n(o,s)):(i=fr(i,r),s=n(s,o)),function(t){return s(i(t))}}function mr(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),s=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)r[o]=fr(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(e){var n=cr(t,e,1,i)-1;return s[n](r[n](e))}}function br(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function gr(){return function(){var t,e,n,i,r,s,o=ur,a=ur,c=ye,l=dr;function h(){var t,e,n,c=Math.min(o.length,a.length);return l!==dr&&((t=o[0])>(e=o[c-1])&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),i=c>2?mr:pr,r=s=null,u}function u(e){return isNaN(e=+e)?n:(r||(r=i(o.map(t),a,c)))(t(l(e)))}return u.invert=function(n){return l(e((s||(s=i(a,o.map(t),pe)))(n)))},u.domain=function(t){return arguments.length?(o=Array.from(t,hr),h()):o.slice()},u.range=function(t){return arguments.length?(a=Array.from(t),h()):a.slice()},u.rangeRound=function(t){return a=Array.from(t),c=lr,h()},u.clamp=function(t){return arguments.length?(l=!!t||dr,h()):l!==dr},u.interpolate=function(t){return arguments.length?(c=t,h()):c},u.unknown=function(t){return arguments.length?(n=t,u):n},function(n,i){return t=n,e=i,h()}}()(dr,dr)}function _r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var yr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vr(t){if(!(e=yr.exec(t)))throw new Error("invalid format: "+t);var e;return new wr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function wr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function xr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}vr.prototype=wr.prototype,wr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Cr,Sr,Er,kr,Or=function(t){return(t=xr(Math.abs(t)))?t[1]:NaN},Ar=function(t,e){var n=xr(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},Dr={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ar(100*t,e)},r:Ar,s:function(t,e){var n=xr(t,e);if(!n)return t+"";var i=n[0],r=n[1],s=r-(Cr=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+xr(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Ir=function(t){return t},Tr=Array.prototype.map,Lr=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Pr(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var i,r,s,o,a=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(o=Fn(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),s=new Array(r=Math.ceil(e-t+1));++a<r;)s[a]=(t+a)*o;else for(o=-o,t=Math.ceil(t*o),e=Math.floor(e*o),s=new Array(r=Math.ceil(e-t+1));++a<r;)s[a]=(t+a)/o;return i&&s.reverse(),s}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return function(t,e,n,i){var r,s=function(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/r;return s>=Rn?r*=10:s>=Mn?r*=5:s>=jn&&(r*=2),e<t?-r:r}(t,e,n);switch((i=vr(null==i?",f":i)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Or(e)/3)))-Or(Math.abs(t)))}(s,o))||(i.precision=r),kr(i,o);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Or(e)-Or(t))+1}(s,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-Or(Math.abs(t)))}(s))||(i.precision=r-2*("%"===i.type))}return Er(i)}(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,s=e(),o=0,a=s.length-1,c=s[o],l=s[a],h=10;for(l<c&&(r=c,c=l,l=r,r=o,o=a,a=r);h-- >0;){if((r=Fn(c,l,n))===i)return s[o]=c,s[a]=l,e(s);if(r>0)c=Math.floor(c/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;c=Math.ceil(c*r)/r,l=Math.floor(l*r)/r}i=r}return t},t}function Rr(){var t=gr();return t.copy=function(){return br(t,Rr())},_r.apply(t,arguments),Pr(t)}Sr=function(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?Ir:(e=Tr.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,s=[],o=0,a=e[0],c=0;r>0&&a>0&&(c+a+1>i&&(a=Math.max(1,i-c)),s.push(t.substring(r-=a,r+a)),!((c+=a+1)>i));)a=e[o=(o+1)%e.length];return s.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?Ir:function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(Tr.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function u(t){var e=(t=vr(t)).fill,n=t.align,u=t.sign,d=t.symbol,f=t.zero,p=t.width,m=t.comma,b=t.precision,g=t.trim,_=t.type;"n"===_?(m=!0,_="g"):Dr[_]||(void 0===b&&(b=12),g=!0,_="g"),(f||"0"===e&&"="===n)&&(f=!0,e="0",n="=");var y="$"===d?r:"#"===d&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",v="$"===d?s:/[%p]/.test(_)?c:"",w=Dr[_],x=/[defgprs%]/.test(_);function C(t){var r,s,c,d=y,C=v;if("c"===_)C=w(t)+C,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:w(Math.abs(t),b),g&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==u&&(S=!1),d=(S?"("===u?u:l:"-"===u||"("===u?"":u)+d,C=("s"===_?Lr[8+Cr/3]:"")+C+(S&&"("===u?")":""),x)for(r=-1,s=t.length;++r<s;)if(48>(c=t.charCodeAt(r))||c>57){C=(46===c?o+t.slice(r+1):t.slice(r))+C,t=t.slice(0,r);break}}m&&!f&&(t=i(t,1/0));var E=d.length+t.length+C.length,k=E<p?new Array(p-E+1).join(e):"";switch(m&&f&&(t=i(k+t,k.length?p-C.length:1/0),k=""),n){case"<":t=d+t+C+k;break;case"=":t=d+k+t+C;break;case"^":t=k.slice(0,E=k.length>>1)+d+t+C+k.slice(E);break;default:t=k+d+t+C}return a(t)}return b=void 0===b?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),C.toString=function(){return t+""},C}return{format:u,formatPrefix:function(t,e){var n=u(((t=vr(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Or(e)/3))),r=Math.pow(10,-i),s=Lr[8+i/3];return function(t){return n(r*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Er=Sr.format,kr=Sr.formatPrefix;var Mr=function(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),s=new Array(r);++i<r;)s[i]=t+i*n;return s};const jr=Symbol("implicit");function Fr(){var t=new Map,e=[],n=[],i=jr;function r(r){var s=r+"",o=t.get(s);if(!o){if(i!==jr)return i;t.set(s,o=e.push(r))}return n[(o-1)%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;for(const i of n){const n=i+"";t.has(n)||t.set(n,e.push(i))}return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return Fr(e,n).unknown(i)},_r.apply(r,arguments),r}function Nr(){var t,e,n=Fr().unknown(void 0),i=n.domain,r=n.range,s=0,o=1,a=!1,c=0,l=0,h=.5;function u(){var n=i().length,u=o<s,d=u?o:s,f=u?s:o;t=(f-d)/Math.max(1,n-c+2*l),a&&(t=Math.floor(t)),d+=(f-d-t*(n-c))*h,e=t*(1-c),a&&(d=Math.round(d),e=Math.round(e));var p=Mr(n).map(function(e){return d+t*e});return r(u?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),u()):i()},n.range=function(t){return arguments.length?([s,o]=t,s=+s,o=+o,u()):[s,o]},n.rangeRound=function(t){return[s,o]=t,s=+s,o=+o,a=!0,u()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,u()):a},n.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),u()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),u()):c},n.paddingOuter=function(t){return arguments.length?(l=+t,u()):l},n.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),u()):h},n.copy=function(){return Nr(i(),[s,o]).round(a).paddingInner(c).paddingOuter(l).align(h)},_r.apply(u(),arguments)}function Vr(t,e,n=or){if(i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t);return o+(+n(t[s+1],s+1,t)-o)*(r-s)}}function Ur(){var t,e=[],n=[],i=[];function r(){var t=0,r=Math.max(1,n.length);for(i=new Array(r-1);++t<r;)i[t-1]=Vr(e,t/r);return s}function s(e){return isNaN(e=+e)?t:n[cr(i,e)]}return s.invertExtent=function(t){var r=n.indexOf(t);return r<0?[NaN,NaN]:[r>0?i[r-1]:e[0],r<i.length?i[r]:e[e.length-1]]},s.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(Ln),r()},s.range=function(t){return arguments.length?(n=Array.from(t),r()):n.slice()},s.unknown=function(e){return arguments.length?(t=e,s):t},s.quantiles=function(){return i.slice()},s.copy=function(){return Ur().domain(e).range(n).unknown(t)},_r.apply(s,arguments)}function Br(t){this._context=t}Br.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var zr=Math.PI,Hr=2*zr,Wr=1e-6,Kr=Hr-Wr;function qr(){this._x0=this._y0=this._x1=this._y1=null,this._=""}qr.prototype=(function(){return new qr}).prototype={constructor:qr,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){var s=this._x1,o=this._y1,a=(n=+n)-(t=+t),c=(i=+i)-(e=+e),l=s-t,h=o-e,u=l*l+h*h;if((r=+r)<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(u>Wr)if(Math.abs(h*a-c*l)>Wr&&r){var d=n-s,f=i-o,p=a*a+c*c,m=d*d+f*f,b=Math.sqrt(p),g=Math.sqrt(u),_=r*Math.tan((zr-Math.acos((p+u-m)/(2*b*g)))/2),y=_/g,v=_/b;Math.abs(y-1)>Wr&&(this._+="L"+(t+y*l)+","+(e+y*h)),this._+="A"+r+","+r+",0,0,"+ +(h*d>l*f)+","+(this._x1=t+v*a)+","+(this._y1=e+v*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,s){t=+t,e=+e,s=!!s;var o=(n=+n)*Math.cos(i),a=n*Math.sin(i),c=t+o,l=e+a,h=1^s,u=s?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>Wr||Math.abs(this._y1-l)>Wr)&&(this._+="L"+c+","+l),n&&(u<0&&(u=u%Hr+Hr),u>Kr?this._+="A"+n+","+n+",0,1,"+h+","+(t-o)+","+(e-a)+"A"+n+","+n+",0,1,"+h+","+(this._x1=c)+","+(this._y1=l):u>Wr&&(this._+="A"+n+","+n+",0,"+ +(u>=zr)+","+h+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var Yr=function(){};function Zr(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Xr(t,e){this._context=t,this._k=(1-e)/6}function Gr(t,e){this._context=t,this._k=(1-e)/6}function $r(t){this._curve=t}Xr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Zr(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Zr(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Xr(t,e)}return n.tension=function(e){return t(+e)},n}(0),Gr.prototype={areaStart:Yr,areaEnd:Yr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Zr(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function t(e){function n(t){return new Gr(t,e)}return n.tension=function(e){return t(+e)},n}(0),$r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},Math,Math,Math,Math,Math,Math,Math,Math;var Qr=function(t,e,n,i,r){for(var s,o=t.children,a=-1,c=o.length,l=t.value&&(i-e)/t.value;++a<c;)(s=o[a]).y0=n,s.y1=r,s.x0=e,s.x1=e+=s.value*l},Jr=function(t,e,n,i,r){for(var s,o=t.children,a=-1,c=o.length,l=t.value&&(r-n)/t.value;++a<c;)(s=o[a]).x0=e,s.x1=i,s.y0=n,s.y1=n+=s.value*l};function ts(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function es(t,e){var n,i,r,s,o,a=new ss(t),c=+t.value&&(a.value=t.value),l=[a];for(null==e&&(e=ns);n=l.pop();)if(c&&(n.value=+n.data.value),(r=e(n.data))&&(o=r.length))for(n.children=new Array(o),s=o-1;s>=0;--s)l.push(i=n.children[s]=new ss(r[s])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(rs)}function ns(t){return t.children}function is(t){t.data=t.data.data}function rs(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function ss(t){this.data=t,this.depth=this.height=0,this.parent=null}!function t(e){function n(t,n,i,r,s){!function(t,e,n,i,r,s){for(var o,a,c,l,h,u,d,f,p,m,b,g=[],_=e.children,y=0,v=0,w=_.length,x=e.value;y<w;){c=r-n,l=s-i;do{h=_[v++].value}while(!h&&v<w);for(u=d=h,b=h*h*(m=Math.max(l/c,c/l)/(x*t)),p=Math.max(d/b,b/u);v<w;++v){if(h+=a=_[v].value,a<u&&(u=a),a>d&&(d=a),b=h*h*m,(f=Math.max(d/b,b/u))>p){h-=a;break}p=f}g.push(o={value:h,dice:c<l,children:_.slice(y,v)}),o.dice?Qr(o,n,i,r,x?i+=l*h/x:s):Jr(o,n,i,x?n+=c*h/x:r,s),x-=h,y=v}}(e,t,n,i,r,s)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2),ss.prototype=es.prototype={constructor:ss,count:function(){return this.eachAfter(ts)},each:function(t){var e,n,i,r,s=this,o=[s];do{for(e=o.reverse(),o=[];s=e.pop();)if(t(s),n=s.children)for(i=0,r=n.length;i<r;++i)o.push(n[i])}while(o.length);return this},eachAfter:function(t){for(var e,n,i,r=this,s=[r],o=[];r=s.pop();)if(o.push(r),e=r.children)for(n=0,i=e.length;n<i;++n)s.push(e[n]);for(;r=o.pop();)t(r);return this},eachBefore:function(t){for(var e,n,i=this,r=[i];i=r.pop();)if(t(i),e=i.children)for(n=e.length-1;n>=0;--n)r.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;for(t=n.pop(),e=i.pop();t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)i.push(e=e.parent);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return es(this).eachBefore(is)}};var os=n("cUpR");const as=["caretElm"];function cs(t,e){}const ls=function(t){return{model:t}};function hs(t,e){if(1&t&&(i.Vb(0,"span"),i.Ic(1,cs,0,0,"ng-template",5),i.Ub()),2&t){const t=i.hc();i.Db(1),i.oc("ngTemplateOutlet",t.template)("ngTemplateOutletContext",i.sc(2,ls,t.context))}}function us(t,e){if(1&t&&i.Qb(0,"span",6),2&t){const t=i.hc();i.oc("innerHTML",t.title,i.Ac)}}function ds(t,e){if(1&t&&(i.gc(),i.fc(),i.Qb(0,"ngx-charts-scale-legend",4)),2&t){const t=i.hc();i.oc("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function fs(t,e){if(1&t){const t=i.Wb();i.gc(),i.fc(),i.Vb(0,"ngx-charts-legend",5),i.dc("labelClick",function(e){return i.zc(t),i.hc().legendLabelClick.emit(e)})("labelActivate",function(e){return i.zc(t),i.hc().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return i.zc(t),i.hc().legendLabelDeactivate.emit(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("horizontal",t.legendOptions&&"below"===t.legendOptions.position)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const ps=["*"],ms=["ngx-charts-axis-label",""],bs=["ticksel"],gs=["ngx-charts-x-axis-ticks",""];function _s(t,e){if(1&t&&(i.gc(),i.Vb(0,"g",3),i.Vb(1,"title"),i.Kc(2),i.Ub(),i.Vb(3,"text",4),i.Kc(4),i.Ub(),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Eb("transform",n.tickTransform(t)),i.Db(2),i.Lc(n.tickFormat(t)),i.Db(1),i.Fc("font-size","12px"),i.Eb("text-anchor",n.textAnchor)("transform",n.textTransform),i.Db(1),i.Mc(" ",n.tickTrim(n.tickFormat(t))," ")}}function ys(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Qb(1,"line",6),i.Ub()),2&t){const t=i.hc(2);i.Eb("transform",t.gridLineTransform()),i.Db(1),i.Eb("y1",-t.gridLineHeight)}}function vs(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,ys,2,2,"g",5),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Eb("transform",n.tickTransform(t)),i.Db(1),i.oc("ngIf",n.showGridLines)}}const ws=["ngx-charts-x-axis",""];function xs(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",2),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().emitTicksHeight(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("trimTicks",t.trimTicks)("rotateTicks",t.rotateTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickStroke",t.tickStroke)("scale",t.xScale)("orient",t.xOrient)("showGridLines",t.showGridLines)("gridLineHeight",t.dims.height)("width",t.dims.width)("tickValues",t.ticks)}}function Cs(t,e){if(1&t&&(i.gc(),i.Qb(0,"g",3)),2&t){const t=i.hc();i.oc("label",t.labelText)("offset",t.labelOffset)("orient","bottom")("height",t.dims.height)("width",t.dims.width)}}const Ss=["ngx-charts-y-axis-ticks",""];function Es(t,e){if(1&t&&(i.gc(),i.Vb(0,"g",4),i.Vb(1,"title"),i.Kc(2),i.Ub(),i.Vb(3,"text",5),i.Kc(4),i.Ub(),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Eb("transform",n.transform(t)),i.Db(2),i.Lc(n.tickFormat(t)),i.Db(1),i.Fc("font-size","12px"),i.Eb("dy",n.dy)("x",n.x1)("y",n.y1)("text-anchor",n.textAnchor),i.Db(1),i.Mc(" ",n.tickTrim(n.tickFormat(t))," ")}}function ks(t,e){if(1&t&&(i.gc(),i.Qb(0,"path",6)),2&t){const t=i.hc();i.Eb("d",t.referenceAreaPath)("transform",t.gridLineTransform())}}function Os(t,e){if(1&t&&(i.gc(),i.Qb(0,"line",9)),2&t){const t=i.hc(3);i.Eb("x2",t.gridLineWidth)}}function As(t,e){if(1&t&&(i.gc(),i.Qb(0,"line",9)),2&t){const t=i.hc(3);i.Eb("x2",-t.gridLineWidth)}}function Ds(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,Os,1,1,"line",8),i.Ic(2,As,1,1,"line",8),i.Ub()),2&t){const t=i.hc(2);i.Eb("transform",t.gridLineTransform()),i.Db(1),i.oc("ngIf","left"===t.orient),i.Db(1),i.oc("ngIf","right"===t.orient)}}function Is(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,Ds,3,3,"g",7),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Eb("transform",n.transform(t)),i.Db(1),i.oc("ngIf",n.showGridLines)}}function Ts(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Vb(1,"title"),i.Kc(2),i.Ub(),i.Vb(3,"text",11),i.Kc(4),i.Ub(),i.Ub()),2&t){const t=i.hc(2).$implicit,e=i.hc();i.Db(2),i.Lc(e.tickTrim(e.tickFormat(t.value))),i.Db(1),i.Eb("dy",e.dy)("y",-6)("x",e.gridLineWidth)("text-anchor",e.textAnchor),i.Db(1),i.Mc(" ",t.name," ")}}function Ls(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Qb(1,"line",10),i.Ic(2,Ts,5,6,"g",7),i.Ub()),2&t){const t=i.hc().$implicit,e=i.hc();i.Eb("transform",e.transform(t.value)),i.Db(1),i.Eb("x2",e.gridLineWidth)("transform",e.gridLineTransform()),i.Db(1),i.oc("ngIf",e.showRefLabels)}}function Ps(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,Ls,3,4,"g",7),i.Ub()),2&t){const t=i.hc();i.Db(1),i.oc("ngIf",t.showRefLines)}}const Rs=["ngx-charts-y-axis",""];function Ms(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",2),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().emitTicksWidth(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("trimTicks",t.trimTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickValues",t.ticks)("tickStroke",t.tickStroke)("scale",t.yScale)("orient",t.yOrient)("showGridLines",t.showGridLines)("gridLineWidth",t.dims.width)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)("height",t.dims.height)}}function js(t,e){if(1&t&&(i.gc(),i.Qb(0,"g",3)),2&t){const t=i.hc();i.oc("label",t.labelText)("offset",t.labelOffset)("orient",t.yOrient)("height",t.dims.height)("width",t.dims.width)}}const Fs=["ngx-charts-grid-panel",""],Ns=["ngx-charts-grid-panel-series",""];function Vs(t,e){if(1&t&&(i.gc(),i.Qb(0,"g",1)),2&t){const t=e.$implicit;i.Hb("grid-panel",!0)("odd","odd"===t.class)("even","even"===t.class),i.oc("height",t.height)("width",t.width)("x",t.x)("y",t.y)}}const Us=["ngx-charts-svg-linear-gradient",""];function Bs(t,e){if(1&t&&(i.gc(),i.Qb(0,"stop")),2&t){const t=e.$implicit;i.Fc("stop-color",t.color)("stop-opacity",t.opacity),i.Eb("offset",t.offset+"%")}}function zs(t,e){if(1&t&&(i.Vb(0,"header",4),i.Vb(1,"span",5),i.Kc(2),i.Ub(),i.Ub()),2&t){const t=i.hc();i.Db(2),i.Lc(t.title)}}function Hs(t,e){if(1&t){const t=i.Wb();i.Vb(0,"li",6),i.Vb(1,"ngx-charts-legend-entry",7),i.dc("select",function(e){return i.zc(t),i.hc().labelClick.emit(e)})("activate",function(e){return i.zc(t),i.hc().activate(e)})("deactivate",function(e){return i.zc(t),i.hc().deactivate(e)}),i.Ub(),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc();i.Db(1),i.oc("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",n.isActive(t))}}const Ws=["tooltipTemplate"],Ks=function(t,e){return[t,e]},qs=".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:none}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{opacity:.2;transition:opacity .1s ease-in-out}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{fill:none;stroke:#ddd;stroke-width:1}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-dasharray:5;stroke-dashoffset:5;stroke-width:1}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill:#000;fill-opacity:.05}.ngx-charts .gridline-path-dotted{fill:none;stroke:#ddd;stroke-dasharray:1,20;stroke-dashoffset:3;stroke-width:1}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}",Ys=["ngx-charts-bar",""];function Zs(t,e){if(1&t&&(i.gc(),i.Vb(0,"defs"),i.Qb(1,"g",2),i.Ub()),2&t){const t=i.hc();i.Db(1),i.oc("orientation",t.orientation)("name",t.gradientId)("stops",t.gradientStops)}}function Xs(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",5),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().updateXAxisHeight(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("xScale",t.xScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function Gs(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",6),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().updateYAxisWidth(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function $s(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",6),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().updateXAxisHeight(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("xScale",t.groupScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function Qs(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",7),i.dc("dimensionsChanged",function(e){return i.zc(t),i.hc().updateYAxisWidth(e)}),i.Ub()}if(2&t){const t=i.hc();i.oc("yScale",t.valueScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function Js(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",8),i.dc("select",function(n){i.zc(t);const r=e.$implicit;return i.hc().onClick(n,r)})("activate",function(n){i.zc(t);const r=e.$implicit;return i.hc().onActivate(n,r)})("deactivate",function(n){i.zc(t);const r=e.$implicit;return i.hc().onDeactivate(n,r)})("dataLabelHeightChanged",function(n){i.zc(t);const r=e.index;return i.hc().onDataLabelMaxHeightChanged(n,r)}),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc();i.oc("@animationState","active")("activeEntries",n.activeEntries)("xScale",n.innerScale)("yScale",n.valueScale)("colors",n.colors)("series",t.series)("dims",n.dims)("gradient",n.gradient)("tooltipDisabled",n.tooltipDisabled)("tooltipTemplate",n.tooltipTemplate)("showDataLabel",n.showDataLabel)("dataLabelFormatting",n.dataLabelFormatting)("seriesName",t.name)("roundEdges",n.roundEdges)("animations",n.animations)("noBarWhenZero",n.noBarWhenZero),i.Eb("transform",n.groupTransform(t))}}const to=["ngx-charts-series-vertical",""];function eo(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",2),i.dc("select",function(e){return i.zc(t),i.hc().onClick(e)})("activate",function(e){return i.zc(t),i.hc().activate.emit(e)})("deactivate",function(e){return i.zc(t),i.hc().deactivate.emit(e)}),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc();i.oc("@animationState","active")("@.disabled",!n.animations)("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation","vertical")("roundEdges",t.roundEdges)("gradient",n.gradient)("ariaLabel",t.ariaLabel)("isActive",n.isActive(t.data))("tooltipDisabled",n.tooltipDisabled)("tooltipPlacement",n.tooltipPlacement)("tooltipType",n.tooltipType)("tooltipTitle",n.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",n.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",n.noBarWhenZero)("animations",n.animations)}}function no(t,e){if(1&t){const t=i.Wb();i.gc(),i.Vb(0,"g",4),i.dc("dimensionsChanged",function(n){i.zc(t);const r=e.index;return i.hc(2).dataLabelHeightChanged.emit({size:n,index:r})}),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc(2);i.oc("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",n.dataLabelFormatting)("orientation","vertical")}}function io(t,e){if(1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,no,1,7,"g",3),i.Ub()),2&t){const t=i.hc();i.Db(1),i.oc("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const ro=["ngx-charts-bar-label",""];let so=(()=>{class t{constructor(t,e,n){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n}static setGlobalRootViewContainer(e){t.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return t.element?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const n=Object.getOwnPropertyNames(e.inputs);for(const i of n)t.instance[i]=e.inputs[i]}if(void 0!==e.outputs){const n=Object.getOwnPropertyNames(e.outputs);for(const i of n)t.instance[i]=e.outputs[i]}}return t}appendComponent(t,e={},n){n||(n=this.getRootViewContainer());const i=this.getComponentRootNode(n),r=new o.e(i,this.componentFactoryResolver,this.applicationRef,this.injector),s=new o.d(t),a=r.attach(s);return this.projectComponentBindings(a,e),a}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.g),i.Zb(i.j),i.Zb(i.t))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t.globalRootViewContainer=null,t})();function oo(t,e,n){let i,r,s;n=n||{};let o=null,a=0;function c(){a=!1===n.leading?0:+new Date,o=null,s=t.apply(i,r)}return function(){const l=+new Date;a||!1!==n.leading||(a=l);const h=e-(l-a);return i=this,r=arguments,h<=0?(clearTimeout(o),o=null,a=l,s=t.apply(i,r)):o||!1===n.trailing||(o=setTimeout(c,h)),s}}var ao=function(t){return t[t.top="top"]="top",t[t.bottom="bottom"]="bottom",t[t.left="left"]="left",t[t.right="right"]="right",t}({});function co(t,e,n){return"top"===n?t.top-7:"bottom"===n?t.top+t.height-e.height+7:"center"===n?t.top+t.height/2-e.height/2:void 0}function lo(t,e,n){return"left"===n?t.left-7:"right"===n?t.left+t.width-e.width+7:"center"===n?t.left+t.width/2-e.width/2:void 0}class ho{static calculateVerticalAlignment(t,e,n){let i=co(t,e,n);return i+e.height>window.innerHeight&&(i=window.innerHeight-e.height),i}static calculateVerticalCaret(t,e,n,i){let r;"top"===i&&(r=t.height/2-n.height/2+7),"bottom"===i&&(r=e.height-t.height/2-n.height/2-7),"center"===i&&(r=e.height/2-n.height/2);const s=co(t,e,i);return s+e.height>window.innerHeight&&(r+=s+e.height-window.innerHeight),r}static calculateHorizontalAlignment(t,e,n){let i=lo(t,e,n);return i+e.width>window.innerWidth&&(i=window.innerWidth-e.width),i}static calculateHorizontalCaret(t,e,n,i){let r;"left"===i&&(r=t.width/2-n.width/2+7),"right"===i&&(r=e.width-t.width/2-n.width/2-7),"center"===i&&(r=e.width/2-n.width/2);const s=lo(t,e,i);return s+e.width>window.innerWidth&&(r+=s+e.width-window.innerWidth),r}static shouldFlip(t,e,n,i){let r=!1;return"right"===n&&t.left+t.width+e.width+i>window.innerWidth&&(r=!0),"left"===n&&t.left-e.width-i<0&&(r=!0),"top"===n&&t.top-e.height-i<0&&(r=!0),"bottom"===n&&t.top+t.height+e.height+i>window.innerHeight&&(r=!0),r}static positionCaret(t,e,n,i,r){let s=0,o=0;return t===ao.right?(o=-7,s=ho.calculateVerticalCaret(n,e,i,r)):t===ao.left?(o=e.width,s=ho.calculateVerticalCaret(n,e,i,r)):t===ao.top?(s=e.height,o=ho.calculateHorizontalCaret(n,e,i,r)):t===ao.bottom&&(s=-7,o=ho.calculateHorizontalCaret(n,e,i,r)),{top:s,left:o}}static positionContent(t,e,n,i,r){let s=0,o=0;return t===ao.right?(o=n.left+n.width+i,s=ho.calculateVerticalAlignment(n,e,r)):t===ao.left?(o=n.left-e.width-i,s=ho.calculateVerticalAlignment(n,e,r)):t===ao.top?(s=n.top-e.height-i,o=ho.calculateHorizontalAlignment(n,e,r)):t===ao.bottom&&(s=n.top+n.height+i,o=ho.calculateHorizontalAlignment(n,e,r)),{top:s,left:o}}static determinePlacement(t,e,n,i){if(ho.shouldFlip(n,e,t,i)){if(t===ao.right)return ao.left;if(t===ao.left)return ao.right;if(t===ao.top)return ao.bottom;if(t===ao.bottom)return ao.top}return t}}let uo=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=" position-"+this.placement,t+=" type-"+this.type,t+=" "+this.cssClass,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const n=t.getBoundingClientRect();this.checkFlip(e,n),this.positionContent(t,e,n),this.showCaret&&this.positionCaret(e,n),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,n){const{top:i,left:r}=ho.positionContent(this.placement,n,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",i+"px"),this.renderer.setStyle(t,"left",r+"px")}positionCaret(t,e){const n=this.caretElm.nativeElement,i=n.getBoundingClientRect(),{top:r,left:s}=ho.positionCaret(this.placement,e,t,i,this.alignment);this.renderer.setStyle(n,"top",r+"px"),this.renderer.setStyle(n,"left",s+"px")}checkFlip(t,e){this.placement=ho.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.G))},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&i.Pc(as,!0),2&t){let t;i.vc(t=i.ec())&&(e.caretElm=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&i.dc("resize",function(){return e.onWindowResize()},!1,i.yc),2&t&&i.Fb(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(i.Vb(0,"div"),i.Qb(1,"span",0,1),i.Vb(3,"div",2),i.Ic(4,hs,2,4,"span",3),i.Ic(5,us,1,1,"span",4),i.Ub(),i.Ub()),2&t&&(i.Db(1),i.Gb("tooltip-caret position-",e.placement,""),i.oc("hidden",!e.showCaret),i.Db(3),i.oc("ngIf",!e.title),i.Db(1),i.oc("ngIf",e.title))},directives:[r.o,r.t],styles:[".ngx-charts-tooltip-content{border-radius:3px;display:block;font-weight:400;opacity:0;pointer-events:none!important;position:fixed;z-index:5000}.ngx-charts-tooltip-content.type-popover{background:#fff;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);color:#060709;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid #fff;border-top:7px solid transparent}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-bottom:7px solid #fff;border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip{background:rgba(0,0,0,.75);color:#fff;font-size:12px;padding:0 10px;pointer-events:auto;text-align:center}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75);border-top:7px solid transparent}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-bottom:7px solid rgba(0,0,0,.75);border-left:7px solid transparent;border-right:7px solid transparent}.ngx-charts-tooltip-content .tooltip-label{display:block;font-size:1em;line-height:1em;padding:8px 5px 5px}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{height:0;position:absolute;width:0;z-index:5001}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;pointer-events:auto;transform:translateZ(0);transition:opacity .3s,transform .3s}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{line-height:1.2em;padding:5px 0;text-align:left}.tooltip-item .tooltip-item-color{border-radius:3px;color:#5b646b;display:inline-block;height:12px;margin-right:5px;width:12px}"],encapsulation:2}),Object(a.a)([(100,function(t,e,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,e,{configurable:!0,enumerable:n.enumerable,value:oo(n.value,100,undefined)}),this[e]}}})],t.prototype,"onWindowResize",null),t})(),fo=(()=>{class t extends class{constructor(t){this.injectionService=t,this.defaults={},this.components=new Map}getByType(t=this.type){return this.components.get(t)}create(t){return this.createByType(this.type,t)}createByType(t,e){e=this.assignDefaults(e);const n=this.injectComponent(t,e);return this.register(t,n),n}destroy(t){const e=this.components.get(t.componentType);if(e&&e.length){const n=e.indexOf(t);n>-1&&(e[n].destroy(),e.splice(n,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(t){const e=this.components.get(t);if(e&&e.length){let t=e.length-1;for(;t>=0;)this.destroy(e[t--])}}injectComponent(t,e){return this.injectionService.appendComponent(t,e)}assignDefaults(t){const e=Object.assign({},this.defaults.inputs),n=Object.assign({},this.defaults.outputs);return t.inputs||t.outputs||(t={inputs:t}),e&&(t.inputs=Object.assign(Object.assign({},e),t.inputs)),n&&(t.outputs=Object.assign(Object.assign({},n),t.outputs)),t}register(t,e){this.components.has(t)||this.components.set(t,[]),this.components.get(t).push(e)}}{constructor(t){super(t),this.type=uo}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(so))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),po=(()=>{class t{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new i.o,this.legendLabelActivate=new i.o,this.legendLabelDeactivate=new i.o}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(t="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[i.Cb([fo]),i.Bb],ngContentSelectors:ps,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(i.nc(),i.Vb(0,"div",0),i.gc(),i.Vb(1,"svg",1),i.mc(2),i.Ub(),i.Ic(3,ds,1,5,"ngx-charts-scale-legend",2),i.Ic(4,fs,1,7,"ngx-charts-legend",3),i.Ub()),2&t&&(i.Fc("width",e.view[0],"px"),i.oc("@animationState","active")("@.disabled",!e.animations),i.Db(1),i.Eb("width",e.chartWidth)("height",e.view[1]),i.Db(2),i.oc("ngIf",e.showLegend&&"scaleLegend"===e.legendType),i.Db(1),i.oc("ngIf",e.showLegend&&"legend"===e.legendType))},directives:function(){return[r.o,Uo,No]},encapsulation:2,data:{animation:[Object(s.m)("animationState",[Object(s.l)(":enter",[Object(s.k)({opacity:0}),Object(s.e)("500ms 100ms",Object(s.k)({opacity:1}))])])]},changeDetection:0}),t})(),mo=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.visible=new i.o,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:n}=this.element.nativeElement;e&&n?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.B))},t.\u0275dir=i.Kb({type:t,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),t})(),bo=(()=>{class t{constructor(t,e,n){this.chartElement=t,this.zone=e,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new i.o}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new mo(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const n=this.chartElement.nativeElement;if(null!==n.parentNode){const i=n.parentNode.getBoundingClientRect();t=i.width,e=i.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t<this.results.length;t++){const e=this.results[t];if(e.label=e.name,e.label instanceof Date&&(e.label=e.label.toLocaleDateString()),e.series)for(let t=0;t<e.series.length;t++){const n=e.series[t];n.label=n.name,n.label instanceof Date&&(n.label=n.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const t=Object(c.a)(window,"resize").pipe(Object(l.a)(200)).subscribe(t=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=t}cloneData(t){const e=[];for(const n of t){const t={name:n.name};if(void 0!==n.value&&(t.value=n.value),void 0!==n.series){t.series=[];for(const e of n.series){const n=Object.assign({},e);t.series.push(n)}}void 0!==n.extra&&(t.extra=JSON.parse(JSON.stringify(n.extra))),e.push(t)}return e}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.B),i.Pb(i.h))},t.\u0275cmp=i.Jb({type:t,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[i.Bb],decls:1,vars:0,template:function(t,e){1&t&&i.Qb(0,"div")},encapsulation:2}),t})(),go=(()=>{class t{constructor(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[i.Bb],attrs:ms,decls:2,vars:6,template:function(t,e){1&t&&(i.gc(),i.Vb(0,"text"),i.Kc(1),i.Ub()),2&t&&(i.Eb("stroke-width",e.strokeWidth)("x",e.x)("y",e.y)("text-anchor",e.textAnchor)("transform",e.transform),i.Db(1),i.Mc(" ",e.label," "))},encapsulation:2,changeDetection:0}),t})();function _o(t,e=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=e?t:t.slice(0,e)+"..."}function yo(t,e){if(t.length>e){const n=[],i=Math.floor(t.length/e);for(let e=0;e<t.length;e++)e%i==0&&n.push(t[e]);t=n}return t}let vo=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new i.o,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);t!==this.height&&(this.height=t,this.dimensionsChanged.emit({height:t}),setTimeout(()=>this.updateDims()))}update(){const t=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()};const e=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(t){return this.scale(t)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",e&&0!==e?(this.textTransform=`rotate(${e})`,this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(()=>this.updateDims())}getRotationAngle(t){let e=0;this.maxTicksLength=0;for(let s=0;s<t.length;s++){const e=this.tickFormat(t[s]).toString();let n=e.length;this.trimTicks&&(n=this.tickTrim(e).length),n>this.maxTicksLength&&(this.maxTicksLength=n)}const n=8*Math.min(this.maxTicksLength,this.maxAllowedLength);let i=n;const r=Math.floor(this.width/t.length);for(;i>r&&e>-90;)e-=30,i=Math.cos(e*(Math.PI/180))*n;return e}getTicks(){let t;const e=this.getMaxTicks(20),n=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=yo(t,e)),t}getMaxTicks(t){return Math.floor(this.width/t)}tickTransform(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(t){return this.trimTicks?_o(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&i.Pc(bs,!0),2&t){let t;i.vc(t=i.ec())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:gs,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"g",null,0),i.Ic(2,_s,5,7,"g",1),i.Ub(),i.Ic(3,vs,2,2,"g",2)),2&t&&(i.Db(2),i.oc("ngForOf",e.ticks),i.Db(1),i.oc("ngForOf",e.ticks))},directives:[r.n,r.o],encapsulation:2,changeDetection:0}),t})(),wo=(()=>{class t{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new i.o,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}ngOnChanges(t){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:t}){const e=t+25+5;e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({height:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(t,e){if(1&t&&i.Pc(vo,!0),2&t){let t;i.vc(t=i.ec())&&(e.ticksComponent=t.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:ws,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,xs,1,12,"g",0),i.Ic(2,Cs,1,5,"g",1),i.Ub()),2&t&&(i.Eb("class",e.xAxisClassName)("transform",e.transform),i.Db(1),i.oc("ngIf",e.xScale),i.Db(1),i.oc("ngIf",e.showLabel))},directives:[r.o,vo,go],encapsulation:2,changeDetection:0}),t})();function xo(t,e,n,i,r,[s,o,a,c]){let l="";return l="M"+[t+r,e],l+="h"+((n=0===(n=Math.floor(n))?1:n)-2*r),l+=o?`a${[r,r]} 0 0 1 ${[r,r]}`:`h${r}v${r}`,l+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),l+=c?`a${[r,r]} 0 0 1 ${[-r,r]}`:`v${r}h${-r}`,l+="h"+(2*r-n),l+=a?`a${[r,r]} 0 0 1 ${[-r,-r]}`:`h${-r}v${-r}`,l+="v"+(2*r-i),l+=s?`a${[r,r]} 0 0 1 ${[r,-r]}`:`v${-r}h${r}`,l+="z",l}let Co=(()=>{class t{constructor(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new i.o,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);t!==this.width&&(this.width=t,this.dimensionsChanged.emit({width:t}),setTimeout(()=>this.updateDims()))}update(){let t;const e="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(t){return"Date"===t.constructor.name?t.toLocaleDateString():t.toLocaleString()},this.adjustedScale=t.bandwidth?function(e){return t(e)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(t){return"translate("+this.adjustedScale(t)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*e,this.y1=this.tickSpacing*e,this.dy=e<0?"0em":".71em";break;case"left":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em";break;case"right":this.transform=function(t){return"translate(0,"+this.adjustedScale(t)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(t=>t.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(t=>t.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=xo(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let t;const e=this.getMaxTicks(20),n=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[n]):(t=this.scale.domain(),t=yo(t,e)),t}getMaxTicks(t){return Math.floor(this.height/t)}tickTransform(t){return`translate(${this.adjustedScale(t)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(t){return this.trimTicks?_o(t,this.maxTickLength):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&i.Pc(bs,!0),2&t){let t;i.vc(t=i.ec())&&(e.ticksElement=t.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:Ss,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"g",null,0),i.Ic(2,Es,5,9,"g",1),i.Ub(),i.Ic(3,ks,1,2,"path",2),i.Ic(4,Is,2,2,"g",3),i.Ic(5,Ps,2,1,"g",3)),2&t&&(i.Db(2),i.oc("ngForOf",e.ticks),i.Db(1),i.oc("ngIf",e.referenceLineLength>1&&e.refMax&&e.refMin&&e.showRefLines),i.Db(1),i.oc("ngForOf",e.ticks),i.Db(1),i.oc("ngForOf",e.referenceLines))},directives:[r.n,r.o],encapsulation:2,changeDetection:0}),t})(),So=(()=>{class t{constructor(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new i.o,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(t){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:t}){t!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=t+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0)):t!==this.labelOffset&&(this.labelOffset=t,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(t,e){if(1&t&&i.Pc(Co,!0),2&t){let t;i.vc(t=i.ec())&&(e.ticksComponent=t.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:Rs,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"g"),i.Ic(1,Ms,1,14,"g",0),i.Ic(2,js,1,5,"g",1),i.Ub()),2&t&&(i.Eb("class",e.yAxisClassName)("transform",e.transform),i.Db(1),i.oc("ngIf",e.yScale),i.Db(1),i.oc("ngIf",e.showLabel))},directives:[r.o,Co,go],encapsulation:2,changeDetection:0}),t})(),Eo=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.c]]}),t})();var ko=function(t){return t[t.popover="popover"]="popover",t[t.tooltip="tooltip"]="tooltip",t}({}),Oo=function(t){return t[t.left="left"]="left",t[t.center="center"]="center",t[t.right="right"]="right",t}({}),Ao=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}({});let Do=(()=>{class t{constructor(t,e,n){this.tooltipService=t,this.viewContainerRef=e,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=ao.top,this.tooltipAlignment=Oo.center,this.tooltipType=ko.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Ao.all,this.tooltipImmediateExit=!1,this.show=new i.o,this.hide=new i.o}get listensForFocus(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.focus}get listensForHover(){return this.tooltipShowEvent===Ao.all||this.tooltipShowEvent===Ao.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const t=this.createBoundOptions();this.component=this.tooltipService.create(t),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),t?e():this.timeout=setTimeout(e,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(fo),i.Pb(i.S),i.Pb(i.G))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&i.dc("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(t){return e.onMouseLeave(t.target)})("click",function(){return e.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),t})(),Io=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[so,fo],imports:[[r.c]]}),t})();function To(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleString()}const Lo={};function Po(){let t=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return t="a"+t,Lo[t]?Po():(Lo[t]=!0,t)}let Ro,Mo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{path:"path",width:"width",height:"height",x:"x",y:"y"},attrs:Fs,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(t,e){1&t&&(i.gc(),i.Qb(0,"rect",0)),2&t&&i.Eb("height",e.height)("width",e.width)("x",e.x)("y",e.y)},encapsulation:2,changeDetection:0}),t})(),jo=(()=>{class t{ngOnChanges(t){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(t=>{let e,n,i,r,s,o="odd";if("vertical"===this.orient){const a=this.xScale(t.name);Number.parseInt((a/this.xScale.step()).toString(),10)%2==1&&(o="even"),e=this.xScale.bandwidth()*this.xScale.paddingInner(),n=this.xScale.bandwidth()+e,i=this.dims.height,r=this.xScale(t.name)-e/2,s=0}else if("horizontal"===this.orient){const a=this.yScale(t.name);Number.parseInt((a/this.yScale.step()).toString(),10)%2==1&&(o="even"),e=this.yScale.bandwidth()*this.yScale.paddingInner(),n=this.dims.width,i=this.yScale.bandwidth()+e,r=0,s=this.yScale(t.name)-e/2}return{name:t.name,class:o,height:i,width:n,x:r,y:s}})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[i.Bb],attrs:Ns,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(t,e){1&t&&i.Ic(0,Vs,1,10,"g",0),2&t&&i.oc("ngForOf",e.gridPanels)},directives:[r.n,Mo],encapsulation:2,changeDetection:0}),t})(),Fo=(()=>{class t{constructor(){this.orientation="vertical"}ngOnChanges(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[i.Bb],attrs:Us,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"linearGradient",0),i.Ic(1,Bs,1,5,"stop",1),i.Ub()),2&t&&(i.oc("id",e.name),i.Eb("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2),i.Db(1),i.oc("ngForOf",e.stops))},directives:[r.n],encapsulation:2,changeDetection:0}),t})();"undefined"!=typeof window?Ro=window:"undefined"!=typeof global&&(Ro=global);let No=(()=>{class t{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new i.o,this.labelActivate=new i.o,this.labelDeactivate=new i.o,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const n=To(e);-1===t.findIndex(t=>t.label===n)&&t.push({label:e,formattedLabel:n,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.label===e.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.h))},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[i.Bb],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(i.Vb(0,"div"),i.Ic(1,zs,3,1,"header",0),i.Vb(2,"div",1),i.Vb(3,"ul",2),i.Ic(4,Hs,2,4,"li",3),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Fc("width",e.width,"px"),i.Db(1),i.oc("ngIf",(null==e.title?null:e.title.length)>0),i.Db(2),i.Fc("max-height",e.height-45,"px"),i.Hb("horizontal-legend",e.horizontal),i.Db(1),i.oc("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[r.o,r.n,Vo]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{font-size:14px;font-weight:700;margin-bottom:5px;margin-left:10px;overflow:hidden;white-space:nowrap}.chart-legend li,.chart-legend ul{list-style:none;margin:0;padding:0}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{background:rgba(0,0,0,.05);border-radius:3px;float:left;line-height:85%;list-style:none;overflow-x:hidden;overflow-y:auto;text-align:left;white-space:nowrap;width:100%}.chart-legend .legend-label{color:#afb7c8;cursor:pointer;font-size:90%;margin:8px}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{border-radius:3px;color:#5b646b;display:inline-block;height:15px;margin-right:5px;width:15px}.chart-legend .legend-label-text{font-size:12px;line-height:15px;vertical-align:top;width:calc(100% - 20px)}.chart-legend .legend-label-text,.chart-legend .legend-title-text{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-legend .legend-title-text{line-height:16px;vertical-align:bottom}"],encapsulation:2,changeDetection:0}),t})(),Vo=(()=>{class t{constructor(){this.isActive=!1,this.select=new i.o,this.activate=new i.o,this.deactivate=new i.o,this.toggle=new i.o}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&i.dc("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(i.Vb(0,"span",0),i.dc("click",function(){return e.select.emit(e.formattedLabel)}),i.Vb(1,"span",1),i.dc("click",function(){return e.toggle.emit(e.formattedLabel)}),i.Ub(),i.Vb(2,"span",2),i.Kc(3),i.Ub(),i.Ub()),2&t&&(i.Hb("active",e.isActive),i.oc("title",e.formattedLabel),i.Db(1),i.Fc("background-color",e.color),i.Db(2),i.Mc(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),t})(),Uo=(()=>{class t{constructor(t){this.sanitizer=t,this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle(`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`)}gradientString(t,e){e.push(1);const n=[];return t.reverse().forEach((t,i)=>{n.push(`${t} ${Math.round(100*e[i])}%`)}),n.join(", ")}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(os.b))},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[i.Bb],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"span"),i.Kc(3),i.Ub(),i.Ub(),i.Qb(4,"div",2),i.Vb(5,"div",1),i.Vb(6,"span"),i.Kc(7),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Fc("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),i.Hb("horizontal-legend",e.horizontal),i.Db(3),i.Lc(e.valueRange[1].toLocaleString()),i.Db(1),i.Fc("background",e.gradient),i.Db(3),i.Lc(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{display:flex;flex-direction:column;text-align:center}.chart-legend .scale-legend-wrap{border-radius:5px;display:inline-block;flex:1;margin:0 auto;width:30px}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{height:30px;margin:0 16px;width:auto}"],encapsulation:2,changeDetection:0}),t})(),Bo=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.c,Eo,Io],r.c,Eo,Io]}),t})();function zo({width:t,height:e,margins:n,showXAxis:i=!1,showYAxis:r=!1,xAxisHeight:s=0,yAxisWidth:o=0,showXLabel:a=!1,showYLabel:c=!1,showLegend:l=!1,legendType:h="ordinal",legendPosition:u="right",columns:d=12}){let f=n[3],p=t,m=e-n[0]-n[2];if(l&&"right"===u&&(d-="ordinal"===h?2:1),p=p*d/12,p=p-n[1]-n[3],i&&(m-=5,m-=s,a)&&(m-=30),r&&(p-=5,p-=o,f+=o,f+=10,c)){const t=30;p-=t,f+=t}return p=Math.max(0,p),m=Math.max(0,m),{width:Math.floor(p),height:Math.floor(m),xOffset:Math.floor(f)}}let Ho=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Wo{constructor(t,e,n,i){"string"==typeof t&&(t=Ho.find(e=>e.name===t)),this.colorDomain=t.domain,this.scaleType=e,this.domain=n,this.customColors=i,this.scale=this.generateColorScheme(t,e,this.domain)}generateColorScheme(t,e,n){let i;if("string"==typeof t&&(t=Ho.find(e=>e.name===t)),"quantile"===e)i=Ur().range(t.domain).domain(n);else if("ordinal"===e)i=Fr().range(t.domain).domain(n);else if("linear"===e){const e=[...t.domain];1===e.length&&(e.push(e[0]),this.colorDomain=e);const n=Mr(0,1,1/e.length);i=Rr().domain(n).range(e)}return i}getColor(t){if(null==t)throw new Error("Value can not be null");if("linear"===this.scaleType){const e=Rr().domain(this.domain).range([0,1]);return this.scale(e(t))}{if("function"==typeof this.customColors)return this.customColors(t);const e=t.toString();let n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(t=>t.name.toLowerCase()===e.toLowerCase())),n?n.value:this.scale(t)}}getLinearGradientStops(t,e){void 0===e&&(e=this.domain[0]);const n=Rr().domain(this.domain).range([0,1]),i=Nr().domain(this.colorDomain).range([0,1]),r=this.getColor(t),s=n(e),o=this.getColor(e),a=n(t);let c=1,l=s;const h=[];for(h.push({color:o,offset:s,originalOffset:s,opacity:1});l<a&&c<this.colorDomain.length;){const t=this.colorDomain[c],e=i(t);if(e<=s)c++;else{if(e.toFixed(4)>=(a-i.bandwidth()).toFixed(4))break;h.push({color:t,offset:e,opacity:1}),l=e,c++}}if(h[h.length-1].offset<100&&h.push({color:r,offset:a,opacity:1}),a===s)h[0].offset=0,h[1].offset=100;else if(100!==h[h.length-1].offset)for(const u of h)u.offset=(u.offset-s)/(a-s)*100;return h}}let Ko=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),qo=(()=>{class t{constructor(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new i.o,this.activate=new i.o,this.deactivate=new i.o,this.hasGradient=!1,this.hideBar=!1,this.element=t.nativeElement}ngOnChanges(t){t.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Po().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const t=(n=this.element,"string"==typeof n?new gt([[document.querySelector(n)]],[document.documentElement]):new gt([[n]],bt)).select(".bar"),e=this.getPath();var n;this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=xo(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=xo(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?t=xo(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(t=xo(this.x,this.y,1,this.height,0,this.edges)),t}getPath(){let t,e=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(e=Math.min(this.height,e),t=xo(this.x,this.y,this.width,this.height,e,this.edges)):"horizontal"===this.orientation&&(e=Math.min(this.width,e),t=xo(this.x,this.y,this.width,this.height,e,this.edges)):t=xo(this.x,this.y,this.width,this.height,e,this.edges),t}getRadius(){let t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let t=[!1,!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(t,e){1&t&&i.dc("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[i.Bb],attrs:Ys,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(t,e){1&t&&(i.Ic(0,Zs,2,3,"defs",0),i.gc(),i.Vb(1,"path",1),i.dc("click",function(){return e.select.emit(e.data)}),i.Ub()),2&t&&(i.oc("ngIf",e.hasGradient),i.Db(1),i.Hb("active",e.isActive)("hidden",e.hideBar),i.Eb("d",e.path)("aria-label",e.ariaLabel)("fill",e.hasGradient?e.gradientFill:e.fill))},directives:[r.o,Fo],encapsulation:2,changeDetection:0}),t})(),Yo=(()=>{class t extends bo{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new i.o,this.deactivate=new i.o,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=zo({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const t=this.xDomain.length/(this.dims.width/this.barPadding+1);return Nr().range([0,this.dims.width]).paddingInner(t).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const t=Rr().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t}getXDomain(){return this.results.map(t=>t.label)}getYDomain(){const t=this.results.map(t=>t.value);let e=this.yScaleMin?Math.min(this.yScaleMin,...t):Math.min(0,...t);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(e=Math.min(e,...this.yAxisTicks));let n=this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(n=Math.max(n,...this.yAxisTicks)),[e,n]}onClick(t){this.select.emit(t)}setColors(){let t;t="ordinal"===this.schemeType?this.xDomain:this.yDomain,this.colors=new Wo(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxHeightChanged(t){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(n=>e?n.label===t.name:n.name===t.name),this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(n=>e?n.label===t.name:n.name===t.name);const n=this.activeEntries.findIndex(e=>e.name===t.name&&e.value===t.value&&e.series===t.series);this.activeEntries.splice(n,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return t.\u0275fac=function(e){return Zo(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,Ws,!0),2&t){let t;i.vc(t=i.ec())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[i.Ab],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(t,e){1&t&&(i.Vb(0,"ngx-charts-chart",0),i.dc("legendLabelClick",function(t){return e.onClick(t)})("legendLabelActivate",function(t){return e.onActivate(t,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,!0)}),i.gc(),i.Vb(1,"g",1),i.Ic(2,Xs,1,10,"g",2),i.Ic(3,Gs,1,9,"g",3),i.Vb(4,"g",4),i.dc("activate",function(t){return e.onActivate(t)})("deactivate",function(t){return e.onDeactivate(t)})("select",function(t){return e.onClick(t)})("dataLabelHeightChanged",function(t){return e.onDataLabelMaxHeightChanged(t)}),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.oc("view",i.tc(22,Ks,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),i.Db(1),i.Eb("transform",e.transform),i.Db(1),i.oc("ngIf",e.xAxis),i.Db(1),i.oc("ngIf",e.yAxis),i.Db(1),i.oc("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[po,r.o,Qo,wo,So]},styles:[qs],encapsulation:2,changeDetection:0}),t})();const Zo=i.Xb(Yo);let Xo=(()=>{class t extends bo{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition="right",this.tooltipDisabled=!1,this.scaleType="ordinal",this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new i.o,this.deactivate=new i.o,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=zo({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valuesDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(t,e){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),e===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Nr().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)}getInnerScale(){const t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return Nr().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)}getValueScale(){const t=Rr().range([this.dims.height,0]).domain(this.valuesDomain);return this.roundDomains?t.nice():t}getGroupDomain(){const t=[];for(const e of this.results)t.includes(e.label)||t.push(e.label);return t}getInnerDomain(){const t=[];for(const e of this.results)for(const n of e.series)t.includes(n.label)||t.push(n.label);return t}getValueDomain(){const t=[];for(const e of this.results)for(const n of e.series)t.includes(n.value)||t.push(n.value);return[Math.min(0,...t),this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t)]}groupTransform(t){return`translate(${this.groupScale(t.label)}, 0)`}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}trackBy(t,e){return e.name}setColors(){let t;t="ordinal"===this.schemeType?this.innerDomain:this.valuesDomain,this.colors=new Wo(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valuesDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t,e,n=!1){const i=Object.assign({},t);e&&(i.series=e.name);const r=this.results.map(t=>t.series).flat().filter(t=>n?t.label===i.name:t.name===i.name&&t.series===i.series);this.activeEntries=[...r],this.activate.emit({value:i,entries:this.activeEntries})}onDeactivate(t,e,n=!1){const i=Object.assign({},t);e&&(i.series=e.name),this.activeEntries=this.activeEntries.filter(t=>n?t.label!==i.name:!(t.name===i.name&&t.series===i.series)),this.deactivate.emit({value:i,entries:this.activeEntries})}}return t.\u0275fac=function(e){return Go(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,Ws,!0),2&t){let t;i.vc(t=i.ec())&&(e.tooltipTemplate=t.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[i.Ab],decls:6,vars:17,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","","orient","vertical",3,"xScale","yScale","data","dims"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(t,e){1&t&&(i.Vb(0,"ngx-charts-chart",0),i.dc("legendLabelActivate",function(t){return e.onActivate(t,void 0,!0)})("legendLabelDeactivate",function(t){return e.onDeactivate(t,void 0,!0)})("legendLabelClick",function(t){return e.onClick(t)}),i.gc(),i.Vb(1,"g",1),i.Qb(2,"g",2),i.Ic(3,$s,1,10,"g",3),i.Ic(4,Qs,1,9,"g",4),i.Ic(5,Js,1,17,"g",5),i.Ub(),i.Ub()),2&t&&(i.oc("view",i.tc(14,Ks,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),i.Db(1),i.Eb("transform",e.transform),i.Db(1),i.oc("xScale",e.groupScale)("yScale",e.valueScale)("data",e.results)("dims",e.dims),i.Db(1),i.oc("ngIf",e.xAxis),i.Db(1),i.oc("ngIf",e.yAxis),i.Db(1),i.oc("ngForOf",e.results)("ngForTrackBy",e.trackBy))},directives:function(){return[po,jo,r.o,r.n,wo,So,Qo]},styles:[qs],encapsulation:2,data:{animation:[Object(s.m)("animationState",[Object(s.l)(":leave",[Object(s.k)({opacity:1,transform:"*"}),Object(s.e)(500,Object(s.k)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),t})();const Go=i.Xb(Xo);var $o=function(t){return t.positive="positive",t.negative="negative",t}({});let Qo=(()=>{class t{constructor(){this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new i.o,this.activate=new i.o,this.deactivate=new i.o,this.dataLabelHeightChanged=new i.o,this.barsForDataLabels=[]}ngOnChanges(t){this.update()}update(){let t;this.updateTooltipSettings(),this.series.length&&(t=this.xScale.bandwidth()),t=Math.round(t);const e=Math.max(this.yScale.domain()[0],0),n={[$o.positive]:0,[$o.negative]:0};let i,r=$o.positive;"normalized"===this.type&&(i=this.series.map(t=>t.value).reduce((t,e)=>t+e,0)),this.bars=this.series.map((s,o)=>{let a=s.value;const c=this.getLabel(s),l=To(c);r=a>0?$o.positive:$o.negative;const h={value:a,label:c,roundEdges:this.roundEdges,data:s,width:t,formattedLabel:l,height:0,x:0,y:0};if("standard"===this.type)h.height=Math.abs(this.yScale(a)-this.yScale(e)),h.x=this.xScale(c),h.y=this.yScale(a<0?0:a);else if("stacked"===this.type){const t=n[r],e=t+a;n[r]+=a,h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e}else if("normalized"===this.type){let t=n[r],e=t+a;n[r]+=a,i>0?(t=100*t/i,e=100*e/i):(t=0,e=0),h.height=this.yScale(t)-this.yScale(e),h.x=0,h.y=this.yScale(e),h.offset0=t,h.offset1=e,a=(e-t).toFixed(2)+"%"}"ordinal"===this.colors.scaleType?h.color=this.colors.getColor(c):"standard"===this.type?(h.color=this.colors.getColor(a),h.gradientStops=this.colors.getLinearGradientStops(a)):(h.color=this.colors.getColor(h.offset1),h.gradientStops=this.colors.getLinearGradientStops(h.offset1,h.offset0));let u=l;return h.ariaLabel=l+" "+a.toLocaleString(),this.seriesName&&(u=`${this.seriesName} \u2022 ${l}`,h.data.series=this.seriesName,h.ariaLabel=this.seriesName+" "+h.ariaLabel),h.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${function(t){return t.toLocaleString().replace(/[&'`"<>]/g,t=>({"&":"&amp;","'":"&#x27;","`":"&#x60;",'"':"&quot;","<":"&lt;",">":"&gt;"}[t]))}(u)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(a):a.toLocaleString()}</span>\n `,h}),this.updateDataLabels()}updateDataLabels(){if("stacked"===this.type){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(t=>t.value).reduce((t,e)=>e>0?t+e:t,0),n=this.series.map(t=>t.value).reduce((t,e)=>e<0?t+e:t,0);t.total=e+n,t.x=0,t.y=0,t.height=this.yScale(t.total>0?e:n),t.width=this.xScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{const e={};return e.series=this.seriesName?this.seriesName:t.label,e.total=t.value,e.x=this.xScale(t.label),e.y=this.yScale(0),e.height=this.yScale(e.total)-this.yScale(0),e.width=this.xScale.bandwidth(),e})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(e=>t.name===e.name&&t.series===e.series)}onClick(t){this.select.emit(t)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[i.Bb],attrs:to,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(i.Ic(0,eo,1,22,"g",0),i.Ic(1,io,2,2,"g",1)),2&t&&(i.oc("ngForOf",e.bars)("ngForTrackBy",e.trackBy),i.Db(1),i.oc("ngIf",e.showDataLabel))},directives:function(){return[r.n,r.o,qo,Do,Jo]},encapsulation:2,data:{animation:[Object(s.m)("animationState",[Object(s.l)(":leave",[Object(s.k)({opacity:1}),Object(s.e)(500,Object(s.k)({opacity:0}))])])]},changeDetection:0}),t})(),Jo=(()=>{class t{constructor(t){this.dimensionsChanged=new i.o,this.horizontalPadding=2,this.verticalPadding=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):To(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[i.Bb],attrs:ro,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(t,e){1&t&&(i.gc(),i.Vb(0,"text",0),i.Kc(1),i.Ub()),2&t&&(i.Eb("text-anchor",e.textAnchor)("transform",e.transform)("x",e.x)("y",e.y),i.Db(1),i.Mc(" ",e.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),t})(),ta=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),ea=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),na=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),ia=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})();Math;let ra=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),sa=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo,ra,ia]]}),t})(),oa=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),aa=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo]]}),t})(),ca=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[Bo,ra,ta]]}),t})(),la=(()=>{class t{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[Bo,Ko,ta,ea,na,ia,sa,oa,ra,aa,ca]}),t})()},LvnZ:function(t,e,n){"use strict";n.d(e,"W",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"o",function(){return s}),n.d(e,"hb",function(){return o}),n.d(e,"u",function(){return a}),n.d(e,"mb",function(){return c}),n.d(e,"s",function(){return l}),n.d(e,"jb",function(){return h}),n.d(e,"t",function(){return u}),n.d(e,"kb",function(){return d}),n.d(e,"q",function(){return f}),n.d(e,"db",function(){return p}),n.d(e,"w",function(){return m}),n.d(e,"ob",function(){return b}),n.d(e,"L",function(){return g}),n.d(e,"qb",function(){return _}),n.d(e,"z",function(){return y}),n.d(e,"vb",function(){return v}),n.d(e,"y",function(){return w}),n.d(e,"sb",function(){return x}),n.d(e,"ab",function(){return C}),n.d(e,"R",function(){return S}),n.d(e,"b",function(){return E}),n.d(e,"k",function(){return k}),n.d(e,"V",function(){return O}),n.d(e,"r",function(){return A}),n.d(e,"eb",function(){return D}),n.d(e,"Ib",function(){return I}),n.d(e,"Y",function(){return T}),n.d(e,"e",function(){return L}),n.d(e,"U",function(){return P}),n.d(e,"x",function(){return R}),n.d(e,"rb",function(){return M}),n.d(e,"i",function(){return j}),n.d(e,"ib",function(){return F}),n.d(e,"bb",function(){return N}),n.d(e,"cb",function(){return V}),n.d(e,"M",function(){return U}),n.d(e,"tb",function(){return B}),n.d(e,"S",function(){return z}),n.d(e,"c",function(){return H}),n.d(e,"Q",function(){return W}),n.d(e,"pb",function(){return K}),n.d(e,"K",function(){return q}),n.d(e,"lb",function(){return Y}),n.d(e,"v",function(){return Z}),n.d(e,"nb",function(){return X}),n.d(e,"ub",function(){return G}),n.d(e,"Z",function(){return $}),n.d(e,"a",function(){return Q}),n.d(e,"j",function(){return J}),n.d(e,"fb",function(){return tt}),n.d(e,"gb",function(){return et}),n.d(e,"g",function(){return nt}),n.d(e,"p",function(){return it}),n.d(e,"X",function(){return rt}),n.d(e,"Bb",function(){return st}),n.d(e,"E",function(){return ot}),n.d(e,"D",function(){return at}),n.d(e,"C",function(){return ct}),n.d(e,"A",function(){return lt}),n.d(e,"G",function(){return ht}),n.d(e,"O",function(){return ut}),n.d(e,"I",function(){return dt}),n.d(e,"Fb",function(){return ft}),n.d(e,"yb",function(){return pt}),n.d(e,"n",function(){return mt}),n.d(e,"H",function(){return bt}),n.d(e,"l",function(){return gt}),n.d(e,"Cb",function(){return _t}),n.d(e,"zb",function(){return yt}),n.d(e,"P",function(){return vt}),n.d(e,"Gb",function(){return wt}),n.d(e,"B",function(){return xt}),n.d(e,"Jb",function(){return Ct}),n.d(e,"wb",function(){return St}),n.d(e,"h",function(){return Et}),n.d(e,"T",function(){return kt}),n.d(e,"f",function(){return Ot}),n.d(e,"Eb",function(){return At}),n.d(e,"N",function(){return Dt}),n.d(e,"Db",function(){return It}),n.d(e,"F",function(){return Tt}),n.d(e,"Hb",function(){return Lt}),n.d(e,"xb",function(){return Pt}),n.d(e,"m",function(){return Rt}),n.d(e,"Ab",function(){return Mt}),n.d(e,"J",function(){return jt});const i="RESET_CL_STORE",r="CLEAR_EFFECT_ERROR_CL",s="EFFECT_ERROR_CL",o="SET_CHILD_NODE_SETTINGS_CL",a="FETCH_INFO_CL_CL",c="SET_INFO_CL",l="FETCH_FEES_CL",h="SET_FEES_CL",u="FETCH_FEE_RATES_CL",d="SET_FEE_RATES_CL",f="FETCH_BALANCE_CL",p="SET_BALANCE_CL",m="FETCH_LOCAL_REMOTE_BALANCE_CL",b="SET_LOCAL_REMOTE_BALANCE_CL",g="GET_NEW_ADDRESS_CL",_="SET_NEW_ADDRESS_CL",y="FETCH_TRANSACTIONS_CL",v="SET_TRANSACTIONS_CL",w="FETCH_PEERS_CL",x="SET_PEERS_CL",C="SAVE_NEW_PEER_CL",S="NEWLY_ADDED_PEER_CL",E="ADD_PEER_CL",k="DETACH_PEER_CL",O="REMOVE_PEER_CL",A="FETCH_CHANNELS_CL",D="SET_CHANNELS_CL",I="UPDATE_CHANNELS_CL",T="SAVE_NEW_CHANNEL_CL",L="CLOSE_CHANNEL_CL",P="REMOVE_CHANNEL_CL",R="FETCH_PAYMENTS_CL",M="SET_PAYMENTS_CL",j="DECODE_PAYMENT_CL",F="SET_DECODED_PAYMENT_CL",N="SEND_PAYMENT_CL",V="SEND_PAYMENT_STATUS_CL",U="GET_QUERY_ROUTES_CL",B="SET_QUERY_ROUTES_CL",z="PEER_LOOKUP_CL",H="CHANNEL_LOOKUP_CL",W="INVOICE_LOOKUP_CL",K="SET_LOOKUP_CL",q="GET_FORWARDING_HISTORY_CL",Y="SET_FORWARDING_HISTORY_CL",Z="FETCH_INVOICES_CL",X="SET_INVOICES_CL",G="SET_TOTAL_INVOICES_CL",$="SAVE_NEW_INVOICE_CL",Q="ADD_INVOICE_CL",J="DELETE_EXPIRED_INVOICE_CL",tt="SET_CHANNEL_TRANSACTION_CL",et="SET_CHANNEL_TRANSACTION_RES_CL";class nt{constructor(t){this.payload=t,this.type=r}}class it{constructor(t){this.payload=t,this.type=s}}class rt{constructor(t){this.payload=t,this.type=i}}class st{constructor(t){this.payload=t,this.type=o}}class ot{constructor(t){this.payload=t,this.type=a}}class at{constructor(){this.type=l}}class ct{constructor(t){this.payload=t,this.type=u}}class lt{constructor(){this.type=f}}class ht{constructor(){this.type=m}}class ut{constructor(t){this.payload=t,this.type=g}}class dt{constructor(){this.type=w}}class ft{constructor(t){this.payload=t,this.type=x}}class pt{constructor(t){this.payload=t,this.type=C}}class mt{constructor(t){this.payload=t,this.type=k}}class bt{constructor(){this.type=R}}class gt{constructor(t){this.payload=t,this.type=j}}class _t{constructor(t){this.payload=t,this.type=F}}class yt{constructor(t){this.payload=t,this.type=N}}class vt{constructor(t){this.payload=t,this.type=U}}class wt{constructor(t){this.payload=t,this.type=B}}class xt{constructor(){this.type=A}}class Ct{constructor(t){this.payload=t,this.type=I}}class St{constructor(t){this.payload=t,this.type=T}}class Et{constructor(t){this.payload=t,this.type=L}}class kt{constructor(t){this.payload=t,this.type=z}}class Ot{constructor(t){this.payload=t,this.type=H}}class At{constructor(t){this.payload=t,this.type=K}}class Dt{constructor(){this.type=q}}class It{constructor(t){this.payload=t,this.type=Y}}class Tt{constructor(t){this.payload=t,this.type=Z}}class Lt{constructor(t){this.payload=t,this.type=G}}class Pt{constructor(t){this.payload=t,this.type=$}}class Rt{constructor(t){this.payload=t,this.type=J}}class Mt{constructor(t){this.payload=t,this.type=tt}}class jt{constructor(){this.type=y}}},Lzq4:function(t,e,n){var i=n("u/Db"),r=n("e/Dd");function s(t){this.mode=i.KANJI,this.data=t}s.getBitsLength=function(t){return 13*t},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var n=r.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");n-=49472}t.put(n=192*(n>>>8&255)+(255&n),13)}},t.exports=s},M9ds:function(t,e,n){"use strict";n.d(e,"a",function(){return $}),n.d(e,"b",function(){return ct}),n.d(e,"c",function(){return q}),n.d(e,"d",function(){return wt}),n.d(e,"e",function(){return gt}),n.d(e,"f",function(){return xt});var i=n("YEUz"),r=n("9b/N"),s=n("1z/I"),o=n("SVse"),a=n("8Y7J"),c=n("UhP/"),l=n("omvX"),h=n("XNiG"),u=n("quSY"),d=n("VRyK"),f=n("xgIS"),p=n("LRne"),m=n("PqYM"),b=n("GS7A"),g=n("JX91"),_=n("/uUt"),y=n("1G5W"),v=n("8LU1"),w=n("SCoL"),x=n("Ht+U"),C=n("9gLZ"),S=n("7KAL");function E(t,e){1&t&&a.mc(0)}const k=["*"];function O(t,e){}const A=function(t){return{animationDuration:t}},D=function(t,e){return{value:t,params:e}},I=["tabBodyWrapper"],T=["tabHeader"];function L(t,e){}function P(t,e){if(1&t&&a.Ic(0,L,0,0,"ng-template",9),2&t){const t=a.hc().$implicit;a.oc("cdkPortalOutlet",t.templateLabel)}}function R(t,e){if(1&t&&a.Kc(0),2&t){const t=a.hc().$implicit;a.Lc(t.textLabel)}}function M(t,e){if(1&t){const t=a.Wb();a.Vb(0,"div",6),a.dc("click",function(){a.zc(t);const n=e.$implicit,i=e.index,r=a.hc(),s=a.wc(1);return r._handleClick(n,s,i)}),a.Vb(1,"div",7),a.Ic(2,P,1,1,"ng-template",8),a.Ic(3,R,1,1,"ng-template",8),a.Ub(),a.Ub()}if(2&t){const t=e.$implicit,n=e.index,i=a.hc();a.Hb("mat-tab-label-active",i.selectedIndex==n),a.oc("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),a.Eb("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.Db(2),a.oc("ngIf",t.templateLabel),a.Db(1),a.oc("ngIf",!t.templateLabel)}}function j(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-tab-body",10),a.dc("_onCentered",function(){return a.zc(t),a.hc()._removeTabBodyWrapperHeight()})("_onCentering",function(e){return a.zc(t),a.hc()._setTabBodyWrapperHeight(e)}),a.Ub()}if(2&t){const t=e.$implicit,n=e.index,i=a.hc();a.Hb("mat-tab-body-active",i.selectedIndex==n),a.oc("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),a.Eb("aria-labelledby",i._getTabLabelId(n))}}const F=["tabListContainer"],N=["tabList"],V=["nextPaginator"],U=["previousPaginator"],B=["mat-tab-nav-bar",""],z=new a.s("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let H=(()=>{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)(a.Pb(a.l),a.Pb(a.B),a.Pb(z),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const W=new a.s("MatTabContent"),K=new a.s("MatTabLabel");let q=(()=>{class t extends s.b{}return t.\u0275fac=function(e){return Y(e||t)},t.\u0275dir=a.Kb({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.Cb([{provide:K,useExisting:t}]),a.Ab]}),t})();const Y=a.Xb(q);class Z{}const X=Object(c.z)(Z),G=new a.s("MAT_TAB_GROUP");let $=(()=>{class t extends X{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new h.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(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 s.i(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.S),a.Pb(G))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){if(1&t&&(a.Ib(n,K,!0),a.Dc(n,W,!0,a.O)),2&t){let t;a.vc(t=a.ec())&&(e.templateLabel=t.first),a.vc(t=a.ec())&&(e._explicitContent=t.first)}},viewQuery:function(t,e){if(1&t&&a.Ec(a.O,!0),2&t){let t;a.vc(t=a.ec())&&(e._implicitContent=t.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.Ab,a.Bb],ngContentSelectors:k,decls:1,vars:0,template:function(t,e){1&t&&(a.nc(),a.Ic(0,E,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:Object(b.m)("translateTab",[Object(b.j)("center, void, left-origin-center, right-origin-center",Object(b.k)({transform:"none"})),Object(b.j)("left",Object(b.k)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(b.j)("right",Object(b.k)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(b.l)("* => left, * => right, left => center, right => center",Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(b.l)("void => left-origin-center",[Object(b.k)({transform:"translate3d(-100%, 0, 0)"}),Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(b.l)("void => right-origin-center",[Object(b.k)({transform:"translate3d(100%, 0, 0)"}),Object(b.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let J=(()=>{class t extends s.c{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=u.a.EMPTY,this._leavingSub=u.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(g.a)(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)(a.Pb(a.j),a.Pb(a.S),a.Pb(Object(a.X)(()=>et)),a.Pb(o.d))},t.\u0275dir=a.Kb({type:t,selectors:[["","matTabBodyHost",""]],features:[a.Ab]}),t})(),tt=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.a.EMPTY,this._translateTabComplete=new h.a,this._onCentering=new a.o,this._beforeCentering=new a.o,this._afterLeavingCenter=new a.o,this._onCentered=new a.o(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(Object(_.a)((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)(a.Pb(a.l),a.Pb(C.b,8),a.Pb(a.h))},t.\u0275dir=a.Kb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),et=(()=>{class t extends tt{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(C.b,8),a.Pb(a.h))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){if(1&t&&a.Pc(s.g,!0),2&t){let t;a.vc(t=a.ec())&&(e._portalHost=t.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.Ab],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Vb(0,"div",0,1),a.dc("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),a.Ic(2,O,0,0,"ng-template",2),a.Ub()),2&t&&a.oc("@translateTab",a.tc(3,D,e._position,a.sc(1,A,e.animationDuration)))},directives:[J],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:[Q.translateTab]}}),t})();const nt=new a.s("MAT_TABS_CONFIG");let it=0;class rt{}class st{constructor(t){this._elementRef=t}}const ot=Object(c.x)(Object(c.y)(st),"primary");let at=(()=>{class t extends ot{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new a.F,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.a.EMPTY,this._tabLabelSubscription=u.a.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.o,this.focusChange=new a.o,this.animationDone=new a.o,this.selectedTabChange=new a.o(!0),this._groupId=it++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,this.dynamicHeight=!(!n||null==n.dynamicHeight)&&n.dynamicHeight}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Object(v.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Object(v.f)(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(Object(g.a)(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(t=>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 rt;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(d.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)(a.Pb(a.l),a.Pb(a.h),a.Pb(nt,8),a.Pb(l.a,8))},t.\u0275dir=a.Kb({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:[a.Ab]}),t})(),ct=(()=>{class t extends at{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(nt,8),a.Pb(l.a,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){if(1&t&&a.Ib(n,$,!0),2&t){let t;a.vc(t=a.ec())&&(e._allTabs=t)}},viewQuery:function(t,e){if(1&t&&(a.Pc(I,!0),a.Pc(T,!0)),2&t){let t;a.vc(t=a.ec())&&(e._tabBodyWrapper=t.first),a.vc(t=a.ec())&&(e._tabHeader=t.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.Hb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.Cb([{provide:G,useExisting:t}]),a.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&&(a.Vb(0,"mat-tab-header",0,1),a.dc("indexFocused",function(t){return e._focusChanged(t)})("selectFocusedIndex",function(t){return e.selectedIndex=t}),a.Ic(2,M,4,14,"div",2),a.Ub(),a.Vb(3,"div",3,4),a.Ic(5,j,1,8,"mat-tab-body",5),a.Ub()),2&t&&(a.oc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.Db(2),a.oc("ngForOf",e._tabs),a.Db(1),a.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Db(2),a.oc("ngForOf",e._tabs))},directives:function(){return[mt,o.n,ut,c.r,i.e,o.o,s.c,et]},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 lt{}const ht=Object(c.z)(lt);let ut=(()=>{class t extends ht{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)(a.Pb(a.l))},t.\u0275dir=a.Kb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.Eb("aria-disabled",!!e.disabled),a.Hb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.Ab]}),t})();const dt=Object(w.f)({passive:!0});let ft=(()=>{class t{constructor(t,e,n,i,r,s,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=r,this._platform=s,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.o,this.indexFocused=new a.o,r.runOutsideAngular(()=>{Object(f.a)(t.nativeElement,"mouseleave").pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Object(v.f)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Object(f.a)(this._previousPaginator.nativeElement,"touchstart",dt).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(f.a)(this._nextPaginator.nativeElement,"touchstart",dt).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(p.a)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(d.a)(t,e,this._items.changes).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(y.a)(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(!Object(x.r)(t))switch(t.keyCode){case x.e:case x.m: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="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.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 s,o;"ltr"==this._getLayoutDirection()?(s=i,o=s+r):(o=this._tabList.nativeElement.offsetWidth-i,s=o-r);const a=this.scrollDistance,c=this.scrollDistance+n;s<a?this.scrollDistance-=a-s+60:o>c&&(this.scrollDistance+=o-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(),Object(m.a)(650,100).pipe(Object(y.a)(Object(d.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)(a.Pb(a.l),a.Pb(a.h),a.Pb(S.e),a.Pb(C.b,8),a.Pb(a.B),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),pt=(()=>{class t extends ft{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(v.c)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(S.e),a.Pb(C.b,8),a.Pb(a.B),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,inputs:{disableRipple:"disableRipple"},features:[a.Ab]}),t})(),mt=(()=>{class t extends pt{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(S.e),a.Pb(C.b,8),a.Pb(a.B),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){if(1&t&&a.Ib(n,ut,!1),2&t){let t;a.vc(t=a.ec())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Ec(H,!0),a.Ec(F,!0),a.Ec(N,!0),a.Pc(V,!0),a.Pc(U,!0)),2&t){let t;a.vc(t=a.ec())&&(e._inkBar=t.first),a.vc(t=a.ec())&&(e._tabListContainer=t.first),a.vc(t=a.ec())&&(e._tabList=t.first),a.vc(t=a.ec())&&(e._nextPaginator=t.first),a.vc(t=a.ec())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.Hb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.Ab],ngContentSelectors:k,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&&(a.nc(),a.Vb(0,"div",0,1),a.dc("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a.Qb(2,"div",2),a.Ub(),a.Vb(3,"div",3,4),a.dc("keydown",function(t){return e._handleKeydown(t)}),a.Vb(5,"div",5,6),a.dc("cdkObserveContent",function(){return e._onContentChanges()}),a.Vb(7,"div",7),a.mc(8),a.Ub(),a.Qb(9,"mat-ink-bar"),a.Ub(),a.Ub(),a.Vb(10,"div",8,9),a.dc("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a.Qb(12,"div",2),a.Ub()),2&t&&(a.Hb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.oc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Db(5),a.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Db(5),a.Hb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.oc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.r,r.a,H],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})(),bt=(()=>{class t extends ft{constructor(t,e,n,i,r,s,o){super(t,i,r,e,n,s,o),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=Object(v.c)(t)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe(Object(g.a)(null),Object(y.a)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const t=this._items.toArray();for(let e=0;e<t.length;e++)if(t[e].active)return this.selectedIndex=e,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(C.b,8),a.Pb(a.B),a.Pb(a.h),a.Pb(S.e),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[a.Ab]}),t})(),gt=(()=>{class t extends bt{constructor(t,e,n,i,r,s,o){super(t,e,n,i,r,s,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(C.b,8),a.Pb(a.B),a.Pb(a.h),a.Pb(S.e),a.Pb(w.a),a.Pb(l.a,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(t,e,n){if(1&t&&a.Ib(n,wt,!0),2&t){let t;a.vc(t=a.ec())&&(e._items=t)}},viewQuery:function(t,e){if(1&t&&(a.Ec(H,!0),a.Ec(F,!0),a.Ec(N,!0),a.Pc(V,!0),a.Pc(U,!0)),2&t){let t;a.vc(t=a.ec())&&(e._inkBar=t.first),a.vc(t=a.ec())&&(e._tabListContainer=t.first),a.vc(t=a.ec())&&(e._tabList=t.first),a.vc(t=a.ec())&&(e._nextPaginator=t.first),a.vc(t=a.ec())&&(e._previousPaginator=t.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(t,e){2&t&&a.Hb("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:[a.Ab],attrs:B,ngContentSelectors:k,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&&(a.nc(),a.Vb(0,"div",0,1),a.dc("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),a.Qb(2,"div",2),a.Ub(),a.Vb(3,"div",3,4),a.dc("keydown",function(t){return e._handleKeydown(t)}),a.Vb(5,"div",5,6),a.dc("cdkObserveContent",function(){return e._onContentChanges()}),a.Vb(7,"div",7),a.mc(8),a.Ub(),a.Qb(9,"mat-ink-bar"),a.Ub(),a.Ub(),a.Vb(10,"div",8,9),a.dc("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),a.Qb(12,"div",2),a.Ub()),2&t&&(a.Hb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.oc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Db(5),a.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Db(5),a.Hb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.oc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.r,r.a,H],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 _t{}const yt=Object(c.C)(Object(c.y)(Object(c.z)(_t)));let vt=(()=>{class t extends yt{constructor(t,e,n,i,r,s){super(),this._tabNavBar=t,this.elementRef=e,this._focusMonitor=r,this._isActive=!1,this.rippleConfig=n||{},this.tabIndex=parseInt(i)||0,"NoopAnimations"===s&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(t){Object(v.c)(t)!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink())}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)(a.Pb(bt),a.Pb(a.l),a.Pb(c.h,8),a.ac("tabindex"),a.Pb(i.h),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,inputs:{active:"active"},features:[a.Ab]}),t})(),wt=(()=>{class t extends vt{constructor(t,e,n,i,r,s,o,a){super(t,e,r,s,o,a),this._tabLinkRipple=new c.u(this,n,e,i),this._tabLinkRipple.setupTriggerEvents(e.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(gt),a.Pb(a.l),a.Pb(a.B),a.Pb(w.a),a.Pb(c.h,8),a.ac("tabindex"),a.Pb(i.h),a.Pb(l.a,8))},t.\u0275dir=a.Kb({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){2&t&&(a.Eb("aria-current",e.active?"page":null)("aria-disabled",e.disabled)("tabIndex",e.tabIndex),a.Hb("mat-tab-disabled",e.disabled)("mat-tab-label-active",e.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.Ab]}),t})(),xt=(()=>{class t{}return t.\u0275mod=a.Nb({type:t}),t.\u0275inj=a.Mb({factory:function(e){return new(e||t)},imports:[[o.c,c.i,s.h,c.s,r.c,i.a],c.i]}),t})()},MCVq:function(t,e,n){"use strict";n.d(e,"jb",function(){return i}),n.d(e,"f",function(){return r}),n.d(e,"m",function(){return s}),n.d(e,"zb",function(){return o}),n.d(e,"t",function(){return a}),n.d(e,"Eb",function(){return c}),n.d(e,"y",function(){return l}),n.d(e,"Lb",function(){return h}),n.d(e,"sb",function(){return u}),n.d(e,"db",function(){return d}),n.d(e,"k",function(){return f}),n.d(e,"ib",function(){return p}),n.d(e,"rb",function(){return m}),n.d(e,"eb",function(){return b}),n.d(e,"a",function(){return g}),n.d(e,"r",function(){return _}),n.d(e,"Bb",function(){return y}),n.d(e,"p",function(){return v}),n.d(e,"wb",function(){return w}),n.d(e,"w",function(){return x}),n.d(e,"Ib",function(){return C}),n.d(e,"o",function(){return S}),n.d(e,"z",function(){return E}),n.d(e,"q",function(){return k}),n.d(e,"vb",function(){return O}),n.d(e,"Mb",function(){return A}),n.d(e,"Ab",function(){return D}),n.d(e,"fc",function(){return I}),n.d(e,"qb",function(){return T}),n.d(e,"g",function(){return L}),n.d(e,"hb",function(){return P}),n.d(e,"b",function(){return R}),n.d(e,"ic",function(){return M}),n.d(e,"c",function(){return j}),n.d(e,"jc",function(){return F}),n.d(e,"kb",function(){return N}),n.d(e,"Ob",function(){return V}),n.d(e,"lb",function(){return U}),n.d(e,"mb",function(){return B}),n.d(e,"u",function(){return z}),n.d(e,"Fb",function(){return H}),n.d(e,"Pb",function(){return W}),n.d(e,"A",function(){return K}),n.d(e,"Qb",function(){return q}),n.d(e,"B",function(){return Y}),n.d(e,"Rb",function(){return Z}),n.d(e,"x",function(){return X}),n.d(e,"Kb",function(){return G}),n.d(e,"tb",function(){return $}),n.d(e,"ub",function(){return Q}),n.d(e,"s",function(){return J}),n.d(e,"Db",function(){return tt}),n.d(e,"T",function(){return et}),n.d(e,"Jb",function(){return nt}),n.d(e,"xb",function(){return it}),n.d(e,"yb",function(){return rt}),n.d(e,"Q",function(){return st}),n.d(e,"R",function(){return ot}),n.d(e,"Z",function(){return at}),n.d(e,"ab",function(){return ct}),n.d(e,"ec",function(){return lt}),n.d(e,"fb",function(){return ht}),n.d(e,"e",function(){return ut}),n.d(e,"bb",function(){return dt}),n.d(e,"Gb",function(){return ft}),n.d(e,"S",function(){return pt}),n.d(e,"Cb",function(){return mt}),n.d(e,"U",function(){return bt}),n.d(e,"Nb",function(){return gt}),n.d(e,"v",function(){return _t}),n.d(e,"Hb",function(){return yt}),n.d(e,"i",function(){return vt}),n.d(e,"n",function(){return wt}),n.d(e,"nb",function(){return xt}),n.d(e,"Xb",function(){return Ct}),n.d(e,"H",function(){return St}),n.d(e,"M",function(){return Et}),n.d(e,"ac",function(){return kt}),n.d(e,"Ub",function(){return Ot}),n.d(e,"l",function(){return At}),n.d(e,"Tb",function(){return Dt}),n.d(e,"F",function(){return It}),n.d(e,"D",function(){return Tt}),n.d(e,"K",function(){return Lt}),n.d(e,"C",function(){return Pt}),n.d(e,"N",function(){return Rt}),n.d(e,"E",function(){return Mt}),n.d(e,"hc",function(){return jt}),n.d(e,"Sb",function(){return Ft}),n.d(e,"j",function(){return Nt}),n.d(e,"d",function(){return Vt}),n.d(e,"kc",function(){return Ut}),n.d(e,"pb",function(){return Bt}),n.d(e,"cc",function(){return zt}),n.d(e,"ob",function(){return Ht}),n.d(e,"I",function(){return Wt}),n.d(e,"dc",function(){return Kt}),n.d(e,"O",function(){return qt}),n.d(e,"P",function(){return Yt}),n.d(e,"L",function(){return Zt}),n.d(e,"Vb",function(){return Xt}),n.d(e,"G",function(){return Gt}),n.d(e,"X",function(){return $t}),n.d(e,"Wb",function(){return Qt}),n.d(e,"V",function(){return Jt}),n.d(e,"cb",function(){return te}),n.d(e,"gc",function(){return ee}),n.d(e,"gb",function(){return ne}),n.d(e,"h",function(){return ie}),n.d(e,"Zb",function(){return re}),n.d(e,"W",function(){return se}),n.d(e,"Yb",function(){return oe}),n.d(e,"Y",function(){return ae}),n.d(e,"bc",function(){return ce}),n.d(e,"J",function(){return le});const i="RESET_LND_STORE",r="CLEAR_EFFECT_ERROR_LND",s="EFFECT_ERROR_LND",o="SET_CHILD_NODE_SETTINGS_LND",a="FETCH_INFO_LND",c="SET_INFO_LND",l="FETCH_PEERS_LND",h="SET_PEERS_LND",u="SAVE_NEW_PEER_LND",d="NEWLY_ADDED_PEER_LND",f="DETACH_PEER_LND",p="REMOVE_PEER_LND",m="SAVE_NEW_INVOICE_LND",b="NEWLY_SAVED_INVOICE_LND",g="ADD_INVOICE_LND",_="FETCH_FEES_LND",y="SET_FEES_LND",v="FETCH_BALANCE_LND",w="SET_BALANCE_LND",x="FETCH_NETWORK_LND",C="SET_NETWORK_LND",S="FETCH_ALL_CHANNELS_LND",E="FETCH_PENDING_CHANNELS_LND",k="FETCH_CLOSED_CHANNELS_LND",O="SET_ALL_CHANNELS_LND",A="SET_PENDING_CHANNELS_LND",D="SET_CLOSED_CHANNELS_LND",I="UPDATE_CHANNELS_LND",T="SAVE_NEW_CHANNEL_LND",L="CLOSE_CHANNEL_LND",P="REMOVE_CHANNEL_LND",R="BACKUP_CHANNELS_LND",M="VERIFY_CHANNELS_LND",j="BACKUP_CHANNELS_RES_LND",F="VERIFY_CHANNELS_RES_LND",N="RESTORE_CHANNELS_LIST_LND",V="SET_RESTORE_CHANNELS_LIST_LND",U="RESTORE_CHANNELS_LND",B="RESTORE_CHANNELS_RES_LND",z="FETCH_INVOICES_LND",H="SET_INVOICES_LND",W="SET_TOTAL_INVOICES_LND",K="FETCH_TRANSACTIONS_LND",q="SET_TRANSACTIONS_LND",Y="FETCH_UTXOS_LND",Z="SET_UTXOS_LND",X="FETCH_PAYMENTS_LND",G="SET_PAYMENTS_LND",$="SEND_PAYMENT_LND",Q="SEND_PAYMENT_STATUS_LND",J="FETCH_GRAPH_NODE_LND",tt="SET_GRAPH_NODE_LND",et="GET_NEW_ADDRESS_LND",nt="SET_NEW_ADDRESS_LND",it="SET_CHANNEL_TRANSACTION_LND",rt="SET_CHANNEL_TRANSACTION_RES_LND",st="GEN_SEED_LND",ot="GEN_SEED_RESPONSE_LND",at="INIT_WALLET_LND",ct="INIT_WALLET_RESPONSE_LND",lt="UNLOCK_WALLET_LND",ht="PEER_LOOKUP_LND",ut="CHANNEL_LOOKUP_LND",dt="INVOICE_LOOKUP_LND",ft="SET_LOOKUP_LND",pt="GET_FORWARDING_HISTORY_LND",mt="SET_FORWARDING_HISTORY_LND",bt="GET_QUERY_ROUTES_LND",gt="SET_QUERY_ROUTES_LND",_t="FETCH_LOOP_SWAPS_LND",yt="SET_LOOP_SWAPS_LND";class vt{constructor(t){this.payload=t,this.type=r}}class wt{constructor(t){this.payload=t,this.type=s}}class xt{constructor(t){this.payload=t,this.type=i}}class Ct{constructor(t){this.payload=t,this.type=o}}class St{constructor(t){this.payload=t,this.type=a}}class Et{constructor(){this.type=l}}class kt{constructor(t){this.payload=t,this.type=h}}class Ot{constructor(t){this.payload=t,this.type=u}}class At{constructor(t){this.payload=t,this.type=f}}class Dt{constructor(t){this.payload=t,this.type=m}}class It{constructor(){this.type=_}}class Tt{constructor(t){this.payload=t,this.type=v}}class Lt{constructor(){this.type=x}}class Pt{constructor(){this.type=S}}class Rt{constructor(){this.type=E}}class Mt{constructor(){this.type=k}}class jt{constructor(t){this.payload=t,this.type=I}}class Ft{constructor(t){this.payload=t,this.type=T}}class Nt{constructor(t){this.payload=t,this.type=L}}class Vt{constructor(t){this.payload=t,this.type=R}}class Ut{constructor(t){this.payload=t,this.type=M}}class Bt{constructor(){this.type=N}}class zt{constructor(t){this.payload=t,this.type=V}}class Ht{constructor(t){this.payload=t,this.type=U}}class Wt{constructor(t){this.payload=t,this.type=z}}class Kt{constructor(t){this.payload=t,this.type=W}}class qt{constructor(){this.type=K}}class Yt{constructor(){this.type=Y}}class Zt{constructor(){this.type=X}}class Xt{constructor(t){this.payload=t,this.type=$}}class Gt{constructor(t){this.payload=t,this.type=J}}class $t{constructor(t){this.payload=t,this.type=et}}class Qt{constructor(t){this.payload=t,this.type=it}}class Jt{constructor(t){this.payload=t,this.type=st}}class te{constructor(t){this.payload=t,this.type=at}}class ee{constructor(t){this.payload=t,this.type=lt}}class ne{constructor(t){this.payload=t,this.type=ht}}class ie{constructor(t){this.payload=t,this.type=ut}}class re{constructor(t){this.payload=t,this.type=ft}}class se{constructor(t){this.payload=t,this.type=pt}}class oe{constructor(t){this.payload=t,this.type=mt}}class ae{constructor(t){this.payload=t,this.type=bt}}class ce{constructor(t){this.payload=t,this.type=gt}}class le{constructor(){this.type=_t}}},MwBp:function(t,e,n){"use strict";var i=n("86MQ"),r=n("AQYT"),s=n("P7XM"),o=n("6lN/"),a=i.assert;function c(t){o.call(this,"short",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(t,e,n,i){o.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(e,16),this.y=new r(n,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(t,e,n,i){o.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(e,16),this.y=new r(n,16),this.z=new r(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(c,o),t.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new r(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);e=(e=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(t.lambda)n=new r(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?n=s[0]:a(0===this.g.mul(n=s[1]).x.cmp(this.g.x.redMul(e)))}return{beta:e,lambda:n,basis:t.basis?t.basis.map(function(t){return{a:new r(t.a,16),b:new r(t.b,16)}}):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:r.mont(t),n=new r(2).toRed(e).redInvm(),i=n.redNeg(),s=new r(3).toRed(e).redNeg().redSqrt().redMul(n);return[i.redAdd(s).fromRed(),i.redSub(s).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,n,i,s,o,a,c,l,h,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,f=this.n.clone(),p=new r(1),m=new r(0),b=new r(0),g=new r(1),_=0;0!==d.cmpn(0);){var y=f.div(d);l=f.sub(y.mul(d)),h=b.sub(y.mul(p));var v=g.sub(y.mul(m));if(!i&&l.cmp(u)<0)e=c.neg(),n=p,i=l.neg(),s=h;else if(i&&2==++_)break;c=l,f=d,d=l,b=p,p=h,g=m,m=v}o=l.neg(),a=h;var w=i.sqr().add(s.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=e,a=n),i.negative&&(i=i.neg(),s=s.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:i,b:s},{a:o,b:a}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],i=e[1],r=i.b.mul(t).divRound(this.n),s=n.b.neg().mul(t).divRound(this.n),o=r.mul(n.a),a=s.mul(i.a),c=r.mul(n.b),l=s.mul(i.b);return{k1:t.sub(o).sub(a),k2:c.add(l).neg()}},c.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(0!==i.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var s=i.fromRed().isOdd();return(e&&!s||!e&&s)&&(i=i.redNeg()),this.point(t,i)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,i=this.a.redMul(e),r=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===n.redSqr().redISub(r).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,n){for(var i=this._endoWnafT1,r=this._endoWnafT2,s=0;s<t.length;s++){var o=this._endoSplit(e[s]),a=t[s],c=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),i[2*s]=a,i[2*s+1]=c,r[2*s]=o.k1,r[2*s+1]=o.k2}for(var l=this._wnafMulAdd(1,i,r,2*s,n),h=0;h<2*s;h++)i[h]=null,r[h]=null;return l},s(l,o.BasePoint),c.prototype.point=function(t,e,n){return new l(this,t,e,n)},c.prototype.pointFromJSON=function(t,e){return l.fromJSON(this,t,e)},l.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,i=function(t){return n.point(t.x.redMul(n.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(t,e,n){"string"==typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],n);if(!e[2])return i;function r(e){return t.point(e[0],e[1],n)}var s=e[2];return i.precomputed={beta:null,doubles:s.doubles&&{step:s.doubles.step,points:[i].concat(s.doubles.points.map(r))},naf:s.naf&&{wnd:s.naf.wnd,points:[i].concat(s.naf.points.map(r))}},i},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),i=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)},l.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),r=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(i),s=r.redSqr().redISub(this.x.redAdd(this.x)),o=r.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(t){return t=new r(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){var i=[this,e],r=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,r):this.curve._wnafMulAdd(1,i,r,2)},l.prototype.jmulAdd=function(t,e,n){var i=[this,e],r=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,r,!0):this.curve._wnafMulAdd(1,i,r,2,!0)},l.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},l.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return e},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(h,o.BasePoint),c.prototype.jpoint=function(t,e,n){return new h(this,t,e,n)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),i=this.y.redMul(e).redMul(t);return this.curve.point(n,i)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(e),r=t.x.redMul(n),s=this.y.redMul(e.redMul(t.z)),o=t.y.redMul(n.redMul(this.z)),a=i.redSub(r),c=s.redSub(o);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),h=l.redMul(a),u=i.redMul(l),d=c.redSqr().redIAdd(h).redISub(u).redISub(u),f=c.redMul(u.redISub(d)).redISub(s.redMul(h)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,f,p)},h.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,i=t.x.redMul(e),r=this.y,s=t.y.redMul(e).redMul(this.z),o=n.redSub(i),a=r.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),h=n.redMul(c),u=a.redSqr().redIAdd(l).redISub(h).redISub(h),d=a.redMul(h.redISub(u)).redISub(r.redMul(l)),f=this.z.redMul(o);return this.curve.jpoint(u,d,f)},h.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}var i=this.curve.a,r=this.curve.tinv,s=this.x,o=this.y,a=this.z,c=a.redSqr().redSqr(),l=o.redAdd(o);for(n=0;n<t;n++){var h=s.redSqr(),u=l.redSqr(),d=u.redSqr(),f=h.redAdd(h).redIAdd(h).redIAdd(i.redMul(c)),p=s.redMul(u),m=f.redSqr().redISub(p.redAdd(p)),b=p.redISub(m),g=f.redMul(b);g=g.redIAdd(g).redISub(d);var _=l.redMul(a);n+1<t&&(c=c.redMul(d)),s=m,a=_,l=g}return this.curve.jpoint(s,l.redMul(r),a)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},h.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var i=this.x.redSqr(),r=this.y.redSqr(),s=r.redSqr(),o=this.x.redAdd(r).redSqr().redISub(i).redISub(s);o=o.redIAdd(o);var a=i.redAdd(i).redIAdd(i),c=a.redSqr().redISub(o).redISub(o),l=s.redIAdd(s);l=(l=l.redIAdd(l)).redIAdd(l),t=c,e=a.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var h=this.x.redSqr(),u=this.y.redSqr(),d=u.redSqr(),f=this.x.redAdd(u).redSqr().redISub(h).redISub(d);f=f.redIAdd(f);var p=h.redAdd(h).redIAdd(h),m=p.redSqr(),b=d.redIAdd(d);b=(b=b.redIAdd(b)).redIAdd(b),t=m.redISub(f).redISub(f),e=p.redMul(f.redISub(t)).redISub(b),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},h.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var i=this.x.redSqr(),r=this.y.redSqr(),s=r.redSqr(),o=this.x.redAdd(r).redSqr().redISub(i).redISub(s);o=o.redIAdd(o);var a=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),c=a.redSqr().redISub(o).redISub(o);t=c;var l=s.redIAdd(s);l=(l=l.redIAdd(l)).redIAdd(l),e=a.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var h=this.z.redSqr(),u=this.y.redSqr(),d=this.x.redMul(u),f=this.x.redSub(h).redMul(this.x.redAdd(h));f=f.redAdd(f).redIAdd(f);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);t=f.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(u).redISub(h);var b=u.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),e=f.redMul(p.redISub(t)).redISub(b)}return this.curve.jpoint(t,e,n)},h.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,i=this.z,r=i.redSqr().redSqr(),s=e.redSqr(),o=n.redSqr(),a=s.redAdd(s).redIAdd(s).redIAdd(t.redMul(r)),c=e.redAdd(e),l=(c=c.redIAdd(c)).redMul(o),h=a.redSqr().redISub(l.redAdd(l)),u=l.redISub(h),d=o.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=a.redMul(u).redISub(d),p=n.redAdd(n).redMul(i);return this.curve.jpoint(h,f,p)},h.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),i=e.redSqr(),r=t.redAdd(t).redIAdd(t),s=r.redSqr(),o=this.x.redAdd(e).redSqr().redISub(t).redISub(i),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(s)).redSqr(),c=i.redIAdd(i);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=r.redIAdd(o).redSqr().redISub(s).redISub(a).redISub(c),h=e.redMul(l);h=(h=h.redIAdd(h)).redIAdd(h);var u=this.x.redMul(a).redISub(h);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(a)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var f=this.z.redAdd(o).redSqr().redISub(n).redISub(a);return this.curve.jpoint(u,d,f)},h.prototype.mul=function(t,e){return t=new r(t,e),this.curve._wnafMul(this,t)},h.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(0!==this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0))return!1;var i=e.redMul(this.z),r=n.redMul(t.z);return 0===this.y.redMul(r).redISub(t.y.redMul(i)).cmpn(0)},h.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(e);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(r),0===this.x.cmp(n))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},MzeL:function(t,e,n){"use strict";var i=e;i.version=n("KAEN").version,i.utils=n("86MQ"),i.rand=n("/ayr"),i.curve=n("QTa/"),i.curves=n("DLvh"),i.ec=n("uagp"),i.eddsa=n("lF1L")},N2jm:function(t,e,n){"use strict";const i=n("P7XM"),r=n("xZGU").Buffer,s=n("g2Dh"),o=n("i3FT");function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){s.call(this,"der",t)}function l(t){return t<10?"0"+t:t}t.exports=a,a.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},i(c,s),c.prototype._encodeComposite=function(t,e,n,i){const s=function(t,e,n,i){let r;if("seqof"===t?t="seq":"setof"===t&&(t="set"),o.tagByName.hasOwnProperty(t))r=o.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return i.error("Unknown tag: "+t);r=t}return r>=31?i.error("Multi-octet tag encoding unsupported"):(e||(r|=32),r|=o.tagClassByName[n||"universal"]<<6,r)}(t,e,n,this.reporter);if(i.length<128){const t=r.alloc(2);return t[0]=s,t[1]=i.length,this._createEncoderBuffer([t,i])}let a=1;for(let r=i.length;r>=256;r>>=8)a++;const c=r.alloc(2+a);c[0]=s,c[1]=128|a;for(let r=1+a,o=i.length;o>0;r--,o>>=8)c[r]=255&o;return this._createEncoderBuffer([c,i])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=r.alloc(2*t.length);for(let n=0;n<t.length;n++)e.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},c.prototype._encodeObjid=function(t,e,n){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let i=0;for(let r=0;r<t.length;r++){let e=t[r];for(i++;e>=128;e>>=7)i++}const s=r.alloc(i);let o=s.length-1;for(let r=t.length-1;r>=0;r--){let e=t[r];for(s[o--]=127&e;(e>>=7)>0;)s[o--]=128|127&e}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(t,e){let n;const i=new Date(t);return"gentime"===e?n=[l(i.getUTCFullYear()),l(i.getUTCMonth()+1),l(i.getUTCDate()),l(i.getUTCHours()),l(i.getUTCMinutes()),l(i.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[l(i.getUTCFullYear()%100),l(i.getUTCMonth()+1),l(i.getUTCDate()),l(i.getUTCHours()),l(i.getUTCMinutes()),l(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!r.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=r.from(e)}if(r.isBuffer(t)){let e=t.length;0===t.length&&e++;const n=r.alloc(e);return t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let r=t;r>=256;r>>=8)n++;const i=new Array(n);for(let r=i.length-1;r>=0;r--)i[r]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(r.from(i))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,n){const i=this._baseState;let r;if(null===i.default)return!1;const s=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),s.length!==i.defaultBuffer.length)return!1;for(r=0;r<s.length;r++)if(s[r]!==i.defaultBuffer[r])return!1;return!0}},ND7S:function(t,e,n){"use strict";const i=e;i.der=n("N2jm"),i.pem=n("hbMA")},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return i})},NNVn:function(t,e,n){(e=t.exports=n("zzXz")).Stream=e,e.Readable=e,e.Writable=n("Sc7j"),e.Duplex=n("Xn1i"),e.Transform=n("8cin"),e.PassThrough=n("nSiv"),e.finished=n("QqdZ"),e.pipeline=n("rE/R")},NPxG:function(t,e,n){var i=n("ekOh"),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case i.L:return r[4*(t-1)+0];case i.M:return r[4*(t-1)+1];case i.Q:return r[4*(t-1)+2];case i.H:return r[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case i.L:return s[4*(t-1)+0];case i.M:return s[4*(t-1)+1];case i.Q:return s[4*(t-1)+2];case i.H:return s[4*(t-1)+3];default:return}}},NQVK:function(t,e,n){var i=n("hwdV").Buffer,r=n("jIre");function s(t,e,n){var s=e.length,o=r(e,t._cache);return t._cache=t._cache.slice(s),t._prev=i.concat([t._prev,n?e:o]),o}e.encrypt=function(t,e,n){for(var r,o=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){o=i.concat([o,s(t,e,n)]);break}o=i.concat([o,s(t,e.slice(0,r=t._cache.length),n)]),e=e.slice(r)}return o}},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),r=n("Cfvw"),s=n("EY2u");function o(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(r.a)(n):Object(s.b)()).subscribe(e)})}},"Nv++":function(t,e,n){"use strict";n.d(e,"a",function(){return Ot}),n.d(e,"b",function(){return At});var i=n("8Y7J");function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){s(t,e,n[e])})}return t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],i=!0,r=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!e||n.length!==e);i=!0);}catch(c){r=!0,s=c}finally{try{i||null==a.return||a.return()}finally{if(r)throw s}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c={},l={};try{"undefined"!=typeof window&&(c=window),"undefined"!=typeof document&&(l=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(Dt){}var h=(c.navigator||{}).userAgent,u=void 0===h?"":h,d=c,f=l,p=!!f.documentElement&&!!f.head&&"function"==typeof f.addEventListener&&"function"==typeof f.createElement,m=(~u.indexOf("MSIE")||u.indexOf("Trident/"),"svg-inline--fa"),b=[1,2,3,4,5,6,7,8,9,10],g=b.concat([11,12,13,14,15,16,17,18,19,20]),_={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},y=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",_.GROUP,_.SWAP_OPACITY,_.PRIMARY,_.SECONDARY].concat(b.map(function(t){return"".concat(t,"x")})).concat(g.map(function(t){return"w-".concat(t)})),d.FontAwesomeConfig||{});f&&"function"==typeof f.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var e=a(t,2),n=e[1],i=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=f.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(e[0]));null!=i&&(y[n]=i)});var v=o({},{familyPrefix:"fa",replacementClass:m,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},y);v.autoReplaceSvg||(v.observeMutations=!1);var w=o({},v);d.FontAwesomeConfig=w;var x=d||{};x.___FONT_AWESOME___||(x.___FONT_AWESOME___={}),x.___FONT_AWESOME___.styles||(x.___FONT_AWESOME___.styles={}),x.___FONT_AWESOME___.hooks||(x.___FONT_AWESOME___.hooks={}),x.___FONT_AWESOME___.shims||(x.___FONT_AWESOME___.shims=[]);var C=x.___FONT_AWESOME___,S=[];p&&((f.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(f.readyState)||f.addEventListener("DOMContentLoaded",function t(){f.removeEventListener("DOMContentLoaded",t),S.map(function(t){return t()})}));var E,k="pending",O="settled",A="fulfilled",D="rejected",I=function(){},T="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,L="undefined"==typeof setImmediate?setTimeout:setImmediate,P=[];function R(){for(var t=0;t<P.length;t++)P[t][0](P[t][1]);P=[],E=!1}function M(t,e){P.push([t,e]),E||(E=!0,L(R,0))}function j(t){var e=t.owner,n=e._state,i=e._data,r=t[n],s=t.then;if("function"==typeof r){n=A;try{i=r(i)}catch(Dt){U(s,Dt)}}F(s,i)||(n===A&&N(s,i),n===D&&U(s,i))}function F(t,e){var n;try{if(t===e)throw new TypeError("A promises callback cannot return that same promise.");if(e&&("function"==typeof e||"object"===r(e))){var i=e.then;if("function"==typeof i)return i.call(e,function(i){n||(n=!0,e===i?V(t,i):N(t,i))},function(e){n||(n=!0,U(t,e))}),!0}}catch(Dt){return n||U(t,Dt),!0}return!1}function N(t,e){t!==e&&F(t,e)||V(t,e)}function V(t,e){t._state===k&&(t._state=O,t._data=e,M(z,t))}function U(t,e){t._state===k&&(t._state=O,t._data=e,M(H,t))}function B(t){t._then=t._then.forEach(j)}function z(t){t._state=A,B(t)}function H(t){t._state=D,B(t),!t._handled&&T&&global.process.emit("unhandledRejection",t._data,t)}function W(t){global.process.emit("rejectionHandled",t)}function K(t){if("function"!=typeof t)throw new TypeError("Promise resolver "+t+" is not a function");if(this instanceof K==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(t,e){function n(t){U(e,t)}try{t(function(t){N(e,t)},n)}catch(Dt){n(Dt)}}(t,this)}K.prototype={constructor:K,_state:k,_then:null,_data:void 0,_handled:!1,then:function(t,e){var n={owner:this,then:new this.constructor(I),fulfilled:t,rejected:e};return!e&&!t||this._handled||(this._handled=!0,this._state===D&&T&&M(W,this)),this._state===A||this._state===D?M(j,n):this._then.push(n),n.then},catch:function(t){return this.then(null,t)}},K.all=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.all().");return new K(function(e,n){var i=[],r=0;function s(t){return r++,function(n){i[t]=n,--r||e(i)}}for(var o,a=0;a<t.length;a++)(o=t[a])&&"function"==typeof o.then?o.then(s(a),n):i[a]=o;r||e(i)})},K.race=function(t){if(!Array.isArray(t))throw new TypeError("You must pass an array to Promise.race().");return new K(function(e,n){for(var i,r=0;r<t.length;r++)(i=t[r])&&"function"==typeof i.then?i.then(e,n):e(i)})},K.resolve=function(t){return t&&"object"===r(t)&&t.constructor===K?t:new K(function(e){e(t)})},K.reject=function(t){return new K(function(e,n){n(t)})};var q={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Y(){for(var t=12,e="";t-- >0;)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return e}function Z(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function X(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function G(t){return t.size!==q.size||t.x!==q.x||t.y!==q.y||t.rotate!==q.rotate||t.flipX||t.flipY}function $(t){var e=t.transform,n=t.iconWidth,i={transform:"translate(".concat(t.containerWidth/2," 256)")},r="translate(".concat(32*e.x,", ").concat(32*e.y,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(r," ").concat(s," ").concat(o)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var Q={x:0,y:0,width:"100%",height:"100%"};function J(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function tt(t){var e=t.icons,n=e.main,i=e.mask,r=t.prefix,s=t.iconName,a=t.transform,c=t.symbol,l=t.title,h=t.maskId,u=t.titleId,d=t.extra,f=t.watchable,p=void 0!==f&&f,m=i.found?i:n,b=m.width,g=m.height,_="fak"===r,y=_?"":"fa-w-".concat(Math.ceil(b/g*16)),v=[w.replacementClass,s?"".concat(w.familyPrefix,"-").concat(s):"",y].filter(function(t){return-1===d.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(d.classes).join(" "),x={children:[],attributes:o({},d.attributes,{"data-prefix":r,"data-icon":s,class:v,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(b," ").concat(g)})},C=_&&!~d.classes.indexOf("fa-fw")?{width:"".concat(b/g*16*.0625,"em")}:{};p&&(x.attributes["data-fa-i2svg"]=""),l&&x.children.push({tag:"title",attributes:{id:x.attributes["aria-labelledby"]||"title-".concat(u||Y())},children:[l]});var S=o({},x,{prefix:r,iconName:s,main:n,mask:i,maskId:h,transform:a,symbol:c,styles:o({},C,d.styles)}),E=i.found&&n.found?function(t){var e,n=t.children,i=t.attributes,r=t.main,s=t.mask,a=t.maskId,c=r.icon,l=s.icon,h=$({transform:t.transform,containerWidth:s.width,iconWidth:r.width}),u={tag:"rect",attributes:o({},Q,{fill:"white"})},d=c.children?{children:c.children.map(J)}:{},f={tag:"g",attributes:o({},h.inner),children:[J(o({tag:c.tag,attributes:o({},c.attributes,h.path)},d))]},p={tag:"g",attributes:o({},h.outer),children:[f]},m="mask-".concat(a||Y()),b="clip-".concat(a||Y()),g={tag:"mask",attributes:o({},Q,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,p]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(e=l,"g"===e.tag?e.children:[e])},g]};return n.push(_,{tag:"rect",attributes:o({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(m,")")},Q)}),{children:n,attributes:i}}(S):function(t){var e=t.children,n=t.attributes,i=t.main,r=t.transform,s=X(t.styles);if(s.length>0&&(n.style=s),G(r)){var a=$({transform:r,containerWidth:i.width,iconWidth:i.width});e.push({tag:"g",attributes:o({},a.outer),children:[{tag:"g",attributes:o({},a.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:o({},i.icon.attributes,a.path)}]}]})}else e.push(i.icon);return{children:e,attributes:n}}(S),k=E.attributes;return S.children=E.children,S.attributes=k,c?function(t){var e=t.iconName,n=t.children,i=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:o({},t.attributes,{id:!0===i?"".concat(t.prefix,"-").concat(w.familyPrefix,"-").concat(e):i}),children:n}]}]}(S):function(t){var e=t.children,n=t.main,i=t.mask,r=t.attributes,s=t.styles,a=t.transform;if(G(a)&&n.found&&!i.found){var c={x:n.width/n.height/2,y:.5};r.style=X(o({},s,{"transform-origin":"".concat(c.x+a.x/16,"em ").concat(c.y+a.y/16,"em")}))}return[{tag:"svg",attributes:r,children:e}]}(S)}var et=function(t,e,n,i){var r,s,o,a=Object.keys(t),c=a.length,l=void 0!==i?function(t,e){return function(n,i,r,s){return t.call(e,n,i,r,s)}}(e,i):e;for(void 0===n?(r=1,o=t[a[0]]):(r=0,o=n);r<c;r++)o=l(o,t[s=a[r]],s,t);return o};function nt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,r=void 0!==i&&i,s=Object.keys(e).reduce(function(t,n){var i=e[n];return i.icon?t[i.iconName]=i.icon:t[n]=i,t},{});"function"!=typeof C.hooks.addPack||r?C.styles[t]=o({},C.styles[t]||{},s):C.hooks.addPack(t,s),"fas"===t&&nt("fa",e)}var it=C.styles,rt=C.shims,st=function(){var t=function(t){return et(it,function(e,n,i){return e[i]=et(n,t,{}),e},{})};t(function(t,e,n){return e[3]&&(t[e[3]]=n),t}),t(function(t,e,n){var i=e[2];return t[n]=n,i.forEach(function(e){t[e]=n}),t});var e="far"in it;et(rt,function(t,n){var i=n[1];return"far"!==i||e||(i="fas"),t[n[0]]={prefix:i,iconName:n[2]},t},{})};function ot(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function at(t){var e=t.tag,n=t.attributes,i=void 0===n?{}:n,r=t.children,s=void 0===r?[]:r;return"string"==typeof t?Z(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(Z(t[n]),'" ')},"").trim()}(i),">").concat(s.map(at).join(""),"</").concat(e,">")}function ct(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}st(),(ct.prototype=Object.create(Error.prototype)).constructor=ct;var lt={fill:"currentColor"},ht={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ut=(o({},lt,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),o({},ht,{attributeName:"opacity"}));function dt(t){var e=t[0],n=t[1],i=a(t.slice(4),1)[0];return{found:!0,width:e,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(w.familyPrefix,"-").concat(_.GROUP)},children:[{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(_.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(w.familyPrefix,"-").concat(_.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}function ft(){w.autoAddCss&&!_t&&(function(t){if(t&&p){var e=f.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=f.head.childNodes,i=null,r=n.length-1;r>-1;r--){var s=n[r],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=s)}f.head.insertBefore(e,i)}}(function(){var t="fa",e=m,n=w.familyPrefix,i=w.replacementClass,r='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(n!==t||i!==e){var s=new RegExp("\\.".concat(t,"\\-"),"g"),o=new RegExp("\\--".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");r=r.replace(s,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(a,".".concat(i))}return r}()),_t=!0)}function pt(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return at(t)})}}),Object.defineProperty(t,"node",{get:function(){if(p){var e=f.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function mt(t){var e=t.prefix,n=void 0===e?"fa":e,i=t.iconName;if(i)return ot(gt.definitions,n,i)||ot(C.styles,n,i)}o({},lt,{cx:"256",cy:"364",r:"28"}),o({},ht,{attributeName:"r",values:"28;14;28;28;14;28;"}),o({},ut,{values:"1;0;1;1;0;1;"}),o({},lt,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),o({},ut,{values:"1;0;0;0;0;1;"}),o({},lt,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),o({},ut,{values:"0;0;1;1;0;0;"});var bt,gt=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e;return(e=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(function(e){t.definitions[e]=o({},t.definitions[e]||{},r[e]),nt(e,r[e]),st()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map(function(e){var i=n[e],r=i.prefix,s=i.iconName,o=i.icon;t[r]||(t[r]={}),t[r][s]=o}),t}}])&&function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,e),t}()),_t=!1,yt=(bt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,i=void 0===n?q:n,r=e.symbol,s=void 0!==r&&r,a=e.mask,c=void 0===a?null:a,l=e.maskId,h=void 0===l?null:l,u=e.title,d=void 0===u?null:u,f=e.titleId,p=void 0===f?null:f,m=e.classes,b=void 0===m?[]:m,g=e.attributes,_=void 0===g?{}:g,y=e.styles,v=void 0===y?{}:y;if(t){var x=t.prefix,C=t.iconName,S=t.icon;return pt(o({type:"icon"},t),function(){return ft(),w.autoA11y&&(d?_["aria-labelledby"]="".concat(w.replacementClass,"-title-").concat(p||Y()):(_["aria-hidden"]="true",_.focusable="false")),tt({icons:{main:dt(S),mask:c?dt(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:x,iconName:C,transform:o({},q,i),symbol:s,title:d,maskId:h,titleId:p,extra:{attributes:_,styles:v,classes:b}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:mt(t||{}),i=e.mask;return i&&(i=(i||{}).icon?i:mt(i||{})),bt(n,o({},e,{mask:i}))}),vt=n("cUpR");const wt=["*"];let xt=(()=>{class t{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null,this.globalLibrary=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ct=(()=>{class t{constructor(){this.definitions={}}addIcons(...t){for(const e of t)e.prefix in this.definitions||(this.definitions[e.prefix]={}),this.definitions[e.prefix][e.iconName]=e}addIconPacks(...t){for(const e of t){const t=Object.keys(e).map(t=>e[t]);this.addIcons(...t)}}getIconDefinition(t,e){return t in this.definitions&&e in this.definitions[t]?this.definitions[t][e]:null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const St=t=>{const e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip,["fa-"+t.size]:null!==t.size,["fa-rotate-"+t.rotate]:null!==t.rotate,["fa-pull-"+t.pull]:null!==t.pull,["fa-stack-"+t.stackItemSize]:null!=t.stackItemSize};return Object.keys(e).map(t=>e[t]?t:null).filter(t=>t)};let Et=(()=>{class t{constructor(){this.stackItemSize="1x"}ngOnChanges(t){if("size"in t)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[i.Bb]}),t})(),kt=(()=>{class t{constructor(t,e){this.renderer=t,this.elementRef=e}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(t){"size"in t&&(null!=t.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,"fa-"+t.size.currentValue),null!=t.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,"fa-"+t.size.previousValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.l))},t.\u0275cmp=i.Jb({type:t,selectors:[["fa-stack"]],inputs:{size:"size"},features:[i.Bb],ngContentSelectors:wt,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(0))},encapsulation:2}),t})(),Ot=(()=>{class t{constructor(t,e,n,i,r){this.sanitizer=t,this.config=e,this.iconLibrary=n,this.stackItem=i,this.classes=[],null!=r&&null==i&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: <fa-icon stackItemSize="2x"></fa-icon>.')}ngOnChanges(t){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let e=null;if(e=null==this.icon?this.config.fallbackIcon:this.icon,t){const t=this.findIconDefinition(e);if(null!=t){const e=this.buildParams();this.renderIcon(t,e)}}}render(){this.ngOnChanges({})}findIconDefinition(t){const e=((t,e)=>{return void 0!==(n=t).prefix&&void 0!==n.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:e,iconName:t}:void 0;var n})(t,this.config.defaultPrefix);if("icon"in e)return e;const n=this.iconLibrary.getIconDefinition(e.prefix,e.iconName);if(null!=n)return n;const i=mt(e);if(null!=i){const t="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+t);else if(!this.config.globalLibrary)throw new Error(t);return i}return(t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)})(e),null}buildParams(){const t={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:"boolean"==typeof this.fixedWidth?this.fixedWidth:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},e="string"==typeof this.transform?function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var n=e.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return t.flipX=!0,t;if(i&&"v"===r)return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(i){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r}return t},e):e}(this.transform):this.transform;return{title:this.title,transform:e,classes:[...St(t),...this.classes],mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}renderIcon(t,e){const n=yt(t,e);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(vt.b),i.Pb(xt),i.Pb(Ct),i.Pb(Et,8),i.Pb(kt,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(t,e){2&t&&(i.Yb("innerHTML",e.renderedIconHTML,i.Ac),i.Eb("title",e.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[i.Bb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),At=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})()},O4ig:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class t{constructor(t){this.el=t}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),t})()},"OA+I":function(t,e,n){"use strict";var i=n("86MQ"),r=i.assert,s=i.parseBytes,o=i.cachedProperty;function a(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},a.prototype.secret=function(){return this._secret},o(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(a,"privBytes",function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,i=e.slice(0,t.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i}),o(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(t){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return r(this._secret,"KeyPair is public only"),i.encode(this.secret(),t)},a.prototype.getPublic=function(t){return i.encode(this.pubBytes(),t)},t.exports=a},OLiY:function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"b",function(){return g}),n.d(e,"c",function(){return w}),n.d(e,"d",function(){return x}),n.d(e,"e",function(){return d}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return b}),n.d(e,"h",function(){return y});var i=n("y7ui"),r=n("UhP/"),s=n("8LU1"),o=n("CtHx"),a=n("2Vo4"),c=n("VRyK"),l=(n("IzEk"),n("lJxs")),h=n("8Y7J");const u=Object(r.C)(Object(r.z)(i.e));let d=(()=>{class t extends u{constructor(t,e,n){super(t,e),this._elementRef=t,this._tree=e,this.tabIndex=Number(n)||0,this._elementRef.nativeElement.classList.add("mat-tree-node")}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Pb(h.l),h.Pb(i.c),h.ac("tabindex"))},t.\u0275dir=h.Kb({type:t,selectors:[["mat-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[h.Cb([{provide:i.e,useExisting:t}]),h.Ab]}),t})(),f=(()=>{class t extends i.f{}return t.\u0275fac=function(e){return p(e||t)},t.\u0275dir=h.Kb({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[h.Cb([{provide:i.f,useExisting:t}]),h.Ab]}),t})();const p=h.Xb(f);let m=(()=>{class t extends i.b{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,this._elementRef.nativeElement.classList.add("mat-nested-tree-node")}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(s.c)(t)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:0}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return t.\u0275fac=function(e){return new(e||t)(h.Pb(h.l),h.Pb(i.c),h.Pb(h.u),h.ac("tabindex"))},t.\u0275dir=h.Kb({type:t,selectors:[["mat-nested-tree-node"]],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[h.Cb([{provide:i.b,useExisting:t},{provide:i.e,useExisting:t},{provide:i.a,useExisting:t}]),h.Ab]}),t})(),b=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(h.Pb(h.S),h.Pb(i.a,8))},t.\u0275dir=h.Kb({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[h.Cb([{provide:i.g,useExisting:t}])]}),t})(),g=(()=>{class t extends i.c{}return t.\u0275fac=function(e){return _(e||t)},t.\u0275cmp=h.Jb({type:t,selectors:[["mat-tree"]],viewQuery:function(t,e){if(1&t&&h.Ec(b,!0),2&t){let t;h.vc(t=h.ec())&&(e._nodeOutlet=t.first)}},hostAttrs:["role","tree",1,"mat-tree","cdk-tree"],exportAs:["matTree"],features:[h.Cb([{provide:i.c,useExisting:t}]),h.Ab],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(t,e){1&t&&h.Rb(0,0)},directives:[b],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 _=h.Xb(g);let y=(()=>{class t extends i.i{get recursive(){return this._recursive}set recursive(t){this._recursive=Object(s.c)(t)}}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=h.Kb({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[h.Cb([{provide:i.i,useExisting:t}]),h.Ab]}),t})();const v=h.Xb(y);let w=(()=>{class t{}return t.\u0275mod=h.Nb({type:t}),t.\u0275inj=h.Mb({factory:function(e){return new(e||t)},imports:[[i.d,r.i],r.i]}),t})();class x extends o.b{constructor(){super(...arguments),this._data=new a.a([])}get data(){return this._data.value}set data(t){this._data.next(t)}connect(t){return Object(c.a)(t.viewChange,this._data).pipe(Object(l.a)(()=>this.data))}disconnect(){}}},"OZ/i":function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function s(t,e,n){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=n(7).Buffer}catch(O){}function a(t,e,n){for(var r=0,s=Math.min(t.length,n),o=0,a=e;a<s;a++){var c,l=t.charCodeAt(a)-48;r<<=4,r|=c=l>=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,o|=c}return i(!(240&o),"Invalid character in "+t),r}function c(t,e,n,r){for(var s=0,o=0,a=Math.min(t.length,n),c=e;c<a;c++){var l=t.charCodeAt(c)-48;s*=r,o=l>=49?l-49+10:l>=17?l-17+10:l,i(l>=0&&o<r,"Invalid character"),s+=o}return s}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&r++,16===e?this._parseHex(t,r):this._parseBase(t,e,r),"-"===t[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),e,n)},s.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},s.prototype._initArray=function(t,e,n){if(i("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var s,o,a=0;if("be"===n)for(r=t.length-1,s=0;r>=0;r-=3)this.words[s]|=(o=t[r]|t[r-1]<<8|t[r-2]<<16)<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(r=0,s=0;r<t.length;r+=3)this.words[s]|=(o=t[r]|t[r+1]<<8|t[r+2]<<16)<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,r,s=0;for(n=t.length-6,i=0;n>=e;n-=6)r=a(t,n,n+6),this.words[i]|=r<<s&67108863,this.words[i+1]|=r>>>26-s&4194303,(s+=24)>=26&&(s-=26,i++);n+6!==e&&(r=a(t,e,n+6),this.words[i]|=r<<s&67108863,this.words[i+1]|=r>>>26-s&4194303),this._strip()},s.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var s=t.length-n,o=s%i,a=Math.min(s,s-o)+n,l=0,h=n;h<a;h+=i)l=c(t,h,h+i,e),this.imuln(r),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var u=1;for(l=c(t,h,t.length,e),h=0;h<o;h++)u*=e;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},s.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},s.prototype._move=function(t){l(t,this)},s.prototype.clone=function(){var t=new s(null);return this.copy(t),t},s.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(O){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],s=0|e.words[0],o=r*s,a=o/67108864|0;n.words[0]=67108863&o;for(var c=1;c<i;c++){for(var l=a>>>26,h=67108863&a,u=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=u;d++)l+=(o=(r=0|t.words[c-d|0])*(s=0|e.words[d])+h)/67108864|0,h=67108863&o;n.words[c]=0|h,a=0|l}return 0!==a?n.words[c]=0|a:n.length--,n._strip()}s.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var r=0,s=0,o=0;o<this.length;o++){var a=this.words[o],c=(16777215&(a<<r|s)).toString(16);n=0!=(s=a>>>24-r&16777215)||o!==this.length-1?u[6-c.length]+c+n:c+n,(r+=2)>=26&&(r-=26,o--)}for(0!==s&&(n=s.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=d[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:u[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,n){this._strip();var r=this.byteLength(),s=n||Math.max(1,r);i(r<=s,"byte array longer than desired length"),i(s>0,"Requested array length <= 0");var o=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,s);return this["_toArrayLike"+("le"===e?"LE":"BE")](o,r),o},s.prototype._toArrayLikeLE=function(t,e){for(var n=0,i=0,r=0,s=0;r<this.length;r++){var o=this.words[r]<<s|i;t[n++]=255&o,n<t.length&&(t[n++]=o>>8&255),n<t.length&&(t[n++]=o>>16&255),6===s?(n<t.length&&(t[n++]=o>>24&255),i=0,s=0):(i=o>>>24,s+=2)}if(n<t.length)for(t[n++]=i;n<t.length;)t[n++]=0},s.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,i=0,r=0,s=0;r<this.length;r++){var o=this.words[r]<<s|i;t[n--]=255&o,n>=0&&(t[n--]=o>>8&255),n>=0&&(t[n--]=o>>16&255),6===s?(n>=0&&(t[n--]=o>>24&255),i=0,s=0):(i=o>>>24,s+=2)}if(n>=0)for(t[n--]=i;n>=0;)t[n--]=0},s.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},s.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},s.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},s.prototype.ior=function(t){return i(0==(this.negative|t.negative)),this.iuor(t)},s.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},s.prototype.iand=function(t){return i(0==(this.negative|t.negative)),this.iuand(t)},s.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this._strip()},s.prototype.ixor=function(t){return i(0==(this.negative|t.negative)),this.iuxor(t)},s.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r<e;r++)this.words[r]=67108863&~this.words[r];return n>0&&(this.words[r]=~this.words[r]&67108863>>26-n),this._strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<r:this.words[n]&~(1<<r),this._strip()},s.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var r=0,s=0;s<i.length;s++)this.words[s]=67108863&(e=(0|n.words[s])+(0|i.words[s])+r),r=e>>>26;for(;0!==r&&s<n.length;s++)this.words[s]=67108863&(e=(0|n.words[s])+r),r=e>>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this},s.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=this);for(var s=0,o=0;o<i.length;o++)s=(e=(0|n.words[o])-(0|i.words[o])+s)>>26,this.words[o]=67108863&e;for(;0!==s&&o<n.length;o++)s=(e=(0|n.words[o])+s)>>26,this.words[o]=67108863&e;if(0===s&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,n){var i,r,s,o=t.words,a=e.words,c=n.words,l=0,h=0|o[0],u=8191&h,d=h>>>13,f=0|o[1],p=8191&f,m=f>>>13,b=0|o[2],g=8191&b,_=b>>>13,y=0|o[3],v=8191&y,w=y>>>13,x=0|o[4],C=8191&x,S=x>>>13,E=0|o[5],k=8191&E,O=E>>>13,A=0|o[6],D=8191&A,I=A>>>13,T=0|o[7],L=8191&T,P=T>>>13,R=0|o[8],M=8191&R,j=R>>>13,F=0|o[9],N=8191&F,V=F>>>13,U=0|a[0],B=8191&U,z=U>>>13,H=0|a[1],W=8191&H,K=H>>>13,q=0|a[2],Y=8191&q,Z=q>>>13,X=0|a[3],G=8191&X,$=X>>>13,Q=0|a[4],J=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,it=et>>>13,rt=0|a[6],st=8191&rt,ot=rt>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ht=0|a[8],ut=8191&ht,dt=ht>>>13,ft=0|a[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var bt=(l+(i=Math.imul(u,B))|0)+((8191&(r=(r=Math.imul(u,z))+Math.imul(d,B)|0))<<13)|0;l=((s=Math.imul(d,z))+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(p,B),r=(r=Math.imul(p,z))+Math.imul(m,B)|0,s=Math.imul(m,z);var gt=(l+(i=i+Math.imul(u,W)|0)|0)+((8191&(r=(r=r+Math.imul(u,K)|0)+Math.imul(d,W)|0))<<13)|0;l=((s=s+Math.imul(d,K)|0)+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,B),r=(r=Math.imul(g,z))+Math.imul(_,B)|0,s=Math.imul(_,z),i=i+Math.imul(p,W)|0,r=(r=r+Math.imul(p,K)|0)+Math.imul(m,W)|0,s=s+Math.imul(m,K)|0;var _t=(l+(i=i+Math.imul(u,Y)|0)|0)+((8191&(r=(r=r+Math.imul(u,Z)|0)+Math.imul(d,Y)|0))<<13)|0;l=((s=s+Math.imul(d,Z)|0)+(r>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(v,B),r=(r=Math.imul(v,z))+Math.imul(w,B)|0,s=Math.imul(w,z),i=i+Math.imul(g,W)|0,r=(r=r+Math.imul(g,K)|0)+Math.imul(_,W)|0,s=s+Math.imul(_,K)|0,i=i+Math.imul(p,Y)|0,r=(r=r+Math.imul(p,Z)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,Z)|0;var yt=(l+(i=i+Math.imul(u,G)|0)|0)+((8191&(r=(r=r+Math.imul(u,$)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,$)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,B),r=(r=Math.imul(C,z))+Math.imul(S,B)|0,s=Math.imul(S,z),i=i+Math.imul(v,W)|0,r=(r=r+Math.imul(v,K)|0)+Math.imul(w,W)|0,s=s+Math.imul(w,K)|0,i=i+Math.imul(g,Y)|0,r=(r=r+Math.imul(g,Z)|0)+Math.imul(_,Y)|0,s=s+Math.imul(_,Z)|0,i=i+Math.imul(p,G)|0,r=(r=r+Math.imul(p,$)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,$)|0;var vt=(l+(i=i+Math.imul(u,J)|0)|0)+((8191&(r=(r=r+Math.imul(u,tt)|0)+Math.imul(d,J)|0))<<13)|0;l=((s=s+Math.imul(d,tt)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(k,B),r=(r=Math.imul(k,z))+Math.imul(O,B)|0,s=Math.imul(O,z),i=i+Math.imul(C,W)|0,r=(r=r+Math.imul(C,K)|0)+Math.imul(S,W)|0,s=s+Math.imul(S,K)|0,i=i+Math.imul(v,Y)|0,r=(r=r+Math.imul(v,Z)|0)+Math.imul(w,Y)|0,s=s+Math.imul(w,Z)|0,i=i+Math.imul(g,G)|0,r=(r=r+Math.imul(g,$)|0)+Math.imul(_,G)|0,s=s+Math.imul(_,$)|0,i=i+Math.imul(p,J)|0,r=(r=r+Math.imul(p,tt)|0)+Math.imul(m,J)|0,s=s+Math.imul(m,tt)|0;var wt=(l+(i=i+Math.imul(u,nt)|0)|0)+((8191&(r=(r=r+Math.imul(u,it)|0)+Math.imul(d,nt)|0))<<13)|0;l=((s=s+Math.imul(d,it)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(D,B),r=(r=Math.imul(D,z))+Math.imul(I,B)|0,s=Math.imul(I,z),i=i+Math.imul(k,W)|0,r=(r=r+Math.imul(k,K)|0)+Math.imul(O,W)|0,s=s+Math.imul(O,K)|0,i=i+Math.imul(C,Y)|0,r=(r=r+Math.imul(C,Z)|0)+Math.imul(S,Y)|0,s=s+Math.imul(S,Z)|0,i=i+Math.imul(v,G)|0,r=(r=r+Math.imul(v,$)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,$)|0,i=i+Math.imul(g,J)|0,r=(r=r+Math.imul(g,tt)|0)+Math.imul(_,J)|0,s=s+Math.imul(_,tt)|0,i=i+Math.imul(p,nt)|0,r=(r=r+Math.imul(p,it)|0)+Math.imul(m,nt)|0,s=s+Math.imul(m,it)|0;var xt=(l+(i=i+Math.imul(u,st)|0)|0)+((8191&(r=(r=r+Math.imul(u,ot)|0)+Math.imul(d,st)|0))<<13)|0;l=((s=s+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(L,B),r=(r=Math.imul(L,z))+Math.imul(P,B)|0,s=Math.imul(P,z),i=i+Math.imul(D,W)|0,r=(r=r+Math.imul(D,K)|0)+Math.imul(I,W)|0,s=s+Math.imul(I,K)|0,i=i+Math.imul(k,Y)|0,r=(r=r+Math.imul(k,Z)|0)+Math.imul(O,Y)|0,s=s+Math.imul(O,Z)|0,i=i+Math.imul(C,G)|0,r=(r=r+Math.imul(C,$)|0)+Math.imul(S,G)|0,s=s+Math.imul(S,$)|0,i=i+Math.imul(v,J)|0,r=(r=r+Math.imul(v,tt)|0)+Math.imul(w,J)|0,s=s+Math.imul(w,tt)|0,i=i+Math.imul(g,nt)|0,r=(r=r+Math.imul(g,it)|0)+Math.imul(_,nt)|0,s=s+Math.imul(_,it)|0,i=i+Math.imul(p,st)|0,r=(r=r+Math.imul(p,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var Ct=(l+(i=i+Math.imul(u,ct)|0)|0)+((8191&(r=(r=r+Math.imul(u,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((s=s+Math.imul(d,lt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(M,B),r=(r=Math.imul(M,z))+Math.imul(j,B)|0,s=Math.imul(j,z),i=i+Math.imul(L,W)|0,r=(r=r+Math.imul(L,K)|0)+Math.imul(P,W)|0,s=s+Math.imul(P,K)|0,i=i+Math.imul(D,Y)|0,r=(r=r+Math.imul(D,Z)|0)+Math.imul(I,Y)|0,s=s+Math.imul(I,Z)|0,i=i+Math.imul(k,G)|0,r=(r=r+Math.imul(k,$)|0)+Math.imul(O,G)|0,s=s+Math.imul(O,$)|0,i=i+Math.imul(C,J)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(S,J)|0,s=s+Math.imul(S,tt)|0,i=i+Math.imul(v,nt)|0,r=(r=r+Math.imul(v,it)|0)+Math.imul(w,nt)|0,s=s+Math.imul(w,it)|0,i=i+Math.imul(g,st)|0,r=(r=r+Math.imul(g,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,i=i+Math.imul(p,ct)|0,r=(r=r+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,lt)|0;var St=(l+(i=i+Math.imul(u,ut)|0)|0)+((8191&(r=(r=r+Math.imul(u,dt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((s=s+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(N,B),r=(r=Math.imul(N,z))+Math.imul(V,B)|0,s=Math.imul(V,z),i=i+Math.imul(M,W)|0,r=(r=r+Math.imul(M,K)|0)+Math.imul(j,W)|0,s=s+Math.imul(j,K)|0,i=i+Math.imul(L,Y)|0,r=(r=r+Math.imul(L,Z)|0)+Math.imul(P,Y)|0,s=s+Math.imul(P,Z)|0,i=i+Math.imul(D,G)|0,r=(r=r+Math.imul(D,$)|0)+Math.imul(I,G)|0,s=s+Math.imul(I,$)|0,i=i+Math.imul(k,J)|0,r=(r=r+Math.imul(k,tt)|0)+Math.imul(O,J)|0,s=s+Math.imul(O,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(S,nt)|0,s=s+Math.imul(S,it)|0,i=i+Math.imul(v,st)|0,r=(r=r+Math.imul(v,ot)|0)+Math.imul(w,st)|0,s=s+Math.imul(w,ot)|0,i=i+Math.imul(g,ct)|0,r=(r=r+Math.imul(g,lt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,lt)|0,i=i+Math.imul(p,ut)|0,r=(r=r+Math.imul(p,dt)|0)+Math.imul(m,ut)|0,s=s+Math.imul(m,dt)|0;var Et=(l+(i=i+Math.imul(u,pt)|0)|0)+((8191&(r=(r=r+Math.imul(u,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((s=s+Math.imul(d,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(N,W),r=(r=Math.imul(N,K))+Math.imul(V,W)|0,s=Math.imul(V,K),i=i+Math.imul(M,Y)|0,r=(r=r+Math.imul(M,Z)|0)+Math.imul(j,Y)|0,s=s+Math.imul(j,Z)|0,i=i+Math.imul(L,G)|0,r=(r=r+Math.imul(L,$)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,$)|0,i=i+Math.imul(D,J)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(I,J)|0,s=s+Math.imul(I,tt)|0,i=i+Math.imul(k,nt)|0,r=(r=r+Math.imul(k,it)|0)+Math.imul(O,nt)|0,s=s+Math.imul(O,it)|0,i=i+Math.imul(C,st)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(S,st)|0,s=s+Math.imul(S,ot)|0,i=i+Math.imul(v,ct)|0,r=(r=r+Math.imul(v,lt)|0)+Math.imul(w,ct)|0,s=s+Math.imul(w,lt)|0,i=i+Math.imul(g,ut)|0,r=(r=r+Math.imul(g,dt)|0)+Math.imul(_,ut)|0,s=s+Math.imul(_,dt)|0;var kt=(l+(i=i+Math.imul(p,pt)|0)|0)+((8191&(r=(r=r+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((s=s+Math.imul(m,mt)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(N,Y),r=(r=Math.imul(N,Z))+Math.imul(V,Y)|0,s=Math.imul(V,Z),i=i+Math.imul(M,G)|0,r=(r=r+Math.imul(M,$)|0)+Math.imul(j,G)|0,s=s+Math.imul(j,$)|0,i=i+Math.imul(L,J)|0,r=(r=r+Math.imul(L,tt)|0)+Math.imul(P,J)|0,s=s+Math.imul(P,tt)|0,i=i+Math.imul(D,nt)|0,r=(r=r+Math.imul(D,it)|0)+Math.imul(I,nt)|0,s=s+Math.imul(I,it)|0,i=i+Math.imul(k,st)|0,r=(r=r+Math.imul(k,ot)|0)+Math.imul(O,st)|0,s=s+Math.imul(O,ot)|0,i=i+Math.imul(C,ct)|0,r=(r=r+Math.imul(C,lt)|0)+Math.imul(S,ct)|0,s=s+Math.imul(S,lt)|0,i=i+Math.imul(v,ut)|0,r=(r=r+Math.imul(v,dt)|0)+Math.imul(w,ut)|0,s=s+Math.imul(w,dt)|0;var Ot=(l+(i=i+Math.imul(g,pt)|0)|0)+((8191&(r=(r=r+Math.imul(g,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((s=s+Math.imul(_,mt)|0)+(r>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(N,G),r=(r=Math.imul(N,$))+Math.imul(V,G)|0,s=Math.imul(V,$),i=i+Math.imul(M,J)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(j,J)|0,s=s+Math.imul(j,tt)|0,i=i+Math.imul(L,nt)|0,r=(r=r+Math.imul(L,it)|0)+Math.imul(P,nt)|0,s=s+Math.imul(P,it)|0,i=i+Math.imul(D,st)|0,r=(r=r+Math.imul(D,ot)|0)+Math.imul(I,st)|0,s=s+Math.imul(I,ot)|0,i=i+Math.imul(k,ct)|0,r=(r=r+Math.imul(k,lt)|0)+Math.imul(O,ct)|0,s=s+Math.imul(O,lt)|0,i=i+Math.imul(C,ut)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(S,ut)|0,s=s+Math.imul(S,dt)|0;var At=(l+(i=i+Math.imul(v,pt)|0)|0)+((8191&(r=(r=r+Math.imul(v,mt)|0)+Math.imul(w,pt)|0))<<13)|0;l=((s=s+Math.imul(w,mt)|0)+(r>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(N,J),r=(r=Math.imul(N,tt))+Math.imul(V,J)|0,s=Math.imul(V,tt),i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(j,nt)|0,s=s+Math.imul(j,it)|0,i=i+Math.imul(L,st)|0,r=(r=r+Math.imul(L,ot)|0)+Math.imul(P,st)|0,s=s+Math.imul(P,ot)|0,i=i+Math.imul(D,ct)|0,r=(r=r+Math.imul(D,lt)|0)+Math.imul(I,ct)|0,s=s+Math.imul(I,lt)|0,i=i+Math.imul(k,ut)|0,r=(r=r+Math.imul(k,dt)|0)+Math.imul(O,ut)|0,s=s+Math.imul(O,dt)|0;var Dt=(l+(i=i+Math.imul(C,pt)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;l=((s=s+Math.imul(S,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(N,nt),r=(r=Math.imul(N,it))+Math.imul(V,nt)|0,s=Math.imul(V,it),i=i+Math.imul(M,st)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,i=i+Math.imul(L,ct)|0,r=(r=r+Math.imul(L,lt)|0)+Math.imul(P,ct)|0,s=s+Math.imul(P,lt)|0,i=i+Math.imul(D,ut)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(I,ut)|0,s=s+Math.imul(I,dt)|0;var It=(l+(i=i+Math.imul(k,pt)|0)|0)+((8191&(r=(r=r+Math.imul(k,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((s=s+Math.imul(O,mt)|0)+(r>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(N,st),r=(r=Math.imul(N,ot))+Math.imul(V,st)|0,s=Math.imul(V,ot),i=i+Math.imul(M,ct)|0,r=(r=r+Math.imul(M,lt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,lt)|0,i=i+Math.imul(L,ut)|0,r=(r=r+Math.imul(L,dt)|0)+Math.imul(P,ut)|0,s=s+Math.imul(P,dt)|0;var Tt=(l+(i=i+Math.imul(D,pt)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((s=s+Math.imul(I,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(N,ct),r=(r=Math.imul(N,lt))+Math.imul(V,ct)|0,s=Math.imul(V,lt),i=i+Math.imul(M,ut)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(j,ut)|0,s=s+Math.imul(j,dt)|0;var Lt=(l+(i=i+Math.imul(L,pt)|0)|0)+((8191&(r=(r=r+Math.imul(L,mt)|0)+Math.imul(P,pt)|0))<<13)|0;l=((s=s+Math.imul(P,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,i=Math.imul(N,ut),r=(r=Math.imul(N,dt))+Math.imul(V,ut)|0,s=Math.imul(V,dt);var Pt=(l+(i=i+Math.imul(M,pt)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(j,pt)|0))<<13)|0;l=((s=s+Math.imul(j,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var Rt=(l+(i=Math.imul(N,pt))|0)+((8191&(r=(r=Math.imul(N,mt))+Math.imul(V,pt)|0))<<13)|0;return l=((s=Math.imul(V,mt))+(r>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,c[0]=bt,c[1]=gt,c[2]=_t,c[3]=yt,c[4]=vt,c[5]=wt,c[6]=xt,c[7]=Ct,c[8]=St,c[9]=Et,c[10]=kt,c[11]=Ot,c[12]=At,c[13]=Dt,c[14]=It,c[15]=Tt,c[16]=Lt,c[17]=Pt,c[18]=Rt,0!==l&&(c[19]=l,n.length++),n};function b(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,s=0;s<n.length-1;s++){var o=r;r=0;for(var a=67108863&i,c=Math.min(s,e.length-1),l=Math.max(0,s-t.length+1);l<=c;l++){var h=(0|t.words[s-l])*(0|e.words[l]),u=67108863&h;a=67108863&(u=u+a|0),r+=(o=(o=o+(h/67108864|0)|0)+(u>>>26)|0)>>>26,o&=67108863}n.words[s]=a,i=o,o=r}return 0!==i?n.words[s]=i:n.length--,n._strip()}function g(t,e,n){return b(t,e,n)}function _(t,e){this.x=t,this.y=e}Math.imul||(m=p),s.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?b(this,t,e):g(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),n=s.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},_.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,r=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},_.prototype.permute=function(t,e,n,i,r,s){for(var o=0;o<s;o++)i[o]=e[t[o]],r[o]=n[t[o]]},_.prototype.transform=function(t,e,n,i,r,s){this.permute(s,t,e,n,i,r);for(var o=1;o<r;o<<=1)for(var a=o<<1,c=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),h=0;h<r;h+=a)for(var u=c,d=l,f=0;f<o;f++){var p=n[h+f],m=i[h+f],b=n[h+f+o],g=i[h+f+o],_=u*b-d*g;g=u*g+d*b,n[h+f]=p+(b=_),i[h+f]=m+g,n[h+f+o]=p-b,i[h+f+o]=m-g,f!==a&&(_=c*u-l*d,d=c*d+l*u,u=_)}},_.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,r=0;for(n=n/2|0;n;n>>>=1)r++;return 1<<r+1+i},_.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var r=t[i];t[i]=t[n-i-1],t[n-i-1]=r,r=e[i],e[i]=-e[n-i-1],e[n-i-1]=-r}},_.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var r=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&r,n=r<67108864?0:r/67108864|0}return t},_.prototype.convert13b=function(t,e,n,r){for(var s=0,o=0;o<e;o++)n[2*o]=8191&(s+=0|t[o]),n[2*o+1]=8191&(s>>>=13),s>>>=13;for(o=2*e;o<r;++o)n[o]=0;i(0===s),i(0==(-8192&s))},_.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},_.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),r=this.makeRBT(i),s=this.stub(i),o=new Array(i),a=new Array(i),c=new Array(i),l=new Array(i),h=new Array(i),u=new Array(i),d=n.words;d.length=i,this.convert13b(t.words,t.length,o,i),this.convert13b(e.words,e.length,l,i),this.transform(o,s,a,c,i,r),this.transform(l,s,h,u,i,r);for(var f=0;f<i;f++){var p=a[f]*h[f]-c[f]*u[f];c[f]=a[f]*u[f]+c[f]*h[f],a[f]=p}return this.conjugate(a,c,i),this.transform(a,c,d,s,i,r),this.conjugate(d,s,i),this.normalize13b(d,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},s.prototype.mul=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},s.prototype.mulf=function(t){var e=new s(null);return e.words=new Array(this.length+t.length),g(this,t,e)},s.prototype.imul=function(t){return this.clone().mulTo(t,this)},s.prototype.imuln=function(t){var e=t<0;e&&(t=-t),i("number"==typeof t),i(t<67108864);for(var n=0,r=0;r<this.length;r++){var s=(0|this.words[r])*t,o=(67108863&s)+(67108863&n);n>>=26,n+=s/67108864|0,n+=o>>>26,this.words[r]=67108863&o}return 0!==n&&(this.words[r]=n,this.length++),e?this.ineg():this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++)e[n]=t.words[n/26|0]>>>n%26&1;return e}(t);if(0===e.length)return new s(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var r=n.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(n=n.mul(r));return n},s.prototype.iushln=function(t){i("number"==typeof t&&t>=0);var e,n=t%26,r=(t-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e<this.length;e++){var a=this.words[e]&s;this.words[e]=(0|this.words[e])-a<<n|o,o=a>>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e<r;e++)this.words[e]=0;this.length+=r}return this._strip()},s.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},s.prototype.iushrn=function(t,e,n){var r;i("number"==typeof t&&t>=0),r=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),a=67108863^67108863>>>s<<s,c=n;if(r-=o,r=Math.max(0,r),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var h=0;for(l=this.length-1;l>=0&&(0!==h||l>=r);l--){var u=0|this.words[l];this.words[l]=h<<26-s|u>>>s,h=u&a}return c&&0!==h&&(c.words[c.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;return!(this.length<=n||!(this.words[n]&1<<e))},s.prototype.imaskn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;return i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n?this:(0!==e&&n++,this.length=Math.min(n,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},s.prototype.maskn=function(t){return this.clone().imaskn(t)},s.prototype.iaddn=function(t){return i("number"==typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},s.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},s.prototype.addn=function(t){return this.clone().iaddn(t)},s.prototype.subn=function(t){return this.clone().isubn(t)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(t,e,n){var r,s;this._expand(t.length+n);var o=0;for(r=0;r<t.length;r++){s=(0|this.words[r+n])+o;var a=(0|t.words[r])*e;o=((s-=67108863&a)>>26)-(a/67108864|0),this.words[r+n]=67108863&s}for(;r<this.length-n;r++)o=(s=(0|this.words[r+n])+o)>>26,this.words[r+n]=67108863&s;if(0===o)return this._strip();for(i(-1===o),o=0,r=0;r<this.length;r++)o=(s=-(0|this.words[r])+o)>>26,this.words[r]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(t,e){var n,i=this.clone(),r=t,o=0|r.words[r.length-1];0!=(n=26-this._countBits(o))&&(r=r.ushln(n),i.iushln(n),o=0|r.words[r.length-1]);var a,c=i.length-r.length;if("mod"!==e){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var h=i.clone()._ishlnsubmul(r,1,c);0===h.negative&&(i=h,a&&(a.words[c]=1));for(var u=c-1;u>=0;u--){var d=67108864*(0|i.words[r.length+u])+(0|i.words[r.length+u-1]);for(d=Math.min(d/o|0,67108863),i._ishlnsubmul(r,d,u);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(r,1,u),i.isZero()||(i.negative^=1);a&&(a.words[u]=d)}return a&&a._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:a||null,mod:i}},s.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(r=a.div.neg()),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(r=a.div.neg()),{div:r,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:a.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,o,a},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),r=t.andln(1),s=n.cmp(i);return s<0||1===r&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=(1<<26)%t,r=0,s=this.length-1;s>=0;s--)r=(n*r+(0|this.words[s]))%t;return e?-r:r},s.prototype.modn=function(t){return this.modrn(t)},s.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=0,r=this.length-1;r>=0;r--){var s=(0|this.words[r])+67108864*n;this.words[r]=s/t|0,n=s%t}return this._strip(),e?this.ineg():this},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),u=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(h),o.isub(u)),r.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(h),c.isub(u)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(a),o.isub(c)):(n.isub(e),a.isub(r),c.isub(o))}return{a:a,b:c,gcd:n.iushln(l)}},s.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new s(1),a=new s(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0==(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var u=0,d=1;0==(n.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(n.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a)):(n.isub(e),a.isub(o))}return(r=0===e.cmpn(1)?o:a).cmpn(0)<0&&r.iadd(t),r},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var s=e;e=n,n=s}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=r,this;for(var s=r,o=n;0!==s&&o<this.length;o++){var a=0|this.words[o];s=(a+=s)>>>26,this.words[o]=a&=67108863}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:r<t?-1:1}return 0!==this.negative?0|-e:e},s.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},s.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){i<r?e=-1:i>r&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new E(t)},s.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(w,v),w.prototype.split=function(t,e){for(var n=4194303,i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,t.length<=9)return t.words[0]=0,void(t.length=1);var s=t.words[9];for(e.words[e.length++]=s&n,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(o&n)<<4|s>>>22,s=o}t.words[r-10]=s>>>=22,t.length-=0===s&&t.length>10?10:9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];t.words[n]=67108863&(e+=977*i),e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(x,v),r(C,v),r(S,v),S.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,r=67108863&i;i>>>=26,t.words[n]=r,e=i}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new x;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return y[t]=e,e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new s(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);i(!r.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,l).cmp(c);)h.redIAdd(c);for(var u=this.pow(h,r),d=this.pow(t,r.addn(1).iushrn(1)),f=this.pow(t,r),p=o;0!==f.cmp(a);){for(var m=f,b=0;0!==m.cmp(a);b++)m=m.redSqr();i(b<p);var g=this.pow(u,new s(1).iushln(p-b-1));d=d.redMul(g),u=g.redSqr(),f=f.redMul(u),p=b}return d},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new s(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new s(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var r=n[0],o=0,a=0,c=e.bitLength()%26;for(0===c&&(c=26),i=e.length-1;i>=0;i--){for(var l=e.words[i],h=c-1;h>=0;h--){var u=l>>h&1;r!==n[0]&&(r=this.sqr(r)),0!==u||0!==o?(o<<=1,o|=u,(4==++a||0===i&&0===h)&&(r=this.mul(r,n[o]),a=0,o=0)):a=0}c=26}return r},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new k(t)},r(k,E),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),s=r;return r.cmp(this.m)>=0?s=r.isub(this.m):r.cmpn(0)<0&&(s=r.iadd(this.m)),s._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n("YuTi")(t))},OaSA:function(t,e,n){"use strict";n.d(e,"a",function(){return Ct}),n.d(e,"b",function(){return ut}),n.d(e,"c",function(){return gt}),n.d(e,"d",function(){return wt}),n.d(e,"e",function(){return mt}),n.d(e,"f",function(){return Pt}),n.d(e,"g",function(){return Ot}),n.d(e,"h",function(){return yt}),n.d(e,"i",function(){return ft}),n.d(e,"j",function(){return Tt}),n.d(e,"k",function(){return Et}),n.d(e,"l",function(){return Mt}),n.d(e,"m",function(){return Dt}),n.d(e,"n",function(){return lt}),n.d(e,"o",function(){return Nt}),n.d(e,"p",function(){return Ft});var i=n("8LU1"),r=n("CtHx"),s=n("8Y7J"),o=n("9gLZ"),a=n("SCoL"),c=n("7KAL"),l=n("SVse"),h=n("XNiG"),u=n("Cfvw"),d=n("2Vo4"),f=n("7+OI"),p=n("LRne"),m=n("1G5W"),b=n("IzEk");const g=[[["caption"]],[["colgroup"],["col"]]],_=["caption","colgroup, col"];function y(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=Object(i.c)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const v=new s.s("CDK_TABLE");let w=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),x=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),C=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class S{}const E=y(S);let k=(()=>{class t extends E{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Object(i.c)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(v,8))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,w,!0),s.Ib(n,x,!0),s.Ib(n,C,!0)),2&t){let t;s.vc(t=s.ec())&&(e.cell=t.first),s.vc(t=s.ec())&&(e.headerCell=t.first),s.vc(t=s.ec())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[s.Cb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.Ab]}),t})();class O{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let A=(()=>{class t extends O{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(k),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[s.Ab]}),t})(),D=(()=>{class t extends O{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(k),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[s.Ab]}),t})(),I=(()=>{class t extends O{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(k),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[s.Ab]}),t})();class T{constructor(){this.tasks=[],this.endTasks=[]}}const L=new s.s("_COALESCED_STYLE_SCHEDULER");let P=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new h.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 T,this._getScheduleObservable().pipe(Object(m.a)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new T;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(u.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(b.a)(1))}}return t.\u0275fac=function(e){return new(e||t)(s.Zb(s.B))},t.\u0275prov=s.Lb({token:t,factory:t.\u0275fac}),t})(),R=(()=>{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 F?t.headerCell.template:this instanceof U?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O),s.Pb(s.u))},t.\u0275dir=s.Kb({type:t,features:[s.Bb]}),t})();class M extends R{}const j=y(M);let F=(()=>{class t extends j{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O),s.Pb(s.u),s.Pb(v,8))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[s.Ab,s.Bb]}),t})();class N extends R{}const V=y(N);let U=(()=>{class t extends V{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O),s.Pb(s.u),s.Pb(v,8))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[s.Ab,s.Bb]}),t})(),B=(()=>{class t extends R{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O),s.Pb(s.u),s.Pb(v,8))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[s.Ab]}),t})(),z=(()=>{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)(s.Pb(s.S))},t.\u0275dir=s.Kb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({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&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({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&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({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&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})(),q=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.O))},t.\u0275dir=s.Kb({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const Y=["top","bottom","left","right"];class Z{constructor(t,e,n,i,r=!0,s=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=r,this._needsPositionStickyOnElement=s,this._cachedCellWidths=[]}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._scheduleStyleChanges(()=>{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n,i=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const r=t[0],s=r.children.length,o=this._getCellWidths(r,i),a=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,n);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,r=i?"right":"left",o=i?"left":"right";for(const l of t)for(let t=0;t<s;t++){const i=l.children[t];e[t]&&this._addStickyStyle(i,r,a[t]),n[t]&&this._addStickyStyle(i,o,c[t])}})}stickRows(t,e,n){if(!this._isBrowser)return;const i="bottom"===n?t.slice().reverse():t,r="bottom"===n?e.slice().reverse():e,s=[],o=[];for(let a=0,c=0;a<i.length;a++){if(s[a]=c,!r[a])continue;const t=i[a];o[a]=this._isNativeHtmlTable?Array.from(t.children):[t],a!==i.length-1&&(c+=t.getBoundingClientRect().height)}this._scheduleStyleChanges(()=>{for(let t=0;t<i.length;t++){if(!r[t])continue;const e=s[t];for(const i of o[t])this._addStickyStyle(i,n,e)}})}updateStickyFooterContainer(t,e){if(!this._isNativeHtmlTable)return;const n=t.querySelector("tfoot");this._scheduleStyleChanges(()=>{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";Y.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 Y)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const n=[],i=t.children;for(let r=0;r<i.length;r++)n.push(i[r].getBoundingClientRect().width);return this._cachedCellWidths=n,n}_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}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let X=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["","rowOutlet",""]]}),t})(),G=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),Q=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.S),s.Pb(s.l))},t.\u0275dir=s.Kb({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=r,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._viewportRuler=l,this._onDestroy=new h.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._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new d.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(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=Object(i.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Object(i.c)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Object(m.a)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&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(),Object(r.h)(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;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}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}setNoDataRow(t){this._customNoDataRow=t}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._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),this._stickyColumnStylesNeedReset=!1),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(),tt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=tt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=tt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=tt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);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=[],Object(r.h)(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;Object(r.h)(this.dataSource)?t=this.dataSource.connect(this):Object(f.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(p.a)(this.dataSource)),this._renderChangeSubscription=t.pipe(Object(m.a)(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=>this._columnDefsByName.get(t)),i=n.map(t=>t.sticky),r=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,r,!this._fixedLayout||this._forceRecalculateCellWidths)}_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)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))z.mostRecentCellOutlet&&z.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);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);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._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Z(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(p.a)()).pipe(Object(m.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const n=this._noDataRowOutlet.viewContainer;e?n.createEmbeddedView(t.templateRef):n.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.u),s.Pb(s.h),s.Pb(s.l),s.ac("role"),s.Pb(o.b,8),s.Pb(l.d),s.Pb(a.a),s.Pb(r.g,8),s.Pb(L,8),s.Pb(c.e,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,q,!0),s.Ib(n,k,!0),s.Ib(n,B,!0),s.Ib(n,F,!0),s.Ib(n,U,!0)),2&t){let t;s.vc(t=s.ec())&&(e._noDataRow=t.first),s.vc(t=s.ec())&&(e._contentColumnDefs=t),s.vc(t=s.ec())&&(e._contentRowDefs=t),s.vc(t=s.ec())&&(e._contentHeaderRowDefs=t),s.vc(t=s.ec())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(s.Ec(X,!0),s.Ec(G,!0),s.Ec($,!0),s.Ec(Q,!0)),2&t){let t;s.vc(t=s.ec())&&(e._rowOutlet=t.first),s.vc(t=s.ec())&&(e._headerRowOutlet=t.first),s.vc(t=s.ec())&&(e._footerRowOutlet=t.first),s.vc(t=s.ec())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.Hb("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[s.Cb([{provide:v,useExisting:t},{provide:r.g,useClass:r.e},{provide:L,useClass:P}])],ngContentSelectors:_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.nc(g),s.mc(0),s.mc(1,1),s.Rb(2,0),s.Rb(3,1),s.Rb(4,2),s.Rb(5,3))},directives:[G,X,Q,$],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function tt(t,e){return t.concat(Array.from(e))}let et=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[c.d]]}),t})();var nt=n("UhP/"),it=n("quSY"),rt=n("VRyK"),st=n("itXk"),ot=n("lJxs");const at=[[["caption"]],[["colgroup"],["col"]]],ct=["caption","colgroup, col"];let lt=(()=>{class t extends J{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return ht(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&s.Hb("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[s.Cb([{provide:r.g,useClass:r.e},{provide:J,useExisting:t},{provide:v,useExisting:t},{provide:L,useClass:P}]),s.Ab],ngContentSelectors:ct,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(s.nc(at),s.mc(0),s.mc(1,1),s.Rb(2,0),s.Rb(3,1),s.Rb(4,2),s.Rb(5,3))},directives:[G,X,Q,$],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:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-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:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-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:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-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:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const ht=s.Xb(lt);let ut=(()=>{class t extends w{}return t.\u0275fac=function(e){return dt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matCellDef",""]],features:[s.Cb([{provide:w,useExisting:t}]),s.Ab]}),t})();const dt=s.Xb(ut);let ft=(()=>{class t extends x{}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matHeaderCellDef",""]],features:[s.Cb([{provide:x,useExisting:t}]),s.Ab]}),t})();const pt=s.Xb(ft);let mt=(()=>{class t extends C{}return t.\u0275fac=function(e){return bt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matFooterCellDef",""]],features:[s.Cb([{provide:C,useExisting:t}]),s.Ab]}),t})();const bt=s.Xb(mt);let gt=(()=>{class t extends k{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)}}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[s.Cb([{provide:k,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),s.Ab]}),t})();const _t=s.Xb(gt);let yt=(()=>{class t extends A{}return t.\u0275fac=function(e){return vt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[s.Ab]}),t})();const vt=s.Xb(yt);let wt=(()=>{class t extends D{}return t.\u0275fac=function(e){return xt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[s.Ab]}),t})();const xt=s.Xb(wt);let Ct=(()=>{class t extends I{}return t.\u0275fac=function(e){return St(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[s.Ab]}),t})();const St=s.Xb(Ct);let Et=(()=>{class t extends F{}return t.\u0275fac=function(e){return kt(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[s.Cb([{provide:F,useExisting:t}]),s.Ab]}),t})();const kt=s.Xb(Et);let Ot=(()=>{class t extends U{}return t.\u0275fac=function(e){return At(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[s.Cb([{provide:U,useExisting:t}]),s.Ab]}),t})();const At=s.Xb(Ot);let Dt=(()=>{class t extends B{}return t.\u0275fac=function(e){return It(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[s.Cb([{provide:B,useExisting:t}]),s.Ab]}),t})();const It=s.Xb(Dt);let Tt=(()=>{class t extends H{}return t.\u0275fac=function(e){return Lt(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[s.Cb([{provide:H,useExisting:t}]),s.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})();const Lt=s.Xb(Tt);let Pt=(()=>{class t extends W{}return t.\u0275fac=function(e){return Rt(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[s.Cb([{provide:W,useExisting:t}]),s.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})();const Rt=s.Xb(Pt);let Mt=(()=>{class t extends K{}return t.\u0275fac=function(e){return jt(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[s.Cb([{provide:K,useExisting:t}]),s.Ab],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&s.Rb(0,0)},directives:[z],encapsulation:2}),t})();const jt=s.Xb(Mt);let Ft=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[et,nt.i],nt.i]}),t})();class Nt extends r.b{constructor(t=[]){super(),this._renderData=new d.a([]),this._filter=new d.a(""),this._internalPageChanges=new h.a,this._renderChangesSubscription=it.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(Object(i.a)(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),s=this.sortingDataAccessor(e,n);const o=typeof r,a=typeof s;o!==a&&("number"===o&&(r+=""),"number"===a&&(s+=""));let c=0;return null!=r&&null!=s?r>s?c=1:r<s&&(c=-1):null!=r?c=1:null!=s&&(c=-1),c*("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 d.a(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(rt.a)(this._sort.sortChange,this._sort.initialized):Object(p.a)(null),e=this._paginator?Object(rt.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(p.a)(null),n=this._data,i=Object(st.b)([n,this._filter]).pipe(Object(ot.a)(([t])=>this._filterData(t))),r=Object(st.b)([i,t]).pipe(Object(ot.a)(([t])=>this._orderData(t))),s=Object(st.b)([r,e]).pipe(Object(ot.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=s.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=null==this.filter||""===this.filter?t:t.filter(t=>this.filterPredicate(t,this.filter)),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(){}}},Oaki:function(t,e,n){var i=n("tjlA"),r=i.Buffer;function s(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(s(i,e),e.Buffer=o),o.prototype=Object.create(r.prototype),s(r,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},OfWw:function(t,e,n){var i=n("hwdV").Buffer;function r(t){i.isBuffer(t)||(t=i.from(t));for(var e=t.length/4|0,n=new Array(e),r=0;r<e;r++)n[r]=t.readUInt32BE(4*r);return n}function s(t){for(;0<t.length;t++)t[0]=0}function o(t,e,n,i,r){for(var s,o,a,c,l=n[0],h=n[1],u=n[2],d=n[3],f=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],b=t[3]^e[3],g=4,_=1;_<r;_++)s=l[f>>>24]^h[p>>>16&255]^u[m>>>8&255]^d[255&b]^e[g++],o=l[p>>>24]^h[m>>>16&255]^u[b>>>8&255]^d[255&f]^e[g++],a=l[m>>>24]^h[b>>>16&255]^u[f>>>8&255]^d[255&p]^e[g++],c=l[b>>>24]^h[f>>>16&255]^u[p>>>8&255]^d[255&m]^e[g++],f=s,p=o,m=a,b=c;return s=(i[f>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&b])^e[g++],o=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[b>>>8&255]<<8|i[255&f])^e[g++],a=(i[m>>>24]<<24|i[b>>>16&255]<<16|i[f>>>8&255]<<8|i[255&p])^e[g++],c=(i[b>>>24]<<24|i[f>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^e[g++],[s>>>=0,o>>>=0,a>>>=0,c>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],i=[],r=[[],[],[],[]],s=[[],[],[],[]],o=0,a=0,c=0;c<256;++c){var l=a^a<<1^a<<2^a<<3^a<<4;n[o]=l=l>>>8^255&l^99,i[l]=o;var h=t[o],u=t[h],d=t[u],f=257*t[l]^16843008*l;r[0][o]=f<<24|f>>>8,r[1][o]=f<<16|f>>>16,r[2][o]=f<<8|f>>>24,r[3][o]=f,s[0][l]=(f=16843009*d^65537*u^257*h^16843008*o)<<24|f>>>8,s[1][l]=f<<16|f>>>16,s[2][l]=f<<8|f>>>24,s[3][l]=f,0===o?o=a=1:(o=h^t[t[t[d^h]]],a^=t[t[a]])}return{SBOX:n,INV_SBOX:i,SUB_MIX:r,INV_SUB_MIX:s}}();function l(t){this._key=r(t),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,i=4*(n+1),r=[],s=0;s<e;s++)r[s]=t[s];for(s=e;s<i;s++){var o=r[s-1];s%e==0?(o=c.SBOX[(o=o<<8|o>>>24)>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=a[s/e|0]<<24):e>6&&s%e==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),r[s]=r[s-e]^o}for(var l=[],h=0;h<i;h++){var u=i-h,d=r[u-(h%4?0:4)];l[h]=h<4||u<=4?d:c.INV_SUB_MIX[0][c.SBOX[d>>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=r,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(t){return o(t=r(t),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=i.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},l.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;var n=o(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),s=i.allocUnsafe(16);return s.writeUInt32BE(n[0],0),s.writeUInt32BE(n[3],4),s.writeUInt32BE(n[2],8),s.writeUInt32BE(n[1],12),s},l.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},t.exports.AES=l},Onz0:function(t,e){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=Buffer.isBuffer},P2KE:function(t,e,n){var i=n("hwdV").Buffer,r=i.alloc(16,0);function s(t){var e=i.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},o.prototype._multiply=function(){for(var t,e,n,i=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],r=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(r[0]^=i[0],r[1]^=i[1],r[2]^=i[2],r[3]^=i[3]),n=0!=(1&i[3]),e=3;e>0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=s(r)},o.prototype.update=function(t){var e;for(this.cache=i.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(i.concat([this.cache,r],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},P7XM:function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},PCNd:function(t,e,n){"use strict";n.d(e,"a",function(){return rt});var i=n("SVse"),r=n("iInd"),s=n("s7LF"),o=n("IheW"),a=n("Nv++"),c=n("8Y7J"),l=n("/q54"),h=n("ura0"),u=n("VDRc");n("8LU1"),new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let d=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},imports:[[l.c]]}),t})();new c.R("11.0.0-beta.33");let f=(()=>{class t{constructor(t,e){Object(i.B)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:l.e,useValue:Object.assign(Object.assign({},l.d),e)},{provide:l.a,useValue:n,multi:!0},{provide:l.g,useValue:!0}]:[{provide:l.e,useValue:Object.assign(Object.assign({},l.d),e)},{provide:l.a,useValue:n,multi:!0}]}}}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)(c.Zb(l.g),c.Zb(c.D))},imports:[[u.d,h.c,d],u.d,h.c,d]}),t})();var p=n("HeVh"),m=n("UhP/"),b=n("iELJ"),g=n("vrAh"),_=n("8Qe2"),y=n("Dxy4");n("CtHx"),n("YEUz");let v=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},imports:[[m.i,m.s],m.i]}),t})();var w=n("PDjf"),x=n("pMoy"),C=n("TN/R"),S=n("o4Yh"),E=n("40+f"),k=n("Tj54"),O=n("e6WT"),A=n("SqCe"),D=n("rJgo"),I=n("5QHs"),T=n("BTe0"),L=n("pu8Q"),P=n("zQhy"),R=n("ZTz/"),M=n("q7Ft"),j=n("jMqV");n("Ht+U"),n("omvX"),n("SCoL"),n("quSY"),n("9gLZ");let F=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},imports:[[i.c,m.i],m.i]}),t})();var N=n("zHaW"),V=n("LUZP"),U=n("hzfI"),B=n("OaSA"),z=n("M9ds"),H=n("l0rg"),W=n("ZFy/"),K=n("OLiY"),q=n("Lnru"),Y=n("bwdU"),Z=n("aLe/"),X=n("1O3W");let G=(()=>{class t extends X.e{_createContainer(){const t=document.createElement("div");t.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return $(e||t)},t.\u0275prov=c.Lb({token:t,factory:t.\u0275fac}),t})();const $=c.Xb(G);var Q=n("cpEJ"),J=n("7nzP");const tt={suppressScrollX:!1,suppressScrollY:!1};let et=(()=>{class t extends m.t{format(t,e){if("input"===e){let e=t.getDate().toString();return e=+e<10?"0"+e:e,e+"/"+J.l[t.getMonth()].name.toUpperCase()+"/"+t.getFullYear()}return J.l[t.getMonth()].name.toUpperCase()+" "+t.getFullYear()}}return t.\u0275fac=function(e){return nt(e||t)},t.\u0275prov=c.Lb({token:t,factory:t.\u0275fac}),t})();const nt=c.Xb(et),it={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let rt=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},providers:[{provide:Q.b,useClass:Q.a},{provide:Z.a,useValue:tt},{provide:N.a,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:b.b,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"55%"}},{provide:m.c,useClass:et},{provide:m.e,useValue:it},{provide:X.e,useClass:G},i.f,i.x,i.e],imports:[[i.c,s.i,s.r,a.b,f,p.c,b.e,y.b,v,w.d,x.b,S.b,E.b,C.c,m.l,k.b,O.c,A.c,D.c,T.b,L.a,P.c,K.c,R.b,M.d,j.b,V.c,B.p,H.b,W.b,_.b,I.c,U.e,F,z.f,N.c,g.b,q.c,Y.b,r.k,o.c,Z.c],s.i,s.r,a.b,f,p.c,b.e,y.b,v,w.d,x.b,S.b,E.b,C.c,m.l,k.b,O.c,A.c,D.c,T.b,L.a,P.c,K.c,R.b,M.d,j.b,V.c,B.p,H.b,W.b,_.b,I.c,U.e,F,z.f,N.c,g.b,q.c,Y.b,Z.c]}),t})()},PDjf:function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return p}),n.d(e,"d",function(){return m}),n.d(e,"e",function(){return d}),n.d(e,"f",function(){return u});var i=n("omvX"),r=n("UhP/"),s=n("8Y7J");const o=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],l=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),f=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(i.a,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&s.Hb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(s.nc(o),s.mc(0),s.mc(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})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:l,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(s.nc(c),s.mc(0),s.Vb(1,"div",0),s.mc(2,1),s.Ub(),s.mc(3,2))},encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t})()},"Pa+m":function(t,e,n){"use strict";var i=n("86MQ"),r=n("AQYT"),s=n("P7XM"),o=n("6lN/"),a=i.assert;function c(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,o.call(this,"edwards",t),this.a=new r(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function l(t,e,n,i,s){o.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(e,16),this.y=new r(n,16),this.z=i?new r(i,16):this.curve.one,this.t=s&&new r(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(c,o),t.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,n,i){return this.point(t,e,n,i)},c.prototype.pointFromX=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),s=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=i.redMul(s.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=a.fromRed().isOdd();return(e&&!c||!e&&c)&&(a=a.redNeg()),this.point(t,a)},c.prototype.pointFromY=function(t,e){(t=new r(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),s=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=i.redMul(s.redInvm());if(0===o.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),i=e.redMul(this.a).redAdd(n),r=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===i.cmp(r)},s(l,o.BasePoint),c.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},c.prototype.point=function(t,e,n,i){return new l(this,t,e,n,i)},l.fromJSON=function(t,e){return new l(t,e[0],e[1],e[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),r=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),s=i.redAdd(e),o=s.redSub(n),a=i.redSub(e),c=r.redMul(o),l=s.redMul(a),h=r.redMul(a),u=o.redMul(s);return this.curve.point(c,l,u,h)},l.prototype._projDbl=function(){var t,e,n,i=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var o=(l=this.curve._mulA(r)).redAdd(s);if(this.zOne)t=i.redSub(r).redSub(s).redMul(o.redSub(this.curve.two)),e=o.redMul(l.redSub(s)),n=o.redSqr().redSub(o).redSub(o);else{var a=this.z.redSqr(),c=o.redSub(a).redISub(a);t=i.redSub(r).redISub(s).redMul(c),e=o.redMul(l.redSub(s)),n=o.redMul(c)}}else{var l=r.redAdd(s);a=this.curve._mulC(this.z).redSqr(),c=l.redSub(a).redSub(a),t=this.curve._mulC(i.redISub(l)).redMul(c),e=this.curve._mulC(l).redMul(r.redISub(s)),n=l.redMul(c)}return this.curve.point(t,e,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),r=this.z.redMul(t.z.redAdd(t.z)),s=n.redSub(e),o=r.redSub(i),a=r.redAdd(i),c=n.redAdd(e),l=s.redMul(o),h=a.redMul(c),u=s.redMul(c),d=o.redMul(a);return this.curve.point(l,h,d,u)},l.prototype._projAdd=function(t){var e,n,i=this.z.redMul(t.z),r=i.redSqr(),s=this.x.redMul(t.x),o=this.y.redMul(t.y),a=this.curve.d.redMul(s).redMul(o),c=r.redSub(a),l=r.redAdd(a),h=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(s).redISub(o),u=i.redMul(c).redMul(h);return this.curve.twisted?(e=i.redMul(l).redMul(o.redSub(this.curve._mulA(s))),n=c.redMul(l)):(e=i.redMul(l).redMul(o.redSub(s)),n=this.curve._mulC(c).redMul(l)),this.curve.point(u,e,n)},l.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},l.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},l.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},l.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),r=n("D0XW"),s=n("Y7HM"),o=n("z+Ro");function a(t=0,e,n){let a=-1;return Object(s.a)(e)?a=Number(e)<1?1:Number(e):Object(o.a)(e)&&(n=e),Object(o.a)(n)||(n=r.a),new i.a(e=>{const i=Object(s.a)(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:e})})}function c(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)}}},Q2Ze:function(t,e,n){"use strict";n.d(e,"a",function(){return Q}),n.d(e,"b",function(){return F}),n.d(e,"c",function(){return J}),n.d(e,"d",function(){return V}),n.d(e,"e",function(){return tt}),n.d(e,"f",function(){return z}),n.d(e,"g",function(){return Y});var i=n("9b/N"),r=n("SVse"),s=n("8Y7J"),o=n("UhP/"),a=n("8LU1"),c=n("XNiG"),l=n("VRyK"),h=n("xgIS"),u=n("JX91"),d=n("1G5W"),f=n("IzEk"),p=n("GS7A"),m=n("omvX"),b=n("9gLZ"),g=n("SCoL");const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function x(t,e){1&t&&(s.Tb(0),s.Vb(1,"div",14),s.Qb(2,"div",15),s.Qb(3,"div",16),s.Qb(4,"div",17),s.Ub(),s.Vb(5,"div",18),s.Qb(6,"div",15),s.Qb(7,"div",16),s.Qb(8,"div",17),s.Ub(),s.Sb())}function C(t,e){1&t&&(s.Vb(0,"div",19),s.mc(1,1),s.Ub())}function S(t,e){if(1&t&&(s.Tb(0),s.mc(1,2),s.Vb(2,"span"),s.Kc(3),s.Ub(),s.Sb()),2&t){const t=s.hc(2);s.Db(3),s.Lc(t._control.placeholder)}}function E(t,e){1&t&&s.mc(0,3,["*ngSwitchCase","true"])}function k(t,e){1&t&&(s.Vb(0,"span",23),s.Kc(1," *"),s.Ub())}function O(t,e){if(1&t){const t=s.Wb();s.Vb(0,"label",20,21),s.dc("cdkObserveContent",function(){return s.zc(t),s.hc().updateOutlineGap()}),s.Ic(2,S,4,1,"ng-container",12),s.Ic(3,E,1,0,"ng-content",12),s.Ic(4,k,2,0,"span",22),s.Ub()}if(2&t){const t=s.hc();s.Hb("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),s.oc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),s.Eb("for",t._control.id)("aria-owns",t._control.id),s.Db(2),s.oc("ngSwitchCase",!1),s.Db(1),s.oc("ngSwitchCase",!0),s.Db(1),s.oc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function A(t,e){1&t&&(s.Vb(0,"div",24),s.mc(1,4),s.Ub())}function D(t,e){if(1&t&&(s.Vb(0,"div",25,26),s.Qb(2,"span",27),s.Ub()),2&t){const t=s.hc();s.Db(2),s.Hb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function I(t,e){if(1&t&&(s.Vb(0,"div"),s.mc(1,5),s.Ub()),2&t){const t=s.hc();s.oc("@transitionMessages",t._subscriptAnimationState)}}function T(t,e){if(1&t&&(s.Vb(0,"div",31),s.Kc(1),s.Ub()),2&t){const t=s.hc(2);s.oc("id",t._hintLabelId),s.Db(1),s.Lc(t.hintLabel)}}function L(t,e){if(1&t&&(s.Vb(0,"div",28),s.Ic(1,T,2,2,"div",29),s.mc(2,6),s.Qb(3,"div",30),s.mc(4,7),s.Ub()),2&t){const t=s.hc();s.oc("@transitionMessages",t._subscriptAnimationState),s.Db(1),s.oc("ngIf",t.hintLabel)}}const P=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],R=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let M=0;const j=new s.s("MatError");let F=(()=>{class t{constructor(){this.id="mat-error-"+M++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&s.Eb("id",e.id)},inputs:{id:"id"},features:[s.Cb([{provide:j,useExisting:t}])]}),t})();const N={transitionMessages:Object(p.m)("transitionMessages",[Object(p.j)("enter",Object(p.k)({opacity:1,transform:"translateY(0%)"})),Object(p.l)("void => enter",[Object(p.k)({opacity:0,transform:"translateY(-100%)"}),Object(p.e)("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=s.Kb({type:t}),t})(),U=0;const B=new s.s("MatHint");let z=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+U++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(s.Eb("id",e.id)("align",null),s.Hb("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[s.Cb([{provide:B,useExisting:t}])]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-label"]]}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-placeholder"]]}),t})();const K=new s.s("MatPrefix"),q=new s.s("MatSuffix");let Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["","matSuffix",""]],features:[s.Cb([{provide:q,useExisting:t}])]}),t})(),Z=0;class X{constructor(t){this._elementRef=t}}const G=Object(o.x)(X,"primary"),$=new s.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Q=new s.s("MatFormField");let J=(()=>{class t extends G{constructor(t,e,n,i,r,s,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=r,this._platform=s,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Z++,this._labelId="mat-form-field-label-"+Z++,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=Object(a.c)(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}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}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(Object(u.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(u.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(u.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(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,Object(h.a)(this._label.nativeElement,"transitionend").pipe(Object(f.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"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.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}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"),s=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 s=this._getStartEnd(r),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t<o.length;t++)c+=o[t].offsetWidth;e=Math.abs(a-s)-5,n=c>0?.75*c+10:0}for(let o=0;o<r.length;o++)r[o].style.width=e+"px";for(let o=0;o<s.length;o++)s[o].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)(s.Pb(s.l),s.Pb(s.h),s.Pb(s.l),s.Pb(b.b,8),s.Pb($,8),s.Pb(g.a),s.Pb(s.B),s.Pb(m.a,8))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,V,!0),s.Dc(n,V,!0),s.Ib(n,H,!0),s.Dc(n,H,!0),s.Ib(n,W,!0),s.Ib(n,j,!0),s.Ib(n,B,!0),s.Ib(n,K,!0),s.Ib(n,q,!0)),2&t){let t;s.vc(t=s.ec())&&(e._controlNonStatic=t.first),s.vc(t=s.ec())&&(e._controlStatic=t.first),s.vc(t=s.ec())&&(e._labelChildNonStatic=t.first),s.vc(t=s.ec())&&(e._labelChildStatic=t.first),s.vc(t=s.ec())&&(e._placeholderChild=t.first),s.vc(t=s.ec())&&(e._errorChildren=t),s.vc(t=s.ec())&&(e._hintChildren=t),s.vc(t=s.ec())&&(e._prefixChildren=t),s.vc(t=s.ec())&&(e._suffixChildren=t)}},viewQuery:function(t,e){if(1&t&&(s.Pc(_,!0),s.Ec(y,!0),s.Pc(v,!0),s.Pc(w,!0)),2&t){let t;s.vc(t=s.ec())&&(e.underlineRef=t.first),s.vc(t=s.ec())&&(e._connectionContainerRef=t.first),s.vc(t=s.ec())&&(e._inputContainerRef=t.first),s.vc(t=s.ec())&&(e._label=t.first)}},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&s.Hb("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:[s.Cb([{provide:Q,useExisting:t}]),s.Ab],ngContentSelectors:R,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&&(s.nc(P),s.Vb(0,"div",0),s.Vb(1,"div",1,2),s.dc("click",function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)}),s.Ic(3,x,9,0,"ng-container",3),s.Ic(4,C,2,0,"div",4),s.Vb(5,"div",5,6),s.mc(7),s.Vb(8,"span",7),s.Ic(9,O,5,16,"label",8),s.Ub(),s.Ub(),s.Ic(10,A,2,0,"div",9),s.Ub(),s.Ic(11,D,3,4,"div",10),s.Vb(12,"div",11),s.Ic(13,I,2,1,"div",12),s.Ic(14,L,5,2,"div",13),s.Ub(),s.Ub()),2&t&&(s.Db(3),s.oc("ngIf","outline"==e.appearance),s.Db(1),s.oc("ngIf",e._prefixChildren.length),s.Db(5),s.oc("ngIf",e._hasFloatingLabel()),s.Db(1),s.oc("ngIf",e._suffixChildren.length),s.Db(1),s.oc("ngIf","outline"!=e.appearance),s.Db(1),s.oc("ngSwitch",e._getDisplayedMessages()),s.Db(1),s.oc("ngSwitchCase","error"),s.Db(1),s.oc("ngSwitchCase","hint"))},directives:[r.o,r.q,r.r,i.a],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-hint-end{order:1}.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:[N.transitionMessages]},changeDetection:0}),t})(),tt=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[r.c,o.i,i.c],o.i]}),t})()},QAZZ:function(t,e,n){var i=n("Rb7d");function r(t,e){var n=t.a/255,i=e+'="'+t.hex+'"';return n<1?i+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':i}function s(t,e,n){var i=t+e;return void 0!==n&&(i+=" "+n),i}e.render=function(t,e,n){var o=i.getOptions(e),a=t.modules.size,c=t.modules.data,l=a+2*o.margin,h=o.color.light.a?"<path "+r(o.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+r(o.color.dark,"stroke")+' d="'+function(t,e,n){for(var i="",r=0,o=!1,a=0,c=0;c<t.length;c++){var l=Math.floor(c%e),h=Math.floor(c/e);l||o||(o=!0),t[c]?(a++,c>0&&l>0&&t[c-1]||(i+=o?s("M",l+n,.5+h+n):s("m",r,0),r=0,o=!1),l+1<e&&t[c+1]||(i+=s("h",a),a=0)):r++}return i}(c,a,o.margin)+'"/>',d='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+'viewBox="0 0 '+l+" "+l+'" shape-rendering="crispEdges">'+h+u+"</svg>\n";return"function"==typeof n&&n(null,d),d}},QJsb:function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},QRH4:function(t,e,n){"use strict";var i=n("f3pb");e.certificate=n("VrUr");var r=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=r;var s=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=s;var o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});e.PublicKey=o;var a=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});e.PrivateKey=c;var l=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=l;var h=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=h,e.DSAparam=i.define("DSAparam",function(){this.int()});var u=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=u;var d=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},"QTa/":function(t,e,n){"use strict";var i=e;i.base=n("6lN/"),i.short=n("MwBp"),i.mont=n("Z2+3"),i.edwards=n("Pa+m")},QUaw:function(t,e,n){var i=n("Rb7d");e.render=function(t,e,n){var r=n,s=e;void 0!==r||e&&e.getContext||(r=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),r=i.getOptions(r);var o=i.getImageWidth(t.modules.size,r),a=s.getContext("2d"),c=a.createImageData(o,o);return i.qrToImageData(c.data,t,r),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(a,s,o),a.putImageData(c,0,0),s},e.renderToDataURL=function(t,n,i){var r=i;return void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={}),e.render(t,n,r).toDataURL(r.type||"image/png",(r.rendererOpts||{}).quality)}},"Qd/k":function(t,e,n){"use strict";const i=e;i.Reporter=n("0cit").Reporter,i.DecoderBuffer=n("YoN+").DecoderBuffer,i.EncoderBuffer=n("YoN+").EncoderBuffer,i.Node=n("g2Dh")},"Qi+P":function(t,e,n){!function(e){"use strict";var n={bytesToString:function(t){return t.map(function(t){return String.fromCharCode(t)}).join("")},stringToBytes:function(t){return t.split("").map(function(t){return t.charCodeAt(0)})}};n.UTF8={bytesToString:function(t){return decodeURIComponent(escape(n.bytesToString(t)))},stringToBytes:function(t){return n.stringToBytes(unescape(encodeURIComponent(t)))}},t.exports?t.exports=n:e.convertString=n}(this)},QihY:function(t,e,n){var i=n("gvAe"),r=n("hwdV").Buffer,s=n("usKN"),o=n("CfXC"),a=n("ZDAU"),c=n("OfWw"),l=n("roQf");function h(t,e,n){a.call(this),this._cache=new u,this._last=void 0,this._cipher=new c.AES(e),this._prev=r.from(n),this._mode=t,this._autopadding=!0}function u(){this.cache=r.allocUnsafe(0)}function d(t,e,n){var a=s[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=r.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=r.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===a.type?new o(a.module,e,n,!0):"auth"===a.type?new i(a.module,e,n,!0):new h(a.module,e,n)}n("P7XM")(h,a),h.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),i.push(n);return r.concat(i)},h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var n=-1;++n<e;)if(t[n+(16-e)]!==e)throw new Error("unable to decrypt data");if(16!==e)return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},u.prototype.add=function(t){this.cache=r.concat([this.cache,t])},u.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=s[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(e,!1,n.key,n.iv);return d(t,i.key,i.iv)},e.createDecipheriv=d},QpuX:function(t,e,n){t.exports=n("+qE3").EventEmitter},QqdZ:function(t,e,n){"use strict";var i=n("0ROu").codes.ERR_STREAM_PREMATURE_CLOSE;function r(){}t.exports=function t(e,n,s){if("function"==typeof n)return t(e,null,n);n||(n={}),s=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t.apply(this,i)}}}(s||r);var o=n.readable||!1!==n.readable&&e.readable,a=n.writable||!1!==n.writable&&e.writable,c=function(){e.writable||h()},l=e._writableState&&e._writableState.finished,h=function(){a=!1,l=!0,o||s.call(e)},u=e._readableState&&e._readableState.endEmitted,d=function(){o=!1,u=!0,a||s.call(e)},f=function(t){s.call(e,t)},p=function(){var t;return o&&!u?(e._readableState&&e._readableState.ended||(t=new i),s.call(e,t)):a&&!l?(e._writableState&&e._writableState.ended||(t=new i),s.call(e,t)):void 0},m=function(){e.req.on("finish",h)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",h),e.on("abort",p),e.req?m():e.on("request",m)):a&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",d),e.on("finish",h),!1!==n.error&&e.on("error",f),e.on("close",p),function(){e.removeListener("complete",h),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",h),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",h),e.removeListener("end",d),e.removeListener("error",f),e.removeListener("close",p)}}},RKMU:function(t,e,n){"use strict";var i=n("AQYT"),r=n("86MQ"),s=r.assert,o=r.cachedProperty,a=r.parseBytes;function c(t,e){this.eddsa=t,"object"!=typeof e&&(e=a(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}o(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},Rb7d:function(t,e){function n(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");var n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=t.width&&t.width>=21?t.width:void 0;return{width:e,scale:e?4:t.scale||4,margin:null==t.margin||t.margin<0?4:t.margin,color:{dark:n(t.color.dark||"#000000ff"),light:n(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,n){var i=e.getScale(t,n);return Math.floor((t+2*n.margin)*i)},e.qrToImageData=function(t,n,i){for(var r=n.modules.size,s=n.modules.data,o=e.getScale(r,i),a=Math.floor((r+2*i.margin)*o),c=i.margin*o,l=[i.color.light,i.color.dark],h=0;h<a;h++)for(var u=0;u<a;u++){var d=4*(h*a+u),f=i.color.light;h>=c&&u>=c&&h<a-c&&u<a-c&&(f=l[s[Math.floor((h-c)/o)*r+Math.floor((u-c)/o)]?1:0]),t[d++]=f.r,t[d++]=f.g,t[d++]=f.b,t[d]=f.a}}},RoFp:function(t,e,n){"use strict";var i=n("lm0R");function r(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||i.nextTick(r,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(i.nextTick(r,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},SCoL:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return _}),n.d(e,"d",function(){return g}),n.d(e,"e",function(){return h}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return b});var i=n("8Y7J"),r=n("SVse");let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){s=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(r.A)(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&&!s)&&"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.Zb(i.D))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(i.D))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(l),o;let t=document.createElement("input");return o=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let u,d,f,p;function m(t){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>u=!0}))}finally{u=u||!1}return u}()?t:!!t.capture}function b(){if(null==f)if("object"==typeof document&&document||(f=!1),"scrollBehavior"in document.documentElement.style)f=!0;else{const t=Element.prototype.scrollTo;f=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return f}function g(){if("object"!=typeof document||!document)return 0;if(null==d){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),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==p){const t="undefined"!=typeof document?document.head:null;p=!(!t||!t.createShadowRoot&&!t.attachShadow)}return p}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},SVse:function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return It}),n.d(e,"c",function(){return Vt}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return Mt}),n.d(e,"f",function(){return Ft}),n.d(e,"g",function(){return x}),n.d(e,"h",function(){return jt}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return C}),n.d(e,"k",function(){return _}),n.d(e,"l",function(){return Tt}),n.d(e,"m",function(){return dt}),n.d(e,"n",function(){return pt}),n.d(e,"o",function(){return bt}),n.d(e,"p",function(){return Ct}),n.d(e,"q",function(){return vt}),n.d(e,"r",function(){return wt}),n.d(e,"s",function(){return xt}),n.d(e,"t",function(){return St}),n.d(e,"u",function(){return w}),n.d(e,"v",function(){return l}),n.d(e,"w",function(){return Nt}),n.d(e,"x",function(){return Pt}),n.d(e,"y",function(){return Rt}),n.d(e,"z",function(){return Ht}),n.d(e,"A",function(){return Bt}),n.d(e,"B",function(){return zt}),n.d(e,"C",function(){return a}),n.d(e,"D",function(){return Ut}),n.d(e,"E",function(){return s}),n.d(e,"F",function(){return ut}),n.d(e,"G",function(){return o});var i=n("8Y7J");let r=null;function s(){return r}function o(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.Lb)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return Object(i.Zb)(d)}const u=new i.s("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=s().getLocation(),this._history=s().getHistory()}getBaseHrefFromDOM(){return s().getBaseHref(this._doc)}onPopState(t){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){s().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){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?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.Zb(c))},t.\u0275prov=Object(i.Lb)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(i.Zb)(c))}function m(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.Lb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(i.Zb)(c).location;return new w(Object(i.Zb)(l),e&&e.origin||"")}const v=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 m(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.Zb(l),i.Zb(v,8))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),x=(()=>{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=m(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.Zb(l),i.Zb(v,8))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{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(E(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,E(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.Zb(_),i.Zb(l))},t.normalizeQueryParams=g,t.joinWithSlash=m,t.stripTrailingSlash=b,t.\u0275prov=Object(i.Lb)({factory:S,token:t,providedIn:"root"}),t})();function S(){return new C(Object(i.Zb)(_),Object(i.Zb)(l))}function E(t){return t.replace(/\/index.html$/,"")}var k=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),O=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}({}),A=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),D=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),I=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),T=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 L(t,e){return N(Object(i.nb)(t)[i.eb.DateFormat],e)}function P(t,e){return N(Object(i.nb)(t)[i.eb.TimeFormat],e)}function R(t,e){return N(Object(i.nb)(t)[i.eb.DateTimeFormat],e)}function M(t,e){const n=Object(i.nb)(t),r=n[i.eb.NumberSymbols][e];if(void 0===r){if(e===T.CurrencyDecimal)return n[i.eb.NumberSymbols][T.Decimal];if(e===T.CurrencyGroup)return n[i.eb.NumberSymbols][T.Group]}return r}const j=i.qb;function F(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 N(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 V(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B={},z=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|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 H=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),W=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}({}),K=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 q(t,e,n,i){let r=function(t){if(rt(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(U))return function(t){const e=new Date(0);let n=0,i=0;const r=t[8]?e.setUTCFullYear:e.setFullYear,s=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 o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(e,o,a,c,l),e}(n)}const e=new Date(t);if(!rt(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Y(n,e)||e;let s,o=[];for(;e;){if(s=z.exec(e),!s){o.push(e);break}{o=o.concat(s.slice(1));const t=o.pop();if(!t)break;e=t}}let a=r.getTimezoneOffset();i&&(a=it(i,a),r=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*(it(e,i)-i))}(r,i));let c="";return o.forEach(t=>{const e=function(t){if(nt[t])return nt[t];let e;switch(t){case"G":case"GG":case"GGG":e=$(K.Eras,D.Abbreviated);break;case"GGGG":e=$(K.Eras,D.Wide);break;case"GGGGG":e=$(K.Eras,D.Narrow);break;case"y":e=G(W.FullYear,1,0,!1,!0);break;case"yy":e=G(W.FullYear,2,0,!0,!0);break;case"yyy":e=G(W.FullYear,3,0,!1,!0);break;case"yyyy":e=G(W.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=G(W.Month,1,1);break;case"MM":case"LL":e=G(W.Month,2,1);break;case"MMM":e=$(K.Months,D.Abbreviated);break;case"MMMM":e=$(K.Months,D.Wide);break;case"MMMMM":e=$(K.Months,D.Narrow);break;case"LLL":e=$(K.Months,D.Abbreviated,A.Standalone);break;case"LLLL":e=$(K.Months,D.Wide,A.Standalone);break;case"LLLLL":e=$(K.Months,D.Narrow,A.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=G(W.Date,1);break;case"dd":e=G(W.Date,2);break;case"E":case"EE":case"EEE":e=$(K.Days,D.Abbreviated);break;case"EEEE":e=$(K.Days,D.Wide);break;case"EEEEE":e=$(K.Days,D.Narrow);break;case"EEEEEE":e=$(K.Days,D.Short);break;case"a":case"aa":case"aaa":e=$(K.DayPeriods,D.Abbreviated);break;case"aaaa":e=$(K.DayPeriods,D.Wide);break;case"aaaaa":e=$(K.DayPeriods,D.Narrow);break;case"b":case"bb":case"bbb":e=$(K.DayPeriods,D.Abbreviated,A.Standalone,!0);break;case"bbbb":e=$(K.DayPeriods,D.Wide,A.Standalone,!0);break;case"bbbbb":e=$(K.DayPeriods,D.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=$(K.DayPeriods,D.Abbreviated,A.Format,!0);break;case"BBBB":e=$(K.DayPeriods,D.Wide,A.Format,!0);break;case"BBBBB":e=$(K.DayPeriods,D.Narrow,A.Format,!0);break;case"h":e=G(W.Hours,1,-12);break;case"hh":e=G(W.Hours,2,-12);break;case"H":e=G(W.Hours,1);break;case"HH":e=G(W.Hours,2);break;case"m":e=G(W.Minutes,1);break;case"mm":e=G(W.Minutes,2);break;case"s":e=G(W.Seconds,1);break;case"ss":e=G(W.Seconds,2);break;case"S":e=G(W.FractionalSeconds,1);break;case"SS":e=G(W.FractionalSeconds,2);break;case"SSS":e=G(W.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Q(H.Short);break;case"ZZZZZ":e=Q(H.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Q(H.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Q(H.Long);break;default:return null}return nt[t]=e,e}(t);c+=e?e(r,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Y(t,e){const n=function(t){return Object(i.nb)(t)[i.eb.LocaleId]}(t);if(B[n]=B[n]||{},B[n][e])return B[n][e];let r="";switch(e){case"shortDate":r=L(t,I.Short);break;case"mediumDate":r=L(t,I.Medium);break;case"longDate":r=L(t,I.Long);break;case"fullDate":r=L(t,I.Full);break;case"shortTime":r=P(t,I.Short);break;case"mediumTime":r=P(t,I.Medium);break;case"longTime":r=P(t,I.Long);break;case"fullTime":r=P(t,I.Full);break;case"short":const e=Y(t,"shortTime"),n=Y(t,"shortDate");r=Z(R(t,I.Short),[e,n]);break;case"medium":const i=Y(t,"mediumTime"),s=Y(t,"mediumDate");r=Z(R(t,I.Medium),[i,s]);break;case"long":const o=Y(t,"longTime"),a=Y(t,"longDate");r=Z(R(t,I.Long),[o,a]);break;case"full":const c=Y(t,"fullTime"),l=Y(t,"fullDate");r=Z(R(t,I.Full),[c,l])}return r&&(B[n][e]=r),r}function Z(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function X(t,e,n="-",i,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=n));let o=String(t);for(;o.length<e;)o="0"+o;return i&&(o=o.substr(o.length-e)),s+o}function G(t,e,n=0,i=!1,r=!1){return function(s,o){let a=function(t,e){switch(t){case W.FullYear:return e.getFullYear();case W.Month:return e.getMonth();case W.Date:return e.getDate();case W.Hours:return e.getHours();case W.Minutes:return e.getMinutes();case W.Seconds:return e.getSeconds();case W.FractionalSeconds:return e.getMilliseconds();case W.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((n>0||a>-n)&&(a+=n),t===W.Hours)0===a&&-12===n&&(a=12);else if(t===W.FractionalSeconds)return c=e,X(a,3).substr(0,c);var c;const l=M(o,T.MinusSign);return X(a,e,l,i,r)}}function $(t,e,n=A.Format,r=!1){return function(s,o){return function(t,e,n,r,s,o){switch(n){case K.Months:return function(t,e,n){const r=Object(i.nb)(t),s=N([r[i.eb.MonthsFormat],r[i.eb.MonthsStandalone]],e);return N(s,n)}(e,s,r)[t.getMonth()];case K.Days:return function(t,e,n){const r=Object(i.nb)(t),s=N([r[i.eb.DaysFormat],r[i.eb.DaysStandalone]],e);return N(s,n)}(e,s,r)[t.getDay()];case K.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=Object(i.nb)(t);return F(e),(e[i.eb.ExtraData][2]||[]).map(t=>"string"==typeof t?V(t):[V(t[0]),V(t[1])])}(e),n=function(t,e,n){const r=Object(i.nb)(t);F(r);const s=N([r[i.eb.ExtraData][0],r[i.eb.ExtraData][1]],e)||[];return N(s,n)||[]}(e,s,r),o=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!==o)return n[o]}return function(t,e,n){const r=Object(i.nb)(t),s=N([r[i.eb.DayPeriodsFormat],r[i.eb.DayPeriodsStandalone]],e);return N(s,n)}(e,s,r)[a<12?0:1];case K.Eras:return function(t,e){return N(Object(i.nb)(t)[i.eb.Eras],e)}(e,r)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(s,o,t,e,n,r)}}function Q(t){return function(e,n,i){const r=-1*i,s=M(n,T.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case H.Short:return(r>=0?"+":"")+X(o,2,s)+X(Math.abs(r%60),2,s);case H.ShortGMT:return"GMT"+(r>=0?"+":"")+X(o,1,s);case H.Long:return"GMT"+(r>=0?"+":"")+X(o,2,s)+":"+X(Math.abs(r%60),2,s);case H.Extended:return 0===i?"Z":(r>=0?"+":"")+X(o,2,s)+":"+X(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function J(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}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=J(n),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)}return X(r,t,M(i,T.MinusSign))}}function et(t,e=!1){return function(n,i){return X(J(n).getFullYear(),t,M(i,T.MinusSign),e)}}const nt={};function it(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function rt(t){return t instanceof Date&&!isNaN(t.valueOf())}const st=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ot=".",at="0";function ct(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class lt{}let ht=(()=>{class t extends lt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(j(e||this.locale)(t)){case O.Zero:return"zero";case O.One:return"one";case O.Two:return"two";case O.Few:return"few";case O.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.w))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();function ut(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 dt=(()=>{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.Pb(i.u),i.Pb(i.v),i.Pb(i.l),i.Pb(i.G))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),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 pt=(()=>{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){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 mt(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 s=new mt(t,r);e.push(s)}});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.Pb(i.S),i.Pb(i.O),i.Pb(i.u))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class mt{constructor(t,e){this.record=t,this.view=e}}let bt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new gt,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){_t("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_t("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.Pb(i.S),i.Pb(i.O))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class gt{constructor(){this.$implicit=null,this.ngIf=null}}function _t(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.yb)(e)}'.`)}class yt{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 vt=(()=>{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.Kb({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),wt=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new yt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.S),i.Pb(i.O),i.Pb(vt,1))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),xt=(()=>{class t{constructor(t,e,n){n._addDefault(new yt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.S),i.Pb(i.O),i.Pb(vt,1))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Ct=(()=>{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.Pb(i.l),i.Pb(i.v),i.Pb(i.G))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),St=(()=>{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.Pb(i.S))},t.\u0275dir=i.Kb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Bb]}),t})();function Et(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.yb)(t)}'`)}class kt{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ot{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const At=new Ot,Dt=new kt;let It=(()=>{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 At;if(Object(i.ub)(e))return Dt;throw Et(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.bc())},t.\u0275pipe=i.Ob({name:"async",type:t,pure:!1}),t})(),Tt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"lowercase",type:t,pure:!0}),t})();const Lt=/(?:[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 Pt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.replace(Lt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"titlecase",type:t,pure:!0}),t})(),Rt=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Et(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"uppercase",type:t,pure:!0}),t})(),Mt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,r){if(null==e||""===e||e!=e)return null;try{return q(e,n,r||this.locale,i)}catch(s){throw Et(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.w))},t.\u0275pipe=i.Ob({name:"date",type:t,pure:!0}),t})(),jt=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Ob({name:"json",type:t,pure:!1}),t})(),Ft=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;r=r||this._locale;try{return function(t,e,n){return function(t,e,n,i,r,s,o=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,i,r,s,o=Math.abs(t)+"",a=0;for((n=o.indexOf(ot))>-1&&(o=o.replace(ot,"")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;o.charAt(i)===at;i++);if(i===(s=o.length))e=[0],n=1;else{for(s--;o.charAt(s)===at;)s--;for(n-=i,e=[],r=0;i<=s;i++,r++)e[r]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(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 h=e.minInt,u=e.minFrac,d=e.maxFrac;if(s){const t=s.match(st);if(null===t)throw new Error(s+" is not a valid digit info");const e=t[1],n=t[3],i=t[5];null!=e&&(h=ct(e)),null!=n&&(u=ct(n)),null!=i?d=ct(i):null!=n&&u>d&&(d=u)}!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 s=Math.min(Math.max(e,r),n);let o=s+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t<i.length;t++)i[t]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let t=1;t<o;t++)i[t]=0}if(a>=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let c=0!==s;const l=e+t.integerLen,h=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);h&&(i.unshift(h),t.integerLen++)}(l,u,d);let f=l.digits,p=l.integerLen;const m=l.exponent;let b=[];for(c=f.every(t=>!t);p<h;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?b=f.splice(p,f.length):(b=f,f=[0]);const g=[];for(f.length>=e.lgSize&&g.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)g.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&g.unshift(f.join("")),a=g.join(M(n,i)),b.length&&(a+=M(n,r)+b.join("")),m&&(a+=M(n,T.Exponential)+"+"+m)}else a=M(n,T.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(ot)?r.split(ot):[r.substring(0,r.lastIndexOf(at)+1),r.substring(r.lastIndexOf(at)+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let h=0;h<c.length;h++){const t=c.charAt(h);t===at?n.minFrac=n.maxFrac=h+1:"#"===t?n.maxFrac=h+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,s){const t=r.length-n.posPre.length-n.posSuf.length,e=s.indexOf("#");n.negPre=s.substr(0,e).replace(/'/g,""),n.negSuf=s.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}(function(t,e){return Object(i.nb)(t)[i.eb.NumberFormats][e]}(e,k.Decimal),M(e,T.MinusSign)),e,T.Group,T.Decimal,n)}(function(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}(e),r,n)}catch(s){throw Et(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.w))},t.\u0275pipe=i.Ob({name:"number",type:t,pure:!0}),t})(),Nt=(()=>{class t{transform(e,n,i){if(null==e)return null;if(!this.supports(e))throw Et(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.Ob({name:"slice",type:t,pure:!1}),t})(),Vt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[{provide:lt,useClass:ht}]}),t})();const Ut="browser";function Bt(t){return t===Ut}function zt(t){return"server"===t}let Ht=(()=>{class t{}return t.\u0275prov=Object(i.Lb)({token:t,providedIn:"root",factory:()=>new Wt(Object(i.Zb)(c),window,Object(i.Zb)(i.n))}),t})();class Wt{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.pageXOffset,this.window.pageYOffset]:[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.supportsScrolling())return!1;const t=Kt(this.window.history)||Kt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Kt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},Sc7j:function(t,e,n){"use strict";function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;for(t.entry=null;i;){var r=i.callback;e.pendingcb--,r(void 0),i=i.next}e.corkedRequestsFree.next=t}(e,t)}}var r;t.exports=S,S.WritableState=C;var s,o={deprecate:n("t9FE")},a=n("8Spv"),c=n("tjlA").Buffer,l=global.Uint8Array||function(){},h=n("kBkV"),u=n("BfC4").getHighWaterMark,d=n("0ROu").codes,f=d.ERR_INVALID_ARG_TYPE,p=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,b=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,_=d.ERR_STREAM_NULL_VALUES,y=d.ERR_STREAM_WRITE_AFTER_END,v=d.ERR_UNKNOWN_ENCODING,w=h.errorOrDestroy;function x(){}function C(t,e,s){r=r||n("Xn1i"),"boolean"!=typeof s&&(s=e instanceof r),this.objectMode=!!(t=t||{}).objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=u(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===t.decodeStrings),this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,r=n.writecb;if("function"!=typeof r)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,r){--e.pendingcb,n?(process.nextTick(r,i),process.nextTick(I,t,e),t._writableState.errorEmitted=!0,w(t,i)):(r(i),t._writableState.errorEmitted=!0,w(t,i),I(t,e))}(t,n,i,e,r);else{var s=A(n)||t.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||O(t,n),i?process.nextTick(k,t,n,s,r):k(t,n,s,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function S(t){var e=this instanceof(r=r||n("Xn1i"));if(!e&&!s.call(S,this))return new S(t);this._writableState=new C(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function E(t,e,n,i,r,s,o){e.writelen=i,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new g("write")):n?t._writev(r,e.onwrite):t._write(r,s,e.onwrite),e.sync=!1}function k(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),I(t,e)}function O(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=new Array(e.bufferedRequestCount),s=e.corkedRequestsFree;s.entry=n;for(var o=0,a=!0;n;)r[o]=n,n.isBuf||(a=!1),n=n.next,o+=1;r.allBuffers=a,E(t,e,!0,e.length,r,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var c=n.chunk;if(E(t,e,!1,e.objectMode?1:c.length,c,n.encoding,n.callback),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function A(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function D(t,e){t._final(function(n){e.pendingcb--,n&&w(t,n),e.prefinished=!0,t.emit("prefinish"),I(t,e)})}function I(t,e){var n=A(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(D,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}n("2q5Q")(S,a),C.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(C.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!s.call(this,t)||this===S&&t&&t._writableState instanceof C}})):s=function(t){return t instanceof this},S.prototype.pipe=function(){w(this,new b)},S.prototype.write=function(t,e,n){var i,r=this._writableState,s=!1,o=!r.objectMode&&(c.isBuffer(i=t)||i instanceof l);return o&&!c.isBuffer(t)&&(t=function(t){return c.from(t)}(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=x),r.ending?function(t,e){var n=new y;w(t,n),process.nextTick(e,n)}(this,n):(o||function(t,e,n,i){var r;return null===n?r=new _:"string"==typeof n||e.objectMode||(r=new f("chunk",["string","Buffer"],n)),!r||(w(t,r),process.nextTick(i,r),!1)}(this,r,t,n))&&(r.pendingcb++,s=function(t,e,n,i,r,s){if(!n){var o=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=c.from(e,n)),e}(e,i,r);i!==o&&(n=!0,r="buffer",i=o)}var a=e.objectMode?1:i.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var h=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:s,next:null},h?h.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else E(t,e,!1,a,i,r,s);return l}(this,r,o,t,e,n)),s},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new v(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,n){n(new p("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,n){var i=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,I(t,e),n&&(e.finished?process.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=h.destroy,S.prototype._undestroy=h.undestroy,S.prototype._destroy=function(t,e){e(t)}},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("ngJS"),r=n("NJ4a"),s=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const h=t=>{if(t&&"function"==typeof t[o.a])return h=t,t=>{const e=h[o.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[s.a])return e=t,t=>{const n=e[s.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,h}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",function(){return i})},SqCe:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return C});var i=n("SVse"),r=n("8Y7J"),s=n("UhP/"),o=n("8LU1"),a=n("XNiG"),c=n("1G5W"),l=(n("JX91"),n("YEUz"),n("CtHx"),n("Ht+U"),n("s7LF"),n("BSbQ"));const h=["*"],u=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],d=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class f{}const p=Object(s.z)(Object(s.y)(f));class m{}const b=Object(s.y)(m),g=new r.s("MatList"),_=new r.s("MatNavList");let y=(()=>{class t extends p{constructor(t){super(),this._elementRef=t,this._stateChanges=new a.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)(r.Pb(r.l))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[r.Cb([{provide:g,useExisting:t}]),r.Ab,r.Bb],ngContentSelectors:h,decls:1,vars:0,template:function(t,e){1&t&&(r.nc(),r.mc(0))},styles:['.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'],encapsulation:2,changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Kb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Kb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),x=(()=>{class t extends b{constructor(t,e,n,i){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new a.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(Object(c.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(o.c)(t)}ngAfterContentInit(){Object(s.D)(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)(r.Pb(r.l),r.Pb(r.h),r.Pb(_,8),r.Pb(g,8))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){if(1&t&&(r.Ib(n,v,!0),r.Ib(n,w,!0),r.Ib(n,s.j,!0)),2&t){let t;r.vc(t=r.ec())&&(e._avatar=t.first),r.vc(t=r.ec())&&(e._icon=t.first),r.vc(t=r.ec())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&r.Hb("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:[r.Ab],ngContentSelectors:d,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&&(r.nc(u),r.Vb(0,"div",0),r.Qb(1,"div",1),r.mc(2),r.Vb(3,"div",2),r.mc(4,1),r.Ub(),r.mc(5,2),r.Ub()),2&t&&(r.Db(1),r.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[s.r],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},imports:[[s.k,s.s,s.i,s.q,i.c],s.k,s.i,s.q,l.b]}),t})()},SxV6:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("sVev"),r=n("pLZG"),s=n("IzEk"),o=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Object(r.a)((e,n)=>t(e,n,l)):c.a,Object(s.a)(1),n?Object(o.a)(e):Object(a.a)(()=>new i.a))}},T9HO:function(t,e,n){var i=n("P7XM"),r=n("tnIz"),s=n("hwdV").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,r.call(this,128,112)}function l(t,e,n){return n^t&(e^n)}function h(t,e,n){return t&e|n&(t|e)}function u(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0<e>>>0?1:0}i(c,r),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(t){for(var e=this._w,n=0|this._ah,i=0|this._bh,r=0|this._ch,s=0|this._dh,a=0|this._eh,c=0|this._fh,_=0|this._gh,y=0|this._hh,v=0|this._al,w=0|this._bl,x=0|this._cl,C=0|this._dl,S=0|this._el,E=0|this._fl,k=0|this._gl,O=0|this._hl,A=0;A<32;A+=2)e[A]=t.readInt32BE(4*A),e[A+1]=t.readInt32BE(4*A+4);for(;A<160;A+=2){var D=e[A-30],I=e[A-30+1],T=f(D,I),L=p(I,D),P=m(D=e[A-4],I=e[A-4+1]),R=b(I,D),M=e[A-32],j=e[A-32+1],F=L+e[A-14+1]|0,N=T+e[A-14]+g(F,L)|0;N=(N=N+P+g(F=F+R|0,R)|0)+M+g(F=F+j|0,j)|0,e[A]=N,e[A+1]=F}for(var V=0;V<160;V+=2){N=e[V],F=e[V+1];var U=h(n,i,r),B=h(v,w,x),z=u(n,v),H=u(v,n),W=d(a,S),K=d(S,a),q=o[V],Y=o[V+1],Z=l(a,c,_),X=l(S,E,k),G=O+K|0,$=y+W+g(G,O)|0;$=($=($=$+Z+g(G=G+X|0,X)|0)+q+g(G=G+Y|0,Y)|0)+N+g(G=G+F|0,F)|0;var Q=H+B|0,J=z+U+g(Q,H)|0;y=_,O=k,_=c,k=E,c=a,E=S,a=s+$+g(S=C+G|0,C)|0,s=r,C=x,r=i,x=w,i=n,w=v,n=$+J+g(v=G+Q|0,G)|0}this._al=this._al+v|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+C|0,this._el=this._el+S|0,this._fl=this._fl+E|0,this._gl=this._gl+k|0,this._hl=this._hl+O|0,this._ah=this._ah+n+g(this._al,v)|0,this._bh=this._bh+i+g(this._bl,w)|0,this._ch=this._ch+r+g(this._cl,x)|0,this._dh=this._dh+s+g(this._dl,C)|0,this._eh=this._eh+a+g(this._el,S)|0,this._fh=this._fh+c+g(this._fl,E)|0,this._gh=this._gh+_+g(this._gl,k)|0,this._hh=this._hh+y+g(this._hl,O)|0},c.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=c},"TN/R":function(t,e,n){"use strict";n.d(e,"a",function(){return gt}),n.d(e,"b",function(){return Ct}),n.d(e,"c",function(){return kt}),n.d(e,"d",function(){return Et});var i=n("YEUz"),r=n("1O3W"),s=n("1z/I"),o=n("SVse"),a=n("8Y7J"),c=n("Dxy4"),l=n("iELJ"),h=n("7KAL"),u=n("UhP/"),d=n("XNiG"),f=n("quSY"),p=n("VRyK"),m=n("LRne"),b=n("Ht+U"),g=n("IzEk"),_=n("JX91"),y=n("pLZG"),v=n("8LU1"),w=n("GS7A"),x=n("s7LF"),C=n("Q2Ze"),S=n("e6WT"),E=n("9gLZ");const k=["mat-calendar-body",""];function O(t,e){if(1&t&&(a.Vb(0,"tr",2),a.Vb(1,"td",3),a.Kc(2),a.Ub(),a.Ub()),2&t){const t=a.hc();a.Db(1),a.Fc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Eb("colspan",t.numCols),a.Db(1),a.Mc(" ",t.label," ")}}function A(t,e){if(1&t&&(a.Vb(0,"td",7),a.Kc(1),a.Ub()),2&t){const t=a.hc(2);a.Fc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Eb("colspan",t._firstRowOffset),a.Db(1),a.Mc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function D(t,e){if(1&t){const t=a.Wb();a.Vb(0,"td",8),a.dc("click",function(n){a.zc(t);const i=e.$implicit;return a.hc(2)._cellClicked(i,n)}),a.Vb(1,"div",9),a.Kc(2),a.Ub(),a.Qb(3,"div",10),a.Ub()}if(2&t){const t=e.$implicit,n=e.index,i=a.hc().index,r=a.hc();a.Fc("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),a.Hb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",r._isActiveCell(i,n))("mat-calendar-body-range-start",r._isRangeStart(t.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",r._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(t.compareValue,i,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(t.compareValue,i,n))("mat-calendar-body-comparison-start",r._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",r._isInPreview(t.compareValue)),a.oc("ngClass",t.cssClasses)("tabindex",r._isActiveCell(i,n)?0:-1),a.Eb("data-mat-row",i)("data-mat-col",n)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",r._isSelected(t.compareValue)),a.Db(1),a.Hb("mat-calendar-body-selected",r._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",r.todayValue===t.compareValue),a.Db(1),a.Mc(" ",t.displayValue," ")}}function I(t,e){if(1&t&&(a.Vb(0,"tr",4),a.Ic(1,A,2,6,"td",5),a.Ic(2,D,4,46,"td",6),a.Ub()),2&t){const t=e.$implicit,n=e.index,i=a.hc();a.Db(1),a.oc("ngIf",0===n&&i._firstRowOffset),a.Db(1),a.oc("ngForOf",t)}}function T(t,e){if(1&t&&(a.Vb(0,"th",5),a.Kc(1),a.Ub()),2&t){const t=e.$implicit;a.Eb("aria-label",t.long),a.Db(1),a.Lc(t.narrow)}}const L=["*"];function P(t,e){}function R(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-month-view",5),a.dc("activeDateChange",function(e){return a.zc(t),a.hc().activeDate=e})("_userSelection",function(e){return a.zc(t),a.hc()._dateSelected(e)}),a.Ub()}if(2&t){const t=a.hc();a.oc("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 M(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-year-view",6),a.dc("activeDateChange",function(e){return a.zc(t),a.hc().activeDate=e})("monthSelected",function(e){return a.zc(t),a.hc()._monthSelectedInYearView(e)})("selectedChange",function(e){return a.zc(t),a.hc()._goToDateInView(e,"month")}),a.Ub()}if(2&t){const t=a.hc();a.oc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function j(t,e){if(1&t){const t=a.Wb();a.Vb(0,"mat-multi-year-view",7),a.dc("activeDateChange",function(e){return a.zc(t),a.hc().activeDate=e})("yearSelected",function(e){return a.zc(t),a.hc()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return a.zc(t),a.hc()._goToDateInView(e,"year")}),a.Ub()}if(2&t){const t=a.hc();a.oc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}const F=["button"];function N(t,e){1&t&&(a.gc(),a.Vb(0,"svg",3),a.Qb(1,"path",4),a.Ub())}const V=[[["","matDatepickerToggleIcon",""]]],U=["[matDatepickerToggleIcon]"];let B=(()=>{class t{constructor(){this.changes=new d.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close 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(a.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class z{constructor(t,e,n,i,r={},s=t,o){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasses=r,this.compareValue=s,this.rawValue=o}}let H=(()=>{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 a.o,this.previewChange=new a.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&&W(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||this.endValue===t}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.pipe(Object(g.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return K(t,this.startValue,this.endValue)}_isRangeEnd(t){return q(t,this.startValue,this.endValue)}_isInRange(t){return Y(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return K(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 q(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return Y(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return K(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return q(t,this.previewStart,this.previewEnd)}_isInPreview(t){return Y(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(W(t)?e=t:W(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)(a.Pb(a.l),a.Pb(a.B))},t.\u0275cmp=a.Jb({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:[a.Bb],attrs:k,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&&(a.Ic(0,O,3,6,"tr",0),a.Ic(1,I,3,2,"tr",1)),2&t&&(a.oc("ngIf",e._firstRowOffset<e.labelMinRequiredCells),a.Db(1),a.oc("ngForOf",e.rows))},directives:[o.o,o.n,o.m],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 W(t){return"TD"===t.nodeName}function K(t,e,n){return null!==n&&e!==n&&t<n&&t===e}function q(t,e,n){return null!==e&&e!==n&&t>=e&&t===n}function Y(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}class Z{constructor(t,e){this.start=t,this.end=e}}let X=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new d.a,this.selectionChanged=this._selectionChanged,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)(a.Pb(void 0),a.Pb(u.c))},t.\u0275dir=a.Kb({type:t}),t})(),G=(()=>{class t extends X{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)(a.Zb(u.c))},t.\u0275prov=a.Lb({token:t,factory:t.\u0275fac}),t})();const $={provide:X,deps:[[new a.C,new a.M,X],u.c],useFactory:function(t,e){return t||new G(e)}},Q=new a.s("MAT_DATE_RANGE_SELECTION_STRATEGY");let J=(()=>{class t{constructor(t,e,n,i,r){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rangeStrategy=r,this._rerenderSubscription=f.a.EMPTY,this.selectedChange=new a.o,this._userSelection=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._dateAdapter.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 Z?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}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 s,o;this._selected instanceof Z?(s=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):s=o=this._getDateInCurrentMonth(this._selected),s===e&&o===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 b.h:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case b.l:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case b.o:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case b.c:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case b.g:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case b.d:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case b.k:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case b.j:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case b.e:case b.m:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case b.f:return void(null==this._previewEnd||Object(b.r)(t)||(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),s=this._dateAdapter.format(t,this._dateFormats.display.dateA11yLabel),o=this.dateClass?this.dateClass(t,"month"):void 0;this._weeks[this._weeks.length-1].push(new z(n+1,e[n],s,r,o,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}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof Z?(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)(a.Pb(a.h),a.Pb(u.e,8),a.Pb(u.c,8),a.Pb(E.b,8),a.Pb(Q,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&a.Pc(H,!0),2&t){let t;a.vc(t=a.ec())&&(e._matCalendarBody=t.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"],features:[a.Bb],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&&(a.Vb(0,"table",0),a.Vb(1,"thead",1),a.Vb(2,"tr"),a.Ic(3,T,2,2,"th",2),a.Ub(),a.Vb(4,"tr"),a.Qb(5,"th",3),a.Ub(),a.Ub(),a.Vb(6,"tbody",4),a.dc("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.Ub(),a.Ub()),2&t&&(a.Db(3),a.oc("ngForOf",e._weekdays),a.Db(3),a.oc("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.n,H],encapsulation:2,changeDetection:0}),t})();const tt=24;let et=(()=>{class t{constructor(t,e,n){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this._rerenderSubscription=f.a.EMPTY,this.selectedChange=new a.o,this.yearSelected=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),nt(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Z?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];e<tt;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 b.h:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case b.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case b.o:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case b.c:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case b.g:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case b.d:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt-it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case b.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case b.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:tt);break;case b.e:case b.m: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 it(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),n=this._dateAdapter.getYearName(e),i=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new z(t,n,n,this._shouldEnableYear(t),i)}_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}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(t){if(this._selectedYear=null,t instanceof Z){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)(a.Pb(a.h),a.Pb(u.c,8),a.Pb(E.b,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-multi-year-view"]],viewQuery:function(t,e){if(1&t&&a.Pc(H,!0),2&t){let t;a.vc(t=a.ec())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},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&&(a.Vb(0,"table",0),a.Vb(1,"thead",1),a.Vb(2,"tr"),a.Qb(3,"th",2),a.Ub(),a.Ub(),a.Vb(4,"tbody",3),a.dc("selectedValueChange",function(t){return e._yearSelected(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.Ub(),a.Ub()),2&t&&(a.Db(4),a.oc("rows",e._years)("todayValue",e._todayYear)("startValue",e._selectedYear)("endValue",e._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",e._getActiveCell()))},directives:[H],encapsulation:2,changeDetection:0}),t})();function nt(t,e,n,i,r){const s=t.getYear(e),o=t.getYear(n),a=rt(t,i,r);return Math.floor((s-a)/tt)===Math.floor((o-a)/tt)}function it(t,e,n,i){return((t.getYear(e)-rt(t,n,i))%tt+24)%24}function rt(t,e,n){let i=0;return n?i=t.getYear(n)-tt+1:e&&(i=t.getYear(e)),i}let st=(()=>{class t{constructor(t,e,n,i){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=f.a.EMPTY,this.selectedChange=new a.o,this.monthSelected=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.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 Z?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(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 b.h:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case b.l:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case b.o:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case b.c:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case b.g:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case b.d:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case b.k:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case b.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case b.e:case b.m: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){const n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),i=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(n,"year"):void 0;return new z(t,e.toLocaleUpperCase(),i,this._shouldEnableMonth(t),r)}_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}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(t){this._selectedMonth=t instanceof Z?this._getMonthInCurrentYear(t.start)||this._getMonthInCurrentYear(t.end):this._getMonthInCurrentYear(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.h),a.Pb(u.e,8),a.Pb(u.c,8),a.Pb(E.b,8))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-year-view"]],viewQuery:function(t,e){if(1&t&&a.Pc(H,!0),2&t){let t;a.vc(t=a.ec())&&(e._matCalendarBody=t.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},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&&(a.Vb(0,"table",0),a.Vb(1,"thead",1),a.Vb(2,"tr"),a.Qb(3,"th",2),a.Ub(),a.Ub(),a.Vb(4,"tbody",3),a.dc("selectedValueChange",function(t){return e._monthSelected(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),a.Ub(),a.Ub()),2&t&&(a.Db(4),a.oc("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:[H],encapsulation:2,changeDetection:0}),t})(),ot=0,at=(()=>{class t{constructor(t,e,n,i,r){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=i,this._buttonDescriptionId="mat-calendar-button-"+ot++,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)-it(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+tt-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:tt)}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):nt(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(B),a.Pb(Object(a.X)(()=>ct)),a.Pb(u.c,8),a.Pb(u.e,8),a.Pb(a.h))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:L,decls:10,vars:10,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&&(a.nc(),a.Vb(0,"div",0),a.Vb(1,"div",1),a.Vb(2,"button",2),a.dc("click",function(){return e.currentPeriodClicked()}),a.Vb(3,"span"),a.Kc(4),a.Ub(),a.Qb(5,"div",3),a.Ub(),a.Qb(6,"div",4),a.mc(7),a.Vb(8,"button",5),a.dc("click",function(){return e.previousClicked()}),a.Ub(),a.Vb(9,"button",6),a.dc("click",function(){return e.nextClicked()}),a.Ub(),a.Ub(),a.Ub()),2&t&&(a.Db(2),a.Eb("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),a.Db(1),a.Eb("id",e._buttonDescriptionId),a.Db(1),a.Lc(e.periodButtonText),a.Db(1),a.Hb("mat-calendar-invert","month"!==e.calendar.currentView),a.Db(3),a.oc("disabled",!e.previousEnabled()),a.Eb("aria-label",e.prevButtonLabel),a.Db(1),a.oc("disabled",!e.nextEnabled()),a.Eb("aria-label",e.nextButtonLabel))},directives:[c.a,i.d],encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t{constructor(t,e,n,i){this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=i,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.o,this.yearSelected=new a.o,this.monthSelected=new a.o,this.viewChanged=new a.o(!0),this._userSelection=new a.o,this.stateChanges=new d.a,this._intlChanges=t.changes.subscribe(()=>{i.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof Z?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.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){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new s.d(this.headerComponent||at),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 Z||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}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(B),a.Pb(u.c,8),a.Pb(u.e,8),a.Pb(a.h))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(a.Pc(J,!0),a.Pc(st,!0),a.Pc(et,!0)),2&t){let t;a.vc(t=a.ec())&&(e.monthView=t.first),a.vc(t=a.ec())&&(e.yearView=t.first),a.vc(t=a.ec())&&(e.multiYearView=t.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",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a.Cb([$]),a.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","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(a.Ic(0,P,0,0,"ng-template",0),a.Vb(1,"div",1),a.Ic(2,R,1,8,"mat-month-view",2),a.Ic(3,M,1,6,"mat-year-view",3),a.Ic(4,j,1,6,"mat-multi-year-view",4),a.Ub()),2&t&&(a.oc("cdkPortalOutlet",e._calendarHeaderPortal),a.Db(1),a.oc("ngSwitch",e.currentView),a.Db(1),a.oc("ngSwitchCase","month"),a.Db(1),a.oc("ngSwitchCase","year"),a.Db(1),a.oc("ngSwitchCase","multi-year"))},directives:[s.c,i.e,o.q,o.r,J,st,et],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 lt={transformPanel:Object(w.m)("transformPanel",[Object(w.j)("void",Object(w.k)({opacity:0,transform:"scale(1, 0.8)"})),Object(w.l)("void => enter",Object(w.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(w.k)({opacity:1,transform:"scale(1, 1)"}))),Object(w.l)("* => void",Object(w.e)("100ms linear",Object(w.k)({opacity:0})))]),fadeInCalendar:Object(w.m)("fadeInCalendar",[Object(w.j)("void",Object(w.k)({opacity:0})),Object(w.j)("enter",Object(w.k)({opacity:1})),Object(w.l)("void => *",Object(w.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ht=0;const ut=new a.s("mat-datepicker-scroll-strategy"),dt={provide:ut,deps:[r.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ft{constructor(t){this._elementRef=t}}const pt=Object(u.x)(ft);let mt=(()=>{class t extends pt{constructor(t,e,n,i,r,s){super(t),this._changeDetectorRef=e,this._model=n,this._dateAdapter=i,this._rangeSelectionStrategy=r,this._subscriptions=new f.a,this._animationState="enter",this._animationDone=new d.a,this._closeButtonText=(null==s?void 0:s.closeCalendarLabel)||"Close calendar"}ngAfterViewInit(){this._subscriptions.add(this.datepicker._stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,n=t.value,i=e instanceof Z;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.markForCheck()}_getSelected(){return this._model.selection}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(a.h),a.Pb(X),a.Pb(u.c),a.Pb(Q,8),a.Pb(B))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&a.Pc(ct,!0),2&t){let t;a.vc(t=a.ec())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.Gc("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(a.Hc("@transformPanel",e._animationState),a.Hb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.Ab],decls:4,vars:16,consts:[["cdkTrapFocus",""],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],["type","button","mat-raised-button","","color","primary",1,"mat-datepicker-close-button",3,"focus","blur","click"]],template:function(t,e){1&t&&(a.Vb(0,"div",0),a.Vb(1,"mat-calendar",1),a.dc("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),a.Ub(),a.Vb(2,"button",2),a.dc("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),a.Kc(3),a.Ub(),a.Ub()),2&t&&(a.Db(1),a.oc("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"),a.Db(1),a.Hb("cdk-visually-hidden",!e._closeButtonFocused),a.Db(1),a.Lc(e._closeButtonText))},directives:[i.f,ct,o.m,c.a],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.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:[lt.transformPanel,lt.fadeInCalendar]},changeDetection:0}),t})(),bt=(()=>{class t{constructor(t,e,n,i,r,s,o,c,l){this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=i,this._dateAdapter=s,this._dir=o,this._document=c,this._model=l,this._inputStateChanges=f.a.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new a.o,this.monthSelected=new a.o,this.viewChanged=new a.o(!0),this.openedStream=new a.o,this.closedStream=new a.o,this._opened=!1,this.id="mat-datepicker-"+ht++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this.id+"-backdrop",this._stateChanges=new d.a,this._scrollStrategy=r}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.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=Object(v.c)(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=Object(v.c)(t);e!==this._disabled&&(this._disabled=e,this._stateChanges.next(void 0))}get panelClass(){return this._panelClass}set panelClass(t){this._panelClass=Object(v.g)(t)}get opened(){return this._opened}set opened(t){Object(v.c)(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)}_viewChanged(t){this.viewChanged.emit(t)}_registerInput(t){return this._inputStateChanges.unsubscribe(),this._datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this._stateChanges.next(void 0)),this._model}open(){this._opened||this.disabled||(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(Object(g.a)(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(mt,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],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 s.d(mt,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Object(g.a)(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 r.d({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(p.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(y.a)(t=>t.keyCode===b.f&&!Object(b.r)(t)||this._datepickerInput&&Object(b.r)(t,"altKey")&&t.keyCode===b.o))).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}])}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(l.c),a.Pb(r.c),a.Pb(a.B),a.Pb(a.S),a.Pb(ut),a.Pb(u.c,8),a.Pb(E.b,8),a.Pb(o.d,8),a.Pb(X))},t.\u0275dir=a.Kb({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.Bb]}),t})(),gt=(()=>{class t extends bt{}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a.Cb([$]),a.Ab],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const _t=a.Xb(gt);class yt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let vt=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this.dateChange=new a.o,this.dateInput=new a.o,this._valueChange=new a.o,this.stateChanges=new d.a,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=f.a.EMPTY,this._localeSubscription=f.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.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._dateAdapter.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._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._dateAdapter.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=Object(v.c)(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 yt(this,this._elementRef.nativeElement)),this.dateChange.emit(new yt(this,this._elementRef.nativeElement))),this._outsideValueChanged&&this._outsideValueChanged()}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const n=Object.keys(t);for(let i of n){const{previousValue:n,currentValue:r}=t[i];if(!e.isDateInstance(n)||!e.isDateInstance(r))return!0;if(!e.sameDate(n,r))return!0}return!1})(t,this._dateAdapter)&&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&&t.keyCode===b.c&&!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._dateAdapter.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 yt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new yt(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):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.l),a.Pb(u.c,8),a.Pb(u.e,8))},t.\u0275dir=a.Kb({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.Bb]}),t})();const wt={provide:x.k,useExisting:Object(a.X)(()=>Ct),multi:!0},xt={provide:x.j,useExisting:Object(a.X)(()=>Ct),multi:!0};let Ct=(()=>{class t extends vt{constructor(t,e,n,i){super(t,e,n),this._formField=i,this._validator=x.t.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._registerModel(t._registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}_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)(a.Pb(a.l),a.Pb(u.c,8),a.Pb(u.e,8),a.Pb(C.a,8))},t.\u0275dir=a.Kb({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.dc("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&&(a.Yb("disabled",e.disabled),a.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)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a.Cb([wt,xt,{provide:S.a,useExisting:t}]),a.Ab]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Kb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),Et=(()=>{class t{constructor(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=f.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=Object(v.c)(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(m.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:Object(m.a)(),n=this.datepicker?Object(p.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(m.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(p.a)(this._intl.changes,t,e,n).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(B),a.Pb(a.h),a.ac("tabindex"))},t.\u0275cmp=a.Jb({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){if(1&t&&a.Ib(n,St,!0),2&t){let t;a.vc(t=a.ec())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&a.Pc(F,!0),2&t){let t;a.vc(t=a.ec())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.dc("focus",function(){return e._button.focus()}),2&t&&(a.Eb("tabindex",e.disabled?null:-1)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.Hb("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:[a.Bb],ngContentSelectors:U,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&&(a.nc(V),a.Vb(0,"button",0,1),a.dc("click",function(t){return e._open(t)}),a.Ic(2,N,2,0,"svg",2),a.mc(3),a.Ub()),2&t&&(a.oc("disabled",e.disabled)("disableRipple",e.disableRipple),a.Eb("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.Db(2),a.oc("ngIf",!e._customIcon))},directives:[c.a,o.o],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})(),kt=(()=>{class t{}return t.\u0275mod=a.Nb({type:t}),t.\u0275inj=a.Mb({factory:function(e){return new(e||t)},providers:[B,dt],imports:[[o.c,c.b,l.e,r.f,i.a,s.h,u.i],h.b]}),t})()},TdD3:function(t,e,n){var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=n("roQf"),a=n("/ab2"),c=n("hwdV").Buffer;t.exports=function(t,e){var n,l=t.toString(),h=l.match(i);if(h){var u="aes"+h[1],d=c.from(h[2],"hex"),f=c.from(h[3].replace(/[\r\n]/g,""),"base64"),p=o(e,d.slice(0,8),parseInt(h[1],10)).key,m=[],b=a.createDecipheriv(u,p,d);m.push(b.update(f)),m.push(b.final()),n=c.concat(m)}else{var g=l.match(s);n=c.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(r)[1],data:n}}},Titl:function(t,e,n){"use strict";var i=n("2j6C"),r=n("P7XM"),s=n("Xudb"),o=n("AYSA");function a(){this.tmp=new Array(2),this.keys=null}function c(t){o.call(this,t);var e=new a;this._desState=e,this.deriveKeys(e,t.key)}r(c,o),t.exports=c,c.create=function(t){return new c(t)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(t,e){t.keys=new Array(32),i.equal(e.length,this.blockSize,"Invalid key length");var n=s.readUInt32BE(e,0),r=s.readUInt32BE(e,4);s.pc1(n,r,t.tmp,0),n=t.tmp[0],r=t.tmp[1];for(var o=0;o<t.keys.length;o+=2){var a=l[o>>>1];n=s.r28shl(n,a),r=s.r28shl(r,a),s.pc2(n,r,t.keys,o)}},c.prototype._update=function(t,e,n,i){var r=this._desState,o=s.readUInt32BE(t,e),a=s.readUInt32BE(t,e+4);s.ip(o,a,r.tmp,0),o=r.tmp[0],a=r.tmp[1],"encrypt"===this.type?this._encrypt(r,o,a,r.tmp,0):this._decrypt(r,o,a,r.tmp,0),a=r.tmp[1],s.writeUInt32BE(n,o=r.tmp[0],i),s.writeUInt32BE(n,a,i+4)},c.prototype._pad=function(t,e){for(var n=t.length-e,i=e;i<t.length;i++)t[i]=n;return!0},c.prototype._unpad=function(t){for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)i.equal(t[n],e);return t.slice(0,t.length-e)},c.prototype._encrypt=function(t,e,n,i,r){for(var o=e,a=n,c=0;c<t.keys.length;c+=2){var l=t.keys[c],h=t.keys[c+1];s.expand(a,t.tmp,0);var u=s.substitute(l^=t.tmp[0],h^=t.tmp[1]),d=a;a=(o^s.permute(u))>>>0,o=d}s.rip(a,o,i,r)},c.prototype._decrypt=function(t,e,n,i,r){for(var o=n,a=e,c=t.keys.length-2;c>=0;c-=2){var l=t.keys[c],h=t.keys[c+1];s.expand(o,t.tmp,0);var u=s.substitute(l^=t.tmp[0],h^=t.tmp[1]),d=o;o=(a^s.permute(u))>>>0,a=d}s.rip(o,a,i,r)}},Tj54:function(t,e,n){"use strict";n.d(e,"a",function(){return P}),n.d(e,"b",function(){return R});var i=n("8Y7J"),r=n("UhP/"),s=n("8LU1"),o=n("SVse"),a=n("LRne"),c=n("z6cu"),l=n("cp0P"),h=n("quSY"),u=n("vkgz"),d=n("lJxs"),f=n("JIr8"),p=n("nYR2"),m=n("w1tV"),b=n("IzEk"),g=n("IheW"),_=n("cUpR");const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function x(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let S=(()=>{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 C(n,null,i))}addSvgIconLiteralInNamespace(t,e,n,r){const s=this._sanitizer.sanitize(i.K.HTML,n);if(!s)throw x(n);return this._addSvgIconConfig(t,e,new C("",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 C(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const r=this._sanitizer.sanitize(i.K.HTML,e);if(!r)throw x(e);return this._addSvgIconSetConfig(t,new C("",r,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 w(t);const n=this._cachedIconsByUrl.get(e);return n?Object(a.a)(E(n)):this._loadSvgIconFromConfig(new C(t,null)).pipe(Object(u.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>E(t)))}getNamedSvgIcon(t,e=""){const n=k(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(c.a)(v(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(a.a)(E(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(d.a)(t=>E(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return Object(a.a)(n);const r=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(f.a)(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(a.a)(null)})));return Object(l.a)(r).pipe(Object(d.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw v(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.svgText&&i.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(i),n=this._extractSvgIconFromSet(e,t,i.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e),Object(d.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(a.a)(null):this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e))}_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 s=this._svgElementFromString("<svg></svg>");return s.appendChild(r),this._setSvgAttributes(s,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,s=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 o=this._sanitizer.sanitize(i.K.RESOURCE_URL,n);if(!o)throw w(n);const a=this._inProgressUrlFetches.get(o);if(a)return a;const c=this._httpClient.get(o,{responseType:"text",withCredentials:s}).pipe(Object(p.a)(()=>this._inProgressUrlFetches.delete(o)),Object(m.a)());return this._inProgressUrlFetches.set(o,c),c}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(k(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(g.b,8),i.Zb(_.b),i.Zb(o.d,8),i.Zb(i.n))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(g.b,8),Object(i.Zb)(_.b),Object(i.Zb)(o.d,8),Object(i.Zb)(i.n))},token:t,providedIn:"root"}),t})();function E(t){return t.cloneNode(!0)}function k(t,e){return t+":"+e}class O{constructor(t){this._elementRef=t}}const A=Object(r.x)(O),D=new i.s("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(i.Y)(o.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],T=I.map(t=>`[${t}]`).join(", "),L=/^url\(['"]?#(.*?)['"]?\)$/;let P=(()=>{class t extends A{constructor(t,e,n,i,r){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=r,this._inline=!1,this._currentIconFetch=h.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(s.c)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_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}"`)}}ngOnInit(){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(T),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)I.forEach(t=>{const r=e[i],s=r.getAttribute(t),o=s?s.match(L):null;if(o){let e=n.get(r);e||(e=[],n.set(r,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Object(b.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(S),i.ac("aria-hidden"),i.Pb(D),i.Pb(i.n))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(i.Eb("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),i.Hb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.Ab],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(i.nc(),i.mc(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})(),R=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.i],r.i]}),t})()},UWVS:function(t,e,n){var i=n("jIre");function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(t,e){for(;t._cache.length<e.length;)t._cache=Buffer.concat([t._cache,r(t)]);var n=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,n)}},"UhP/":function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return _}),n.d(e,"c",function(){return D}),n.d(e,"d",function(){return B}),n.d(e,"e",function(){return I}),n.d(e,"f",function(){return ct}),n.d(e,"g",function(){return ut}),n.d(e,"h",function(){return Q}),n.d(e,"i",function(){return w}),n.d(e,"j",function(){return z}),n.d(e,"k",function(){return K}),n.d(e,"l",function(){return U}),n.d(e,"m",function(){return ft}),n.d(e,"n",function(){return bt}),n.d(e,"o",function(){return ht}),n.d(e,"p",function(){return et}),n.d(e,"q",function(){return nt}),n.d(e,"r",function(){return J}),n.d(e,"s",function(){return tt}),n.d(e,"t",function(){return F}),n.d(e,"u",function(){return $}),n.d(e,"v",function(){return pt}),n.d(e,"w",function(){return mt}),n.d(e,"x",function(){return C}),n.d(e,"y",function(){return S}),n.d(e,"z",function(){return x}),n.d(e,"A",function(){return k}),n.d(e,"B",function(){return O}),n.d(e,"C",function(){return E}),n.d(e,"D",function(){return H});var i=n("8Y7J"),r=n("YEUz"),s=n("9gLZ");const o=new i.R("11.0.3");var a=n("SVse"),c=n("8LU1"),l=n("XNiG"),h=n("HDdC"),u=n("SCoL"),d=n("JX91"),f=n("omvX"),p=n("Ht+U");function m(t,e){if(1&t&&i.Qb(0,"mat-pseudo-checkbox",3),2&t){const t=i.hc();i.oc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const b=["*"];let g=(()=>{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})(),_=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const y=new i.R("11.0.3"),v=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let w=(()=>{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)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(i.Z)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.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"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&y.full!==o.full&&console.warn("The Angular Material version ("+y.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)(i.Zb(r.j),i.Zb(v,8),i.Zb(a.d))},imports:[[s.a],s.a]}),t})();function x(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(c.c)(t)}}}function E(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(c.f)(t):this.defaultTabIndex}}}function k(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.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 O(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const A=new i.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(i.Y)(i.w)}});class D{constructor(){this._localeChanges=new l.a,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}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 I=new i.s("mat-date-formats");let T;try{T="undefined"!=typeof Intl}catch(gt){T=!1}const L={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"]},P=j(31,t=>String(t+1)),R={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},M=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function j(t,e){const n=Array(t);for(let i=0;i<t;i++)n[i]=e(i);return n}let F=(()=>{class t extends D{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(T){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return j(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return L[t]}getDateNames(){if(T){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return j(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return P}getDayOfWeekNames(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return j(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return R[t]}getYearName(t){if(T){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){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),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(T){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(M.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;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(A,8),i.Zb(u.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),N=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[{provide:D,useClass:F}],imports:[[u.b]]}),t})();const V={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 U=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[{provide:I,useValue:V}],imports:[[N]]}),t})(),B=(()=>{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.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function H(t,e,n="mat"){t.changes.pipe(Object(d.a)(t)).subscribe(({length:t})=>{W(e,n+"-2-line",!1),W(e,n+"-3-line",!1),W(e,n+"-multi-line",!1),2===t||3===t?W(e,`${n}-${t}-line`,!0):t>3&&W(e,n+"-multi-line",!0)})}function W(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let K=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[w],w]}),t})();class q{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Y={enterDuration:450,exitDuration:400},Z=Object(u.f)({passive:!0}),X=["mousedown","touchstart"],G=["mouseup","mouseleave","touchend","touchcancel"];class ${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=Object(c.e)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},Y),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const s=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),o=t-i.left,a=e-i.top,c=r.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=o-s+"px",l.style.top=a-s+"px",l.style.height=2*s+"px",l.style.width=2*s+"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 h=new q(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},c),h}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({},Y),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=Object(c.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(X))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(G),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(r.l)(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,Z)})})}_removeTriggerEvents(){this._triggerElement&&(X.forEach(t=>{this._triggerElement.removeEventListener(t,this,Z)}),this._pointerUpEventsRegistered&&G.forEach(t=>{this._triggerElement.removeEventListener(t,this,Z)}))}}const Q=new i.s("mat-ripple-global-options");let J=(()=>{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 $(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.Pb(i.l),i.Pb(i.B),i.Pb(u.a),i.Pb(Q,8),i.Pb(f.a,8))},t.\u0275dir=i.Kb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Hb("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})(),tt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[w,u.b],w]}),t})(),et=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(f.a,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Hb("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})(),nt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[w]]}),t})();class it{}const rt=x(it);let st=0,ot=(()=>{class t extends rt{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+st++}}return t.\u0275fac=function(e){return at(e||t)},t.\u0275dir=i.Kb({type:t,inputs:{label:"label"},features:[i.Ab]}),t})();const at=i.Xb(ot),ct=new i.s("MatOptgroup");let lt=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ut=new i.s("MAT_OPTION_PARENT_COMPONENT");let dt=(()=>{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-"+lt++,this.onSelectionChange=new i.o,this._stateChanges=new l.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=Object(c.c)(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){t.keyCode!==p.e&&t.keyCode!==p.m||Object(p.r)(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 ht(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.h),i.Pb(void 0),i.Pb(ot))},t.\u0275dir=i.Kb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),ft=(()=>{class t extends dt{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(i.h),i.Pb(ut,8),i.Pb(ct,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.dc("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(i.Yb("id",e.id),i.Eb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Hb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.Ab],ngContentSelectors:b,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.nc(),i.Ic(0,m,1,2,"mat-pseudo-checkbox",0),i.Vb(1,"span",1),i.mc(2),i.Ub(),i.Qb(3,"div",2)),2&t&&(i.oc("ngIf",e.multiple),i.Db(3),i.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.o,J,et],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 pt(t,e,n){if(n.length){let i=e.toArray(),r=n.toArray(),s=0;for(let e=0;e<t+1;e++)i[e].group&&i[e].group===r[s]&&s++;return s}return 0}function mt(t,e,n,i){return t<n?t:t+e>n+i?Math.max(0,t-i+e):n}let bt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[tt,a.c,w,nt]]}),t})()},Ujlg:function(t,e,n){var i=n("hwdV").Buffer;function r(t,e,n){for(var i,r,o=-1,a=0;++o<8;)a+=(128&(r=t._cipher.encryptBlock(t._prev)[0]^(i=e&1<<7-o?128:0)))>>o%8,t._prev=s(t._prev,n?i:r);return a}function s(t,e){var n=t.length,r=-1,s=i.allocUnsafe(t.length);for(t=i.concat([t,i.from([e])]);++r<n;)s[r]=t[r]<<1|t[r+1]>>7;return s}e.encrypt=function(t,e,n){for(var s=e.length,o=i.allocUnsafe(s),a=-1;++a<s;)o[a]=r(t,e[a],n);return o}},"UpF+":function(t,e,n){var i=n("AQYT"),r=n("hwdV").Buffer;t.exports=function(t,e){return r.from(t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed().toArray())}},"V+K4":function(t,e,n){"use strict";var i;function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n("QqdZ"),o=Symbol("lastResolve"),a=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),h=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[o];if(null!==e){var n=t[d].read();null!==n&&(t[h]=null,t[o]=null,t[a]=null,e(f(n,!1)))}}function m(t){process.nextTick(p,t)}var b=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((r(i={get stream(){return this[d]},next:function(){var t=this,e=this[c];if(null!==e)return Promise.reject(e);if(this[l])return Promise.resolve(f(void 0,!0));if(this[d].destroyed)return new Promise(function(e,n){process.nextTick(function(){t[c]?n(t[c]):e(f(void 0,!0))})});var n,i=this[h];if(i)n=new Promise(function(t,e){return function(n,i){t.then(function(){e[l]?n(f(void 0,!0)):e[u](n,i)},i)}}(i,this));else{var r=this[d].read();if(null!==r)return Promise.resolve(f(r,!1));n=new Promise(this[u])}return this[h]=n,n}},Symbol.asyncIterator,function(){return this}),r(i,"return",function(){var t=this;return new Promise(function(e,n){t[d].destroy(null,function(t){t?n(t):e(f(void 0,!0))})})}),i),b);t.exports=function(t){var e,n=Object.create(g,(r(e={},d,{value:t,writable:!0}),r(e,o,{value:null,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,c,{value:null,writable:!0}),r(e,l,{value:t._readableState.endEmitted,writable:!0}),r(e,u,{value:function(t,e){var i=n[d].read();i?(n[h]=null,n[o]=null,n[a]=null,t(f(i,!1))):(n[o]=t,n[a]=e)},writable:!0}),e));return n[h]=null,s(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[a];return null!==e&&(n[h]=null,n[o]=null,n[a]=null,e(t)),void(n[c]=t)}var i=n[o];null!==i&&(n[h]=null,n[o]=null,n[a]=null,i(f(void 0,!0))),n[l]=!0}),t.on("readable",m.bind(null,n)),n}},V35J:function(t,e,n){var i=n("Wogr");function r(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new i(t*t),this.data.fill(0),this.reservedBit=new i(t*t),this.reservedBit.fill(0)}r.prototype.set=function(t,e,n,i){var r=t*this.size+e;this.data[r]=n,i&&(this.reservedBit[r]=!0)},r.prototype.get=function(t,e){return this.data[t*this.size+e]},r.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},r.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=r},V8Fa:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var i=n("iELJ"),r=n("8Y7J"),s=n("cpEJ"),o=n("VDRc"),a=n("PDjf"),c=n("Dxy4"),l=n("SVse"),h=n("BSbQ"),u=n("O4ig");function d(t,e){if(1&t&&(r.Vb(0,"p",14),r.Kc(1),r.Ub()),2&t){const t=r.hc();r.Db(1),r.Lc(t.data.titleMessage)}}let f=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.logger=n,this.errorMessage=""}ngOnInit(){this.errorMessage="object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message.message,this.data.message||this.data.titleMessage||this.data.message||(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(i.f),r.Pb(i.a),r.Pb(s.b))},t.\u0275cmp=r.Jb({type:t,selectors:[["rtl-error-message"]],decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"mt-5px","mb-0","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(t,e){1&t&&(r.Vb(0,"div",0),r.Vb(1,"div",1),r.Vb(2,"mat-card-header",2),r.Vb(3,"div",3),r.Vb(4,"span",4),r.Kc(5),r.Ub(),r.Ub(),r.Vb(6,"button",5),r.dc("click",function(){return e.onClose()}),r.Kc(7,"X"),r.Ub(),r.Ub(),r.Vb(8,"mat-card-content",6),r.Vb(9,"div",7),r.Ic(10,d,2,1,"p",8),r.Vb(11,"h4",9),r.Kc(12,"Error Code"),r.Ub(),r.Vb(13,"span"),r.Kc(14),r.Ub(),r.Qb(15,"mat-divider",10),r.Vb(16,"h4",9),r.Kc(17,"Error Message"),r.Ub(),r.Vb(18,"span",11),r.Kc(19),r.Ub(),r.Qb(20,"mat-divider",10),r.Vb(21,"h4",9),r.Kc(22,"API URL"),r.Ub(),r.Vb(23,"span",11),r.Kc(24),r.Ub(),r.Qb(25,"mat-divider",10),r.Vb(26,"div",12),r.Vb(27,"button",13),r.Kc(28,"OK"),r.Ub(),r.Ub(),r.Ub(),r.Ub(),r.Ub(),r.Ub()),2&t&&(r.Db(5),r.Lc(e.data.alertTitle||"ERROR"),r.Db(5),r.oc("ngIf",e.data.titleMessage),r.Db(4),r.Lc(e.data.message.code),r.Db(5),r.Lc(e.errorMessage),r.Db(5),r.Lc(e.data.message.URL),r.Db(3),r.oc("mat-dialog-close",!1))},directives:[o.c,o.a,a.c,o.b,c.a,a.b,l.o,h.a,u.a,i.d],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t})()},VDRc:function(t,e,n){"use strict";n.d(e,"d",function(){return H}),n.d(e,"a",function(){return C}),n.d(e,"c",function(){return b}),n.d(e,"b",function(){return P});var i=n("8Y7J"),r=n("/q54"),s=n("9gLZ"),o=(n("XNiG"),n("1G5W"));const a="inline",c=["row","column","row-reverse","column-reverse"];function l(t){t=t?t.toLowerCase():"";let[e,n,i]=t.split(" ");return c.find(t=>t===e)||(e=c[0]),n===a&&(n=i!==a?i:"",i=a),[e,u(n),!!i]}function h(t){let[e]=l(t);return e.indexOf("row")>-1}function u(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 d=(()=>{class t extends r.h{buildStyles(t){return function(t){let[e,n,i]=l(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)}}return t.\u0275fac=function(e){return f(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const f=i.Xb(d),p=["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 m=(()=>{class t extends r.b{constructor(t,e,n,i){super(t,n,e,i),this.DIRECTIVE_KEY="layout",this.styleCache=_,this.init()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(r.i),i.Pb(d),i.Pb(r.f))},t.\u0275dir=i.Kb({type:t,features:[i.Ab]}),t})(),b=(()=>{class t extends m{constructor(){super(...arguments),this.inputs=p}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=i.Kb({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]}),t})();const g=i.Xb(b),_=new Map;function y(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}new Map,new Map,new Map,new Map;let v=(()=>{class t extends r.h{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[n,i,...r]=t.split(" "),s=r.join(" ");const o=e.direction.indexOf("column")>-1?"column":"row",a=h(o)?"max-width":"max-height",c=h(o)?"min-width":"min-height",l=String(s).indexOf("calc")>-1,u=l||"auto"===s,d=String(s).indexOf("%")>-1&&!l,f=String(s).indexOf("px")>-1||String(s).indexOf("rem")>-1||String(s).indexOf("em")>-1||String(s).indexOf("vw")>-1||String(s).indexOf("vh")>-1;let p=l||f;n="0"==n?0:n,i="0"==i?0:i;const m=!n&&!i;let b={};const g={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(s||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;s="row"===o?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":n=0,s="auto";break;case"grow":s="100%";break;case"noshrink":i=0,s="auto";break;case"auto":break;case"none":n=0,i=0,s="auto";break;default:p||d||isNaN(s)||(s+="%"),"0%"===s&&(p=!0),"0px"===s&&(s="0%"),b=y(g,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":p?s:"100%"}:{flex:`${n} ${i} ${p?s:"100%"}`})}return b.flex||b["flex-grow"]||(b=y(g,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":s}:{flex:`${n} ${i} ${s}`})),"0%"!==s&&"0px"!==s&&"0.000000001px"!==s&&"auto"!==s&&(b[c]=m||p&&n?s:null,b[a]=m||!u&&i?s:null),b[c]||b[a]?e.hasWrap&&(b[l?"flex-basis":"flex"]=b[a]?l?b[a]:`${n} ${i} ${b[a]}`:l?b[c]:`${n} ${i} ${b[c]}`):b=y(g,l?{"flex-grow":n,"flex-shrink":i,"flex-basis":s}:{flex:`${n} ${i} ${s}`}),y(b,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(r.e))},t.\u0275prov=Object(i.Lb)({factory:function(){return new t(Object(i.Zb)(r.e))},token:t,providedIn:"root"}),t})();const w=["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 x=(()=>{class t extends r.b{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(Object(o.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(o.a)(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=O:n&&!i?this.styleCache=E:!n&&i?this.styleCache=A:n||i||(this.styleCache=k);const s=String(t).replace(";",""),o=Object(r.j)(s,this.flexGrow,this.flexShrink);this.addStyles(o.join(" "),{direction:e,hasWrap:i})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=Object(r.j)(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.Pb(i.l),i.Pb(r.i),i.Pb(r.e),i.Pb(v),i.Pb(r.f))},t.\u0275dir=i.Kb({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[i.Ab]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this.inputs=w}}return t.\u0275fac=function(e){return S(e||t)},t.\u0275dir=i.Kb({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]}),t})();const S=i.Xb(C),E=new Map,k=new Map,O=new Map,A=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map;let D=(()=>{class t extends r.h{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 y(n,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===r?h(e.layout)?null:"100%":null,"max-height":"stretch"===r&&h(e.layout)?"100%":null})}}return t.\u0275fac=function(e){return I(e||t)},t.\u0275prov=Object(i.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const I=i.Xb(D),T=["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 L=(()=>{class t extends r.b{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(Object(o.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",n=this.inline;"row"===e&&n?this.styleCache=V:"row"!==e||n?"row-reverse"===e&&n?this.styleCache=B:"row-reverse"!==e||n?"column"===e&&n?this.styleCache=U:"column"!==e||n?"column-reverse"===e&&n?this.styleCache=z:"column-reverse"!==e||n||(this.styleCache=N):this.styleCache=j:this.styleCache=F:this.styleCache=M,this.addStyles(t,{layout:e,inline:n})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),c.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(r.i),i.Pb(D),i.Pb(r.f))},t.\u0275dir=i.Kb({type:t,features:[i.Ab]}),t})(),P=(()=>{class t extends L{constructor(){super(...arguments),this.inputs=T}}return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=i.Kb({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]}),t})();const R=i.Xb(P),M=new Map,j=new Map,F=new Map,N=new Map,V=new Map,U=new Map,B=new Map,z=new Map;let H=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.c,s.a]]}),t})()},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),r=n("z+Ro"),s=n("bHdf"),o=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(s.a)(e)(Object(o.a)(t,n))}},Vh22:function(t,e,n){var i=n("AQYT"),r=new(n("ehAg")),s=new i(24),o=new i(11),a=new i(10),c=new i(3),l=new i(7),h=n("WKKt"),u=n("Edxu");function d(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._pub=new i(t),this}function f(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this._priv=new i(t),this}t.exports=m;var p={};function m(t,e,n){this.setGenerator(e),this.__prime=new i(t),this._prime=i.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=f):this._primeCode=8}function b(t,e){var n=new Buffer(t.toArray());return e?n.toString(e):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),i=[n,t.toString(16)].join("_");if(i in p)return p[i];var u,d=0;if(t.isEven()||!h.simpleSieve||!h.fermatTest(t)||!r.test(t))return d+=1,p[i]=d+="02"===n||"05"===n?8:4,d;switch(r.test(t.shrn(1))||(d+=2),n){case"02":t.mod(s).cmp(o)&&(d+=8);break;case"05":(u=t.mod(a)).cmp(c)&&u.cmp(l)&&(d+=8);break;default:d+=4}return p[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new i(u(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var e=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new Buffer(e.toArray()),r=this.getPrime();if(n.length<r.length){var s=new Buffer(r.length-n.length);s.fill(0),n=Buffer.concat([s,n])}return n},m.prototype.getPublicKey=function(t){return b(this._pub,t)},m.prototype.getPrivateKey=function(t){return b(this._priv,t)},m.prototype.getPrime=function(t){return b(this.__prime,t)},m.prototype.getGenerator=function(t){return b(this._gen,t)},m.prototype.setGenerator=function(t,e){return e=e||"utf8",Buffer.isBuffer(t)||(t=new Buffer(t,e)),this.__gen=t,this._gen=new i(t),this}},VrUr:function(t,e,n){"use strict";var i=n("f3pb"),r=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),s=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=i.define("RelativeDistinguishedName",function(){this.setof(s)}),l=i.define("RDNSequence",function(){this.seqof(c)}),h=i.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),u=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))}),d=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(h),this.key("validity").use(u),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())}),p=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});t.exports=p},W7oF:function(t,e,n){"use strict";n.d(e,"a",function(){return E});var i=n("mrSG"),r=n("7bNT"),s=n("XNiG"),o=n("LRne"),a=n("zp1y"),c=n("5+tZ"),l=n("1G5W"),h=n("lJxs"),u=n("JIr8"),d=n("AytR"),f=n("V8Fa"),p=n("4r19"),m=n("/uX3"),b=n("LvnZ"),g=n("8Y7J"),_=n("IheW"),y=n("tqRt"),v=n("mZtN"),w=n("cpEJ"),x=n("7o2P"),C=n("iInd"),S=n("SVse");let E=(()=>{class t{constructor(t,e,n,i,f,g,_,y){this.actions$=t,this.httpClient=e,this.store=n,this.sessionService=i,this.logger=f,this.commonService=g,this.router=_,this.location=y,this.CHILD_API_URL=d.a+"/cl",this.unSubs=[new s.a,new s.a],this.infoFetchCL=this.actions$.pipe(Object(r.d)(b.u),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new b.g("FetchInfo")),this.httpClient.get(this.CHILD_API_URL+d.b.GETINFO_API).pipe(Object(l.a)(this.actions$.pipe(Object(r.d)(m.O))),Object(h.a)(e=>(this.logger.info(e),this.initializeRemainingData(e,t.payload.loadPage),{type:b.mb,payload:e||{}})),Object(u.a)(t=>(this.router.navigate(["/error"],{state:{errorCode:t.error&&t.error.error&&t.error.error.message&&t.error.error.message.code?t.error.error.message.code:t.error&&t.error.error&&t.error.error.code?t.error.error.code:t.status?t.status:"",errorMessage:(t.error&&t.error.message?t.error.message+" ":"")+(t.error&&t.error.error&&t.error.error.error&&"string"==typeof t.error.error.error?t.error.error.error:t.error&&t.error.error&&t.error.error.errno&&"string"==typeof t.error.error.errno?t.error.error.errno:t.error&&t.error.error&&"string"==typeof t.error.error?t.error.error:t.error&&"string"==typeof t.error?t.error:"Unknown Error")}}),this.handleErrorWithoutAlert("FetchInfo","Fetching Node Info Failed.",t),Object(o.a)({type:m.bb}))))))),this.fetchFeesCL=this.actions$.pipe(Object(r.d)(b.s),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchFees")),this.httpClient.get(this.CHILD_API_URL+d.b.FEES_API))),Object(h.a)(t=>(this.logger.info(t),{type:b.jb,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchFees","Fetching Fees Failed.",t),Object(o.a)({type:m.bb})))),this.fetchFeeRatesCL=this.actions$.pipe(Object(r.d)(b.t),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchFeeRates")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/feeRates/"+t.payload))),Object(h.a)(t=>(this.logger.info(t),{type:b.kb,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchFeeRates","Fetching Fee Rates Failed.",t),Object(o.a)({type:m.bb})))),this.fetchBalanceCL=this.actions$.pipe(Object(r.d)(b.q),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchBalance")),this.httpClient.get(this.CHILD_API_URL+d.b.BALANCE_API))),Object(h.a)(t=>(this.logger.info(t),{type:b.db,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchBalance","Fetching Balances Failed.",t),Object(o.a)({type:m.bb})))),this.fetchLocalRemoteBalanceCL=this.actions$.pipe(Object(r.d)(b.w),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchLocalRemoteBalance")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/localremotebalance"))),Object(h.a)(t=>(this.logger.info(t),{type:b.ob,payload:t||{}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance","Fetching Balances Failed.",t),Object(o.a)({type:m.bb})))),this.getNewAddressCL=this.actions$.pipe(Object(r.d)(b.L),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API+"?type="+t.payload.addressCode).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.qb,payload:t&&t.address?t.address:{}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Generate New Address Failed",this.CHILD_API_URL+d.b.ON_CHAIN_API+"?type="+t.payload.addressId,e),Object(o.a)({type:m.bb})))))),this.setNewAddressCL=this.actions$.pipe(Object(r.d)(b.qb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.peersFetchCL=this.actions$.pipe(Object(r.d)(b.y),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchPeers")),this.httpClient.get(this.CHILD_API_URL+d.b.PEERS_API).pipe(Object(h.a)(t=>(this.logger.info(t),{type:b.sb,payload:t||[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPeers","Fetching Peers Failed.",t),Object(o.a)({type:m.bb}))))))),this.saveNewPeerCL=this.actions$.pipe(Object(r.d)(b.ab),Object(a.a)(this.store.select("cl")),Object(c.a)(([t,e])=>(this.store.dispatch(new b.g("SaveNewPeer")),this.httpClient.post(this.CHILD_API_URL+d.b.PEERS_API,{id:t.payload.id}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new b.Fb(e&&e.length>0?e:[])),{type:b.R,payload:{peer:e.find(e=>0===t.payload.id.indexOf(e.id))}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewPeer","Peer Connection Failed.",t),Object(o.a)({type:m.bb}))))))),this.detachPeerCL=this.actions$.pipe(Object(r.d)(b.k),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.id+"?force="+t.payload.force).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Peer Disconnected Successfully!")),{type:b.V,payload:{id:t.payload.id}})),Object(u.a)(e=>(this.handleErrorWithAlert("ERROR","Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.b.PEERS_API+"/"+t.payload.id,e),Object(o.a)({type:m.bb})))))),this.channelsFetchCL=this.actions$.pipe(Object(r.d)(b.r),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchChannels")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/listChannels").pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.N),{type:b.eb,payload:t&&t.length>0?t:[]}),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchChannels","Fetching Channels Failed.",t),Object(o.a)({type:m.bb})))))))),this.openNewChannelCL=this.actions$.pipe(Object(r.d)(b.Y),Object(c.a)(t=>{this.store.dispatch(new b.g("SaveNewChannel"));let e={id:t.payload.peerId,satoshis:t.payload.satoshis,feeRate:t.payload.feeRate,announce:t.payload.announce,minconf:t.payload.minconf?t.payload.minconf:null};return t.payload.utxos&&(e.utxos=t.payload.utxos),this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API,e).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Channel Added Successfully!")),this.store.dispatch(new b.A),this.store.dispatch(new b.J),{type:b.r})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewChannel","Opening Channel Failed.",t),Object(o.a)({type:m.bb}))))})),this.updateChannelCL=this.actions$.pipe(Object(r.d)(b.Ib),Object(c.a)(t=>this.httpClient.post(this.CHILD_API_URL+d.b.CHANNELS_API+"/setChannelFee",{id:t.payload.channelId,base:t.payload.baseFeeMsat,ppm:t.payload.feeRate}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new m.E("all"===t.payload.channelId?"All Channels Updated Successfully.":"Channel Updated Successfully!")),{type:b.r})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Update Channel Failed",this.CHILD_API_URL+d.b.CHANNELS_API,t),Object(o.a)({type:m.bb})))))),this.closeChannelCL=this.actions$.pipe(Object(r.d)(b.e),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.CHANNELS_API+"/"+t.payload.channelId+(t.payload.force?"?force="+t.payload.force:"")).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),this.store.dispatch(new b.B),this.store.dispatch(new m.E("Channel Closed Successfully!")),{type:b.U,payload:{channelId:t.payload.channelId}})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.b.CHANNELS_API,t),Object(o.a)({type:m.bb})))))),this.paymentsFetchCL=this.actions$.pipe(Object(r.d)(b.x),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchPayments")),this.httpClient.get(this.CHILD_API_URL+d.b.PAYMENTS_API))),Object(h.a)(t=>(this.logger.info(t),{type:b.rb,payload:t||[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchPayments","Fetching Payments Failed.",t),Object(o.a)({type:m.bb})))),this.decodePaymentCL=this.actions$.pipe(Object(r.d)(b.i),Object(c.a)(t=>(this.store.dispatch(new b.g("DecodePayment")),this.httpClient.get(this.CHILD_API_URL+d.b.PAYMENTS_API+"/"+t.payload.routeParam).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.ib,payload:t||{}})),Object(u.a)(e=>(t.payload.fromDialog?this.handleErrorWithoutAlert("DecodePayment","Decode Payment Failed.",e):this.handleErrorWithAlert("ERROR","Decode Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API+"/"+t.payload,e),Object(o.a)({type:m.bb}))))))),this.setDecodedPaymentCL=this.actions$.pipe(Object(r.d)(b.ib),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.sendPaymentCL=this.actions$.pipe(Object(r.d)(b.bb),Object(a.a)(this.store.select("root")),Object(c.a)(([t,e])=>(this.store.dispatch(new b.g("SendPayment")),this.httpClient.post(t.payload.pubkey&&""!==t.payload.pubkey?this.CHILD_API_URL+d.b.PAYMENTS_API+"/keysend":this.CHILD_API_URL+d.b.PAYMENTS_API+"/invoice",t.payload).pipe(Object(h.a)(e=>{if(this.logger.info(e),this.store.dispatch(new m.i),e.error){this.logger.error("Error: "+e.payment_error);const n={status:e.payment_error.status,error:e.payment_error.error&&e.payment_error.error.error&&"object"==typeof e.payment_error.error.error?e.payment_error.error.error:{error:e.payment_error.error&&e.payment_error.error.error?e.payment_error.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API,n),Object(o.a)({type:m.bb})}return this.store.dispatch(new m.E("Payment Sent Successfully!")),this.store.dispatch(new b.B),this.store.dispatch(new b.A),this.store.dispatch(new b.H),this.store.dispatch(new b.Cb({})),{type:b.cb,payload:e}}),Object(u.a)(e=>{this.logger.error("Error: "+JSON.stringify(e));const n={status:e.status,error:e.error&&e.error.error&&"object"==typeof e.error.error?e.error.error:{error:e.error&&e.error.error?e.error.error:"Unknown Error"}};return t.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment","Send Payment Failed.",n):this.handleErrorWithAlert("ERROR","Send Payment Failed",this.CHILD_API_URL+d.b.PAYMENTS_API,n),Object(o.a)({type:m.bb})}))))),this.queryRoutesFetchCL=this.actions$.pipe(Object(r.d)(b.M),Object(c.a)(t=>this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount).pipe(Object(h.a)(t=>(this.logger.info(t),{type:b.tb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new b.Gb({routes:[]})),this.handleErrorWithAlert("ERROR","Get Query Routes Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/getRoute/"+t.payload.destPubkey+"/"+t.payload.amount,e),Object(o.a)({type:m.bb})))))),this.setQueryRoutesCL=this.actions$.pipe(Object(r.d)(b.tb),Object(h.a)(t=>t.payload)),this.peerLookupCL=this.actions$.pipe(Object(r.d)(b.S),Object(c.a)(t=>(this.store.dispatch(new b.g("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/listNode/"+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.pb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Peer Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/listNode/"+t.payload,e),Object(o.a)({type:m.bb}))))))),this.channelLookupCL=this.actions$.pipe(Object(r.d)(b.c),Object(c.a)(t=>(this.store.dispatch(new b.g("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.NETWORK_API+"/listChannel/"+t.payload.shortChannelID).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.pb,payload:t})),Object(u.a)(e=>(t.payload.showError?(this.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Channel Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/listChannel/"+t.payload.shortChannelID,e)):this.store.dispatch(new m.i),this.store.dispatch(new b.Eb([])),Object(o.a)({type:m.bb}))))))),this.invoiceLookupCL=this.actions$.pipe(Object(r.d)(b.Q),Object(c.a)(t=>(this.store.dispatch(new b.g("Lookup")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API+"/listInvoice?label="+t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),{type:b.pb,payload:t})),Object(u.a)(e=>(this.store.dispatch(new b.p({action:"Lookup",code:e.status,message:e.error.message})),this.handleErrorWithAlert("ERROR","Invoice Lookup Failed",this.CHILD_API_URL+d.b.NETWORK_API+"/listInvoice?label="+t.payload,e),Object(o.a)({type:m.bb}))))))),this.setLookupCL=this.actions$.pipe(Object(r.d)(b.pb),Object(h.a)(t=>(this.logger.info(t.payload),t.payload))),this.fetchForwardingHistoryCL=this.actions$.pipe(Object(r.d)(b.K),Object(c.a)(t=>(this.store.dispatch(new b.g("GetForwardingHistory")),this.httpClient.get(this.CHILD_API_URL+d.b.CHANNELS_API+"/listForwards").pipe(Object(h.a)(t=>(this.logger.info(t),{type:b.lb,payload:t})),Object(u.a)(t=>(this.store.dispatch(new b.p({action:"GetForwardingHistory",code:t.status,message:t.error.error})),this.handleErrorWithAlert("ERROR","Get Forwarding History Failed",this.CHILD_API_URL+d.b.CHANNELS_API+"/listForwards",t),Object(o.a)({type:m.bb}))))))),this.deleteExpiredInvoiceCL=this.actions$.pipe(Object(r.d)(b.j),Object(c.a)(t=>this.httpClient.delete(this.CHILD_API_URL+d.b.INVOICES_API+(t.payload?"?maxexpiry="+t.payload:"")).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new m.E("Invoices Deleted Successfully!")),{type:b.v,payload:{num_max_invoices:100,reversed:!0}})),Object(u.a)(t=>(this.handleErrorWithAlert("ERROR","Delete Invoice Failed",this.CHILD_API_URL+d.b.INVOICES_API,t),Object(o.a)({type:m.bb})))))),this.saveNewInvoiceCL=this.actions$.pipe(Object(r.d)(b.Z),Object(c.a)(t=>(this.store.dispatch(new b.g("SaveNewInvoice")),this.httpClient.post(this.CHILD_API_URL+d.b.INVOICES_API,{label:t.payload.label,amount:t.payload.amount,description:t.payload.description,expiry:t.payload.expiry,private:t.payload.private}).pipe(Object(h.a)(e=>(this.logger.info(e),this.store.dispatch(new m.i),e.msatoshi=t.payload.amount,e.label=t.payload.label,e.expires_at=Math.round((new Date).getTime()/1e3+t.payload.expiry),e.expires_at_str=this.commonService.convertTimestampToDate(+e.expires_at),e.description=t.payload.description,e.status="unpaid",this.store.dispatch(new m.C({data:{invoice:e,newlyAdded:!1,component:p.a}})),{type:b.v,payload:{num_max_invoices:100,reversed:!0}})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SaveNewInvoice","Add Invoice Failed.",t),Object(o.a)({type:m.bb}))))))),this.invoicesFetchCL=this.actions$.pipe(Object(r.d)(b.v),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchInvoices")),this.httpClient.get(this.CHILD_API_URL+d.b.INVOICES_API+"?num_max_invoices="+(t.payload.num_max_invoices?t.payload.num_max_invoices:100)+"&index_offset="+(t.payload.index_offset?t.payload.index_offset:0)+"&reversed="+(!!t.payload.reversed&&t.payload.reversed)).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new b.Hb(t.invoices?t.invoices.length:0)),{type:b.nb,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchInvoices","Fetching Invoices Failed.",t),Object(o.a)({type:m.bb}))))))),this.SetChannelTransactionCL=this.actions$.pipe(Object(r.d)(b.fb),Object(c.a)(t=>(this.store.dispatch(new b.g("SetChannelTransaction")),this.httpClient.post(this.CHILD_API_URL+d.b.ON_CHAIN_API,t.payload).pipe(Object(h.a)(t=>(this.logger.info(t),this.store.dispatch(new m.i),this.store.dispatch(new b.A),this.store.dispatch(new b.J),{type:b.gb,payload:t})),Object(u.a)(t=>(this.handleErrorWithoutAlert("SetChannelTransaction","Sending Fund Failed.",t),Object(o.a)({type:m.bb}))))))),this.transactionsFetch=this.actions$.pipe(Object(r.d)(b.z),Object(c.a)(t=>(this.store.dispatch(new b.g("FetchTransactions")),this.httpClient.get(this.CHILD_API_URL+d.b.ON_CHAIN_API+"/transactions"))),Object(h.a)(t=>(this.logger.info(t),{type:b.vb,payload:t&&t.outputs&&t.outputs.length>0?t.outputs:[]})),Object(u.a)(t=>(this.handleErrorWithoutAlert("FetchTransactions","Fetching Transactions Failed.",t),Object(o.a)({type:m.bb})))),this.store.select("cl").pipe(Object(l.a)(this.unSubs[0])).subscribe(t=>{"INCOMPLETE"===t.initialAPIResponseStatus[0]&&t.initialAPIResponseStatus.length>9&&(t.initialAPIResponseStatus[0]="COMPLETE",this.store.dispatch(new m.i))})}initializeRemainingData(t,e){this.sessionService.setItem("clUnlocked","true");const n={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network||"litecoin-testnet"===t.network,chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,currency_unit:"BTC",smaller_currency_unit:"Sats",numberOfPendingChannels:t.num_pending_channels};this.store.dispatch(new m.F("Initializing Node Data...")),this.store.dispatch(new m.T(n)),this.store.dispatch(new b.D),this.store.dispatch(new b.B),this.store.dispatch(new b.A),this.store.dispatch(new b.G),this.store.dispatch(new b.C("perkw")),this.store.dispatch(new b.C("perkb")),this.store.dispatch(new b.I),this.store.dispatch(new b.J),this.store.dispatch(new b.H);let i=this.location.path();i.includes("/lnd/")?i=i.replace("/lnd/","/cl/"):i.includes("/ecl/")&&(i=i.replace("/ecl/","/cl/")),(i.includes("/login")||i.includes("/error")||""===i||"HOME"===e||i.includes("?access-key="))&&(i="/cl/home"),this.router.navigate([i])}handleErrorWithoutAlert(t,e,n){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(n)),401===n.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new b.p({action:t,code:n.status.toString(),message:n.error.error&&n.error.error.error&&n.error.error.error.error&&n.error.error.error.error.message&&"string"==typeof n.error.error.error.error.message?n.error.error.error.error.message:n.error.error&&n.error.error.error&&n.error.error.error.message&&"string"==typeof n.error.error.error.message?n.error.error.error.message:n.error.error&&n.error.error.message&&"string"==typeof n.error.error.message?n.error.error.message:n.error.message&&"string"==typeof n.error.message?n.error.message:"string"==typeof n.error?n.error:e})))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new m.g),this.store.dispatch(new m.x),this.store.dispatch(new m.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new m.i),this.store.dispatch(new m.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.message&&"string"==typeof i.error.error.error.error.message?i.error.error.error.error.message:i.error.error&&i.error.error.error&&i.error.error.error.message&&"string"==typeof i.error.error.error.message?i.error.error.error.message:i.error.error&&i.error.error.message&&"string"==typeof i.error.error.message?i.error.error.message:i.error.message&&"string"==typeof i.error.message?i.error.message:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:f.a}})))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(g.Zb(r.a),g.Zb(_.b),g.Zb(y.h),g.Zb(v.a),g.Zb(w.b),g.Zb(x.a),g.Zb(C.g),g.Zb(S.j))},t.\u0275prov=g.Lb({token:t,factory:t.\u0275fac}),Object(i.a)([Object(r.b)()],t.prototype,"infoFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFeesCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFeeRatesCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchBalanceCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchLocalRemoteBalanceCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"getNewAddressCL",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setNewAddressCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peersFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewPeerCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"detachPeerCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelsFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"openNewChannelCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"updateChannelCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"closeChannelCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"paymentsFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"decodePaymentCL",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setDecodedPaymentCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"sendPaymentCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"queryRoutesFetchCL",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setQueryRoutesCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"peerLookupCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"channelLookupCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoiceLookupCL",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"setLookupCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchForwardingHistoryCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"deleteExpiredInvoiceCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"saveNewInvoiceCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"invoicesFetchCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"SetChannelTransactionCL",void 0),Object(i.a)([Object(r.b)()],t.prototype,"transactionsFetch",void 0),t})()},WKKt:function(t,e,n){var i=n("Edxu");t.exports=_,_.simpleSieve=b,_.fermatTest=g;var r=n("AQYT"),s=new r(24),o=new(n("ehAg")),a=new r(1),c=new r(2),l=new r(5),h=(new r(16),new r(8),new r(10)),u=new r(3),d=(new r(7),new r(11)),f=new r(4),p=(new r(12),null);function m(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var i=Math.ceil(Math.sqrt(n)),r=0;r<e&&t[r]<=i&&n%t[r]!=0;r++);e!==r&&t[r]<=i||(t[e++]=n)}return p=t,t}function b(t){for(var e=m(),n=0;n<e.length;n++)if(0===t.modn(e[n]))return 0===t.cmpn(e[n]);return!0}function g(t){var e=r.mont(t);return 0===c.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function _(t,e){if(t<16)return new r(2===e||5===e?[140,123]:[140,39]);var n,p;for(e=new r(e);;){for(n=new r(i(Math.ceil(t/8)));n.bitLength()>t;)n.ishrn(1);if(n.isEven()&&n.iadd(a),n.testn(1)||n.iadd(c),e.cmp(c)){if(!e.cmp(l))for(;n.mod(h).cmp(u);)n.iadd(f)}else for(;n.mod(s).cmp(d);)n.iadd(f);if(b(p=n.shrn(1))&&b(n)&&g(p)&&g(n)&&o.test(p)&&o.test(n))return n}}},WMd4:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("EY2u"),r=n("LRne"),s=n("z6cu");let o=(()=>{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(s.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})()},WRkp:function(t,e,n){"use strict";e.sha1=n("E+IA"),e.sha224=n("B/J0"),e.sha256=n("bu2F"),e.sha384=n("i5UE"),e.sha512=n("tSWc")},"WnY+":function(t,e,n){var i=n("9XZ3");t.exports=function(t){return(new i).update(t).digest()}},Wogr:function(t,e,n){"use strict";var i=n("49sm"),r=(s.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}())?2147483647:1073741823;function s(t,e,n){return s.TYPED_ARRAY_SUPPORT||this instanceof s?"number"==typeof t?c(this,t):function(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");var r;return r=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),s.TYPED_ARRAY_SUPPORT?r.__proto__=s.prototype:r=l(t,r),r}(t,e,n,i):"string"==typeof e?function(t,e){var n=0|u(e),i=a(t,n),r=i.write(e);return r!==n&&(i=i.slice(0,r)),i}(t,e):function(t,e){if(s.isBuffer(e)){var n=0|o(e.length),i=a(t,n);return 0===i.length||e.copy(i,0,0,n),i}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):l(t,e);if("Buffer"===e.type&&Array.isArray(e.data))return l(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}(this,t,e,n):new s(t,e,n)}function o(t){if(t>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function a(t,e){var n;return s.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=s.prototype:(null===(n=t)&&(n=new s(e)),n.length=e),n}function c(t,e){var n=a(t,e<0?0:0|o(e));if(!s.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)n[i]=0;return n}function l(t,e){for(var n=e.length<0?0:0|o(e.length),i=a(t,n),r=0;r<n;r+=1)i[r]=255&e[r];return i}function h(t,e){var n;e=e||1/0;for(var i=t.length,r=null,s=[],o=0;o<i;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function u(t){return s.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:h(t).length)}s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),s.prototype.write=function(t,e,n){void 0===e||void 0===n&&"string"==typeof e?(n=this.length,e=0):isFinite(e)&&(e|=0,isFinite(n)?n|=0:n=void 0);var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,n,i){return function(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}(h(e,t.length-n),t,n,i)}(this,t,e,n)},s.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=s.prototype;else{var r=e-t;n=new s(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+t]}return n},s.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,o=i-n;if(this===t&&n<e&&e<i)for(r=o-1;r>=0;--r)t[r+e]=this[r+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},s.prototype.fill=function(t,e,n){if("string"==typeof t){if("string"==typeof e?(e=0,n=this.length):"string"==typeof n&&(n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var r;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r<n;++r)this[r]=t;else{var o=s.isBuffer(t)?t:new s(t),a=o.length;for(r=0;r<n-e;++r)this[r+e]=o[r%a]}return this},s.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a(null,0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c(null,e),o=0;for(n=0;n<t.length;++n){var l=t[n];if(!s.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(r,o),o+=l.length}return r},s.byteLength=u,s.prototype._isBuffer=!0,s.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports=s},X9mX:function(t,e,n){"use strict";n.d(e,"a",function(){return ee});var i=n("mrSG"),r=n("7bNT"),s=n("XNiG"),o=n("LRne"),a=n("cp0P"),c=n("lJxs"),l=n("IzEk"),h=n("zp1y"),u=n("5+tZ"),d=n("JIr8"),f=n("AytR"),p=n("7nzP"),m=n("iELJ"),b=n("8Y7J"),g=n("pu8Q"),_=n("VDRc");let y=(()=>{class t{constructor(t,e){this.dialogRef=t,this.data=e}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)(b.Pb(m.f),b.Pb(m.a))},t.\u0275cmp=b.Jb({type:t,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],[1,"spinner-circle"],["color","primary"],["fxLayoutAlign","center",1,"mat-h4"]],template:function(t,e){1&t&&(b.Vb(0,"div",0),b.Vb(1,"div",1),b.Qb(2,"mat-spinner",2),b.Vb(3,"h4",3),b.Kc(4),b.Ub(),b.Ub(),b.Ub()),2&t&&(b.Db(4),b.Lc(e.data.titleMessage))},directives:[g.b,_.b],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:45%}"]}),t})();var v=n("cpEJ"),w=n("zHaW"),x=n("7o2P"),C=n("SVse"),S=n("ura0"),E=n("PDjf"),k=n("Dxy4"),O=n("bwdU"),A=n("aLe/"),D=n("Tj54"),I=n("O4ig"),T=n("dEYt"),L=n("BSbQ");const P=["scrollContainer"];function R(t,e){if(1&t&&b.Qb(0,"qrcode",15),2&t){const t=b.hc();b.oc("qrdata",t.showQRField)("margin",2)("width",240)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function M(t,e){1&t&&b.Rb(0)}const j=function(t){return{"h-40":t}};function F(t,e){if(1&t&&(b.Tb(0),b.Vb(1,"mat-card-content",16,17),b.Ic(3,M,1,0,"ng-container",18),b.Ub(),b.Sb()),2&t){const t=b.hc(),e=b.wc(20);b.Db(1),b.oc("ngClass",b.sc(2,j,t.data.scrollable)),b.Db(2),b.oc("ngTemplateOutlet",e)}}function N(t,e){1&t&&b.Rb(0)}function V(t,e){if(1&t&&(b.Tb(0),b.Vb(1,"mat-card-content",19),b.Ic(2,N,1,0,"ng-container",18),b.Ub(),b.Sb()),2&t){b.hc();const t=b.wc(20);b.Db(2),b.oc("ngTemplateOutlet",t)}}function U(t,e){1&t&&(b.Vb(0,"mat-icon",23),b.Kc(1,"arrow_downward"),b.Ub())}function B(t,e){1&t&&(b.Vb(0,"mat-icon",23),b.Kc(1,"arrow_upward"),b.Ub())}function z(t,e){if(1&t){const t=b.Wb();b.Vb(0,"div",20),b.Vb(1,"button",21),b.dc("click",function(){return b.zc(t),b.hc().onScroll()}),b.Ic(2,U,2,0,"mat-icon",22),b.Ic(3,B,2,0,"mat-icon",22),b.Ub(),b.Ub()}if(2&t){const t=b.hc();b.Db(2),b.oc("ngIf","DOWN"==t.scrollDirection),b.Db(1),b.oc("ngIf","UP"==t.scrollDirection)}}function H(t,e){1&t&&(b.Vb(0,"button",24),b.Kc(1,"OK"),b.Ub()),2&t&&b.oc("mat-dialog-close",!1)}function W(t,e){1&t&&(b.Vb(0,"button",25),b.Kc(1,"Close"),b.Ub()),2&t&&b.oc("mat-dialog-close",!1)}function K(t,e){if(1&t){const t=b.Wb();b.Vb(0,"button",26),b.dc("copied",function(e){return b.zc(t),b.hc().onCopyField(e)}),b.Kc(1),b.Ub()}if(2&t){const t=b.hc();b.oc("payload",t.showCopyField),b.Db(1),b.Mc("Copy ",t.showCopyName,"")}}function q(t,e){1&t&&(b.Vb(0,"button",25),b.Kc(1,"Close"),b.Ub()),2&t&&b.oc("mat-dialog-close",!1)}function Y(t,e){if(1&t){const t=b.Wb();b.Vb(0,"button",26),b.dc("copied",function(e){return b.zc(t),b.hc().onCopyField(e)}),b.Kc(1),b.Ub()}if(2&t){const t=b.hc();b.oc("payload",t.showQRField),b.Db(1),b.Mc("Copy ",t.showQRName,"")}}function Z(t,e){if(1&t&&b.Qb(0,"qrcode",15),2&t){const t=b.hc(2);b.oc("qrdata",t.showQRField)("margin",2)("width",240)("errorCorrectionLevel","L")("allowEmptyString",!0)}}function X(t,e){if(1&t&&(b.Vb(0,"p",32),b.Kc(1),b.Ub()),2&t){const t=b.hc(2);b.Db(1),b.Lc(t.data.titleMessage)}}function G(t,e){1&t&&b.Qb(0,"span",46),2&t&&b.oc("innerHTML",e.$implicit,b.Ac)}function $(t,e){if(1&t&&(b.Tb(0),b.Ic(1,G,1,1,"span",45),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.oc("ngForOf",t.value)}}function Q(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.ic(2,"number"),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(b.kc(2,1,t.value,"1.0-3"))}}function J(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(t.value?"True":"False")}}function tt(t,e){1&t&&(b.Vb(0,"mat-icon",51),b.Kc(1,"info"),b.Ub())}const et=function(t){return{"failed-status":t}};function nt(t,e){if(1&t&&(b.Vb(0,"p",49),b.Kc(1),b.Ic(2,tt,2,0,"mat-icon",50),b.Ub()),2&t){const t=b.hc(3).$implicit,e=b.hc(4);b.oc("ngClass",b.sc(3,et,t.value===e.swapStateEnum.FAILED)),b.Db(1),b.Mc(" ",t.value," "),b.Db(1),b.oc("ngIf",t.value===e.swapStateEnum.FAILED)}}function it(t,e){if(1&t&&b.Kc(0),2&t){const t=b.hc(3).$implicit;b.Lc(t.value)}}function rt(t,e){if(1&t&&(b.Tb(0),b.Ic(1,nt,3,5,"p",47),b.Ic(2,it,1,1,"ng-template",null,48,b.Jc),b.Sb()),2&t){const t=b.wc(3),e=b.hc(2).$implicit,n=b.hc(4);b.Db(1),b.oc("ngIf","SWAP"===n.data.openedBy&&"state"===e.key)("ngIfElse",t)}}function st(t,e){if(1&t&&(b.Vb(0,"span"),b.Vb(1,"span",42),b.Ic(2,$,2,1,"ng-container",43),b.Ic(3,Q,3,4,"ng-container",43),b.Ic(4,J,2,1,"ng-container",43),b.Ic(5,rt,4,2,"ng-container",44),b.Ub(),b.Ub()),2&t){const t=b.hc().$implicit,e=b.hc(4);b.Db(1),b.oc("ngSwitch",t.type),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.ARRAY),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.NUMBER),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.BOOLEAN)}}function ot(t,e){1&t&&(b.Vb(0,"span",52),b.Kc(1,"\xa0"),b.Ub())}function at(t,e){if(1&t&&(b.Vb(0,"div",37),b.Vb(1,"h4",38),b.Kc(2),b.Ub(),b.Ic(3,st,6,4,"span",39),b.Ic(4,ot,2,0,"ng-template",null,40,b.Jc),b.Qb(6,"mat-divider",41),b.Ub()),2&t){const t=e.$implicit,n=b.wc(5);b.pc("fxFlex.gt-md",t.width),b.Db(2),b.Lc(t.title),b.Db(1),b.oc("ngIf",t&&(!!t.value||0===t.value))("ngIfElse",n)}}function ct(t,e){if(1&t&&(b.Vb(0,"div"),b.Vb(1,"div",35),b.Ic(2,at,7,4,"div",36),b.Ub(),b.Ub()),2&t){const t=e.$implicit;b.Db(2),b.oc("ngForOf",t)}}function lt(t,e){if(1&t&&(b.Vb(0,"div",33),b.Ic(1,ct,3,1,"div",34),b.Ub()),2&t){const t=b.hc(2);b.Db(1),b.oc("ngForOf",t.messageObjs)}}const ht=function(t){return{"display-none":t}};function ut(t,e){if(1&t&&(b.Vb(0,"div",27),b.Vb(1,"div",28),b.Ic(2,Z,1,5,"qrcode",2),b.Ub(),b.Vb(3,"div",29),b.Ic(4,X,2,1,"p",30),b.Ic(5,lt,2,1,"div",31),b.Ub(),b.Ub()),2&t){const t=b.hc();b.Db(1),b.oc("ngClass",b.sc(4,ht,""===t.showQRField||t.screenSize!==t.screenSizeEnum.XS&&t.screenSize!==t.screenSizeEnum.SM)),b.Db(1),b.oc("ngIf",""!==t.showQRField),b.Db(2),b.oc("ngIf",t.data.titleMessage),b.Db(1),b.oc("ngIf",(null==t.messageObjs?null:t.messageObjs.length)>0)}}let dt=(()=>{class t{constructor(t,e,n,i,r,s){this.dialogRef=t,this.data=e,this.logger=n,this.snackBar=i,this.commonService=r,this.renderer=s,this.swapStateEnum=p.r,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=p.b,this.dataTypeEnum=p.h,this.screenSize="",this.screenSizeEnum=p.q,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(t){t&&(this.scrollContainer=t,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",t=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",t=>{this.scrollDirection="DOWN"})))}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message,this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===p.b.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs)}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")})}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(t){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+t)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return t.\u0275fac=function(e){return new(e||t)(b.Pb(m.f),b.Pb(m.a),b.Pb(v.b),b.Pb(w.b),b.Pb(x.a),b.Pb(b.G))},t.\u0275cmp=b.Jb({type:t,selectors:[["rtl-alert-message"]],viewQuery:function(t,e){if(1&t&&b.Pc(P,!0),2&t){let t;b.vc(t=b.ec())&&(e.container=t.first)}},decls:21,vars:14,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString",4,"ngIf"],[1,"padding-gap-large","pl-3",3,"fxFlex"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-1"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],[1,"mt-5px","mb-0","pr-2",3,"perfectScrollbar","ngClass"],["scrollContainer",""],[4,"ngTemplateOutlet"],[1,"mt-5px","mb-0","pr-2"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center"],["tabindex","1","autoFocus","","mat-flat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-stroked-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","row","fxFlex","100"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["noStyleBlock",""],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(t,e){1&t&&(b.Vb(0,"div",0),b.Vb(1,"div",1),b.Ic(2,R,1,5,"qrcode",2),b.Ub(),b.Vb(3,"div",3),b.Vb(4,"mat-card-header",4),b.Vb(5,"div",5),b.Vb(6,"span",6),b.Kc(7),b.Ub(),b.Ub(),b.Vb(8,"button",7),b.dc("click",function(){return e.onClose()}),b.Kc(9,"X"),b.Ub(),b.Ub(),b.Ic(10,F,4,4,"ng-container",8),b.Ic(11,V,3,1,"ng-container",8),b.Ic(12,z,4,2,"div",9),b.Vb(13,"div",10),b.Ic(14,H,2,1,"button",11),b.Ic(15,W,2,1,"button",12),b.Ic(16,K,2,2,"button",13),b.Ic(17,q,2,1,"button",12),b.Ic(18,Y,2,2,"button",13),b.Ub(),b.Ub(),b.Ub(),b.Ic(19,ut,6,6,"ng-template",null,14,b.Jc)),2&t&&(b.Db(1),b.oc("ngClass",b.sc(12,ht,""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),b.Db(1),b.oc("ngIf",""!==e.showQRField),b.Db(1),b.oc("fxFlex",""===e.showQRField||e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM?"100":"70"),b.Db(4),b.Lc(e.data.alertTitle||e.alertTypeEnum[e.data.type]),b.Db(3),b.oc("ngIf",e.data.scrollable),b.Db(1),b.oc("ngIf",!e.data.scrollable),b.Db(1),b.oc("ngIf",e.data.scrollable&&e.shouldScroll),b.Db(2),b.oc("ngIf",(!e.showQRField||""==e.showQRField)&&""===e.showCopyName),b.Db(1),b.oc("ngIf",""!==e.showCopyName),b.Db(1),b.oc("ngIf",""!==e.showCopyName),b.Db(1),b.oc("ngIf",""!==e.showQRField),b.Db(1),b.oc("ngIf",""!==e.showQRField))},directives:[_.c,_.b,_.a,C.m,S.a,C.o,E.c,k.a,O.a,E.b,A.b,C.t,D.a,I.a,m.d,T.a,C.n,L.a,C.q,C.r,C.s],pipes:[C.f],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),t})();var ft=n("/uX3"),pt=n("tqRt"),mt=n("s7LF"),bt=n("Q2Ze"),gt=n("e6WT"),_t=n("B0X+");function yt(t,e){if(1&t&&(b.Vb(0,"p",15),b.Kc(1),b.Ub()),2&t){const t=b.hc();b.Db(1),b.Lc(t.data.titleMessage)}}function vt(t,e){if(1&t&&(b.Vb(0,"span",28),b.Kc(1),b.Ub()),2&t){const t=e.$implicit;b.Db(1),b.Lc(t)}}function wt(t,e){if(1&t&&(b.Tb(0),b.Ic(1,vt,2,1,"span",27),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.oc("ngForOf",t.value)}}function xt(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.ic(2,"number"),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(b.kc(2,1,t.value,"1.0-3"))}}function Ct(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(!0===t.value?"True":"False")}}function St(t,e){if(1&t&&(b.Tb(0),b.Kc(1),b.Sb()),2&t){const t=b.hc(2).$implicit;b.Db(1),b.Lc(t.value)}}function Et(t,e){if(1&t&&(b.Vb(0,"span"),b.Vb(1,"span",24),b.Ic(2,wt,2,1,"ng-container",25),b.Ic(3,xt,3,4,"ng-container",25),b.Ic(4,Ct,2,1,"ng-container",25),b.Ic(5,St,2,1,"ng-container",26),b.Ub(),b.Ub()),2&t){const t=b.hc().$implicit,e=b.hc(3);b.Db(1),b.oc("ngSwitch",t.type),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.ARRAY),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.NUMBER),b.Db(1),b.oc("ngSwitchCase",e.dataTypeEnum.BOOLEAN)}}function kt(t,e){1&t&&(b.Vb(0,"span",29),b.Kc(1,"\xa0"),b.Ub())}function Ot(t,e){if(1&t&&(b.Vb(0,"div",19),b.Vb(1,"h4",20),b.Kc(2),b.Ub(),b.Ic(3,Et,6,4,"span",21),b.Ic(4,kt,2,0,"ng-template",null,22,b.Jc),b.Qb(6,"mat-divider",23),b.Ub()),2&t){const t=e.$implicit,n=b.wc(5);b.pc("fxFlex.gt-md",t.width),b.Db(2),b.Lc(t.title),b.Db(1),b.oc("ngIf",t&&t.value)("ngIfElse",n)}}function At(t,e){if(1&t&&(b.Vb(0,"div"),b.Vb(1,"div",17),b.Ic(2,Ot,7,4,"div",18),b.Ub(),b.Ub()),2&t){const t=e.$implicit;b.Db(2),b.oc("ngForOf",t)}}function Dt(t,e){if(1&t&&(b.Vb(0,"div"),b.Ic(1,At,3,1,"div",16),b.Ub()),2&t){const t=b.hc();b.Db(1),b.oc("ngForOf",t.messageObjs)}}function It(t,e){if(1&t&&(b.Vb(0,"p",15),b.Kc(1),b.Ub()),2&t){const t=b.hc(2);b.Db(1),b.Lc(t.data.titleMessage)}}function Tt(t,e){if(1&t){const t=b.Wb();b.Vb(0,"input",36),b.dc("ngModelChange",function(e){return b.zc(t),b.hc().$implicit.inputValue=e}),b.ic(1,"lowercase"),b.Ub()}if(2&t){const t=b.hc(),e=t.index,n=t.$implicit;b.qc("name","input",e,""),b.oc("placeholder",n.placeholder)("min",n.min)("step",n.step)("type",b.jc(1,7,n.inputType))("ngModel",n.inputValue)("tabindex",e+1)}}function Lt(t,e){if(1&t){const t=b.Wb();b.Vb(0,"input",37),b.dc("ngModelChange",function(e){return b.zc(t),b.hc().$implicit.inputValue=e}),b.ic(1,"lowercase"),b.Ub()}if(2&t){const t=b.hc(),e=t.index,n=t.$implicit;b.qc("name","input",e,""),b.oc("placeholder",n.placeholder)("min",n.min)("step",n.step)("type",b.jc(1,7,n.inputType))("ngModel",n.inputValue)("tabindex",e+1)}}function Pt(t,e){if(1&t&&(b.Vb(0,"mat-error"),b.Kc(1),b.Ub()),2&t){const t=b.hc().$implicit;b.Db(1),b.Mc("",t.placeholder," is required.")}}function Rt(t,e){if(1&t&&(b.Vb(0,"mat-form-field",33),b.Ic(1,Tt,2,9,"input",34),b.Ic(2,Lt,2,9,"input",35),b.Ic(3,Pt,2,1,"mat-error",9),b.Ub()),2&t){const t=e.$implicit,n=e.index;b.oc("fxFlex",t.width),b.Db(1),b.oc("ngIf",0===n),b.Db(1),b.oc("ngIf",0!==n),b.Db(1),b.oc("ngIf",!t.inputValue)}}function Mt(t,e){if(1&t&&(b.Vb(0,"div",30),b.Ic(1,It,2,1,"p",8),b.Vb(2,"div",31),b.Ic(3,Rt,4,4,"mat-form-field",32),b.Ub(),b.Ub()),2&t){const t=b.hc();b.Db(1),b.oc("ngIf",t.data.titleMessage),b.Db(2),b.oc("ngForOf",t.getInputs)}}function jt(t,e){if(1&t){const t=b.Wb();b.Vb(0,"button",38),b.dc("click",function(){b.zc(t);const e=b.hc();return e.onClose(e.getInputs)}),b.Kc(1),b.Ub()}if(2&t){const t=b.hc();b.Db(1),b.Lc(t.yesBtnText)}}function Ft(t,e){if(1&t){const t=b.Wb();b.Vb(0,"button",39),b.dc("click",function(){return b.zc(t),b.hc().onClose(!0)}),b.Kc(1),b.Ub()}if(2&t){const t=b.hc();b.Db(1),b.Lc(t.yesBtnText)}}let Nt=(()=>{class t{constructor(t,e,n,i){this.dialogRef=t,this.data=e,this.logger=n,this.store=i,this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.alertTypeEnum=p.b,this.dataTypeEnum=p.h,this.getInputs=[{placeholder:"",inputType:"text",inputValue:""}]}ngOnInit(){this.flgShowInput=this.data.flgShowInput,this.getInputs=this.data.getInputs,this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.messageObjs=this.data.message,this.data.type===p.b.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onClose(t){if(t&&this.getInputs&&this.getInputs.some(t=>!t.inputValue))return!0;this.store.dispatch(new ft.h(t))}}return t.\u0275fac=function(e){return new(e||t)(b.Pb(m.f),b.Pb(m.a),b.Pb(v.b),b.Pb(pt.h))},t.\u0275cmp=b.Jb({type:t,selectors:[["rtl-confirmation-message"]],decls:18,vars:7,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"mt-5px"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","reset","tabindex","2",1,"mr-1",3,"click"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],["emptyField",""],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","display-block",4,"ngFor","ngForOf"],[1,"display-block"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngFor","ngForOf"],[3,"fxFlex"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange",4,"ngIf"],["autoFocus","","matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["matInput","","required","",3,"placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-flat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(t,e){1&t&&(b.Vb(0,"div",0),b.Vb(1,"div",1),b.Vb(2,"mat-card-header",2),b.Vb(3,"div",3),b.Vb(4,"span",4),b.Kc(5),b.Ub(),b.Ub(),b.Vb(6,"button",5),b.dc("click",function(){return e.onClose(!1)}),b.Kc(7,"X"),b.Ub(),b.Ub(),b.Vb(8,"mat-card-content",6),b.Vb(9,"form",7),b.Ic(10,yt,2,1,"p",8),b.Ic(11,Dt,2,1,"div",9),b.Ic(12,Mt,4,2,"div",10),b.Vb(13,"div",11),b.Vb(14,"button",12),b.dc("click",function(){return e.onClose(!1)}),b.Kc(15),b.Ub(),b.Ic(16,jt,2,1,"button",13),b.Ic(17,Ft,2,1,"button",14),b.Ub(),b.Ub(),b.Ub(),b.Ub(),b.Ub()),2&t&&(b.Db(5),b.Lc(e.data.alertTitle||e.alertTypeEnum[e.data.type]),b.Db(5),b.oc("ngIf",e.data.titleMessage&&!e.flgShowInput),b.Db(1),b.oc("ngIf",(null==e.messageObjs?null:e.messageObjs.length)>0),b.Db(1),b.oc("ngIf",e.flgShowInput),b.Db(3),b.Lc(e.noBtnText),b.Db(1),b.oc("ngIf",e.flgShowInput),b.Db(1),b.oc("ngIf",!e.flgShowInput))},directives:[_.c,_.a,E.c,_.b,k.a,E.b,mt.u,mt.n,mt.o,C.o,C.n,L.a,C.q,C.r,C.s,bt.c,gt.b,_t.a,mt.c,I.a,mt.s,mt.m,mt.p,bt.b],pipes:[C.f,C.l],styles:[""]}),t})();var Vt=n("V8Fa"),Ut=n("wHSu"),Bt=n("Nv++"),zt=n("ZTz/"),Ht=n("UhP/");function Wt(t,e){if(1&t&&(b.Vb(0,"mat-option",23),b.Kc(1),b.Ub()),2&t){const t=e.$implicit;b.oc("value",t),b.Db(1),b.Mc(" ",t.infoName," ")}}function Kt(t,e){if(1&t){const t=b.Wb();b.Vb(0,"div",13),b.Vb(1,"mat-form-field",20),b.Vb(2,"mat-select",21),b.dc("valueChange",function(e){return b.zc(t),b.hc().selInfoType=e}),b.Ic(3,Wt,2,2,"mat-option",22),b.Ub(),b.Ub(),b.Ub()}if(2&t){const t=b.hc();b.Db(2),b.oc("value",t.selInfoType),b.Db(1),b.oc("ngForOf",t.infoTypes)}}const qt=function(t){return{"display-none":t}};let Yt=(()=>{class t{constructor(t,e,n,i,r){this.dialogRef=t,this.data=e,this.logger=n,this.snackBar=i,this.commonService=r,this.faReceipt=Ut.D,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=p.q}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((t,e)=>{this.infoTypes.push({infoID:e+1,infoKey:"node URI "+(e+1),infoName:"Node URI "+(e+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(t){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(b.Pb(m.f),b.Pb(m.a),b.Pb(v.b),b.Pb(w.b),b.Pb(x.a))},t.\u0275cmp=b.Jb({type:t,selectors:[["rtl-show-pubkey"]],decls:26,vars:23,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100","fxFlex.gt-sm","70",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"pr-1"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],["tabindex","1",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){1&t&&(b.Vb(0,"div",0),b.Vb(1,"div",1),b.Qb(2,"qrcode",2),b.Ub(),b.Vb(3,"div",3),b.Vb(4,"mat-card-header",4),b.Vb(5,"div",5),b.Qb(6,"fa-icon",6),b.Vb(7,"span",7),b.Kc(8),b.Ub(),b.Ub(),b.Vb(9,"button",8),b.dc("click",function(){return e.onClose()}),b.Kc(10,"X"),b.Ub(),b.Ub(),b.Vb(11,"mat-card-content",9),b.Vb(12,"div",10),b.Vb(13,"div",11),b.Qb(14,"qrcode",2),b.Ub(),b.Ic(15,Kt,4,2,"div",12),b.Vb(16,"div",13),b.Vb(17,"div",14),b.Vb(18,"h4",15),b.Kc(19),b.Ub(),b.Vb(20,"span",16),b.Kc(21),b.Ub(),b.Ub(),b.Ub(),b.Qb(22,"mat-divider",17),b.Vb(23,"div",18),b.Vb(24,"button",19),b.dc("copied",function(t){return e.onCopyPubkey(t)}),b.Kc(25),b.Ub(),b.Ub(),b.Ub(),b.Ub(),b.Ub(),b.Ub()),2&t&&(b.Db(1),b.oc("ngClass",b.sc(19,qt,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),b.Db(1),b.pc("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.oc("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),b.Db(4),b.oc("icon",e.faReceipt),b.Db(2),b.Lc(e.selInfoType.infoName),b.Db(5),b.oc("ngClass",b.sc(21,qt,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),b.Db(1),b.pc("qrdata",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.oc("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),b.Db(1),b.oc("ngIf",e.information.uris&&e.information.uris.length>0),b.Db(4),b.Lc(e.selInfoType.infoName),b.Db(2),b.Lc(0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.Db(3),b.pc("payload",0===e.selInfoType.infoID?e.information.identity_pubkey:e.information.uris[e.selInfoType.infoID-1]),b.Db(1),b.Mc("Copy ",e.selInfoType.infoKey,""))},directives:[_.c,_.b,_.a,C.m,S.a,O.a,E.c,Bt.a,k.a,E.b,C.o,L.a,I.a,T.a,bt.c,zt.a,C.n,Ht.m],styles:[""]}),t})();var Zt=n("lF6s"),Xt=n("LvnZ"),Gt=n("MCVq"),$t=n("IheW"),Qt=n("mZtN"),Jt=n("iiaH"),te=n("iInd");let ee=(()=>{class t{constructor(t,e,n,i,m,b,g,_,v,w){this.actions$=t,this.httpClient=e,this.store=n,this.logger=i,this.sessionService=m,this.commonService=b,this.dataService=g,this.dialog=_,this.snackBar=v,this.router=w,this.CHILD_API_URL=f.a+"/lnd",this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new s.a,new s.a],this.closeAllDialogs=this.actions$.pipe(Object(r.d)(ft.c),Object(c.a)(t=>{this.dialog.closeAll()})),this.openSnackBar=this.actions$.pipe(Object(r.d)(ft.A),Object(c.a)(t=>{this.snackBar.open(t.payload)})),this.openSpinner=this.actions$.pipe(Object(r.d)(ft.B),Object(c.a)(t=>{this.dialogRef=this.dialog.open(y,{data:{titleMessage:t.payload}})})),this.closeSpinner=this.actions$.pipe(Object(r.d)(ft.e),Object(c.a)(t=>{this.dialogRef&&this.dialogRef.close();try{this.dialog.openDialogs.forEach(t=>{t.componentInstance&&t.componentInstance.data&&t.componentInstance.data.titleMessage&&t.componentInstance.data.titleMessage.includes("...")&&t.close()})}catch(e){this.logger.error(e)}})),this.openAlert=this.actions$.pipe(Object(r.d)(ft.y),Object(c.a)(t=>{t.payload.width=this.alertWidth,this.dialogRef=this.dialog.open(t.payload.data.component?t.payload.data.component:dt,t.payload)})),this.closeAlert=this.actions$.pipe(Object(r.d)(ft.b),Object(c.a)(t=>{this.dialogRef&&this.dialogRef.close()})),this.openConfirm=this.actions$.pipe(Object(r.d)(ft.z),Object(c.a)(t=>{t.payload.width=this.confirmWidth,this.dialogRef=this.dialog.open(Nt,t.payload)})),this.closeConfirm=this.actions$.pipe(Object(r.d)(ft.d),Object(l.a)(1),Object(c.a)(t=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(t.payload),t.payload))),this.showNodePubkey=this.actions$.pipe(Object(r.d)(ft.R),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.sessionService.getItem("token")&&e.nodeData.identity_pubkey?this.store.dispatch(new ft.C({width:"70%",data:{information:e.nodeData,component:Yt}})):this.snackBar.open("Node Pubkey does not exist."),Object(o.a)({type:ft.bb})))),this.appConfigFetch=this.actions$.pipe(Object(r.d)(ft.n),Object(u.a)(t=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.q.XS||this.screenSize===p.q.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===p.q.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="55%",this.confirmWidth="60%"),this.store.dispatch(new ft.f("FetchRTLConfig")),this.httpClient.get(f.b.CONF_API+"/rtlconf"))),Object(c.a)(t=>{let e;return this.logger.info(t),t.nodes.forEach(n=>{n.settings.currencyUnits=[...p.e,n.settings.currencyUnit],+n.index===t.selectedNodeIndex&&(e=n)}),e?(this.store.dispatch(new ft.U({lnNode:e,isInitialSetup:!0})),{type:ft.N,payload:t}):{type:ft.bb}},Object(d.a)(t=>(this.handleErrorWithoutAlert("FetchRTLConfig",t),Object(o.a)({type:ft.bb}))))),this.settingSave=this.actions$.pipe(Object(r.d)(ft.L),Object(u.a)(t=>{if(this.store.dispatch(new ft.f("UpdateSettings")),t.payload.settings&&t.payload.defaultNodeIndex){let e=this.httpClient.post(f.b.CONF_API,{updatedSettings:t.payload.settings}),n=this.httpClient.post(f.b.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex});return Object(a.a)([e,n])}return t.payload.settings&&!t.payload.defaultNodeIndex?this.httpClient.post(f.b.CONF_API,{updatedSettings:t.payload.settings}):!t.payload.settings&&t.payload.defaultNodeIndex?this.httpClient.post(f.b.CONF_API+"/updateDefaultNode",{defaultNodeIndex:t.payload.defaultNodeIndex}):Object(o.a)({type:ft.bb})}),Object(c.a)(t=>(this.store.dispatch(new ft.i),this.logger.info(t),{type:ft.A,payload:t.length?t[0].message+".":t.message+"."}),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"UpdateSettings",code:t.length?t[0].status:t.status,message:t.length?t[0].error.error:t.error.error})),this.handleErrorWithAlert("ERROR","Update Settings Failed!",f.b.CONF_API,t.length?t[0]:t),Object(o.a)({type:ft.bb}))))),this.twoFASettingSave=this.actions$.pipe(Object(r.d)(ft.W),Object(u.a)(t=>(this.store.dispatch(new ft.f("Update2FASettings")),this.httpClient.post(f.b.CONF_API+"/update2FA",{secret2fa:t.payload.secret2fa}))),Object(c.a)(t=>(this.store.dispatch(new ft.i),this.logger.info(t),{type:ft.bb}),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"Update2FASettings",code:t.length?t[0].status:t.status,message:t.length?t[0].error.error:t.error.error})),this.handleErrorWithAlert("ERROR","Update 2FA Settings Failed!",f.b.CONF_API,t.length?t[0]:t),Object(o.a)({type:ft.bb}))))),this.configFetch=this.actions$.pipe(Object(r.d)(ft.l),Object(u.a)(t=>(this.store.dispatch(new ft.f("fetchConfig")),this.httpClient.get(f.b.CONF_API+"/config/"+t.payload).pipe(Object(c.a)(t=>(this.store.dispatch(new ft.i),{type:ft.P,payload:t})),Object(d.a)(e=>(this.store.dispatch(new ft.k({action:"fetchConfig",code:e.status,message:e.error.error})),this.handleErrorWithAlert("ERROR","Fetch Config Failed!",f.b.CONF_API+"/config/"+t.payload,e),Object(o.a)({type:ft.bb}))))))),this.showLnConfig=this.actions$.pipe(Object(r.d)(ft.P),Object(c.a)(t=>t.payload)),this.isAuthorized=this.actions$.pipe(Object(r.d)(ft.r),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.store.dispatch(new ft.f("IsAuthorized")),this.httpClient.post(f.b.AUTHENTICATE_API,{authenticateWith:t.payload&&""!==t.payload.trim()?p.c.PASSWORD:p.c.TOKEN,authenticationValue:t.payload&&""!==t.payload.trim()?t.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe(Object(c.a)(t=>(this.logger.info(t),this.logger.info("Successfully Authorized!"),{type:ft.s,payload:t})),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"IsAuthorized",code:t.status,message:t.error.message})),this.handleErrorWithAlert("ERROR","Authorization Failed",f.b.AUTHENTICATE_API,t),Object(o.a)({type:ft.s,payload:"ERROR"}))))))),this.isAuthorizedRes=this.actions$.pipe(Object(r.d)(ft.s),Object(c.a)(t=>t.payload)),this.authLogin=this.actions$.pipe(Object(r.d)(ft.u),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.store.dispatch(new Gt.i("FetchInfo")),this.store.dispatch(new Xt.g("FetchInfo")),this.store.dispatch(new Zt.e("FetchInfo")),this.store.dispatch(new ft.f("Login")),this.httpClient.post(f.b.AUTHENTICATE_API,{authenticateWith:t.payload.password?p.c.PASSWORD:p.c.TOKEN,authenticationValue:t.payload.password?t.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe(Object(c.a)(n=>{this.logger.info(n),this.setLoggedInDetails(t.payload.initialPass,n,e)}),Object(d.a)(t=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("ERROR",t),this.store.dispatch(new ft.k({action:"Login",code:t.status,message:t.error.error})),+e.appConfig.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:"Single Sign On Failed!"}}):this.router.navigate([e.appConfig.sso.logoutRedirectLink]),Object(o.a)({type:ft.bb}))))))),this.tokenVerify=this.actions$.pipe(Object(r.d)(ft.ab),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.store.dispatch(new ft.f("VerifyToken")),this.httpClient.post(f.b.AUTHENTICATE_API+"/token",{authentication2FA:t.payload.token}).pipe(Object(c.a)(n=>{this.logger.info(n),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,t.payload.authResponse,e)}),Object(d.a)(t=>(this.handleErrorWithAlert("ERROR","Authorization Failed!",f.b.AUTHENTICATE_API+"/token",t),this.store.dispatch(new ft.k({action:"VerifyToken",code:t.status,message:t.error.error})),Object(o.a)({type:ft.bb}))))))),this.logOut=this.actions$.pipe(Object(r.d)(ft.v),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(+e.appConfig.sso.rtlSSO?window.location.href=e.appConfig.sso.logoutRedirectLink:this.router.navigate(["/login"]),this.sessionService.removeItem("eclUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"),this.logger.warn("LOGGED OUT"),Object(o.a)()))),this.resetPassword=this.actions$.pipe(Object(r.d)(ft.G),Object(h.a)(this.store.select("root")),Object(u.a)(([t,e])=>(this.store.dispatch(new ft.f("ResetPassword")),this.httpClient.post(f.b.AUTHENTICATE_API+"/reset",{currPassword:t.payload.currPassword,newPassword:t.payload.newPassword}).pipe(Object(c.a)(t=>(this.logger.info(t),this.logger.info("Password Reset Successful!"),this.store.dispatch(new ft.E("Password Reset Successful!")),this.SetToken(t.token),{type:ft.H,payload:t.token})),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"ResetPassword",code:t.status,message:t.error.message})),this.handleErrorWithAlert("ERROR","Password Reset Failed!",f.b.AUTHENTICATE_API+"/reset",t),Object(o.a)({type:ft.bb}))))))),this.setSelectedNode=this.actions$.pipe(Object(r.d)(ft.O),Object(u.a)(t=>(this.store.dispatch(new ft.f("UpdateSelNode")),this.httpClient.post(f.b.CONF_API+"/updateSelNode",{selNodeIndex:t.payload.lnNode.index}).pipe(Object(c.a)(e=>(this.logger.info(e),this.store.dispatch(new ft.i),this.initializeNode(t.payload.lnNode,t.payload.isInitialSetup),{type:ft.bb})),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"UpdateSelNode",code:t.status,message:t.error.message})),this.handleErrorWithAlert("ERROR","Update Selected Node Failed!",f.b.CONF_API+"/updateSelNode",t),Object(o.a)({type:ft.bb}))))))),this.fetchFile=this.actions$.pipe(Object(r.d)(ft.m),Object(u.a)(t=>{this.store.dispatch(new ft.f("fetchFile"));let e="?channel="+t.payload.channelPoint+(t.payload.path?"&path="+t.payload.path:"");return this.httpClient.get(f.b.CONF_API+"/file"+e).pipe(Object(c.a)(t=>(this.store.dispatch(new ft.i),{type:ft.Q,payload:t})),Object(d.a)(t=>(this.store.dispatch(new ft.k({action:"fetchFile",code:t.status,message:t.error.error})),this.handleErrorWithAlert("ERROR",t.error.message,f.b.CONF_API+"/file"+e,{status:t.error.error.errno,error:t.error.error.code}),Object(o.a)({type:ft.bb}))))})),this.showFile=this.actions$.pipe(Object(r.d)(ft.Q),Object(c.a)(t=>t.payload))}setLoggedInDetails(t,e,n){this.logger.info("Successfully Authorized!"),this.SetToken(e.token),n.selNode.settings.currencyUnits=[...p.e,n.selNode.settings.currencyUnit],t?(this.store.dispatch(new ft.E("Reset your password.")),this.router.navigate(["/settings/auth"],{state:{initial:!0}})):this.store.dispatch(new ft.U({lnNode:n.selNode,isInitialSetup:!0}))}initializeNode(t,e){const n=e?"":"HOME";let i={};if(i=t.settings.fiatConversion&&t.settings.currencyUnit?{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:[...p.e,t.settings.currencyUnit],fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl}:{userPersona:t.settings.userPersona,channelBackupPath:t.settings.channelBackupPath,selCurrencyUnit:t.settings.currencyUnit,currencyUnits:p.e,fiatConversion:t.settings.fiatConversion,lnImplementation:t.lnImplementation,swapServerUrl:t.settings.swapServerUrl},this.store.dispatch(new ft.K(t)),this.store.dispatch(new Gt.nb(i)),this.store.dispatch(new Xt.X(i)),this.store.dispatch(new Zt.M(i)),this.sessionService.getItem("token"))switch(t.lnImplementation=t.lnImplementation.toUpperCase(),this.dataService.setChildAPIUrl(t.lnImplementation),t.lnImplementation){case"CLT":this.CHILD_API_URL=f.a+"/cl",this.store.dispatch(new Xt.E({loadPage:n}));break;case"ECL":this.CHILD_API_URL=f.a+"/ecl",this.store.dispatch(new Zt.w({loadPage:n}));break;default:this.CHILD_API_URL=f.a+"/lnd",this.store.dispatch(new Gt.H({loadPage:n}))}}SetToken(t){t?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",t)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}handleErrorWithoutAlert(t,e){this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new ft.g),this.store.dispatch(new ft.x),this.store.dispatch(new ft.E("Authentication Failed. Redirecting to Login."))):this.store.dispatch(new ft.k({action:t,code:e.status.toString(),message:e.error.error}))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new ft.g),this.store.dispatch(new ft.x),this.store.dispatch(new ft.E("Authentication Failed. Redirecting to Login."))):(this.store.dispatch(new ft.i),this.store.dispatch(new ft.C({data:{type:t,alertTitle:e,message:{code:i.status?i.status:"Unknown Error",message:i.error.error&&i.error.error.error&&i.error.error.error.error&&i.error.error.error.error.error&&"string"==typeof i.error.error.error.error.error?i.error.error.error.error.error:i.error.error&&i.error.error.error&&i.error.error.error.error&&"string"==typeof i.error.error.error.error?i.error.error.error.error:i.error.error&&i.error.error.error&&"string"==typeof i.error.error.error?i.error.error.error:i.error.error&&"string"==typeof i.error.error?i.error.error:"string"==typeof i.error?i.error:"Unknown Error",URL:n},component:Vt.a}})))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(b.Zb(r.a),b.Zb($t.b),b.Zb(pt.h),b.Zb(v.b),b.Zb(Qt.a),b.Zb(x.a),b.Zb(Jt.a),b.Zb(m.c),b.Zb(w.b),b.Zb(te.g))},t.\u0275prov=b.Lb({token:t,factory:t.\u0275fac}),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"closeAllDialogs",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"openSnackBar",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"openSpinner",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"closeSpinner",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"openAlert",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"closeAlert",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"openConfirm",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"closeConfirm",void 0),Object(i.a)([Object(r.b)()],t.prototype,"showNodePubkey",void 0),Object(i.a)([Object(r.b)()],t.prototype,"appConfigFetch",void 0),Object(i.a)([Object(r.b)()],t.prototype,"settingSave",void 0),Object(i.a)([Object(r.b)()],t.prototype,"twoFASettingSave",void 0),Object(i.a)([Object(r.b)()],t.prototype,"configFetch",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"showLnConfig",void 0),Object(i.a)([Object(r.b)()],t.prototype,"isAuthorized",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"isAuthorizedRes",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"authLogin",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"tokenVerify",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"logOut",void 0),Object(i.a)([Object(r.b)()],t.prototype,"resetPassword",void 0),Object(i.a)([Object(r.b)()],t.prototype,"setSelectedNode",void 0),Object(i.a)([Object(r.b)()],t.prototype,"fetchFile",void 0),Object(i.a)([Object(r.b)({dispatch:!1})],t.prototype,"showFile",void 0),t})()},XDbj:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("sVev"),r=n("7o/Q");function s(t=c){return e=>e.lift(new o(t))}class o{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends r.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 c(){return new i.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h});var i=n("HDdC"),r=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends r.a{constructor(t){super(t),this.destination=t}}let h=(()=>{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 u(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.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 o.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 o.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 o.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),s.a.EMPTY):this.isStopped?(t.complete(),s.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 u(t,e),t})();class u extends h{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):s.a.EMPTY}}},Xhqo:function(t,e,n){"use strict";var i=n("hwdV").Buffer,r=n(4);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var e=i.allocUnsafe(t>>>0),n=this.head,r=0;n;)n.data.copy(e,r),r+=n.data.length,n=n.next;return e},t}(),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},Xn1i:function(t,e,n){"use strict";var i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var r=n("zzXz"),s=n("Sc7j");n("2q5Q")(l,r);for(var o=i(s.prototype),a=0;a<o.length;a++){var c=o[a];l.prototype[c]||(l.prototype[c]=s.prototype[c])}function l(t){if(!(this instanceof l))return new l(t);r.call(this,t),s.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||process.nextTick(u,this)}function u(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return i})},Xudb:function(t,e,n){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,i){for(var r=0,s=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)s<<=1,s|=e>>>a+o&1;for(a=1;a<=25;a+=8)s<<=1,s|=t>>>a+o&1}n[i+0]=r>>>0,n[i+1]=s>>>0},e.rip=function(t,e,n,i){for(var r=0,s=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)r<<=1,r|=e>>>a+o&1,r<<=1,r|=t>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)s<<=1,s|=e>>>a+o&1,s<<=1,s|=t>>>a+o&1;n[i+0]=r>>>0,n[i+1]=s>>>0},e.pc1=function(t,e,n,i){for(var r=0,s=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+o&1}for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)s<<=1,s|=e>>a+o&1;for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1}for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1;n[i+0]=r>>>0,n[i+1]=s>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,r){for(var s=0,o=0,a=i.length>>>1,c=0;c<a;c++)s<<=1,s|=t>>>i[c]&1;for(c=a;c<i.length;c++)o<<=1,o|=e>>>i[c]&1;n[r+0]=s>>>0,n[r+1]=o>>>0},e.expand=function(t,e,n){var i=0,r=0;i=(1&t)<<5|t>>>27;for(var s=23;s>=15;s-=4)i<<=6,i|=t>>>s&63;for(s=11;s>=3;s-=4)r|=t>>>s&63,r<<=6;r|=(31&t)<<1|t>>>31,e[n+0]=i>>>0,e[n+1]=r>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,i=0;i<4;i++)n<<=4,n|=r[64*i+(t>>>18-6*i&63)];for(i=0;i<4;i++)n<<=4,n|=r[256+64*i+(e>>>18-6*i&63)];return n>>>0};var s=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n<s.length;n++)e<<=1,e|=t>>>s[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var i=t.toString(2);i.length<e;)i="0"+i;for(var r=[],s=0;s<e;s+=n)r.push(i.slice(s,s+n));return r.join(" ")}},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}},YEUz:function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return E}),n.d(e,"c",function(){return C}),n.d(e,"d",function(){return j}),n.d(e,"e",function(){return z}),n.d(e,"f",function(){return L}),n.d(e,"g",function(){return k}),n.d(e,"h",function(){return U}),n.d(e,"i",function(){return T}),n.d(e,"j",function(){return q}),n.d(e,"k",function(){return M}),n.d(e,"l",function(){return F});var i=n("SVse"),r=n("8Y7J"),s=n("SCoL"),o=n("XNiG"),a=n("quSY"),c=n("LRne"),l=n("Ht+U"),h=n("vkgz"),u=n("Kj3r"),d=n("pLZG"),f=n("lJxs"),p=n("IzEk"),m=n("8LU1"),b=n("9b/N");function g(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const _="cdk-describedby-message-container",y="cdk-describedby-host";let v=0;const w=new Map;let x=null,C=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),w.set(e,{messageElement:e,referenceCount:0})):w.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=w.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}x&&0===x.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(y);x&&this._deleteMessagesContainer(),w.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),x.appendChild(e),w.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+v++)}_deleteMessageElement(t){const e=w.get(t),n=e&&e.messageElement;x&&n&&x.removeChild(n),w.delete(t)}_createMessagesContainer(){if(!x){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById(_);e&&e.parentNode&&e.parentNode.removeChild(e),x=this._document.createElement("div"),x.id=_,x.classList.add("cdk-visually-hidden"),x.setAttribute("aria-hidden",t+""),this._document.body.appendChild(x)}}_deleteMessagesContainer(){x&&x.parentNode&&(x.parentNode.removeChild(x),x=null)}_removeCdkDescribedByReferenceIds(t){const e=g(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=w.get(e);!function(t,e,n){const i=g(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(y,""),n.referenceCount++}_removeMessageReference(t,e){const n=w.get(e);n.referenceCount--,function(t,e,n){const i=g(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(y)}_isElementDescribedByMessage(t,e){const n=g(t,"aria-describedby"),i=w.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)(r.Zb(i.d),r.Zb(s.a))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(i.d),Object(r.Zb)(s.a))},token:t,providedIn:"root"}),t})();class S{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.a,this._typeaheadSubscription=a.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.a,this.change=new o.a,t instanceof r.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){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(h.a)(t=>this._pressedLetters.push(t)),Object(u.a)(t),Object(d.a)(()=>this._pressedLetters.length>0),Object(f.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(t=!0){return this._homeAndEnd=t,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 l.n:return void this.tabOut.next();case l.c:if(this._vertical&&n){this.setNextItemActive();break}return;case l.o:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.l:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.h:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.g:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.d:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(l.r)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.p||e>=l.q&&e<=l.i)&&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 r.F?this._items.toArray():this._items}}class E extends S{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class k extends S{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 O=(()=>{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(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===D(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),r=D(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")||A(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(s.a))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(s.a))},token:t,providedIn:"root"}),t})();function A(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 D(t){if(!A(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{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]");if(t){if(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),!this._checker.isFocusable(t)){const e=this._getFirstTabbableElement(t);return null==e||e.focus(),!!e}return t.focus(),!0}return 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.pipe(Object(p.a)(1)).subscribe(t)}}let T=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(O),r.Zb(r.B),r.Zb(i.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(O),Object(r.Zb)(r.B),Object(r.Zb)(i.d))},token:t,providedIn:"root"}),t})(),L=(()=>{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=Object(m.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(m.c)(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)(r.Pb(r.l),r.Pb(T),r.Pb(i.d))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[r.Bb]}),t})();"undefined"!=typeof Element&&Element;const P=new r.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),R=new r.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let M=(()=>{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="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),n=this._document.createElement("div");for(let i=0;i<e.length;i++)e[i].parentNode.removeChild(e[i]);return n.classList.add(t),n.classList.add("cdk-visually-hidden"),n.setAttribute("aria-atomic","true"),n.setAttribute("aria-live","polite"),this._document.body.appendChild(n),n}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(P,8),r.Zb(r.B),r.Zb(i.d),r.Zb(R,8))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(P,8),Object(r.Zb)(r.B),Object(r.Zb)(i.d),Object(r.Zb)(R,8))},token:t,providedIn:"root"}),t})(),j=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","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)(r.Pb(r.l),r.Pb(M),r.Pb(b.b),r.Pb(r.B))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function F(t){return 0===t.buttons}const N=new r.s("cdk-focus-monitor-default-options"),V=Object(s.f)({passive:!0,capture:!0});let U=(()=>{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=F(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=B(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=B(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){const n=Object(m.e)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(c.a)(null);const i=Object(s.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const a={checkChildren:e,subject:new o.a,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const e=Object(m.e)(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=Object(m.e)(t);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,e,this._elementInfo.get(i)):(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=B(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);n&&(n.checkChildren||e===B(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_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,V),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,V)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,V),t.addEventListener("mousedown",this._documentMousedownListener,V),t.addEventListener("touchstart",this._documentTouchstartListener,V),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,V),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,V),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,V),t.removeEventListener("mousedown",this._documentMousedownListener,V),t.removeEventListener("touchstart",this._documentTouchstartListener,V),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(r.B),r.Zb(s.a),r.Zb(i.d,8),r.Zb(N,8))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(r.B),Object(r.Zb)(s.a),Object(r.Zb)(i.d,8),Object(r.Zb)(N,8))},token:t,providedIn:"root"}),t})();function B(t){return t.composedPath?t.composedPath()[0]:t.target}let z=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.o}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.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)(r.Pb(r.l),r.Pb(U))},t.\u0275dir=r.Kb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const H="cdk-high-contrast-black-on-white",W="cdk-high-contrast-white-on-black",K="cdk-high-contrast-active";let q=(()=>{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(K),t.remove(H),t.remove(W);const e=this.getHighContrastMode();1===e?(t.add(K),t.add(H)):2===e&&(t.add(K),t.add(W))}}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(s.a),r.Zb(i.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(s.a),Object(r.Zb)(i.d))},token:t,providedIn:"root"}),t})(),Y=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)(r.Zb(q))},imports:[[s.b,b.c]]}),t})()},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)}}},"YoN+":function(t,e,n){"use strict";const i=n("P7XM"),r=n("0cit").Reporter,s=n("xZGU").Buffer;function o(t,e){r.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function a(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(t){return a.isEncoderBuffer(t)||(t=new a(t,e)),this.length+=t.length,t},this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}i(o,r),e.DecoderBuffer=o,o.isDecoderBuffer=function(t){return t instanceof o||"object"==typeof t&&s.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},o.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},o.prototype.restore=function(t){const e=new o(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,r.prototype.restore.call(this,t.reporter),e},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},o.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},o.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=a,a.isEncoderBuffer=function(t){return t instanceof a||"object"==typeof t&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},a.prototype.join=function(t,e){return t||(t=s.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(t,e),e+=n.length}):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},YskG:function(t,e,n){var i=n("hwdV").Buffer;function r(t,e,n){var r=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=i.concat([t._prev.slice(1),i.from([n?e:r])]),r}e.encrypt=function(t,e,n){for(var s=e.length,o=i.allocUnsafe(s),a=-1;++a<s;)o[a]=r(t,e[a],n);return o}},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}},"Z2+3":function(t,e,n){"use strict";var i=n("AQYT"),r=n("P7XM"),s=n("6lN/"),o=n("86MQ");function a(t){s.call(this,"mont",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(t,e,n){s.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(e,16),this.z=new i(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(a,s),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),i=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===i.redSqrt().redSqr().cmp(i)},r(c,s.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(o.toArray(t,e),1)},a.prototype.point=function(t,e){return new c(this,t,e)},a.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),i=t.redMul(e),r=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(i,r)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),r=t.x.redAdd(t.z),s=t.x.redSub(t.z).redMul(n),o=r.redMul(i),a=e.z.redMul(s.redAdd(o).redSqr()),c=e.x.redMul(s.redISub(o).redSqr());return this.curve.point(a,c)},c.prototype.mul=function(t){for(var e=t.clone(),n=this,i=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(var s=r.length-1;s>=0;s--)0===r[s]?(n=n.diffAdd(i,this),i=i.dbl()):(i=n.diffAdd(i,this),n=n.dbl());return i},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},Z92M:function(t,e){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},ZDAU:function(t,e,n){var i=n("hwdV").Buffer,r=n("1IWx").Transform,s=n("fXKp").StringDecoder;function o(t){r.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n("P7XM")(o,r),o.prototype.update=function(t,e,n){"string"==typeof t&&(t=i.from(t,e));var r=this._update(t);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(t,e,n){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(r){i=r}finally{n(i)}},o.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(n){e=n}t(e)},o.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},o.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new s(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var i=this._decoder.write(t);return n&&(i+=this._decoder.end()),i},t.exports=o},ZEK9:function(t,e,n){e.publicEncrypt=n("rSVQ"),e.privateDecrypt=n("DyzK"),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},"ZFy/":function(t,e,n){"use strict";n.d(e,"a",function(){return S}),n.d(e,"b",function(){return k});var i=n("1O3W"),r=n("YEUz"),s=n("SVse"),o=n("8Y7J"),a=n("UhP/"),c=n("7KAL"),l=n("8LU1"),h=n("Ht+U"),u=n("HeVh"),d=n("SCoL"),f=n("1z/I"),p=n("XNiG"),m=n("1G5W"),b=n("IzEk"),g=n("GS7A"),_=n("9gLZ");const y={tooltipState:Object(g.m)("state",[Object(g.j)("initial, void, hidden",Object(g.k)({opacity:0,transform:"scale(0)"})),Object(g.j)("visible",Object(g.k)({transform:"scale(1)"})),Object(g.l)("* => visible",Object(g.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(g.g)([Object(g.k)({opacity:0,transform:"scale(0)",offset:0}),Object(g.k)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(g.k)({opacity:1,transform:"scale(1)",offset:1})]))),Object(g.l)("* => hidden",Object(g.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(g.k)({opacity:0})))])},v=Object(d.f)({passive:!0}),w=new o.s("mat-tooltip-scroll-strategy"),x={provide:w,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new o.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let S=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c,l,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._platform=s,this._ariaDescriber=o,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 p.a,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===h.f&&!Object(h.r)(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=Object(l.c)(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?String(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(Object(m.a)(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,v)}),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 f.d(E,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(m.a)(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(Object(m.a)(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(Object(m.a)(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;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(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;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(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.pipe(Object(b.a)(1),Object(m.a)(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,v)})}_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)(o.Pb(i.c),o.Pb(o.l),o.Pb(c.c),o.Pb(o.S),o.Pb(o.B),o.Pb(d.a),o.Pb(r.c),o.Pb(r.h),o.Pb(w),o.Pb(_.b,8),o.Pb(C,8))},t.\u0275dir=o.Kb({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})(),E=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new p.a,this._isHandset=this._breakpointObserver.observe(u.b.Handset)}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}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)(o.Pb(o.h),o.Pb(u.a))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.dc("click",function(){return e._handleBodyInteraction()},!1,o.xc),2&t&&o.Fc("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.dc("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),o.ic(1,"async"),o.Kc(2),o.Ub()),2&t){let t=null;o.Hb("mat-tooltip-handset",null==(t=o.jc(1,5,e._isHandset))?null:t.matches),o.oc("ngClass",e.tooltipClass)("@state",e._visibility),o.Db(2),o.Lc(e.message)}},directives:[s.m],pipes:[s.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:[y.tooltipState]},changeDetection:0}),t})(),k=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[x],imports:[[r.a,s.c,i.f,a.i],a.i,c.b]}),t})()},"ZTz/":function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return X}),n.d(e,"c",function(){return K});var i=n("1O3W"),r=n("SVse"),s=n("8Y7J"),o=n("UhP/"),a=n("Q2Ze"),c=n("7KAL"),l=n("YEUz"),h=n("8LU1"),u=n("CtHx"),d=n("Ht+U"),f=n("XNiG"),p=n("NXyV"),m=n("VRyK"),b=n("JX91"),g=n("eIep"),_=n("IzEk"),y=n("pLZG"),v=n("lJxs"),w=n("/uUt"),x=n("1G5W"),C=n("GS7A"),S=n("9gLZ"),E=n("s7LF");const k=["trigger"],O=["panel"];function A(t,e){if(1&t&&(s.Vb(0,"span",8),s.Kc(1),s.Ub()),2&t){const t=s.hc();s.Db(1),s.Lc(t.placeholder||"\xa0")}}function D(t,e){if(1&t&&(s.Vb(0,"span"),s.Kc(1),s.Ub()),2&t){const t=s.hc(2);s.Db(1),s.Lc(t.triggerValue||"\xa0")}}function I(t,e){1&t&&s.mc(0,0,["*ngSwitchCase","true"])}function T(t,e){if(1&t&&(s.Vb(0,"span",9),s.Ic(1,D,2,1,"span",10),s.Ic(2,I,1,0,"ng-content",11),s.Ub()),2&t){const t=s.hc();s.oc("ngSwitch",!!t.customTrigger),s.Db(2),s.oc("ngSwitchCase",!0)}}function L(t,e){if(1&t){const t=s.Wb();s.Vb(0,"div",12),s.Vb(1,"div",13,14),s.dc("@transformPanel.done",function(e){return s.zc(t),s.hc()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return s.zc(t),s.hc()._handleKeydown(e)}),s.mc(3,1),s.Ub(),s.Ub()}if(2&t){const t=s.hc();s.oc("@transformPanelWrap",void 0),s.Db(1),s.Gb("mat-select-panel ",t._getPanelTheme(),""),s.Fc("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),s.oc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),s.Eb("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const P=[[["mat-select-trigger"]],"*"],R=["mat-select-trigger","*"],M={transformPanelWrap:Object(C.m)("transformPanelWrap",[Object(C.l)("* => void",Object(C.h)("@transformPanel",[Object(C.f)()],{optional:!0}))]),transformPanel:Object(C.m)("transformPanel",[Object(C.j)("void",Object(C.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(C.j)("showing",Object(C.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(C.j)("showing-multiple",Object(C.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(C.l)("void => *",Object(C.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(C.l)("* => void",Object(C.e)("100ms 25ms linear",Object(C.k)({opacity:0})))])};let j=0;const F=256,N=new s.s("mat-select-scroll-strategy"),V=new s.s("MAT_SELECT_CONFIG"),U={provide:N,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class B{constructor(t,e){this.source=t,this.value=e}}class z{constructor(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}const H=Object(o.y)(Object(o.C)(Object(o.z)(Object(o.A)(z)))),W=new s.s("MatSelectTrigger");let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-select-trigger"]],features:[s.Cb([{provide:W,useExisting:t}])]}),t})(),q=(()=>{class t extends H{constructor(t,e,n,i,r,o,a,c,l,h,u,d,w,x){var C,S,E;super(r,i,a,c,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=l,this.ngControl=h,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+j++,this._triggerAriaLabelledBy=null,this._destroy=new f.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+j++,this._panelDoneAnimatingStream=new f.a,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(E=null===(S=this._defaultOptions)||void 0===S?void 0:S.disableOptionCentering)&&void 0!==E&&E,this.ariaLabel="",this.optionSelectionChanges=Object(p.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(b.a)(t),Object(g.a)(()=>Object(m.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object(_.a)(1),Object(g.a)(()=>this.optionSelectionChanges))}),this.openedChange=new s.o,this._openedStream=this.openedChange.pipe(Object(y.a)(t=>t),Object(v.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(y.a)(t=>!t),Object(v.a)(()=>{})),this.selectionChange=new s.o,this.valueChange=new s.o,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}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=Object(h.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(h.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(h.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){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=Object(h.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new u.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(w.a)(),Object(x.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(x.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(b.a)(null),Object(x.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}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._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}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=e===d.c||e===d.o||e===d.h||e===d.l,i=e===d.e||e===d.m,r=this._keyManager;if(!r.isTyping()&&i&&!Object(d.r)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;r.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.c||n===d.o,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==d.e&&n!==d.m||!e.activeItem||Object(d.r)(t))if(!r&&this._multiple&&n===d.a&&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(Object(_.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_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._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{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!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(x.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(x.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(m.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(x.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(m.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(x.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_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(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(t)}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)(s.Pb(c.e),s.Pb(s.h),s.Pb(s.B),s.Pb(o.d),s.Pb(s.l),s.Pb(S.b,8),s.Pb(E.o,8),s.Pb(E.h,8),s.Pb(a.a,8),s.Pb(E.l,10),s.ac("tabindex"),s.Pb(N),s.Pb(l.k),s.Pb(V,8))},t.\u0275dir=s.Kb({type:t,viewQuery:function(t,e){if(1&t&&(s.Pc(k,!0),s.Pc(O,!0),s.Pc(i.a,!0)),2&t){let t;s.vc(t=s.ec())&&(e.trigger=t.first),s.vc(t=s.ec())&&(e.panel=t.first),s.vc(t=s.ec())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[s.Ab,s.Bb]}),t})(),Y=(()=>{class t extends q{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(x.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(t){const e=Object(o.v)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(o.w)((t+e)*n,n,this.panel.nativeElement.scrollTop,F)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new B(this,t)}_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 s=0-(t.left+r-(n?i:0)),o=t.right+r-e.width+(n?0:i);s>0?r+=s+8:o>0&&(r-=o+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,s=Math.floor(F/i);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-s))*i+(i-(this._getItemCount()*i-F)%i):e-i/2,Math.round(-1*o-r))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,F)-s-this._triggerRect.height;o>r?this._adjustPanelUp(o,r):s>i?this._adjustPanelDown(s,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")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,F),i=e*t-n;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=Object(o.v)(r,this.options,this.optionGroups);const s=n/2;this._scrollTop=this._calculateOverlayScroll(r,s,i),this._offsetY=this._calculateOverlayOffsetY(r,s,i),this._checkOverlayWithinViewport(i)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return Z(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,W,!0),s.Ib(n,o.m,!0),s.Ib(n,o.f,!0)),2&t){let t;s.vc(t=s.ec())&&(e.customTrigger=t.first),s.vc(t=s.ec())&&(e.options=t),s.vc(t=s.ec())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&s.dc("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(s.Eb("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),s.Hb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[s.Cb([{provide:a.d,useExisting:t},{provide:o.g,useExisting:t}]),s.Ab],ngContentSelectors:R,decls:9,vars:12,consts:[["cdk-overlay-origin","",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,"cdkConnectedOverlayPanelClass","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"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(s.nc(P),s.Vb(0,"div",0,1),s.dc("click",function(){return e.toggle()}),s.Vb(3,"div",2),s.Ic(4,A,2,1,"span",3),s.Ic(5,T,3,2,"span",4),s.Ub(),s.Vb(6,"div",5),s.Qb(7,"div",6),s.Ub(),s.Ub(),s.Ic(8,L,4,14,"ng-template",7),s.dc("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=s.wc(1);s.Eb("aria-owns",e.panelOpen?e.id+"-panel":null),s.Db(3),s.oc("ngSwitch",e.empty),s.Eb("id",e._valueId),s.Db(1),s.oc("ngSwitchCase",!0),s.Db(1),s.oc("ngSwitchCase",!1),s.Db(3),s.oc("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,r.q,r.r,i.a,r.s,r.m],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;outline:0}.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:[M.transformPanelWrap,M.transformPanel]},changeDetection:0}),t})();const Z=s.Xb(Y);let X=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[[r.c,i.f,o.n,o.i],c.b,a.e,o.n,o.i]}),t})()},ZUHj:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("7o/Q");class r extends i.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 s=n("SeVD"),o=n("HDdC");function a(t,e,n,i,a=new r(t,n,i)){if(!a.closed)return e instanceof o.a?e.subscribe(a):Object(s.a)(e)(a)}},"aLe/":function(t,e,n){"use strict";n.d(e,"a",function(){return st}),n.d(e,"b",function(){return ht}),n.d(e,"c",function(){return ut});var i=n("XNiG"),r=n("xgIS"),s=(n("VRyK"),n("3UWI")),o=n("1G5W"),a=(n("/uUt"),n("CqXF"),n("8Y7J")),c=n("SVse");function l(t){return getComputedStyle(t)}function h(t,e){for(var n in e){var i=e[n];"number"==typeof i&&(i+="px"),t.style[n]=i}return t}function u(t){var e=document.createElement("div");return e.className=t,e}var d="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function f(t,e){if(!d)throw new Error("No element matching method supported");return d.call(t,e)}function p(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function m(t,e){return Array.prototype.filter.call(t.children,function(t){return f(t,e)})}var b=function(t){return"ps__thumb-"+t},g=function(t){return"ps__rail-"+t},_="ps__child--consume",y="ps--focus",v="ps--clicking",w=function(t){return"ps--active-"+t},x=function(t){return"ps--scrolling-"+t},C={x:null,y:null};function S(t,e){var n=t.element.classList,i=x(e);n.contains(i)?clearTimeout(C[e]):n.add(i)}function E(t,e){C[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(x(e))},t.settings.scrollingThreshold)}var k=function(t){this.element=t,this.handlers={}},O={isEmpty:{configurable:!0}};k.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},k.prototype.unbind=function(t,e){var n=this;this.handlers[t]=this.handlers[t].filter(function(i){return!(!e||i===e)||(n.element.removeEventListener(t,i,!1),!1)})},k.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)},O.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(k.prototype,O);var A=function(){this.eventElements=[]};function D(t){if("function"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent("CustomEvent");return e.initCustomEvent(t,!1,!1,void 0),e}function I(t,e,n,i,r){var s;if(void 0===i&&(i=!0),void 0===r&&(r=!1),"top"===e)s=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==e)throw new Error("A proper axis should be provided");s=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(t,e,n,i,r){var s=n[0],o=n[1],a=n[2],c=n[3],l=n[4],h=n[5];void 0===i&&(i=!0),void 0===r&&(r=!1);var u=t.element;t.reach[c]=null,u[a]<1&&(t.reach[c]="start"),u[a]>t[s]-t[o]-1&&(t.reach[c]="end"),e&&(u.dispatchEvent(D("ps-scroll-"+c)),e<0?u.dispatchEvent(D("ps-scroll-"+l)):e>0&&u.dispatchEvent(D("ps-scroll-"+h)),i&&function(t,e){S(t,e),E(t,e)}(t,c)),t.reach[c]&&(e||r)&&u.dispatchEvent(D("ps-"+c+"-reach-"+t.reach[c]))}(t,n,s,i,r)}function T(t){return parseInt(t,10)||0}A.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new k(t),this.eventElements.push(e)),e},A.prototype.bind=function(t,e,n){this.eventElement(t).bind(e,n)},A.prototype.unbind=function(t,e,n){var i=this.eventElement(t);i.unbind(e,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},A.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},A.prototype.once=function(t,e,n){var i=this.eventElement(t),r=function(t){i.unbind(e,r),n(t)};i.bind(e,r)};var L={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function P(t){var e=t.element,n=Math.floor(e.scrollTop),i=e.getBoundingClientRect();t.containerWidth=Math.ceil(i.width),t.containerHeight=Math.ceil(i.height),t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(m(e,g("x")).forEach(function(t){return p(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(m(e,g("y")).forEach(function(t){return p(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset<t.contentWidth?(t.scrollbarXActive=!0,t.railXWidth=t.containerWidth-t.railXMarginWidth,t.railXRatio=t.containerWidth/t.railXWidth,t.scrollbarXWidth=R(t,T(t.railXWidth*t.containerWidth/t.contentWidth)),t.scrollbarXLeft=T((t.negativeScrollAdjustment+e.scrollLeft)*(t.railXWidth-t.scrollbarXWidth)/(t.contentWidth-t.containerWidth))):t.scrollbarXActive=!1,!t.settings.suppressScrollY&&t.containerHeight+t.settings.scrollYMarginOffset<t.contentHeight?(t.scrollbarYActive=!0,t.railYHeight=t.containerHeight-t.railYMarginHeight,t.railYRatio=t.containerHeight/t.railYHeight,t.scrollbarYHeight=R(t,T(t.railYHeight*t.containerHeight/t.contentHeight)),t.scrollbarYTop=T(n*(t.railYHeight-t.scrollbarYHeight)/(t.contentHeight-t.containerHeight))):t.scrollbarYActive=!1,t.scrollbarXLeft>=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),function(t,e){var n={width:e.railXWidth},i=Math.floor(t.scrollTop);n.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+e.containerWidth-e.contentWidth:t.scrollLeft,e.isScrollbarXUsingBottom?n.bottom=e.scrollbarXBottom-i:n.top=e.scrollbarXTop+i,h(e.scrollbarXRail,n);var r={top:i,height:e.railYHeight};e.isScrollbarYUsingRight?r.right=e.isRtl?e.contentWidth-(e.negativeScrollAdjustment+t.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:e.scrollbarYRight-t.scrollLeft:r.left=e.isRtl?e.negativeScrollAdjustment+t.scrollLeft+2*e.containerWidth-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:e.scrollbarYLeft+t.scrollLeft,h(e.scrollbarYRail,r),h(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),h(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}(e,t),t.scrollbarXActive?e.classList.add(w("x")):(e.classList.remove(w("x")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=!0===t.isRtl?t.contentWidth:0),t.scrollbarYActive?e.classList.add(w("y")):(e.classList.remove(w("y")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)}function R(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function M(t,e){var n=e[0],i=e[1],r=e[2],s=e[3],o=e[4],a=e[5],c=e[6],l=e[7],h=e[8],u=t.element,d=null,f=null,p=null;function m(e){e.touches&&e.touches[0]&&(e[r]=e.touches[0].pageY),u[c]=d+p*(e[r]-f),S(t,l),P(t),e.stopPropagation(),e.preventDefault()}function b(){E(t,l),t[h].classList.remove(v),t.event.unbind(t.ownerDocument,"mousemove",m)}function g(e,o){d=u[c],o&&e.touches&&(e[r]=e.touches[0].pageY),f=e[r],p=(t[i]-t[n])/(t[s]-t[a]),o?t.event.bind(t.ownerDocument,"touchmove",m):(t.event.bind(t.ownerDocument,"mousemove",m),t.event.once(t.ownerDocument,"mouseup",b),e.preventDefault()),t[h].classList.add(v),e.stopPropagation()}t.event.bind(t[o],"mousedown",function(t){g(t)}),t.event.bind(t[o],"touchstart",function(t){g(t,!0)})}var j={"click-rail":function(t){t.event.bind(t.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,"mousedown",function(e){var n=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top;t.element.scrollTop+=(n>t.scrollbarYTop?1:-1)*t.containerHeight,P(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,"mousedown",function(e){var n=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left;t.element.scrollLeft+=(n>t.scrollbarXLeft?1:-1)*t.containerWidth,P(t),e.stopPropagation()})},"drag-thumb":function(t){M(t,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),M(t,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(t){var e=t.element;t.event.bind(t.ownerDocument,"keydown",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(f(e,":hover")||f(t.scrollbarX,":focus")||f(t.scrollbarY,":focus"))){var i,r=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(r){if("IFRAME"===r.tagName)r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(f(i=r,"input,[contenteditable]")||f(i,"select,[contenteditable]")||f(i,"textarea,[contenteditable]")||f(i,"button,[contenteditable]"))return}var s=0,o=0;switch(n.which){case 37:s=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:o=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:s=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:o=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:o=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:o=t.containerHeight;break;case 34:o=-t.containerHeight;break;case 36:o=t.contentHeight;break;case 35:o=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==o||(e.scrollTop-=o,e.scrollLeft+=s,P(t),function(n,i){var r=Math.floor(e.scrollTop);if(0===n){if(!t.scrollbarYActive)return!1;if(0===r&&i>0||r>=t.contentHeight-t.containerHeight&&i<0)return!t.settings.wheelPropagation}var s=e.scrollLeft;if(0===i){if(!t.scrollbarXActive)return!1;if(0===s&&n<0||s>=t.contentWidth-t.containerWidth&&n>0)return!t.settings.wheelPropagation}return!0}(s,o)&&n.preventDefault())}})},wheel:function(t){var e=t.element;function n(n){var i=function(t){var e=t.deltaX,n=-1*t.deltaY;return void 0!==e&&void 0!==n||(e=-1*t.wheelDeltaX/6,n=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,n*=10),e!=e&&n!=n&&(e=0,n=t.wheelDelta),t.shiftKey?[-n,-e]:[e,n]}(n),r=i[0],s=i[1];if(!function(t,n,i){if(!L.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(_))return!0;var s=l(r);if(i&&s.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&i<0||r.scrollTop<o&&i>0))return!0}if(n&&s.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&n<0||r.scrollLeft<a&&n>0))return!0}r=r.parentNode}return!1}(n.target,r,s)){var o=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(s?e.scrollTop-=s*t.settings.wheelSpeed:e.scrollTop+=r*t.settings.wheelSpeed,o=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(r?e.scrollLeft+=r*t.settings.wheelSpeed:e.scrollLeft-=s*t.settings.wheelSpeed,o=!0):(e.scrollTop-=s*t.settings.wheelSpeed,e.scrollLeft+=r*t.settings.wheelSpeed),P(t),(o=o||function(n,i){var r=Math.floor(e.scrollTop),s=0===e.scrollTop,o=r+e.offsetHeight===e.scrollHeight,a=0===e.scrollLeft,c=e.scrollLeft+e.offsetWidth===e.scrollWidth;return!(Math.abs(i)>Math.abs(n)?s||o:a||c)||!t.settings.wheelPropagation}(r,s))&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}void 0!==window.onwheel?t.event.bind(e,"wheel",n):void 0!==window.onmousewheel&&t.event.bind(e,"mousewheel",n)},touch:function(t){if(L.supportsTouch||L.supportsIePointer){var e=t.element,n={},i=0,r={},s=null;L.supportsTouch?(t.event.bind(e,"touchstart",h),t.event.bind(e,"touchmove",u),t.event.bind(e,"touchend",d)):L.supportsIePointer&&(window.PointerEvent?(t.event.bind(e,"pointerdown",h),t.event.bind(e,"pointermove",u),t.event.bind(e,"pointerup",d)):window.MSPointerEvent&&(t.event.bind(e,"MSPointerDown",h),t.event.bind(e,"MSPointerMove",u),t.event.bind(e,"MSPointerUp",d)))}function o(n,i){e.scrollTop-=i,e.scrollLeft-=n,P(t)}function a(t){return t.targetTouches?t.targetTouches[0]:t}function c(t){return!(t.pointerType&&"pen"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||"mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function h(t){if(c(t)){var e=a(t);n.pageX=e.pageX,n.pageY=e.pageY,i=(new Date).getTime(),null!==s&&clearInterval(s)}}function u(s){if(c(s)){var h=a(s),u={pageX:h.pageX,pageY:h.pageY},d=u.pageX-n.pageX,f=u.pageY-n.pageY;if(function(t,n,i){if(!e.contains(t))return!1;for(var r=t;r&&r!==e;){if(r.classList.contains(_))return!0;var s=l(r);if(i&&s.overflowY.match(/(scroll|auto)/)){var o=r.scrollHeight-r.clientHeight;if(o>0&&(r.scrollTop>0&&i<0||r.scrollTop<o&&i>0))return!0}if(n&&s.overflowX.match(/(scroll|auto)/)){var a=r.scrollWidth-r.clientWidth;if(a>0&&(r.scrollLeft>0&&n<0||r.scrollLeft<a&&n>0))return!0}r=r.parentNode}return!1}(s.target,d,f))return;o(d,f),n=u;var p=(new Date).getTime(),m=p-i;m>0&&(r.x=d/m,r.y=f/m,i=p),function(n,i){var r=Math.floor(e.scrollTop),s=e.scrollLeft,o=Math.abs(n),a=Math.abs(i);if(a>o){if(i<0&&r===t.contentHeight-t.containerHeight||i>0&&0===r)return 0===window.scrollY&&i>0&&L.isChrome}else if(o>a&&(n<0&&s===t.contentWidth-t.containerWidth||n>0&&0===s))return!0;return!0}(d,f)&&s.preventDefault()}}function d(){t.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){t.isInitialized?clearInterval(s):r.x||r.y?Math.abs(r.x)<.01&&Math.abs(r.y)<.01?clearInterval(s):(o(30*r.x,30*r.y),r.x*=.8,r.y*=.8):clearInterval(s)},10))}}},F=function(t,e){var n=this;if(void 0===e&&(e={}),"string"==typeof t&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=t,t.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},e)this.settings[i]=e[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var r,s,o=function(){return t.classList.add(y)},a=function(){return t.classList.remove(y)};this.isRtl="rtl"===l(t).direction,!0===this.isRtl&&t.classList.add("ps__rtl"),this.isNegativeScroll=(s=t.scrollLeft,t.scrollLeft=-1,r=t.scrollLeft<0,t.scrollLeft=s,r),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new A,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=u(g("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=u(b("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=l(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=T(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=T(c.borderLeftWidth)+T(c.borderRightWidth),h(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=T(c.marginLeft)+T(c.marginRight),h(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=u(g("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=u(b("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=l(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=T(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var e=l(t);return T(e.width)+T(e.paddingLeft)+T(e.paddingRight)+T(e.borderLeftWidth)+T(e.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=T(d.borderTopWidth)+T(d.borderBottomWidth),h(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=T(d.marginTop)+T(d.marginBottom),h(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return j[t](n)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(t){return n.onScroll(t)}),P(this)};F.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,h(this.scrollbarXRail,{display:"block"}),h(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=T(l(this.scrollbarXRail).marginLeft)+T(l(this.scrollbarXRail).marginRight),this.railYMarginHeight=T(l(this.scrollbarYRail).marginTop)+T(l(this.scrollbarYRail).marginBottom),h(this.scrollbarXRail,{display:"none"}),h(this.scrollbarYRail,{display:"none"}),P(this),I(this,"top",0,!1,!0),I(this,"left",0,!1,!0),h(this.scrollbarXRail,{display:""}),h(this.scrollbarYRail,{display:""}))},F.prototype.onScroll=function(t){this.isAlive&&(P(this),I(this,"top",this.element.scrollTop-this.lastScrollTop),I(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},F.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),p(this.scrollbarX),p(this.scrollbarY),p(this.scrollbarXRail),p(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},F.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};var N=F,V=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,i){return t[0]===e&&(n=i,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),U="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,B="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),z="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(B):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},H=["top","right","bottom","left","width","height","size","weight"],W="undefined"!=typeof MutationObserver,K=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,r=0;function s(){n&&(n=!1,t()),i&&a()}function o(){z(s)}function a(){var t=Date.now();if(n){if(t-r<2)return;i=!0}else n=!0,i=!1,setTimeout(o,20);r=t}return a}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){U&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),W?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){U&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;H.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),q=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},Y=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||B},Z=Q(0,0,0,0);function X(t){return parseFloat(t)||0}function G(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+X(t["border-"+n+"-width"])},0)}var $="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Y(t).SVGGraphicsElement}:function(t){return t instanceof Y(t).SVGElement&&"function"==typeof t.getBBox};function Q(t,e,n,i){return{x:t,y:e,width:n,height:i}}var J=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Q(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t,e=(t=this.target,U?$(t)?function(t){var e=t.getBBox();return Q(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Z;var i=Y(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n];e[r]=X(t["padding-"+r])}return e}(i),s=r.left+r.right,o=r.top+r.bottom,a=X(i.width),c=X(i.height);if("border-box"===i.boxSizing&&(Math.round(a+s)!==e&&(a-=G(i,"left","right")+s),Math.round(c+o)!==n&&(c-=G(i,"top","bottom")+o)),!function(t){return t===Y(t).document.documentElement}(t)){var l=Math.round(a+s)-e,h=Math.round(c+o)-n;1!==Math.abs(l)&&(a-=l),1!==Math.abs(h)&&(c-=h)}return Q(r.left,r.top,a,c)}(t):Z);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),tt=function(t,e){var n,i,r,s,o,a,c,l=(i=(n=e).x,r=n.y,s=n.width,o=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),q(c,{x:i,y:r,width:s,height:o,top:r,right:i+s,bottom:o+r,left:i}),c);q(this,{target:t,contentRect:l})},et=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new V,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Y(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new J(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Y(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new tt(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),nt="undefined"!=typeof WeakMap?new WeakMap:new V,it=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=K.getInstance(),i=new et(e,n,this);nt.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){it.prototype[t]=function(){var e;return(e=nt.get(this))[t].apply(e,arguments)}});var rt=void 0!==B.ResizeObserver?B.ResizeObserver:it;const st=new a.s("PERFECT_SCROLLBAR_CONFIG");class ot{constructor(t,e,n,i){this.x=t,this.y=e,this.w=n,this.h=i}}class at{constructor(t,e){this.x=t,this.y=e}}const ct=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class lt{constructor(t={}){this.assign(t)}assign(t={}){for(const e in t)this[e]=t[e]}}let ht=(()=>{class t{constructor(t,e,n,r,s){this.zone=t,this.differs=e,this.elementRef=n,this.platformId=r,this.defaults=s,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new i.a,this.disabled=!1,this.psScrollY=new a.o,this.psScrollX=new a.o,this.psScrollUp=new a.o,this.psScrollDown=new a.o,this.psScrollLeft=new a.o,this.psScrollRight=new a.o,this.psYReachEnd=new a.o,this.psYReachStart=new a.o,this.psXReachEnd=new a.o,this.psXReachStart=new a.o}ngOnInit(){if(!this.disabled&&Object(c.A)(this.platformId)){const t=new lt(this.defaults);t.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new N(this.elementRef.nativeElement,t)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new rt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ct.forEach(t=>{const e=t.replace(/([A-Z])/g,t=>"-"+t.toLowerCase());Object(r.a)(this.elementRef.nativeElement,e).pipe(Object(s.a)(20),Object(o.a)(this.ngDestroy)).subscribe(e=>{this[t].emit(e)})})})}}ngOnDestroy(){Object(c.A)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&Object(c.A)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(t){t.disabled&&!t.disabled.isFirstChange()&&Object(c.A)(this.platformId)&&t.disabled.currentValue!==t.disabled.previousValue&&(!0===t.disabled.currentValue?this.ngOnDestroy():!1===t.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(t){}},0))}geometry(t="scroll"){return new ot(this.elementRef.nativeElement[t+"Left"],this.elementRef.nativeElement[t+"Top"],this.elementRef.nativeElement[t+"Width"],this.elementRef.nativeElement[t+"Height"])}position(t=!1){return!t&&this.instance?new at(this.instance.reach.x||0,this.instance.reach.y||0):new at(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(t="any"){const e=this.elementRef.nativeElement;return"any"===t?e.classList.contains("ps--active-x")||e.classList.contains("ps--active-y"):"both"===t?e.classList.contains("ps--active-x")&&e.classList.contains("ps--active-y"):e.classList.contains("ps--active-"+t)}scrollTo(t,e,n){this.disabled||(null==e&&null==n?this.animateScrolling("scrollTop",t,n):(null!=t&&this.animateScrolling("scrollLeft",t,n),null!=e&&this.animateScrolling("scrollTop",e,n)))}scrollToX(t,e){this.animateScrolling("scrollLeft",t,e)}scrollToY(t,e){this.animateScrolling("scrollTop",t,e)}scrollToTop(t,e){this.animateScrolling("scrollTop",t||0,e)}scrollToLeft(t,e){this.animateScrolling("scrollLeft",t||0,e)}scrollToRight(t,e){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(t||0),e)}scrollToBottom(t,e){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(t||0),e)}scrollToElement(t,e,n){const i=this.elementRef.nativeElement.querySelector(t);if(i){const t=i.getBoundingClientRect(),r=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",t.left-r.left+this.elementRef.nativeElement.scrollLeft+(e||0),n),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",t.top-r.top+this.elementRef.nativeElement.scrollTop+(e||0),n)}}animateScrolling(t,e,n){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),n&&"undefined"!=typeof window){if(e!==this.elementRef.nativeElement[t]){let i=0,r=0,s=performance.now(),o=this.elementRef.nativeElement[t];const a=(o-e)/2,c=l=>{r+=Math.PI/(n/(l-s)),i=Math.round(e+a+a*Math.cos(r)),this.elementRef.nativeElement[t]===o&&(r>=Math.PI?this.animateScrolling(t,e,0):(this.elementRef.nativeElement[t]=i,o=this.elementRef.nativeElement[t],s=l,this.animation=window.requestAnimationFrame(c)))};window.requestAnimationFrame(c)}}else this.elementRef.nativeElement[t]=e}}return t.\u0275fac=function(e){return new(e||t)(a.Pb(a.B),a.Pb(a.v),a.Pb(a.l),a.Pb(a.D),a.Pb(st,8))},t.\u0275dir=a.Kb({type:t,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[a.Bb]}),t})(),ut=(()=>{class t{}return t.\u0275mod=a.Nb({type:t}),t.\u0275inj=a.Mb({factory:function(e){return new(e||t)},imports:[[c.c],c.c]}),t})()},aZ40:function(t,e,n){var i,r,s=n("Wogr");s.alloc?(i=s.alloc(512),r=s.alloc(256)):(i=new s(512),r=new s(256)),function(){for(var t=1,e=0;e<255;e++)i[e]=t,r[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)i[e]=i[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return r[t]},e.exp=function(t){return i[t]},e.mul=function(t,e){return 0===t||0===e?0:i[r[t]+r[e]]}},afKu:function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n("CH9F"),e.sha1=n("fnjI"),e.sha224=n("cqoG"),e.sha256=n("olUY"),e.sha384=n("uDfV"),e.sha512=n("T9HO")},"aqI/":function(t,e,n){"use strict";var i=n("fZJM"),r=n("dlgc"),s=n("2j6C");function o(t){if(!(this instanceof o))return new o(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=r.toArray(t.entropy,t.entropyEnc||"hex"),n=r.toArray(t.nonce,t.nonceEnc||"hex"),i=r.toArray(t.pers,t.persEnc||"hex");s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}t.exports=o,o.prototype._init=function(t,e,n){var i=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r<this.V.length;r++)this.K[r]=0,this.V[r]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},o.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(t,e,n,i){"string"!=typeof e&&(i=n,n=e,e=null),t=r.toArray(t,e),n=r.toArray(n,i),s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},o.prototype.generate=function(t,e,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(i=n,n=e,e=null),n&&(n=r.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length<t;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var o=s.slice(0,t);return this._update(n),this._reseed++,r.encode(o,e)}},at63:function(t,e,n){var i=n("jIre"),r=n("hwdV").Buffer,s=n("vZ2G");function o(t){var e=t._cipher.encryptBlockRaw(t._prev);return s(t._prev),e}e.encrypt=function(t,e){var n=Math.ceil(e.length/16),s=t._cache.length;t._cache=r.concat([t._cache,r.allocUnsafe(16*n)]);for(var a=0;a<n;a++){var c=o(t),l=s+16*a;t._cache.writeUInt32BE(c[0],l+0),t._cache.writeUInt32BE(c[1],l+4),t._cache.writeUInt32BE(c[2],l+8),t._cache.writeUInt32BE(c[3],l+12)}var h=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,h)}},"b+dc":function(t,e,n){var i=n("Oaki").Buffer,r=n("Giow"),s=n("qVij"),o=n("MzeL").ec,a=n("OZ/i"),c=n("Ku4m"),l=n("zZGF");function h(t,e,n,s){if((t=i.from(t.toArray())).length<e.byteLength()){var o=i.alloc(e.byteLength()-t.length);t=i.concat([o,t])}var a=n.length,c=function(t,e){t=(t=u(t,e)).mod(e);var n=i.from(t.toArray());if(n.length<e.byteLength()){var r=i.alloc(e.byteLength()-n.length);n=i.concat([r,n])}return n}(n,e),l=i.alloc(a);l.fill(1);var h=i.alloc(a);return h=r(s,h).update(l).update(i.from([0])).update(t).update(c).digest(),l=r(s,h).update(l).digest(),{k:h=r(s,h).update(l).update(i.from([1])).update(t).update(c).digest(),v:l=r(s,h).update(l).digest()}}function u(t,e){var n=new a(t),i=(t.length<<3)-e.bitLength();return i>0&&n.ishrn(i),n}function d(t,e,n){var s,o;do{for(s=i.alloc(0);8*s.length<t.bitLength();)e.v=r(n,e.k).update(e.v).digest(),s=i.concat([s,e.v]);o=u(s,t),e.k=r(n,e.k).update(e.v).update(i.from([0])).digest(),e.v=r(n,e.k).update(e.v).digest()}while(-1!==o.cmp(t));return o}function f(t,e,n,i){return t.toRed(a.mont(n)).redPow(e).fromRed().mod(i)}t.exports=function(t,e,n,r,p){var m=c(e);if(m.curve){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");return function(t,e){var n=l[e.curve.join(".")];if(!n)throw new Error("unknown curve "+e.curve.join("."));var r=new o(n).keyFromPrivate(e.privateKey).sign(t);return i.from(r.toDER())}(t,m)}if("dsa"===m.type){if("dsa"!==r)throw new Error("wrong private key type");return function(t,e,n){for(var r,s=e.params.priv_key,o=e.params.p,c=e.params.q,l=e.params.g,p=new a(0),m=u(t,c).mod(c),b=!1,g=h(s,c,t,n);!1===b;)p=f(l,r=d(c,g,n),o,c),0===(b=r.invm(c).imul(m.add(s.mul(p))).mod(c)).cmpn(0)&&(b=!1,p=new a(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t)),128&e[0]&&(e=[0].concat(e));var n=[48,t.length+e.length+4,2,t.length];return n=n.concat(t,[2,e.length],e),i.from(n)}(p,b)}(t,m,n)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong private key type");t=i.concat([p,t]);for(var b=m.modulus.byteLength(),g=[0,1];t.length+g.length+1<b;)g.push(255);g.push(0);for(var _=-1;++_<t.length;)g.push(t[_]);return s(g,m)},t.exports.getKey=h,t.exports.makeKey=d},bCQu:function(t,e,n){!function(e){"use strict";var n={bytesToHex:function(t){return function(t){return t.map(function(t){return(e=t.toString(16)).length>2?e:Array(2-e.length+1).join("0")+e;var e}).join("")}(t)},hexToBytes:function(t){if(t.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===t.indexOf("0x")&&(t=t.slice(2)),t.match(/../g).map(function(t){return parseInt(t,16)})}};t.exports?t.exports=n:e.convertHex=n}(this)},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("5+tZ"),r=n("SpAZ");function s(t=Number.POSITIVE_INFINITY){return Object(i.a)(r.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("5+tZ");function r(t,e){return Object(i.a)(t,e,1)}},bdpe:function(t,e,n){"use strict";n.d(e,"a",function(){return D});var i=n("iELJ"),r=n("wHSu"),s=n("7nzP"),o=n("8Y7J"),a=n("cpEJ"),c=n("7o2P"),l=n("zHaW"),h=n("VDRc"),u=n("SVse"),d=n("ura0"),f=n("bwdU"),p=n("PDjf"),m=n("Nv++"),b=n("Dxy4"),g=n("BSbQ"),_=n("O4ig"),y=n("dEYt");function v(t,e){1&t&&(o.Tb(0),o.Kc(1," (zero amount) "),o.Sb())}function w(t,e){if(1&t&&(o.Tb(0),o.Kc(1),o.ic(2,"number"),o.Sb()),2&t){const t=o.hc();o.Db(1),o.Mc("",o.jc(2,1,t.invoice.amountSettled)," Sats")}}function x(t,e){1&t&&(o.Tb(0),o.Kc(1,"-"),o.Sb())}function C(t,e){if(1&t&&(o.Vb(0,"div"),o.Qb(1,"mat-divider",17),o.Vb(2,"div",12),o.Vb(3,"div",25),o.Vb(4,"h4",14),o.Kc(5,"Date Expiry"),o.Ub(),o.Vb(6,"span",15),o.Kc(7),o.Ub(),o.Ub(),o.Vb(8,"div",26),o.Vb(9,"h4",14),o.Kc(10,"Date Settled"),o.Ub(),o.Vb(11,"span",18),o.Kc(12),o.Ub(),o.Ub(),o.Ub(),o.Qb(13,"mat-divider",17),o.Vb(14,"div",12),o.Vb(15,"div",19),o.Vb(16,"h4",14),o.Kc(17,"Payment Hash"),o.Ub(),o.Vb(18,"span",18),o.Kc(19),o.Ub(),o.Ub(),o.Ub(),o.Qb(20,"mat-divider",17),o.Vb(21,"div",12),o.Vb(22,"div",19),o.Vb(23,"h4",14),o.Kc(24,"Node Id"),o.Ub(),o.Vb(25,"span",18),o.Kc(26),o.Ub(),o.Ub(),o.Ub(),o.Qb(27,"mat-divider",17),o.Ub()),2&t){const t=o.hc();o.Db(7),o.Lc(t.invoice.expiresAtStr),o.Db(5),o.Lc(t.invoice.receivedAtStr),o.Db(7),o.Lc(t.invoice.paymentHash),o.Db(7),o.Lc(t.invoice.nodeId)}}function S(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Show Advanced"),o.Ub())}function E(t,e){1&t&&(o.Vb(0,"p"),o.Kc(1,"Hide Advanced"),o.Ub())}const k=function(t){return{"display-none":t}},O=function(t){return{"xs-scroll-y":t}},A=function(t,e){return{"mt-2":t,"mt-1":e}};let D=(()=>{class t{constructor(t,e,n,i,o){this.dialogRef=t,this.data=e,this.logger=n,this.commonService=i,this.snackBar=o,this.faReceipt=r.D,this.faExclamationTriangle=r.o,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=s.q}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===s.q.XS&&(this.qrWidth=220)}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(t){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+t)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(i.f),o.Pb(i.a),o.Pb(a.b),o.Pb(c.a),o.Pb(l.b))},t.\u0275cmp=o.Jb({type:t,selectors:[["rtl-ecl-invoice-information"]],decls:64,vars:41,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","65",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-1"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],[3,"ngClass"],["fxLayout","column"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap",3,"ngClass"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-stroked-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-flat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["fxFlex","40"],["fxFlex","60"]],template:function(t,e){if(1&t&&(o.Vb(0,"div",0),o.Vb(1,"div",1),o.Qb(2,"qrcode",2),o.Ub(),o.Vb(3,"div",3),o.Vb(4,"mat-card-header",4),o.Vb(5,"div",5),o.Qb(6,"fa-icon",6),o.Vb(7,"span",7),o.Kc(8),o.Ub(),o.Ub(),o.Vb(9,"button",8),o.dc("click",function(){return e.onClose()}),o.Kc(10,"X"),o.Ub(),o.Ub(),o.Vb(11,"mat-card-content",9),o.Vb(12,"div",10),o.Vb(13,"div",11),o.Qb(14,"qrcode",2),o.Ub(),o.Vb(15,"div",12),o.Vb(16,"div",13),o.Vb(17,"h4",14),o.Kc(18,"Amount Requested"),o.Ub(),o.Vb(19,"span",15),o.Kc(20),o.ic(21,"number"),o.Ic(22,v,2,0,"ng-container",16),o.Ub(),o.Ub(),o.Vb(23,"div",13),o.Vb(24,"h4",14),o.Kc(25,"Amount Settled"),o.Ub(),o.Vb(26,"span",15),o.Ic(27,w,3,3,"ng-container",16),o.Ic(28,x,2,0,"ng-container",16),o.Ub(),o.Ub(),o.Ub(),o.Qb(29,"mat-divider",17),o.Vb(30,"div",12),o.Vb(31,"div",13),o.Vb(32,"h4",14),o.Kc(33,"Date Created"),o.Ub(),o.Vb(34,"span",18),o.Kc(35),o.Ub(),o.Ub(),o.Vb(36,"div",13),o.Vb(37,"h4",14),o.Kc(38,"Status"),o.Ub(),o.Vb(39,"span",18),o.Kc(40),o.ic(41,"titlecase"),o.Ub(),o.Ub(),o.Ub(),o.Qb(42,"mat-divider",17),o.Vb(43,"div",12),o.Vb(44,"div",19),o.Vb(45,"h4",14),o.Kc(46,"Description"),o.Ub(),o.Vb(47,"span",15),o.Kc(48),o.Ub(),o.Ub(),o.Ub(),o.Qb(49,"mat-divider",17),o.Vb(50,"div",12),o.Vb(51,"div",19),o.Vb(52,"h4",14),o.Kc(53,"Invoice"),o.Ub(),o.Vb(54,"span",18),o.Kc(55),o.Ub(),o.Ub(),o.Ub(),o.Ic(56,C,28,4,"div",16),o.Vb(57,"div",20),o.Vb(58,"button",21),o.dc("click",function(){return e.onShowAdvanced()}),o.Ic(59,S,2,0,"p",22),o.Ic(60,E,2,0,"ng-template",null,23,o.Jc),o.Ub(),o.Vb(62,"button",24),o.dc("copied",function(t){return e.onCopyPayment(t)}),o.Kc(63,"Copy Invoice"),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub(),o.Ub()),2&t){const t=o.wc(61);o.Db(1),o.oc("ngClass",o.sc(32,k,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.serialized)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(4),o.oc("icon",e.faReceipt),o.Db(2),o.Lc(e.screenSize===e.screenSizeEnum.XS?e.newlyAdded?"Created":"Invoice":e.newlyAdded?"Invoice Created":"Invoice Information"),o.Db(3),o.oc("ngClass",o.sc(34,O,e.screenSize===e.screenSizeEnum.XS)),o.Db(2),o.oc("ngClass",o.sc(36,k,e.screenSize!==e.screenSizeEnum.XS&&e.screenSize!==e.screenSizeEnum.SM)),o.Db(1),o.oc("qrdata",e.invoice.serialized)("margin",2)("width",e.qrWidth)("errorCorrectionLevel","L")("allowEmptyString",!0),o.Db(6),o.Mc("",o.jc(21,28,e.invoice.amount||0)," Sats"),o.Db(2),o.oc("ngIf",!e.invoice.amount),o.Db(5),o.oc("ngIf",e.invoice.amountSettled),o.Db(1),o.oc("ngIf",!e.invoice.amountSettled),o.Db(7),o.Lc(e.invoice.timestampStr),o.Db(5),o.Lc(o.jc(41,30,e.invoice.status)),o.Db(8),o.Lc(e.invoice.description||"-"),o.Db(7),o.Lc(e.invoice.serialized),o.Db(1),o.oc("ngIf",e.showAdvanced),o.Db(1),o.oc("ngClass",o.tc(38,A,!e.showAdvanced,e.showAdvanced)),o.Db(2),o.oc("ngIf",!e.showAdvanced)("ngIfElse",t),o.Db(3),o.oc("payload",e.invoice.serialized)}},directives:[h.c,h.b,h.a,u.m,d.a,f.a,p.c,m.a,b.a,p.b,u.o,g.a,_.a,y.a],pipes:[u.f,u.x],styles:[""]}),t})()},bu2F:function(t,e,n){"use strict";var i=n("w8CP"),r=n("7ckf"),s=n("qlaj"),o=n("2j6C"),a=i.sum32,c=i.sum32_4,l=i.sum32_5,h=s.ch32,u=s.maj32,d=s.s0_256,f=s.s1_256,p=s.g0_256,m=s.g1_256,b=r.BlockHash,g=[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 _(){if(!(this instanceof _))return new _;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits(_,b),t.exports=_,_.blockSize=512,_.outSize=256,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=c(m(n[i-2]),n[i-7],p(n[i-15]),n[i-16]);var r=this.h[0],s=this.h[1],b=this.h[2],g=this.h[3],_=this.h[4],y=this.h[5],v=this.h[6],w=this.h[7];for(o(this.k.length===n.length),i=0;i<n.length;i++){var x=l(w,f(_),h(_,y,v),this.k[i],n[i]),C=a(d(r),u(r,s,b));w=v,v=y,y=_,_=a(g,x),g=b,b=s,s=r,r=a(x,C)}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],b),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],_),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],v),this.h[7]=a(this.h[7],w)},_.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},bwdU:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var i=n("8Y7J"),r=n("0FX9");const s=["qrcElement"];let o=(()=>{class t{constructor(t,e){this.renderer=t,this.platformId=e,this.colordark="",this.colorlight="",this.level="",this.hidetitle=!1,this.size=0,this.usesvg=!1,this.allowEmptyString=!1,this.qrdata="",this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.scale=4,this.width=10,""!==this.colordark&&console.warn("[angularx-qrcode] colordark is deprecated, use colorDark."),""!==this.colorlight&&console.warn("[angularx-qrcode] colorlight is deprecated, use colorLight."),""!==this.level&&console.warn("[angularx-qrcode] level is deprecated, use errorCorrectionLevel."),!1!==this.hidetitle&&console.warn("[angularx-qrcode] hidetitle is deprecated."),0!==this.size&&console.warn("[angularx-qrcode] size is deprecated, use `width`. Defaults to 10."),!1!==this.usesvg&&console.warn("[angularx-qrcode] usesvg is deprecated, use [elementType]=\"'svg'\".")}ngOnChanges(){this.createQRCode()}isValidQrCodeText(t){return!1===this.allowEmptyString?!(void 0===t||""===t||"null"===t||null===t):!(void 0===t)}toDataURL(){return new Promise((t,e)=>{Object(r.toDataURL)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},(n,i)=>{n?e(n):t(i)})})}toCanvas(t){return new Promise((e,n)=>{Object(r.toCanvas)(t,this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,version:this.version,width:this.width},t=>{t?n(t):e("success")})})}toSVG(){return new Promise((t,e)=>{Object(r.toString)(this.qrdata,{color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,type:"svg",version:this.version,width:this.width},(n,i)=>{n?e(n):t(i)})})}renderElement(t){for(const e of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,e);this.renderer.appendChild(this.qrcElement.nativeElement,t)}createQRCode(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error('[angularx-qrcode] Field `qrdata` is empty, set`allowEmptyString="true"` to overwrite this behaviour.');let t;switch(this.elementType){case"canvas":t=this.renderer.createElement("canvas"),this.toCanvas(t).then(()=>{this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] canvas error: ",t)});break;case"svg":t=this.renderer.createElement("svg","svg"),this.toSVG().then(e=>{t.innerHTML=e,this.renderer.setAttribute(t,"height",""+this.width),this.renderer.setAttribute(t,"width",""+this.width),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] svg error: ",t)});break;case"url":case"img":default:t=this.renderer.createElement("img"),this.toDataURL().then(e=>{t.setAttribute("src",e),this.renderElement(t)}).catch(t=>{console.error("[angularx-qrcode] img/url error: ",t)})}}catch(t){console.error("[angularx-qrcode] Error generating QR Code: ",t.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.G),i.Pb(i.D))},t.\u0275cmp=i.Jb({type:t,selectors:[["qrcode"]],viewQuery:function(t,e){if(1&t&&i.Ec(s,!0),2&t){let t;i.vc(t=i.ec())&&(e.qrcElement=t.first)}},inputs:{colordark:"colordark",colorlight:"colorlight",level:"level",hidetitle:"hidetitle",size:"size",usesvg:"usesvg",allowEmptyString:"allowEmptyString",qrdata:"qrdata",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",margin:"margin",scale:"scale",width:"width",version:"version"},features:[i.Bb],decls:2,vars:2,consts:[["qrcElement",""]],template:function(t,e){1&t&&i.Qb(0,"div",null,0),2&t&&i.Fb(e.cssClass)},encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[]}),t})()},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})},cO3p:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("Kz+i");Object.keys(i).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})})},cUpR:function(t,e,n){"use strict";n.d(e,"a",function(){return H}),n.d(e,"b",function(){return F}),n.d(e,"c",function(){return T}),n.d(e,"d",function(){return B}),n.d(e,"e",function(){return w});var i=n("SVse"),r=n("8Y7J");class s extends i.C{constructor(){super()}supportsDOMEvents(){return!0}}class o extends s{static makeCurrent(){Object(i.G)(new o)}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=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=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(i.F)(document.cookie,t)}}let a,c=null;const l=new r.s("TRANSITION_ID"),h=[{provide:r.d,useFactory:function(t,e,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(i.E)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,i.d,r.t],multi:!0}];class u{static init(){Object(r.bb)(new u)}addToWindow(t){r.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},r.sb.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.sb.getAllAngularRootElements=()=>t.getAllRootElements(),r.sb.frameworkStabilizers||(r.sb.frameworkStabilizers=[]),r.sb.frameworkStabilizers.push(t=>{const e=r.sb.getAllAngularTestabilities();let n=e.length,i=!1;const s=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(s)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?Object(i.E)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new r.s("EventManagerPlugins");let f=(()=>{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)(r.Zb(d),r.Zb(r.B))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();class p{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=Object(i.E)().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}let m=(()=>{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=r.Lb({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends m{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(i.E)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const g={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/"},_=/%COMP%/g;function y(t,e,n){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?y(t,r,n):(r=r.replace(_,t),n.push(r))}return n}function v(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new x(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.T.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.T.ShadowDom:return new S(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(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)(r.Zb(f),r.Zb(b),r.Zb(r.c))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();class x{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(g[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=g[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=g[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,i){i&(r.I.DashCase|r.I.Important)?t.style.setProperty(e,n,i&r.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.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,v(n)):this.eventManager.addEventListener(t,e,v(n))}}class C extends x{constructor(t,e,n,i){super(t),this.component=n;const r=y(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(_,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(_,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 S extends x{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=y(i.id,i.styles,[]);for(let s=0;s<r.length;s++){const t=document.createElement("style");t.textContent=r[s],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 E=(()=>{class t extends p{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)(r.Zb(i.d))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const k={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},O=new r.s("HammerGestureConfig"),A=new r.s("HammerLoader");let D=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const I=[{provide:d,useClass:(()=>{class t extends p{constructor(t,e,n,i){super(t),this._config=e,this.console=n,this.loader=i}supports(t){return!(!k.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${t}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),1))}addEventListener(t,e,n){const i=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){let i=!1,r=()=>{i=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(r=()=>{});i||(r=this.addEventListener(t,e,n))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom Hammer.JS loader failed.`),r=()=>{}}),()=>{r()}}return i.runOutsideAngular(()=>{const r=this._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return r.on(e,s),()=>{r.off(e,s),"function"==typeof r.destroy&&r.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d),r.Zb(O),r.Zb(r.cb),r.Zb(A,8))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),multi:!0,deps:[i.d,O,r.cb,[new r.C,A]]},{provide:O,useClass:D,deps:[]}];let T=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:I}),t})();const L=["alt","control","meta","shift"],P={"\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"},R={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"},M={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let j=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const s=t.parseEventName(n),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.E)().onAndCancel(e,s.domEventName,o))}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 s="";if(L.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),s+=t+".")}),s+=r,0!=n.length||0===r.length)return null;const o={};return o.domEventName=i,o.fullKey=s,o}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&&R.hasOwnProperty(e)&&(e=R[e]))}return P[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),L.forEach(i=>{i!=n&&(0,M[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)(r.Zb(i.d))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Lb)({factory:function(){return Object(r.Zb)(V)},token:t,providedIn:"root"}),t})();function N(t){return new V(t.get(i.d))}let V=(()=>{class t extends F{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.K.NONE:return e;case r.K.HTML:return Object(r.hb)(e,"HTML")?Object(r.zb)(e):Object(r.fb)(this._doc,String(e));case r.K.STYLE:return Object(r.hb)(e,"Style")?Object(r.zb)(e):e;case r.K.SCRIPT:if(Object(r.hb)(e,"Script"))return Object(r.zb)(e);throw new Error("unsafe value used in a script context");case r.K.URL:return Object(r.rb)(e),Object(r.hb)(e,"URL")?Object(r.zb)(e):Object(r.gb)(String(e));case r.K.RESOURCE_URL:if(Object(r.hb)(e,"ResourceURL"))return Object(r.zb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(r.ib)(t)}bypassSecurityTrustStyle(t){return Object(r.lb)(t)}bypassSecurityTrustScript(t){return Object(r.kb)(t)}bypassSecurityTrustUrl(t){return Object(r.mb)(t)}bypassSecurityTrustResourceUrl(t){return Object(r.jb)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(i.d))},t.\u0275prov=Object(r.Lb)({factory:function(){return N(Object(r.Zb)(r.p))},token:t,providedIn:"root"}),t})();const U=[{provide:r.D,useValue:i.D},{provide:r.E,useValue:function(){o.makeCurrent(),u.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(r.xb)(document),document},deps:[]}],B=Object(r.U)(r.ab,"browser",U),z=[[],{provide:r.db,useValue:"root"},{provide:r.n,useFactory:function(){return new r.n},deps:[]},{provide:d,useClass:E,multi:!0,deps:[i.d,r.B,r.D]},{provide:d,useClass:j,multi:!0,deps:[i.d]},[],{provide:w,useClass:w,deps:[f,b,r.c]},{provide:r.H,useExisting:w},{provide:m,useExisting:b},{provide:b,useClass:b,deps:[i.d]},{provide:r.P,useClass:r.P,deps:[r.B]},{provide:f,useClass:f,deps:[d,r.B]},[]];let H=(()=>{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:r.c,useValue:e.appId},{provide:l,useExisting:r.c},h]}}}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)(r.Zb(t,12))},providers:z,imports:[i.c,r.f]}),t})();"undefined"!=typeof window&&window},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("HDdC"),r=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function c(...t){if(1===t.length){const e=t[0];if(Object(r.a)(e))return l(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(r.a)(t[0])?t[0]:t,null).pipe(Object(s.a)(t=>e(...t)))}return l(t,null)}function l(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let s=0,o=0;for(let c=0;c<i;c++){const l=Object(a.a)(t[c]);let h=!1;n.add(l.subscribe({next:t=>{h||(h=!0,o++),r[c]=t},error:t=>n.error(t),complete:()=>{s++,s!==i&&h||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},cpEJ:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return c});var i=n("AytR"),r=n("8Y7J");let s=i.b.isDebugMode;const o=()=>{};let a=(()=>{class t{invokeConsoleMethod(t,e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),c=(()=>{class t{get info(){return s?console.log.bind(console):o}get warn(){return s?console.warn.bind(console):o}get error(){return s?console.error.bind(console):o}invokeConsoleMethod(t,e){(console[t]||console.log||o).apply(console,[e])}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})()},cqoG:function(t,e,n){var i=n("P7XM"),r=n("olUY"),s=n("tnIz"),o=n("hwdV").Buffer,a=new Array(64);function c(){this.init(),this._w=a,s.call(this,64,56)}i(c,r),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var t=o.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=c},dEYt:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("8Y7J");let r=(()=>{class t{constructor(){this.copied=new i.o}onClick(t){if(t.preventDefault(),!this.payload)return;const e=t=>{(t.clipboardData||window.clipboardData).setData("text",this.payload.toString()),t.preventDefault(),this.copied.emit(this.payload)};document.addEventListener("copy",e,!1),document.execCommand("copy"),document.removeEventListener("copy",e,!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["","rtlClipboard",""]],hostBindings:function(t,e){1&t&&i.dc("click",function(t){return e.onClick(t)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),t})()},dcwN:function(t,e,n){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=n("hwdV"),s=n("Edxu"),o=r.Buffer,a=r.kMaxLength,c=global.crypto||global.msCrypto,l=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>l||t<0)throw new TypeError("offset must be a uint32");if(t>a||t>e)throw new RangeError("offset out of range")}function u(t,e,n){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>l||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>a)throw new RangeError("buffer too small")}function d(t,e,n,i){if(process.browser){var r=new Uint8Array(t.buffer,e,n);return c.getRandomValues(r),i?void process.nextTick(function(){i(null,t)}):t}if(!i)return s(n).copy(t,e),t;s(n,function(n,r){if(n)return i(n);r.copy(t,e),i(null,t)})}c&&c.getRandomValues||!process.browser?(e.randomFill=function(t,e,n,i){if(!(o.isBuffer(t)||t instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof e)i=e,e=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-e;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return h(e,t.length),u(n,e,t.length),d(t,e,n,i)},e.randomFillSync=function(t,e,n){if(void 0===e&&(e=0),!(o.isBuffer(t)||t instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(e,t.length),void 0===n&&(n=t.length-e),u(n,e,t.length),d(t,e,n)}):(e.randomFill=i,e.randomFillSync=i)},dlgc:function(t,e,n){"use strict";var i=e;function r(t){return 1===t.length?"0"+t:t}function s(t){for(var e="",n=0;n<t.length;n++)e+=r(t[n].toString(16));return e}i.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!=typeof t){for(var i=0;i<t.length;i++)n[i]=0|t[i];return n}if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16));else for(i=0;i<t.length;i++){var r=t.charCodeAt(i),s=r>>8,o=255&r;s?n.push(s,o):n.push(o)}return n},i.zero2=r,i.toHex=s,i.encode=function(t,e){return"hex"===e?s(t):t}},"e/Dd":function(t,e){var n,i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return i[t]},e.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');n=t},e.isKanjiModeEnabled=function(){return void 0!==n},e.toSJIS=function(t){return n(t)}},e6BP:function(t,e){function n(){this.buffer=[],this.length=0}n.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=n},e6WT:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return k}),n.d(e,"c",function(){return O}),n.d(e,"d",function(){return y});var i=n("SCoL"),r=n("8Y7J"),s=n("8LU1"),o=n("EY2u"),a=n("XNiG"),c=n("xgIS"),l=n("3UWI"),h=n("1G5W"),u=n("SVse");const d=Object(i.f)({passive:!0});let f=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.a;const e=Object(s.e)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.a,r="cdk-text-field-autofilled",c=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",c,d),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",c,d)}}),i}stopMonitoring(t){const e=Object(s.e)(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)(r.Zb(i.a),r.Zb(r.B))},t.\u0275prov=Object(r.Lb)({factory:function(){return new t(Object(r.Zb)(i.a),Object(r.Zb)(r.B))},token:t,providedIn:"root"}),t})(),p=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new a.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=Object(s.f)(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=Object(s.f)(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){t=Object(s.c)(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(()=>{const t=this._getWindow();Object(c.a)(t,"resize").pipe(Object(l.a)(16),Object(h.a)(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)(r.Pb(r.l),r.Pb(i.a),r.Pb(r.B),r.Pb(u.d,8))},t.\u0275dir=r.Kb({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&r.dc("input",function(){return e._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t})(),m=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})();var b=n("UhP/"),g=n("Q2Ze"),_=n("s7LF");let y=(()=>{class t extends p{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 v(e||t)},t.\u0275dir=r.Kb({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:[r.Ab]}),t})();const v=r.Xb(y),w=new r.s("MAT_INPUT_VALUE_ACCESSOR"),x=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let C=0;class S{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const E=Object(b.A)(S);let k=(()=>{class t extends E{constructor(t,e,n,r,s,o,c,l,h,u){super(o,r,s,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+C++,this.focused=!1,this.stateChanges=new a.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=>Object(i.e)().has(t));const d=this._elementRef.nativeElement,f=d.nodeName.toLowerCase();this._inputValueAccessor=c||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&h.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"===f,this._isTextarea="textarea"===f,this._isNativeSelect&&(this.controlType=d.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=Object(s.c)(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=Object(s.c)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Object(i.e)().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=Object(s.c)(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(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){x.indexOf(this._type)}_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){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(i.a),r.Pb(_.l,10),r.Pb(_.o,8),r.Pb(_.h,8),r.Pb(b.d),r.Pb(w,10),r.Pb(f),r.Pb(r.B),r.Pb(g.a,8))},t.\u0275dir=r.Kb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&r.dc("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(r.Yb("disabled",e.disabled)("required",e.required),r.Eb("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),r.Hb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[r.Cb([{provide:g.d,useExisting:t}]),r.Ab,r.Bb]}),t})(),O=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},providers:[b.d],imports:[[m,g.e,b.i],m,g.e]}),t})()},"eA/Y":function(t,e,n){"use strict";t.exports=s;var i=n("J78i"),r=Object.create(n("Onz0"));function s(t){if(!(this instanceof s))return new s(t);i.call(this,t)}r.inherits=n("P7XM"),r.inherits(s,i),s.prototype._transform=function(t,e,n){n(null,t)}},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),s=n("zx2A");function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,s)=>Object(r.a)(t(n,s)).pipe(Object(i.a)((t,i)=>e(n,t,s,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 s.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 s.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(s.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)}}},eQOe:function(t,e){function n(t,n,i){switch(t){case e.Patterns.PATTERN000:return(n+i)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return i%3==0;case e.Patterns.PATTERN011:return(n+i)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(i/3))%2==0;case e.Patterns.PATTERN101:return n*i%2+n*i%3==0;case e.Patterns.PATTERN110:return(n*i%2+n*i%3)%2==0;case e.Patterns.PATTERN111:return(n*i%3+(n+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,n=0,i=0,r=0,s=null,o=null,a=0;a<e;a++){i=r=0,s=o=null;for(var c=0;c<e;c++){var l=t.get(a,c);l===s?i++:(i>=5&&(n+=i-5+3),s=l,i=1),(l=t.get(c,a))===o?r++:(r>=5&&(n+=r-5+3),o=l,r=1)}i>=5&&(n+=i-5+3),r>=5&&(n+=r-5+3)}return n},e.getPenaltyN2=function(t){for(var e=t.size,n=0,i=0;i<e-1;i++)for(var r=0;r<e-1;r++){var s=t.get(i,r)+t.get(i,r+1)+t.get(i+1,r)+t.get(i+1,r+1);4!==s&&0!==s||n++}return 3*n},e.getPenaltyN3=function(t){for(var e=t.size,n=0,i=0,r=0,s=0;s<e;s++){i=r=0;for(var o=0;o<e;o++)i=i<<1&2047|t.get(s,o),o>=10&&(1488===i||93===i)&&n++,r=r<<1&2047|t.get(o,s),o>=10&&(1488===r||93===r)&&n++}return 40*n},e.getPenaltyN4=function(t){for(var e=0,n=t.data.length,i=0;i<n;i++)e+=t.data[i];return 10*Math.abs(Math.ceil(100*e/n/5)-10)},e.applyMask=function(t,e){for(var i=e.size,r=0;r<i;r++)for(var s=0;s<i;s++)e.isReserved(s,r)||e.xor(s,r,n(t,s,r))},e.getBestMask=function(t,n){for(var i=Object.keys(e.Patterns).length,r=0,s=1/0,o=0;o<i;o++){n(o),e.applyMask(o,t);var a=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),a<s&&(s=a,r=o)}return r}},ehAg:function(t,e,n){var i=n("AQYT"),r=n("/ayr");function s(t){this.rand=t||new r.Rand}t.exports=s,s.create=function(t){return new s(t)},s.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var r=new i(this.rand.generate(n))}while(r.cmp(t)>=0);return r},s.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},s.prototype.test=function(t,e,n){var r=t.bitLength(),s=i.mont(t),o=new i(1).toRed(s);e||(e=Math.max(1,r/48|0));for(var a=t.subn(1),c=0;!a.testn(c);c++);for(var l=t.shrn(c),h=a.toRed(s);e>0;e--){var u=this._randrange(new i(2),a);n&&n(u);var d=u.toRed(s).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(h)){for(var f=1;f<c;f++){if(0===(d=d.redSqr()).cmp(o))return!1;if(0===d.cmp(h))break}if(f===c)return!1}}return!0},s.prototype.getDivisor=function(t,e){var n=t.bitLength(),r=i.mont(t),s=new i(1).toRed(r);e||(e=Math.max(1,n/48|0));for(var o=t.subn(1),a=0;!o.testn(a);a++);for(var c=t.shrn(a),l=o.toRed(r);e>0;e--){var h=this._randrange(new i(2),o),u=t.gcd(h);if(0!==u.cmpn(1))return u;var d=h.toRed(r).redPow(c);if(0!==d.cmp(s)&&0!==d.cmp(l)){for(var f=1;f<a;f++){if(0===(d=d.redSqr()).cmp(s))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(l))break}if(f===a)return(d=d.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},ekOh:function(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(i){return n}}},f3pb:function(t,e,n){"use strict";const i=e;i.bignum=n("AQYT"),i.define=n("7zrB").define,i.base=n("Qd/k"),i.constants=n("AhHn"),i.decoders=n("IPZY"),i.encoders=n("ND7S")},fSpj:function(t,e){var n=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>n||e!=e)throw new TypeError("Bad key length")}},fXKp:function(t,e,n){"use strict";var i=n("hwdV").Buffer,r=i.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(i.isEncoding===r||!r(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=h,this.end=u,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(e)}function o(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):e}function h(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function u(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},s.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd":e},s.prototype.text=function(t,e){var n=function(t,e,n){var i=e.length-1;if(i<n)return 0;var r=o(e[i]);return r>=0?(r>0&&(t.lastNeed=r-1),r):--i<n||-2===r?0:(r=o(e[i]))>=0?(r>0&&(t.lastNeed=r-2),r):--i<n||-2===r?0:(r=o(e[i]))>=0?(r>0&&(2===r?r=0:t.lastNeed=r-3),r):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},fZJM:function(t,e,n){var i=e;i.utils=n("w8CP"),i.common=n("7ckf"),i.sha=n("WRkp"),i.ripemd=n("u0Sq"),i.hmac=n("ITfd"),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},fkiA:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r=(i=n("rE9v"))&&"object"==typeof i&&"default"in i?i.default:i;e.keyDecoder=(t,e)=>r.decode(t).toString(e),e.keyEncoder=(t,e)=>r.encode(Buffer.from(t,e).toString("ascii")).toString().replace(/=/g,"")},fnjI:function(t,e,n){var i=n("P7XM"),r=n("tnIz"),s=n("hwdV").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,r.call(this,64,56)}function l(t){return t<<5|t>>>27}function h(t){return t<<30|t>>>2}function u(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,r),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=t.readInt32BE(4*d);for(;d<80;++d)n[d]=(e=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|e>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=l(i)+u(p,r,s,a)+c+n[f]+o[p]|0;c=a,a=s,s=h(r),r=i,i=m}this._a=i+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=s.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},g2Dh:function(t,e,n){"use strict";const i=n("0cit").Reporter,r=n("YoN+").EncoderBuffer,s=n("YoN+").DecoderBuffer,o=n("2j6C"),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function l(t,e,n){const i={};this._baseState=i,i.name=n,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=l;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const t=this._baseState,e={};h.forEach(function(n){e[n]=t[n]});const n=new this.constructor(e.parent);return n._baseState=e,n},l.prototype._wrap=function(){const t=this._baseState;c.forEach(function(e){this[e]=function(){const n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}},this)},l.prototype._init=function(t){const e=this._baseState;o(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),o.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){const e=this._baseState,n=t.filter(function(t){return t instanceof this.constructor},this);t=t.filter(function(t){return!(t instanceof this.constructor)},this),0!==n.length&&(o(null===e.children),e.children=n,n.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(o(null===e.args),e.args=t,e.reverseArgs=t.map(function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach(function(n){n==(0|n)&&(n|=0),e[t[n]]=n}),e}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){l.prototype[t]=function(){throw new Error(t+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(t){l.prototype[t]=function(){const e=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===e.tag),e.tag=t,this._useArgs(n),this}}),l.prototype.use=function(t){o(t);const e=this._baseState;return o(null===e.use),e.use=t,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(t){const e=this._baseState;return o(null===e.default),e.default=t,e.optional=!0,this},l.prototype.explicit=function(t){const e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){const e=this._baseState;return o(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},l.prototype.key=function(t){const e=this._baseState;return o(null===e.key),e.key=t,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(t){const e=this._baseState;return o(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},l.prototype.contains=function(t){const e=this._baseState;return o(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){const n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));let i,r=n.default,o=!0,a=null;if(null!==n.key&&(a=t.enterKey(n.key)),n.optional){let i=null;if(null!==n.explicit?i=n.explicit:null!==n.implicit?i=n.implicit:null!==n.tag&&(i=n.tag),null!==i||n.any){if(o=this._peekTag(t,i,n.any),t.isError(o))return o}else{const i=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),o=!0}catch(c){o=!1}t.restore(i)}}if(n.obj&&o&&(i=t.enterObject()),o){if(null!==n.explicit){const e=this._decodeTag(t,n.explicit);if(t.isError(e))return e;t=e}const i=t.offset;if(null===n.use&&null===n.choice){let e;n.any&&(e=t.save());const i=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(i))return i;n.any?r=t.raw(e):t=i}if(e&&e.track&&null!==n.tag&&e.track(t.path(),i,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(r=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(r))return r;if(n.any||null!==n.choice||null===n.children||n.children.forEach(function(n){n._decode(t,e)}),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const i=new s(r);r=this._getUse(n.contains,t._reporterState.obj)._decode(i,e)}}return n.obj&&o&&(r=t.leaveObject(i)),null===n.key||null===r&&!0!==o?null!==a&&t.exitKey(a):t.leaveKey(a,n.key,r),r},l.prototype._decodeGeneric=function(t,e,n){const i=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,i.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&i.args?this._decodeObjid(e,i.args[0],i.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,i.args&&i.args[0],n):null!==i.use?this._getUse(i.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){const n=this._baseState;return n.useDecoder=this._use(t,e),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(t,e){const n=this._baseState;let i=null,r=!1;return Object.keys(n.choice).some(function(s){const o=t.save(),a=n.choice[s];try{const n=a._decode(t,e);if(t.isError(n))return!1;i={type:s,value:n},r=!0}catch(c){return t.restore(o),!1}return!0},this),r?i:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},l.prototype._encode=function(t,e,n){const i=this._baseState;if(null!==i.default&&i.default===t)return;const r=this._encodeValue(t,e,n);return void 0===r||this._skipDefault(r,e,n)?void 0:r},l.prototype._encodeValue=function(t,e,n){const r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new i);let s=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}let o=null,a=!1;if(r.any)s=this._createEncoderBuffer(t);else if(r.choice)s=this._encodeChoice(t,e);else if(r.contains)o=this._getUse(r.contains,n)._encode(t,e),a=!0;else if(r.children)o=r.children.map(function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");const i=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const r=n._encode(t[n._baseState.key],e,t);return e.leaveKey(i),r},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(t.map(function(n){return this._getUse(this._baseState.args[0],t)._encode(n,e)},n))}else null!==r.use?s=this._getUse(r.use,n)._encode(t,e):(o=this._encodePrimitive(r.tag,t),a=!0);if(!r.any&&null===r.choice){const t=null!==r.implicit?r.implicit:r.tag,n=null===r.implicit?"universal":"context";null===t?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(s=this._encodeComposite(t,a,n,o))}return null!==r.explicit&&(s=this._encodeComposite(r.explicit,!1,"context",s)),s},l.prototype._encodeChoice=function(t,e){const n=this._baseState,i=n.choice[t.type];return i||o(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){const n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},l.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},l.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},g9U9:function(t,e){t.exports=function(t,e){for(var n=t.length,i=-1;++i<n;)t[i]^=e[i];return t}},g9mE:function(t,e,n){"use strict";function i(t){return Object.keys(t).map(e=>t[e])}var r;Object.defineProperty(e,"__esModule",{value:!0}),(r=e.HashAlgorithms||(e.HashAlgorithms={})).SHA1="sha1",r.SHA256="sha256",r.SHA512="sha512";const s=i(e.HashAlgorithms);var o;(o=e.KeyEncodings||(e.KeyEncodings={})).ASCII="ascii",o.BASE64="base64",o.HEX="hex",o.LATIN1="latin1",o.UTF8="utf8";const a=i(e.KeyEncodings);var c;(c=e.Strategy||(e.Strategy={})).HOTP="hotp",c.TOTP="totp";const l=i(e.Strategy),h=()=>{throw new Error("Please provide an options.createDigest implementation.")};function u(t){return/^(\d+)$/.test(t)}function d(t,e,n){return t.length>=e?t:`${Array(e+1).join(n)}${t}`.slice(-1*e)}function f(t){const e=`otpauth://${t.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,n=[];if(l.indexOf(t.type)<0)throw new Error(`Expecting options.type to be one of ${l.join(", ")}. Received ${t.type}.`);if("hotp"===t.type){if(null==t.counter||"number"!=typeof t.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');n.push("&counter="+t.counter)}return"totp"===t.type&&t.step&&n.push("&period="+t.step),t.digits&&n.push("&digits="+t.digits),t.algorithm&&n.push("&algorithm="+t.algorithm.toUpperCase()),t.issuer&&n.push("&issuer="+encodeURIComponent(t.issuer)),e.replace("{labelPrefix}",encodeURIComponent(t.issuer||t.accountName)).replace("{accountName}",encodeURIComponent(t.accountName)).replace("{secret}",t.secret).replace("{query}",n.join(""))}class p{constructor(t={}){this._defaultOptions=Object.freeze({...t}),this._options=Object.freeze({})}create(t={}){return new p(t)}clone(t={}){const e=this.create({...this._defaultOptions,...t});return e.options=this._options,e}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(t){this._options=Object.freeze({...this._options,...t})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function m(t){if("function"!=typeof t.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof t.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof t.digits)throw new Error("Expecting options.digits to be a number.");if(!t.algorithm||s.indexOf(t.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${s.join(", ")}. Received ${t.algorithm}.`);if(!t.encoding||a.indexOf(t.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${a.join(", ")}. Received ${t.encoding}.`)}const b=(t,e,n)=>Buffer.from(e,n).toString("hex");function g(){return{algorithm:e.HashAlgorithms.SHA1,createHmacKey:b,createDigest:h,digits:6,encoding:e.KeyEncodings.ASCII}}function _(t){const e={...g(),...t};return m(e),Object.freeze(e)}function y(t){return d(t.toString(16),16,"0")}function v(t,e){const n=Buffer.from(t,"hex"),i=15&n[n.length-1],r=((127&n[i])<<24|(255&n[i+1])<<16|(255&n[i+2])<<8|255&n[i+3])%Math.pow(10,e);return d(String(r),e,"0")}function w(t,e,n){return v(n.digest||function(t,e,n){const i=y(e),r=n.createHmacKey(n.algorithm,t,n.encoding);return n.createDigest(n.algorithm,r,i)}(t,e,n),n.digits)}function x(t,e,n,i){return!!u(t)&&t===w(e,n,i)}function C(t,n,i,r,s){return f({algorithm:s.algorithm,digits:s.digits,type:e.Strategy.HOTP,accountName:t,counter:r,issuer:n,secret:i})}class S extends p{create(t={}){return new S(t)}allOptions(){return _(this.options)}generate(t,e){return w(t,e,this.allOptions())}check(t,e,n){return x(t,e,n,this.allOptions())}verify(t){if("object"!=typeof t)throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret,t.counter)}keyuri(t,e,n,i){return C(t,e,n,i,this.allOptions())}}function E(t){if("number"==typeof t)return[Math.abs(t),Math.abs(t)];if(Array.isArray(t)){const[e,n]=t;if("number"==typeof e&&"number"==typeof n)return[Math.abs(e),Math.abs(n)]}throw new Error("Expecting options.window to be an number or [number, number].")}function k(t){if(m(t),E(t.window),"number"!=typeof t.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof t.step)throw new Error("Expecting options.step to be a number.")}const O=(t,e,n)=>{const i=t.length,r=Buffer.from(t,e).toString("hex");if(i<n){const t=new Array(n-i+1).join(r);return Buffer.from(t,"hex").slice(0,n).toString("hex")}return r},A=(t,n,i)=>{switch(t){case e.HashAlgorithms.SHA1:return O(n,i,20);case e.HashAlgorithms.SHA256:return O(n,i,32);case e.HashAlgorithms.SHA512:return O(n,i,64);default:throw new Error(`Expecting algorithm to be one of ${s.join(", ")}. Received ${t}.`)}};function D(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:h,createHmacKey:A,digits:6,encoding:e.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function I(t){const e={...D(),...t};return k(e),Object.freeze(e)}function T(t,e){return Math.floor(t/e/1e3)}function L(t,e){return w(t,T(e.epoch,e.step),e)}function P(t,e,n,i){const r=[];if(0===i)return r;for(let s=1;s<=i;s++)r.push(t+e*s*n);return r}function R(t,e,n){const i=E(n),r=1e3*e;return{current:t,past:P(t,-1,r,i[0]),future:P(t,1,r,i[1])}}function M(t,e,n){return!!u(t)&&t===L(e,n)}function j(t,e,n,i){let r=null;return t.some((t,s)=>!!M(e,n,{...i,epoch:t})&&(r=s+1,!0)),r}function F(t,e,n){if(M(t,e,n))return 0;const i=R(n.epoch,n.step,n.window),r=j(i.past,t,e,n);return null!==r?-1*r:j(i.future,t,e,n)}function N(t,e){return Math.floor(t/1e3)%e}function V(t,e){return e-N(t,e)}function U(t,n,i,r){return f({algorithm:r.algorithm,digits:r.digits,step:r.step,type:e.Strategy.TOTP,accountName:t,issuer:n,secret:i})}class B extends S{create(t={}){return new B(t)}allOptions(){return I(this.options)}generate(t){return L(t,this.allOptions())}checkDelta(t,e){return F(t,e,this.allOptions())}check(t,e){return"number"==typeof this.checkDelta(t,e)}verify(t){if("object"!=typeof t)throw new Error("Expecting argument 0 of verify to be an object");return this.check(t.token,t.secret)}timeRemaining(){const t=this.allOptions();return V(t.epoch,t.step)}timeUsed(){const t=this.allOptions();return N(t.epoch,t.step)}keyuri(t,e,n){return U(t,e,n,this.allOptions())}}function z(t){if(k(t),"function"!=typeof t.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(t.keyEncoder&&"function"!=typeof t.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function H(){return{algorithm:e.HashAlgorithms.SHA1,createDigest:h,createHmacKey:A,digits:6,encoding:e.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function W(t){const e={...H(),...t};return z(e),Object.freeze(e)}function K(t,e){return e.keyEncoder(t,e.encoding)}function q(t,e){return e.keyDecoder(t,e.encoding)}function Y(t,e){return K(e.createRandomBytes(t,e.encoding),e)}function Z(t,e){return L(q(t,e),e)}function X(t,e,n){return F(t,q(e,n),n)}class G extends B{create(t={}){return new G(t)}allOptions(){return W(this.options)}generate(t){return Z(t,this.allOptions())}checkDelta(t,e){return X(t,e,this.allOptions())}encode(t){return K(t,this.allOptions())}decode(t){return q(t,this.allOptions())}generateSecret(t=10){return Y(t,this.allOptions())}}e.Authenticator=G,e.HASH_ALGORITHMS=s,e.HOTP=S,e.KEY_ENCODINGS=a,e.OTP=p,e.STRATEGY=l,e.TOTP=B,e.authenticatorCheckWithWindow=X,e.authenticatorDecoder=q,e.authenticatorDefaultOptions=H,e.authenticatorEncoder=K,e.authenticatorGenerateSecret=Y,e.authenticatorOptionValidator=z,e.authenticatorOptions=W,e.authenticatorToken=Z,e.createDigestPlaceholder=h,e.hotpCheck=x,e.hotpCounter=y,e.hotpCreateHmacKey=b,e.hotpDefaultOptions=g,e.hotpDigestToToken=v,e.hotpKeyuri=C,e.hotpOptions=_,e.hotpOptionsValidator=m,e.hotpToken=w,e.isTokenValid=u,e.keyuri=f,e.objectValues=i,e.padStart=d,e.totpCheck=M,e.totpCheckByEpoch=j,e.totpCheckWithWindow=F,e.totpCounter=T,e.totpCreateHmacKey=A,e.totpDefaultOptions=D,e.totpEpochAvailable=R,e.totpKeyuri=U,e.totpOptions=I,e.totpOptionsValidator=k,e.totpPadSecret=O,e.totpTimeRemaining=V,e.totpTimeUsed=N,e.totpToken=L},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("2fFW"),r=n("NJ4a");const s={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(r.a)(t)},complete(){}}},gvAe:function(t,e,n){var i=n("OfWw"),r=n("hwdV").Buffer,s=n("ZDAU"),o=n("P7XM"),a=n("P2KE"),c=n("jIre"),l=n("vZ2G");function h(t,e,n,o){s.call(this);var c=r.alloc(4,0);this._cipher=new i.AES(e);var h=this._cipher.encryptBlock(c);this._ghash=new a(h),n=function(t,e,n){if(12===e.length)return t._finID=r.concat([e,r.from([0,0,0,1])]),r.concat([e,r.from([0,0,0,2])]);var i=new a(n),s=e.length,o=s%16;i.update(e),o&&i.update(r.alloc(o=16-o,0)),i.update(r.alloc(8,0));var c=8*s,h=r.alloc(8);h.writeUIntBE(c,0,8),i.update(h),t._finID=i.state;var u=r.from(t._finID);return l(u),u}(this,n,h),this._prev=r.from(n),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}o(h,s),h.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=r.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._ghash.update(this._decrypt?t:n),this._len+=t.length,n},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var i=Math.min(t.length,e.length),r=0;r<i;++r)n+=t[r]^e[r];return n}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},h.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},h.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},h.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=h},hBQm:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var i=n("IheW"),r=n("z6cu"),s=n("JIr8"),o=n("AytR"),a=n("V8Fa"),c=n("7nzP"),l=n("/uX3"),h=n("8Y7J"),u=n("cpEJ"),d=n("tqRt");let f=(()=>{class t{constructor(t,e,n){this.httpClient=t,this.logger=e,this.store=n,this.CHILD_API_URL=o.a+"/lnd",this.loopUrl=""}loopOut(t,e,n,i,r,a,c,l,h,u){let d={amount:t,targetConf:n,swapRoutingFee:i,minerFee:r,prepayRoutingFee:a,prepayAmt:c,swapFee:l,swapPublicationDeadline:h,destAddress:u};return""!==e&&(d.chanId=e),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/out",this.httpClient.post(this.loopUrl,d).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop Out for Channel: "+e,t)))}getLoopOutTerms(){return this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop Out Terms",t)))}getLoopOutQuote(t,e,n){let r=new i.d;return r=r.append("targetConf",e.toString()),r=r.append("swapPublicationDeadline",n.toString()),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/out/quote/"+t,this.httpClient.get(this.loopUrl,{params:r}).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop Out Quote",t)))}getLoopOutTermsAndQuotes(t){let e=new i.d;return e=e.append("targetConf",t.toString()),e=e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/out/termsAndQuotes",this.httpClient.get(this.loopUrl,{params:e}).pipe(Object(s.a)(t=>this.handleErrorWithAlert(this.loopUrl,t)))}loopIn(t,e,n,i,r){const a={amount:t,swapFee:e,minerFee:n,lastHop:i,externalHtlc:r};return this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/in",this.httpClient.post(this.loopUrl,a).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop In",t)))}getLoopInTerms(){return this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop In Terms",t)))}getLoopInQuote(t,e,n){let r=new i.d;return r=r.append("targetConf",e.toString()),r=r.append("swapPublicationDeadline",n.toString()),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/in/quote/"+t,this.httpClient.get(this.loopUrl,{params:r}).pipe(Object(s.a)(t=>this.handleErrorWithoutAlert("Loop In Qoute",t)))}getLoopInTermsAndQuotes(t){let e=new i.d;return e=e.append("targetConf",t.toString()),e=e.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/in/termsAndQuotes",this.httpClient.get(this.loopUrl,{params:e}).pipe(Object(s.a)(t=>this.handleErrorWithAlert(this.loopUrl,t)))}getSwap(t){return this.loopUrl=this.CHILD_API_URL+o.b.LOOP_API+"/swap/"+t,this.httpClient.get(this.loopUrl).pipe(Object(s.a)(e=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+t,e)))}handleErrorWithoutAlert(t,e){return this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),this.store.dispatch(new l.i),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)):"ECONNREFUSED"!==e.error.errno&&"ECONNREFUSED"!==e.error.error.errno||this.store.dispatch(new l.C({data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:"ECONNREFUSED",message:"Unable to Connect to Loop Server",URL:t},component:a.a}})),Object(r.a)(e)}handleErrorWithAlert(t,e){return 401===e.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)),e.message=e.error&&e.error.error&&e.error.error.error&&"string"==typeof e.error.error.error?e.error.error.error:e.error&&e.error.error&&"string"==typeof e.error.error?e.error.error:e.error&&"string"==typeof e.error?e.error:"Unknown Error",this.logger.error(e),this.store.dispatch(new l.i),401===e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new l.x)):this.store.dispatch(new l.C("ECONNREFUSED"===e.errno?{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:"ECONNREFUSED",message:"Unable to Connect to Loop Server",URL:t},component:a.a}}:{data:{type:c.b.ERROR,alertTitle:"ERROR",message:{code:e.code?e.code:e.status,message:e.message?e.message:"Unknown Error",URL:t},component:a.a}})),Object(r.a)(e)}}return t.\u0275fac=function(e){return new(e||t)(h.Zb(i.b),h.Zb(u.b),h.Zb(d.h))},t.\u0275prov=h.Lb({token:t,factory:t.\u0275fac}),t})()},hbMA:function(t,e,n){"use strict";const i=n("P7XM"),r=n("N2jm");function s(t){r.call(this,t),this.enc="pem"}i(s,r),t.exports=s,s.prototype.encode=function(t,e){const n=r.prototype.encode.call(this,t).toString("base64"),i=["-----BEGIN "+e.label+"-----"];for(let r=0;r<n.length;r+=64)i.push(n.slice(r,r+64));return i.push("-----END "+e.label+"-----"),i.join("\n")}},hwdV:function(t,e,n){var i=n("tjlA"),r=i.Buffer;function s(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=i:(s(i,e),e.Buffer=o),s(r,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},hzfI:function(t,e,n){"use strict";n.d(e,"a",function(){return j}),n.d(e,"b",function(){return O}),n.d(e,"c",function(){return F}),n.d(e,"d",function(){return M}),n.d(e,"e",function(){return W}),n.d(e,"f",function(){return U}),n.d(e,"g",function(){return z}),n.d(e,"h",function(){return V});var i=n("1z/I"),r=n("q59W"),s=n("SVse"),o=n("8Y7J"),a=n("Dxy4"),c=n("UhP/"),l=n("Tj54"),h=n("XNiG"),u=n("1G5W"),d=n("/uUt"),f=n("GS7A"),p=n("YEUz"),m=n("9gLZ");function b(t,e){if(1&t&&o.Rb(0,8),2&t){const t=o.hc();o.oc("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function g(t,e){if(1&t&&(o.Vb(0,"span"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t._getDefaultTextForState(t.state))}}function _(t,e){if(1&t&&(o.Vb(0,"mat-icon"),o.Kc(1),o.Ub()),2&t){const t=o.hc(2);o.Db(1),o.Lc(t._getDefaultTextForState(t.state))}}function y(t,e){if(1&t&&(o.Tb(0,9),o.Ic(1,g,2,1,"span",10),o.Ic(2,_,2,1,"mat-icon",11),o.Sb()),2&t){const t=o.hc();o.oc("ngSwitch",t.state),o.Db(1),o.oc("ngSwitchCase","number")}}function v(t,e){if(1&t&&(o.Vb(0,"div",12),o.Rb(1,13),o.Ub()),2&t){const t=o.hc();o.Db(1),o.oc("ngTemplateOutlet",t._templateLabel().template)}}function w(t,e){if(1&t&&(o.Vb(0,"div",12),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t.label)}}function x(t,e){if(1&t&&(o.Vb(0,"div",14),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t._intl.optionalLabel)}}function C(t,e){if(1&t&&(o.Vb(0,"div",15),o.Kc(1),o.Ub()),2&t){const t=o.hc();o.Db(1),o.Lc(t.errorMessage)}}function S(t,e){1&t&&o.mc(0)}const E=["*"];function k(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",1),o.Vb(1,"mat-step-header",2),o.dc("click",function(){return e.$implicit.select()})("keydown",function(e){return o.zc(t),o.hc()._onKeydown(e)}),o.Ub(),o.Vb(2,"div",3),o.Vb(3,"div",4),o.dc("@stepTransition.done",function(e){return o.zc(t),o.hc()._animationDone.next(e)}),o.Vb(4,"div",5),o.Rb(5,6),o.Ub(),o.Ub(),o.Ub(),o.Ub()}if(2&t){const t=e.$implicit,n=e.index,i=e.last,r=o.hc();o.Db(1),o.oc("tabIndex",r._getFocusIndex()==n?0:-1)("id",r._getStepLabelId(n))("index",n)("state",r._getIndicatorType(n,t.state))("label",t.stepLabel||t.label)("selected",r.selectedIndex===n)("active",t.completed||r.selectedIndex===n||!r.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple)("color",t.color||r.color),o.Eb("aria-posinset",n+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),o.Db(1),o.Hb("mat-stepper-vertical-line",!i),o.Db(1),o.oc("@stepTransition",r._getAnimationDirection(n))("id",r._getStepContentId(n)),o.Eb("aria-labelledby",r._getStepLabelId(n))("aria-expanded",r.selectedIndex===n),o.Db(2),o.oc("ngTemplateOutlet",t.content)}}let O=(()=>{class t extends r.c{}return t.\u0275fac=function(e){return A(e||t)},t.\u0275dir=o.Kb({type:t,selectors:[["","matStepLabel",""]],features:[o.Ab]}),t})();const A=o.Xb(O);let D=(()=>{class t{constructor(){this.changes=new h.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(o.Lb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const I={provide:D,deps:[[new o.C,new o.M,D]],useFactory:function(t){return t||new D}};class T extends r.b{constructor(t){super(t)}}const L=Object(c.x)(T,"primary");let P=(()=>{class t extends L{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 O?null:this.label}_templateLabel(){return this.label instanceof O?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)(o.Pb(D),o.Pb(p.h),o.Pb(o.l),o.Pb(o.h))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[o.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"],["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"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(o.Qb(0,"div",0),o.Vb(1,"div"),o.Vb(2,"div",1),o.Ic(3,b,1,2,"ng-container",2),o.Ic(4,y,3,2,"ng-container",3),o.Ub(),o.Ub(),o.Vb(5,"div",4),o.Ic(6,v,2,1,"div",5),o.Ic(7,w,2,1,"div",5),o.Ic(8,x,2,1,"div",6),o.Ic(9,C,2,1,"div",7),o.Ub()),2&t&&(o.oc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),o.Db(1),o.Gb("mat-step-icon-state-",e.state," mat-step-icon"),o.Hb("mat-step-icon-selected",e.selected),o.Db(1),o.oc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),o.Db(1),o.oc("ngSwitchCase",!0),o.Db(2),o.Hb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),o.Db(1),o.oc("ngIf",e._templateLabel()),o.Db(1),o.oc("ngIf",e._stringLabel()),o.Db(1),o.oc("ngIf",e.optional&&"error"!=e.state),o.Db(1),o.oc("ngIf","error"==e.state))},directives:[c.r,s.q,s.r,s.s,s.o,s.t,l.a],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 R={horizontalStepTransition:Object(f.m)("stepTransition",[Object(f.j)("previous",Object(f.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(f.j)("current",Object(f.k)({transform:"none",visibility:"visible"})),Object(f.j)("next",Object(f.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(f.l)("* => *",Object(f.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(f.m)("stepTransition",[Object(f.j)("previous",Object(f.k)({height:"0px",visibility:"hidden"})),Object(f.j)("next",Object(f.k)({height:"0px",visibility:"hidden"})),Object(f.j)("current",Object(f.k)({height:"*",visibility:"visible"})),Object(f.l)("* <=> current",Object(f.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let M=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.O))},t.\u0275dir=o.Kb({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),j=(()=>{class t extends r.a{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)(o.Pb(Object(o.X)(()=>F)),o.Pb(c.d,4),o.Pb(r.h,8))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,n){if(1&t&&o.Ib(n,O,!0),2&t){let t;o.vc(t=o.ec())&&(e.stepLabel=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[o.Cb([{provide:c.d,useExisting:t},{provide:r.a,useExisting:t}]),o.Ab],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(o.nc(),o.Ic(0,S,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),F=(()=>{class t extends r.d{constructor(){super(...arguments),this.steps=new o.F,this.animationDone=new o.o,this._iconOverrides={},this._animationDone=new h.a}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(Object(u.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(d.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Object(u.a)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return N(e||t)},t.\u0275dir=o.Kb({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,n){if(1&t&&(o.Ib(n,j,!0),o.Ib(n,M,!0)),2&t){let t;o.vc(t=o.ec())&&(e._steps=t),o.vc(t=o.ec())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&o.Pc(P,!0),2&t){let t;o.vc(t=o.ec())&&(e._stepHeader=t)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[o.Cb([{provide:r.d,useExisting:t}]),o.Ab]}),t})();const N=o.Xb(F);let V=(()=>{class t extends F{constructor(t,e,n,i){super(t,e,n,i),this._orientation="vertical"}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(m.b,8),o.Pb(o.h),o.Pb(o.l),o.Pb(s.d))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-vertical-stepper"]],hostAttrs:["aria-orientation","vertical","role","tablist",1,"mat-stepper-vertical"],inputs:{selectedIndex:"selectedIndex"},exportAs:["matVerticalStepper"],features:[o.Cb([{provide:F,useExisting:t},{provide:r.d,useExisting:t}]),o.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","color","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&&o.Ic(0,k,6,25,"div",0),2&t&&o.oc("ngForOf",e.steps)},directives:[s.n,P,s.t],styles:['.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'],encapsulation:2,data:{animation:[R.verticalStepTransition]},changeDetection:0}),t})(),U=(()=>{class t extends r.f{}return t.\u0275fac=function(e){return B(e||t)},t.\u0275dir=o.Kb({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&o.Yb("type",e.type)},inputs:{type:"type"},features:[o.Ab]}),t})();const B=o.Xb(U);let z=(()=>{class t extends r.g{}return t.\u0275fac=function(e){return H(e||t)},t.\u0275dir=o.Kb({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&o.Yb("type",e.type)},inputs:{type:"type"},features:[o.Ab]}),t})();const H=o.Xb(z);let W=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[I,c.d],imports:[[c.i,s.c,i.h,a.b,r.e,l.b,c.s],c.i]}),t})()},"i+bA":function(t,e,n){var i=n("hwdV").Buffer;t.exports=function(t,e,n){if(i.isBuffer(t))return t;if("string"==typeof t)return i.from(t,e);if(ArrayBuffer.isView(t))return i.from(t.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},i3FT:function(t,e,n){"use strict";function i(t){const e={};return Object.keys(t).forEach(function(n){(0|n)==n&&(n|=0),e[t[n]]=n}),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=i(e.tag)},i5UE:function(t,e,n){"use strict";var i=n("w8CP"),r=n("tSWc");function s(){if(!(this instanceof s))return new s;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(s,r),t.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},iELJ:function(t,e,n){"use strict";n.d(e,"a",function(){return O}),n.d(e,"b",function(){return A}),n.d(e,"c",function(){return L}),n.d(e,"d",function(){return P}),n.d(e,"e",function(){return R}),n.d(e,"f",function(){return E});var i=n("1O3W"),r=n("1z/I"),s=n("8Y7J"),o=n("UhP/"),a=n("9gLZ"),c=n("SVse"),l=n("XNiG"),h=n("NXyV"),u=n("LRne"),d=n("pLZG"),f=n("IzEk"),p=n("JX91"),m=n("GS7A"),b=n("Ht+U"),g=n("YEUz");function _(t,e){}class y{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 v={dialogContainer:Object(m.m)("dialogContainer",[Object(m.j)("void, exit",Object(m.k)({opacity:0,transform:"scale(0.7)"})),Object(m.j)("enter",Object(m.k)({transform:"none"})),Object(m.l)("* => enter",Object(m.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(m.k)({transform:"none",opacity:1}))),Object(m.l)("* => void, * => exit",Object(m.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(m.k)({opacity:0})))])};let w=(()=>{class t extends r.a{constructor(t,e,n,i,r,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=r,this._focusMonitor=o,this._animationStateChanged=new s.o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=r.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),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._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.l),s.Pb(g.i),s.Pb(s.h),s.Pb(c.d,8),s.Pb(y),s.Pb(g.h))},t.\u0275dir=s.Kb({type:t,viewQuery:function(t,e){if(1&t&&s.Ec(r.c,!0),2&t){let t;s.vc(t=s.ec())&&(e._portalOutlet=t.first)}},features:[s.Ab]}),t})(),x=(()=>{class t extends w{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return C(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&s.Gc("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(s.Yb("id",e._id),s.Eb("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),s.Hc("@dialogContainer",e._state))},features:[s.Ab],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&s.Ic(0,_,0,0,"ng-template",0)},directives:[r.c],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;box-sizing:content-box;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:[v.dialogContainer]}}),t})();const C=s.Xb(x);let S=0;class E{constructor(t,e,n="mat-dialog-"+S++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.a,this._afterClosed=new l.a,this._beforeClosed=new l.a,this._state=0,e._id=n,e._animationStateChanged.pipe(Object(d.a)(t=>"opened"===t.state),Object(f.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Object(d.a)(t=>"closed"===t.state),Object(f.a)(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(Object(d.a)(t=>t.keyCode===b.f&&!this.disableClose&&!Object(b.r)(t))).subscribe(t=>{t.preventDefault(),k(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():k(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Object(d.a)(t=>"closing"===t.state),Object(f.a)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}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 k(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const O=new s.s("MatDialogData"),A=new s.s("mat-dialog-default-options"),D=new s.s("mat-dialog-scroll-strategy"),I={provide:D,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.block()}};let T=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=r,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.a,this._afterOpenedAtThisLevel=new l.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(h.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(p.a)(void 0))),this._scrollStrategy=s}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){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new y)).id&&this.getDialogById(e.id);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),i._initializeWithAttachedContent(),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 i.d({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=s.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),i=new r.d(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof s.O)e.attachTemplatePortal(new r.i(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),s=e.attachComponentPortal(new r.d(t,i.viewContainerRef,n));o.componentInstance=s.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(a.b,null)||r.push({provide:a.b,useValue:{value:t.direction,change:Object(u.a)()}}),s.t.create({parent:i||this._injector,providers:r})}_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)(s.Pb(i.c),s.Pb(s.t),s.Pb(void 0),s.Pb(void 0),s.Pb(i.e),s.Pb(void 0),s.Pb(s.Q),s.Pb(s.Q),s.Pb(s.s))},t.\u0275dir=s.Kb({type:t}),t})(),L=(()=>{class t extends T{constructor(t,e,n,i,r,s,o){super(t,e,i,s,o,r,E,x,O)}}return t.\u0275fac=function(e){return new(e||t)(s.Zb(i.c),s.Zb(s.t),s.Zb(c.j,8),s.Zb(A,8),s.Zb(D),s.Zb(t,12),s.Zb(i.e))},t.\u0275prov=s.Lb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function(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}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){k(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(E,8),s.Pb(s.l),s.Pb(L))},t.\u0275dir=s.Kb({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.dc("click",function(t){return e._onButtonClick(t)}),2&t&&s.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:[s.Bb]}),t})(),R=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},providers:[L,I],imports:[[i.f,r.h,o.i],o.i]}),t})()},iInd:function(t,e,n){"use strict";n.d(e,"a",function(){return zt}),n.d(e,"b",function(){return V}),n.d(e,"c",function(){return N}),n.d(e,"d",function(){return U}),n.d(e,"e",function(){return F}),n.d(e,"f",function(){return K}),n.d(e,"g",function(){return an}),n.d(e,"h",function(){return cn}),n.d(e,"i",function(){return un}),n.d(e,"j",function(){return ln}),n.d(e,"k",function(){return xn}),n.d(e,"l",function(){return dn});var i=n("SVse"),r=n("8Y7J"),s=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("itXk"),l=n("HDdC"),h=n("sVev"),u=n("NXyV"),d=n("EY2u"),f=n("XNiG"),p=n("lJxs"),m=n("0EUg"),b=n("pLZG"),g=n("7o/Q"),_=n("4I5i");function y(t){return function(e){return 0===t?Object(d.b)():e.lift(new v(t))}}class v{constructor(t){if(this.total=t,this.total<0)throw new _.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends g.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()}}var x=n("XDbj"),C=n("xbPD"),S=n("SpAZ"),E=n("eIep"),k=n("IzEk"),O=n("JX91"),A=n("Kqap"),D=n("JIr8"),I=n("bOdf"),T=n("SxV6"),L=n("5+tZ"),P=n("vkgz"),R=n("nYR2"),M=n("bHdf");class j{constructor(t,e){this.id=t,this.url=e}}class F extends j{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 N extends j{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class V extends j{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class U extends j{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class B extends j{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 z extends j{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 H extends j{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 W extends j{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 K extends j{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 q{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Y{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Z{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class G{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ${constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q{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}')`}}const J="primary";class tt{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 et(t){return new tt(t)}function nt(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function it(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 s=0;s<i.length;s++){const e=i[s],n=t[s];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 rt(t,e){const n=Object.keys(t),i=Object.keys(e);if(!n||!i||n.length!=i.length)return!1;let r;for(let s=0;s<n.length;s++)if(r=n[s],!st(t[r],e[r]))return!1;return!0}function st(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 ot(t){return Array.prototype.concat.apply([],t)}function at(t){return t.length>0?t[t.length-1]:null}function ct(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function lt(t){return Object(r.ub)(t)?t:Object(r.vb)(t)?Object(o.a)(Promise.resolve(t)):Object(s.a)(t)}function ht(t,e,n){return n?function(t,e){return rt(t,e)}(t.queryParams,e.queryParams)&&ut(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>st(t[n],e[n]))}(t.queryParams,e.queryParams)&&dt(t.root,e.root)}function ut(t,e){if(!gt(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ut(t.children[n],e.children[n]))return!1}return!0}function dt(t,e){return ft(t,e,e.segments)}function ft(t,e,n){if(t.segments.length>n.length)return!!gt(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!gt(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!dt(t.children[n],e.children[n]))return!1}return!0}{const i=n.slice(0,t.segments.length),r=n.slice(t.segments.length);return!!gt(t.segments,i)&&!!t.children.primary&&ft(t.children.primary,e,r)}}class pt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=et(this.queryParams)),this._queryParamMap}toString(){return wt.serialize(this)}}class mt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ct(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xt(this)}}class bt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=et(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function gt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function _t(t,e){let n=[];return ct(t.children,(t,i)=>{i===J&&(n=n.concat(e(t,i)))}),ct(t.children,(t,i)=>{i!==J&&(n=n.concat(e(t,i)))}),n}class yt{}class vt{parse(t){const e=new Rt(t);return new pt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+Ct(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Et(e)}=${Et(t)}`).join("&"):`${Et(e)}=${Et(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const wt=new vt;function xt(t){return t.segments.map(t=>Dt(t)).join("/")}function Ct(t,e){if(!t.hasChildren())return xt(t);if(e){const e=t.children.primary?Ct(t.children.primary,!1):"",n=[];return ct(t.children,(t,e)=>{e!==J&&n.push(`${e}:${Ct(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=_t(t,(e,n)=>n===J?[Ct(t.children.primary,!1)]:[`${n}:${Ct(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${xt(t)}/${e[0]}`:`${xt(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Et(t){return St(t).replace(/%3B/gi,";")}function kt(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function At(t){return Ot(t.replace(/\+/g,"%20"))}function Dt(t){return`${kt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${kt(t)}=${kt(e[t])}`).join("")}`;var e}const It=/^[^\/()?;=#]+/;function Tt(t){const e=t.match(It);return e?e[0]:""}const Lt=/^[^=?&#]+/,Pt=/^[^?&#]+/;class Rt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mt([],{}):new mt([],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 mt(t,e)),n}parseSegment(){const t=Tt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bt(Ot(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Tt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Tt(this.remaining);t&&(n=t,this.capture(n))}t[Ot(e)]=Ot(n)}parseQueryParam(t){const e=function(t){const e=t.match(Lt);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(Pt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=At(e),r=At(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=Tt(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=J);const s=this.parseChildren();e[r]=1===Object.keys(s).length?s.primary:new mt([],s),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 Mt{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=jt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=jt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Ft(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Ft(t,this._root).map(t=>t.value)}}function jt(t,e){if(t===e.value)return e;for(const n of e.children){const e=jt(t,n);if(e)return e}return null}function Ft(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Ft(t,n);if(i.length)return i.unshift(e),i}return[]}class Nt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Vt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ut extends Mt{constructor(t,e){super(t),this.snapshot=e,qt(this,t)}toString(){return this.snapshot.toString()}}function Bt(t,e){const n=function(t,e){const n=new Wt([],{},{},"",{},J,e,null,t.root,-1,{});return new Kt("",new Nt(n,[]))}(t,e),i=new a.a([new bt("",{})]),r=new a.a({}),s=new a.a({}),o=new a.a({}),c=new a.a(""),l=new zt(i,r,o,c,s,J,e,n.root);return l.snapshot=n.root,new Ut(new Nt(l,[]),n)}class zt{constructor(t,e,n,i,r,s,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(p.a)(t=>et(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(t=>et(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ht(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 Wt{constructor(t,e,n,i,r,s,o,a,c,l,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}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=et(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=et(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kt extends Mt{constructor(t,e){super(e),this.url=t,qt(this,e)}toString(){return Yt(this._root)}}function qt(t,e){e.value._routerState=t,e.children.forEach(e=>qt(t,e))}function Yt(t){const e=t.children.length>0?` { ${t.children.map(Yt).join(", ")} } `:"";return`${t.value}${e}`}function Zt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,rt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),rt(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(!rt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),rt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Xt(t,e){var n,i;return rt(t.params,e.params)&&gt(n=t.url,i=e.url)&&n.every((t,e)=>rt(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Xt(t.parent,e.parent))}function Gt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return Gt(t,e,i);return Gt(t,e)})}(t,e,n);return new Nt(i,r)}{const n=t.retrieve(e.value);if(n){const t=n.route;return $t(e,t),t}{const n=new zt(new a.a((i=e.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),r=e.children.map(e=>Gt(t,e));return new Nt(n,r)}}var i}function $t(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n<t.children.length;++n)$t(t.children[n],e.children[n])}function Qt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Jt(t){return"object"==typeof t&&null!=t&&t.outlets}function te(t,e,n,i,r){let s={};return i&&ct(i,(t,e)=>{s[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new pt(n.root===t?e:ee(n.root,t,e),s,r)}function ee(t,e,n){const i={};return ct(t.children,(t,r)=>{i[r]=t===e?n:ee(t,e,n)}),new mt(t.segments,i)}class ne{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Qt(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(Jt);if(i&&i!==at(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ie{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function re(t,e,n){if(t||(t=new mt([],{})),0===t.segments.length&&t.hasChildren())return se(t,e,n);const i=function(t,e,n){let i=0,r=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=n.length)return s;const e=t.segments[r],o=n[i];if(Jt(o))break;const a=""+o,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(!le(a,c,e))return s;i+=2}else{if(!le(a,{},e))return s;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 mt(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new mt(t.segments.slice(i.pathIndex),t.children),se(e,0,r)}return i.match&&0===r.length?new mt(t.segments,{}):i.match&&!t.hasChildren()?oe(t,e,n):i.match?se(t,0,r):oe(t,e,n)}function se(t,e,n){if(0===n.length)return new mt(t.segments,{});{const i=function(t){return Jt(t[0])?t[0].outlets:{[J]:t}}(n),r={};return ct(i,(n,i)=>{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=re(t.children[i],e,n))}),ct(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new mt(t.segments,r)}}function oe(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r<n.length;){const s=n[r];if(Jt(s)){const t=ae(s.outlets);return new mt(i,t)}if(0===r&&Qt(n[0])){i.push(new bt(t.segments[e].path,n[0])),r++;continue}const o=Jt(s)?s.outlets.primary:""+s,a=r<n.length-1?n[r+1]:null;o&&a&&Qt(a)?(i.push(new bt(o,ce(a))),r+=2):(i.push(new bt(o,{})),r++)}return new mt(i,{})}function ae(t){const e={};return ct(t,(t,n)=>{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=oe(new mt([],{}),0,t))}),e}function ce(t){const e={};return ct(t,(t,n)=>e[n]=""+t),e}function le(t,e,n){return t==n.path&&rt(e,n.parameters)}class he{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),Zt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Vt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),ct(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=Vt(t),r=t.value.component?n.children:e;ct(i,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=Vt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new $(t.value.snapshot))}),t.children.length&&this.forwardEvent(new X(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(Zt(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),ue(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 ue(t){Zt(t.value),t.children.forEach(ue)}class de{constructor(t,e){this.routes=t,this.module=e}}function fe(t){return"function"==typeof t}function pe(t){return t instanceof pt}const me=Symbol("INITIAL_VALUE");function be(){return Object(E.a)(t=>Object(c.b)(...t.map(t=>t.pipe(Object(k.a)(1),Object(O.a)(me)))).pipe(Object(A.a)((t,e)=>{let n=!1;return e.reduce((t,i,r)=>{if(t!==me)return t;if(i===me&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||pe(i))return i}return t},t)},me),Object(b.a)(t=>t!==me),Object(p.a)(t=>pe(t)?t:!0===t),Object(k.a)(1)))}let ge=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Jb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Qb(0,"router-outlet")},directives:function(){return[dn]},encapsulation:2}),t})();function _e(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];ye(i,ve(e,i))}}function ye(t,e){t.children&&_e(t.children,e)}function ve(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function we(t){const e=t.children&&t.children.map(we),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==J&&(n.component=ge),n}function xe(t){return t.outlet||J}class Ce{constructor(t){this.segmentGroup=t||null}}class Se{constructor(t){this.urlTree=t}}function Ee(t){return new l.a(e=>e.error(new Ce(t)))}function ke(t){return new l.a(e=>e.error(new Se(t)))}function Oe(t){return new l.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ae{constructor(t,e,n,i,s){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=t.get(r.z)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,J).pipe(Object(p.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(D.a)(t=>{if(t instanceof Se)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Ce)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,J).pipe(Object(p.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(D.a)(t=>{if(t instanceof Ce)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 mt([],{[J]:t}):t;return new pt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)(t=>new mt([],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 ct(t,(t,s)=>{const o=e(s,t).pipe(Object(p.a)(t=>r[s]=t));s===J?n.push(o):i.push(o)}),s.a.apply(null,n.concat(i)).pipe(Object(m.a)(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(b.a)((e,n)=>t(e,n,i)):S.a,y(1),n?Object(C.a)(e):Object(x.a)(()=>new h.a))}(),Object(p.a)(()=>r))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,r,a){const l=function(t){return t.reduce((t,e)=>{const n=xe(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);l.has(r)||l.set(r,[]);const u=n=>Object(o.a)(n).pipe(Object(I.a)(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,a).pipe(Object(D.a)(t=>{if(t instanceof Ce)return Object(s.a)(null);throw t}))),Object(T.a)(t=>null!==t),Object(D.a)(t=>{if(t instanceof h.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,r))return Object(s.a)(new mt([],{}));throw new Ce(e)}throw t})),d=Array.from(l.entries()).map(([t,e])=>{const n=u(e);return t===r?n:n.pipe(Object(p.a)(()=>null),Object(D.a)(()=>Object(s.a)(null)))});return Object(o.a)(d).pipe(t=>t.lift(new c.a(void 0)),Object(T.a)(),Object(p.a)(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,r,s,o){return xe(i)!==s&&""!==i.path?Ee(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s):Ee(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ke(r):this.lineralizeSegments(n,r).pipe(Object(L.a)(n=>{const r=new mt(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,s){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=De(e,i,r);if(!o)return Ee(e);const h=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?ke(h):this.lineralizeSegments(i,h).pipe(Object(L.a)(i=>this.expandSegment(t,e,n,i.concat(r.slice(c)),s,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(p.a)(t=>(n._loadedConfig=t,new mt(i,{})))):Object(s.a)(new mt(i,{}));const{matched:r,consumedSegments:o,lastChild:a}=De(e,n,i);if(!r)return Ee(e);const c=i.slice(a);return this.getChildConfig(t,n,i).pipe(Object(L.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=>Te(t,e,n)&&xe(n)!==J)}(t,n,i)?{segmentGroup:Ie(new mt(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&xe(i)!==J&&(n[xe(i)]=new mt([],{}));return n}(i,new mt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Te(t,e,n))}(t,n,i)?{segmentGroup:Ie(new mt(t.segments,function(t,e,n,i){const r={};for(const s of n)Te(t,e,s)&&!i[xe(s)]&&(r[xe(s)]=new mt([],{}));return Object.assign(Object.assign({},i),r)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,c,i);return 0===a.length&&r.hasChildren()?this.expandChildren(n,i,r).pipe(Object(p.a)(t=>new mt(o,t))):0===i.length&&0===a.length?Object(s.a)(new mt(o,{})):this.expandSegment(n,r,i,a,J,!0).pipe(Object(p.a)(t=>new mt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(s.a)(new de(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(s.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(L.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(p.a)(t=>(e._loadedConfig=t,t))):function(t){return new l.a(e=>e.error(nt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(s.a)(new de([],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 s;if(function(t){return t&&fe(t.canLoad)}(r))s=r.canLoad(e,n);else{if(!fe(r))throw new Error("Invalid CanLoad guard");s=r(e,n)}return lt(s)});return Object(s.a)(r).pipe(be(),Object(P.a)(t=>{if(!pe(t))return;const e=nt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(p.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 Oe(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 pt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ct(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 s={};return ct(e.children,(e,r)=>{s[r]=this.createSegmentGroup(t,e,n,i)}),new mt(r,s)}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 De(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||it)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ie(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new mt(t.segments.concat(e.segments),e.children)}return t}function Te(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class Le{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Pe{constructor(t,e){this.component=t,this.route=e}}function Re(t,e,n){const i=t._root;return je(i,e?e._root:null,n,[i.value])}function Me(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 je(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Vt(e);return t.children.forEach(t=>{!function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!gt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!gt(t.url,e.url)||!rt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xt(t,e)||!rt(t.queryParams,e.queryParams);case"paramsChange":default:return!Xt(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Le(i)):(s.data=o.data,s._resolvedData=o._resolvedData),je(t,e,s.component?a?a.children:null:n,i,r),c&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Pe(a.outlet.component,o))}else o&&Fe(e,a,r),r.canActivateChecks.push(new Le(i)),je(t,null,s.component?a?a.children:null:n,i,r)}(t,s[t.value.outlet],n,i.concat([t.value]),r),delete s[t.value.outlet]}),ct(s,(t,e)=>Fe(t,n.getContext(e),r)),r}function Fe(t,e,n){const i=Vt(t),r=t.value;ct(i,(t,i)=>{Fe(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new Pe(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Ne(t,e){return null!==t&&e&&e(new G(t)),Object(s.a)(!0)}function Ve(t,e){return null!==t&&e&&e(new Z(t)),Object(s.a)(!0)}function Ue(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=>Object(u.a)(()=>{const r=Me(i,e,n);let s;if(function(t){return t&&fe(t.canActivate)}(r))s=lt(r.canActivate(e,t));else{if(!fe(r))throw new Error("Invalid CanActivate guard");s=lt(r(e,t))}return s.pipe(Object(T.a)())}));return Object(s.a)(r).pipe(be())}function Be(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=>Object(u.a)(()=>{const r=e.guards.map(r=>{const s=Me(r,e.node,n);let o;if(function(t){return t&&fe(t.canActivateChild)}(s))o=lt(s.canActivateChild(i,t));else{if(!fe(s))throw new Error("Invalid CanActivateChild guard");o=lt(s(i,t))}return o.pipe(Object(T.a)())});return Object(s.a)(r).pipe(be())}));return Object(s.a)(r).pipe(be())}class ze{}class He{constructor(t,e,n,i,r,s){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=s}recognize(){try{const t=qe(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,J),n=new Wt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},J,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Nt(n,e),r=new Kt(this.url,i);return this.inheritParamsAndData(r._root),Object(s.a)(r)}catch(t){return new l.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Ht(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=_t(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)=>t.value.outlet===J?-1:e.value.outlet===J?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const s of t)try{return this.processSegmentAgainstRoute(s,e,n,i)}catch(r){if(!(r instanceof ze))throw r}if(this.noLeftoversInUrl(e,n,i))return[];throw new ze}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new ze;if((t.outlet||J)!==i)throw new ze;let r,s=[],o=[];if("**"===t.path){const s=n.length>0?at(n).parameters:{};r=new Wt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ze(t),i,t.component,t,We(e),Ke(e)+n.length,Xe(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new ze;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||it)(n,t,e);if(!i)throw new ze;const r={};ct(i.posParams,(t,e)=>{r[e]=t.path});const s=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:s}}(e,t,n);s=a.consumedSegments,o=n.slice(a.lastChild),r=new Wt(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ze(t),i,t.component,t,We(e),Ke(e)+s.length,Xe(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=qe(e,s,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Nt(r,t)]}if(0===a.length&&0===l.length)return[new Nt(r,[])];const h=this.processSegment(a,c,l,J);return[new Nt(r,h)]}}function We(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Ke(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 qe(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some(n=>Ye(t,e,n)&&xe(n)!==J)}(t,n,i)){const r=new mt(e,function(t,e,n,i){const r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&xe(s)!==J){const n=new mt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[xe(s)]=n}return r}(t,e,i,new mt(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=>Ye(t,e,n))}(t,n,i)){const s=new mt(t.segments,function(t,e,n,i,r,s){const o={};for(const a of i)if(Ye(t,n,a)&&!r[xe(a)]){const n=new mt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[xe(a)]=n}return Object.assign(Object.assign({},r),o)}(t,e,n,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const s=new mt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Ye(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Ze(t){return t.data||{}}function Xe(t){return t.resolve||{}}function Ge(t){return function(e){return e.pipe(Object(E.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(p.a)(()=>e)):Object(o.a)([e])}))}}class $e 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}}{}const Qe=new r.s("ROUTES");class Je{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(p.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new de(ot(i.injector.get(Qe)).map(we),i)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):lt(t()).pipe(Object(L.a)(t=>t instanceof r.x?Object(s.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class tn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new en,this.attachRef=null}}class en{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 tn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class nn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function rn(t){throw t}function sn(t,e,n){return e.parse("/")}function on(t,e){return Object(s.a)(null)}let an=(()=>{class t{constructor(t,e,n,i,s,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=rn,this.malformedUriErrorHandler=sn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:on,afterPreactivation:on},this.urlHandlingStrategy=new nn,this.routeReuseStrategy=new $e,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=s.get(r.z),this.console=s.get(r.cb);const h=s.get(r.B);this.isNgZoneEnabled=h instanceof r.B,this.resetConfig(l),this.currentUrlTree=new pt(new mt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Je(o,c,t=>this.triggerEvent(new q(t)),t=>this.triggerEvent(new Y(t))),this.routerState=Bt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Object(b.a)(t=>0!==t.id),Object(p.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(E.a)(t=>{let n=!1,i=!1;return Object(s.a)(t).pipe(Object(P.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(E.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(E.a)(t=>{const n=this.transitions.getValue();return e.next(new F(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?d.a:[t]}),Object(E.a)(t=>Promise.resolve(t)),(i=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(E.a)(t=>function(t,e,n,i,r){return new Ae(t,e,n,i,r).apply()}(i,r,o,t.extractedUrl,a).pipe(Object(p.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(P.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,r){return function(s){return s.pipe(Object(L.a)(s=>function(t,e,n,i,r="emptyOnly",s="legacy"){return new He(t,e,n,i,r,s).recognize()}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),i,r).pipe(Object(p.a)(t=>Object.assign(Object.assign({},s),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(P.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(P.a)(t=>{const n=new B(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 F(n,this.serializeUrl(i),r,o);e.next(c);const l=Bt(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),d.a}),Ge(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(P.a)(t=>{const e=new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(p.a)(t=>Object.assign(Object.assign({},t),{guards:Re(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(L.a)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(s.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(o.a)(t).pipe(Object(L.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(s=>{const o=Me(s,e,r);let a;if(function(t){return t&&fe(t.canDeactivate)}(o))a=lt(o.canDeactivate(t,e,n,i));else{if(!fe(o))throw new Error("Invalid CanDeactivate guard");a=lt(o(t,e,n,i))}return a.pipe(Object(T.a)())});return Object(s.a)(a).pipe(be())}(t.component,t.route,n,e,i)),Object(T.a)(t=>!0!==t,!0))}(c,i,r,t).pipe(Object(L.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(o.a)(e).pipe(Object(I.a)(e=>Object(o.a)([Ve(e.route.parent,i),Ne(e.route,i),Be(t,e.path,n),Ue(t,e.route,n)]).pipe(Object(m.a)(),Object(T.a)(t=>!0!==t,!0))),Object(T.a)(t=>!0!==t,!0))}(i,a,t,e):Object(s.a)(n)),Object(p.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(P.a)(t=>{if(pe(t.guardsResult)){const e=nt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(P.a)(t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(b.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new V(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Ge(t=>{if(t.guards.canActivateChecks.length)return Object(s.a)(t).pipe(Object(P.a)(t=>{const e=new W(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(E.a)(t=>{let n=!1;return Object(s.a)(t).pipe((i=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(t){return t.pipe(Object(L.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(s.a)(t);let a=0;return Object(o.a)(n).pipe(Object(I.a)(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 a={};return Object(o.a)(r).pipe(Object(L.a)(r=>function(t,e,n,i){const r=Me(t,e,i);return lt(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(Object(P.a)(t=>{a[r]=t}))),y(1),Object(L.a)(()=>Object.keys(a).length===r.length?Object(s.a)(a):d.a))}(t._resolve,t,e,i).pipe(Object(p.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ht(t,n).resolve),null)))}(t.route,e,i,r)),Object(P.a)(()=>a++),y(1),Object(L.a)(e=>a===n.length?Object(s.a)(t):d.a))}))}),Object(P.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new V(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(P.a)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ge(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:s,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!s,replaceUrl:!!o})}),Object(p.a)(t=>{const e=function(t,e,n){const i=Gt(t,e._root,n?n._root:void 0);return new Ut(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(P.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,a=this.routeReuseStrategy,c=t=>this.triggerEvent(t),Object(p.a)(t=>(new he(a,t.targetRouterState,t.currentRouterState,c).activate(r),t))),Object(P.a)({next(){n=!0},complete(){n=!0}}),Object(R.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new V(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}),Object(D.a)(n=>{if(i=!0,(r=n)&&r.ngNavigationCancelingError){const i=pe(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new V(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 U(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(s){t.reject(s)}}var r;return d.a}));var r,a,c}))}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){_e(t),this.config=t.map(we),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:i,fragment:r,queryParamsHandling:s,preserveFragment:o}=e,a=n||this.routerState.root,c=o?this.currentUrlTree.fragment:r;let l=null;switch(s){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,n,i,r){if(0===n.length)return te(e.root,e.root,e,i,r);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ne(!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 ct(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 ne(n,e,i)}(n);if(s.toRoot())return te(e.root,new mt([],{}),e,i,r);const o=function(t,e,n){if(t.isAbsolute)return new ie(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ie(t,t===e.root,0)}const i=Qt(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,s=n;for(;s>r;){if(s-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new ie(i,!1,r-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?se(o.segmentGroup,o.index,s.commands):re(o.segmentGroup,o.index,s.commands);return te(o.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,l,c)}navigateByUrl(t,e={skipLocationChange:!1}){const n=pe(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"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(pe(t))return ht(this.currentUrlTree,t,e);const n=this.parseUrl(t);return ht(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 N(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 s=this.getTransition(),o="imperative"!==e&&"imperative"===(null==s?void 0:s.source),a=(this.lastSuccessfulId===s.id||this.currentNavigation?s.rawUrl:s.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,l,h;r?(c=r.resolve,l=r.reject,h=r.promise):h=new Promise((t,e)=>{c=t,l=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:c,reject:l,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.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)(r.Zb(r.Q),r.Zb(yt),r.Zb(en),r.Zb(i.j),r.Zb(r.t),r.Zb(r.y),r.Zb(r.i),r.Zb(void 0))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),cn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.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]:[]}onClick(){const t={skipLocationChange:hn(this.skipLocationChange),replaceUrl:hn(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,queryParamsHandling:this.queryParamsHandling,preserveFragment:hn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(an),r.Pb(zt),r.ac("tabindex"),r.Pb(r.G),r.Pb(r.l))},t.\u0275dir=r.Kb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.dc("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.Bb]}),t})(),ln=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new f.a,this.subscription=t.events.subscribe(t=>{t instanceof N&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[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 s={skipLocationChange:hn(this.skipLocationChange),replaceUrl:hn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:hn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(an),r.Pb(zt),r.Pb(i.k))},t.\u0275dir=r.Kb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.dc("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Yb("href",e.href,r.Bc),r.Eb("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.Bb]}),t})();function hn(t){return""===t||!!t}let un=(()=>{class t{constructor(t,e,n,i,r,s){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=s,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof N&&this.update()})}ngAfterContentInit(){Object(o.a)([this.links.changes,this.linksWithHrefs.changes,Object(s.a)(null)]).pipe(Object(M.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(o.a)(e).pipe(Object(M.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)(r.Pb(an),r.Pb(r.l),r.Pb(r.G),r.Pb(r.h),r.Pb(cn,8),r.Pb(ln,8))},t.\u0275dir=r.Kb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Ib(n,cn,!0),r.Ib(n,ln,!0)),2&t){let t;r.vc(t=r.ec())&&(e.links=t),r.vc(t=r.ec())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.Bb]}),t})(),dn=(()=>{class t{constructor(t,e,n,i,s){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.o,this.deactivateEvents=new r.o,this.name=i||J,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 fn(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)(r.Pb(en),r.Pb(r.S),r.Pb(r.j),r.ac("name"),r.Pb(r.h))},t.\u0275dir=r.Kb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class fn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===zt?this.route:t===en?this.childContexts:this.parent.get(t,e)}}class pn{}class mn{preload(t,e){return Object(s.a)(null)}}let bn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new Je(e,n,e=>t.triggerEvent(new q(e)),e=>t.triggerEvent(new Y(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(b.a)(t=>t instanceof N),Object(I.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.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(o.a)(n).pipe(Object(M.a)(),Object(p.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(L.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(an),r.Zb(r.y),r.Zb(r.i),r.Zb(r.t),r.Zb(pn))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})(),gn=(()=>{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 F?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof N&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Q&&(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 Q(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)(r.Zb(an),r.Zb(i.z),r.Zb(void 0))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();const _n=new r.s("ROUTER_CONFIGURATION"),yn=new r.s("ROUTER_FORROOT_GUARD"),vn=[i.j,{provide:yt,useClass:vt},{provide:an,useFactory:function(t,e,n,r,s,o,a,c={},l,h){const u=new an(null,t,e,n,r,s,o,ot(a));if(l&&(u.urlHandlingStrategy=l),h&&(u.routeReuseStrategy=h),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(c,u),c.enableTracing){const t=Object(i.E)();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[yt,en,i.j,r.t,r.y,r.i,Qe,_n,[class{},new r.C],[class{},new r.C]]},en,{provide:zt,useFactory:function(t){return t.routerState.root},deps:[an]},{provide:r.y,useClass:r.N},bn,mn,class{preload(t,e){return e().pipe(Object(D.a)(()=>Object(s.a)(null)))}},{provide:_n,useValue:{enableTracing:!1}}];function wn(){return new r.A("Router",an)}let xn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[vn,kn(e),{provide:yn,useFactory:En,deps:[[an,new r.C,new r.M]]},{provide:_n,useValue:n||{}},{provide:i.k,useFactory:Sn,deps:[i.v,[new r.q(i.a),new r.C],_n]},{provide:gn,useFactory:Cn,deps:[an,i.z,_n]},{provide:pn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:mn},{provide:r.A,multi:!0,useFactory:wn},[On,{provide:r.d,multi:!0,useFactory:An,deps:[On]},{provide:In,useFactory:Dn,deps:[On]},{provide:r.b,multi:!0,useExisting:In}]]}}static forChild(e){return{ngModule:t,providers:[kn(e)]}}}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)(r.Zb(yn,8),r.Zb(an,8))}}),t})();function Cn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new gn(t,e,n)}function Sn(t,e,n={}){return n.useHash?new i.g(t,e):new i.u(t,e)}function En(t){return"guarded"}function kn(t){return[{provide:r.a,multi:!0,useValue:t},{provide:Qe,multi:!0,useValue:t}]}let On=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.a}appInitializer(){return this.injector.get(i.i,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(an),i=this.injector.get(_n);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(_n),n=this.injector.get(bn),i=this.injector.get(gn),s=this.injector.get(an),o=this.injector.get(r.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||s.initialNavigation(),n.setUpPreloading(),i.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(r.Zb(r.t))},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})();function An(t){return t.appInitializer.bind(t)}function Dn(t){return t.bootstrapListener.bind(t)}const In=new r.s("Router Initializer")},iUdu:function(t,e,n){var i=n("usKN"),r=n("gvAe"),s=n("hwdV").Buffer,o=n("CfXC"),a=n("ZDAU"),c=n("OfWw"),l=n("roQf");function h(t,e,n){a.call(this),this._cache=new d,this._cipher=new c.AES(e),this._prev=s.from(n),this._mode=t,this._autopadding=!0}n("P7XM")(h,a),h.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get();)n=this._mode.encrypt(this,e),i.push(n);return s.concat(i)};var u=s.alloc(16,16);function d(){this.cache=s.allocUnsafe(0)}function f(t,e,n){var a=i[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=s.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=s.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new o(a.module,e,n):"auth"===a.type?new r(a.module,e,n):new h(a.module,e,n)}h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=s.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=s.allocUnsafe(t),n=-1;++n<t;)e.writeUInt8(t,n);return s.concat([this.cache,e])},e.createCipheriv=f,e.createCipher=function(t,e){var n=i[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(e,!1,n.key,n.iv);return f(t,r.key,r.iv)}},iiaH:function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n("IheW"),r=n("XNiG"),s=n("z6cu"),o=n("LRne"),a=n("1G5W"),c=n("lJxs"),l=n("JIr8"),h=n("zp1y"),u=n("5+tZ"),d=n("AytR"),f=n("V8Fa"),p=n("/uX3"),m=n("8Y7J"),b=n("tqRt"),g=n("cpEJ"),_=n("zHaW");let y=(()=>{class t{constructor(t,e,n,i){this.httpClient=t,this.store=e,this.logger=n,this.snackBar=i,this.lnImplementation="LND",this.childAPIUrl=d.a,this.unSubs=[new r.a,new r.a,new r.a,new r.a,new r.a,new r.a,new r.a,new r.a]}ngOnInit(){}getChildAPIUrl(){return this.childAPIUrl}getLnImplementation(){return this.lnImplementation}setChildAPIUrl(t){switch(this.lnImplementation=t,t){case"CLT":this.childAPIUrl=d.a+"/cl";break;case"ECL":this.childAPIUrl=d.a+"/ecl";break;default:this.childAPIUrl=d.a+"/lnd"}}getFiatRates(){return this.httpClient.get(d.b.CONF_API+"/rates")}decodePayment(t,e){let n=this.childAPIUrl+d.b.PAYREQUEST_API+"/"+t;return"ECL"===this.getLnImplementation()&&(n=this.childAPIUrl+d.b.PAYMENTS_API+"/"+t),this.store.dispatch(new p.F("Decoding Payment...")),this.httpClient.get(n).pipe(Object(a.a)(this.unSubs[0]),Object(c.a)(t=>(this.store.dispatch(new p.i),t)),Object(l.a)(t=>(e?this.handleErrorWithoutAlert("Decode Payment",t):this.handleErrorWithAlert("ERROR","Decode Payment Failed",this.childAPIUrl+d.b.PAYREQUEST_API,t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}decodePayments(t){let e=this.childAPIUrl+d.b.PAYREQUEST_API,n="Decoding Payments";return"ECL"===this.getLnImplementation()&&(e=this.childAPIUrl+d.b.PAYMENTS_API+"/getsentinfos",n="Getting Sent Payments"),this.store.dispatch(new p.F(n+"...")),this.httpClient.post(e,{payments:t}).pipe(Object(a.a)(this.unSubs[1]),Object(c.a)(t=>(this.store.dispatch(new p.i),t)),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR",n+" Failed",e,t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}getAliasesFromPubkeys(t,e){if(e){let e=(new i.d).set("pubkeys",t);return this.httpClient.get(this.childAPIUrl+d.b.NETWORK_API+"/nodes",{params:e})}return this.httpClient.get(this.childAPIUrl+d.b.NETWORK_API+"/node/"+t)}signMessage(t){return this.store.dispatch(new p.F("Signing Message...")),this.httpClient.post(this.childAPIUrl+d.b.MESSAGE_API+"/sign",{message:t}).pipe(Object(a.a)(this.unSubs[2]),Object(c.a)(t=>(this.store.dispatch(new p.i),t)),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR","Sign Message Failed",this.childAPIUrl+d.b.MESSAGE_API+"/sign",t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}verifyMessage(t,e){return this.store.dispatch(new p.F("Verifying Message...")),this.httpClient.post(this.childAPIUrl+d.b.MESSAGE_API+"/verify",{message:t,signature:e}).pipe(Object(a.a)(this.unSubs[3]),Object(c.a)(t=>(this.store.dispatch(new p.i),t)),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR","Verify Message Failed",this.childAPIUrl+d.b.MESSAGE_API+"/verify",t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}bumpFee(t,e,n,i){let r={txid:t,outputIndex:e};return n&&(r.targetConf=n),i&&(r.satPerByte=i),this.store.dispatch(new p.F("Bumping Fee...")),this.httpClient.post(this.childAPIUrl+d.b.WALLET_API+"/bumpfee",r).pipe(Object(a.a)(this.unSubs[4]),Object(c.a)(t=>(this.store.dispatch(new p.i),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),t)),Object(l.a)(t=>(this.handleErrorWithoutAlert("Bump Fee",t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}getForwardingHistory(t,e){return this.httpClient.post(this.childAPIUrl+d.b.SWITCH_API,{end_time:e,start_time:t}).pipe(Object(a.a)(this.unSubs[5]),Object(h.a)(this.store.select("lnd")),Object(u.a)(([t,e])=>{if(t.forwarding_events){const n=[...e.allChannels,...e.closedChannels];t.forwarding_events.forEach(t=>{if(n&&n.length>0)for(let e=0;e<n.length;e++){if(n[e].chan_id.toString()===t.chan_id_in&&(t.alias_in=n[e].remote_alias?n[e].remote_alias:t.chan_id_in,t.alias_out))return;if(n[e].chan_id.toString()===t.chan_id_out&&(t.alias_out=n[e].remote_alias?n[e].remote_alias:t.chan_id_out,t.alias_in))return;e===n.length-1&&(t.alias_in||(t.alias_in=t.chan_id_in),t.alias_out||(t.alias_out=t.chan_id_out))}else t.alias_in=t.chan_id_in,t.alias_out=t.chan_id_out})}else t={};return Object(o.a)(t)}),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR","Forwarding History Failed",this.childAPIUrl+d.b.SWITCH_API,t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}getTransactionsForReport(){return this.httpClient.get(this.childAPIUrl+d.b.INVOICES_API+"?num_max_invoices=100000&index_offset=0&reversed=true").pipe(Object(a.a)(this.unSubs[5]),Object(h.a)(this.store.select("CLT"===this.lnImplementation?"cl":"ECL"===this.lnImplementation?"ecl":"lnd")),Object(u.a)(([t,e])=>Object(o.a)({payments:e.payments,invoices:t.invoices&&t.invoices.length&&t.invoices.length>0?t.invoices:t.length&&t.length>0?t:[]})),Object(l.a)(t=>(this.handleErrorWithAlert("ERROR","Invoice List Failed",this.childAPIUrl+d.b.INVOICES_API,t),Object(s.a)(t.error&&t.error.error?t.error.error:t.error?t.error:t))))}handleErrorWithoutAlert(t,e){this.store.dispatch(new p.i),this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(e)),401===e.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch(new p.x))}handleErrorWithAlert(t,e,n,i){this.logger.error(i),this.store.dispatch(new p.i),401===i.status?(this.logger.info("Redirecting to Login"),this.store.dispatch(new p.x)):this.store.dispatch(new p.C({data:{type:t,alertTitle:e,message:{code:i.status,message:i.error.error,URL:n},component:f.a}}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(m.Zb(i.b),m.Zb(b.h),m.Zb(g.b),m.Zb(_.b))},t.\u0275prov=m.Lb({token:t,factory:t.\u0275fac}),t})()},itXk:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return h});var i=n("z+Ro"),r=n("DH7j"),s=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const c={};function l(...t){let e=void 0,n=void 0;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new h(e))}class h{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new u(t,this.resultSelector))}}class u extends s.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),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++){const e=t[n];this.add(Object(o.a)(this,e,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]===c?--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)}}},jIre:function(t,e){t.exports=function(t,e){for(var n=Math.min(t.length,e.length),i=new Buffer(n),r=0;r<n;++r)i[r]=t[r]^e[r];return i}},jMqV:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return C});var i=n("9b/N"),r=n("8Y7J"),s=n("UhP/"),o=n("8LU1"),a=n("s7LF"),c=n("omvX"),l=n("YEUz");const h=["thumbContainer"],u=["toggleBar"],d=["input"],f=function(){return{enterDuration:150}},p=["*"],m=new r.s("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let b=0;const g={provide:a.k,useExisting:Object(r.X)(()=>w),multi:!0};class _{constructor(t,e){this.source=t,this.checked=e}}class y{constructor(t){this._elementRef=t}}const v=Object(s.C)(Object(s.x)(Object(s.y)(Object(s.z)(y)),"accent"));let w=(()=>{class t extends v{constructor(t,e,n,i,s,o){super(t),this._focusMonitor=e,this._changeDetectorRef=n,this.defaults=s,this._animationMode=o,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++b,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 r.o,this.toggleChange=new r.o,this.tabIndex=parseInt(i)||0}get required(){return this._required}set required(t){this._required=Object(o.c)(t)}get checked(){return this._checked}set checked(t){this._checked=Object(o.c)(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 _(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(r.Pb(r.l),r.Pb(l.h),r.Pb(r.h),r.ac("tabindex"),r.Pb(m),r.Pb(c.a,8))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(r.Pc(h,!0),r.Pc(u,!0),r.Pc(d,!0)),2&t){let t;r.vc(t=r.ec())&&(e._thumbEl=t.first),r.vc(t=r.ec())&&(e._thumbBarEl=t.first),r.vc(t=r.ec())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Yb("id",e.id),r.Eb("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),r.Hb("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:[r.Cb([g]),r.Ab],ngContentSelectors:p,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&&(r.nc(),r.Vb(0,"label",0,1),r.Vb(2,"div",2,3),r.Vb(4,"input",4,5),r.dc("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),r.Ub(),r.Vb(6,"div",6,7),r.Qb(8,"div",8),r.Vb(9,"div",9),r.Qb(10,"div",10),r.Ub(),r.Ub(),r.Ub(),r.Vb(11,"span",11,12),r.dc("cdkObserveContent",function(){return e._onLabelTextChange()}),r.Vb(13,"span",13),r.Kc(14,"\xa0"),r.Ub(),r.mc(15),r.Ub(),r.Ub()),2&t){const t=r.wc(1),n=r.wc(12);r.Eb("for",e.inputId),r.Db(2),r.Hb("mat-slide-toggle-bar-no-side-margin",!n.textContent||!n.textContent.trim()),r.Db(2),r.oc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),r.Eb("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),r.Db(5),r.oc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.rc(17,f))}},directives:[s.r,i.a],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})(),x=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},imports:[[x,s.s,s.i,i.c],x,s.i]}),t})()},jSPq:function(t,e,n){var i=n("Wogr"),r=n("JzKC");function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=r.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=new i(this.degree);e.fill(0);var n=i.concat([t,e],t.length+this.degree),s=r.mod(n,this.genPoly),o=this.degree-s.length;if(o>0){var a=new i(this.degree);return a.fill(0),s.copy(a,o),a}return s},t.exports=s},jZKg:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("HDdC"),r=n("quSY");function s(t,e){return new i.a(n=>{const i=new r.a;let s=0;return i.add(e.schedule(function(){s!==t.length?(n.next(t[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},jfd1:function(t,e,n){"use strict";const i=n("P7XM"),r=n("xZGU").Buffer,s=n("z71Z");function o(t){s.call(this,t),this.enc="pem"}i(o,s),t.exports=o,o.prototype.decode=function(t,e){const n=t.toString().split(/[\r\n]+/g),i=e.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,c=-1;for(let r=0;r<n.length;r++){const t=n[r].match(o);if(null!==t&&t[2]===i){if(-1!==a){if("END"!==t[1])break;c=r;break}if("BEGIN"!==t[1])break;a=r}}if(-1===a||-1===c)throw new Error("PEM section not found for: "+i);const l=n.slice(a+1,c).join("");l.replace(/[^a-z0-9+/=]+/gi,"");const h=r.from(l,"base64");return s.prototype.decode.call(this,h,e)}},jtHE:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("XNiG"),r=n("qgXg"),s=n("quSY"),o=n("pxpQ"),a=n("9ppp"),c=n("Ylt2");class l extends i.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 h(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 l;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?l=s.a.EMPTY:(this.observers.push(t),l=new c.a(this,t)),i&&t.add(t=new o.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(),l}_getNow(){return(this.scheduler||r.a).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,r=i.length;let s=0;for(;s<r&&!(t-i[s].time<n);)s++;return r>e&&(s=Math.max(s,r-e)),s>0&&i.splice(0,s),i}}class h{constructor(t,e){this.time=t,this.value=e}}},"k+aG":function(t,e,n){"use strict";var i=n("Oaki").Buffer,r=n("NNVn").Transform;function s(t){r.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n("2q5Q")(s,r),s.prototype._transform=function(t,e,n){var i=null;try{this.update(t,e)}catch(r){i=r}n(i)},s.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)},s.prototype.update=function(t,e){if(function(t,e){if(!i.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");i.isBuffer(t)||(t=i.from(t,e));for(var n=this._block,r=0;this._blockOffset+t.length-r>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)n[s++]=t[r++];this._update(),this._blockOffset=0}for(;r<t.length;)n[this._blockOffset++]=t[r++];for(var o=0,a=8*t.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},s.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=s},kBkV:function(t,e,n){"use strict";function i(t,e){s(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function s(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(s,this,t)):process.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?n._writableState?n._writableState.errorEmitted?process.nextTick(r,n):(n._writableState.errorEmitted=!0,process.nextTick(i,n,t)):process.nextTick(i,n,t):e?(process.nextTick(r,n),e(t)):process.nextTick(r,n)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},"kVK+":function(t,e){e.read=function(t,e,n,i,r){var s,o,a=8*r-i-1,c=(1<<a)-1,l=c>>1,h=-7,u=n?r-1:0,d=n?-1:1,f=t[e+u];for(u+=d,s=f&(1<<-h)-1,f>>=-h,h+=a;h>0;s=256*s+t[e+u],u+=d,h-=8);for(o=s&(1<<-h)-1,s>>=-h,h+=i;h>0;o=256*o+t[e+u],u+=d,h-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),s-=l}return(f?-1:1)*o*Math.pow(2,s-i)},e.write=function(t,e,n,i,r,s){var o,a,c,l=8*s-r-1,h=(1<<l)-1,u=h>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:s-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),(e+=o+u>=1?d/c:d*Math.pow(2,1-u))*c>=2&&(o++,c/=2),o+u>=h?(a=0,o=h):o+u>=1?(a=(e*c-1)*Math.pow(2,r),o+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,r),o=0));r>=8;t[n+f]=255&a,f+=p,a/=256,r-=8);for(o=o<<r|a,l+=r;l>0;t[n+f]=255&o,f+=p,o/=256,l-=8);t[n+f-p]|=128*m}},"kk9/":function(t,e,n){var i=n("e/Dd").getSymbolSize;e.getPositions=function(t){var e=i(t);return[[0,0],[e-7,0],[0,e-7]]}},l0rg:function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"b",function(){return f});var i=n("UhP/"),r=n("SVse"),s=n("8Y7J"),o=n("SCoL");const a=["*",[["mat-toolbar-row"]]],c=["*","mat-toolbar-row"];class l{constructor(t){this._elementRef=t}}const h=Object(i.x)(l);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),d=(()=>{class t extends h{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.l),s.Pb(o.a),s.Pb(r.d))},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Ib(n,u,!0),2&t){let t;s.vc(t=s.ec())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.Hb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.Ab],ngContentSelectors:c,decls:2,vars:0,template:function(t,e){1&t&&(s.nc(a),s.mc(0),s.mc(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})(),f=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},imports:[[i.i],i.i]}),t})()},l7GE:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");class r extends i.a{notifyNext(t,e,n,i,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lF1L:function(t,e,n){"use strict";var i=n("fZJM"),r=n("DLvh"),s=n("86MQ"),o=s.assert,a=s.parseBytes,c=n("OA+I"),l=n("RKMU");function h(t){if(o("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof h))return new h(t);this.curve=t=r[t].curve,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=i.sha512}t.exports=h,h.prototype.sign=function(t,e){t=a(t);var n=this.keyFromSecret(e),i=this.hashInt(n.messagePrefix(),t),r=this.g.mul(i),s=this.encodePoint(r),o=this.hashInt(s,n.pubBytes(),t).mul(n.priv()),c=i.add(o).umod(this.curve.n);return this.makeSignature({R:r,S:c,Rencoded:s})},h.prototype.verify=function(t,e,n){t=a(t),e=this.makeSignature(e);var i=this.keyFromPublic(n),r=this.hashInt(e.Rencoded(),i.pubBytes(),t),s=this.g.mul(e.S());return e.R().add(i.pub().mul(r)).eq(s)},h.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return s.intFromLE(t.digest()).umod(this.curve.n)},h.prototype.keyFromPublic=function(t){return c.fromPublic(this,t)},h.prototype.keyFromSecret=function(t){return c.fromSecret(this,t)},h.prototype.makeSignature=function(t){return t instanceof l?t:new l(this,t)},h.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},h.prototype.decodePoint=function(t){var e=(t=s.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),i=0!=(128&t[e]),r=s.intFromLE(n);return this.curve.pointFromY(r,i)},h.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},h.prototype.decodeInt=function(t){return s.intFromLE(t)},h.prototype.isPoint=function(t){return t instanceof this.pointClass}},lF6s:function(t,e,n){"use strict";n.d(e,"L",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"j",function(){return s}),n.d(e,"W",function(){return o}),n.d(e,"o",function(){return a}),n.d(e,"Z",function(){return c}),n.d(e,"n",function(){return l}),n.d(e,"X",function(){return h}),n.d(e,"l",function(){return u}),n.d(e,"T",function(){return d}),n.d(e,"hb",function(){return f}),n.d(e,"Y",function(){return p}),n.d(e,"m",function(){return m}),n.d(e,"V",function(){return b}),n.d(e,"q",function(){return g}),n.d(e,"eb",function(){return _}),n.d(e,"bb",function(){return y}),n.d(e,"U",function(){return v}),n.d(e,"s",function(){return w}),n.d(e,"gb",function(){return x}),n.d(e,"O",function(){return C}),n.d(e,"G",function(){return S}),n.d(e,"h",function(){return E}),n.d(e,"K",function(){return k}),n.d(e,"C",function(){return O}),n.d(e,"db",function(){return A}),n.d(e,"N",function(){return D}),n.d(e,"wb",function(){return I}),n.d(e,"c",function(){return T}),n.d(e,"J",function(){return L}),n.d(e,"r",function(){return P}),n.d(e,"fb",function(){return R}),n.d(e,"D",function(){return M}),n.d(e,"ib",function(){return j}),n.d(e,"R",function(){return F}),n.d(e,"S",function(){return N}),n.d(e,"t",function(){return V}),n.d(e,"jb",function(){return U}),n.d(e,"P",function(){return B}),n.d(e,"Q",function(){return z}),n.d(e,"p",function(){return H}),n.d(e,"ab",function(){return W}),n.d(e,"d",function(){return K}),n.d(e,"a",function(){return q}),n.d(e,"H",function(){return Y}),n.d(e,"cb",function(){return Z}),n.d(e,"e",function(){return X}),n.d(e,"k",function(){return G}),n.d(e,"M",function(){return $}),n.d(e,"qb",function(){return Q}),n.d(e,"w",function(){return J}),n.d(e,"v",function(){return tt}),n.d(e,"u",function(){return et}),n.d(e,"pb",function(){return nt}),n.d(e,"ub",function(){return it}),n.d(e,"rb",function(){return rt}),n.d(e,"y",function(){return st}),n.d(e,"sb",function(){return ot}),n.d(e,"A",function(){return at}),n.d(e,"tb",function(){return ct}),n.d(e,"lb",function(){return lt}),n.d(e,"i",function(){return ht}),n.d(e,"E",function(){return ut}),n.d(e,"kb",function(){return dt}),n.d(e,"xb",function(){return ft}),n.d(e,"f",function(){return pt}),n.d(e,"z",function(){return mt}),n.d(e,"F",function(){return bt}),n.d(e,"vb",function(){return gt}),n.d(e,"nb",function(){return _t}),n.d(e,"ob",function(){return yt}),n.d(e,"B",function(){return vt}),n.d(e,"mb",function(){return wt}),n.d(e,"x",function(){return xt}),n.d(e,"g",function(){return Ct}),n.d(e,"I",function(){return St});const i="RESET_ECL_STORE",r="CLEAR_EFFECT_ERROR_ECL",s="EFFECT_ERROR_ECL",o="SET_CHILD_NODE_SETTINGS_ECL",a="FETCH_INFO_ECL",c="SET_INFO_ECL",l="FETCH_FEES_ECL",h="SET_FEES_ECL",u="FETCH_CHANNELS_ECL",d="SET_ACTIVE_CHANNELS_ECL",f="SET_PENDING_CHANNELS_ECL",p="SET_INACTIVE_CHANNELS_ECL",m="FETCH_CHANNEL_STATS_ECL",b="SET_CHANNEL_STATS_ECL",g="FETCH_ONCHAIN_BALANCE_ECL",_="SET_ONCHAIN_BALANCE_ECL",y="SET_LIGHTNING_BALANCE_ECL",v="SET_CHANNELS_STATUS_ECL",w="FETCH_PEERS_ECL",x="SET_PEERS_ECL",C="SAVE_NEW_PEER_ECL",S="NEWLY_ADDED_PEER_ECL",E="DETACH_PEER_ECL",k="REMOVE_PEER_ECL",O="GET_NEW_ADDRESS_ECL",A="SET_NEW_ADDRESS_ECL",D="SAVE_NEW_CHANNEL_ECL",I="UPDATE_CHANNELS_ECL",T="CLOSE_CHANNEL_ECL",L="REMOVE_CHANNEL_ECL",P="FETCH_PAYMENTS_ECL",R="SET_PAYMENTS_ECL",M="GET_QUERY_ROUTES_ECL",j="SET_QUERY_ROUTES_ECL",F="SEND_PAYMENT_ECL",N="SEND_PAYMENT_STATUS_ECL",V="FETCH_TRANSACTIONS_ECL",U="SET_TRANSACTIONS_ECL",B="SEND_ONCHAIN_FUNDS_ECL",z="SEND_ONCHAIN_FUNDS_RES_ECL",H="FETCH_INVOICES_ECL",W="SET_INVOICES_ECL",K="CREATE_INVOICE_ECL",q="ADD_INVOICE_ECL",Y="PEER_LOOKUP_ECL",Z="SET_LOOKUP_ECL";class X{constructor(t){this.payload=t,this.type=r}}class G{constructor(t){this.payload=t,this.type=s}}class ${constructor(t){this.payload=t,this.type=i}}class Q{constructor(t){this.payload=t,this.type=o}}class J{constructor(t){this.payload=t,this.type=a}}class tt{constructor(){this.type=l}}class et{constructor(t){this.payload=t,this.type=u}}class nt{constructor(t){this.payload=t,this.type=d}}class it{constructor(t){this.payload=t,this.type=f}}class rt{constructor(t){this.payload=t,this.type=p}}class st{constructor(){this.type=g}}class ot{constructor(t){this.payload=t,this.type=y}}class at{constructor(){this.type=w}}class ct{constructor(t){this.payload=t,this.type=x}}class lt{constructor(t){this.payload=t,this.type=C}}class ht{constructor(t){this.payload=t,this.type=E}}class ut{constructor(){this.type=O}}class dt{constructor(t){this.payload=t,this.type=D}}class ft{constructor(t){this.payload=t,this.type=I}}class pt{constructor(t){this.payload=t,this.type=T}}class mt{constructor(){this.type=P}}class bt{constructor(t){this.payload=t,this.type=M}}class gt{constructor(t){this.payload=t,this.type=j}}class _t{constructor(t){this.payload=t,this.type=F}}class yt{constructor(t){this.payload=t,this.type=N}}class vt{constructor(){this.type=V}}class wt{constructor(t){this.payload=t,this.type=B}}class xt{constructor(){this.type=H}}class Ct{constructor(t){this.payload=t,this.type=K}}class St{constructor(t){this.payload=t,this.type=Y}}},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 s(t,e))}}class s{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o 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)}}},lWpZ:function(t,e,n){var i=n("Hjy1"),r=n("/ab2"),s=n("usKN"),o=n("C+gy"),a=n("roQf");function c(t,e,n){if(t=t.toLowerCase(),s[t])return r.createCipheriv(t,e,n);if(o[t])return new i({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function l(t,e,n){if(t=t.toLowerCase(),s[t])return r.createDecipheriv(t,e,n);if(o[t])return new i({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n,i;if(t=t.toLowerCase(),s[t])n=s[t].key,i=s[t].iv;else{if(!o[t])throw new TypeError("invalid suite type");n=8*o[t].key,i=o[t].iv}var r=a(e,!1,n,i);return c(t,r.key,r.iv)},e.createCipheriv=e.Cipheriv=c,e.createDecipher=e.Decipher=function(t,e){var n,i;if(t=t.toLowerCase(),s[t])n=s[t].key,i=s[t].iv;else{if(!o[t])throw new TypeError("invalid suite type");n=8*o[t].key,i=o[t].iv}var r=a(e,!1,n,i);return l(t,r.key,r.iv)},e.createDecipheriv=e.Decipheriv=l,e.listCiphers=e.getCiphers=function(){return Object.keys(o).concat(r.getCiphers())}},lYJp:function(t,e,n){var i=n("e/Dd"),r=i.getBCHDigit(1335);e.getEncodedBits=function(t,e){for(var n=t.bit<<3|e,s=n<<10;i.getBCHDigit(s)-r>=0;)s^=1335<<i.getBCHDigit(s)-r;return 21522^(n<<10|s)}},lm0R:function(t,e,n){"use strict";t.exports="undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick:function(t,e,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var r,s,o=arguments.length;switch(o){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,n)});case 4:return process.nextTick(function(){t.call(null,e,n,i)});default:for(r=new Array(o-1),s=0;s<r.length;)r[s++]=arguments[s];return process.nextTick(function(){t.apply(null,r)})}}}:process},mAz1:function(t,e,n){var i=n("Oaki").Buffer,r=n("OZ/i"),s=n("MzeL").ec,o=n("Ku4m"),a=n("zZGF");function c(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,n,l,h){var u=o(n);if("ec"===u.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var i=a[n.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));return new s(i).verify(e,t,n.data.subjectPrivateKey.data)}(t,e,u)}if("dsa"===u.type){if("dsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var i=n.data.p,s=n.data.q,a=n.data.g,l=n.data.pub_key,h=o.signature.decode(t,"der"),u=h.s,d=h.r;c(u,s),c(d,s);var f=r.mont(i),p=u.invm(s);return 0===a.toRed(f).redPow(new r(e).mul(p).mod(s)).fromRed().mul(l.toRed(f).redPow(d.mul(p).mod(s)).fromRed()).mod(i).mod(s).cmp(d)}(t,e,u)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");e=i.concat([h,e]);for(var d=u.modulus.byteLength(),f=[1],p=0;e.length+f.length+2<d;)f.push(255),p++;f.push(0);for(var m=-1;++m<e.length;)f.push(e[m]);f=i.from(f);var b=r.mont(u.modulus);t=(t=new r(t).toRed(b)).redPow(new r(u.publicExponent)),t=i.from(t.fromRed().toArray());var g=p<8?1:0;for(d=Math.min(t.length,f.length),t.length!==f.length&&(g=1),m=-1;++m<d;)g|=t[m]^f[m];return 0===g}},mObS:function(t,e,n){"use strict";var i=n("P7XM"),r=n("9XZ3"),s=n("tcrS"),o=n("afKu"),a=n("ZDAU");function c(t){a.call(this,"digest"),this._hash=t}i(c,a),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new r:"rmd160"===t||"ripemd160"===t?new s:new c(o(t))}},mZtN:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("XNiG"),r=n("8Y7J");let s=(()=>{class t{constructor(){this.sessionSub=new i.a}watchSession(){return this.sessionSub.asObservable()}getItem(t){return sessionStorage.getItem(t)}setItem(t,e){sessionStorage.setItem(t,e),this.sessionSub.next(sessionStorage)}removeItem(t){sessionStorage.removeItem(t),this.sessionSub.next(sessionStorage)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Lb({token:t,factory:t.\u0275fac}),t})()},mlxB:function(t,e,n){"use strict";function i(t){return t instanceof Date&&!isNaN(+t)}n.d(e,"a",function(){return i})},mrSG:function(t,e,n){"use strict";function i(t,e,n,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(o=(s<3?r(o):s>3?r(e,n,o):r(e,n))||o);return s>3&&o&&Object.defineProperty(e,n,o),o}n.d(e,"a",function(){return i})},n53Y:function(t,e){var n;n=process.browser?"utf-8":process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",function(){return i})},nSiv:function(t,e,n){"use strict";t.exports=r;var i=n("8cin");function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}n("2q5Q")(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("7o/Q"),r=n("quSY");function s(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends i.a{constructor(t,e){super(t),this.add(new r.a(e))}}},nZSm:function(t,e,n){var i=n("u/Db"),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(t){this.mode=i.ALPHANUMERIC,this.data=t}s.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var n=45*r.indexOf(this.data[e]);n+=r.indexOf(this.data[e+1]),t.put(n,11)}this.data.length%2&&t.put(r.indexOf(this.data[e]),6)},t.exports=s},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()}},o4Yh:function(t,e,n){"use strict";n.d(e,"a",function(){return W}),n.d(e,"b",function(){return q}),n.d(e,"c",function(){return U}),n.d(e,"d",function(){return z}),n.d(e,"e",function(){return B}),n.d(e,"f",function(){return H});var i=n("8Y7J"),r=n("8LU1"),s=n("XNiG"),o=n("quSY"),a=n("CtHx");let c=0;const l=new i.s("CdkAccordion");let h=(()=>{class t{constructor(){this._stateChanges=new s.a,this._openCloseAllActions=new s.a,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=Object(r.c)(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.Kb({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i.Cb([{provide:l,useExisting:t}]),i.Bb]}),t})(),u=0,d=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=o.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-"+u++,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=Object(r.c)(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=Object(r.c)(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.Pb(l,12),i.Pb(i.h),i.Pb(a.d))},t.\u0275dir=i.Kb({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:l,useValue:void 0}])]}),t})(),f=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})();var p=n("1z/I"),m=n("SVse"),b=n("UhP/"),g=n("YEUz"),_=n("/uUt"),y=n("JX91"),v=n("pLZG"),w=n("IzEk"),x=n("Ht+U"),C=n("omvX"),S=n("EY2u"),E=n("VRyK"),k=n("GS7A");const O=["body"];function A(t,e){}const D=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],I=["mat-expansion-panel-header","*","mat-action-row"];function T(t,e){if(1&t&&i.Qb(0,"span",2),2&t){const t=i.hc();i.oc("@indicatorRotate",t._getExpandedState())}}const L=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],P=["mat-panel-title","mat-panel-description","*"],R=new i.s("MAT_ACCORDION"),M="225ms cubic-bezier(0.4,0.0,0.2,1)",j={indicatorRotate:Object(k.m)("indicatorRotate",[Object(k.j)("collapsed, void",Object(k.k)({transform:"rotate(0deg)"})),Object(k.j)("expanded",Object(k.k)({transform:"rotate(180deg)"})),Object(k.l)("expanded <=> collapsed, void => collapsed",Object(k.e)(M))]),bodyExpansion:Object(k.m)("bodyExpansion",[Object(k.j)("collapsed, void",Object(k.k)({height:"0px",visibility:"hidden"})),Object(k.j)("expanded",Object(k.k)({height:"*",visibility:"visible"})),Object(k.l)("expanded <=> collapsed, void => collapsed",Object(k.e)(M))])};let F=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.O))},t.\u0275dir=i.Kb({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),N=0;const V=new i.s("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let U=(()=>{class t extends d{constructor(t,e,n,r,o,a,c){super(t,e,n),this._viewContainerRef=r,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new i.o,this.afterCollapse=new i.o,this._inputChanges=new s.a,this._headerId="mat-expansion-panel-header-"+N++,this._bodyAnimationDone=new s.a,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe(Object(_.a)((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())}),c&&(this.hideToggle=c.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=Object(r.c)(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(Object(y.a)(null),Object(v.a)(()=>this.expanded&&!this._portal),Object(w.a)(1)).subscribe(()=>{this._portal=new p.i(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.Pb(R,12),i.Pb(i.h),i.Pb(a.d),i.Pb(i.S),i.Pb(m.d),i.Pb(C.a,8),i.Pb(V,8))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,F,!0),2&t){let t;i.vc(t=i.ec())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&i.Pc(O,!0),2&t){let t;i.vc(t=i.ec())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&i.Hb("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:R,useValue:void 0}]),i.Ab,i.Bb],ngContentSelectors:I,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.nc(D),i.mc(0),i.Vb(1,"div",0,1),i.dc("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),i.Vb(3,"div",2),i.mc(4,1),i.Ic(5,A,0,0,"ng-template",3),i.Ub(),i.mc(6,2),i.Ub()),2&t&&(i.Db(1),i.oc("@bodyExpansion",e._getExpandedState())("id",e.id),i.Eb("aria-labelledby",e._headerId),i.Db(4),i.oc("cdkPortalOutlet",e._portal))},directives:[p.c],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:[j.bodyExpansion]},changeDetection:0}),t})(),B=(()=>{class t{constructor(t,e,n,i,r,s){this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=s,this._parentChangeSubscription=o.a.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe(Object(v.a)(t=>!(!t.hideToggle&&!t.togglePosition))):S.a;this._parentChangeSubscription=Object(E.a)(t.opened,t.closed,a,t._inputChanges.pipe(Object(v.a)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Object(v.a)(()=>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 x.m:case x.e:Object(x.r)(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.Pb(U,1),i.Pb(i.l),i.Pb(g.h),i.Pb(i.h),i.Pb(V,8),i.Pb(C.a,8))},t.\u0275cmp=i.Jb({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.dc("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.Fc("height",e._getHeaderHeight()),i.Hb("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:P,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.nc(L),i.Vb(0,"span",0),i.mc(1),i.mc(2,1),i.mc(3,2),i.Ub(),i.Ic(4,T,1,1,"span",1)),2&t&&(i.Db(4),i.oc("ngIf",e._showToggle()))},directives:[m.o],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:[j.indicatorRotate]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),W=(()=>{class t extends h{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=Object(r.c)(t)}ngAfterContentInit(){this._headers.changes.pipe(Object(y.a)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new g.g(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return t.\u0275fac=function(e){return K(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,B,!0),2&t){let t;i.vc(t=i.ec())&&(e._headers=t)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&i.Hb("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[i.Cb([{provide:R,useExisting:t}]),i.Ab]}),t})();const K=i.Xb(W);let q=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[m.c,b.i,f,p.h]]}),t})()},oJl4:function(t,e,n){e.pbkdf2=n("IG1u"),e.pbkdf2Sync=n("4Hv8")},olUY:function(t,e,n){var i=n("P7XM"),r=n("tnIz"),s=n("hwdV").Buffer,o=[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],a=new Array(64);function c(){this.init(),this._w=a,r.call(this,64,56)}function l(t,e,n){return n^t&(e^n)}function h(t,e,n){return t&e|n&(t|e)}function u(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}i(c,r),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,r=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,b=0|this._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+f(n[g-15])+n[g-16];for(var _=0;_<64;++_){var y=b+d(c)+l(c,p,m)+o[_]+n[_]|0,v=u(i)+h(i,r,s)|0;b=m,m=p,p=c,c=a+y|0,a=s,s=r,r=i,i=y+v|0}this._a=i+this._a|0,this._b=r+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},c.prototype._hash=function(){var t=s.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=c},omvX:function(t,e,n){"use strict";n.d(e,"a",function(){return Te}),n.d(e,"b",function(){return Pe});var i=n("8Y7J"),r=n("cUpR"),s=n("GS7A");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new s.d;case 1:return t[0];default:return new s.n(t)}}function c(t,e,n,i,r={},o={}){const a=[],c=[];let l=-1,h=null;if(i.forEach(t=>{const n=t.offset,i=n==l,u=i&&h||{};Object.keys(t).forEach(n=>{let i=n,c=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),c){case s.o:c=r[n];break;case s.a:c=o[n];break;default:c=e.normalizeStyleValue(n,i,c,a)}u[i]=c}),i||c.push(u),h=u,l=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,r=u(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),s=t._data;return null!=s&&(r._data=s),r}function u(t,e,n,i,r="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function d(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 f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let p=(t,e)=>!1,m=(t,e)=>!1,b=(t,e,n)=>[];const g=o();(g||"undefined"!=typeof Element)&&(p=(t,e)=>t.contains(e),m=(()=>{if(g||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]):m}})(),b=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t<n.length;t++)i.push(n[t])}else{const n=t.querySelector(e);n&&i.push(n)}return i});let _=null,y=!1;function v(t){_||(_=("undefined"!=typeof document?document.body:null)||{},y=!!_.style&&"WebkitAppearance"in _.style);let e=!0;return _.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _.style,!e&&y)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _.style),e}const w=m,x=p,C=b;function S(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 E=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,r,o=[],a){return new s.d(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.NOOP=new E,t})();const O="ng-enter",A="ng-leave",D="ng-trigger",I=".ng-trigger",T="ng-animating",L=".ng-animating";function P(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:R(parseFloat(e[1]),e[2])}function R(t,e){switch(e){case"s":return 1e3*t;default:return t}}function M(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,s="";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=R(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=R(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else i=t;if(!n){let n=!1,s=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(s,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:s}}(t,e,n)}function j(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function F(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else j(t,n);return n}function N(t,e,n){return n?e+":"+n+";":""}function V(t){let e="";for(let n=0;n<t.style.length;n++){const i=t.style.item(n);e+=N(0,i,t.style.getPropertyValue(i))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=N(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function U(t,e,n){t.style&&(Object.keys(e).forEach(i=>{const r=Z(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),o()&&V(t))}function B(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Z(e);t.style[n]=""}),o()&&V(t))}function z(t){return Array.isArray(t)?1==t.length?t[0]:Object(s.i)(t):t}const H=new RegExp("{{\\s*(.+?)\\s*}}","g");function W(t){let e=[];if("string"==typeof t){let n;for(;n=H.exec(t);)e.push(n[1]);H.lastIndex=0}return e}function K(t,e,n){const i=t.toString(),r=i.replace(H,(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 q(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Y=/-+([a-z0-9])/g;function Z(t){return t.replace(Y,(...t)=>t[1].toUpperCase())}function X(t,e){return 0===t||0===e}function G(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(t=>{s.hasOwnProperty(t)||o.push(t),s[t]=n[t]}),o.length)for(var r=1;r<e.length;r++){let n=e[r];o.forEach(function(e){n[e]=Q(t,e)})}}return e}function $(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 Q(t,e){return window.getComputedStyle(t)[e]}const J="*";function tt(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],s=i[2],o=i[3];e.push(it(r,o)),"<"!=s[0]||r==J&&o==J||e.push(it(o,r))}(t,n,e)):n.push(t),n}const et=new Set(["true","1"]),nt=new Set(["false","0"]);function it(t,e){const n=et.has(t)||nt.has(t),i=et.has(e)||nt.has(e);return(r,s)=>{let o=t==J||t==r,a=e==J||e==s;return!o&&n&&"boolean"==typeof r&&(o=r?et.has(t):nt.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?et.has(e):nt.has(e)),o&&a}}const rt=new RegExp("s*:selfs*,?","g");function st(t,e,n){return new ot(t).build(e,n)}class ot{constructor(t){this._driver=t}build(t,e){const n=new at(e);return this._resetContextStyleTimingState(n),$(this,z(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=[],s=[];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,s.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:s,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,s=i||{};if(n.styles.forEach(t=>{if(ct(t)){const e=t;Object.keys(e).forEach(t=>{W(e[t]).forEach(t=>{s.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=q(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=$(this,z(t.animation),e);return{type:1,matchers:tt(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:lt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>$(this,t,e)),options:lt(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=$(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:lt(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 ht(M(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||M(i,e),ht(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let r=t.styles?t.styles:Object(s.k)({});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=Object(s.k)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(r,e);a.isEmptyStep=o,i=a}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==s.a?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(ct(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 s=e.collectedStyles[e.currentQuerySelector],o=s[n];let a=!0;o&&(r!=i&&r>=o.startTime&&i<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=o.startTime),a&&(s[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=W(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 s=!1,o=!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(ct(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(ct(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),o=o||l<0||l>1,s=s||l<a,a=l,r.push(l),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");const l=t.steps.length;let h=0;i>0&&i<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(l-1));const u=l-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return c.forEach((t,i)=>{const s=h>0?i==u?1:h*i:r[i],o=s*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=s,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:$(this,z(t.animation),e),options:lt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:lt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:lt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,s]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,L),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,d(e.collectedStyles,e.currentQuerySelector,{});const o=$(this,z(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:o,originalSelector:t.selector,options:lt(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"}:M(t.timings,e.errors,!0);return{type:12,animation:$(this,z(t.animation),e),timings:n,options:null}}}class at{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 ct(t){return!Array.isArray(t)&&"object"==typeof t}function lt(t){var e;return t?(t=j(t)).params&&(t.params=(e=t.params)?j(e):null):t={},t}function ht(t,e,n){return{duration:t,delay:e,easing:n}}function ut(t,e,n,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class dt{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 ft=new RegExp(":enter","g"),pt=new RegExp(":leave","g");function mt(t,e,n,i,r,s={},o={},a,c,l=[]){return(new bt).buildKeyframes(t,e,n,i,r,s,o,a,c,l)}class bt{buildKeyframes(t,e,n,i,r,s,o,a,c,l=[]){c=c||new dt;const h=new _t(t,e,c,i,r,l,[]);h.options=a,h.currentTimeline.setStyles([s],null,h.errors,a),$(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[ut(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,s=this._visitSubInstructions(n,i,i.options);r!=s&&e.transformIntoNewTimeline(s)}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?P(n.duration):null,s=null!=n.delay?P(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,s);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),$(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=gt);const t=P(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>$(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?P(t.options.delay):0;t.steps.forEach(s=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),$(this,s,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.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 M(e.params?K(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,s=e.createSubContext().currentTimeline;s.easing=n.easing,t.styles.forEach(t=>{s.forwardTime((t.offset||0)*r),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?P(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=gt);let s=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);r&&o.delayNextStep(r),n===e.element&&(a=o.currentTimeline),$(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),o=s*(e.currentQueryTotal-1);let a=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;$(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const gt={};class _t{constructor(t,e,n,i,r,s,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=gt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new yt(this._driver,e,0),o.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=P(n.duration)),null!=n.delay&&(i.delay=P(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]=K(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 _t(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=gt,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 vt(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,s){let o=[];if(i&&o.push(this.element),t.length>0){t=(t=t.replace(ft,"."+this._enterClassName)).replace(pt,"."+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)),o.push(...e)}return r||0!=o.length||s.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class yt{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 yt(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]||s.a,this._currentKeyframe[t]=s.a}),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]=s.a})):F(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=K(o[t],r,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:s.a),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 a=F(r,!0);Object.keys(a).forEach(n=>{const i=a[n];i==s.o?t.add(n):i==s.a&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const r=t.size?q(t.values()):[],o=e.size?q(e.values()):[];if(n){const t=i[0],e=j(t);t.offset=0,e.offset=1,i=[t,e]}return ut(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}}class vt extends yt{constructor(t,e,n,i,r,s,o=!1){super(t,e,s.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.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=[],s=n+e,o=e/s,a=F(t[0],!1);a.offset=0,r.push(a);const c=F(t[0],!1);c.offset=wt(o),r.push(c);const l=t.length-1;for(let i=1;i<=l;i++){let o=F(t[i],!1);o.offset=wt((e+o.offset*n)/s),r.push(o)}n=s,e=0,i="",t=r}return ut(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function wt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class xt{}class Ct extends xt{normalizePropertyName(t,e){return Z(t)}normalizeStyleValue(t,e,n,i){let r="";const s=n.toString().trim();if(St[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 s+r}}const St=(()=>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 Et(t,e,n,i,r,s,o,a,c,l,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:h,totalTime:u,errors:d}}const kt={};class Ot{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],s=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):s}build(t,e,n,i,r,s,o,a,c,l){const h=[],u=this.ast.options&&this.ast.options.params||kt,f=this.buildStyles(n,o&&o.params||kt,h),p=a&&a.params||kt,m=this.buildStyles(i,p,h),b=new Set,g=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},u),p)},w=l?[]:mt(t,e,this.ast.animation,r,s,f,m,v,c,h);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),h.length)return Et(e,this._triggerName,n,i,y,f,m,[],[],g,_,x,h);w.forEach(t=>{const n=t.element,i=d(g,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=d(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&b.add(n)});const C=q(b.values());return Et(e,this._triggerName,n,i,y,f,m,w,C,g,_,x)}}class At{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=j(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 s=r[t];s.length>1&&(s=K(s,i,e)),n[t]=s})}}),n}}class Dt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new At(t.style,t.options&&t.options.params||{})}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Ot(t,e,this.states))}),this.fallbackTransition=new Ot(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 It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Tt=new dt;class Lt{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=st(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=c(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 c=new Map;if(r?(o=mt(this._driver,e,r,O,A,{},{},n,Tt,i),o.forEach(t=>{const e=d(c,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"));c.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,s.a)})});const l=a(o.map(t=>{const e=c.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}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=u(e,"","","");return l(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 Pt="ng-animate-queued",Rt="ng-animate-disabled",Mt=".ng-animate-disabled",jt=[],Ft={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Nt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Vt{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=j(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 Ut="void",Bt=new Vt(Ut);class zt{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,Xt(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 s=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};s.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Xt(t,D),Xt(t,"ng-trigger-"+e),a[e]=Bt),()=>{this._engine.afterFlush(()=>{const t=s.indexOf(o);t>=0&&s.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),s=new Wt(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Xt(t,D),Xt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new Vt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=Bt),c.value!==Ut&&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(()=>{B(t,n),U(t,i)})}return}const l=d(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=r.matchTransition(a.value,c.value,t,c.params),u=!1;if(!h){if(!i)return;h=r.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:c,player:s,isFallbackTransition:u}),u||(Xt(t,Pt),s.onStart(()=>{Gt(t,Pt)})),s.onDone(()=>{let e=this.players.indexOf(s);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(s);t>=0&&n.splice(t,1)}}),this.players.push(s),l.push(s),s}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,I,!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 s=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Ut,i);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(s).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,s=this._engine.statesByElement.get(t)[i]||Bt,o=new Vt(Ut),a=new Wt(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:r,fromState:s,toState:o,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!==Ft||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Xt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,s=this._elementListeners.get(r);s&&s.forEach(e=>{if(e.name==n.triggerName){const i=u(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,l(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 Ht{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 zt(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(Kt(e)){const r=this._fetchNamespace(t);if(r)return r.trigger(e,n,i),!0}return!1}insertNode(t,e,n,i){if(!Kt(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),Xt(t,Rt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Gt(t,Rt))}removeNode(t,e,n,i){if(Kt(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 Kt(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,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,L,!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 a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Ft,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Mt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Mt,!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++)Xt(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?a(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 dt,i=[],r=new Map,o=[],c=new Map,l=new Map,h=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)u.add(e[n])});const f=this.bodyNode,p=Array.from(this.statesByElement.keys()),m=Zt(p,this.collectedEnterElements),b=new Map;let g=0;m.forEach((t,e)=>{const n=O+g++;b.set(e,n),t.forEach(t=>Xt(t,n))});const _=[],y=new Set,v=new Set;for(let s=0;s<this.collectedLeaveElements.length;s++){const t=this.collectedLeaveElements[s],e=t.__ng_removed;e&&e.setForRemoval&&(_.push(t),y.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>y.add(t)):v.add(t))}const w=new Map,x=Zt(p,Array.from(y));x.forEach((t,e)=>{const n=A+g++;w.set(e,n),t.forEach(t=>Xt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=b.get(e);t.forEach(t=>Gt(t,n))}),x.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Gt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],S=[];for(let s=this._namespaceList.length-1;s>=0;s--)this._namespaceList[s].drainQueuedTransitions(e).forEach(t=>{const e=t.player,r=t.element;if(C.push(e),this.collectedEnterElements.length){const t=r.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const s=!f||!this.driver.containsElement(f,r),a=w.get(r),u=b.get(r),p=this._buildInstruction(t,n,u,a,s);if(p.errors&&p.errors.length)S.push(p);else{if(s)return e.onStart(()=>B(r,p.fromStyles)),e.onDestroy(()=>U(r,p.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>B(r,p.fromStyles)),e.onDestroy(()=>U(r,p.toStyles)),void i.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,p.timelines),o.push({instruction:p,player:e,element:r}),p.queriedElements.forEach(t=>d(c,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=l.get(e);t||l.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=h.get(e);i||h.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(S.length){const t=[];S.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const E=new Map,k=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(k.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,E))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(E,e,[]).push(t),t.destroy()})});const D=_.filter(t=>Jt(t,l,h)),I=new Map;Yt(I,this.driver,v,h,s.a).forEach(t=>{Jt(t,l,h)&&D.push(t)});const T=new Map;m.forEach((t,e)=>{Yt(T,this.driver,new Set(t),l,s.o)}),D.forEach(t=>{const e=I.get(t),n=T.get(t);I.set(t,Object.assign(Object.assign({},e),n))});const P=[],R=[],M={};o.forEach(t=>{const{element:e,player:s,instruction:o}=t;if(n.has(e)){if(u.has(e))return s.onDestroy(()=>U(e,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void i.push(s);let t=M;if(k.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=k.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>k.set(e,t))}const n=this._buildAnimation(s.namespaceId,o,E,r,T,I);if(s.setRealPlayer(n),t===M)P.push(s);else{const e=this.playersByElement.get(t);e&&e.length&&(s.parentPlayer=a(e)),i.push(s)}}else B(e,o.fromStyles),s.onDestroy(()=>U(e,o.toStyles)),R.push(s),u.has(e)&&i.push(s)}),R.forEach(t=>{const e=r.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let s=0;s<_.length;s++){const t=_[s],e=t.__ng_removed;if(Gt(t,A),e&&e.hasAnimation)continue;let n=[];if(c.size){let e=c.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,L,!0);for(let t=0;t<i.length;t++){let e=c.get(i[t]);e&&e.length&&n.push(...e)}}const i=n.filter(t=>!t.destroyed);i.length?$t(this,t,i):this.processLeaveNode(t)}return _.length=0,P.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),P}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 s=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(s=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Ut;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&s.push(e)})}}return(n||i)&&(s=s.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),s}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,c=d(n,t,[]);this._getPreviousPlayers(t,a,r,s,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}B(i,e.fromStyles)}_buildAnimation(t,e,n,i,r,o){const l=e.triggerName,h=e.element,u=[],f=new Set,p=new Set,m=e.timelines.map(e=>{const a=e.element;f.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new s.d(e.duration,e.delay);const m=a!==h,b=function(t){const e=[];return Qt(t,e),e}((n.get(a)||jt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),g=r.get(a),_=o.get(a),y=c(0,this._normalizer,0,e.keyframes,g,_),v=this._buildPlayer(e,y,b);if(e.subTimeline&&i&&p.add(a),m){const e=new Wt(t,l,a);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{d(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))}),f.forEach(t=>Xt(t,T));const b=a(m);return b.onDestroy(()=>{f.forEach(t=>Gt(t,T)),U(h,e.toStyles)}),p.forEach(t=>{d(i,t,[]).push(b)}),b}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new s.d(t.duration,t.delay)}}class Wt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new s.d,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=>l(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){d(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 Kt(t){return t&&1===t.nodeType}function qt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Yt(t,e,n,i,r){const s=[];n.forEach(t=>s.push(qt(t)));const o=[];i.forEach((n,i)=>{const s={};n.forEach(t=>{const n=s[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=Nt,o.push(i))}),t.set(i,s)});let a=0;return n.forEach(t=>qt(t,s[a++])),o}function Zt(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;function s(t){if(!t)return 1;let e=r.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:i.has(o)?1:s(o),r.set(t,e),e}return e.forEach(t=>{const e=s(t);1!==e&&n.get(e).push(t)}),n}function Xt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Gt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function $t(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Qt(t,e){for(let n=0;n<t.length;n++){const i=t[n];i instanceof s.n?Qt(i.players,e):e.push(i)}}function Jt(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 te{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ht(t,e,n),this._timelineEngine=new Lt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const s=t+"-"+i;let o=this._triggerCache[s];if(!o){const t=[],e=st(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 - ")}`);o=function(t,e){return new Dt(t,e)}(i,e),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(e,i,o)}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]=f(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]=f(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 ee(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=ie(e[0]),e.length>1&&(i=ie(e[e.length-1]))):e&&(n=ie(e)),n||i?new ne(t,n,i):null}let ne=(()=>{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&&U(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(U(this._element,this._initialStyles),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(B(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),U(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ie(t){let e=null;const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];re(r)&&(e=e||{},e[r]=t[r])}return e}function re(t){return"display"===t||"position"===t}const se="animation",oe="animationend";class ae{constructor(t,e,n,i,r,s,o){this._element=t,this._name=e,this._duration=n,this._delay=i,this._easing=r,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=fe(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}`),de(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),ue(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ce(this._element,this._name,"paused")}resume(){ce(this._element,this._name,"running")}setPosition(t){const e=le(this._element,this._name);this._position=t*this._duration,de(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(),ue(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=fe(t,"").split(","),i=he(n,e);i>=0&&(n.splice(i,1),de(t,"",n.join(",")))}(this._element,this._name))}}function ce(t,e,n){de(t,"PlayState",n,le(t,e))}function le(t,e){const n=fe(t,"");return n.indexOf(",")>0?he(n.split(","),e):he([n],e)}function he(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function ue(t,e,n){n?t.removeEventListener(oe,e):t.addEventListener(oe,e)}function de(t,e,n,i){const r=se+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 fe(t,e){return t.style[se+e]||""}class pe{constructor(t,e,n,i,r,s,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"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 ae(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]:Q(this.element,n))})}this.currentSnapshot=t}}class me extends s.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=S(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 be{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>S(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 s=document.createElement("style");return s.textContent=i,s}animate(t,e,n,i,r,s=[],o){const a=s.filter(t=>t instanceof pe),c={};X(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=G(t,e,c));if(0==n)return new me(t,l);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=ee(t,e),f=new pe(t,e,h,n,i,r,l,d);return f.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),f}}class ge{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]:Q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _e{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new be}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,n){return C(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,s);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const c={},l=s.filter(t=>t instanceof ge);X(n,i)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const h=ee(t,e=G(t,e=e.map(t=>F(t,!1)),c));return new ge(t,e,a,h)}}function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=n("SVse");let we=(()=>{class t extends s.b{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)?Object(s.i)(t):t;return Se(this._renderer,null,e,"register",[n]),new xe(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(i.H),i.Zb(ve.d))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();class xe extends s.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Ce(this._id,t,e||{},this._renderer)}}class Ce{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 Se(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(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function Se(t,e,n,i,r){return t.setProperty(e,`@@${n}:${i}`,r)}const Ee="@",ke="@.disabled";let Oe=(()=>{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 Ae("",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 s=e=>{Array.isArray(e)?e.forEach(s):this.engine.registerTrigger(i,r,t,e.name,e)};return e.data.animation.forEach(s),new De(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.Zb(i.H),i.Zb(te),i.Zb(i.B))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();class Ae{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,i=!0){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}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)==Ee&&e==ke?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 De extends Ae{constructor(t,e,n,i){super(e,n,i),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Ee?"."==e.charAt(1)&&e==ke?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)==Ee){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),s="";return r.charAt(0)!=Ee&&([r,s]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(r)),this.engine.listen(this.namespaceId,i,r,s,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Ie=(()=>{class t extends te{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(ve.d),i.Zb(k),i.Zb(xt))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const Te=new i.s("AnimationModuleType"),Le=[{provide:k,useFactory:function(){return"function"==typeof ye()?new _e:new be}},{provide:Te,useValue:"BrowserAnimations"},{provide:s.b,useClass:we},{provide:xt,useFactory:function(){return new Ct}},{provide:te,useClass:Ie},{provide:i.H,useFactory:function(t,e,n){return new Oe(t,e,n)},deps:[r.e,te,i.B]}];let Pe=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:Le,imports:[r.a]}),t})()},pLZG: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){return n.lift(new s(t,e))}}class s{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends i.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)}}},pMoy:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return C});var i=n("8LU1"),r=n("8Y7J"),s=n("s7LF"),o=n("UhP/"),a=n("omvX"),c=n("9b/N"),l=n("YEUz");const h=["input"],u=function(){return{enterDuration:150}},d=["*"],f=new r.s("mat-checkbox-default-options",{providedIn:"root",factory:p});function p(){return{color:"accent",clickAction:"check-indeterminate"}}let m=0;const b=p(),g={provide:s.k,useExisting:Object(r.X)(()=>w),multi:!0};class _{}class y{constructor(t){this._elementRef=t}}const v=Object(o.C)(Object(o.x)(Object(o.y)(Object(o.z)(y))));let w=(()=>{class t extends v{constructor(t,e,n,i,s,o,a){super(t),this._changeDetectorRef=e,this._focusMonitor=n,this._ngZone=i,this._animationMode=o,this._options=a,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++m,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new r.o,this.indeterminateChange=new r.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||b,this.color=this.defaultColor=this._options.color||b.color,this.tabIndex=parseInt(s)||0}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=Object(i.c)(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=Object(i.c)(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=Object(i.c)(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 _;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const n=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===n?this.disabled||"noop"!==n||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==n&&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)(r.Pb(r.l),r.Pb(r.h),r.Pb(l.h),r.Pb(r.B),r.ac("tabindex"),r.Pb(a.a,8),r.Pb(f,8))},t.\u0275cmp=r.Jb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(r.Pc(h,!0),r.Pc(o.r,!0)),2&t){let t;r.vc(t=r.ec())&&(e._inputElement=t.first),r.vc(t=r.ec())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Yb("id",e.id),r.Eb("tabindex",null),r.Hb("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:[r.Cb([g]),r.Ab],ngContentSelectors:d,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&&(r.nc(),r.Vb(0,"label",0,1),r.Vb(2,"span",2),r.Vb(3,"input",3,4),r.dc("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),r.Ub(),r.Vb(5,"span",5),r.Qb(6,"span",6),r.Ub(),r.Qb(7,"span",7),r.Vb(8,"span",8),r.gc(),r.Vb(9,"svg",9),r.Qb(10,"path",10),r.Ub(),r.fc(),r.Qb(11,"span",11),r.Ub(),r.Ub(),r.Vb(12,"span",12,13),r.dc("cdkObserveContent",function(){return e._onLabelTextChange()}),r.Vb(14,"span",14),r.Kc(15,"\xa0"),r.Ub(),r.mc(16),r.Ub(),r.Ub()),2&t){const t=r.wc(1),n=r.wc(13);r.Eb("for",e.inputId),r.Db(2),r.Hb("mat-checkbox-inner-container-no-side-margin",!n.textContent||!n.textContent.trim()),r.Db(1),r.oc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),r.Eb("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),r.Db(2),r.oc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",r.rc(19,u))}},directives:[o.r,c.a],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{display:inline-block;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{display:block;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})(),x=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=r.Nb({type:t}),t.\u0275inj=r.Mb({factory:function(e){return new(e||t)},imports:[[o.s,o.i,c.c,x],o.i,x]}),t})()},pu8Q:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return _});var i=n("8Y7J"),r=n("SVse"),s=n("UhP/"),o=n("8LU1"),a=n("SCoL"),c=n("omvX");function l(t,e){if(1&t&&(i.gc(),i.Qb(0,"circle",3)),2&t){const t=i.hc();i.Fc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(i.gc(),i.Qb(0,"circle",3)),2&t){const t=i.hc();i.Fc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function u(t,e){if(1&t&&(i.gc(),i.Qb(0,"circle",3)),2&t){const t=i.hc();i.Fc("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}function d(t,e){if(1&t&&(i.gc(),i.Qb(0,"circle",3)),2&t){const t=i.hc();i.Fc("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),i.Eb("r",t._getCircleRadius())}}const f=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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 p{constructor(t){this._elementRef=t}}const m=Object(s.x)(p,"primary"),b=new i.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let g=(()=>{class t extends m{constructor(e,n,i,r,s){super(e),this._elementRef=e,this._document=i,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(i.head)||o.set(i.head,new Set([100])),this._fallbackAnimation=n.EDGE||n.TRIDENT,this._noopAnimations="NoopAnimations"===r&&!!s&&!s._forceAnimations,s&&(s.diameter&&(this.diameter=s.diameter),s.strokeWidth&&(this.strokeWidth=s.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(o.f)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(o.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(o.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(a.c)(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",this._spinnerAnimationLabel),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._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(a.a),i.Pb(r.d,8),i.Pb(c.a,8),i.Pb(b))},t.\u0275cmp=i.Jb({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.Fc("width",e.diameter,"px")("height",e.diameter,"px"),i.Hb("_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.gc(),i.Vb(0,"svg",0),i.Ic(1,l,1,9,"circle",1),i.Ic(2,h,1,7,"circle",2),i.Ub()),2&t&&(i.Fc("width",e.diameter,"px")("height",e.diameter,"px"),i.oc("ngSwitch","indeterminate"===e.mode),i.Eb("viewBox",e._getViewBox()),i.Db(1),i.oc("ngSwitchCase",!0),i.Db(1),i.oc("ngSwitchCase",!1))},directives:[r.q,r.r],styles:[f],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),_=(()=>{class t extends g{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.Pb(i.l),i.Pb(a.a),i.Pb(r.d,8),i.Pb(c.a,8),i.Pb(b))},t.\u0275cmp=i.Jb({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.Fc("width",e.diameter,"px")("height",e.diameter,"px"),i.Hb("_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.gc(),i.Vb(0,"svg",0),i.Ic(1,u,1,9,"circle",1),i.Ic(2,d,1,7,"circle",2),i.Ub()),2&t&&(i.Fc("width",e.diameter,"px")("height",e.diameter,"px"),i.oc("ngSwitch","indeterminate"===e.mode),i.Eb("viewBox",e._getViewBox()),i.Db(1),i.oc("ngSwitchCase",!0),i.Db(1),i.oc("ngSwitchCase",!1))},directives:[r.q,r.r],styles:[f],encapsulation:2,changeDetection:0}),t})(),y=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[s.i,r.c],s.i]}),t})()},pxpQ:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return a});var i=n("7o/Q"),r=n("WMd4");function s(t,e=0){return function(n){return n.lift(new o(t,e))}}class o{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}}},q59W:function(t,e,n){"use strict";n.d(e,"a",function(){return x}),n.d(e,"b",function(){return m}),n.d(e,"c",function(){return b}),n.d(e,"d",function(){return C}),n.d(e,"e",function(){return k}),n.d(e,"f",function(){return S}),n.d(e,"g",function(){return E}),n.d(e,"h",function(){return w});var i=n("YEUz"),r=n("9gLZ"),s=n("8LU1"),o=n("Ht+U"),a=n("SVse"),c=n("8Y7J"),l=n("XNiG"),h=n("LRne"),u=n("JX91"),d=n("1G5W");function f(t,e){1&t&&c.mc(0)}const p=["*"];let m=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(c.l))},t.\u0275dir=c.Kb({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),b=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(c.O))},t.\u0275dir=c.Kb({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),g=0;const _="edit",y="done",v="error",w=new c.s("STEPPER_GLOBAL_OPTIONS");let x=(()=>{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=Object(s.c)(t)}get optional(){return this._optional}set optional(t){this._optional=Object(s.c)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=Object(s.c)(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=Object(s.c)(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)(c.Pb(Object(c.X)(()=>C)),c.Pb(w,8))},t.\u0275cmp=c.Jb({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,n){if(1&t&&c.Ib(n,b,!0),2&t){let t;c.vc(t=c.ec())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&c.Ec(c.O,!0),2&t){let t;c.vc(t=c.ec())&&(e.content=t.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:[c.Bb],ngContentSelectors:p,decls:1,vars:0,template:function(t,e){1&t&&(c.nc(),c.Ic(0,f,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{constructor(t,e,n,i){this._dir=t,this._changeDetectorRef=e,this._elementRef=n,this._destroyed=new l.a,this.steps=new c.F,this._linear=!1,this._selectedIndex=0,this.selectionChange=new c.o,this._orientation="horizontal",this._groupId=g++,this._document=i}get linear(){return this._linear}set linear(t){this._linear=Object(s.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Object(s.f)(t);this.steps&&this._steps?(this._isValidIndex(t),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)):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}ngAfterContentInit(){this._steps.changes.pipe(Object(u.a)(this._steps),Object(d.a)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new i.g(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(h.a)()).pipe(Object(u.a)(this._layoutDirection()),Object(d.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),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?v:!t.completed||e?"number":t.editable?_:y}_getGuidelineLogic(t,e,n="number"){return t._showError&&t.hasError&&!e?v:t.completed&&!e?y:t.completed&&e?n:t.editable&&e?_: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=Object(o.r)(t),n=t.keyCode,i=this._keyManager;null==i.activeItemIndex||e||n!==o.m&&n!==o.e?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)}_isValidIndex(t){return t>-1&&(!this.steps||t<this.steps.length)}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(r.b,8),c.Pb(c.h),c.Pb(c.l),c.Pb(a.d))},t.\u0275dir=c.Kb({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(t,e,n){if(1&t&&(c.Ib(n,x,!0),c.Ib(n,m,!0)),2&t){let t;c.vc(t=c.ec())&&(e._steps=t),c.vc(t=c.ec())&&(e._stepHeader=t)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected"},outputs:{selectionChange:"selectionChange"},exportAs:["cdkStepper"]}),t})(),S=(()=>{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(C))},t.\u0275dir=c.Kb({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&c.dc("click",function(){return e._handleClick()}),2&t&&c.Yb("type",e.type)},inputs:{type:"type"}}),t})(),E=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(c.Pb(C))},t.\u0275dir=c.Kb({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&c.dc("click",function(){return e._handleClick()}),2&t&&c.Yb("type",e.type)},inputs:{type:"type"}}),t})(),k=(()=>{class t{}return t.\u0275mod=c.Nb({type:t}),t.\u0275inj=c.Mb({factory:function(e){return new(e||t)},imports:[[r.a]]}),t})()},q7Ft:function(t,e,n){"use strict";n.d(e,"a",function(){return z}),n.d(e,"b",function(){return W}),n.d(e,"c",function(){return B}),n.d(e,"d",function(){return q});var i=n("SCoL"),r=n("7KAL"),s=n("SVse"),o=n("8Y7J"),a=n("UhP/"),c=n("8LU1"),l=n("Ht+U"),h=n("XNiG"),u=n("xgIS"),d=n("VRyK"),f=n("pLZG"),p=n("lJxs"),m=n("CqXF"),b=n("1G5W"),g=n("/uUt"),_=n("IzEk"),y=n("JX91"),v=n("Kj3r"),w=n("GS7A"),x=n("omvX"),C=n("YEUz"),S=n("9gLZ");const E=["*"];function k(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",2),o.dc("click",function(){return o.zc(t),o.hc()._onBackdropClicked()}),o.Ub()}if(2&t){const t=o.hc();o.Hb("mat-drawer-shown",t._isShowingBackdrop())}}function O(t,e){1&t&&(o.Vb(0,"mat-drawer-content"),o.mc(1,2),o.Ub())}const A=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],D=["mat-drawer","mat-drawer-content","*"];function I(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",2),o.dc("click",function(){return o.zc(t),o.hc()._onBackdropClicked()}),o.Ub()}if(2&t){const t=o.hc();o.Hb("mat-drawer-shown",t._isShowingBackdrop())}}function T(t,e){1&t&&(o.Vb(0,"mat-sidenav-content",3),o.mc(1,2),o.Ub())}const L=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],P=["mat-sidenav","mat-sidenav-content","*"],R=".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",M={transformDrawer:Object(w.m)("transform",[Object(w.j)("open, open-instant",Object(w.k)({transform:"none",visibility:"visible"})),Object(w.j)("void",Object(w.k)({"box-shadow":"none",visibility:"hidden"})),Object(w.l)("void => open-instant",Object(w.e)("0ms")),Object(w.l)("void <=> open, open-instant => void",Object(w.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},j=new o.s("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),F=new o.s("MAT_DRAWER_CONTAINER");let N=(()=>{class t extends r.a{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)(o.Pb(o.h),o.Pb(Object(o.X)(()=>U)),o.Pb(o.l),o.Pb(r.c),o.Pb(o.B))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Fc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.Ab],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(o.nc(),o.mc(0))},encapsulation:2,changeDetection:0}),t})(),V=(()=>{class t{constructor(t,e,n,i,r,s,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,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 h.a,this._animationEnd=new h.a,this._animationState="void",this.openedChange=new o.o(!0),this._openedStream=this.openedChange.pipe(Object(f.a)(t=>t),Object(p.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(f.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),Object(m.a)(void 0)),this._closedStream=this.openedChange.pipe(Object(f.a)(t=>!t),Object(p.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(f.a)(t=>t.fromState!==t.toState&&"void"===t.toState),Object(m.a)(void 0)),this._destroyed=new h.a,this.onPositionChanged=new o.o,this._modeChanged=new h.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(u.a)(this._elementRef.nativeElement,"keydown").pipe(Object(f.a)(t=>t.keyCode===l.f&&!this.disableClose&&!Object(l.r)(t)),Object(b.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(g.a)((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=Object(c.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(c.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(c.c)(t))}_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(Object(_.a)(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)(o.Pb(o.l),o.Pb(C.i),o.Pb(C.h),o.Pb(i.a),o.Pb(o.B),o.Pb(s.d,8),o.Pb(F,8))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&o.Gc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(o.Eb("align",null),o.Hc("@transform",e._animationState),o.Hb("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",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.nc(),o.Vb(0,"div",0),o.mc(1),o.Ub())},encapsulation:2,data:{animation:[M.transformDrawer]},changeDetection:0}),t})(),U=(()=>{class t{constructor(t,e,n,i,r,s=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=a,this._drawers=new o.F,this.backdropClick=new o.o,this._destroyed=new h.a,this._doCheckSubject=new h.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h.a,t&&t.change.pipe(Object(b.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),r.change().pipe(Object(b.a)(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=Object(c.c)(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:Object(c.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(y.a)(this._allDrawers),Object(b.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(y.a)(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(Object(v.a)(10),Object(b.a)(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(Object(f.a)(t=>t.fromState!==t.toState),Object(b.a)(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(Object(b.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(b.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(_.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(b.a)(Object(d.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?this._end=t: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)(o.Pb(S.b,8),o.Pb(o.l),o.Pb(o.B),o.Pb(o.h),o.Pb(r.e),o.Pb(j),o.Pb(x.a,8))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){if(1&t&&(o.Ib(n,N,!0),o.Ib(n,V,!0)),2&t){let t;o.vc(t=o.ec())&&(e._content=t.first),o.vc(t=o.ec())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&o.Pc(N,!0),2&t){let t;o.vc(t=o.ec())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.Hb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[o.Cb([{provide:F,useExisting:t}])],ngContentSelectors:D,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&&(o.nc(A),o.Ic(0,k,1,2,"div",0),o.mc(1),o.mc(2,1),o.Ic(3,O,2,0,"mat-drawer-content",1)),2&t&&(o.oc("ngIf",e.hasBackdrop),o.Db(3),o.oc("ngIf",!e._content))},directives:[s.o,N],styles:[R],encapsulation:2,changeDetection:0}),t})(),B=(()=>{class t extends N{constructor(t,e,n,i,r){super(t,e,n,i,r)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.h),o.Pb(Object(o.X)(()=>W)),o.Pb(o.l),o.Pb(r.c),o.Pb(o.B))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&o.Fc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[o.Ab],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(o.nc(),o.mc(0))},encapsulation:2,changeDetection:0}),t})(),z=(()=>{class t extends V{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(c.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(c.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(c.f)(t)}}return t.\u0275fac=function(e){return H(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(o.Eb("align",null),o.Fc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),o.Hb("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:[o.Ab],ngContentSelectors:E,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(o.nc(),o.Vb(0,"div",0),o.mc(1),o.Ub())},encapsulation:2,data:{animation:[M.transformDrawer]},changeDetection:0}),t})();const H=o.Xb(z);let W=(()=>{class t extends U{}return t.\u0275fac=function(e){return K(e||t)},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){if(1&t&&(o.Ib(n,B,!0),o.Ib(n,z,!0)),2&t){let t;o.vc(t=o.ec())&&(e._content=t.first),o.vc(t=o.ec())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&o.Hb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[o.Cb([{provide:F,useExisting:t}]),o.Ab],ngContentSelectors:P,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&&(o.nc(L),o.Ic(0,I,1,2,"div",0),o.mc(1),o.mc(2,1),o.Ic(3,T,2,0,"mat-sidenav-content",1)),2&t&&(o.oc("ngIf",e.hasBackdrop),o.Db(3),o.oc("ngIf",!e._content))},directives:[s.o,B,r.a],styles:[R],encapsulation:2,changeDetection:0}),t})();const K=o.Xb(W);let q=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},imports:[[s.c,a.i,i.b,r.b],r.b,a.i]}),t})()},qVij:function(t,e,n){var i=n("OZ/i"),r=n("Edxu");function s(t){var e,n=t.modulus.byteLength();do{e=new i(r(n))}while(e.cmp(t.modulus)>=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function o(t,e){var n=function(t){var e=s(t);return{blinder:e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(e),r=e.modulus.byteLength(),o=new i(t).mul(n.blinder).umod(e.modulus),a=o.toRed(i.mont(e.prime1)),c=o.toRed(i.mont(e.prime2)),l=e.coefficient,h=e.prime1,u=e.prime2,d=a.redPow(e.exponent1).fromRed(),f=c.redPow(e.exponent2).fromRed(),p=d.isub(f).imul(l).umod(h).imul(u);return f.iadd(p).imul(n.unblinder).umod(e.modulus).toArrayLike(Buffer,"be",r)}o.getr=s,t.exports=o},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 s=n("IjjT");class o extends s.a{}const a=new o(r),c=a},qlaj:function(t,e,n){"use strict";var i=n("w8CP").rotr32;function r(t,e,n){return t&e^~t&n}function s(t,e,n){return t&e^t&n^e&n}function o(t,e,n){return t^e^n}e.ft_1=function(t,e,n,i){return 0===t?r(e,n,i):1===t||3===t?o(e,n,i):2===t?s(e,n,i):void 0},e.ch32=r,e.maj32=s,e.p32=o,e.s0_256=function(t){return i(t,2)^i(t,13)^i(t,22)},e.s1_256=function(t){return i(t,6)^i(t,11)^i(t,25)},e.g0_256=function(t){return i(t,7)^i(t,18)^t>>>3},e.g1_256=function(t){return i(t,17)^i(t,19)^t>>>10}},qmMu:function(t,e,n){var i=n("Wogr"),r=n("e/Dd"),s=n("ekOh"),o=n("e6BP"),a=n("V35J"),c=n("1sBl"),l=n("kk9/"),h=n("eQOe"),u=n("NPxG"),d=n("jSPq"),f=n("yKow"),p=n("lYJp"),m=n("u/Db"),b=n("vvrf"),g=n("49sm");function _(t,e,n){var i,r,s=t.size,o=p.getEncodedBits(e,n);for(i=0;i<15;i++)t.set(i<6?i:i<8?i+1:s-15+i,8,r=1==(o>>i&1),!0),t.set(8,i<8?s-i-1:i<9?15-i-1+1:15-i-1,r,!0);t.set(s-8,8,1,!0)}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var n,p,y=s.M;return void 0!==e&&(y=s.from(e.errorCorrectionLevel,s.M),n=f.from(e.version),p=h.from(e.maskPattern),e.toSJISFunc&&r.setToSJISFunction(e.toSJISFunc)),function(t,e,n,s){var p;if(g(t))p=b.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var y=e;if(!y){var v=b.rawSplit(t);y=f.getBestVersionForData(v,n)}p=b.fromString(t,y||40)}var w=f.getBestVersionForData(p,n);if(!w)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<w)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+w+".\n")}else e=w;var x=function(t,e,n){var s=new o;n.forEach(function(e){s.put(e.mode.bit,4),s.put(e.getLength(),m.getCharCountIndicator(e.mode,t)),e.write(s)});var a=8*(r.getSymbolTotalCodewords(t)-u.getTotalCodewordsCount(t,e));for(s.getLengthInBits()+4<=a&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(0);for(var c=(a-s.getLengthInBits())/8,l=0;l<c;l++)s.put(l%2?17:236,8);return function(t,e,n){for(var s=r.getSymbolTotalCodewords(e),o=s-u.getTotalCodewordsCount(e,n),a=u.getBlocksCount(e,n),c=a-s%a,l=Math.floor(s/a),h=Math.floor(o/a),f=h+1,p=l-h,m=new d(p),b=0,g=new Array(a),_=new Array(a),y=0,v=new i(t.buffer),w=0;w<a;w++){var x=w<c?h:f;g[w]=v.slice(b,b+x),_[w]=m.encode(g[w]),b+=x,y=Math.max(y,x)}var C,S,E=new i(s),k=0;for(C=0;C<y;C++)for(S=0;S<a;S++)C<g[S].length&&(E[k++]=g[S][C]);for(C=0;C<p;C++)for(S=0;S<a;S++)E[k++]=_[S][C];return E}(s,t,e)}(e,n,p),C=r.getSymbolSize(e),S=new a(C);return function(t,e){for(var n=t.size,i=l.getPositions(e),r=0;r<i.length;r++)for(var s=i[r][0],o=i[r][1],a=-1;a<=7;a++)if(!(s+a<=-1||n<=s+a))for(var c=-1;c<=7;c++)o+c<=-1||n<=o+c||t.set(s+a,o+c,a>=0&&a<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===a||6===a)||a>=2&&a<=4&&c>=2&&c<=4,!0)}(S,e),function(t){for(var e=t.size,n=8;n<e-8;n++){var i=n%2==0;t.set(n,6,i,!0),t.set(6,n,i,!0)}}(S),function(t,e){for(var n=c.getPositions(e),i=0;i<n.length;i++)for(var r=n[i][0],s=n[i][1],o=-2;o<=2;o++)for(var a=-2;a<=2;a++)t.set(r+o,s+a,-2===o||2===o||-2===a||2===a||0===o&&0===a,!0)}(S,e),_(S,n,0),e>=7&&function(t,e){for(var n,i,r,s=t.size,o=f.getEncodedBits(e),a=0;a<18;a++)n=Math.floor(a/3),t.set(n,i=a%3+s-8-3,r=1==(o>>a&1),!0),t.set(i,n,r,!0)}(S,e),function(t,e){for(var n=t.size,i=-1,r=n-1,s=7,o=0,a=n-1;a>0;a-=2)for(6===a&&a--;;){for(var c=0;c<2;c++)if(!t.isReserved(r,a-c)){var l=!1;o<e.length&&(l=1==(e[o]>>>s&1)),t.set(r,a-c,l),-1==--s&&(o++,s=7)}if((r+=i)<0||n<=r){r-=i,i=-i;break}}}(S,x),isNaN(s)&&(s=h.getBestMask(S,_.bind(null,S,n))),h.applyMask(s,S),_(S,n,s),{modules:S,version:e,errorCorrectionLevel:n,maskPattern:s,segments:p}}(t,n,y,p)}},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("DH7j"),r=n("XoHu"),s=n("n6bG");const o=(()=>{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:h}=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(s.a)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(u){e=u instanceof o?c(u.errors):[u]}}if(Object(i.a)(h)){let t=-1,n=h.length;for(;++t<n;){const n=h[t];if(Object(r.a)(n))try{n.unsubscribe()}catch(u){e=e||[],u instanceof o?e=e.concat(c(u.errors)):e.push(u)}}}if(e)throw new o(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 o?e.errors:e),[])}},"rE/R":function(t,e,n){"use strict";var i,r=n("0ROu").codes,s=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function c(t,e,r,s){s=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(s);var a=!1;t.on("close",function(){a=!0}),void 0===i&&(i=n("QqdZ")),i(t,{readable:e,writable:r},function(t){if(t)return s(t);a=!0,s()});var c=!1;return function(e){if(!a&&!c)return c=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new o("pipe"))}}function l(t){t()}function h(t,e){return t.pipe(e)}function u(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i,r=u(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new s("streams");var o=e.map(function(t,n){var s=n<e.length-1;return c(t,s,n>0,function(t){i||(i=t),t&&o.forEach(l),s||(o.forEach(l),r(i))})});return e.reduce(h)}},rE9v:function(t,e,n){var i=n("saaP");e.encode=i.encode,e.decode=i.decode},rJgo:function(t,e,n){"use strict";n.d(e,"a",function(){return N}),n.d(e,"b",function(){return R}),n.d(e,"c",function(){return W}),n.d(e,"d",function(){return z});var i=n("YEUz"),r=n("8LU1"),s=n("Ht+U"),o=n("8Y7J"),a=n("XNiG"),c=n("quSY"),l=n("VRyK"),h=n("LRne"),u=n("7Hc7"),d=n("JX91"),f=n("eIep"),p=n("IzEk"),m=n("pLZG"),b=n("1G5W"),g=n("3E0/"),_=n("GS7A"),y=n("1z/I"),v=n("SVse"),w=n("UhP/"),x=n("1O3W"),C=n("SCoL"),S=n("7KAL"),E=n("9gLZ");const k=["mat-menu-item",""],O=["*"];function A(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",0),o.dc("keydown",function(e){return o.zc(t),o.hc()._handleKeydown(e)})("click",function(){return o.zc(t),o.hc().closed.emit("click")})("@transformMenu.start",function(e){return o.zc(t),o.hc()._onAnimationStart(e)})("@transformMenu.done",function(e){return o.zc(t),o.hc()._onAnimationDone(e)}),o.Vb(1,"div",1),o.mc(2),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.oc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),o.Eb("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const D={transformMenu:Object(_.m)("transformMenu",[Object(_.j)("void",Object(_.k)({opacity:0,transform:"scale(0.8)"})),Object(_.l)("void => enter",Object(_.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(_.k)({opacity:1,transform:"scale(1)"}))),Object(_.l)("* => void",Object(_.e)("100ms 25ms linear",Object(_.k)({opacity:0})))]),fadeInItems:Object(_.m)("fadeInItems",[Object(_.j)("showing",Object(_.k)({opacity:1})),Object(_.l)("void => *",[Object(_.k)({opacity:0}),Object(_.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=new o.s("MatMenuContent"),T=new o.s("MAT_MENU_PANEL");class L{}const P=Object(w.y)(Object(w.z)(L));let R=(()=>{class t extends P{constructor(t,e,n,i){super(),this._elementRef=t,this._focusMonitor=n,this._parentMenu=i,this.role="menuitem",this._hovered=new a.a,this._focused=new a.a,this._highlighted=!1,this._triggersSubmenu=!1,i&&i.addItem&&i.addItem(this)}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(){var t,e;const n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons");for(let r=0;r<i.length;r++){const e=i[r];null===(t=e.parentNode)||void 0===t||t.removeChild(e)}return(null===(e=n.textContent)||void 0===e?void 0:e.trim())||""}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.l),o.Pb(v.d),o.Pb(i.h),o.Pb(T,8))},t.\u0275cmp=o.Jb({type:t,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(t,e){1&t&&o.dc("click",function(t){return e._checkDisabled(t)})("mouseenter",function(){return e._handleMouseEnter()}),2&t&&(o.Eb("role",e.role)("tabindex",e._getTabIndex())("aria-disabled",e.disabled.toString())("disabled",e.disabled||null),o.Hb("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:[o.Ab],attrs:k,ngContentSelectors:O,decls:2,vars:2,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"]],template:function(t,e){1&t&&(o.nc(),o.mc(0),o.Qb(1,"div",0)),2&t&&(o.Db(1),o.oc("matRippleDisabled",e.disableRipple||e.disabled)("matRippleTrigger",e._getHostElement()))},directives:[w.r],encapsulation:2,changeDetection:0}),t})();const M=new o.s("mat-menu-default-options",{providedIn:"root",factory:function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let j=0,F=(()=>{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 o.F,this._tabSubscription=c.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new o.o,this.close=this.closed,this.panelId="mat-menu-panel-"+j++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Object(r.c)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(r.c)(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 i.g(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(f.a)(t=>Object(l.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(Object(d.a)(this._directDescendantItems),Object(f.a)(t=>Object(l.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,n=this._keyManager;switch(e){case s.f:Object(s.r)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case s.h:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case s.l:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==s.o&&e!==s.c||n.setFocusOrigin("keyboard"),n.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Object(p.a)(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(Object(d.a)(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)(o.Pb(o.l),o.Pb(o.B),o.Pb(M))},t.\u0275dir=o.Kb({type:t,contentQueries:function(t,e,n){if(1&t&&(o.Ib(n,I,!0),o.Ib(n,R,!0),o.Ib(n,R,!1)),2&t){let t;o.vc(t=o.ec())&&(e.lazyContent=t.first),o.vc(t=o.ec())&&(e._allItems=t),o.vc(t=o.ec())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&o.Pc(o.O,!0),2&t){let t;o.vc(t=o.ec())&&(e.templateRef=t.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})(),N=(()=>{class t extends F{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.l),o.Pb(o.B),o.Pb(M))},t.\u0275cmp=o.Jb({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&o.Eb("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[o.Cb([{provide:T,useExisting:t}]),o.Ab],ngContentSelectors:O,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&&(o.nc(),o.Ic(0,A,3,6,"ng-template"))},directives:[v.m],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:[D.transformMenu,D.fadeInItems]},changeDetection:0}),t})();const V=new o.s("mat-menu-scroll-strategy"),U={provide:V,deps:[x.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B=Object(C.f)({passive:!0});let z=(()=>{class t{constructor(t,e,n,i,r,s,a,l){this._overlay=t,this._element=e,this._viewContainerRef=n,this._menuItemInstance=s,this._dir=a,this._focusMonitor=l,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.a.EMPTY,this._hoverSubscription=c.a.EMPTY,this._menuCloseSubscription=c.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new o.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.o,this.onMenuClose=this.menuClosed,this._scrollStrategy=i,this._parentMaterialMenu=r instanceof F?r:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,B),s&&(s._triggersSubmenu=this.triggersSubmenu())}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&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,B),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._parentMaterialMenu)}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 F&&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 F?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object(m.a)(t=>"void"===t.toState),Object(p.a)(1),Object(b.a)(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._parentMaterialMenu: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(){}_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 x.d({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"],[s,o]=[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||(s="top"===i?"bottom":"top",o="top"===r?"bottom":"top"),t.withPositions([{originX:e,originY:s,overlayX:a,overlayY:i,offsetY:l},{originX:n,originY:s,overlayX:c,overlayY:i,offsetY:l},{originX:e,originY:o,overlayX:a,overlayY:r,offsetY:-l},{originX:n,originY:o,overlayX:c,overlayY:r,offsetY:-l}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object(h.a)(),i=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(m.a)(t=>t!==this._menuItemInstance),Object(m.a)(()=>this._menuOpen)):Object(h.a)();return Object(l.a)(t,n,i,e)}_handleMousedown(t){Object(i.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(e===s.l&&"ltr"===this.dir||e===s.h&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(m.a)(t=>t===this._menuItemInstance&&!t.disabled),Object(g.a)(0,u.a)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof F&&this.menu._isAnimating?this.menu._animationDone.pipe(Object(p.a)(1),Object(g.a)(0,u.a),Object(b.a)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new y.i(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(x.c),o.Pb(o.l),o.Pb(o.S),o.Pb(V),o.Pb(T,8),o.Pb(R,10),o.Pb(E.b,8),o.Pb(i.h))},t.\u0275dir=o.Kb({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&o.dc("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&o.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})(),H=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[w.i]}),t})(),W=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[[v.c,w.i,w.s,x.f,H],S.b,w.i,H]}),t})()},rSVQ:function(t,e,n){var i=n("Ku4m"),r=n("Edxu"),s=n("mObS"),o=n("9GDS"),a=n("g9U9"),c=n("AQYT"),l=n("UpF+"),h=n("qVij"),u=n("hwdV").Buffer;t.exports=function(t,e,n){var d;d=t.padding?t.padding:n?1:4;var f,p=i(t);if(4===d)f=function(t,e){var n=t.modulus.byteLength(),i=e.length,l=s("sha1").update(u.alloc(0)).digest(),h=l.length,d=2*h;if(i>n-d-2)throw new Error("message too long");var f=u.alloc(n-i-d-2),p=n-h-1,m=r(h),b=a(u.concat([l,f,u.alloc(1,1),e],p),o(m,p)),g=a(m,o(b,h));return new c(u.concat([u.alloc(1),g,b],n))}(p,e);else if(1===d)f=function(t,e,n){var i,s=e.length,o=t.modulus.byteLength();if(s>o-11)throw new Error("message too long");return i=n?u.alloc(o-s-3,255):function(t){for(var e,n=u.allocUnsafe(t),i=0,s=r(2*t),o=0;i<t;)o===s.length&&(s=r(2*t),o=0),(e=s[o++])&&(n[i++]=e);return n}(o-s-3),new c(u.concat([u.from([0,n?1:2]),i,u.alloc(1),e],o))}(p,e,n);else{if(3!==d)throw new Error("unknown padding");if((f=new c(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?h(f,p):l(f,p)}},rXFu:function(t,e,n){"use strict";var i=n("lm0R");t.exports=_;var r,s=n("IzUq");_.ReadableState=g,n("+qE3");var o=function(t,e){return t.listeners(e).length},a=n("QpuX"),c=n("hwdV").Buffer,l=global.Uint8Array||function(){},h=Object.create(n("Onz0"));h.inherits=n("P7XM");var u=n(3),d=void 0;d=u&&u.debuglog?u.debuglog("stream"):function(){};var f,p=n("Xhqo"),m=n("RoFp");h.inherits(_,a);var b=["error","close","destroy","pause","resume"];function g(t,e){var i=e instanceof(r=r||n("sZro"));this.objectMode=!!(t=t||{}).objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var s=t.highWaterMark,o=t.readableHighWaterMark;this.highWaterMark=s||0===s?s:i&&(o||0===o)?o:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=n("fXKp").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function _(t){if(r=r||n("sZro"),!(this instanceof _))return new _(t);this._readableState=new g(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function y(t,e,n,i,r){var s,o=t._readableState;return null===e?(o.reading=!1,function(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,C(t)}}(t,o)):(r||(s=function(t,e){var n,i;return c.isBuffer(i=e)||i instanceof l||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}(o,e)),s?t.emit("error",s):o.objectMode||e&&e.length>0?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),i?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):v(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||0!==e.length?v(t,o,e,!1):E(t,o)):v(t,o,e,!1))):i||(o.reading=!1)),function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(o)}function v(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&C(t)),E(t,e)}Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),_.prototype.destroy=m.destroy,_.prototype._undestroy=m.undestroy,_.prototype._destroy=function(t,e){this.push(null),e(t)},_.prototype.push=function(t,e){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=c.from(t,e),e=""),n=!0),y(this,t,e,!1,n)},_.prototype.unshift=function(t){return y(this,t,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(t){return f||(f=n("fXKp").StringDecoder),this._readableState.decoder=new f(t),this._readableState.encoding=t,this};var w=8388608;function x(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=w?t=w:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(S,t):S(t))}function S(t){d("emit readable"),t.emit("readable"),D(t)}function E(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(k,t,e))}function k(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(d("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function O(t){d("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(d("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;for(d("flow",e.flowing);e.flowing&&null!==t.read(););}function I(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var i;return t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,i=1,r=n.data;for(t-=r.length;n=n.next;){var s=n.data,o=t>s.length?s.length:t;if(r+=o===s.length?s:s.slice(0,t),0==(t-=o)){o===s.length?(++i,e.head=n.next?n.next:e.tail=null):(e.head=n,n.data=s.slice(o));break}++i}return e.length-=i,r}(t,e):function(t,e){var n=c.allocUnsafe(t),i=e.head,r=1;for(i.data.copy(n),t-=i.data.length;i=i.next;){var s=i.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),0==(t-=o)){o===s.length?(++r,e.head=i.next?i.next:e.tail=null):(e.head=i,i.data=s.slice(o));break}++r}return e.length-=r,n}(t,e),i}(t,e.buffer,e.decoder),n);var n}function T(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(L,e,t))}function L(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function P(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}_.prototype.read=function(t){d("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?T(this):C(this),null;if(0===(t=x(t,e))&&e.ended)return 0===e.length&&T(this),null;var i,r=e.needReadable;return d("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&d("length less than watermark",r=!0),e.ended||e.reading?d("reading or ended",r=!1):r&&(d("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=x(n,e))),null===(i=t>0?I(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&T(this)),null!==i&&this.emit("data",i),i},_.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,d("pipe count=%d opts=%j",r.pipesCount,e);var a=e&&!1===e.end||t===process.stdout||t===process.stderr?g:c;function c(){d("onend"),t.end()}r.endEmitted?i.nextTick(a):n.once("end",a),t.on("unpipe",function e(i,s){d("onunpipe"),i===n&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,d("cleanup"),t.removeListener("close",m),t.removeListener("finish",b),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",e),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",f),h=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||l())});var l=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,D(t))}}(n);t.on("drain",l);var h=!1,u=!1;function f(e){d("ondata"),u=!1,!1!==t.write(e)||u||((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==P(r.pipes,t))&&!h&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,u=!0),n.pause())}function p(e){d("onerror",e),g(),t.removeListener("error",p),0===o(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",b),g()}function b(){d("onfinish"),t.removeListener("close",m),g()}function g(){d("unpipe"),n.unpipe(t)}return n.on("data",f),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events.error?s(t._events.error)?t._events.error.unshift(n):t._events.error=[n,t._events.error]:t.on(e,n)}(t,"error",p),t.once("close",m),t.once("finish",b),t.emit("pipe",n),r.flowing||(d("pipe resume"),n.resume()),t},_.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<r;s++)i[s].emit("unpipe",this,n);return this}var o=P(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},_.prototype.addListener=_.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&C(this):i.nextTick(O,this))}return n},_.prototype.resume=function(){var t=this._readableState;return t.flowing||(d("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(A,t,e))}(this,t)),this},_.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},_.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var r in t.on("end",function(){if(d("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(r){d("wrapped data"),n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r||(n.objectMode||r&&r.length)&&(e.push(r)||(i=!0,t.pause()))}),t)void 0===this[r]&&"function"==typeof t[r]&&(this[r]=function(e){return function(){return t[e].apply(t,arguments)}}(r));for(var s=0;s<b.length;s++)t.on(b[s],this.emit.bind(this,b[s]));return this._read=function(e){d("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),_._fromList=I},roQf:function(t,e,n){var i=n("hwdV").Buffer,r=n("9XZ3");t.exports=function(t,e,n,s){if(i.isBuffer(t)||(t=i.from(t,"binary")),e&&(i.isBuffer(e)||(e=i.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,a=i.alloc(o),c=i.alloc(s||0),l=i.alloc(0);o>0||s>0;){var h=new r;h.update(l),h.update(t),e&&h.update(e),l=h.digest();var u=0;if(o>0){var d=a.length-o;u=Math.min(o,l.length),l.copy(a,d,0,u),o-=u}if(u<l.length&&s>0){var f=c.length-s,p=Math.min(s,l.length-u);l.copy(c,f,u,u+p),s-=p}}return l.fill(0),{key:a,iv:c}}},s7LF:function(t,e,n){"use strict";n.d(e,"a",function(){return jt}),n.d(e,"b",function(){return T}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return Vt}),n.d(e,"e",function(){return bt}),n.d(e,"f",function(){return At}),n.d(e,"g",function(){return Lt}),n.d(e,"h",function(){return It}),n.d(e,"i",function(){return Ut}),n.d(e,"j",function(){return b}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return P}),n.d(e,"m",function(){return M}),n.d(e,"n",function(){return j}),n.d(e,"o",function(){return wt}),n.d(e,"p",function(){return St}),n.d(e,"q",function(){return N}),n.d(e,"r",function(){return Bt}),n.d(e,"s",function(){return Mt}),n.d(e,"t",function(){return y}),n.d(e,"u",function(){return Et});var i=n("8Y7J"),r=n("SVse"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const c=new i.s("NgValueAccessor"),l={provide:c,useExisting:Object(i.X)(()=>h),multi:!0};let h=(()=>{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.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[i.Cb([l])]}),t})();const u={provide:c,useExisting:Object(i.X)(()=>f),multi:!0},d=new i.s("CompositionEventMode");let f=(()=>{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(r.E)()?Object(r.E)().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.Pb(i.G),i.Pb(i.l),i.Pb(d,8))},t.\u0275dir=i.Kb({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.dc("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([u])]}),t})();function p(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const b=new i.s("NgValidators"),g=new i.s("NgAsyncValidators"),_=/^(?=.{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 y{static min(t){return e=>{if(p(e.value)||p(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(p(e.value)||p(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return p(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return p(t.value)||_.test(t.value)?null:{email:!0}}static minLength(t){return e=>p(e.value)||!m(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>m(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return y.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(p(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(v);return 0==e.length?null:function(t){return x(C(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){const n=C(t,e).map(w);return Object(s.a)(n).pipe(Object(a.a)(x))}}}function v(t){return null!=t}function w(t){const e=Object(i.vb)(t)?Object(o.a)(t):t;return Object(i.ub)(e),e}function x(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 C(t,e){return e.map(e=>e(t))}function S(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function E(t){return null!=t?y.compose(S(t)):null}function k(t){return null!=t?y.composeAsync(S(t)):null}function O(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function A(t){return t._rawValidators}function D(t){return t._rawAsyncValidators}let I=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=E(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=k(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}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.Kb({type:t}),t})(),T=(()=>{class t extends I{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return L(e||t)},t.\u0275dir=i.Kb({type:t,features:[i.Ab]}),t})();const L=i.Xb(T);class P extends I{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class R{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 M=(()=>{class t extends R{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(P,2))},t.\u0275dir=i.Kb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Hb("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})(),j=(()=>{class t extends R{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(T,2))},t.\u0275dir=i.Kb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Hb("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})();const F={provide:c,useExisting:Object(i.X)(()=>N),multi:!0};let N=(()=>{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.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.Cb([F])]}),t})();const V={provide:c,useExisting:Object(i.X)(()=>B),multi:!0};let U=(()=>{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.Lb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{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(P),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.Pb(i.G),i.Pb(i.l),i.Pb(U),i.Pb(i.t))},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Cb([V])]}),t})();const z={provide:c,useExisting:Object(i.X)(()=>H),multi:!0};let H=(()=>{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.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("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([z])]}),t})();const W={provide:c,useExisting:Object(i.X)(()=>K),multi:!0};let K=(()=>{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=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(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.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&i.dc("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Cb([W])]}),t})();const q={provide:c,useExisting:Object(i.X)(()=>Y),multi:!0};let Y=(()=>{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.Pb(i.G),i.Pb(i.l))},t.\u0275dir=i.Kb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&i.dc("change",function(t){return e.onChange(t.target)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Cb([q])]}),t})();function Z(t,e){return[...e.path,t]}function X(t,e){$(t,e,!0),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&J(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&J(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function G(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function $(t,e,n){const i=A(t);null!==e.validator?t.setValidators(O(i,e.validator)):"function"==typeof i&&t.setValidators([i]);const r=D(t);if(null!==e.asyncValidator?t.setAsyncValidators(O(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),n){const n=()=>t.updateValueAndValidity();G(e._rawValidators,n),G(e._rawAsyncValidators,n)}}function Q(t,e,n){if(null!==t){if(null!==e.validator){const n=A(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=D(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};G(e._rawValidators,t),G(e._rawAsyncValidators,t)}}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tt(t,e){$(t,e,!1)}function et(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const nt=[h,H,N,K,Y,B];function it(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function rt(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===f?n=t:(e=t,nt.some(t=>e.constructor===t)?i=t:r=t)}),r||i||n||null}function st(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ot="VALID",at="INVALID",ct="PENDING",lt="DISABLED";function ht(t){return(pt(t)?t.validators:t)||null}function ut(t){return Array.isArray(t)?E(t):t||null}function dt(t,e){return(pt(e)?e.asyncValidators:t)||null}function ft(t){return Array.isArray(t)?k(t):t||null}function pt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class mt{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ut(this._rawValidators),this._composedAsyncValidatorFn=ft(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 this.status===ot}get invalid(){return this.status===at}get pending(){return this.status==ct}get disabled(){return this.status===lt}get enabled(){return this.status!==lt}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=ut(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ft(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=ct,!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=lt,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=ot,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(),this.status!==ot&&this.status!==ct||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()?lt:ot}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ct,this._hasOwnPendingAsyncValidator=!0;const e=w(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 gt?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof _t&&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()?lt:this.errors?at:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ct)?ct:this._anyControlsHaveStatus(at)?at:ot}_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){pt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class bt extends mt{constructor(t=null,e,n){super(ht(e),dt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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)}_unregisterOnChange(t){st(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){st(this._onDisabledChange,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 gt extends mt{constructor(t,e,n){super(ht(e),dt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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 bt?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 _t extends mt{constructor(t,e,n){super(ht(e),dt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}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 bt?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 yt={provide:T,useExisting:Object(i.X)(()=>wt)},vt=(()=>Promise.resolve(null))();let wt=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new gt({},E(t),k(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){vt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),X(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){vt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),st(this._directives,t)})}addFormGroup(t){vt.then(()=>{const e=this._findContainer(t.path),n=new gt({});tt(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){vt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){vt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,it(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.Pb(b,10),i.Pb(g,10))},t.\u0275dir=i.Kb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.dc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([yt]),i.Ab]}),t})();const xt={provide:P,useExisting:Object(i.X)(()=>St)},Ct=(()=>Promise.resolve(null))();let St=(()=>{class t extends P{constructor(t,e,n,r){super(),this.control=new bt,this._registered=!1,this.update=new i.o,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=rt(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Z(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}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(){X(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){Ct.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Ct.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.Pb(T,9),i.Pb(b,10),i.Pb(g,10),i.Pb(c,10))},t.\u0275dir=i.Kb({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([xt]),i.Ab,i.Bb]}),t})(),Et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const kt=new i.s("NgModelWithFormControlWarning"),Ot={provide:P,useExisting:Object(i.X)(()=>At)};let At=(()=>{class t extends P{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.o,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=rt(0,n)}set isDisabled(t){}ngOnChanges(t){this._isControlChanged(t)&&(X(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),et(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}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.Pb(b,10),i.Pb(g,10),i.Pb(c,10),i.Pb(kt,8))},t.\u0275dir=i.Kb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Cb([Ot]),i.Ab,i.Bb]}),t._ngModelWarningSentOnce=!1,t})();const Dt={provide:T,useExisting:Object(i.X)(()=>It)};let It=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.o,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return X(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){st(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);tt(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);tt(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,it(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),Q(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&X(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){$(this.form,this,!1),this._oldForm&&Q(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(b,10),i.Pb(g,10))},t.\u0275dir=i.Kb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.dc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Cb([Dt]),i.Ab,i.Bb]}),t})();const Tt={provide:P,useExisting:Object(i.X)(()=>Lt)};let Lt=(()=>{class t extends P{constructor(t,e,n,r,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new i.o,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=rt(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),et(t,this.viewModel)&&(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 Z(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(T,13),i.Pb(b,10),i.Pb(g,10),i.Pb(c,10),i.Pb(kt,8))},t.\u0275dir=i.Kb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Cb([Tt]),i.Ab,i.Bb]}),t._ngModelWarningSentOnce=!1,t})();const Pt={provide:b,useExisting:Object(i.X)(()=>Mt),multi:!0},Rt={provide:b,useExisting:Object(i.X)(()=>jt),multi:!0};let Mt=(()=>{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?y.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Kb({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([Pt])]}),t})(),jt=(()=>{class t extends Mt{validate(t){return this.required?y.requiredTrue(t):null}}return t.\u0275fac=function(e){return Ft(e||t)},t.\u0275dir=i.Kb({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([Rt]),i.Ab]}),t})();const Ft=i.Xb(jt);let Nt=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})(),Vt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,r=null,s=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,s=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new gt(n,{asyncValidators:r,updateOn:s,validators:i})}control(t,e,n){return new bt(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new _t(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 bt||t instanceof gt||t instanceof _t?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.Lb({token:t,factory:t.\u0275fac}),t})(),Ut=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[Nt]}),t})(),Bt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:kt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[Vt,U],imports:[Nt]}),t})()},sVev:function(t,e,n){"use strict";n.d(e,"a",function(){return i});const i=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},sZro:function(t,e,n){"use strict";var i=n("lm0R"),r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var s=Object.create(n("Onz0"));s.inherits=n("P7XM");var o=n("rXFu"),a=n("3BRs");s.inherits(u,o);for(var c=r(a.prototype),l=0;l<c.length;l++){var h=c[l];u.prototype[h]||(u.prototype[h]=a.prototype[h])}function u(t){if(!(this instanceof u))return new u(t);o.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||i.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(t,e){this.push(null),this.end(),i.nextTick(e,t)}},saaP:function(t,e,n){"use strict";var i=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];e.encode=function(t){Buffer.isBuffer(t)||(t=new Buffer(t));for(var e,n,i=0,r=0,s=0,o=0,a=new Buffer(8*(e=t,n=Math.floor(e.length/5),e.length%5==0?n:n+1));i<t.length;){var c=t[i];s>3?(o=(o=c&255>>s)<<(s=(s+5)%8)|(i+1<t.length?t[i+1]:0)>>8-s,i++):(o=c>>8-(s+5)&31,0==(s=(s+5)%8)&&i++),a[r]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(o),r++}for(i=r;i<a.length;i++)a[i]=61;return a},e.decode=function(t){var e,n=0,r=0,s=0;Buffer.isBuffer(t)||(t=new Buffer(t));for(var o=new Buffer(Math.ceil(5*t.length/8)),a=0;a<t.length&&61!==t[a];a++){var c=t[a]-48;if(!(c<i.length))throw new Error("Invalid input - it is not base32 encoded string");r=i[c],n<=3?0==(n=(n+5)%8)?(o[s]=e|=r,s++,e=0):e|=255&r<<8-n:(o[s]=e|=255&r>>>(n=(n+5)%8),s++,e=255&r<<8-n)}return o.slice(0,s)}},t9FE:function(t,e){function n(t){try{if(!global.localStorage)return!1}catch(n){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}}},tOiH:function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},tS1D:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=n("D0XW");const r=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var s=n("mlxB"),o=n("zx2A");class a{constructor(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}call(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class c extends o.b{constructor(t,e,n,i,r){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=i,this.scheduler=r,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(Object(o.c)(e,new o.a(t)))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(c.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}var l=n("z6cu");function h(t,e=i.a){return function(t,e,n=i.a){return i=>{let r=Object(s.a)(t),o=r?+t-n.now():Math.abs(t);return i.lift(new a(o,r,e,n))}}(t,Object(l.a)(new r),e)}},tSWc:function(t,e,n){"use strict";var i=n("w8CP"),r=n("7ckf"),s=n("2j6C"),o=i.rotr64_hi,a=i.rotr64_lo,c=i.shr64_hi,l=i.shr64_lo,h=i.sum64,u=i.sum64_hi,d=i.sum64_lo,f=i.sum64_4_hi,p=i.sum64_4_lo,m=i.sum64_5_hi,b=i.sum64_5_lo,g=r.BlockHash,_=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_,this.W=new Array(160)}function v(t,e,n,i,r){var s=t&n^~t&r;return s<0&&(s+=4294967296),s}function w(t,e,n,i,r,s){var o=e&i^~e&s;return o<0&&(o+=4294967296),o}function x(t,e,n,i,r){var s=t&n^t&r^n&r;return s<0&&(s+=4294967296),s}function C(t,e,n,i,r,s){var o=e&i^e&s^i&s;return o<0&&(o+=4294967296),o}function S(t,e){var n=o(t,e,28)^o(e,t,2)^o(e,t,7);return n<0&&(n+=4294967296),n}function E(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function k(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function O(t,e){var n=o(t,e,1)^o(t,e,8)^c(t,e,7);return n<0&&(n+=4294967296),n}function A(t,e){var n=a(t,e,1)^a(t,e,8)^l(t,e,7);return n<0&&(n+=4294967296),n}function D(t,e){var n=a(t,e,19)^a(e,t,29)^l(t,e,6);return n<0&&(n+=4294967296),n}i.inherits(y,g),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var n=this.W,i=0;i<32;i++)n[i]=t[e+i];for(;i<n.length;i+=2){var r=(_=void 0,(_=o(b=n[i-4],g=n[i-3],19)^o(g,b,29)^c(b,g,6))<0&&(_+=4294967296),_),s=D(n[i-4],n[i-3]),a=n[i-14],l=n[i-13],h=O(n[i-30],n[i-29]),u=A(n[i-30],n[i-29]),d=n[i-32],m=n[i-31];n[i]=f(r,s,a,l,h,u,d,m),n[i+1]=p(r,s,a,l,h,u,d,m)}var b,g,_},y.prototype._update=function(t,e){this._prepareBlock(t,e);var n,i,r,a=this.W,c=this.h[0],l=this.h[1],f=this.h[2],p=this.h[3],g=this.h[4],_=this.h[5],y=this.h[6],O=this.h[7],A=this.h[8],D=this.h[9],I=this.h[10],T=this.h[11],L=this.h[12],P=this.h[13],R=this.h[14],M=this.h[15];s(this.k.length===a.length);for(var j=0;j<a.length;j+=2){var F=R,N=M,V=(r=void 0,(r=o(n=A,i=D,14)^o(n,i,18)^o(i,n,9))<0&&(r+=4294967296),r),U=k(A,D),B=v(A,0,I,0,L),z=w(0,D,0,T,0,P),H=this.k[j],W=this.k[j+1],K=a[j],q=a[j+1],Y=m(F,N,V,U,B,z,H,W,K,q),Z=b(F,N,V,U,B,z,H,W,K,q);F=S(c,l),N=E(c,l),V=x(c,0,f,0,g),U=C(0,l,0,p,0,_);var X=u(F,N,V,U),G=d(F,N,V,U);R=L,M=P,L=I,P=T,I=A,T=D,A=u(y,O,Y,Z),D=d(O,O,Y,Z),y=g,O=_,g=f,_=p,f=c,p=l,c=u(Y,Z,X,G),l=d(Y,Z,X,G)}h(this.h,0,c,l),h(this.h,2,f,p),h(this.h,4,g,_),h(this.h,6,y,O),h(this.h,8,A,D),h(this.h,10,I,T),h(this.h,12,L,P),h(this.h,14,R,M)},y.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},tcrS:function(t,e,n){"use strict";var i=n("tjlA").Buffer,r=n("P7XM"),s=n("k+aG"),o=new Array(16),a=[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=[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=[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],h=[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],u=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function f(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function m(t,e,n,i,r,s,o,a){return p(t+(e^n^i)+s+o|0,a)+r|0}function b(t,e,n,i,r,s,o,a){return p(t+(e&n|~e&i)+s+o|0,a)+r|0}function g(t,e,n,i,r,s,o,a){return p(t+((e|~n)^i)+s+o|0,a)+r|0}function _(t,e,n,i,r,s,o,a){return p(t+(e&i|n&~i)+s+o|0,a)+r|0}function y(t,e,n,i,r,s,o,a){return p(t+(e^(n|~i))+s+o|0,a)+r|0}r(f,s),f.prototype._update=function(){for(var t=o,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,i=0|this._b,r=0|this._c,s=0|this._d,f=0|this._e,v=0|this._a,w=0|this._b,x=0|this._c,C=0|this._d,S=0|this._e,E=0;E<80;E+=1){var k,O;E<16?(k=m(n,i,r,s,f,t[a[E]],u[0],l[E]),O=y(v,w,x,C,S,t[c[E]],d[0],h[E])):E<32?(k=b(n,i,r,s,f,t[a[E]],u[1],l[E]),O=_(v,w,x,C,S,t[c[E]],d[1],h[E])):E<48?(k=g(n,i,r,s,f,t[a[E]],u[2],l[E]),O=g(v,w,x,C,S,t[c[E]],d[2],h[E])):E<64?(k=_(n,i,r,s,f,t[a[E]],u[3],l[E]),O=b(v,w,x,C,S,t[c[E]],d[3],h[E])):(k=y(n,i,r,s,f,t[a[E]],u[4],l[E]),O=m(v,w,x,C,S,t[c[E]],d[4],h[E])),n=f,f=s,s=p(r,10),r=i,i=k,v=S,S=C,C=p(x,10),x=w,w=O}var A=this._b+r+C|0;this._b=this._c+s+S|0,this._c=this._d+f+v|0,this._d=this._e+n+w|0,this._e=this._a+i+x|0,this._a=A},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=i.alloc?i.alloc(20):new i(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=f},tjlA:function(t,e,n){"use strict";var i=n("H7XF"),r=n("kVK+"),s=n("IzUq");function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return l(this,t,e,n)}function l(t,e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i),c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=d(t,e),t}(t,e,n,i):"string"==typeof e?function(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,n),r=(t=a(t,i)).write(e,n);return r!==i&&(t=t.slice(0,r)),t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|f(e.length);return 0===(t=a(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?a(t,0):d(t,e);if("Buffer"===e.type&&s(e.data))return d(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e){if(h(e),t=a(t,e<0?0:0|f(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=a(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function p(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(i)return U(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,n);case"utf8":case"utf-8":return k(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return D(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function b(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function g(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:_(t,e,n,i,r);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,i,r){var s,o=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var h=-1;for(s=n;s<a;s++)if(l(t,s)===l(e,-1===h?0:s-h)){if(-1===h&&(h=s),s-h+1===c)return h*o}else-1!==h&&(s-=s-h),h=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){for(var u=!0,d=0;d<c;d++)if(l(t,s+d)!==l(e,d)){u=!1;break}if(u)return s}return-1}function y(t,e,n,i){n=Number(n)||0;var r=t.length-n;i?(i=Number(i))>r&&(i=r):i=r;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o<i;++o){var a=parseInt(e.substr(2*o,2),16);if(isNaN(a))return o;t[n+o]=a}return o}function v(t,e,n,i){return z(U(e,t.length-n),t,n,i)}function w(t,e,n,i){return z(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function x(t,e,n,i){return w(t,e,n,i)}function C(t,e,n,i){return z(B(e),t,n,i)}function S(t,e,n,i){return z(function(t,e){for(var n,i,r=[],s=0;s<t.length&&!((e-=2)<0);++s)i=(n=t.charCodeAt(s))>>8,r.push(n%256),r.push(i);return r}(e,t.length-n),t,n,i)}function E(t,e,n){return i.fromByteArray(0===e&&n===t.length?t:t.slice(e,n))}function k(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r<n;){var s,o,a,c,l=t[r],h=null,u=l>239?4:l>223?3:l>191?2:1;if(r+u<=n)switch(u){case 1:l<128&&(h=l);break;case 2:128==(192&(s=t[r+1]))&&(c=(31&l)<<6|63&s)>127&&(h=c);break;case 3:o=t[r+2],128==(192&(s=t[r+1]))&&128==(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:o=t[r+2],a=t[r+3],128==(192&(s=t[r+1]))&&128==(192&o)&&128==(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(h=c)}null===h?(h=65533,u=1):h>65535&&(i.push((h-=65536)>>>10&1023|55296),h=56320|1023&h),i.push(h),r+=u}return function(t){var e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);for(var n="",i=0;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=O));return n}(i)}e.Buffer=c,e.SlowBuffer=function(t){return+t!=t&&(t=0),c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}(),e.kMaxLength=o(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return l(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,i){return h(e),e<=0?a(t,e):void 0!==n?"string"==typeof i?a(t,e).fill(n,i):a(t,e).fill(n):a(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return u(null,t)},c.allocUnsafeSlow=function(t){return u(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,r=0,s=Math.min(n,i);r<s;++r)if(t[r]!==e[r]){n=t[r],i=e[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!s(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=c.allocUnsafe(e),r=0;for(n=0;n<t.length;++n){var o=t[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):m.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,i,r){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var s=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(e>>>=0),a=Math.min(s,o),l=this.slice(i,r),h=t.slice(e,n),u=0;u<a;++u)if(l[u]!==h[u]){s=l[u],o=h[u];break}return s<o?-1:o<s?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},c.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-e;if((void 0===n||n>r)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var O=4096;function A(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(127&t[r]);return i}function D(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;r<n;++r)i+=String.fromCharCode(t[r]);return i}function I(t,e,n){var i,r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var s="",o=e;o<n;++o)s+=(i=t[o])<16?"0"+i.toString(16):i.toString(16);return s}function T(t,e,n){for(var i=t.slice(e,n),r="",s=0;s<i.length;s+=2)r+=String.fromCharCode(i[s]+256*i[s+1]);return r}function L(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,i,r,s){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<s)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function R(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,s=Math.min(t.length-n,2);r<s;++r)t[n+r]=(e&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function M(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,s=Math.min(t.length-n,4);r<s;++r)t[n+r]=e>>>8*(i?r:3-r)&255}function j(t,e,n,i,r,s){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,i,s){return s||j(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function N(t,e,n,i,s){return s||j(t,0,n,8),r.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var r=e-t;n=new c(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=this[t],r=1,s=0;++s<e&&(r*=256);)i+=this[t+s]*r;return i},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=this[t+--e],r=1;e>0&&(r*=256);)i+=this[t+--e]*r;return i},c.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=this[t],r=1,s=0;++s<e&&(r*=256);)i+=this[t+s]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||L(t,e,this.length);for(var i=e,r=1,s=this[t+--i];i>0&&(r*=256);)s+=this[t+--i]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*e)),s},c.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),r.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),r.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),r.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),r.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){t=+t,e|=0,n|=0,i||P(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,s=0;for(this[e]=255&t;++s<n&&(r*=256);)this[e+s]=t/r&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,i){t=+t,e|=0,n|=0,i||P(this,t,e,n,Math.pow(2,8*n)-1,0);var r=n-1,s=1;for(this[e+r]=255&t;--r>=0&&(s*=256);)this[e+r]=t/s&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);P(this,t,e,n,r-1,-r)}var s=0,o=1,a=0;for(this[e]=255&t;++s<n&&(o*=256);)t<0&&0===a&&0!==this[e+s-1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);P(this,t,e,n,r-1,-r)}var s=n-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return N(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return N(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var r,s=i-n;if(this===t&&n<e&&e<i)for(r=s-1;r>=0;--r)t[r+e]=this[r+n];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)t[r+e]=this[r+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},c.prototype.fill=function(t,e,n,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===t.length){var r=t.charCodeAt(0);r<256&&(t=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var s;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var o=c.isBuffer(t)?t:U(new c(t,i).toString()),a=o.length;for(s=0;s<n-e;++s)this[s+e]=o[s%a]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function U(t,e){var n;e=e||1/0;for(var i=t.length,r=null,s=[],o=0;o<i;++o){if((n=t.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;s.push(n)}else if(n<2048){if((e-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function B(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,n,i){for(var r=0;r<i&&!(r+n>=e.length||r>=t.length);++r)e[r+n]=t[r];return r}},tnIz:function(t,e,n){var i=n("hwdV").Buffer;function r(t,e){this._block=i.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}r.prototype.update=function(t,e){"string"==typeof t&&(t=i.from(t,e=e||"utf8"));for(var n=this._block,r=this._blockSize,s=t.length,o=this._len,a=0;a<s;){for(var c=o%r,l=Math.min(s-a,r-c),h=0;h<l;h++)n[c+h]=t[a+h];a+=l,(o+=l)%r==0&&this._update(n)}return this._len+=s,this},r.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0;this._block.writeUInt32BE((n-i)/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},tpL1:function(t,e,n){var i=n("Oaki").Buffer,r=n("mObS"),s=n("NNVn"),o=n("2q5Q"),a=n("b+dc"),c=n("mAz1"),l=n("tOiH");function h(t){s.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function u(t){s.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hash=r(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new h(t)}function f(t){return new u(t)}Object.keys(l).forEach(function(t){l[t].id=i.from(l[t].id,"hex"),l[t.toLowerCase()]=l[t]}),o(h,s.Writable),h.prototype._write=function(t,e,n){this._hash.update(t),n()},h.prototype.update=function(t,e){return"string"==typeof t&&(t=i.from(t,e)),this._hash.update(t),this},h.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),i=a(n,t,this._hashType,this._signType,this._tag);return e?i.toString(e):i},o(u,s.Writable),u.prototype._write=function(t,e,n){this._hash.update(t),n()},u.prototype.update=function(t,e){return"string"==typeof t&&(t=i.from(t,e)),this._hash.update(t),this},u.prototype.verify=function(t,e,n){"string"==typeof e&&(e=i.from(e,n)),this.end();var r=this._hash.digest();return c(e,r,t,this._signType,this._tag)},t.exports={Sign:d,Verify:f,createSign:d,createVerify:f}},tqRt:function(t,e,n){"use strict";n.d(e,"a",function(){return g}),n.d(e,"b",function(){return b}),n.d(e,"c",function(){return w}),n.d(e,"d",function(){return W}),n.d(e,"e",function(){return H}),n.d(e,"f",function(){return Z}),n.d(e,"g",function(){return $}),n.d(e,"h",function(){return et}),n.d(e,"i",function(){return xt}),n.d(e,"j",function(){return Ct}),n.d(e,"k",function(){return wt}),n.d(e,"l",function(){return K}),n.d(e,"m",function(){return B}),n.d(e,"n",function(){return p});var i=n("8Y7J"),r=n("2Vo4"),s=n("HDdC"),o=n("XNiG"),a=n("qgXg"),c=n("pxpQ"),l=n("zp1y"),h=n("Kqap"),u=n("lJxs"),d=n("/uUt");const f={};function p(t,e){if(f[t]=(f[t]||0)+1,"function"==typeof e)return m(t,(...n)=>Object.assign(Object.assign({},e(...n)),{type:t}));switch(e?e._as:"empty"){case"empty":return m(t,()=>({type:t}));case"props":return m(t,e=>Object.assign(Object.assign({},e),{type:t}));default:throw new Error("Unexpected config.")}}function m(t,e){return Object.defineProperty(e,"type",{value:t,writable:!1})}const b="@ngrx/store/init";let g=(()=>{class t extends r.a{constructor(){super({type:b})}next(t){if("function"==typeof t)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(void 0===t)throw new TypeError("Actions must be objects");if(void 0===t.type)throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const _=[g],y=new i.s("@ngrx/store Internal Root Guard"),v=new i.s("@ngrx/store Internal Initial State"),w=new i.s("@ngrx/store Initial State"),x=new i.s("@ngrx/store Reducer Factory"),C=new i.s("@ngrx/store Internal Reducer Factory Provider"),S=new i.s("@ngrx/store Initial Reducers"),E=new i.s("@ngrx/store Internal Initial Reducers"),k=new i.s("@ngrx/store Store Features"),O=new i.s("@ngrx/store Internal Store Reducers"),A=new i.s("@ngrx/store Internal Feature Reducers"),D=new i.s("@ngrx/store Internal Feature Configs"),I=new i.s("@ngrx/store Internal Store Features"),T=new i.s("@ngrx/store Internal Feature Reducers Token"),L=new i.s("@ngrx/store Feature Reducers"),P=new i.s("@ngrx/store User Provided Meta Reducers"),R=new i.s("@ngrx/store Meta Reducers"),M=new i.s("@ngrx/store Internal Resolved Meta Reducers"),j=new i.s("@ngrx/store User Runtime Checks Config"),F=new i.s("@ngrx/store Internal User Runtime Checks Config"),N=new i.s("@ngrx/store Internal Runtime Checks"),V=new i.s("@ngrx/store Check if Action types are unique");function U(t,e={}){const n=Object.keys(t),i={};for(let s=0;s<n.length;s++){const e=n[s];"function"==typeof t[e]&&(i[e]=t[e])}const r=Object.keys(i);return function(t,n){t=void 0===t?e:t;let s=!1;const o={};for(let e=0;e<r.length;e++){const a=r[e],c=t[a],l=(0,i[a])(c,n);o[a]=l,s=s||l!==c}return s?o:t}}function B(...t){return function(e){if(0===t.length)return e;const n=t[t.length-1];return t.slice(0,-1).reduceRight((t,e)=>e(t),n(e))}}function z(t,e){return Array.isArray(e)&&e.length>0&&(t=B.apply(null,[...e,t])),(e,n)=>{const i=t(e);return(t,e)=>i(t=void 0===t?n:t,e)}}class H extends s.a{}class W extends g{}const K="@ngrx/store/update-reducers";let q=(()=>{class t extends r.a{constructor(t,e,n,i){super(i(n,e)),this.dispatcher=t,this.initialState=e,this.reducers=n,this.reducerFactory=i}addFeature(t){this.addFeatures([t])}addFeatures(t){const e=t.reduce((t,{reducers:e,reducerFactory:n,metaReducers:i,initialState:r,key:s})=>{const o="function"==typeof e?function(t){const e=Array.isArray(t)&&t.length>0?B(...t):t=>t;return(t,n)=>(t=e(t),(e,i)=>t(e=void 0===e?n:e,i))}(i)(e,r):z(n,i)(e,r);return t[s]=o,t},{});this.addReducers(e)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(t=>t.key))}addReducer(t,e){this.addReducers({[t]:e})}addReducers(t){this.reducers=Object.assign(Object.assign({},this.reducers),t),this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(t=>{var e,n;this.reducers=(e=this.reducers,n=t,Object.keys(e).filter(t=>t!==n).reduce((t,n)=>Object.assign(t,{[n]:e[n]}),{}))}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:K,features:t})}ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(W),i.Zb(w),i.Zb(S),i.Zb(x))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const Y=[q,{provide:H,useExisting:q},{provide:W,useExisting:g}];let Z=(()=>{class t extends o.a{ngOnDestroy(){this.complete()}}return t.\u0275fac=function(e){return X(e||t)},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const X=i.Xb(Z),G=[Z];class $ extends s.a{}let Q=(()=>{class t extends r.a{constructor(t,e,n,i){super(i);const r={state:i},s=t.pipe(Object(c.b)(a.b)).pipe(Object(l.a)(e)).pipe(Object(h.a)(J,r));this.stateSubscription=s.subscribe(({state:t,action:e})=>{this.next(t),n.next(e)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(g),i.Zb(H),i.Zb(Z),i.Zb(w))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t.INIT=b,t})();function J(t={state:void 0},[e,n]){const{state:i}=t;return{state:n(i,e),action:e}}const tt=[Q,{provide:$,useExisting:Q}];let et=(()=>{class t extends s.a{constructor(t,e,n){super(),this.actionsObserver=e,this.reducerManager=n,this.source=t}select(t,...e){return it.call(null,t,...e)(this)}lift(e){const n=new t(this,this.actionsObserver,this.reducerManager);return n.operator=e,n}dispatch(t){this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,e){this.reducerManager.addReducer(t,e)}removeReducer(t){this.reducerManager.removeReducer(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb($),i.Zb(g),i.Zb(q))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();const nt=[et];function it(t,e,...n){return function(i){let r;if("string"==typeof t){const s=[e,...n].filter(Boolean);r=i.pipe(function(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>Object(u.a)(function(t,e){return n=>{let i=n;for(let r=0;r<e;r++){const e=null!=i?i[t[r]]:void 0;if(void 0===e)return;i=e}return i}}(t,e))(n)}(t,...s))}else{if("function"!=typeof t)throw new TypeError(`Unexpected type '${typeof t}' in select operator, expected 'string' or 'function'`);r=i.pipe(Object(u.a)(n=>t(n,e)))}return r.pipe(Object(d.a)())}}const rt="https://ngrx.io/guide/store/configuration/runtime-checks";function st(t){return void 0===t}function ot(t){return null===t}function at(t){return Array.isArray(t)}function ct(t){return"object"==typeof t&&null!==t}function lt(t){return"function"==typeof t}function ht(t){Object.freeze(t);const e=lt(t);return Object.getOwnPropertyNames(t).forEach(n=>{if(!n.startsWith("\u0275")&&function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(t,n)&&(!e||"caller"!==n&&"callee"!==n&&"arguments"!==n)){const e=t[n];!ct(e)&&!lt(e)||Object.isFrozen(e)||ht(e)}}),t}function ut(t,e=[]){return(st(t)||ot(t))&&0===e.length?{path:["root"],value:t}:Object.keys(t).reduce((n,i)=>{if(n)return n;const r=t[i];return function(t){return lt(t)&&t.hasOwnProperty("\u0275cmp")}(r)?n:!(st(r)||ot(r)||function(t){return"number"==typeof t}(r)||function(t){return"boolean"==typeof t}(r)||function(t){return"string"==typeof t}(r)||at(r))&&(function(t){if(!function(t){return ct(t)&&!at(t)}(t))return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}(r)?ut(r,[...e,i]):{path:[...e,i],value:r})},!1)}function dt(t,e){if(!1===t)return;const n=t.path.join("."),i=new Error(`Detected unserializable ${e} at "${n}". ${rt}#strict${e}serializability`);throw i.value=t.value,i.unserializablePath=n,i}function ft(t){return Object(i.Z)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},t):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function pt({strictActionSerializability:t,strictStateSerializability:e}){return n=>t||e?function(t,e){return function(n,i){e.action(i)&&dt(ut(i),"action");const r=t(n,i);return e.state()&&dt(ut(r),"state"),r}}(n,{action:e=>t&&!bt(e),state:()=>e}):n}function mt({strictActionImmutability:t,strictStateImmutability:e}){return n=>t||e?function(t,e){return function(n,i){const r=e.action(i)?ht(i):i,s=t(n,r);return e.state()?ht(s):s}}(n,{action:e=>t&&!bt(e),state:()=>e}):n}function bt(t){return t.type.startsWith("@ngrx")}function gt({strictActionWithinNgZone:t}){return e=>t?function(t,e){return function(n,r){if(e.action(r)&&!i.B.isInAngularZone())throw new Error(`Action '${r.type}' running outside NgZone. ${rt}#strictactionwithinngzone`);return t(n,r)}}(e,{action:e=>t&&!bt(e)}):e}function _t(){return[{provide:V,multi:!0,deps:[N],useFactory:vt}]}function yt(t){return t}function vt(t){if(!t.strictActionTypeUniqueness)return;const e=Object.entries(f).filter(([,t])=>t>1).map(([t])=>t);if(e.length)throw new Error(`Action types are registered more than once, ${e.map(t=>`"${t}"`).join(", ")}. ${rt}#strictactiontypeuniqueness`)}let wt=(()=>{class t{constructor(t,e,n,i,r,s){}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)(i.Zb(g),i.Zb(H),i.Zb(Z),i.Zb(et),i.Zb(y,8),i.Zb(V,8))}}),t})(),xt=(()=>{class t{constructor(t,e,n,i,r){this.features=t,this.featureReducers=e,this.reducerManager=n;const s=t.map((t,n)=>{const i=e.shift()[n];return Object.assign(Object.assign({},t),{reducers:i,initialState:Ot(t.initialState)})});n.addFeatures(s)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)(i.Zb(I),i.Zb(L),i.Zb(q),i.Zb(wt),i.Zb(V,8))}}),t})(),Ct=(()=>{class t{static forRoot(t,e={}){return{ngModule:wt,providers:[{provide:y,useFactory:Dt,deps:[[et,new i.C,new i.M]]},{provide:v,useValue:e.initialState},{provide:w,useFactory:Ot,deps:[v]},{provide:E,useValue:t},{provide:O,useExisting:t instanceof i.s?t:E},{provide:S,deps:[i.t,E,[new i.q(O)]],useFactory:St},{provide:P,useValue:e.metaReducers?e.metaReducers:[]},{provide:M,deps:[R,P],useFactory:At},{provide:C,useValue:e.reducerFactory?e.reducerFactory:U},{provide:x,deps:[C,M],useFactory:z},_,Y,G,tt,nt,(n=e.runtimeChecks,[{provide:F,useValue:n},{provide:j,useFactory:yt,deps:[F]},{provide:N,deps:[j],useFactory:ft},{provide:R,multi:!0,deps:[N],useFactory:mt},{provide:R,multi:!0,deps:[N],useFactory:pt},{provide:R,multi:!0,deps:[N],useFactory:gt}]),_t()]};var n}static forFeature(t,e,n={}){return{ngModule:xt,providers:[{provide:D,multi:!0,useValue:n},{provide:k,multi:!0,useValue:{key:t,reducerFactory:n instanceof i.s||!n.reducerFactory?U:n.reducerFactory,metaReducers:n instanceof i.s||!n.metaReducers?[]:n.metaReducers,initialState:n instanceof i.s||!n.initialState?void 0:n.initialState}},{provide:I,deps:[i.t,D,k],useFactory:Et},{provide:A,multi:!0,useValue:e},{provide:T,multi:!0,useExisting:e instanceof i.s?e:A},{provide:L,multi:!0,deps:[i.t,A,[new i.q(T)]],useFactory:kt},_t()]}}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)}}),t})();function St(t,e){return e instanceof i.s?t.get(e):e}function Et(t,e,n){return n.map((n,r)=>{if(e[r]instanceof i.s){const i=t.get(e[r]);return{key:n.key,reducerFactory:i.reducerFactory?i.reducerFactory:U,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return n})}function kt(t,e){return e.map(e=>e instanceof i.s?t.get(e):e)}function Ot(t){return"function"==typeof t?t():t}function At(t,e){return t.concat(e)}function Dt(t){if(t)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}},"tz+M":function(t,e,n){"use strict";var i=n("AQYT"),r=n("86MQ"),s=r.assert;function o(t,e){if(t instanceof o)return t;this._importDER(t,e)||(s(t.r&&t.s,"Signature without r or s"),this.r=new i(t.r,16),this.s=new i(t.s,16),this.recoveryParam=void 0===t.recoveryParam?null:t.recoveryParam)}function a(){this.place=0}function c(t,e){var n=t[e.place++];if(!(128&n))return n;var i=15&n;if(0===i||i>4)return!1;for(var r=0,s=0,o=e.place;s<i;s++,o++)r<<=8,r|=t[o],r>>>=0;return!(r<=127)&&(e.place=o,r)}function l(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e<n;)e++;return 0===e?t:t.slice(e)}function h(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=o,o.prototype._importDER=function(t,e){t=r.toArray(t,e);var n=new a;if(48!==t[n.place++])return!1;var s=c(t,n);if(!1===s)return!1;if(s+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var o=c(t,n);if(!1===o)return!1;var l=t.slice(n.place,o+n.place);if(n.place+=o,2!==t[n.place++])return!1;var h=c(t,n);if(!1===h)return!1;if(t.length!==h+n.place)return!1;var u=t.slice(n.place,h+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(l),this.s=new i(u),this.recoveryParam=null,!0},o.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=l(e),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var i=[2];h(i,e.length),(i=i.concat(e)).push(2),h(i,n.length);var s=i.concat(n),o=[48];return h(o,s.length),o=o.concat(s),r.encode(o,t)}},"u/Db":function(t,e,n){var i=n("J6Nv"),r=n("BCVQ");e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!i.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return r.testNumeric(t)?e.NUMERIC:r.testAlphanumeric(t)?e.ALPHANUMERIC:r.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,n){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(i){return n}}},u0Sq:function(t,e,n){"use strict";var i=n("w8CP"),r=n("7ckf"),s=i.rotl32,o=i.sum32,a=i.sum32_3,c=i.sum32_4,l=r.BlockHash;function h(){if(!(this instanceof h))return new h;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function u(t,e,n,i){return t<=15?e^n^i:t<=31?e&n|~e&i:t<=47?(e|~n)^i:t<=63?e&i|n&~i:e^(n|~i)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}i.inherits(h,l),e.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var n=this.h[0],i=this.h[1],r=this.h[2],l=this.h[3],h=this.h[4],_=n,y=i,v=r,w=l,x=h,C=0;C<80;C++){var S=o(s(c(n,u(C,i,r,l),t[p[C]+e],d(C)),b[C]),h);n=h,h=l,l=s(r,10),r=i,i=S,S=o(s(c(_,u(79-C,y,v,w),t[m[C]+e],f(C)),g[C]),x),_=x,x=w,w=s(v,10),v=y,y=S}S=a(this.h[1],r,w),this.h[1]=a(this.h[2],l,x),this.h[2]=a(this.h[3],h,_),this.h[3]=a(this.h[4],n,y),this.h[4]=a(this.h[0],i,v),this.h[0]=S},h.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var p=[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],m=[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],b=[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],g=[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]},uDfV:function(t,e,n){var i=n("P7XM"),r=n("T9HO"),s=n("tnIz"),o=n("hwdV").Buffer,a=new Array(160);function c(){this.init(),this._w=a,s.call(this,128,112)}i(c,r),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=c},uagp:function(t,e,n){"use strict";var i=n("AQYT"),r=n("aqI/"),s=n("86MQ"),o=n("DLvh"),a=n("/ayr"),c=s.assert,l=n("uzSA"),h=n("tz+M");function u(t){if(!(this instanceof u))return new u(t);"string"==typeof t&&(c(o.hasOwnProperty(t),"Unknown curve "+t),t=o[t]),t instanceof o.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=u,u.prototype.keyPair=function(t){return new l(this,t)},u.prototype.keyFromPrivate=function(t,e){return l.fromPrivate(this,t,e)},u.prototype.keyFromPublic=function(t,e){return l.fromPublic(this,t,e)},u.prototype.genKeyPair=function(t){t||(t={});for(var e=new r({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),s=this.n.sub(new i(2));;){var o=new i(e.generate(n));if(!(o.cmp(s)>0))return o.iaddn(1),this.keyFromPrivate(o)}},u.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},u.prototype.sign=function(t,e,n,s){"object"==typeof n&&(s=n,n=null),s||(s={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new i(t,16));for(var o=this.n.byteLength(),a=e.getPrivate().toArray("be",o),c=t.toArray("be",o),l=new r({hash:this.hash,entropy:a,nonce:c,pers:s.pers,persEnc:s.persEnc||"utf8"}),u=this.n.sub(new i(1)),d=0;;d++){var f=s.k?s.k(d):new i(l.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(u)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var g=f.invm(this.n).mul(b.mul(e.getPrivate()).iadd(t));if(0!==(g=g.umod(this.n)).cmpn(0)){var _=(p.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return s.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),_^=1),new h({r:b,s:g,recoveryParam:_})}}}}}},u.prototype.verify=function(t,e,n,r){t=this._truncateToN(new i(t,16)),n=this.keyFromPublic(n,r);var s=(e=new h(e,"hex")).r,o=e.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,c=o.invm(this.n),l=c.mul(t).umod(this.n),u=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,n.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(l,n.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(t,e,n,r){c((3&n)===n,"The recovery param is more than two bits"),e=new h(e,r);var s=this.n,o=new i(t),a=e.r,l=e.s,u=1&n,d=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=this.curve.pointFromX(d?a.add(this.curve.n):a,u);var f=e.r.invm(s),p=s.sub(o).mul(f).umod(s),m=l.mul(f).umod(s);return this.g.mulAdd(p,a,m)},u.prototype.getKeyRecoveryParam=function(t,e,n,i){if(null!==(e=new h(e,i)).recoveryParam)return e.recoveryParam;for(var r=0;r<4;r++){var s;try{s=this.recoverPubKey(t,e,r)}catch(t){continue}if(s.eq(n))return r}throw new Error("Unable to find valid recovery factor")}},ura0:function(t,e,n){"use strict";n.d(e,"c",function(){return v}),n.d(e,"a",function(){return l}),n.d(e,"b",function(){return g});var i=n("8Y7J"),r=n("SVse"),s=n("/q54"),o=(n("8LU1"),n("1G5W"),n("cUpR"));new Map;let a=(()=>{class t extends s.b{constructor(t,e,n,i,s,o,a){super(t,null,e,n),this.ngClassInstance=a,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new r.m(i,s,t,o)),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.Pb(i.l),i.Pb(s.i),i.Pb(s.f),i.Pb(i.u),i.Pb(i.v),i.Pb(i.G),i.Pb(r.m,10))},t.\u0275dir=i.Kb({type:t,inputs:{klass:["class","klass"]},features:[i.Ab]}),t})();const c=["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 l=(()=>{class t extends a{constructor(){super(...arguments),this.inputs=c}}return t.\u0275fac=function(e){return h(e||t)},t.\u0275dir=i.Kb({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]}),t})();const h=i.Xb(l);new WeakMap;class u{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 d(t){let e=typeof t;return"object"===e?t.constructor===Array?"array":t.constructor===Set?"set":"object":e}function f(t){const[e,...n]=t.split(":");return new u(e,n.join(":"))}function p(t,e){return e.key&&(t[e.key]=e.value),t}let m=(()=>{class t extends s.b{constructor(t,e,n,i,s,o,a,c,l){super(t,null,e,n),this.sanitizer=i,this.ngStyleInstance=a,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new r.p(t,s,o)),this.init();const h=this.nativeElement.getAttribute("style")||"";this.fallbackStyles=this.buildStyleMap(h),this.isServer=c&&Object(r.B)(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(d(t)){case"string":return y(function(t,e=";"){return String(t).trim().split(e).map(t=>t.trim()).filter(t=>""!==t)}(t),e);case"array":return y(t,e);case"set":default:return function(t,e){let n=[];return"set"===d(t)?t.forEach(t=>n.push(t)):Object.keys(t).forEach(e=>{n.push(`${e}:${t[e]}`)}),function(t,e){return t.map(f).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(p,{})}(n,e)}(t,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(i.l),i.Pb(s.i),i.Pb(s.f),i.Pb(o.b),i.Pb(i.v),i.Pb(i.G),i.Pb(r.p,10),i.Pb(s.g),i.Pb(i.D))},t.\u0275dir=i.Kb({type:t,features:[i.Ab]}),t})();const b=["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 g=(()=>{class t extends m{constructor(){super(...arguments),this.inputs=b}}return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=i.Kb({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]}),t})();const _=i.Xb(g);function y(t,e){return t.map(f).filter(t=>!!t).map(t=>(e&&(t.value=e(t.value)),t)).reduce(p,{})}let v=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[s.c]]}),t})()},usKN:function(t,e,n){var i={ECB:n("AUX7"),CBC:n("wRn4"),CFB:n("NQVK"),CFB8:n("YskG"),CFB1:n("Ujlg"),OFB:n("UWVS"),CTR:n("at63"),GCM:n("at63")},r=n("6F8h");for(var s in r)r[s].module=i[r[s].mode];t.exports=r},uzSA:function(t,e,n){"use strict";var i=n("AQYT"),r=n("86MQ").assert;function s(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=s,s.fromPublic=function(t,e,n){return e instanceof s?e:new s(t,{pub:e,pubEnc:n})},s.fromPrivate=function(t,e,n){return e instanceof s?e:new s(t,{priv:e,privEnc:n})},s.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},s.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?r(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||r(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},s.prototype.derive=function(t){return t.mul(this.priv).getX()},s.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},s.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},vZ2G:function(t,e){t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("7o/Q");function r(){}var s=n("n6bG");function o(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(s.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()}}},vrAh:function(t,e,n){"use strict";n.d(e,"a",function(){return F}),n.d(e,"b",function(){return K}),n.d(e,"c",function(){return H});var i=n("YEUz"),r=n("8LU1"),s=n("8Y7J"),o=n("UhP/"),a=n("quSY"),c=n("XNiG"),l=n("NXyV"),h=n("VRyK"),u=n("LRne"),d=n("xgIS"),f=n("SVse"),p=n("1O3W"),m=n("7KAL"),b=n("Ht+U"),g=n("SCoL"),_=n("1z/I"),y=n("s7LF"),v=n("Q2Ze"),w=n("IzEk"),x=n("eIep"),C=n("pLZG"),S=n("lJxs"),E=n("vkgz"),k=n("3E0/"),O=n("9gLZ");const A=["panel"];function D(t,e){if(1&t&&(s.Vb(0,"div",0,1),s.mc(2),s.Ub()),2&t){const t=e.id,n=s.hc();s.oc("id",n.id)("ngClass",n._classList),s.Eb("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(t))}}const I=["*"];let T=0;class L{constructor(t,e){this.source=t,this.option=e}}class P{}const R=Object(o.y)(P),M=new s.s("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let j=(()=>{class t extends R{constructor(t,e,n){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=a.a.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new s.o,this.opened=new s.o,this.closed=new s.o,this.optionActivated=new s.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=Object(r.c)(t)}set classList(t){this._classList=t&&t.length?Object(r.g)(t).reduce((t,e)=>(t[e]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new i.b(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 L(this,t);this.optionSelected.emit(e)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.h),s.Pb(s.l),s.Pb(M))},t.\u0275dir=s.Kb({type:t,viewQuery:function(t,e){if(1&t&&(s.Ec(s.O,!0),s.Pc(A,!0)),2&t){let t;s.vc(t=s.ec())&&(e.template=t.first),s.vc(t=s.ec())&&(e.panel=t.first)}},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[s.Ab]}),t})(),F=(()=>{class t extends j{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(e){return N(e||t)},t.\u0275cmp=s.Jb({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){if(1&t&&(s.Ib(n,o.f,!0),s.Ib(n,o.m,!0)),2&t){let t;s.vc(t=s.ec())&&(e.optionGroups=t),s.vc(t=s.ec())&&(e.options=t)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[s.Cb([{provide:o.g,useExisting:t}]),s.Ab],ngContentSelectors:I,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(s.nc(),s.Ic(0,D,3,4,"ng-template"))},directives:[f.m],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})();const N=s.Xb(F),V=new s.s("mat-autocomplete-scroll-strategy"),U={provide:V,deps:[p.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B={provide:y.k,useExisting:Object(s.X)(()=>H),multi:!0};let z=(()=>{class t{constructor(t,e,n,i,r,s,o,u,d,f,p){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=r,this._dir=o,this._formField=u,this._document=d,this._viewportRuler=f,this._defaults=p,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new c.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=Object(l.a)(()=>this.autocomplete&&this.autocomplete.options?Object(h.a)(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Object(w.a)(1),Object(x.a)(()=>this.optionSelections))),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Object(r.c)(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(h.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(C.a)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(C.a)(()=>this._overlayAttached)):Object(u.a)()).pipe(Object(S.a)(t=>t instanceof o.o?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Object(h.a)(Object(d.a)(this._document,"click"),Object(d.a)(this._document,"touchend")).pipe(Object(C.a)(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(e!==b.f||Object(b.r)(t)||t.preventDefault(),this.activeOption&&e===b.e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const n=this.autocomplete._keyManager.activeItem,i=e===b.o||e===b.c;this.panelOpen||e===b.n?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_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)}_subscribeToClosingActions(){const t=this._zone.onStable.pipe(Object(w.a)(1)),e=this.autocomplete.options.changes.pipe(Object(E.a)(()=>this._positionStrategy.reapplyLastPosition()),Object(k.a)(0));return Object(h.a)(t,e).pipe(Object(x.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}),Object(w.a)(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(){var t;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Object(g.c)(this._element.nativeElement));let e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new _.i(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t._labelId}),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe(t=>{(t.keyCode===b.f&&!Object(b.r)(t)||t.keyCode===b.o&&Object(b.r)(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&e&&e.updateSize({width:this._getPanelWidth()})})),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new p.d({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_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=this._aboveClass,i=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];let r;r="above"===this.position?i:"below"===this.position?e:[...e,...i],t.withPositions(r)}_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}_scrollToOption(t){const e=this.autocomplete,n=Object(o.v)(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else{const n=e.options.toArray()[t];if(n){const t=n._getHostElement(),i=Object(o.w)(t.offsetTop,t.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(i)}}}}return t.\u0275fac=function(e){return new(e||t)(s.Pb(s.l),s.Pb(p.c),s.Pb(s.S),s.Pb(s.B),s.Pb(s.h),s.Pb(V),s.Pb(O.b,8),s.Pb(v.a,9),s.Pb(f.d,8),s.Pb(m.e),s.Pb(M,8))},t.\u0275dir=s.Kb({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[s.Bb]}),t})(),H=(()=>{class t extends z{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(e){return W(e||t)},t.\u0275dir=s.Kb({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&s.dc("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&&s.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)},exportAs:["matAutocompleteTrigger"],features:[s.Cb([B]),s.Ab]}),t})();const W=s.Xb(H);let K=(()=>{class t{}return t.\u0275mod=s.Nb({type:t}),t.\u0275inj=s.Mb({factory:function(e){return new(e||t)},providers:[U],imports:[[p.f,o.n,o.i,f.c],m.b,o.n,o.i]}),t})()},vvrf:function(t,e,n){var i=n("u/Db"),r=n("3X7Y"),s=n("nZSm"),o=n("AZa5"),a=n("Lzq4"),c=n("BCVQ"),l=n("e/Dd"),h=n("ELBg");function u(t){return unescape(encodeURIComponent(t)).length}function d(t,e,n){for(var i,r=[];null!==(i=t.exec(n));)r.push({data:i[0],index:i.index,mode:e,length:i[0].length});return r}function f(t){var e,n,r=d(c.NUMERIC,i.NUMERIC,t),s=d(c.ALPHANUMERIC,i.ALPHANUMERIC,t);return l.isKanjiModeEnabled()?(e=d(c.BYTE,i.BYTE,t),n=d(c.KANJI,i.KANJI,t)):(e=d(c.BYTE_KANJI,i.BYTE,t),n=[]),r.concat(s,e,n).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,e){switch(e){case i.NUMERIC:return r.getBitsLength(t);case i.ALPHANUMERIC:return s.getBitsLength(t);case i.KANJI:return a.getBitsLength(t);case i.BYTE:return o.getBitsLength(t)}}function m(t,e){var n,c=i.getBestModeForData(t);if((n=i.from(e,c))!==i.BYTE&&n.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+i.toString(n)+".\n Suggested mode is: "+i.toString(c));switch(n!==i.KANJI||l.isKanjiModeEnabled()||(n=i.BYTE),n){case i.NUMERIC:return new r(t);case i.ALPHANUMERIC:return new s(t);case i.KANJI:return new a(t);case i.BYTE:return new o(t)}}e.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(m(e,null)):e.data&&t.push(m(e.data,e.mode)),t},[])},e.fromString=function(t,n){for(var r=function(t,e){for(var n={},r={start:{}},s=["start"],o=0;o<t.length;o++){for(var a=t[o],c=[],l=0;l<a.length;l++){var h=a[l],u=""+o+l;c.push(u),n[u]={node:h,lastCount:0},r[u]={};for(var d=0;d<s.length;d++){var f=s[d];n[f]&&n[f].node.mode===h.mode?(r[f][u]=p(n[f].lastCount+h.length,h.mode)-p(n[f].lastCount,h.mode),n[f].lastCount+=h.length):(n[f]&&(n[f].lastCount=h.length),r[f][u]=p(h.length,h.mode)+4+i.getCharCountIndicator(h.mode,e))}}s=c}for(d=0;d<s.length;d++)r[s[d]].end=0;return{map:r,table:n}}(function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];switch(r.mode){case i.NUMERIC:e.push([r,{data:r.data,mode:i.ALPHANUMERIC,length:r.length},{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.ALPHANUMERIC:e.push([r,{data:r.data,mode:i.BYTE,length:r.length}]);break;case i.KANJI:e.push([r,{data:r.data,mode:i.BYTE,length:u(r.data)}]);break;case i.BYTE:e.push([{data:r.data,mode:i.BYTE,length:u(r.data)}])}}return e}(f(t,l.isKanjiModeEnabled())),n),s=h.find_path(r.map,"start","end"),o=[],a=1;a<s.length-1;a++)o.push(r.table[s[a]].node);return e.fromArray(o.reduce(function(t,e){var n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[]))},e.rawSplit=function(t){return e.fromArray(f(t,l.isKanjiModeEnabled()))}},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("XNiG"),r=n("HDdC"),s=n("7o/Q"),o=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 s.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 h 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 o.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return a()(this)}}const u=(()=>{const t=h.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 d 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 f(){return new i.a}function p(){return t=>{return a()((e=f,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,u);return i.source=t,i.subjectFactory=n,i})(t));var e}}},w8CP:function(t,e,n){"use strict";var i=n("2j6C"),r=n("P7XM");function s(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function o(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=r,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(var i=0,r=0;r<t.length;r++){var o=t.charCodeAt(r);o<128?n[i++]=o:o<2048?(n[i++]=o>>6|192,n[i++]=63&o|128):s(t,r)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++r)),n[i++]=o>>18|240,n[i++]=o>>12&63|128,n[i++]=o>>6&63|128,n[i++]=63&o|128):(n[i++]=o>>12|224,n[i++]=o>>6&63|128,n[i++]=63&o|128)}else for(r=0;r<t.length;r++)n[r]=0|t[r];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=a(t[n].toString(16));return e},e.htonl=o,e.toHex32=function(t,e){for(var n="",i=0;i<t.length;i++){var r=t[i];"little"===e&&(r=o(r)),n+=c(r.toString(16))}return n},e.zero2=a,e.zero8=c,e.join32=function(t,e,n,r){var s=n-e;i(s%4==0);for(var o=new Array(s/4),a=0,c=e;a<o.length;a++,c+=4)o[a]=("big"===r?t[c]<<24|t[c+1]<<16|t[c+2]<<8|t[c+3]:t[c+3]<<24|t[c+2]<<16|t[c+1]<<8|t[c])>>>0;return o},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,r=0;i<t.length;i++,r+=4){var s=t[i];"big"===e?(n[r]=s>>>24,n[r+1]=s>>>16&255,n[r+2]=s>>>8&255,n[r+3]=255&s):(n[r+3]=s>>>24,n[r+2]=s>>>16&255,n[r+1]=s>>>8&255,n[r]=255&s)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,i){return t+e+n+i>>>0},e.sum32_5=function(t,e,n,i,r){return t+e+n+i+r>>>0},e.sum64=function(t,e,n,i){var r=i+t[e+1]>>>0;t[e]=(r<i?1:0)+n+t[e]>>>0,t[e+1]=r},e.sum64_hi=function(t,e,n,i){return(e+i>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,i){return e+i>>>0},e.sum64_4_hi=function(t,e,n,i,r,s,o,a){var c=0,l=e;return c+=(l=l+i>>>0)<e?1:0,c+=(l=l+s>>>0)<s?1:0,t+n+r+o+(c+=(l=l+a>>>0)<a?1:0)>>>0},e.sum64_4_lo=function(t,e,n,i,r,s,o,a){return e+i+s+a>>>0},e.sum64_5_hi=function(t,e,n,i,r,s,o,a,c,l){var h=0,u=e;return h+=(u=u+i>>>0)<e?1:0,h+=(u=u+s>>>0)<s?1:0,h+=(u=u+a>>>0)<a?1:0,t+n+r+o+c+(h+=(u=u+l>>>0)<l?1:0)>>>0},e.sum64_5_lo=function(t,e,n,i,r,s,o,a,c,l){return e+i+s+a+l>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},wHSu:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return c}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return h}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return d}),n.d(e,"k",function(){return f}),n.d(e,"l",function(){return p}),n.d(e,"m",function(){return m}),n.d(e,"n",function(){return b}),n.d(e,"o",function(){return g}),n.d(e,"p",function(){return _}),n.d(e,"q",function(){return y}),n.d(e,"r",function(){return v}),n.d(e,"s",function(){return w}),n.d(e,"t",function(){return x}),n.d(e,"u",function(){return C}),n.d(e,"v",function(){return S}),n.d(e,"w",function(){return E}),n.d(e,"x",function(){return k}),n.d(e,"y",function(){return O}),n.d(e,"z",function(){return A}),n.d(e,"A",function(){return D}),n.d(e,"B",function(){return I}),n.d(e,"C",function(){return T}),n.d(e,"D",function(){return L}),n.d(e,"E",function(){return P}),n.d(e,"F",function(){return R}),n.d(e,"G",function(){return M}),n.d(e,"H",function(){return j}),n.d(e,"I",function(){return F}),n.d(e,"J",function(){return N}),n.d(e,"K",function(){return V}),n.d(e,"L",function(){return U}),n.d(e,"M",function(){return B}),n.d(e,"N",function(){return z}),n.d(e,"O",function(){return H}),n.d(e,"P",function(){return W});var i={prefix:"fas",iconName:"angle-double-down",icon:[320,512,[],"f103","M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]},r={prefix:"fas",iconName:"angle-double-up",icon:[320,512,[],"f102","M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]},s={prefix:"fas",iconName:"archive",icon:[512,512,[],"f187","M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]},o={prefix:"fas",iconName:"balance-scale",icon:[640,512,[],"f24e","M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},a={prefix:"fas",iconName:"bolt",icon:[320,512,[],"f0e7","M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]},c={prefix:"fas",iconName:"chart-bar",icon:[512,512,[],"f080","M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]},l={prefix:"fas",iconName:"chart-pie",icon:[544,512,[],"f200","M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]},h={prefix:"fas",iconName:"code-branch",icon:[384,512,[],"f126","M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]},u={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},d={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},f={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},p={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]},m={prefix:"fas",iconName:"eject",icon:[448,512,[],"f052","M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]},b={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},g={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},_={prefix:"fas",iconName:"eye",icon:[576,512,[],"f06e","M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]},y={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]},v={prefix:"fas",iconName:"history",icon:[512,512,[],"f1da","M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]},w={prefix:"fas",iconName:"infinity",icon:[640,512,[],"f534","M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]},x={prefix:"fas",iconName:"info-circle",icon:[512,512,[],"f05a","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]},C={prefix:"fas",iconName:"life-ring",icon:[512,512,[],"f1cd","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]},S={prefix:"fas",iconName:"link",icon:[512,512,[],"f0c1","M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]},E={prefix:"fas",iconName:"map-signs",icon:[512,512,[],"f277","M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]},k={prefix:"fas",iconName:"money-bill-wave",icon:[640,512,[],"f53a","M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]},O={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},A={prefix:"fas",iconName:"paint-brush",icon:[512,512,[],"f1fc","M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]},D={prefix:"fas",iconName:"percentage",icon:[384,512,[],"f541","M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]},I={prefix:"fas",iconName:"project-diagram",icon:[640,512,[],"f542","M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]},T={prefix:"fas",iconName:"question",icon:[384,512,[],"f128","M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]},L={prefix:"fas",iconName:"receipt",icon:[384,512,[],"f543","M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]},P={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},R={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},M={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]},j={prefix:"fas",iconName:"tachometer-alt",icon:[576,512,[],"f3fd","M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]},F={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},N={prefix:"fas",iconName:"tools",icon:[512,512,[],"f7d9","M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]},V={prefix:"fas",iconName:"unlock-alt",icon:[448,512,[],"f13e","M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]},U={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},B={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},z={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},H={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]},W={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]}},wRn4:function(t,e,n){var i=n("jIre");e.encrypt=function(t,e){var n=i(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var r=t._cipher.decryptBlock(e);return i(r,n)}},wk3p:function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},wq4j:function(t,e,n){t.exports=n("43KI").PassThrough},xZGU:function(t,e,n){"use strict";var i,r=n("tjlA"),s=r.Buffer,o={};for(i in r)r.hasOwnProperty(i)&&"SlowBuffer"!==i&&"Buffer"!==i&&(o[i]=r[i]);var a=o.Buffer={};for(i in s)s.hasOwnProperty(i)&&"allocUnsafe"!==i&&"allocUnsafeSlow"!==i&&(a[i]=s[i]);if(o.Buffer.prototype=s.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(t,e,n){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return s(t,e,n)}),a.alloc||(a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var i=s(t);return e&&0!==e.length?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i}),!o.kStringMaxLength)try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(c){}o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o},xbPD:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t=null){return e=>e.lift(new s(t))}class s{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends i.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()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("HDdC"),r=n("DH7j"),s=n("n6bG"),o=n("lJxs");function a(t,e,n,l){return Object(s.a)(n)&&(l=n,n=void 0),l?a(t,e,n).pipe(Object(o.a)(t=>Object(r.a)(t)?l(...t):l(t))):new i.a(i=>{c(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function c(t,e,n,i,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const i=t;t.addEventListener(e,n,r),s=()=>i.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const i=t;t.on(e,n),s=()=>i.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const i=t;t.addListener(e,n),s=()=>i.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let s=0,o=t.length;s<o;s++)c(t[s],e,n,i,r)}i.add(s)}},y7ui:function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"b",function(){return x}),n.d(e,"c",function(){return y}),n.d(e,"d",function(){return k}),n.d(e,"e",function(){return v}),n.d(e,"f",function(){return _}),n.d(e,"g",function(){return b}),n.d(e,"h",function(){return S}),n.d(e,"i",function(){return E}),n.d(e,"j",function(){return p});var i=n("CtHx"),r=n("7+OI"),s=n("XNiG"),o=n("2Vo4"),a=n("LRne"),c=n("IzEk"),l=n("pLZG"),h=n("1G5W"),u=n("8Y7J"),d=n("8LU1"),f=n("9gLZ");class p extends class{constructor(){this.expansionModel=new i.c(!0)}toggle(t){this.expansionModel.toggle(this._trackByValue(t))}expand(t){this.expansionModel.select(this._trackByValue(t))}collapse(t){this.expansionModel.deselect(this._trackByValue(t))}isExpanded(t){return this.expansionModel.isSelected(this._trackByValue(t))}toggleDescendants(t){this.expansionModel.isSelected(this._trackByValue(t))?this.collapseDescendants(t):this.expandDescendants(t)}collapseAll(){this.expansionModel.clear()}expandDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.select(...e.map(t=>this._trackByValue(t)))}collapseDescendants(t){let e=[t];e.push(...this.getDescendants(t)),this.expansionModel.deselect(...e.map(t=>this._trackByValue(t)))}_trackByValue(t){return this.trackBy?this.trackBy(t):t}}{constructor(t,e){super(),this.getChildren=t,this.options=e,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const t=this.dataNodes.reduce((t,e)=>[...t,...this.getDescendants(e),e],[]);this.expansionModel.select(...t.map(t=>this._trackByValue(t)))}getDescendants(t){const e=[];return this._getDescendants(e,t),e.splice(1)}_getDescendants(t,e){t.push(e);const n=this.getChildren(e);Array.isArray(n)?n.forEach(e=>this._getDescendants(t,e)):Object(r.a)(n)&&n.pipe(Object(c.a)(1),Object(l.a)(Boolean)).subscribe(e=>{for(const n of e)this._getDescendants(t,n)})}}const m=new u.s("CDK_TREE_NODE_OUTLET_NODE");let b=(()=>{class t{constructor(t,e){this.viewContainer=t,this._node=e}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.S),u.Pb(m,8))},t.\u0275dir=u.Kb({type:t,selectors:[["","cdkTreeNodeOutlet",""]]}),t})();class g{constructor(t){this.$implicit=t}}let _=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.O))},t.\u0275dir=u.Kb({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),t})(),y=(()=>{class t{constructor(t,e){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new s.a,this._levels=new Map,this.viewChange=new o.a({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}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);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;Object(i.h)(this._dataSource)?t=this._dataSource.connect(this):Object(r.a)(this._dataSource)?t=this._dataSource:Array.isArray(this._dataSource)&&(t=Object(a.a)(this._dataSource)),t&&(this._dataSubscription=t.pipe(Object(h.a)(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,s)=>{if(null==e.previousIndex)this.insertNode(t[s],s,n,i);else if(null==s)n.remove(r),this._levels.delete(e.item);else{const t=n.get(r);n.move(t,s)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(t,e){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(n=>n.when&&n.when(e,t))||this._defaultNodeDef}insertNode(t,e,n,i){const r=this._getNodeDef(t,e),s=new g(t);s.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,s.level),(n||this._nodeOutlet.viewContainer).createEmbeddedView(r.template,s,e),v.mostRecentTreeNode&&(v.mostRecentTreeNode.data=t)}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.u),u.Pb(u.h))},t.\u0275cmp=u.Jb({type:t,selectors:[["cdk-tree"]],contentQueries:function(t,e,n){if(1&t&&u.Ib(n,_,!0),2&t){let t;u.vc(t=u.ec())&&(e._nodeDefs=t)}},viewQuery:function(t,e){if(1&t&&u.Ec(b,!0),2&t){let t;u.vc(t=u.ec())&&(e._nodeOutlet=t.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&&u.Rb(0,0)},directives:[b],encapsulation:2}),t})(),v=(()=>{class t{constructor(e,n){this._elementRef=e,this._tree=n,this._destroyed=new s.a,this._dataChanges=new s.a,t.mostRecentTreeNode=this,this._elementRef.nativeElement.classList.add("cdk-tree-node"),this.role="treeitem"}get role(){return"treeitem"}set role(t){this._elementRef.nativeElement.setAttribute("role",t)}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)}_setExpanded(t){this._isAriaExpanded=t,this._elementRef.nativeElement.setAttribute("aria-expanded",""+t)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function(t){let e=t.parentElement;for(;e&&!w(e);)e=e.parentElement;return e?e.classList.contains("cdk-nested-tree-node")?Object(d.f)(e.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",""+(this.level+1))}ngDoCheck(){this.isExpanded!=this._isAriaExpanded&&this._setExpanded(this.isExpanded)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(u.l),u.Pb(y))},t.\u0275dir=u.Kb({type:t,selectors:[["cdk-tree-node"]],inputs:{role:"role"},exportAs:["cdkTreeNode"]}),t.mostRecentTreeNode=null,t})();function w(t){const e=t.classList;return!(!(null==e?void 0:e.contains("cdk-nested-tree-node"))&&!(null==e?void 0:e.contains("cdk-tree")))}let x=(()=>{class t extends v{constructor(t,e,n){super(t,e),this._elementRef=t,this._tree=e,this._differs=n,this._elementRef.nativeElement.classList.add("cdk-nested-tree-node")}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const t=this._tree.treeControl.getChildren(this.data);Array.isArray(t)?this.updateChildrenNodes(t):Object(r.a)(t)&&t.pipe(Object(h.a)(this._destroyed)).subscribe(t=>this.updateChildrenNodes(t)),this.nodeOutlet.changes.pipe(Object(h.a)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngDoCheck(){super.ngDoCheck()}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)(u.Pb(u.l),u.Pb(y),u.Pb(u.u))},t.\u0275dir=u.Kb({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(t,e,n){if(1&t&&u.Ib(n,b,!0),2&t){let t;u.vc(t=u.ec())&&(e.nodeOutlet=t)}},inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[u.Cb([{provide:v,useExisting:t},{provide:m,useExisting:t}]),u.Ab]}),t})();const C=/([A-Za-z%]+)$/;let S=(()=>{class t{constructor(t,e,n,i){this._treeNode=t,this._tree=e,this._element=n,this._dir=i,this._destroyed=new s.a,this.indentUnits="px",this._indent=40,this._setPadding(),i&&i.change.pipe(Object(h.a)(this._destroyed)).subscribe(()=>this._setPadding(!0)),t._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(t){this._setLevelInput(t)}get indent(){return this._indent}set indent(t){this._setIndentInput(t)}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}}_setLevelInput(t){this._level=Object(d.f)(t,null),this._setPadding()}_setIndentInput(t){let e=t,n="px";if("string"==typeof t){const i=t.split(C);e=i[0],n=i[1]||n}this.indentUnits=n,this._indent=Object(d.f)(e),this._setPadding()}}return t.\u0275fac=function(e){return new(e||t)(u.Pb(v),u.Pb(y),u.Pb(u.l),u.Pb(f.b,8))},t.\u0275dir=u.Kb({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),t})(),E=(()=>{class t{constructor(t,e){this._tree=t,this._treeNode=e,this._recursive=!1}get recursive(){return this._recursive}set recursive(t){this._recursive=Object(d.c)(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)(u.Pb(y),u.Pb(v))},t.\u0275dir=u.Kb({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(t,e){1&t&&u.dc("click",function(t){return e._toggle(t)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),t})(),k=(()=>{class t{}return t.\u0275mod=u.Nb({type:t}),t.\u0275inj=u.Mb({factory:function(e){return new(e||t)}}),t})()},yCtX:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=n("HDdC"),r=n("ngJS"),s=n("jZKg");function o(t,e){return e?Object(s.a)(t,e):new i.a(Object(r.a)(t))}},yKow:function(t,e,n){var i=n("e/Dd"),r=n("NPxG"),s=n("ekOh"),o=n("u/Db"),a=n("J6Nv"),c=n("49sm"),l=i.getBCHDigit(7973);function h(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){var n=0;return t.forEach(function(t){var i=h(t.mode,e);n+=i+t.getBitsLength()}),n}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,n){if(!a.isValid(t))throw new Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);var s=8*(i.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,e));if(n===o.MIXED)return s;var c=s-h(n,t);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(t,n){var i,r=s.from(n,s.M);if(c(t)){if(t.length>1)return function(t,n){for(var i=1;i<=40;i++)if(u(t,i)<=e.getCapacity(i,n,o.MIXED))return i}(t,r);if(0===t.length)return 1;i=t[0]}else i=t;return function(t,n,i){for(var r=1;r<=40;r++)if(n<=e.getCapacity(r,i,t))return r}(i.mode,i.getLength(),r)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var e=t<<12;i.getBCHDigit(e)-l>=0;)e^=7973<<i.getBCHDigit(e)-l;return t<<12|e}},yLV6:function(t,e,n){var i;!function(r,s,o,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],h=s.createElement("div"),u=Math.round,d=Math.abs,f=Date.now;function p(t,e,n){return setTimeout(w(t,n),e)}function m(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(t.length!==a)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",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,i,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(t===a||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(i!==a&&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&&t[i[r]]===a)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),y=g(function(t,e){return _(t,e,!0)},"merge","Use `assign`.");function v(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 x(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function C(t,e){return t===a?e:t}function S(t,e,n){b(A(e),function(e){t.addEventListener(e,n,!1)})}function E(t,e,n){b(A(e),function(e){t.removeEventListener(e,n,!1)})}function k(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function O(t,e){return t.indexOf(e)>-1}function A(t){return t.trim().split(/\s+/g)}function D(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 I(t){return Array.prototype.slice.call(t,0)}function T(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];D(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}function L(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<l.length;){if((i=(n=l[s])?n+r:e)in t)return i;s++}return a}var P=1;function R(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var M="ontouchstart"in r,j=L(r,"PointerEvent")!==a,F=M&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",V="mouse",U=["x","y"],B=["clientX","clientY"];function z(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){x(t.options.enable,[t])&&n.handler(e)},this.init()}function H(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=W(e)),r>1&&!n.firstMultiple?n.firstMultiple=W(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,c=o?o.center:s.center,l=e.center=K(i);e.timeStamp=f(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=X(c,l),e.distance=Z(c,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.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=Y(e.deltaX,e.deltaY);var h,u,p=q(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=d(p.x)>d(p.y)?p.x:p.y,e.scale=o?(h=o.pointers,Z((u=i)[0],u[1],B)/Z(h[0],h[1],B)):1,e.rotation=o?function(t,e){return X(e[1],e[0],B)+X(t[1],t[0],B)}(o.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,s,o=t.lastInterval||e,c=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(c>25||o.velocity===a)){var l=e.deltaX-o.deltaX,h=e.deltaY-o.deltaY,u=q(c,l,h);i=u.x,r=u.y,n=d(u.x)>d(u.y)?u.x:u.y,s=Y(l,h),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var m=t.element;k(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 W(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:u(t.pointers[n].clientX),clientY:u(t.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:e,center:K(e),deltaX:t.deltaX,deltaY:t.deltaY}}function K(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:u(n/e),y:u(i/e)}}function q(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){return t===e?1:d(t)>=d(e)?t<0?2:4:e<0?8:16}function Z(t,e,n){n||(n=U);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function X(t,e,n){return n||(n=U),180*Math.atan2(e[n[1]]-t[n[1]],e[n[0]]-t[n[0]])/Math.PI}z.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(R(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4},$="mousedown",Q="mousemove mouseup";function J(){this.evEl=$,this.evWin=Q,this.pressed=!1,z.apply(this,arguments)}v(J,z,{handler:function(t){var e=G[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:V,srcEvent:t}))}});var tt={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},et={2:N,3:"pen",4:V,5:"kinect"},nt="pointerdown",it="pointermove pointerup pointercancel";function rt(){this.evEl=nt,this.evWin=it,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(nt="MSPointerDown",it="MSPointerMove MSPointerUp MSPointerCancel"),v(rt,z,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=tt[i],s=et[t.pointerType]||t.pointerType,o=s==N,a=D(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?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:s,srcEvent:t}),n&&e.splice(a,1))}});var st={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ot="touchstart",at="touchstart touchmove touchend touchcancel";function ct(){this.evTarget=ot,this.evWin=at,this.started=!1,z.apply(this,arguments)}function lt(t,e){var n=I(t.touches),i=I(t.changedTouches);return 12&e&&(n=T(n.concat(i),"identifier",!0)),[n,i]}v(ct,z,{handler:function(t){var e=st[t.type];if(1===e&&(this.started=!0),this.started){var n=lt.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:N,srcEvent:t})}}});var ht={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ut="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=ut,this.targetIds={},z.apply(this,arguments)}function ft(t,e){var n=I(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=I(t.changedTouches),a=[],c=this.target;if(s=n.filter(function(t){return k(t.target,c)}),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[T(s.concat(a),"identifier",!0),a]:void 0}function pt(){z.apply(this,arguments);var t=w(this.handler,this);this.touch=new dt(this.manager,t),this.mouse=new J(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function mt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,bt.call(this,e)):12&t&&bt.call(this,e)}function bt(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 gt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}v(dt,z,{handler:function(t){var e=ht[t.type],n=ft.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}),v(pt,z,{handler:function(t,e,n){var i=n.pointerType==V;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(n.pointerType==N)mt.call(this,e,n);else if(i&&gt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var _t=L(h.style,"touchAction"),yt=_t!==a,vt="compute",wt="auto",xt="manipulation",Ct="none",St="pan-x",Et="pan-y",kt=function(){if(!yt)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 Ot(t,e){this.manager=t,this.set(e)}Ot.prototype={set:function(t){t==vt&&(t=this.compute()),yt&&this.manager.element.style&&kt[t]&&(this.manager.element.style[_t]=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){x(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(O(t,Ct))return Ct;var e=O(t,St),n=O(t,Et);return e&&n?Ct:e||n?e?St:Et:O(t,xt)?xt:wt}(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=O(i,Ct)&&!kt.none,s=O(i,Et)&&!kt["pan-y"],o=O(i,St)&&!kt["pan-x"];if(r&&1===t.pointers.length&&t.distance<2&&t.deltaTime<250)return;if(!o||!s)return r||s&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var At=32;function Dt(t){this.options=c({},this.defaults,t||{}),this.id=P++,this.manager=null,this.options.enable=C(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function It(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Tt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Lt(t,e){var n=e.manager;return n?n.get(t):t}function Pt(){Dt.apply(this,arguments)}function Rt(){Pt.apply(this,arguments),this.pX=null,this.pY=null}function Mt(){Pt.apply(this,arguments)}function jt(){Dt.apply(this,arguments),this._timer=null,this._input=null}function Ft(){Pt.apply(this,arguments)}function Nt(){Pt.apply(this,arguments)}function Vt(){Dt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ut(t,e){return(e=e||{}).recognizers=C(e.recognizers,Ut.defaults.preset),new Bt(t,e)}function Bt(t,e){this.options=c({},Ut.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||(j?rt:F?dt:M?pt:J))(this,H),this.touchAction=new Ot(this,this.options.touchAction),zt(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 zt(t,e){var n,i=t.element;i.style&&(b(t.options.cssProps,function(r,s){n=L(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}Dt.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(m(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Lt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return m(t,"dropRecognizeWith",this)||(t=Lt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(m(t,"requireFailure",this))return this;var e=this.requireFail;return-1===D(e,t=Lt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(m(t,"dropRequireFailure",this))return this;t=Lt(t,this);var e=D(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+It(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+It(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=At},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(!x(this.options.enable,[this,e]))return this.reset(),void(this.state=At);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},v(Pt,Dt,{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:At}}),v(Rt,Pt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(Et),24&t&&e.push(St),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Pt.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=Tt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(Mt,Pt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},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)}}),v(jt,Dt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[wt]},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=p(function(){this.state=8,this.tryEmit()},e.time,this);else if(4&t.eventType)return 8;return At},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=f(),this.manager.emit(this.options.event,this._input)))}}),v(Ft,Pt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(Nt,Pt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Rt.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&&d(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Tt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(Vt,Dt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xt]},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 s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||Z(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=p(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return At},failTimeout:function(){return this._timer=p(function(){this.state=At},this.options.interval,this),At},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ut.VERSION="2.0.7",Ut.defaults={domEvents:!1,touchAction:vt,enable:!0,inputTarget:null,inputClass:null,preset:[[Ft,{enable:!1}],[Mt,{enable:!1},["rotate"]],[Nt,{direction:6}],[Rt,{direction:6},["swipe"]],[Vt],[Vt,{event:"doubletap",taps:2},["tap"]],[jt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Bt.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 s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof Dt)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(m(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(m(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=D(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return b(A(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==a){var n=this.handlers;return b(A(t),function(t){e?n[t]&&n[t].splice(D(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=s.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&&zt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Ut,{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:At,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:Bt,Input:z,TouchAction:Ot,TouchInput:dt,MouseInput:J,PointerEventInput:rt,TouchMouseInput:pt,SingleTouchInput:ct,Recognizer:Dt,AttrRecognizer:Pt,Tap:Vt,Pan:Rt,Swipe:Nt,Pinch:Mt,Rotate:Ft,Press:jt,on:S,off:E,each:b,merge:y,extend:_,assign:c,inherit:v,bindFn:w,prefixed:L}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Ut,(i=(function(){return Ut}).call(e,n,e,t))===a||(t.exports=i)}(window,document)},yQ3t:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("8Y7J"),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("tqRt"),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("EY2u"),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("HDdC"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("VRyK"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("qgXg"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("jtHE"),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("w1tV"),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("bOdf"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("tS1D"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("Kj3r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("JIr8"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("1G5W"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("eIep"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("zP0r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("pxpQ"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("zp1y"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("Kqap");function DevToolsFeatureOptions(){}class StoreDevtoolsConfig{constructor(){this.maxAge=!1}}const STORE_DEVTOOLS_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/devtools Options"),INITIAL_OPTIONS=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("@ngrx/devtools Initial Config");function noMonitor(){return null}const DEFAULT_NAME="NgRx Store DevTools";function createConfig(t){const e={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0}};let n="function"==typeof t?t():t;const i=Object.assign({},e,{features:n.features||!!n.logOnly&&{pause:!0,export:!0,test:!0}||e.features},n);if(i.maxAge&&i.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+i.maxAge);return i}const PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING";class PerformAction{constructor(t,e){if(this.action=t,this.timestamp=e,this.type=PERFORM_ACTION,void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Refresh{constructor(){this.type=REFRESH}}class Reset{constructor(t){this.timestamp=t,this.type=RESET}}class Rollback{constructor(t){this.timestamp=t,this.type=ROLLBACK}}class Commit{constructor(t){this.timestamp=t,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(t){this.id=t,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(t,e,n=!0){this.start=t,this.end=e,this.active=n,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(t){this.index=t,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(t){this.actionId=t,this.type=JUMP_TO_ACTION}}class ImportState{constructor(t){this.nextLiftedState=t,this.type=IMPORT_STATE}}class LockChanges{constructor(t){this.status=t,this.type=LOCK_CHANGES}}class PauseRecording{constructor(t){this.status=t,this.type=PAUSE_RECORDING}}let DevtoolsDispatcher=(()=>{class t extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.a{}return t.\u0275fac=function(e){return \u0275DevtoolsDispatcher_BaseFactory(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lb({token:t,factory:t.\u0275fac}),t})();const \u0275DevtoolsDispatcher_BaseFactory=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Xb(DevtoolsDispatcher);function difference(t,e){return t.filter(t=>e.indexOf(t)<0)}function unliftState(t){const{computedStates:e,currentStateIndex:n}=t;if(n>=e.length){const{state:t}=e[e.length-1];return t}const{state:i}=e[n];return i}function unliftAction(t){return t.actionsById[t.nextActionId-1]}function liftAction(t){return new PerformAction(t,+Date.now())}function sanitizeActions(t,e){return Object.keys(e).reduce((n,i)=>{const r=Number(i);return n[r]=sanitizeAction(t,e[r],r),n},{})}function sanitizeAction(t,e,n){return Object.assign(Object.assign({},e),{action:t(e.action,n)})}function sanitizeStates(t,e){return e.map((e,n)=>({state:sanitizeState(t,e.state,n),error:e.error}))}function sanitizeState(t,e,n){return t(e,n)}function shouldFilterActions(t){return t.predicate||t.actionsSafelist||t.actionsBlocklist}function filterLiftedState(t,e,n,i){const r=[],s={},o=[];return t.stagedActionIds.forEach((a,c)=>{const l=t.actionsById[a];l&&(c&&isActionFiltered(t.computedStates[c],l,e,n,i)||(s[a]=l,r.push(a),o.push(t.computedStates[c])))}),Object.assign(Object.assign({},t),{stagedActionIds:r,actionsById:s,computedStates:o})}function isActionFiltered(t,e,n,i,r){const s=n&&!n(t,e.action),o=i&&!e.action.type.match(i.map(t=>escapeRegExp(t)).join("|")),a=r&&e.action.type.match(r.map(t=>escapeRegExp(t)).join("|"));return s||o||a}function escapeRegExp(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("Redux Devtools Extension");function ReduxDevtoolsExtensionConnection(){}function ReduxDevtoolsExtensionConfig(){}function ReduxDevtoolsExtension(){}let DevtoolsExtension=(()=>{class DevtoolsExtension{constructor(t,e,n){this.config=e,this.dispatcher=n,this.devtoolsExtension=t,this.createActionStreams()}notify(t,e){if(this.devtoolsExtension)if(t.type===PERFORM_ACTION){if(e.isLocked||e.isPaused)return;const n=unliftState(e);if(shouldFilterActions(this.config)&&isActionFiltered(n,t,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const i=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,n,e.currentStateIndex):n,r=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,t,e.nextActionId):t;this.sendToReduxDevtools(()=>this.extensionConnection.send(r,i))}else{const t=Object.assign(Object.assign({},e),{stagedActionIds:e.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,e.actionsById):e.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,e.computedStates):e.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,t,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.a(t=>{const e=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=e,e.init(),e.subscribe(e=>t.next(e)),e.unsubscribe}):Object(rxjs__WEBPACK_IMPORTED_MODULE_2__.b)()}createActionStreams(){const t=this.createChangesObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.a)()),e=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.START)),n=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.STOP)),i=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.DISPATCH),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(t=>this.unwrapAction(t.payload)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>t.type===IMPORT_STATE?this.dispatcher.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.l),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(()=>t),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(()=>Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(1)):Object(rxjs__WEBPACK_IMPORTED_MODULE_4__.a)(t))),r=t.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_9__.a)(t=>t.type===ExtensionActionTypes.ACTION),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(t=>this.unwrapAction(t.payload))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n)),s=i.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n));this.start$=e.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(n)),this.actions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(()=>r)),this.liftedActions$=this.start$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)(()=>s))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(t){const e={name:t.name,features:t.features,serialize:t.serialize};return!1!==t.maxAge&&(e.maxAge=t.maxAge),e}sendToReduxDevtools(t){try{t()}catch(e){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",e)}}}return DevtoolsExtension.\u0275fac=function(t){return new(t||DevtoolsExtension)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(REDUX_DEVTOOLS_EXTENSION),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(STORE_DEVTOOLS_CONFIG),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(DevtoolsDispatcher))},DevtoolsExtension.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lb({token:DevtoolsExtension,factory:DevtoolsExtension.\u0275fac}),DevtoolsExtension})();const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.b},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function ComputedState(){}function LiftedAction(){}function LiftedActions(){}function LiftedState(){}function computeNextEntry(t,e,n,i,r){if(i)return{state:n,error:"Interrupted by an error up the chain"};let s,o=n;try{o=t(n,e)}catch(a){s=a.toString(),r.handleError(a.stack||a)}return{state:o,error:s}}function recomputeStates(t,e,n,i,r,s,o,a,c){if(e>=t.length&&t.length===s.length)return t;const l=t.slice(0,e),h=s.length-(c?1:0);for(let u=e;u<h;u++){const t=s[u],e=r[t].action,c=l[u-1],h=c?c.state:i,d=c?c.error:void 0,f=o.indexOf(t)>-1?c:computeNextEntry(n,e,h,d,a);l.push(f)}return c&&l.push(t[t.length-1]),l}function liftInitialState(t,e){return{monitorState:e(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(t,e,n,i,r={}){return s=>(o,a)=>{let{monitorState:c,actionsById:l,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:f,currentStateIndex:p,computedStates:m,isLocked:b,isPaused:g}=o||e;function _(t){let e=t,n=u.slice(1,e+1);for(let i=0;i<n.length;i++){if(m[i+1].error){e=i,n=u.slice(1,e+1);break}delete l[n[i]]}d=d.filter(t=>-1===n.indexOf(t)),u=[0,...u.slice(e+1)],f=m[e].state,m=m.slice(e),p=p>e?p-e:0}function y(){l={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],f=m[p].state,p=0,m=[]}o||(l=Object.create(l));let v=0;switch(a.type){case LOCK_CHANGES:b=a.status,v=1/0;break;case PAUSE_RECORDING:g=a.status,g?(u=[...u,h],l[h]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),h++,v=u.length-1,m=m.concat(m[m.length-1]),p===u.length-2&&p++,v=1/0):y();break;case RESET:l={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],f=t,p=0,m=[];break;case COMMIT:y();break;case ROLLBACK:l={0:liftAction(INIT_ACTION)},h=1,u=[0],d=[],p=0,m=[];break;case TOGGLE_ACTION:{const{id:t}=a,e=d.indexOf(t);d=-1===e?[t,...d]:d.filter(e=>e!==t),v=u.indexOf(t);break}case SET_ACTIONS_ACTIVE:{const{start:t,end:e,active:n}=a,i=[];for(let r=t;r<e;r++)i.push(r);d=n?difference(d,i):[...d,...i],v=u.indexOf(t);break}case JUMP_TO_STATE:p=a.index,v=1/0;break;case JUMP_TO_ACTION:{const t=u.indexOf(a.actionId);-1!==t&&(p=t),v=1/0;break}case SWEEP:u=difference(u,d),d=[],p=Math.min(p,u.length-1);break;case PERFORM_ACTION:{if(b)return o||e;if(g||o&&isActionFiltered(o.computedStates[p],a,r.predicate,r.actionsSafelist,r.actionsBlocklist)){const t=m[m.length-1];m=[...m.slice(0,-1),computeNextEntry(s,a.action,t.state,t.error,n)],v=1/0;break}r.maxAge&&u.length===r.maxAge&&_(1),p===u.length-1&&p++;const t=h++;l[t]=a,u=[...u,t],v=u.length-1;break}case IMPORT_STATE:({monitorState:c,actionsById:l,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:f,currentStateIndex:p,computedStates:m,isLocked:b,isPaused:g}=a.nextLiftedState);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.b:v=0,r.maxAge&&u.length>r.maxAge&&(m=recomputeStates(m,v,s,f,l,u,d,n,g),_(u.length-r.maxAge),v=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.l:if(m.filter(t=>t.error).length>0)v=0,r.maxAge&&u.length>r.maxAge&&(m=recomputeStates(m,v,s,f,l,u,d,n,g),_(u.length-r.maxAge),v=1/0);else{if(!g&&!b){p===u.length-1&&p++;const t=h++;l[t]=new PerformAction(a,+Date.now()),u=[...u,t],v=u.length-1,m=recomputeStates(m,v,s,f,l,u,d,n,g)}m=m.map(t=>Object.assign(Object.assign({},t),{state:s(t.state,RECOMPUTE_ACTION)})),p=u.length-1,r.maxAge&&u.length>r.maxAge&&_(u.length-r.maxAge),v=1/0}break;default:v=1/0}return m=recomputeStates(m,v,s,f,l,u,d,n,g),c=i(c,a),{monitorState:c,actionsById:l,nextActionId:h,stagedActionIds:u,skippedActionIds:d,committedState:f,currentStateIndex:p,computedStates:m,isLocked:b,isPaused:g}}}let StoreDevtools=(()=>{class t{constructor(t,e,n,i,r,s,o,a){const c=liftInitialState(o,a.monitor),l=liftReducerWith(o,c,s,a.monitor,a),h=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(e.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(1)),i.actions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(liftAction)),t,i.liftedActions$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.b)(rxjs__WEBPACK_IMPORTED_MODULE_6__.b)),u=n.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(l)),d=new rxjs__WEBPACK_IMPORTED_MODULE_7__.a(1),f=h.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a)(u),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(({state:t},[e,n])=>{let r=n(t,e);return e.type!==PERFORM_ACTION&&shouldFilterActions(a)&&(r=filterLiftedState(r,a.predicate,a.actionsSafelist,a.actionsBlocklist)),i.notify(e,r),{state:r,action:e}},{state:c,action:null})).subscribe(({state:t,action:e})=>{d.next(t),e.type===PERFORM_ACTION&&r.next(e.action)}),p=i.start$.subscribe(()=>{this.refresh()}),m=d.asObservable(),b=m.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.a)(unliftState));this.extensionStartSubscription=p,this.stateSubscription=f,this.dispatcher=t,this.liftedState=m,this.state=b}dispatch(t){this.dispatcher.next(t)}next(t){this.dispatcher.next(t)}error(t){}complete(){}performAction(t){this.dispatch(new PerformAction(t,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(t){this.dispatch(new ToggleAction(t))}jumpToAction(t){this.dispatch(new JumpToAction(t))}jumpToState(t){this.dispatch(new JumpToState(t))}importState(t){this.dispatch(new ImportState(t))}lockChanges(t){this.dispatch(new LockChanges(t))}pauseRecording(t){this.dispatch(new PauseRecording(t))}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(DevtoolsDispatcher),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.a),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.e),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(DevtoolsExtension),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.f),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_angular_core__WEBPACK_IMPORTED_MODULE_0__.n),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.c),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb(STORE_DEVTOOLS_CONFIG))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Lb({token:t,factory:t.\u0275fac}),t})();const IS_EXTENSION_OR_MONITOR_PRESENT=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(t,e){return Boolean(t)||e.monitor!==noMonitor}function createReduxDevtoolsExtension(){const t="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[t]?window[t]:null}function createStateObservable(t){return t.state}let StoreDevtoolsModule=(()=>{class t{static instrument(e={}){return{ngModule:t,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:e},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.g,deps:[StoreDevtools],useFactory:createStateObservable},{provide:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.d,useExisting:DevtoolsDispatcher}]}}}return t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Nb({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Mb({factory:function(e){return new(e||t)}}),t})()},"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(s,0,{error:t,subscriber:n}):e=>e.error(t))}function s({error:t,subscriber:e}){e.error(t)}},z71Z:function(t,e,n){"use strict";const i=n("P7XM"),r=n("AQYT"),s=n("YoN+").DecoderBuffer,o=n("g2Dh"),a=n("i3FT");function c(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){o.call(this,"der",t)}function h(t,e){let n=t.readUInt8(e);if(t.isError(n))return n;const i=a.tagClass[n>>6],r=0==(32&n);if(31==(31&n)){let i=n;for(n=0;128==(128&i);){if(i=t.readUInt8(e),t.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:i,primitive:r,tag:n,tagStr:a.tag[n]}}function u(t,e,n){let i=t.readUInt8(n);if(t.isError(i))return i;if(!e&&128===i)return null;if(0==(128&i))return i;const r=127&i;if(r>4)return t.error("length octect is too long");i=0;for(let s=0;s<r;s++){i<<=8;const e=t.readUInt8(n);if(t.isError(e))return e;i|=e}return i}t.exports=c,c.prototype.decode=function(t,e){return s.isDecoderBuffer(t)||(t=new s(t,e)),this.tree._decode(t,e)},i(l,o),l.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;const i=t.save(),r=h(t,'Failed to peek tag: "'+e+'"');return t.isError(r)?r:(t.restore(i),r.tag===e||r.tagStr===e||r.tagStr+"of"===e||n)},l.prototype._decodeTag=function(t,e,n){const i=h(t,'Failed to decode tag of "'+e+'"');if(t.isError(i))return i;let r=u(t,i.primitive,'Failed to get length of "'+e+'"');if(t.isError(r))return r;if(!n&&i.tag!==e&&i.tagStr!==e&&i.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(i.primitive||null!==r)return t.skip(r,'Failed to match body of: "'+e+'"');const s=t.save(),o=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(o)?o:(r=t.offset-s.offset,t.restore(s),t.skip(r,'Failed to match body of: "'+e+'"'))},l.prototype._skipUntilEnd=function(t,e){for(;;){const n=h(t,e);if(t.isError(n))return n;const i=u(t,n.primitive,e);if(t.isError(i))return i;let r;if(r=n.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===n.tagStr)break}},l.prototype._decodeList=function(t,e,n,i){const r=[];for(;!t.isEmpty();){const e=this._peekTag(t,"end");if(t.isError(e))return e;const s=n.decode(t,"der",i);if(t.isError(s)&&e)break;r.push(s)}return r},l.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");let n="";for(let t=0;t<e.length/2;t++)n+=String.fromCharCode(e.readUInt16BE(2*t));return n}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},l.prototype._decodeObjid=function(t,e,n){let i;const r=[];let s=0,o=0;for(;!t.isEmpty();)o=t.readUInt8(),s<<=7,s|=127&o,0==(128&o)&&(r.push(s),s=0);if(128&o&&r.push(s),i=n?r:[r[0]/40|0,r[0]%40].concat(r.slice(1)),e){let t=e[i.join(" ")];void 0===t&&(t=e[i.join(".")]),void 0!==t&&(i=t)}return i},l.prototype._decodeTime=function(t,e){const n=t.raw().toString();let i,r,s,o,a,c;if("gentime"===e)i=0|n.slice(0,4),r=0|n.slice(4,6),s=0|n.slice(6,8),o=0|n.slice(8,10),a=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");i=0|n.slice(0,2),r=0|n.slice(2,4),s=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),c=0|n.slice(10,12),i=i<70?2e3+i:1900+i}return Date.UTC(i,r-1,s,o,a,c,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},l.prototype._decodeInt=function(t,e){const n=t.raw();let i=new r(n);return e&&(i=e[i.toString(10)]||i),i},l.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},zHaW:function(t,e,n){"use strict";n.d(e,"a",function(){return k}),n.d(e,"b",function(){return O}),n.d(e,"c",function(){return E});var i=n("1O3W"),r=n("1z/I"),s=n("SVse"),o=n("8Y7J"),a=n("UhP/"),c=n("Dxy4"),l=n("XNiG"),h=n("IzEk"),u=n("1G5W"),d=n("GS7A"),f=n("YEUz"),p=n("HeVh"),m=n("SCoL");function b(t,e){if(1&t){const t=o.Wb();o.Vb(0,"div",1),o.Vb(1,"button",2),o.dc("click",function(){return o.zc(t),o.hc().action()}),o.Kc(2),o.Ub(),o.Ub()}if(2&t){const t=o.hc();o.Db(2),o.Lc(t.data.action)}}function g(t,e){}const _=new o.s("MatSnackBarData");class y{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const v=Math.pow(2,31)-1;class w{constructor(t,e){this._overlayRef=e,this._afterDismissed=new l.a,this._afterOpened=new l.a,this._onAction=new l.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,v))}_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}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let x=(()=>{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)(o.Pb(w),o.Pb(_))},t.\u0275cmp=o.Jb({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&&(o.Vb(0,"span"),o.Kc(1),o.Ub(),o.Ic(2,b,3,1,"div",0)),2&t&&(o.Db(1),o.Lc(e.data.message),o.Db(1),o.oc("ngIf",e.hasAction))},directives:[s.o,c.a],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 C={snackBarState:Object(d.m)("state",[Object(d.j)("void, hidden",Object(d.k)({transform:"scale(0.8)",opacity:0})),Object(d.j)("visible",Object(d.k)({transform:"scale(1)",opacity:1})),Object(d.l)("* => visible",Object(d.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(d.l)("* => void, * => hidden",Object(d.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(d.k)({opacity:0})))])};let S=(()=>{class t extends r.a{constructor(t,e,n,i,r){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this._platform=i,this.snackBarConfig=r,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new l.a,this._onExit=new l.a,this._onEnter=new l.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?"off":"polite":"assertive"}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(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Object(h.a)(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(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let n=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(n=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==n||n.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(o.Pb(o.B),o.Pb(o.l),o.Pb(o.h),o.Pb(m.a),o.Pb(y))},t.\u0275cmp=o.Jb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&o.Ec(r.c,!0),2&t){let t;o.vc(t=o.ec())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&o.Gc("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&o.Hc("@state",e._animationState)},features:[o.Ab],decls:3,vars:1,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(o.Vb(0,"div",0),o.Ic(1,g,0,0,"ng-template",1),o.Ub(),o.Qb(2,"div")),2&t&&(o.Db(2),o.Eb("aria-live",e._live))},directives:[r.c],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:[C.snackBarState]}}),t})(),E=(()=>{class t{}return t.\u0275mod=o.Nb({type:t}),t.\u0275inj=o.Mb({factory:function(e){return new(e||t)},imports:[[i.f,r.h,s.c,c.b,a.i],a.i]}),t})();const k=new o.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new y}});let O=(()=>{class t{constructor(t,e,n,i,r,s){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=s,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=x,this.snackBarContainerComponent=S,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=o.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),i=new r.d(this.snackBarContainerComponent,e.viewContainerRef,n),s=t.attach(i);return s.instance.snackBarConfig=e,s.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new y),this._defaultConfig),e),i=this._createOverlay(n),s=this._attachSnackBarContainer(i,n),a=new w(s,i);if(t instanceof o.O){const e=new r.i(t,null,{$implicit:n.data,snackBarRef:a});a.instance=s.attachTemplatePortal(e)}else{const e=this._createInjector(n,a),i=new r.d(t,void 0,e),o=s.attachComponentPortal(i);a.instance=o.instance}return this._breakpointObserver.observe(p.b.HandsetPortrait).pipe(Object(u.a)(i.detachments())).subscribe(t=>{const e=i.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),n.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(a,n),this._openedSnackBarRef=a,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))}_createOverlay(t){const e=new i.d;e.direction=t.direction;let n=this._overlay.position().global();const r="rtl"===t.direction,s="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!r||"end"===t.horizontalPosition&&r,o=!s&&"center"!==t.horizontalPosition;return s?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 o.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:w,useValue:e},{provide:_,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(o.Zb(i.c),o.Zb(f.k),o.Zb(o.t),o.Zb(p.a),o.Zb(t,12),o.Zb(k))},t.\u0275prov=Object(o.Lb)({factory:function(){return new t(Object(o.Zb)(i.c),Object(o.Zb)(f.k),Object(o.Zb)(o.p),Object(o.Zb)(p.a),Object(o.Zb)(t,12),Object(o.Zb)(k))},token:t,providedIn:E}),t})()},zP0r:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("7o/Q");function r(t){return e=>e.lift(new s(t))}class s{constructor(t){this.total=t}call(t,e){return e.subscribe(new o(t,this.total))}}class o extends i.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},zQhy:function(t,e,n){"use strict";n.d(e,"a",function(){return S}),n.d(e,"b",function(){return y}),n.d(e,"c",function(){return E});var i=n("8Y7J"),r=n("UhP/"),s=n("8LU1"),o=n("s7LF"),a=n("omvX"),c=n("YEUz"),l=n("CtHx");const h=["input"],u=function(){return{enterDuration:150}},d=["*"],f=new i.s("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let p=0;const m={provide:o.k,useExisting:Object(i.X)(()=>y),multi:!0};class b{constructor(t,e){this.source=t,this.value=e}}const g=new i.s("MatRadioGroup");let _=(()=>{class t{constructor(t){this._changeDetector=t,this._value=null,this._name="mat-radio-group-"+p++,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=Object(s.c)(t),this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=Object(s.c)(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 b(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.Pb(i.h))},t.\u0275dir=i.Kb({type:t,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),t})(),y=(()=>{class t extends _{}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=i.Kb({type:t,selectors:[["mat-radio-group"]],contentQueries:function(t,e,n){if(1&t&&i.Ib(n,S,!0),2&t){let t;i.vc(t=i.ec())&&(e._radios=t)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i.Cb([m,{provide:g,useExisting:t}]),i.Ab]}),t})();const v=i.Xb(y);class w{constructor(t){this._elementRef=t}}const x=Object(r.y)(Object(r.C)(w));let C=(()=>{class t extends x{constructor(t,e,n,r,o,a,c,l){super(e),this._changeDetector=n,this._focusMonitor=r,this._radioDispatcher=o,this._animationMode=a,this._providerOverride=c,this._uniqueId="mat-radio-"+ ++p,this.id=this._uniqueId,this.change=new i.o,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=t,l&&(this.tabIndex=Object(s.f)(l,0)),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=Object(s.c)(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(Object(s.c)(t))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){this._required=Object(s.c)(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.checked&&(this.radioGroup.selected=this),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 b(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.Pb(_),i.Pb(i.l),i.Pb(i.h),i.Pb(c.h),i.Pb(l.d),i.Pb(String),i.Pb(void 0),i.Pb(String))},t.\u0275dir=i.Kb({type:t,viewQuery:function(t,e){if(1&t&&i.Pc(h,!0),2&t){let t;i.vc(t=i.ec())&&(e._inputElement=t.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})(),S=(()=>{class t extends C{constructor(t,e,n,i,r,s,o,a){super(t,e,n,i,r,s,o,a)}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(g,8),i.Pb(i.l),i.Pb(i.h),i.Pb(c.h),i.Pb(l.d),i.Pb(a.a,8),i.Pb(f,8),i.ac("tabindex"))},t.\u0275cmp=i.Jb({type:t,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(t,e){1&t&&i.dc("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.Hb("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:d,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.nc(),i.Vb(0,"label",0,1),i.Vb(2,"span",2),i.Qb(3,"span",3),i.Qb(4,"span",4),i.Vb(5,"input",5,6),i.dc("change",function(t){return e._onInputChange(t)})("click",function(t){return e._onInputClick(t)}),i.Ub(),i.Vb(7,"span",7),i.Qb(8,"span",8),i.Ub(),i.Ub(),i.Vb(9,"span",9),i.Vb(10,"span",10),i.Kc(11,"\xa0"),i.Ub(),i.mc(12),i.Ub(),i.Ub()),2&t){const t=i.wc(1);i.Eb("for",e.inputId),i.Db(5),i.oc("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.oc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.rc(18,u)),i.Db(2),i.Hb("mat-radio-label-before","before"==e.labelPosition)}},directives:[r.r],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;display:block;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;display:block;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})(),E=(()=>{class t{}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[r.s,r.i],r.i]}),t})()},zUnb:function(t,e,n){"use strict";n.r(e),n("yLV6");var i=n("8Y7J"),r=n("AytR"),s=n("cUpR"),o=n("omvX"),a=n("IheW"),c=n("tqRt"),l=n("7bNT"),h=n("yQ3t"),u=n("XNiG"),d=n("VRyK"),f=n("xgIS"),p=n("Cfvw"),m=n("HDdC"),b=n("D0XW"),g=n("Y7HM");function _(t=0,e=b.a){return(!Object(g.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=b.a),new m.a(n=>(n.add(e.schedule(y,t,{subscriber:n,counter:0,period:t})),n))}function y(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var v=n("PqYM"),w=n("LRne"),x=n("7o/Q"),C=n("z+Ro");class S{constructor(t,e,n,i){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=i}call(t,e){return e.subscribe(new k(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class E{constructor(){this.buffer=[]}}class k extends x.a{constructor(t,e,n,i,r){super(t),this.bufferTimeSpan=e,this.bufferCreationInterval=n,this.maxBufferSize=i,this.scheduler=r,this.contexts=[];const s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly)this.add(s.closeAction=r.schedule(O,e,{subscriber:this,context:s,bufferTimeSpan:e}));else{const t={bufferTimeSpan:e,bufferCreationInterval:n,subscriber:this,scheduler:r};this.add(s.closeAction=r.schedule(D,e,{subscriber:this,context:s})),this.add(r.schedule(A,n,t))}}_next(t){const e=this.contexts,n=e.length;let i;for(let r=0;r<n;r++){const n=e[r],s=n.buffer;s.push(t),s.length==this.maxBufferSize&&(i=n)}i&&this.onBufferFull(i)}_error(t){this.contexts.length=0,super._error(t)}_complete(){const{contexts:t,destination:e}=this;for(;t.length>0;){const n=t.shift();e.next(n.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(t){this.closeContext(t);const e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();const e=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(O,e,{subscriber:this,context:t,bufferTimeSpan:e}))}}openContext(){const t=new E;return this.contexts.push(t),t}closeContext(t){this.destination.next(t.buffer);const e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}function O(t){const 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 A(t){const{bufferCreationInterval:e,bufferTimeSpan:n,subscriber:i,scheduler:r}=t,s=i.openContext();i.closed||(i.add(s.closeAction=r.schedule(D,n,{subscriber:i,context:s})),this.schedule(t,e))}function D(t){const{subscriber:e,context:n}=t;e.closeContext(n)}var I=n("pLZG"),T=n("vkgz"),L=n("eIep"),P=n("1G5W"),R=n("nYR2"),M=n("/uUt"),j=n("lJxs"),F=n("IzEk"),N=n("Kqap");class V{}let U=(()=>{class t{constructor(t,e){this._ngZone=e,this.timerStart$=new u.a,this.idleDetected$=new u.a,this.timeout$=new u.a,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,t&&this.setConfig(t)}startWatching(){this.activityEvents$||(this.activityEvents$=Object(d.a)(Object(f.a)(window,"mousemove"),Object(f.a)(window,"resize"),Object(f.a)(document,"keydown"))),this.idle$=Object(p.a)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function(t){let e=arguments.length,n=b.a;Object(C.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);let i=null;e>=2&&(i=arguments[1]);let r=Number.POSITIVE_INFINITY;return e>=3&&(r=arguments[2]),function(e){return e.lift(new S(t,i,r,n))}}(this.idleSensitivityMillisec),Object(I.a)(t=>!t.length&&!this.isIdleDetected&&!this.isInactivityTimer),Object(T.a)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),Object(L.a)(()=>this._ngZone.runOutsideAngular(()=>_(1e3).pipe(Object(P.a)(Object(d.a)(this.activityEvents$,Object(v.a)(this.idleMillisec).pipe(Object(T.a)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),Object(R.a)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe(Object(M.a)(),Object(L.a)(t=>t?this.timer$:Object(w.a)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe(Object(I.a)(t=>!!t),Object(T.a)(()=>this.isTimeout=!0),Object(j.a)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec,idleSensitivity:this.idleSensitivityMillisec,timeout:this.timeout,ping:this.pingMillisec}}setConfigValues(t){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(t):console.error("Call stopWatching() before set config values")}setConfig(t){t.idle&&(this.idleMillisec=1e3*t.idle),t.ping&&(this.pingMillisec=1e3*t.ping),t.idleSensitivity&&(this.idleSensitivityMillisec=1e3*t.idleSensitivity),t.timeout&&(this.timeout=t.timeout)}setCustomActivityEvents(t){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=t:console.error("Call stopWatching() before set custom activity events")}setupTimer(t){this._ngZone.runOutsideAngular(()=>{this.timer$=_(1e3).pipe(Object(F.a)(t),Object(j.a)(()=>1),Object(N.a)((t,e)=>t+e),Object(T.a)(e=>{e===t&&this.timeout$.next(!0)}))})}setupPing(t){this.ping$=_(t).pipe(Object(I.a)(()=>!this.isTimeout))}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(V,8),i.Zb(i.B))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(i.V)({factory:function(){return new t(Object(i.Y)(V,8),Object(i.Y)(i.B))},token:t,providedIn:"root"}),t})(),B=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:V,useValue:e}]}}}return t.\u0275mod=i.Nb({type:t}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},imports:[[]]}),t})();var z=n("iInd"),H=n("wHSu"),W=n("VDRc"),K=n("Nv++"),q=n("PDjf"),Y=n("M9ds"),Z=n("SVse");function X(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",6),i.dc("click",function(){i.zc(t);const e=i.hc();return e.activeLink=e.links[2].link}),i.Kc(1),i.Ub()}if(2&t){const t=i.hc();i.pc("routerLink",t.links[2].link),i.oc("active",t.activeLink===t.links[2].link),i.Db(1),i.Lc(t.links[2].name)}}function G(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",6),i.dc("click",function(){i.zc(t);const e=i.hc();return e.activeLink=e.links[3].link}),i.Kc(1),i.Ub()}if(2&t){const t=i.hc();i.pc("routerLink",t.links[3].link),i.oc("active",t.activeLink===t.links[3].link),i.Db(1),i.Lc(t.links[3].name)}}const $=function(){return{initial:!1}};let Q=(()=>{class t{constructor(t,e){this.store=t,this.router=e,this.faTools=H.J,this.showLnConfig=!1,this.showBitcoind=!1,this.lnImplementationStr="",this.links=[{link:"layout",name:"Layout"},{link:"auth",name:"Authentication"},{link:"lnconfig",name:this.lnImplementationStr},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new u.a,new u.a,new u.a]}ngOnInit(){let t=this.links.find(t=>this.router.url.includes(t.link));this.activeLink=t?t.link:this.links[0].link,this.router.events.pipe(Object(P.a)(this.unSubs[0]),Object(I.a)(t=>t instanceof z.f)).subscribe(t=>{let e=this.links.find(e=>t.urlAfterRedirects.includes(e.link));this.activeLink=e?e.link:this.links[0].link}),this.store.select("root").pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{switch(this.showLnConfig=!1,this.showBitcoind=!1,this.appConfig=t.appConfig,this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.lnImplementationStr="C-Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[2].name=this.lnImplementationStr,this.showLnConfig=!0),this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(c.h),i.Pb(z.g))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-settings"]],decls:16,vars:11,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar",""],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Settings"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"nav",5),i.Vb(8,"div",6),i.dc("click",function(){return e.activeLink=e.links[0].link}),i.Kc(9),i.Ub(),i.Vb(10,"div",7),i.dc("click",function(){return e.activeLink=e.links[1].link}),i.Kc(11),i.Ub(),i.Ic(12,X,2,3,"div",8),i.Ic(13,G,2,3,"div",8),i.Ub(),i.Vb(14,"div",9),i.Qb(15,"router-outlet"),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(1),i.oc("icon",e.faTools),i.Db(7),i.pc("routerLink",e.links[0].link),i.oc("active",e.activeLink===e.links[0].link),i.Db(1),i.Lc(e.links[0].name),i.Db(1),i.pc("routerLink",e.links[1].link),i.oc("active",e.activeLink===e.links[1].link)("state",i.rc(10,$)),i.Db(1),i.Lc(e.links[1].name),i.Db(1),i.oc("ngIf",e.showLnConfig),i.Db(1),i.oc("ngIf",e.showBitcoind))},directives:[W.c,W.b,K.a,q.a,q.b,Y.e,Y.d,z.h,Z.o,W.a,z.l],styles:[""]}),t})();var J=n("7nzP"),tt=n("lF6s"),et=n("LvnZ"),nt=n("MCVq"),it=n("/uX3"),rt=n("cpEJ"),st=n("7o2P"),ot=n("aLe/"),at=n("s7LF"),ct=n("jMqV"),lt=n("Q2Ze"),ht=n("ZTz/"),ut=n("O4ig"),dt=n("zQhy"),ft=n("BSbQ"),pt=n("Dxy4"),mt=n("UhP/"),bt=n("ura0");function gt(t,e){if(1&t&&(i.Vb(0,"mat-option",38),i.Kc(1),i.Ub()),2&t){const t=e.$implicit;i.oc("value",t.id),i.Db(1),i.Mc(" ",t.id," ")}}function _t(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Currency unit is required."),i.Ub())}function yt(t,e){if(1&t&&(i.Vb(0,"mat-option",38),i.Kc(1),i.Ub()),2&t){const t=e.$implicit;i.oc("value",t.index),i.Db(1),i.Nc(" ",t.lnNode," (",t.lnImplementation,") ")}}function vt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",39),i.Vb(1,"h4",40),i.Kc(2,"Default Node"),i.Ub(),i.Vb(3,"mat-form-field"),i.Vb(4,"mat-select",41),i.dc("ngModelChange",function(e){return i.zc(t),i.hc().appConfig.defaultNodeIndex=e}),i.Ic(5,yt,2,3,"mat-option",14),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.Db(4),i.oc("ngModel",t.appConfig.defaultNodeIndex),i.Db(1),i.oc("ngForOf",t.appConfig.nodes)}}function wt(t,e){1&t&&i.Qb(0,"mat-divider",42),2&t&&i.oc("inset",!0)}function xt(t,e){if(1&t&&(i.Vb(0,"mat-radio-button",43),i.Kc(1),i.ic(2,"titlecase"),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.oc("value",t)("checked",n.selNode.settings.userPersona===t),i.Db(1),i.Mc(" ",i.jc(2,3,t)," ")}}const Ct=function(t){return{"mr-4":t}};function St(t,e){if(1&t&&(i.Vb(0,"mat-radio-button",44),i.Kc(1),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.oc("value",t)("ngClass",i.sc(3,Ct,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM)),i.Db(1),i.Mc("",t.name," ")}}const Et=function(t){return{skin:!0,"selected-color":t}};function kt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"span",3),i.Vb(1,"div",45),i.dc("click",function(){i.zc(t);const n=e.$implicit;return i.hc().changeThemeColor(n.id)}),i.ic(2,"lowercase"),i.Ub(),i.Kc(3),i.Ub()}if(2&t){const t=e.$implicit,n=i.hc();i.Db(1),i.Fb(i.jc(2,4,t.id)),i.oc("ngClass",i.sc(6,Et,n.selectedThemeColor===t.id)),i.Db(2),i.Mc(" ",t.name," ")}}let Ot=(()=>{class t{constructor(t,e,n){this.logger=t,this.commonService=e,this.store=n,this.faExclamationTriangle=H.o,this.faTools=H.J,this.faPaintBrush=H.z,this.faInfoCircle=H.t,this.information={},this.userPersonas=[J.w.OPERATOR,J.w.MERCHANT],this.currencyUnits=J.k,this.themeModes=J.m.modes,this.themeColors=J.m.themes,this.selectedThemeMode=J.m.modes[0],this.selectedThemeColor=J.m.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.previousDefaultNode=0,this.screenSize="",this.screenSizeEnum=J.q,this.unSubs=[new u.a,new u.a],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.selectedThemeMode=this.themeModes.find(t=>this.selNode.settings.themeMode===t.id),this.selectedThemeColor=this.selNode.settings.themeColor,this.information=t.nodeData,this.smallerCurrencyUnit=this.information&&this.information.smaller_currency_unit?this.information.smaller_currency_unit:"Sats",this.currencyUnit=this.information&&this.information.currency_unit?this.information.currency_unit:"BTC",this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=null),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(t)})}onCurrencyChange(t){this.selNode.settings.currencyUnits=[...J.e,t.value],this.store.dispatch(new nt.Xb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new et.Bb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new tt.qb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:t.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl}))}toggleSettings(t,e){this.selNode.settings[t]=!this.selNode.settings[t]}changeThemeColor(t){this.selectedThemeColor=t,this.selNode.settings.themeColor=t}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onUpdateSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;let t=this.previousDefaultNode!==this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:null;this.logger.info(this.selNode.settings),this.store.dispatch(new it.F("Updating Settings...")),this.store.dispatch(new it.S({settings:this.selNode.settings,defaultNodeIndex:t})),this.store.dispatch(new nt.Xb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new et.Bb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl})),this.store.dispatch(new tt.qb({userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:this.selNode.settings.currencyUnit,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl}))}onResetSettings(){this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(t=>t.id===this.previousSettings.themeMode),this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch(new it.U({lnNode:this.selNode,isInitialSetup:!0}))}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(st.a),i.Pb(c.h))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-app-settings"]],decls:61,vars:18,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","fiatConversion",3,"ngModel","ngModelChange","change"],["autoFocus","","placeholder","Fiat Currency","tabindex","3","name","currencyUnit",3,"ngModel","disabled","required","ngModelChange","selectionChange"],["currencyUnit","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","space-between stretch",1,"settings-container","page-sub-title-container","mt-1"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",4,"ngIf"],["class","mb-1",3,"inset",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",3,"ngModel","ngModelChange"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1",3,"inset"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayout","column","fxLayoutAlign","space-between stretch"],["color","primary","name","themeMode",3,"ngModel","ngModelChange","change"],["tabindex","5",3,"value","ngClass",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-xs","20","fxFlex.gt-md","15","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"my-0"],["tabindex","4","name","defaultNode",3,"ngModel","ngModelChange"],[1,"mb-1",3,"inset"],[1,"mr-4",3,"value","checked"],["tabindex","5",3,"value","ngClass"],["tabindex","9",3,"ngClass","click"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"form",1,2),i.Vb(3,"div",3),i.Qb(4,"fa-icon",4),i.Vb(5,"span",5),i.Kc(6,"Balance Display"),i.Ub(),i.Ub(),i.Vb(7,"div",6),i.Vb(8,"div",7),i.Qb(9,"fa-icon",8),i.Vb(10,"span"),i.Kc(11,"Fiat conversion calls "),i.Vb(12,"strong"),i.Vb(13,"a",9),i.Kc(14,"Blockchain.com"),i.Ub(),i.Ub(),i.Kc(15," API to get conversion rates."),i.Ub(),i.Ub(),i.Vb(16,"div",10),i.Vb(17,"mat-slide-toggle",11),i.dc("ngModelChange",function(t){return e.selNode.settings.fiatConversion=t})("change",function(t){return e.selNode.settings.currencyUnit=t.checked?e.selNode.settings.currencyUnit:null}),i.Kc(18,"Include Fiat Conversion"),i.Ub(),i.Vb(19,"mat-form-field"),i.Vb(20,"mat-select",12,13),i.dc("ngModelChange",function(t){return e.selNode.settings.currencyUnit=t})("selectionChange",function(t){return e.onCurrencyChange(t)}),i.Ic(22,gt,2,2,"mat-option",14),i.Ub(),i.Ic(23,_t,2,0,"mat-error",15),i.Ub(),i.Ub(),i.Ub(),i.Vb(24,"div",16),i.Vb(25,"div",17),i.Vb(26,"div",18),i.Qb(27,"fa-icon",4),i.Vb(28,"span",5),i.Kc(29,"Customization"),i.Ub(),i.Ub(),i.Vb(30,"div",6),i.Ic(31,vt,6,2,"div",19),i.Ic(32,wt,1,1,"mat-divider",20),i.Vb(33,"div",21),i.Vb(34,"div",22),i.Qb(35,"fa-icon",8),i.Vb(36,"span"),i.Kc(37,"Application layout will be tailored based on the role selected to better serve its needs."),i.Ub(),i.Ub(),i.Vb(38,"div",23),i.Vb(39,"h4"),i.Kc(40,"Application Layout"),i.Ub(),i.Vb(41,"mat-radio-group",24),i.dc("ngModelChange",function(t){return e.selNode.settings.userPersona=t}),i.Ic(42,xt,3,5,"mat-radio-button",25),i.Ub(),i.Ub(),i.Ub(),i.Qb(43,"mat-divider",26),i.Vb(44,"div",27),i.Vb(45,"div",28),i.Vb(46,"h4"),i.Kc(47,"Mode"),i.Ub(),i.Vb(48,"mat-radio-group",29),i.dc("ngModelChange",function(t){return e.selectedThemeMode=t})("change",function(){return e.chooseThemeMode()}),i.Ic(49,St,2,5,"mat-radio-button",30),i.Ub(),i.Ub(),i.Qb(50,"div",31),i.Vb(51,"div",32),i.Vb(52,"h4"),i.Kc(53,"Themes"),i.Ub(),i.Vb(54,"div",33),i.Ic(55,kt,4,8,"span",34),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Vb(56,"div",35),i.Vb(57,"button",36),i.dc("click",function(){return e.onResetSettings()}),i.Kc(58,"Reset"),i.Ub(),i.Vb(59,"button",37),i.dc("click",function(){return e.onUpdateSettings()}),i.Kc(60,"Update"),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(4),i.oc("icon",e.faTools),i.Db(5),i.oc("icon",e.faExclamationTriangle),i.Db(8),i.oc("ngModel",e.selNode.settings.fiatConversion),i.Db(3),i.oc("ngModel",e.selNode.settings.currencyUnit)("disabled",!e.selNode.settings.fiatConversion)("required",e.selNode.settings.fiatConversion),i.Db(2),i.oc("ngForOf",e.currencyUnits),i.Db(1),i.oc("ngIf",e.selNode.settings.fiatConversion&&!e.selNode.settings.currencyUnit),i.Db(4),i.oc("icon",e.faPaintBrush),i.Db(4),i.oc("ngIf",e.appConfig.nodes.length&&e.appConfig.nodes.length>1),i.Db(1),i.oc("ngIf",e.appConfig.nodes.length&&e.appConfig.nodes.length>1),i.Db(3),i.oc("icon",e.faInfoCircle),i.Db(6),i.oc("ngModel",e.selNode.settings.userPersona),i.Db(1),i.oc("ngForOf",e.userPersonas),i.Db(1),i.oc("inset",!0),i.Db(5),i.oc("ngModel",e.selectedThemeMode),i.Db(1),i.oc("ngForOf",e.themeModes),i.Db(6),i.oc("ngForOf",e.themeColors))},directives:[W.c,W.a,ot.b,at.u,at.n,at.o,W.b,K.a,ct.a,at.m,at.p,lt.c,ht.a,ut.a,at.s,Z.n,Z.o,dt.b,ft.a,pt.a,mt.m,lt.b,dt.a,Z.m,bt.a],pipes:[Z.x,Z.l],styles:[""]}),t})();var At=n("Cyaj"),Dt=n("iELJ"),It=n("cO3p"),Tt=n("X9mX"),Lt=n("zHaW"),Pt=n("hzfI"),Rt=n("e6WT"),Mt=n("bwdU"),jt=n("dEYt");const Ft=["stepper"];function Nt(t,e){if(1&t&&i.Kc(0),2&t){const t=i.hc();i.Lc(t.passwordFormLabel)}}function Vt(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Password is required."),i.Ub())}function Ut(t,e){if(1&t&&i.Kc(0),2&t){const t=i.hc(2);i.Lc(t.secretFormLabel)}}function Bt(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Secret Code is required."),i.Ub())}function zt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-step",10),i.Vb(1,"form",22),i.Ic(2,Ut,1,1,"ng-template",23),i.Vb(3,"div",24),i.Qb(4,"qrcode",25),i.Ub(),i.Vb(5,"div",26),i.Qb(6,"fa-icon",27),i.Vb(7,"span"),i.Kc(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),i.Ub(),i.Ub(),i.Vb(9,"div",28),i.Vb(10,"mat-form-field",13),i.Qb(11,"input",29),i.Vb(12,"fa-icon",30),i.dc("copied",function(e){return i.zc(t),i.hc().onCopySecret(e)}),i.Ub(),i.Ic(13,Bt,2,0,"mat-error",15),i.Ub(),i.Ub(),i.Vb(14,"div",31),i.Vb(15,"button",32),i.Kc(16,"Next"),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.oc("stepControl",t.secretFormGroup)("editable",t.flgEditable),i.Db(1),i.oc("formGroup",t.secretFormGroup),i.Db(3),i.oc("qrdata",t.otpauth)("margin",1)("width",180)("errorCorrectionLevel","L")("allowEmptyString",!0),i.Db(2),i.oc("icon",t.faInfoCircle),i.Db(6),i.oc("icon",t.faCopy)("payload",null==t.secretFormGroup||null==t.secretFormGroup.controls||null==t.secretFormGroup.controls.secret?null:t.secretFormGroup.controls.secret.value),i.Db(1),i.oc("ngIf",null==t.secretFormGroup||null==t.secretFormGroup.controls||null==t.secretFormGroup.controls.secret||null==t.secretFormGroup.controls.secret.errors?null:t.secretFormGroup.controls.secret.errors.required)}}function Ht(t,e){if(1&t&&i.Kc(0),2&t){const t=i.hc(2);i.Lc(t.tokenFormLabel)}}function Wt(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Token is required."),i.Ub())}function Kt(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Token is invalid."),i.Ub())}function qt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",7),i.Vb(1,"div",28),i.Vb(2,"mat-form-field",13),i.Qb(3,"input",36),i.Ic(4,Wt,2,0,"mat-error",15),i.Ic(5,Kt,2,0,"mat-error",15),i.Ub(),i.Ub(),i.Vb(6,"div",31),i.Vb(7,"button",37),i.dc("click",function(){return i.zc(t),i.hc(2).onVerifyToken()}),i.Kc(8),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=i.hc(2);i.Db(4),i.oc("ngIf",null==t.tokenFormGroup||null==t.tokenFormGroup.controls||null==t.tokenFormGroup.controls.token||null==t.tokenFormGroup.controls.token.errors?null:t.tokenFormGroup.controls.token.errors.required),i.Db(1),i.oc("ngIf",null==t.tokenFormGroup||null==t.tokenFormGroup.controls||null==t.tokenFormGroup.controls.token||null==t.tokenFormGroup.controls.token.errors?null:t.tokenFormGroup.controls.token.errors.notValid),i.Db(3),i.Lc(null!=t.tokenFormGroup&&null!=t.tokenFormGroup.controls&&null!=t.tokenFormGroup.controls.token&&null!=t.tokenFormGroup.controls.token.errors&&t.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Yt(t,e){1&t&&(i.Vb(0,"div"),i.Vb(1,"strong"),i.Kc(2,"Success! You are all set."),i.Ub(),i.Ub())}function Zt(t,e){if(1&t&&(i.Vb(0,"mat-step",33),i.Vb(1,"form",34),i.Ic(2,Ht,1,1,"ng-template",12),i.Ic(3,qt,9,3,"div",35),i.Ic(4,Yt,3,0,"div",15),i.Ub(),i.Ub()),2&t){const t=i.hc();i.oc("stepControl",t.tokenFormGroup),i.Db(1),i.oc("formGroup",t.tokenFormGroup),i.Db(2),i.oc("ngIf",!t.flgValidated||!t.isTokenValid),i.Db(1),i.oc("ngIf",t.flgValidated&&t.isTokenValid)}}function Xt(t,e){if(1&t&&i.Kc(0),2&t){const t=i.hc(2);i.Lc(t.disableFormLabel)}}function Gt(t,e){if(1&t){const t=i.Wb();i.Vb(0,"div",7),i.Vb(1,"div",38),i.Qb(2,"fa-icon",27),i.Vb(3,"span"),i.Kc(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),i.Ub(),i.Ub(),i.Vb(5,"div",31),i.Vb(6,"button",37),i.dc("click",function(){return i.zc(t),i.hc(2).onVerifyToken()}),i.Kc(7,"Disable"),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=i.hc(2);i.Db(2),i.oc("icon",t.faExclamationTriangle)}}function $t(t,e){1&t&&(i.Vb(0,"div"),i.Vb(1,"strong"),i.Kc(2,"Two factor authentication removed from RTL."),i.Ub(),i.Ub())}function Qt(t,e){if(1&t&&(i.Vb(0,"mat-step",33),i.Vb(1,"form",34),i.Ic(2,Xt,1,1,"ng-template",12),i.Ic(3,Gt,8,1,"div",35),i.Ic(4,$t,3,0,"div",15),i.Ub(),i.Ub()),2&t){const t=i.hc();i.oc("stepControl",t.disableFormGroup),i.Db(1),i.oc("formGroup",t.disableFormGroup),i.Db(2),i.oc("ngIf",!t.flgValidated||!t.isTokenValid),i.Db(1),i.oc("ngIf",t.flgValidated&&t.isTokenValid)}}let Jt=(()=>{class t{constructor(t,e,n,i,r,s){this.dialogRef=t,this.data=e,this.store=n,this.formBuilder=i,this.rtlEffects=r,this.snackBar=s,this.faExclamationTriangle=H.o,this.faCopy=H.j,this.faInfoCircle=H.t,this.flgValidated=!1,this.isTokenValid=!0,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[at.t.required]],password:["",[at.t.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},at.t.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",at.t.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new u.a,new u.a]}ngOnInit(){this.appConfig=this.data.appConfig,this.showDisableStepper=!!this.appConfig.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig.enable2FA?"":this.generateSecret(),disabled:!0},at.t.required]})}generateSecret(){let t=It.authenticator.generateSecret();return this.otpauth=It.authenticator.keyuri("","Ride The Lightning (RTL)",t),t}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch(new it.t(At(this.passwordFormGroup.controls.password.value))),this.rtlEffects.isAuthorizedRes.pipe(Object(F.a)(1)).subscribe(t=>{"ERROR"!==t?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(t){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig.enable2FA)this.store.dispatch(new it.F("Updating Settings...")),this.store.dispatch(new it.X({secret2fa:""})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=It.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.store.dispatch(new it.F("Updating Settings...")),this.store.dispatch(new it.X({secret2fa:this.secretFormGroup.controls.secret.value})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig.enable2FA=!this.appConfig.enable2FA}stepSelectionChanged(t){switch(t.selectedIndex){case 0:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully";break;default:this.passwordFormLabel="Authenticate with your RTL password"}t.selectedIndex<t.previouslySelectedIndex&&0===t.selectedIndex&&this.passwordFormGroup.controls.hiddenPassword.setValue("")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(Dt.f),i.Pb(Dt.a),i.Pb(c.h),i.Pb(at.d),i.Pb(Tt.a),i.Pb(Lt.b))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-two-factor-auth"]],viewQuery:function(t,e){if(1&t&&i.Pc(Ft,!0),2&t){let t;i.vc(t=i.ec())&&(e.stepper=t.first)}},decls:28,vars:11,consts:[["fxLayout","row"],["fxFlex","100",1,"padding-gap-large"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start",1,"padding-gap-x-large"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"mt-5px"],["fxLayout","column"],[3,"linear","selectionChange"],["stepper",""],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100"],["autoFocus","","matInput","","placeholder","Password","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],[3,"qrdata","margin","width","errorCorrectionLevel","allowEmptyString"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","placeholder","Secret Code","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"icon","payload","copied"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","placeholder","Token","type","text","tabindex","7","formControlName","token","required",""],["mat-stroked-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Setup Two Factor Authentication"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"div",7),i.Vb(10,"mat-vertical-stepper",8,9),i.dc("selectionChange",function(t){return e.stepSelectionChanged(t)}),i.Vb(12,"mat-step",10),i.Vb(13,"form",11),i.Ic(14,Nt,1,1,"ng-template",12),i.Vb(15,"div",0),i.Vb(16,"mat-form-field",13),i.Qb(17,"input",14),i.Ic(18,Vt,2,0,"mat-error",15),i.Ub(),i.Ub(),i.Vb(19,"div",16),i.Vb(20,"button",17),i.dc("click",function(){return e.onAuthenticate()}),i.Kc(21,"Confirm"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ic(22,zt,17,12,"mat-step",18),i.Ic(23,Zt,5,4,"mat-step",19),i.Ic(24,Qt,5,4,"mat-step",19),i.Ub(),i.Vb(25,"div",20),i.Vb(26,"button",21),i.Kc(27),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(6),i.oc("mat-dialog-close",!1),i.Db(4),i.oc("linear",!0),i.Db(2),i.oc("stepControl",e.passwordFormGroup)("editable",e.flgEditable),i.Db(1),i.oc("formGroup",e.passwordFormGroup),i.Db(5),i.oc("ngIf",null==e.passwordFormGroup||null==e.passwordFormGroup.controls||null==e.passwordFormGroup.controls.password||null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required),i.Db(4),i.oc("ngIf",!e.showDisableStepper),i.Db(1),i.oc("ngIf",!e.showDisableStepper),i.Db(1),i.oc("ngIf",e.showDisableStepper),i.Db(2),i.oc("mat-dialog-close",!1),i.Db(1),i.Lc(e.flgValidated&&e.isTokenValid?"Close":"Cancel"))},directives:[W.c,W.a,q.c,W.b,pt.a,Dt.d,q.b,Pt.h,Pt.a,at.u,at.n,at.h,Pt.b,lt.c,Rt.b,at.c,ut.a,at.m,at.g,at.s,Z.o,lt.b,Mt.a,K.a,lt.g,jt.a,Pt.f],styles:[""]}),t})();const te=["authForm"];function ee(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Current password is required."),i.Ub())}function ne(t,e){if(1&t&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&t){const t=i.hc();i.Db(1),i.Lc(t.errorMsg)}}function ie(t,e){if(1&t&&(i.Vb(0,"mat-error"),i.Kc(1),i.Ub()),2&t){const t=i.hc();i.Db(1),i.Lc(t.errorConfirmMsg)}}let re=(()=>{class t{constructor(t,e,n,i){this.store=t,this.logger=e,this.actions$=n,this.router=i,this.faInfoCircle=H.t,this.faUserLock=H.N,this.faUserClock=H.M,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new u.a,new u.a,new u.a]}ngOnInit(){this.initializeNodeData=!!history.state.initial,this.store.select("root").pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{this.appConfig=t.appConfig,this.selNode=t.selNode,this.logger.info(t)}),this.actions$.pipe(Object(P.a)(this.unSubs[2]),Object(I.a)(t=>t.type===it.H)).subscribe(t=>{if("password"===this.currPassword.toLowerCase())switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.router.navigate(["/cl/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword)return!0;this.store.dispatch(new it.J({currPassword:At(this.currPassword),newPassword:At(this.newPassword)}))}matchOldAndNewPasswords(){let t=!1;return this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",t=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",t=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",t=!0)),t}matchNewPasswords(){let t=!1;return this.form.controls.confirmpassword&&(this.confirmPassword?""!==this.newPassword&&""!==this.confirmPassword&&this.newPassword!==this.confirmPassword?(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="New and confirm passwords do not match.",t=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",t=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",t=!0)),t}on2FAuth(){this.store.dispatch(new it.C({data:{appConfig:this.appConfig,component:Jt}}))}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch(new it.U({lnNode:this.selNode,isInitialSetup:!0})),this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(c.h),i.Pb(rt.b),i.Pb(l.a),i.Pb(z.g))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-auth-settings"]],viewQuery:function(t,e){if(1&t&&i.Ec(te,!0),2&t){let t;i.vc(t=i.ec())&&(e.form=t.first)}},decls:33,vars:11,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"overflow-x-hidden"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1",3,"ngSubmit"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","4","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","5","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","6","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-flat-button","","color","primary","tabindex","8","type","submit"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","3",3,"click"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"form",1,2),i.dc("ngSubmit",function(){return e.onChangePassword()}),i.Vb(3,"div",3),i.Qb(4,"fa-icon",4),i.Vb(5,"span",5),i.Kc(6,"Password"),i.Ub(),i.Ub(),i.Vb(7,"mat-form-field"),i.Vb(8,"input",6),i.dc("ngModelChange",function(t){return e.currPassword=t}),i.Ub(),i.Ic(9,ee,2,0,"mat-error",7),i.Ub(),i.Vb(10,"mat-form-field"),i.Vb(11,"input",8),i.dc("ngModelChange",function(t){return e.newPassword=t}),i.Ub(),i.Ic(12,ne,2,1,"mat-error",7),i.Ub(),i.Vb(13,"mat-form-field"),i.Vb(14,"input",9),i.dc("ngModelChange",function(t){return e.confirmPassword=t}),i.Ub(),i.Ic(15,ie,2,1,"mat-error",7),i.Ub(),i.Vb(16,"div",10),i.Vb(17,"button",11),i.Kc(18,"Change Password"),i.Ub(),i.Ub(),i.Ub(),i.Vb(19,"div",12),i.Qb(20,"mat-divider",13),i.Ub(),i.Vb(21,"div",14),i.Vb(22,"div",15),i.Qb(23,"fa-icon",4),i.Vb(24,"span",5),i.Kc(25,"Two Factor Authentication"),i.Ub(),i.Ub(),i.Vb(26,"div",16),i.Qb(27,"fa-icon",17),i.Vb(28,"span"),i.Kc(29,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),i.Ub(),i.Ub(),i.Vb(30,"div",18),i.Vb(31,"button",19),i.dc("click",function(){return e.on2FAuth()}),i.Kc(32),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(4),i.oc("icon",e.faUserLock),i.Db(4),i.oc("ngModel",e.currPassword),i.Db(1),i.oc("ngIf",!e.currPassword),i.Db(2),i.oc("ngModel",e.newPassword),i.Db(1),i.oc("ngIf",e.matchOldAndNewPasswords()),i.Db(2),i.oc("ngModel",e.confirmPassword),i.Db(1),i.oc("ngIf",e.matchNewPasswords()),i.Db(5),i.oc("inset",!0),i.Db(3),i.oc("icon",e.faUserClock),i.Db(4),i.oc("icon",e.faInfoCircle),i.Db(5),i.Lc(e.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[W.c,W.a,W.b,at.u,at.n,at.o,K.a,lt.c,Rt.b,at.c,ut.a,at.s,at.m,at.p,Z.o,pt.a,ft.a,lt.b],styles:[""]}),t})();var se=n("SqCe");function oe(t,e){1&t&&i.Qb(0,"mat-divider",7)}function ae(t,e){if(1&t&&(i.Vb(0,"div",4),i.Vb(1,"pre",5),i.Kc(2),i.ic(3,"json"),i.Ub(),i.Ic(4,oe,1,0,"mat-divider",6),i.Ub()),2&t){const t=i.hc();i.Db(2),i.Lc(i.jc(3,2,t.configData)),i.Db(2),i.oc("ngIf",""!==t.configData)}}function ce(t,e){if(1&t&&(i.Vb(0,"h2"),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.Db(1),i.Lc(t)}}function le(t,e){if(1&t&&(i.Vb(0,"h4",14),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.Db(1),i.Lc(t)}}function he(t,e){1&t&&i.Qb(0,"mat-divider",15),2&t&&i.oc("inset",!0)}function ue(t,e){if(1&t&&(i.Vb(0,"mat-list-item"),i.Vb(1,"mat-card-subtitle",7),i.Ic(2,ce,2,1,"h2",10),i.Ub(),i.Vb(3,"mat-card-subtitle",11),i.Ic(4,le,2,1,"h4",12),i.Ub(),i.Ic(5,he,1,1,"mat-divider",13),i.Ub()),2&t){const t=e.$implicit;i.Db(2),i.oc("ngIf",t.indexOf("[")>=0),i.Db(2),i.oc("ngIf",t.indexOf("[")<0),i.Db(1),i.oc("ngIf",t.indexOf("[")<0)}}function de(t,e){if(1&t&&(i.Vb(0,"div",8),i.Vb(1,"mat-list"),i.Ic(2,ue,6,3,"mat-list-item",9),i.Ub(),i.Ub()),2&t){const t=i.hc();i.Db(2),i.oc("ngForOf",t.configData)}}let fe=(()=>{class t{constructor(t,e,n){this.store=t,this.rtlEffects=e,this.router=n,this.selectedNodeType="",this.configData="",this.fileFormat="INI",this.faCog=H.i,this.unSubs=[new u.a,new u.a]}ngOnInit(){this.selectedNodeType=this.router.url.includes("bconfig")?"bitcoind":"ln",this.router.events.pipe(Object(P.a)(this.unSubs[0]),Object(I.a)(t=>t instanceof z.f)).subscribe(t=>{this.selectedNodeType=t.urlAfterRedirects.includes("bconfig")?"bitcoind":"ln"}),this.store.dispatch(new it.F("Opening Config File...")),this.store.dispatch(new it.o(this.selectedNodeType)),this.rtlEffects.showLnConfig.pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{const e=t.data;this.fileFormat=t.format,this.configData=""===e||!e||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==e&&e&&"JSON"===this.fileFormat?e:"":e.split("\n")})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(c.h),i.Pb(Tt.a),i.Pb(z.g))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-server-config"]],decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Ic(2,ae,5,4,"div",2),i.Ic(3,de,3,1,"div",3),i.Ub(),i.Ub()),2&t&&(i.Db(2),i.oc("ngIf",""!==e.configData&&"JSON"===e.fileFormat),i.Db(1),i.oc("ngIf",""!==e.configData&&("INI"===e.fileFormat||"HOCON"===e.fileFormat)))},directives:[W.c,W.a,W.b,Z.o,ft.a,se.a,Z.n,se.b,q.e],pipes:[Z.h],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),t})();var pe=n("0dfH");class me{constructor(t){this.help=t}}var be=n("mZtN"),ge=n("o4Yh");function _e(t,e){if(1&t&&(i.Vb(0,"mat-expansion-panel",8),i.Vb(1,"mat-expansion-panel-header"),i.Vb(2,"mat-panel-title"),i.Kc(3),i.Ub(),i.Ub(),i.Vb(4,"mat-panel-description",9),i.Qb(5,"span",10),i.Vb(6,"a",11),i.Kc(7),i.Ub(),i.Ub(),i.Ub()),2&t){const t=i.hc().$implicit,e=i.hc();i.Db(3),i.Lc(t.help.question),i.Db(2),i.oc("innerHTML",t.help.answer,i.Ac),i.Db(1),i.oc("routerLink",e.flgLoggedIn?e.LNPLink+t.help.link:"/login"),i.Db(1),i.Lc(e.flgLoggedIn?t.help.linkCaption:"Login to go to the page")}}function ye(t,e){if(1&t&&(i.Vb(0,"div",6),i.Ic(1,_e,8,4,"mat-expansion-panel",7),i.Ub()),2&t){const t=e.$implicit,n=i.hc();i.Db(1),i.oc("ngIf","ALL"===t.help.lnImplementation||t.help.lnImplementation===n.selNode.lnImplementation)}}let ve=(()=>{class t{constructor(t,e){this.store=t,this.sessionService=e,this.helpTopics=[],this.faQuestion=H.C,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new u.a,new u.a,new u.a,new u.a],this.helpTopics.push(new me({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:"onchain",linkCaption:"On-Chain page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Opening Channels",answer:'Open channels with a connected network peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/Byte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab . \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:"peerschannels",linkCaption:"Peers/Channels page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Lightning Transactions - Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Lightning Transactions - Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Lightning Transactions - Query Route",answer:'Querying Payment Routes.\nGo to the "Transactions" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:"transactions",linkCaption:"Transactions page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new me({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:"backup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new me({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:"routing",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:"lookups",linkCaption:"Graph Lookup page",lnImplementation:"ALL"})),this.helpTopics.push(new me({question:"Settings",answer:'RTL Offers certain customizations on the UI to personalize your experience on the app\nGo to "Settings" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Default Node - If you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nOther Customizations include day and night mode and a choice of color themes to select from.\n',lnImplementation:"ALL"}))}ngOnInit(){this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{switch(this.selNode=t.selNode,this.selNode.lnImplementation.toUpperCase()){case"CLT":this.LNPLink="/cl/";break;case"ECL":this.LNPLink="/ecl/";break;default:this.LNPLink="/lnd/"}}),this.sessionService.watchSession().pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{this.flgLoggedIn=!!t.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(c.h),i.Pb(be.a))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-help"]],decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Qb(2,"fa-icon",2),i.Vb(3,"span",3),i.Kc(4,"Help"),i.Ub(),i.Ub(),i.Vb(5,"div",4),i.Vb(6,"div",0),i.Ic(7,ye,2,1,"div",5),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(2),i.oc("icon",e.faQuestion),i.Db(5),i.oc("ngForOf",e.helpTopics))},directives:[W.c,W.a,W.b,K.a,Z.n,Z.o,ge.c,ge.e,ge.f,ge.d,z.j],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),t})();var we=n("Tj54");function xe(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Token is required."),i.Ub())}function Ce(t,e){if(1&t&&(i.Vb(0,"p",14),i.Vb(1,"mat-icon",15),i.Kc(2,"close"),i.Ub(),i.Kc(3),i.Ub()),2&t){const t=i.hc();i.Db(3),i.Lc(t.tokenErrorMessage)}}let Se=(()=>{class t{constructor(t,e,n){this.dialogRef=t,this.data=e,this.store=n,this.faUserClock=H.M,this.token="",this.tokenErrorMessage="",this.authRes={token:""},this.unSubs=[new u.a,new u.a,new u.a]}ngOnInit(){this.authRes=this.data.authRes,this.tokenErrorMessage="",this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{t.effectErrorsRoot.forEach(t=>{"VerifyToken"===t.action&&(this.tokenErrorMessage=this.tokenErrorMessage+t.message+" ")})})}onClose(){this.dialogRef.close(!1)}onVerifyToken(){if(!this.token)return!0;this.tokenErrorMessage="",this.store.dispatch(new it.cb({token:this.token,authResponse:this.authRes}))}ngOnDestroy(){this.store.dispatch(new it.f("VerifyToken")),this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(Dt.f),i.Pb(Dt.a),i.Pb(c.h))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-login-token"]],decls:18,vars:3,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"padding-gap-large","pl-3"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header","mb-2"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"pr-1"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["tokenForm","ngForm"],["autoFocus","","matInput","","placeholder","Token","type","text","id","token","name","token","tabindex","2","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","4","type","submit"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Vb(2,"mat-card-header",2),i.Vb(3,"div",3),i.Vb(4,"span",4),i.Kc(5,"Two Factor Token"),i.Ub(),i.Ub(),i.Vb(6,"button",5),i.dc("click",function(){return e.onClose()}),i.Kc(7,"X"),i.Ub(),i.Ub(),i.Vb(8,"mat-card-content",6),i.Vb(9,"form",7,8),i.dc("ngSubmit",function(){return e.onVerifyToken()}),i.Vb(11,"mat-form-field"),i.Vb(12,"input",9),i.dc("ngModelChange",function(t){return e.token=t}),i.Ub(),i.Ic(13,xe,2,0,"mat-error",10),i.Ub(),i.Ic(14,Ce,4,1,"p",11),i.Vb(15,"div",12),i.Vb(16,"button",13),i.Kc(17,"Verify Token"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(12),i.oc("ngModel",e.token),i.Db(1),i.oc("ngIf",!e.token),i.Db(1),i.oc("ngIf",""!==e.tokenErrorMessage))},directives:[W.c,W.b,W.a,q.c,pt.a,q.b,at.u,at.n,at.o,lt.c,Rt.b,at.c,ut.a,at.s,at.m,at.p,Z.o,lt.b,we.a],styles:[""]}),t})();function Ee(t,e){1&t&&(i.Vb(0,"mat-error"),i.Kc(1,"Password is required."),i.Ub())}function ke(t,e){if(1&t&&(i.Vb(0,"p",15),i.Vb(1,"mat-icon",16),i.Kc(2,"close"),i.Ub(),i.Kc(3),i.Ub()),2&t){const t=i.hc();i.Db(3),i.Lc(t.loginErrorMessage)}}let Oe=(()=>{class t{constructor(t,e,n){this.logger=t,this.store=e,this.rtlEffects=n,this.faUnlockAlt=H.K,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.loginErrorMessage="",this.unSubs=[new u.a,new u.a,new u.a]}ngOnInit(){this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{t.effectErrorsRoot.forEach(t=>{"Login"!==t.action&&"IsAuthorized"!==t.action||(this.loginErrorMessage=this.loginErrorMessage+t.message+" "),this.logger.error(t)}),this.selNode=t.selNode,this.appConfig=t.appConfig,this.logger.info(t)}),this.rtlEffects.isAuthorizedRes.pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{"ERROR"!==t&&this.store.dispatch(new it.C({maxWidth:"35rem",data:{authRes:t,component:Se}}))})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.store.dispatch(this.appConfig.enable2FA?new it.t(At(this.password)):new it.w({password:At(this.password),initialPass:"password"===this.password}))}resetData(){this.password="",this.loginErrorMessage=""}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(c.h),i.Pb(Tt.a))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-login"]],decls:19,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],[1,"padding-gap"],[1,"card-content-gap"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",3,"ngSubmit"],["loginForm","ngForm"],["fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","placeholder","Password","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3,"Login to RTL"),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"div",4),i.Vb(6,"mat-card"),i.Vb(7,"mat-card-content",5),i.Vb(8,"form",6,7),i.dc("ngSubmit",function(){return e.onLogin()}),i.Vb(10,"mat-form-field",8),i.Vb(11,"input",9),i.dc("ngModelChange",function(t){return e.password=t}),i.Ub(),i.Ic(12,Ee,2,0,"mat-error",10),i.Ub(),i.Ic(13,ke,4,1,"p",11),i.Vb(14,"div",12),i.Vb(15,"button",13),i.dc("click",function(){return e.resetData()}),i.Kc(16,"Clear"),i.Ub(),i.Vb(17,"button",14),i.Kc(18,"Login"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(1),i.oc("icon",e.faUnlockAlt),i.Db(10),i.oc("ngModel",e.password),i.Db(1),i.oc("ngIf",!e.password),i.Db(1),i.oc("ngIf",""!==e.loginErrorMessage))},directives:[W.c,W.b,K.a,q.a,q.b,at.u,at.n,at.o,lt.c,W.a,Rt.b,at.c,ut.a,at.s,at.m,at.p,Z.o,pt.a,lt.b,we.a],styles:[""]}),t})(),Ae=(()=>{class t{constructor(t,e){this.activatedRoute=t,this.router=e,this.error={errorCode:"",errorMessage:""},this.faTimes=H.I,this.unsubs=[new u.a,new u.a]}ngOnInit(){this.activatedRoute.paramMap.pipe(Object(P.a)(this.unsubs[0])).subscribe(t=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(z.a),i.Pb(z.g))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-error"]],decls:13,vars:3,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Qb(1,"fa-icon",1),i.Vb(2,"span",2),i.Kc(3),i.Ub(),i.Ub(),i.Vb(4,"div",3),i.Vb(5,"mat-card"),i.Vb(6,"mat-card-content",4),i.Vb(7,"div",5),i.Vb(8,"div",6),i.Kc(9),i.Ub(),i.Vb(10,"span",7),i.Vb(11,"button",8),i.dc("click",function(){return e.goToHelp()}),i.Kc(12,"Go To Help"),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub(),i.Ub()),2&t&&(i.Db(1),i.oc("icon",e.faTimes),i.Db(2),i.Mc("Error ",e.error.errorCode,""),i.Db(6),i.Lc(e.error.errorMessage))},directives:[W.c,W.b,K.a,q.a,q.b,W.a,pt.a],encapsulation:2}),t})();var De=n("2h+y");const Ie=z.k.forRoot([{path:"",pathMatch:"full",redirectTo:"lnd"},{path:"lnd",loadChildren:()=>Promise.all([n.e(1),n.e(7)]).then(n.bind(null,"tmAo")).then(t=>t.LNDModule),canActivate:[De.a]},{path:"cl",loadChildren:()=>Promise.all([n.e(1),n.e(5)]).then(n.bind(null,"Ssnv")).then(t=>t.CLModule),canActivate:[De.a]},{path:"ecl",loadChildren:()=>Promise.all([n.e(1),n.e(6)]).then(n.bind(null,"YoDt")).then(t=>t.ECLModule),canActivate:[De.a]},{path:"settings",component:Q,canActivate:[De.a],children:[{path:"",pathMatch:"full",redirectTo:"layout"},{path:"layout",component:Ot,canActivate:[De.a]},{path:"auth",component:re,canActivate:[De.a]},{path:"lnconfig",component:fe,canActivate:[De.a]},{path:"bconfig",component:fe,canActivate:[De.a]}]},{path:"help",component:ve},{path:"login",component:Oe},{path:"error",component:Ae},{path:"**",component:pe.a}]);var Te=n("PCNd"),Le=n("HeVh"),Pe=n("l0rg"),Re=n("ZFy/"),Me=n("rJgo");function je(t,e){if(1&t){const t=i.Wb();i.Vb(0,"a",10),i.dc("click",function(){return i.zc(t),i.hc().onClick()}),i.Qb(1,"fa-icon",3),i.Vb(2,"span"),i.Kc(3,"Logout"),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.Db(1),i.oc("icon",t.faEject)}}let Fe=(()=>{class t{constructor(t,e,n,i,s){this.logger=t,this.sessionService=e,this.store=n,this.rtlEffects=i,this.actions$=s,this.faCodeBranch=H.h,this.faCog=H.i,this.faLifeRing=H.u,this.faEject=H.m,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new u.a,new u.a,new u.a,new u.a],this.version=r.b.VERSION}ngOnInit(){this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{if(this.selNode=t.selNode,this.information=t.nodeData,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const t=this.information.chains[0];this.informationChain.chain=t.chain,this.informationChain.network=t.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(t)}),this.sessionService.watchSession().pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{this.showLogout=!!t.token,this.flgLoading=!!t.token}),this.actions$.pipe(Object(P.a)(this.unSubs[2]),Object(I.a)(t=>t.type===it.v)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch(new it.D({data:{type:J.b.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe(Object(P.a)(this.unSubs[3])).subscribe(t=>{t&&(this.showLogout=!1,this.store.dispatch(new it.x))})}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(be.a),i.Pb(c.h),i.Pb(Tt.a),i.Pb(l.a))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-top-menu"]],decls:15,vars:6,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",1,"top-toolbar-icon",3,"matMenuTriggerFor"],["src","assets/images/RTL-Horse-BY.svg","alt","RTL Logo",2,"width","3.2rem"],[2,"font-size","2rem","text-align","start"],["mat-menu-item","",3,"click"]],template:function(t,e){if(1&t&&(i.Vb(0,"mat-menu",0,1),i.Vb(2,"p",2),i.Qb(3,"fa-icon",3),i.Vb(4,"span"),i.Kc(5),i.Ub(),i.Ub(),i.Vb(6,"a",4),i.Qb(7,"fa-icon",3),i.Vb(8,"span",5),i.Kc(9,"Help"),i.Ub(),i.Ub(),i.Ic(10,je,4,1,"a",6),i.Ub(),i.Vb(11,"button",7),i.Qb(12,"img",8),i.Vb(13,"mat-icon",9),i.Kc(14,"arrow_drop_down"),i.Ub(),i.Ub()),2&t){const t=i.wc(1);i.oc("overlapTrigger",!1),i.Db(3),i.oc("icon",e.faCodeBranch),i.Db(2),i.Mc("Version: ",e.version,""),i.Db(2),i.oc("icon",e.faLifeRing),i.Db(3),i.oc("ngIf",e.showLogout),i.Db(1),i.oc("matMenuTriggerFor",t)}},directives:[Me.a,Me.b,K.a,z.j,z.h,Z.o,pt.a,Me.d,we.a],styles:[".mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-toolbar[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-toolbar-row[_ngcontent-%COMP%]{height:100px!important;padding:0 16px!important}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .info-block[_ngcontent-%COMP%]{width:230px}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .info-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;text-align:center}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-item[_ngcontent-%COMP%]{height:36px;line-height:36px}.mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .mat-menu-panel.top-menu[_ngcontent-%COMP%] .mat-menu-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:default}"]}),t})();var Ne=n("q7Ft"),Ve=n("y7ui"),Ue=n("OLiY");const Be={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:H.H,link:"/lnd/home",userPersona:J.w.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:H.v,link:"/lnd/onchain",userPersona:J.w.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:H.e,link:"/lnd/connections",userPersona:J.w.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:H.O,link:"/lnd/connections",userPersona:J.w.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:H.n,link:"/lnd/transactions",userPersona:J.w.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:H.w,link:"/lnd/routing",userPersona:J.w.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:H.f,link:"/lnd/reports",userPersona:J.w.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:H.F,link:"/lnd/lookups",userPersona:J.w.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:H.L,link:"/lnd/messages",userPersona:J.w.ALL},{id:37,parentId:3,name:"Loop",iconType:"FA",icon:H.s,link:"/lnd/loop",userPersona:J.w.ALL},{id:38,parentId:3,name:"Backup",iconType:"FA",icon:H.k,link:"/lnd/channelbackup",userPersona:J.w.ALL}]},{id:5,parentId:0,name:"Network",iconType:"FA",icon:H.B,link:"/lnd/network",userPersona:J.w.OPERATOR},{id:6,parentId:0,name:"Node/Network",iconType:"FA",icon:H.G,link:"/lnd/network",userPersona:J.w.MERCHANT},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:H.J,link:"/settings",userPersona:J.w.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:H.C,link:"/help",userPersona:J.w.ALL}],CLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:H.H,link:"/cl/home",userPersona:J.w.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:H.v,link:"/cl/onchain",userPersona:J.w.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:H.e,link:"/cl/connections",userPersona:J.w.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:H.O,link:"/cl/connections",userPersona:J.w.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:H.n,link:"/cl/transactions",userPersona:J.w.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:H.w,link:"/cl/routing",userPersona:J.w.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:H.f,link:"/cl/reports",userPersona:J.w.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:H.F,link:"/cl/lookups",userPersona:J.w.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:H.L,link:"/cl/messages",userPersona:J.w.ALL},{id:37,parentId:3,name:"Fee Rates",iconType:"FA",icon:H.A,link:"/cl/rates",userPersona:J.w.OPERATOR},{id:38,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:H.G,link:"/cl/rates",userPersona:J.w.MERCHANT}]},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:H.J,link:"/settings",userPersona:J.w.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:H.C,link:"/help",userPersona:J.w.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:H.H,link:"/ecl/home",userPersona:J.w.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:H.v,link:"/ecl/onchain",userPersona:J.w.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:H.e,link:"/ecl/connections",userPersona:J.w.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:H.O,link:"/ecl/connections",userPersona:J.w.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:H.n,link:"/ecl/transactions",userPersona:J.w.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:H.w,link:"/ecl/routing",userPersona:J.w.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:H.f,link:"/ecl/reports",userPersona:J.w.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:H.F,link:"/ecl/lookups",userPersona:J.w.ALL}]},{id:7,parentId:0,name:"Settings",iconType:"FA",icon:H.J,link:"/settings",userPersona:J.w.ALL},{id:8,parentId:0,name:"Help",iconType:"FA",icon:H.C,link:"/help",userPersona:J.w.ALL}]};function ze(t,e){if(1&t&&(i.Vb(0,"mat-option",10),i.Kc(1),i.Ub()),2&t){const t=e.$implicit;i.oc("value",t),i.Db(1),i.Nc(" ",t.lnNode," (",t.lnImplementation,") ")}}function He(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-select",8),i.dc("selectionChange",function(e){return i.zc(t),i.hc().onNodeSelectionChange(e.value)}),i.Ic(1,ze,2,3,"mat-option",9),i.Ub()}if(2&t){const t=i.hc();i.oc("value",t.selNode),i.Db(1),i.oc("ngForOf",t.appConfig.nodes)}}function We(t,e){if(1&t&&i.Qb(0,"fa-icon",19),2&t){const t=i.hc().$implicit;i.oc("icon",t.icon)}}function Ke(t,e){if(1&t&&(i.Vb(0,"mat-icon",20),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.Db(1),i.Lc(t.icon)}}function qe(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-tree-node",14),i.Vb(1,"div",15),i.dc("click",function(){i.zc(t);const n=e.$implicit;return i.hc(2).onChildNavClicked(n)}),i.Vb(2,"div",16),i.Ic(3,We,1,1,"fa-icon",17),i.Ic(4,Ke,2,1,"mat-icon",18),i.Vb(5,"span"),i.Kc(6),i.Ub(),i.Ub(),i.Ub(),i.Ub()}if(2&t){const t=e.$implicit;i.pc("routerLink",t.link),i.Db(3),i.oc("ngIf","FA"===t.iconType),i.Db(1),i.oc("ngIf",!t.iconType),i.Db(2),i.Lc(t.name)}}function Ye(t,e){if(1&t&&i.Qb(0,"fa-icon",19),2&t){const t=i.hc().$implicit;i.oc("icon",t.icon)}}function Ze(t,e){if(1&t&&(i.Vb(0,"mat-icon",20),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.Db(1),i.Lc(t.icon)}}function Xe(t,e){if(1&t&&(i.Vb(0,"mat-nested-tree-node",21),i.Vb(1,"div",22),i.Vb(2,"div",23),i.Ic(3,Ye,1,1,"fa-icon",17),i.Ic(4,Ze,2,1,"mat-icon",18),i.Vb(5,"span"),i.Kc(6),i.Ub(),i.Ub(),i.Vb(7,"button",24),i.Vb(8,"mat-icon",25),i.Kc(9),i.Ub(),i.Ub(),i.Ub(),i.Vb(10,"div",26),i.Rb(11,27),i.Ub(),i.Ub()),2&t){const t=e.$implicit,n=i.hc(2);i.Db(3),i.oc("ngIf","FA"===t.iconType),i.Db(1),i.oc("ngIf",!t.iconType),i.Db(2),i.Lc(t.name),i.Db(1),i.Eb("aria-label","toggle "+t.name),i.Db(2),i.Lc(n.treeControlNested.isExpanded(t)?"arrow_drop_up":"arrow_drop_down"),i.Db(1),i.Hb("tree-children-invisible",!n.treeControlNested.isExpanded(t))}}function Ge(t,e){if(1&t&&(i.Vb(0,"mat-tree",5,11),i.Ic(2,qe,7,4,"mat-tree-node",12),i.Ic(3,Xe,12,7,"mat-nested-tree-node",13),i.Ub()),2&t){const t=i.hc();i.oc("dataSource",t.navMenus)("treeControl",t.treeControlNested),i.Db(3),i.oc("matTreeNodeDefWhen",t.hasChild)}}function $e(t,e){if(1&t&&i.Qb(0,"fa-icon",30),2&t){const t=i.hc().$implicit;i.pc("matTooltip",t.name),i.oc("icon",t.icon)}}function Qe(t,e){if(1&t&&(i.Vb(0,"mat-icon",31),i.Kc(1),i.Ub()),2&t){const t=i.hc().$implicit;i.pc("matTooltip",t.name),i.Db(1),i.Lc(t.icon)}}function Je(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-tree-node",15),i.dc("click",function(){i.zc(t);const n=e.$implicit;return i.hc().onShowData(n)}),i.Ic(1,$e,1,2,"fa-icon",28),i.Ic(2,Qe,2,2,"mat-icon",29),i.Vb(3,"span"),i.Kc(4),i.Ub(),i.Ub()}if(2&t){const t=e.$implicit;i.Db(1),i.oc("ngIf","FA"===t.iconType),i.Db(1),i.oc("ngIf",!t.iconType),i.Db(2),i.Lc(t.name)}}function tn(t,e){if(1&t&&i.Qb(0,"fa-icon",30),2&t){const t=i.hc().$implicit;i.pc("matTooltip",t.name),i.oc("icon",t.icon)}}function en(t,e){if(1&t){const t=i.Wb();i.Vb(0,"mat-tree-node",15),i.dc("click",function(){i.zc(t);const n=e.$implicit;return i.hc(2).onClick(n)}),i.Ic(1,tn,1,2,"fa-icon",28),i.Vb(2,"span"),i.Kc(3),i.Ub(),i.Ub()}if(2&t){const t=e.$implicit;i.Db(1),i.oc("ngIf","FA"===t.iconType),i.Db(2),i.Lc(t.name)}}function nn(t,e){if(1&t&&(i.Vb(0,"mat-tree",5),i.Ic(1,en,4,2,"mat-tree-node",6),i.Ub()),2&t){const t=i.hc();i.oc("dataSource",t.navMenusLogout)("treeControl",t.treeControlLogout)}}let rn=(()=>{class t{constructor(t,e,n,s,o,a){this.logger=t,this.commonService=e,this.sessionService=n,this.store=s,this.actions$=o,this.rtlEffects=a,this.ChildNavClicked=new i.o,this.faEject=H.m,this.faEye=H.p,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:H.m}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:H.p}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=J.w,this.unSubs=[new u.a,new u.a,new u.a,new u.a],this.treeControlNested=new Ve.j(t=>t.children),this.treeControlLogout=new Ve.j(t=>t.children),this.treeControlShowData=new Ve.j(t=>t.children),this.navMenus=new Ue.d,this.navMenusLogout=new Ue.d,this.navMenusShowData=new Ue.d,this.hasChild=(t,e)=>!!e.children&&e.children.length>0,this.version=r.b.VERSION,200===Be.LNDChildren[Be.LNDChildren.length-1].id&&Be.LNDChildren.pop(),this.navMenus.data=Be.LNDChildren,this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){let t=this.sessionService.getItem("token");this.showLogout=!!t,this.flgLoading=!!t,this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{if(this.appConfig=t.appConfig,this.selNode=t.selNode,this.settings=this.selNode.settings,this.information=t.nodeData,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if("object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const t=this.information.chains[0];this.informationChain.chain=t.chain,this.informationChain.network=t.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.settings.lnServerUrl&&this.filterSideMenuNodes(),this.logger.info(t)}),this.sessionService.watchSession().pipe(Object(P.a)(this.unSubs[1])).subscribe(t=>{this.showLogout=!!t.token,this.flgLoading=!!t.token}),this.actions$.pipe(Object(P.a)(this.unSubs[2]),Object(I.a)(t=>t.type===it.v)).subscribe(t=>{this.showLogout=!1})}onClick(t){"Logout"===t.name&&(this.store.dispatch(new it.D({data:{type:J.b.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}})),this.rtlEffects.closeConfirm.pipe(Object(P.a)(this.unSubs[3])).subscribe(t=>{t&&(this.showLogout=!1,this.store.dispatch(new it.x))})),this.ChildNavClicked.emit(t)}onChildNavClicked(t){this.ChildNavClicked.emit(t)}filterSideMenuNodes(){if(this.selNode&&this.selNode.lnImplementation)switch(this.selNode.lnImplementation.toUpperCase()){case"CLT":this.loadCLTMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}else this.loadLNDMenu()}loadLNDMenu(){let t=[];t=JSON.parse(JSON.stringify(Be.LNDChildren)),this.navMenus.data=t.filter(t=>(t.children&&t.children.length&&(t.children=t.children.filter(t=>(t.userPersona===J.w.ALL||t.userPersona===this.settings.userPersona)&&"/lnd/loop"!==t.link||"/lnd/loop"===t.link&&this.settings.swapServerUrl&&""!==this.settings.swapServerUrl.trim())),t.userPersona===J.w.ALL||t.userPersona===this.settings.userPersona))}loadCLTMenu(){let t=[];t=JSON.parse(JSON.stringify(Be.CLChildren)),this.navMenus.data=t.filter(t=>(t.children&&t.children.length&&(t.children=t.children.filter(t=>(t.userPersona===J.w.ALL||t.userPersona===this.settings.userPersona)&&"/cl/messages"!==t.link||"/cl/messages"===t.link&&this.information.api_version&&this.commonService.isVersionCompatible(this.information.api_version,"0.2.2"))),t.userPersona===J.w.ALL||t.userPersona===this.settings.userPersona))}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Be.ECLChildren))}onShowData(t){this.store.dispatch(new it.V),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(t){this.selNode=t,this.store.dispatch(new it.F("Updating Selected Node...")),this.store.dispatch(new it.U({lnNode:t,isInitialSetup:!1})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(st.a),i.Pb(be.a),i.Pb(c.h),i.Pb(l.a),i.Pb(Tt.a))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-side-navigation"]],viewQuery:function(t,e){if(1&t&&i.Pc(Ue.b,!0),2&t){let t;i.vc(t=i.ec())&&(e.tree=t.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},decls:10,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxFlex","10","fxLayoutAlign","end stretch",1,"w-100"],[1,"m-2","multi-node-select",3,"value","selectionChange"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["tree",""],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle","","routerLinkActive","active-link",3,"routerLink"],[3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","89","fxLayoutAlign","start center"],["fxFlex","11","mat-icon-button","","fxLayoutAlign","end center"],[1,"mat-icon-rtl-mirror"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"icon","matTooltip",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"icon","matTooltip"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.Vb(1,"div",1),i.Ic(2,He,2,2,"mat-select",2),i.Qb(3,"mat-divider",3),i.Ic(4,Ge,4,3,"mat-tree",4),i.Qb(5,"mat-divider",3),i.Vb(6,"mat-tree",5),i.Ic(7,Je,5,3,"mat-tree-node",6),i.Ub(),i.Ub(),i.Vb(8,"div",7),i.Ic(9,nn,2,2,"mat-tree",4),i.Ub(),i.Ub()),2&t&&(i.Db(2),i.oc("ngIf",e.appConfig.nodes.length>1),i.Db(2),i.oc("ngIf",e.settings.lnServerUrl),i.Db(2),i.oc("dataSource",e.navMenusShowData)("treeControl",e.treeControlShowData),i.Db(3),i.oc("ngIf",e.showLogout))},directives:[W.c,W.a,W.b,ot.b,Z.o,ft.a,Ue.b,Ue.f,ht.a,Z.n,mt.m,Ue.e,Ue.h,z.i,z.h,K.a,we.a,Ue.a,pt.a,Ue.g,Re.a],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),t})();var sn=n("pu8Q");const on=["sideNavigation"],an=["sideNavContent"];function cn(t,e){1&t&&(i.gc(),i.Qb(0,"path",16))}function ln(t,e){1&t&&(i.gc(),i.Qb(0,"path",17))}function hn(t,e){if(1&t){const t=i.Wb();i.Vb(0,"button",12),i.dc("click",function(){i.zc(t);const e=i.hc();return e.flgSidenavPinned=!e.flgSidenavPinned}),i.gc(),i.Vb(1,"svg",13),i.Ic(2,cn,1,0,"path",14),i.Ic(3,ln,1,0,"path",15),i.Ub(),i.Ub()}if(2&t){const t=i.hc();i.oc("matTooltip",t.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),i.Db(2),i.oc("ngIf",!t.flgSidenavPinned),i.Db(1),i.oc("ngIf",t.flgSidenavPinned)}}function un(t,e){if(1&t&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&t){const t=i.hc();i.Db(1),i.Lc(t.information.alias?"RTL - "+t.information.alias:"RTL")}}function dn(t,e){if(1&t&&(i.Vb(0,"span"),i.Kc(1),i.Ub()),2&t){const t=i.hc();i.Db(1),i.Lc(t.information.alias?"Ride The Lightning - "+t.information.alias:"Ride The Lightning")}}function fn(t,e){1&t&&(i.Vb(0,"div",18),i.Qb(1,"mat-spinner",19),i.Vb(2,"h4"),i.Kc(3,"Loading RTL..."),i.Ub(),i.Ub())}const pn=function(t,e){return[t,e]},mn=function(){return{"inner-sidenav-content":!0}};let bn=(()=>{class t{constructor(t,e,n,i,r,s,o,a,c){this.logger=t,this.commonService=e,this.store=n,this.actions$=i,this.userIdle=r,this.router=s,this.sessionService=o,this.breakpointObserver=a,this.renderer=c,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.unSubs=[new u.a,new u.a,new u.a,new u.a,new u.a,new u.a]}ngOnInit(){this.router.events.subscribe(t=>{t instanceof z.c&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([Le.b.XSmall,Le.b.TabletPortrait,Le.b.Small,Le.b.Medium,Le.b.Large,Le.b.XLarge]).pipe(Object(P.a)(this.unSubs[5])).subscribe(t=>{t.breakpoints[Le.b.XSmall]?(this.commonService.setScreenSize(J.q.XS),this.smallScreen=!0):t.breakpoints[Le.b.TabletPortrait]?(this.commonService.setScreenSize(J.q.SM),this.smallScreen=!0):t.breakpoints[Le.b.Small]||t.breakpoints[Le.b.Medium]?(this.commonService.setScreenSize(J.q.MD),this.smallScreen=!1):t.breakpoints[Le.b.Large]?(this.commonService.setScreenSize(J.q.LG),this.smallScreen=!1):(this.commonService.setScreenSize(J.q.XL),this.smallScreen=!1)}),this.store.dispatch(new it.q),this.accessKey=this.readAccessKey(),this.store.select("root").pipe(Object(P.a)(this.unSubs[0])).subscribe(t=>{this.selNode=t.selNode,this.settings=this.selNode.settings,this.appConfig=t.appConfig,this.information=t.nodeData,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.settings),this.sessionService.getItem("token")||(this.flgLoading[0]=!1)}),this.actions$.pipe(Object(P.a)(this.unSubs[1]),Object(I.a)(t=>t.type===it.N)).subscribe(t=>{t.type===it.N&&(this.sessionService.getItem("token")||(+t.payload.sso.rtlSSO?this.store.dispatch(new it.w({password:At(this.accessKey),initialPass:!1})):this.router.navigate([this.appConfig.sso.logoutRedirectLink])))}),this.userIdle.startWatching(),this.userIdle.onTimerStart().pipe(Object(P.a)(this.unSubs[2])).subscribe(t=>{}),this.userIdle.onTimeout().pipe(Object(P.a)(this.unSubs[3])).subscribe(()=>{this.sessionService.getItem("token")&&(this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch(new it.g),this.store.dispatch(new it.C({data:{type:J.b.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}})),this.store.dispatch(new it.x),this.userIdle.resetTimer())})}readAccessKey(){const t=window.location.href;return t.includes("access-key=")?t.substring(t.lastIndexOf("access-key=")+11).trim():""}ngAfterViewInit(){this.smallScreen?(this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)):setTimeout(()=>{this.renderer.setStyle(this.sideNavContent.elementRef.nativeElement,"marginLeft","22rem"),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},100)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(t){this.smallScreen&&this.sideNavigation.close()}copiedText(t){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+t)}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(),t.complete()})}}return t.\u0275fac=function(e){return new(e||t)(i.Pb(rt.b),i.Pb(st.a),i.Pb(c.h),i.Pb(l.a),i.Pb(U),i.Pb(z.g),i.Pb(be.a),i.Pb(Le.a),i.Pb(i.G))},t.\u0275cmp=i.Jb({type:t,selectors:[["rtl-app"]],viewQuery:function(t,e){if(1&t&&(i.Pc(on,!0),i.Pc(an,!0)),2&t){let t;i.vc(t=i.ec())&&(e.sideNavigation=t.first),i.vc(t=i.ec())&&(e.sideNavContent=t.first)}},decls:24,vars:18,consts:[["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"padding-gap-x","bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",1,"top-toolbar-icon","mr-1",3,"matTooltip","matTooltipDisabled","click"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],[4,"ngIf"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["sideNavigation",""],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["sideNavContent",""],[3,"ngClass"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click"],["viewBox","0 0 32 32",1,"top-toolbar-icon","icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"rtl-spinner"],["color","accent"]],template:function(t,e){1&t&&(i.Vb(0,"div",0),i.ic(1,"lowercase"),i.ic(2,"lowercase"),i.Vb(3,"mat-toolbar",1),i.Vb(4,"div"),i.Vb(5,"button",2),i.dc("click",function(){return e.sideNavToggle()}),i.Vb(6,"mat-icon"),i.Kc(7,"menu"),i.Ub(),i.Ub(),i.Ic(8,hn,4,3,"button",3),i.Ub(),i.Vb(9,"div"),i.Ic(10,un,2,1,"span",4),i.Ic(11,dn,2,1,"span",4),i.Ub(),i.Vb(12,"div"),i.Qb(13,"rtl-top-menu"),i.Ub(),i.Ub(),i.Vb(14,"mat-sidenav-container"),i.Vb(15,"mat-sidenav",5,6),i.Vb(17,"rtl-side-navigation",7),i.dc("ChildNavClicked",function(t){return e.onNavigationClicked(t)}),i.Ub(),i.Ub(),i.Vb(18,"mat-sidenav-content",8,9),i.Vb(20,"div",10),i.Qb(21,"router-outlet"),i.Ub(),i.Ub(),i.Kc(22,"> "),i.Ub(),i.Ic(23,fn,4,0,"div",11),i.Ub()),2&t&&(i.oc("ngClass",i.tc(14,pn,i.jc(1,10,e.settings.themeColor),i.jc(2,12,e.settings.themeMode))),i.Db(5),i.oc("matTooltip",e.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",e.smallScreen),i.Db(3),i.oc("ngIf",!e.smallScreen),i.Db(2),i.oc("ngIf",e.smallScreen),i.Db(1),i.oc("ngIf",!e.smallScreen),i.Db(4),i.oc("opened",e.flgSideNavOpened)("mode",e.flgSidenavPinned&&!e.smallScreen?"side":"over"),i.Db(5),i.oc("ngClass",i.rc(17,mn)),i.Db(3),i.oc("ngIf",!e.settings.themeColor))},directives:[W.c,Z.m,bt.a,Pe.a,W.b,pt.a,Re.a,we.a,Z.o,Fe,Ne.b,Ne.a,ot.b,rn,W.a,Ne.c,z.l,sn.b],pipes:[Z.l],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"]}),t})(),gn=(()=>{class t{constructor(t){this.sessionService=t}intercept(t,e){if(this.sessionService.getItem("token")){const n=t.clone({headers:t.headers.set("Authorization","Bearer "+this.sessionService.getItem("token"))});return e.handle(n)}return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Zb(be.a))},t.\u0275prov=i.Lb({token:t,factory:t.\u0275fac}),t})();var _n=n("hBQm"),yn=n("iiaH");const vn={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:J.w.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{},channelStats:[],onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},wn={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:J.w.OPERATOR,selCurrencyUnit:"USD",fiatConversion:!1,channelBackupPath:"",currencyUnits:[]},information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],allChannels:[],payments:[],forwardingHistory:{},invoices:{invoices:[]},totalInvoices:-1,transactions:[]},xn={initialAPIResponseStatus:["INCOMPLETE"],effectErrors:[],nodeSettings:{userPersona:J.w.OPERATOR,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},information:{},peers:[],fees:{},networkInfo:{},channelBalance:{balance:-1,btc_balance:-1},blockchainBalance:{total_balance:-1,btc_total_balance:-1},allChannels:[],closedChannels:[],pendingChannels:{},numberOfActiveChannels:0,numberOfInactiveChannels:0,numberOfPendingChannels:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},totalCapacityActive:0,totalCapacityInactive:0,totalLocalBalance:-1,totalRemoteBalance:-1,totalInvoices:-1,transactions:[],utxos:[],payments:[],invoices:{invoices:[]},forwardingHistory:{},loopSwaps:[]},Cn={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",fiatConversion:!1,currencyUnits:["Sats","BTC","USD"]},Sn={configPath:"",bitcoindConfigPath:""},En={effectErrorsRoot:[],selNode:{settings:Cn,authentication:Sn,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:"/login"},enable2FA:!1,nodes:[{settings:Cn,authentication:Sn}]},nodeData:{}},kn={root:function(t=En,e){switch(e.type){case it.a:const n=[...t.effectErrorsRoot],i=t.effectErrorsRoot.findIndex(t=>t.action===e.payload);return i>-1&&n.splice(i,1),Object.assign(Object.assign({},t),{effectErrorsRoot:n});case it.j:return Object.assign(Object.assign({},t),{effectErrorsRoot:[...t.effectErrorsRoot,e.payload]});case it.I:return Object.assign(Object.assign({},En),{appConfig:t.appConfig,selNode:e.payload});case it.O:return Object.assign(Object.assign({},t),{selNode:e.payload.lnNode});case it.M:return Object.assign(Object.assign({},t),{nodeData:e.payload});case it.N:return Object.assign(Object.assign({},t),{appConfig:e.payload});default:return t}},lnd:function(t=xn,e){let n=t.initialAPIResponseStatus;switch(e.type){case nt.f:const i=[...t.effectErrors],r=t.effectErrors.findIndex(t=>t.action===e.payload);return r>-1&&i.splice(r,1),Object.assign(Object.assign({},t),{effectErrors:i});case nt.m:return Object.assign(Object.assign({},t),{effectErrors:[...t.effectErrors,e.payload]});case nt.zb:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case nt.jb:return Object.assign(Object.assign({},xn),{nodeSettings:e.payload});case nt.Eb:return Object.assign(Object.assign({},t),{information:e.payload});case nt.Lb:return n=[...t.initialAPIResponseStatus,"PEERS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,peers:e.payload});case nt.ib:const s=[...t.peers],o=t.peers.findIndex(t=>t.pub_key===e.payload.pubkey);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{peers:s});case nt.a:const a=t.invoices;return a.invoices.unshift(e.payload),Object.assign(Object.assign({},t),{invoices:a});case nt.Bb:return n=[...t.initialAPIResponseStatus,"FEES"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,fees:e.payload});case nt.Ab:return n=[...t.initialAPIResponseStatus,"CLOSEDCHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,closedChannels:e.payload});case nt.Mb:return n=[...t.initialAPIResponseStatus,"PENDINGCHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,pendingChannels:e.payload.channels,numberOfPendingChannels:e.payload.pendingChannels});case nt.vb:let c=0,l=0,h=0,u=0,d=0,f=0;return e.payload&&e.payload.forEach(t=>{t.local_balance||(t.local_balance=0),!0===t.active?(d+=+t.local_balance,h+=1,t.local_balance?c=+c+ +t.local_balance:t.local_balance=0,t.remote_balance?l=+l+ +t.remote_balance:t.remote_balance=0):(f+=+t.local_balance,u+=1)}),n=[...t.initialAPIResponseStatus,"ALLCHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,allChannels:e.payload,numberOfActiveChannels:h,numberOfInactiveChannels:u,totalCapacityActive:d,totalCapacityInactive:f,totalLocalBalance:c,totalRemoteBalance:l});case nt.hb:const p=[...t.allChannels],m=t.allChannels.findIndex(t=>t.channel_point===e.payload.channelPoint);return m>-1&&p.splice(m,1),Object.assign(Object.assign({},t),{allChannels:p});case nt.wb:return"channels"===e.payload.target?(n=[...t.initialAPIResponseStatus,"BALANCE"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,channelBalance:e.payload.balance})):Object.assign(Object.assign({},t),{blockchainBalance:e.payload.balance});case nt.Ib:return Object.assign(Object.assign({},t),{networkInfo:e.payload});case nt.Fb:return n=[...t.initialAPIResponseStatus,"INVOICES"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,invoices:e.payload});case nt.Pb:return Object.assign(Object.assign({},t),{totalInvoices:e.payload});case nt.Qb:return Object.assign(Object.assign({},t),{transactions:e.payload});case nt.Rb:return Object.assign(Object.assign({},t),{utxos:e.payload});case nt.Kb:return n=[...t.initialAPIResponseStatus,"PAYMENTS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,payments:e.payload});case nt.Cb:if(e.payload.forwarding_events){const n=[...t.allChannels,...t.closedChannels];e.payload.forwarding_events.forEach(t=>{if(n&&n.length>0)for(let e=0;e<n.length;e++){if(n[e].chan_id.toString()===t.chan_id_in&&(t.alias_in=n[e].remote_alias?n[e].remote_alias:t.chan_id_in,t.alias_out))return;if(n[e].chan_id.toString()===t.chan_id_out&&(t.alias_out=n[e].remote_alias?n[e].remote_alias:t.chan_id_out,t.alias_in))return;e===n.length-1&&(t.alias_in||(t.alias_in=t.chan_id_in),t.alias_out||(t.alias_out=t.chan_id_out))}else t.alias_in=t.chan_id_in,t.alias_out=t.chan_id_out})}else e.payload={};return Object.assign(Object.assign({},t),{forwardingHistory:e.payload});case nt.Hb:return Object.assign(Object.assign({},t),{loopSwaps:e.payload});default:return t}},cl:function(t=wn,e){let n=t.initialAPIResponseStatus;switch(e.type){case et.d:const i=[...t.effectErrors],r=t.effectErrors.findIndex(t=>t.action===e.payload);return r>-1&&i.splice(r,1),Object.assign(Object.assign({},t),{effectErrors:i});case et.o:return Object.assign(Object.assign({},t),{effectErrors:[...t.effectErrors,e.payload]});case et.hb:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case et.W:return Object.assign(Object.assign({},wn),{nodeSettings:e.payload});case et.mb:return Object.assign(Object.assign({},t),{information:e.payload});case et.jb:return n=[...t.initialAPIResponseStatus,"FEES"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,fees:e.payload});case et.kb:return e.payload.perkb?(n=[...t.initialAPIResponseStatus,"FEERATEKB"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,feeRatesPerKB:e.payload})):e.payload.perkw?(n=[...t.initialAPIResponseStatus,"FEERATEKW"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,feeRatesPerKW:e.payload})):Object.assign({},t);case et.db:return n=[...t.initialAPIResponseStatus,"BALANCE"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,balance:e.payload});case et.ob:return n=[...t.initialAPIResponseStatus,"CHANNELBALANCE"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,localRemoteBalance:e.payload});case et.sb:return n=[...t.initialAPIResponseStatus,"PEERS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,peers:e.payload});case et.b:return Object.assign(Object.assign({},t),{peers:[...t.peers,e.payload]});case et.V:const s=[...t.peers],o=t.peers.findIndex(t=>t.id===e.payload.id);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{peers:s});case et.eb:return n=[...t.initialAPIResponseStatus,"CHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,allChannels:e.payload});case et.U:const a=[...t.allChannels],c=t.allChannels.findIndex(t=>t.channel_id===e.payload.channelId);return c>-1&&a.splice(c,1),Object.assign(Object.assign({},t),{allChannels:a});case et.rb:return n=[...t.initialAPIResponseStatus,"PAYMENTS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,payments:e.payload});case et.lb:const l=t.fees;if(e.payload.forwarding_events&&e.payload.forwarding_events.length>0){const n=[...t.allChannels];e.payload.forwarding_events.forEach(t=>{if(n&&n.length>0)for(let e=0;e<n.length;e++){if(n[e].short_channel_id&&n[e].short_channel_id===t.in_channel&&(t.in_channel_alias=n[e].alias?n[e].alias:t.in_channel,t.out_channel_alias))return;if(n[e].short_channel_id&&n[e].short_channel_id.toString()===t.out_channel&&(t.out_channel_alias=n[e].alias?n[e].alias:t.out_channel,t.in_channel_alias))return}}),l.totalTxCount=e.payload.forwarding_events.filter(t=>"settled"===t.status).length}else e.payload={};return Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,fee:l,forwardingHistory:e.payload});case et.a:const h=t.invoices;return h.invoices.unshift(e.payload),Object.assign(Object.assign({},t),{invoices:h});case et.nb:return Object.assign(Object.assign({},t),{invoices:e.payload});case et.ub:return Object.assign(Object.assign({},t),{totalInvoices:e.payload});case et.vb:return n=[...t.initialAPIResponseStatus,"TRANSACTIONS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,transactions:e.payload});default:return t}},ecl:function(t=vn,e){let n=t.initialAPIResponseStatus;switch(e.type){case tt.b:const i=[...t.effectErrors],r=t.effectErrors.findIndex(t=>t.action===e.payload);return r>-1&&i.splice(r,1),Object.assign(Object.assign({},t),{effectErrors:i});case tt.j:return Object.assign(Object.assign({},t),{effectErrors:[...t.effectErrors,e.payload]});case tt.W:return Object.assign(Object.assign({},t),{nodeSettings:e.payload});case tt.L:return Object.assign(Object.assign({},vn),{nodeSettings:e.payload});case tt.Z:return Object.assign(Object.assign({},t),{information:e.payload});case tt.X:return n=[...t.initialAPIResponseStatus,"FEES"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,fees:e.payload});case tt.T:return Object.assign(Object.assign({},t),{activeChannels:e.payload});case tt.hb:return Object.assign(Object.assign({},t),{pendingChannels:e.payload});case tt.Y:return Object.assign(Object.assign({},t),{inactiveChannels:e.payload});case tt.U:return n=[...t.initialAPIResponseStatus,"CHANNELS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,channelsStatus:e.payload});case tt.V:return Object.assign(Object.assign({},t),{channelStats:e.payload});case tt.eb:return n=[...t.initialAPIResponseStatus,"ONCHAINBALANCE"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,onchainBalance:e.payload});case tt.bb:return Object.assign(Object.assign({},t),{lightningBalance:e.payload});case tt.gb:return n=[...t.initialAPIResponseStatus,"PEERS"],Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,peers:e.payload});case tt.K:const s=[...t.peers],o=t.peers.findIndex(t=>t.nodeId===e.payload.nodeId);return o>-1&&s.splice(o,1),Object.assign(Object.assign({},t),{peers:s});case tt.J:const a=[...t.activeChannels],c=t.activeChannels.findIndex(t=>t.channelId===e.payload.channelId);return c>-1&&a.splice(c,1),Object.assign(Object.assign({},t),{activeChannels:a});case tt.fb:if(e.payload&&e.payload.relayed){const n=[...t.activeChannels,...t.pendingChannels,...t.inactiveChannels];e.payload.relayed.forEach(t=>{if(n&&n.length>0)for(let e=0;e<n.length;e++){if(n[e].channelId.toString()===t.fromChannelId&&(t.fromChannelAlias=n[e].alias?n[e].alias:t.fromChannelId,t.fromShortChannelId=n[e].shortChannelId?n[e].shortChannelId:"",t.toChannelAlias))return;if(n[e].channelId.toString()===t.toChannelId&&(t.toChannelAlias=n[e].alias?n[e].alias:t.toChannelId,t.toShortChannelId=n[e].shortChannelId?n[e].shortChannelId:"",t.fromChannelAlias))return;e===n.length-1&&(t.fromChannelAlias||(t.fromChannelAlias=t.fromChannelId.substring(0,17)+"...",t.fromShortChannelId=""),t.toChannelAlias||(t.toChannelAlias=t.toChannelId.substring(0,17)+"...",t.toShortChannelId=""))}else t.fromChannelAlias=t.fromChannelId.substring(0,17)+"...",t.fromShortChannelId="",t.toChannelAlias=t.toChannelId.substring(0,17)+"...",t.toShortChannelId=""})}return Object.assign(Object.assign({},t),{initialAPIResponseStatus:n,payments:e.payload});case tt.jb:return Object.assign(Object.assign({},t),{transactions:e.payload});case tt.a:const l=t.invoices;return l.unshift(e.payload),Object.assign(Object.assign({},t),{invoices:l});case tt.ab:return Object.assign(Object.assign({},t),{invoices:e.payload});default:return t}}};var On=n("F12H"),An=n("W7oF"),Dn=n("D9sq");let In=(()=>{class t{}return t.\u0275mod=i.Nb({type:t,bootstrap:[bn]}),t.\u0275inj=i.Mb({factory:function(e){return new(e||t)},providers:[{provide:a.a,useClass:gn,multi:!0},De.a,be.a,yn.a,_n.a,st.a],imports:[[s.a,o.b,Te.a,Ie,Le.c,s.c,B.forRoot({idle:3600,timeout:1}),c.j.forRoot(kn,{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),l.c.forRoot([Tt.a,On.a,An.a,Dn.a]),r.b.production?[]:h.a.instrument()]]}),t})();r.b.production&&Object(i.W)(),s.d().bootstrapModule(In).catch(t=>console.log(t))},zZGF:function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},zn8P: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="zn8P"},zp1y:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("l7GE"),r=n("ZUHj");function s(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new o(t,n))}}class o{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new a(t,this.observables,this.project))}}class a extends i.a{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let r=0;r<i;r++)this.toRespond.push(r);for(let s=0;s<i;s++){let t=e[s];this.add(Object(r.a)(this,t,void 0,s))}}notifyNext(t,e,n){this.values[n]=e;const i=this.toRespond;if(i.length>0){const t=i.indexOf(n);-1!==t&&i.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return c});var i=n("7o/Q"),r=n("HDdC"),s=n("SeVD");class o 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(s.a)(t)(e)}},zzXz:function(t,e,n){"use strict";var i;t.exports=S,S.ReadableState=C,n("+qE3");var r,s=function(t,e){return t.listeners(e).length},o=n("8Spv"),a=n("tjlA").Buffer,c=global.Uint8Array||function(){},l=n(1);r=l&&l.debuglog?l.debuglog("stream"):function(){};var h,u,d,f=n("Iqt3"),p=n("kBkV"),m=n("BfC4").getHighWaterMark,b=n("0ROu").codes,g=b.ERR_INVALID_ARG_TYPE,_=b.ERR_STREAM_PUSH_AFTER_EOF,y=b.ERR_METHOD_NOT_IMPLEMENTED,v=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("2q5Q")(S,o);var w=p.errorOrDestroy,x=["error","close","destroy","pause","resume"];function C(t,e,r){i=i||n("Xn1i"),"boolean"!=typeof r&&(r=e instanceof i),this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",r),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n("fXKp").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function S(t){if(i=i||n("Xn1i"),!(this instanceof S))return new S(t);this._readableState=new C(t,this,this instanceof i),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),o.call(this)}function E(t,e,n,i,s){r("readableAddChunk",e);var o,l=t._readableState;if(null===e)l.reading=!1,function(t,e){if(r("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?D(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}}(t,l);else if(s||(o=function(t,e){var n,i;return a.isBuffer(i=e)||i instanceof c||"string"==typeof e||void 0===e||t.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],e)),n}(l,e)),o)w(t,o);else if(l.objectMode||e&&e.length>0)if("string"==typeof e||l.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),i)l.endEmitted?w(t,new v):k(t,l,e,!0);else if(l.ended)w(t,new _);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(e=l.decoder.write(e),l.objectMode||0!==e.length?k(t,l,e,!1):T(t,l)):k(t,l,e,!1)}else i||(l.reading=!1,T(t,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function k(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&D(t)),T(t,e)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(t,e){e(t)},S.prototype.push=function(t,e){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=a.from(t,e),e=""),n=!0),E(this,t,e,!1,n)},S.prototype.unshift=function(t){return E(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){h||(h=n("fXKp").StringDecoder);var e=new h(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,r="";null!==i;)r+=e.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var O=1073741824;function A(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=O?t=O:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function D(t){var e=t._readableState;r("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(r("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(I,t))}function I(t){var e=t._readableState;r("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,j(t)}function T(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(L,t,e))}function L(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(r("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function P(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R(t){r("readable nexttick read 0"),t.read(0)}function M(t,e){r("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),j(t),e.flowing&&!e.reading&&t.read(0)}function j(t){var e=t._readableState;for(r("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function N(t){var e=t._readableState;r("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(V,e,t))}function V(t,e){if(r("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function U(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}S.prototype.read=function(t){r("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return r("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):D(this),null;if(0===(t=A(t,e))&&e.ended)return 0===e.length&&N(this),null;var i,s=e.needReadable;return r("need readable",s),(0===e.length||e.length-t<e.highWaterMark)&&r("length less than watermark",s=!0),e.ended||e.reading?r("reading or ended",s=!1):s&&(r("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=A(n,e))),null===(i=t>0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&N(this)),null!==i&&this.emit("data",i),i},S.prototype._read=function(t){w(this,new y("_read()"))},S.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,r("pipe count=%d opts=%j",i.pipesCount,e);var o=e&&!1===e.end||t===process.stdout||t===process.stderr?p:a;function a(){r("onend"),t.end()}i.endEmitted?process.nextTick(o):n.once("end",o),t.on("unpipe",function e(s,o){r("onunpipe"),s===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,r("cleanup"),t.removeListener("close",d),t.removeListener("finish",f),t.removeListener("drain",c),t.removeListener("error",u),t.removeListener("unpipe",e),n.removeListener("end",a),n.removeListener("end",p),n.removeListener("data",h),l=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())});var c=function(t){return function(){var e=t._readableState;r("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,j(t))}}(n);t.on("drain",c);var l=!1;function h(e){r("ondata");var s=t.write(e);r("dest.write",s),!1===s&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==U(i.pipes,t))&&!l&&(r("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function u(e){r("onerror",e),p(),t.removeListener("error",u),0===s(t,"error")&&w(t,e)}function d(){t.removeListener("finish",f),p()}function f(){r("onfinish"),t.removeListener("close",d),p()}function p(){r("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events.error?Array.isArray(t._events.error)?t._events.error.unshift(n):t._events.error=[n,t._events.error]:t.on(e,n)}(t,"error",u),t.once("close",d),t.once("finish",f),t.emit("pipe",n),i.flowing||(r("pipe resume"),n.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<r;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=U(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},S.prototype.addListener=S.prototype.on=function(t,e){var n=o.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,r("on readable",i.length,i.reading),i.length?D(this):i.reading||process.nextTick(R,this))),n},S.prototype.removeListener=function(t,e){var n=o.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(P,this),n},S.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(P,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(r("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(M,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return r("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(r("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var s in t.on("end",function(){if(r("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(s){r("wrapped data"),n.decoder&&(s=n.decoder.write(s)),n.objectMode&&null==s||(n.objectMode||s&&s.length)&&(e.push(s)||(i=!0,t.pause()))}),t)void 0===this[s]&&"function"==typeof t[s]&&(this[s]=function(e){return function(){return t[e].apply(t,arguments)}}(s));for(var o=0;o<x.length;o++)t.on(x[o],this.emit.bind(this,x[o]));return this._read=function(e){r("wrapped _read",e),i&&(i=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n("V+K4")),u(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=F,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return void 0===d&&(d=n("+DxB")),d(S,t,e)})}},[[0,0]]]);