'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="
"+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=" "+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.DOM.createElement("template");return"content"in e?(this.DOM.setInnerHTML(e,t),e):(this.DOM.setInnerHTML(this.inertBodyElement,t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){var e=this;this.DOM.attributeMap(t).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.DOM.removeAttribute(t,r)});for(var n=0,r=this.DOM.childNodesAsList(t);n")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=this.DOM.nodeName(t).toLowerCase();ke.hasOwnProperty(e)&&!xe.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(je(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&this.DOM.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(t));return e},t}(),Ie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ne=/([^\#-~ |!])/g;function je(t){return t.replace(/&/g,"&").replace(Ie,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ne,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}var Ve=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Me=/^url\(([^)]+)\)$/,Fe=function(){},Le=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(l.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case r.C.NONE:return e;case r.C.HTML:return e instanceof He?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=vt(),o=null;try{Ce=Ce||new _e(t,n);var i=e?String(e):"";o=Ce.getInertBodyElement(i);var s=5,a=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=a,a=n.getInnerHTML(o),o=Ce.getInertBodyElement(i)}while(i!==a);var l=new Re,u=l.sanitizeChildren(n.getTemplateContent(o)||o);return Object(r.O)()&&l.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(o)for(var c=n.getTemplateContent(o)||o,h=0,p=n.childNodesAsList(c);h=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var 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")||Pn(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t}();function Pn(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Dn(t){if(!Pn(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Rn=function(){function t(t,e,n,r,o){void 0===o&&(o=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._enabled=!0,o||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;this._startAnchor||(this._startAnchor=this._createAnchor()),this._endAnchor||(this._endAnchor=this._createAnchor()),this._ngZone.runOutsideAngular(function(){t._startAnchor.addEventListener("focus",function(){t.focusLastTabbableElement()}),t._endAnchor.addEventListener("focus",function(){t.focusFirstTabbableElement()}),t._element.parentNode&&(t._element.parentNode.insertBefore(t._startAnchor,t._element),t._element.parentNode.insertBefore(t._endAnchor,t._element.nextSibling))})},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(En(1)).subscribe(t)},t}(),In=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new Rn(t,this._checker,this._ngZone,this._document,e)},t}();function Nn(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var jn=0,Vn=new Map,Mn=null,Fn=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){this._canBeDescribed(t,e)&&(Vn.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(this._canBeDescribed(t,e)){this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e);var n=Vn.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e),Mn&&0===Mn.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e=0?this.period=Number(n)<1?1:Number(n):Object(nr.a)(n)&&(r=n),Object(nr.a)(r)||(r=kn),this.scheduler=r,this.dueTime=(i=e)instanceof Date&&!isNaN(+i)?+e-this.scheduler.now():e}return Object(l.b)(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.dueTime,{index:0,period:this.period,subscriber:t})},e}(I.a).create;function or(t,e){return void 0===e&&(e=kn),n=function(){return rr(t,e)},function(t){return t.lift(new Jn(n))};var n}var ir=n("/nXB"),sr=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new _t.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?I.a.create(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(or(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):s()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)})},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(c(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,o){e._scrollableContainsElement(o,t)&&n.push(o)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Kn(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t}();function ar(t,e,n){return t||new sr(e,n)}var lr=function(){function t(t,e){var n=this;this._platform=t,this._change=t.isBrowser?e.runOutsideAngular(function(){return Object(ir.a)(Kn(window,"resize"),Kn(window,"orientationchange"))}):s(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(or(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t}();function ur(t,e,n){return t||new lr(e,n)}var cr=function(){};function hr(){throw Error("Host already has a portal attached")}var pr=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&hr(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),dr=function(t){function e(e,n,r){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=n,o.injector=r,o}return Object(l.b)(e,t),e}(pr),fr=function(t){function e(e,n,r){var o=t.call(this)||this;return o.templateRef=e,o.viewContainerRef=n,o.context=r,o}return Object(l.b)(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(pr),mr=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&hr(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof dr?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof fr?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),yr=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.outletElement=e,i._componentFactoryResolver=n,i._appRef=r,i._defaultInjector=o,i}return Object(l.b)(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,r=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.detectChanges(),r.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(r);-1!==t&&n.remove(t)}),r},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(mr),_r=function(t){function e(e,n){var o=t.call(this)||this;return o._componentFactoryResolver=e,o._viewContainerRef=n,o._isInitialized=!1,o.attached=new r.l,o}return Object(l.b)(e,t),Object.defineProperty(e.prototype,"_deprecatedPortal",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedPortalHost",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(e.component),o=n.createComponent(r,n.length,e.injector||n.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return o.destroy()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e}(mr),gr=function(){},vr=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return"undefined"!=typeof n?n:this._parentInjector.get(t,e)},t}(),br=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),wr=function(){return function(t){var e=this;this.scrollStrategy=new br,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.direction="ltr",t&&Object.keys(t).filter(function(e){return"undefined"!=typeof t[e]}).forEach(function(n){return e[n]=t[n]})}}();function Er(){return Error("Scroll strategy has already been attached.")}var Cr=function(){function t(t,e,n,r){var o=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw Er();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),xr=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=-this._previousScrollPosition.left+"px",t.style.top=-this._previousScrollPosition.top+"px",t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=this._document.body,n=t.style.scrollBehavior||"",r=e.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Sr(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function Or(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var Tr=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw Er();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,o=n.height;Sr(e,[{width:r,height:o,bottom:o,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),kr=function(){return function(t,e,n,r){var o=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new br},this.close=function(t){return new Cr(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new xr(o._viewportRuler,o._document)},this.reposition=function(t){return new Tr(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r}}(),Ar=function(){function t(t,e,n,r,o,i){this._portalOutlet=t,this._pane=e,this._config=n,this._ngZone=r,this._keyboardDispatcher=o,this._document=i,this._backdropElement=null,this._backdropClick=new _t.a,this._attachments=new _t.a,this._detachments=new _t.a,this._keydownEvents=new _t.a,n.scrollStrategy&&n.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(En(1)).subscribe(function(){e.hasAttached()&&e.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&(Array.isArray(this._config.panelClass)?this._config.panelClass.forEach(function(t){return e._pane.classList.add(t)}):this._pane.classList.add(this._config.panelClass)),this._attachments.next(),this._keyboardDispatcher.add(this),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=Object(l.a)({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=Object(l.a)({},this._config,{direction:t}),this._updateElementDirection()},t.prototype._updateElementDirection=function(){this._pane.setAttribute("dir",this._config.direction)},t.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=Pr(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=Pr(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=Pr(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=Pr(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=Pr(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=Pr(this._config.maxHeight))},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._backdropElement.classList.add(this._config.backdropClass),this._pane.parentElement.insertBefore(this._backdropElement,this._pane),this._backdropElement.addEventListener("click",function(e){return t._backdropClick.next(e)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._pane.nextSibling&&this._pane.parentNode.appendChild(this._pane)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&e.classList.remove(this._config.backdropClass),e.addEventListener("transitionend",n),e.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){setTimeout(n,500)})}},t}();function Pr(t){return"string"==typeof t?t:t+"px"}var Dr=function(){function t(t,e,n,r,o){this._connectedTo=n,this._viewportRuler=r,this._document=o,this._dir="ltr",this._offsetX=0,this._offsetY=0,this.scrollables=[],this._resizeSubscription=Sn.a.EMPTY,this._preferredPositions=[],this._applied=!1,this._positionLocked=!1,this._onPositionChange=new _t.a,this._origin=this._connectedTo.nativeElement,this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._dir},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._onPositionChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return e.apply()})},t.prototype.dispose=function(){this._applied=!1,this._resizeSubscription.unsubscribe(),this._onPositionChange.complete()},t.prototype.detach=function(){this._applied=!1,this._resizeSubscription.unsubscribe()},t.prototype.apply=function(){if(this._applied&&this._positionLocked&&this._lastConnectedPosition)this.recalculateLastPosition();else{this._applied=!0;for(var t,e,n=this._pane,r=this._origin.getBoundingClientRect(),o=n.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),s=0,a=this._preferredPositions;s-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._unsubscribeFromKeydownEvents()},t.prototype._subscribeToKeydownEvents=function(){var t=this,e=Kn(this._document.body,"keydown",!0);this._keydownEventSubscription=e.pipe(c(function(){return!!t._attachedOverlays.length})).subscribe(function(e){t._selectOverlayFromEvent(e)._keydownEvents.next(e)})},t.prototype._unsubscribeFromKeydownEvents=function(){this._keydownEventSubscription&&(this._keydownEventSubscription.unsubscribe(),this._keydownEventSubscription=null)},t.prototype._selectOverlayFromEvent=function(t){return this._attachedOverlays.find(function(e){return e.overlayElement===t.target||e.overlayElement.contains(t.target)})||this._attachedOverlays[this._attachedOverlays.length-1]},t}();function jr(t,e){return t||new Nr(e)}var Vr=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t}();function Mr(t,e){return t||new Vr(e)}var Fr=0,Lr=function(){function t(t,e,n,r,o,i,s,a,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=o,this._appRef=i,this._injector=s,this._ngZone=a,this._document=l}return t.prototype.create=function(t){var e=this._createPaneElement(),n=this._createPortalOutlet(e);return new Ar(n,e,new wr(t),this._ngZone,this._keyboardDispatcher,this._document)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(){var t=this._document.createElement("div");return t.id="cdk-overlay-"+Fr++,t.classList.add("cdk-overlay-pane"),this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return new yr(t,this._componentFactoryResolver,this._appRef,this._injector)},t}(),Br=new r.n("cdk-connected-overlay-scroll-strategy");function Hr(t){return function(){return t.scrollStrategies.reposition()}}var zr=function(){},Ur=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return I.a.of(this.value);case"E":return I.a.throw(this.error);case"C":return I.a.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Yr=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return Object(l.b)(e,t),e.create=function(){for(var t=[],n=0;nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Jr(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return to.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Jr(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Jr(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(no);return 0==e.length?null:function(t){return oo(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(no);return 0==e.length?null:function(t){var n=function(t,n){return e.map(function(e){return e(t)})}(t).map(ro);return m.call(Xr(n),oo)}},t}();function no(t){return null!=t}function ro(t){var e=Object(r._3)(t)?Kr(t):t;if(!Object(r._2)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function oo(t){var e=t.reduce(function(t,e){return null!=e?Object(l.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}var io=new r.n("NgValueAccessor"),so=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),ao=new r.n("CompositionEventMode"),lo=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=vt()?vt().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function uo(t){return t.validate?function(e){return t.validate(e)}:t}function co(t){return t.validate?function(e){return t.validate(e)}:t}var ho=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function po(){throw new Error("unimplemented")}var fo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(l.b)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return po()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return po()},enumerable:!0,configurable:!0}),e}(Wr),mo=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),yo=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(fo),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}();function _o(t,e){return e.path.concat([t])}function go(t,e){t||Eo(e,"Cannot find control with"),e.valueAccessor||Eo(e,"No value accessor for form control with"),t.validator=eo.compose([t.validator,e.validator]),t.asyncValidator=eo.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&vo(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&vo(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function vo(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),t._pendingChange=!1}function bo(t,e){null==t&&Eo(e,"Cannot find control with"),t.validator=eo.compose([t.validator,e.validator]),t.asyncValidator=eo.composeAsync([t.asyncValidator,e.asyncValidator])}function wo(t){return Eo(t,"There is no FormControl instance attached to form control element with")}function Eo(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Co(t){return null!=t?eo.compose(t.map(uo)):null}function xo(t){return null!=t?eo.composeAsync(t.map(co)):null}var So=[so,function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),ho,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=r._4}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var 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)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i-1&&t.splice(n,1)}var ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return _o(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Co(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return xo(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}($r),Ao=function(t){function e(e){return t.call(this,e)||this}return Object(l.b)(e,t),e}(function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}());function Po(t){var e=Ro(t)?t.validators:t;return Array.isArray(e)?Co(e):e||null}function Do(t,e){var n=Ro(e)?e.asyncValidators:t;return Array.isArray(n)?xo(n):n||null}function Ro(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Io=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=Po(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=Do(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(l.a)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(l.a)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=ro(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof jo?t.controls[e]||null:t instanceof Vo&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new r.l,this.statusChanges=new r.l},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){Ro(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),No=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,Po(n),Do(r,n))||this;return o._onChange=[],o._applyFormState(e),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(l.b)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(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},e}(Io),jo=function(t){function e(e,n,r){var o=t.call(this,Po(n),Do(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(l.b)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof No?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(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+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Io),Vo=function(t){function e(e,n,r){var o=t.call(this,Po(n),Do(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(l.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof No?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(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)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Io),Mo=Promise.resolve(null),Fo=function(t){function e(e,n){var o=t.call(this)||this;return o.submitted=!1,o._directives=[],o.ngSubmit=new r.l,o.form=new jo({},Co(e),xo(n)),o}return Object(l.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Mo.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),go(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Mo.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),To(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;Mo.then(function(){var n=e._findContainer(t.path),r=new jo({});bo(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Mo.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Mo.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,Oo(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}($r),Lo='\n \n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',Bo='\n \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Ho='\n ',zo=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Lo+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n \n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Bo+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Ho)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Bo+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Ho)},t}(),Uo=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return Object(l.b)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Fo||zo.modelGroupParentException()},e}(ko),Yo=Promise.resolve(null),qo=function(t){function e(e,n,o,i){var s=t.call(this)||this;return s.control=new No,s._registered=!1,s.update=new r.l,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=o||[],s.valueAccessor=function(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===lo?n=e:(i=e,So.some(function(t){return i.constructor===t})?(r&&Eo(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Eo(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Eo(t,"No valid value accessor for form control with"),null)}(s,i),s}return Object(l.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(r._4)(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?_o(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Co(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return xo(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){go(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Uo)&&this._parent instanceof ko?zo.formGroupNameException():this._parent instanceof Uo||this._parent instanceof Fo||zo.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||zo.missingNameException()},e.prototype._updateValue=function(t){var e=this;Yo.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Yo.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(fo),Xo=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Lo)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Bo+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Ho)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Lo)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Bo)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n \n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),Go=function(t){function e(e,n){var o=t.call(this)||this;return o._validators=e,o._asyncValidators=n,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new r.l,o}return Object(l.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return go(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){To(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);bo(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);bo(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,Oo(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return wo(e)}),e.valueAccessor.registerOnTouched(function(){return wo(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&go(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=Co(this._validators);this.form.validator=eo.compose([this.form.validator,t]);var e=xo(this._asyncValidators);this.form.asyncValidator=eo.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Xo.missingFormException()},e}($r),Zo=function(){},Qo=function(){},Ko=n("TILf"),Wo=n("N4j0"),$o=n("cQXm"),Jo=n("etqZ"),ti=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=ri(e)}return Object(l.b)(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.iterator,r=t.subscriber;if(t.hasError)r.error(t.error);else{var o=n.next();o.done?r.complete():(r.next(o.value),t.index=e+1,r.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var o=n.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(I.a),ei=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[Jo.a]=function(){return this},t.prototype.next=function(){return this.idxoi?oi:o:o}()),this.arr=t,this.idx=e,this.len=n}return t.prototype[Jo.a]=function(){return this},t.prototype.next=function(){return this.idx=t.length?r.complete():(r.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,o=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:t});for(var i=0;i1?new i.a(t,n):new wn.a(n),e)}}var pi=function(){},di="*";function fi(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function mi(t){return{type:6,styles:t,offset:null}}function yi(t){Promise.resolve(null).then(t)}var _i=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;yi(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),gi=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,o=0,i=this.players.length;0==i?yi(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==i&&e._onFinish()}),t.onDestroy(function(){++r==i&&e._onDestroy()}),t.onStart(function(){++o==i&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),vi="!",bi=function(){};function wi(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var Ei=0,Ci=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o._elementRef=e,o._changeDetectorRef=n,o._showAlwaysAnimate=!1,o._subscriptAnimationState="",o._hintLabel="",o._hintLabelId="mat-hint-"+Ei++,o._labelOptions=r||{},o.floatLabel=o._labelOptions.float||"auto",o}return Object(l.b)(e,t),Object.defineProperty(e.prototype,"dividerColor",{get:function(){return this.color},set:function(t){this.color=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=yt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this._floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatPlaceholder",{get:function(){return this._floatLabel},set:function(t){this.floatLabel=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(hi(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()});var e=this._control.ngControl;e&&e.valueChanges&&e.valueChanges.subscribe(function(){t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(hi(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(hi(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})},e.prototype.ngAfterContentChecked=function(){this._validateControlChild()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!(!this._control.placeholder&&!this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._control.shouldPlaceholderFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return!this._hasLabel()||!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._showAlwaysAnimate=!0,this._floatLabel="always",Kn(this._label.nativeElement,"transitionend").pipe(En(1)).subscribe(function(){t._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"===r.align){if(t||n.hintLabel)throw wi("start");t=r}else if("end"===r.align){if(e)throw wi("end");e=r}})},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e}(un(function(t){this._elementRef=t},"primary")),xi=function(){},Si=function(t){function e(e){t.call(this),this.observableFactory=e}return Object(l.b)(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new Oi(t,this.observableFactory)},e}(I.a),Oi=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return Object(l.b)(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(Object($n.a)(this,t))},e}(Wn.a),Ti=Si.create,ki="accent",Ai="primary",Pi=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Di=function(t){function e(e,n,r){var o=t.call(this,e)||this;o._platform=n,o._focusMonitor=r,o._isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o._isIconButton=o._hasHostAttributes("mat-icon-button");for(var i=0,s=Pi;i-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t}(),Ui=0,Yi=function(){function t(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.ariaLabel="Close dialog"}return t.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Zi(this._elementRef,this._dialog.openDialogs))},t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t}(),qi=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+Ui++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=Zi(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})},t}(),Xi=function(){},Gi=function(){};function Zi(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var Qi=function(){},Ki=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Wi(t,this.notifier))},t}(),Wi=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(Object($n.a)(this,n))}return Object(l.b)(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(Wn.a),$i=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Ji=0,ts=function(t){function e(e,n,r,o,i,s,a){var l=t.call(this,s,o,i,r)||this;return l._elementRef=e,l._platform=n,l.ngControl=r,l._uid="mat-input-"+Ji++,l._isServer=!1,l.focused=!1,l.stateChanges=new _t.a,l.controlType="mat-input",l._disabled=!1,l.placeholder="",l._required=!1,l._type="text",l._readonly=!1,l._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return nn().has(t)}),l._inputValueAccessor=a||l._elementRef.nativeElement,l._previousNativeValue=l.value,l.id=l.id,n.IOS&&e.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}),l._isServer=!l._platform.isBrowser,l}return Object(l.b)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=yt(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=yt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&nn().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=yt(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._focusChanged=function(t){t===this.focused||this.readonly||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if($i.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){var t=this._elementRef.nativeElement,e=this._platform.isBrowser?t.nodeName:t.name;return!!e&&"textarea"===e.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus()},e}(function(t){return function(t){function e(){for(var e=[],n=0;n0&&!this._renderChangeSubscription&&this._observeRenderChanges()},t.prototype.ngOnDestroy=function(){this._rowPlaceholder.viewContainer.clear(),this._headerRowPlaceholder.viewContainer.clear(),this._onDestroy.next(),this._onDestroy.complete(),this.dataSource instanceof Ii&&this.dataSource.disconnect(this)},t.prototype.renderRows=function(){var t=this,e=this._dataDiffer.diff(this._data);if(e){var n=this._rowPlaceholder.viewContainer;e.forEachOperation(function(e,r,o){if(null==e.previousIndex)t._insertRow(e.item,o);else if(null==o)n.remove(r);else{var i=n.get(r);n.move(i,o)}}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){n.get(t.currentIndex).context.$implicit=t.item})}},t.prototype.setHeaderRowDef=function(t){this._headerRowDef=t,this._headerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype._cacheColumnDefs=function(){var t=this;this._columnDefsByName.clear();var e=this._contentColumnDefs?this._contentColumnDefs.toArray():[];this._customColumnDefs.forEach(function(t){return e.push(t)}),e.forEach(function(e){if(t._columnDefsByName.has(e.name))throw Error('Duplicate column definition name provided: "'+e.name+'".');t._columnDefsByName.set(e.name,e)})},t.prototype._cacheRowDefs=function(){var t=this;this._rowDefs=this._contentRowDefs?this._contentRowDefs.toArray():[],this._customRowDefs.forEach(function(e){return t._rowDefs.push(e)});var e=this._rowDefs.filter(function(t){return!t.when});if(e.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]},t.prototype._renderUpdatedColumns=function(){var t=this;this._rowDefs.forEach(function(e){e.getColumnsDiff()&&(t._dataDiffer.diff([]),t._rowPlaceholder.viewContainer.clear(),t.renderRows())}),this._headerRowDef&&this._headerRowDef.getColumnsDiff()&&this._renderHeaderRow()},t.prototype._switchDataSource=function(t){this._data=[],this.dataSource instanceof Ii&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowPlaceholder.viewContainer.clear()),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t,e=this;if(this.dataSource){var n;if(this.dataSource.connect instanceof Function?n=this.dataSource.connect(this):this.dataSource instanceof I.a?n=this.dataSource:Array.isArray(this.dataSource)&&(n=s(this.dataSource)),void 0===n)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=n.pipe((t=this._onDestroy,function(e){return e.lift(new Ki(t))})).subscribe(function(t){e._data=t,e.renderRows()})}},t.prototype._renderHeaderRow=function(){this._headerRowPlaceholder.viewContainer.length>0&&this._headerRowPlaceholder.viewContainer.clear();var t=this._getHeaderCellTemplatesForRow(this._headerRowDef);t.length&&(this._headerRowPlaceholder.viewContainer.createEmbeddedView(this._headerRowDef.template,{cells:t}),t.forEach(function(t){hs.mostRecentCellOutlet&&hs.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,{})}),this._changeDetectorRef.markForCheck())},t.prototype._getRowDef=function(t,e){if(1==this._rowDefs.length)return this._rowDefs[0];var n=this._rowDefs.find(function(n){return n.when&&n.when(e,t)})||this._defaultRowDef;if(!n)throw Error("Could not find a matching row definition for the provided row data.");return n},t.prototype._insertRow=function(t,e){var n=this._getRowDef(t,e),r={$implicit:t};this._rowPlaceholder.viewContainer.createEmbeddedView(n.template,r,e),this._getCellTemplatesForRow(n).forEach(function(t){hs.mostRecentCellOutlet&&hs.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,r)}),this._changeDetectorRef.markForCheck()},t.prototype._updateRowIndexContext=function(){for(var t=this._rowPlaceholder.viewContainer,e=0,n=t.length;e=r.length&&(o=0),r[o]},e.prototype.ngOnChanges=function(){this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e}(ln(function(){})),ws=function(){return function(){this.changes=new _t.a,this.sortButtonLabel=function(t){return"Change sorting for "+t},this.sortDescriptionLabel=function(t,e){return"Sorted by "+t+" "+("asc"==e?"ascending":"descending")}}}();function Es(t){return t||new ws}var Cs=function(t){function e(e,n,r,o){var i=t.call(this)||this;if(i._intl=e,i._sort=r,i._cdkColumnDef=o,i._showIndicatorHint=!1,i._arrowDirection="",i._disableViewStateAnimation=!1,i.arrowPosition="after",!r)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return i._rerenderSubscription=Object(ir.a)(r.sortChange,r._stateChanges,e.changes).subscribe(function(){i._isSorted()&&i._updateArrowDirection(),!i._isSorted()&&i._viewState&&"active"===i._viewState.toState&&(i._disableViewStateAnimation=!1,i._setAnimationTransitionState({fromState:"active",toState:i._arrowDirection})),n.markForCheck()}),i}return Object(l.b)(e,t),Object.defineProperty(e.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=yt(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){!this.id&&this._cdkColumnDef&&(this.id=this._cdkColumnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)},e.prototype.ngOnDestroy=function(){this._sort.deregister(this),this._rerenderSubscription.unsubscribe()},e.prototype._setIndicatorHintVisible=function(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})))},e.prototype._setAnimationTransitionState=function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})},e.prototype._handleClick=function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}},e.prototype._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)},e.prototype._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection},e.prototype._getArrowViewState=function(){var t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState},e.prototype._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start},e.prototype._isDisabled=function(){return this._sort.disabled||this.disabled},e}(ln(function(){})),xs=function(){},Ss=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e}(gs),Os=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e}(ps),Ts=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e}(ds),ks=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e}(fs),As=function(t){function e(e,n){var r=t.call(this,e,n)||this;return n.nativeElement.classList.add("mat-column-"+e.cssClassFriendlyName),r}return Object(l.b)(e,t),e}(function(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}),Ps=function(t){function e(e,n){var r=t.call(this,e,n)||this;return n.nativeElement.classList.add("mat-column-"+e.cssClassFriendlyName),r}return Object(l.b)(e,t),e}(function(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}),Ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e}(us),Rs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e}(cs),Is=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e}(function(){}),Ns=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e}(function(){}),js=function(){},Vs=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o._platform=n,o._document=r,o}return Object(l.b)(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Object(r.O)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&[].slice.call(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)}).some(function(t){return t.textContent.trim()})&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e}(un(function(t){this._elementRef=t})),Ms=function(){},Fs=function(){function t(t,e){this.dialog=t,this.torrentsService=e,this.title="app"}return t.prototype.openMagnet=function(){var t=this;this.dialog.open(Ls,{height:"220px",width:"450px"}).afterClosed().subscribe(function(e){e&&t.torrentsService.startFromMagnetLink(e)})},t}(),Ls=function(){function t(t){this.renderer=t}return t.prototype.submit=function(t){13===t.keyCode&&document.getElementById("start").click()},t}(),Bs=r.W({encapsulation:2,styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%}@media screen and (-ms-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:12px 0;display:flex;flex-wrap:wrap;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+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"slideDialog",definitions:[{type:0,name:"enter",styles:{type:6,styles:{transform:"none",opacity:1},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0},offset:null},options:void 0},{type:0,name:"exit",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0)",opacity:0},offset:null},options:void 0},{type:1,expr:"* => *",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function Hs(t){return r._16(0,[(t()(),r.T(0,null,null,0))],null,null)}function zs(t){return r._16(0,[r._13(402653184,1,{_portalOutlet:0}),(t()(),r.T(16777216,null,null,1,null,Hs)),r.X(2,212992,[[1,4]],0,_r,[r.h,r.H],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}var Us=r.U("mat-dialog-container",ji,function(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"mat-dialog-container",[["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@slideDialog",0]],[["component","@slideDialog.start"],["component","@slideDialog.done"]],function(t,e,n){var o=!0;return"component:@slideDialog.start"===e&&(o=!1!==r._9(t,1)._onAnimationStart(n)&&o),"component:@slideDialog.done"===e&&(o=!1!==r._9(t,1)._onAnimationDone(n)&&o),o},zs,Bs)),r.X(1,49152,null,0,ji,[r.i,In,r.f,[2,R]],null,null)],null,function(t,e){t(e,0,0,r._9(e,1)._id,null==r._9(e,1)._config?null:r._9(e,1)._config.role,null!=r._9(e,1)._config&&r._9(e,1)._config.ariaLabel?null:r._9(e,1)._ariaLabelledBy,null==r._9(e,1)._config?null:r._9(e,1)._config.ariaLabel,(null==r._9(e,1)._config?null:r._9(e,1)._config.ariaDescribedBy)||null,r._9(e,1)._state)})},{},{},[]),Ys=r.W({encapsulation:2,styles:[".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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function qs(t){return r._16(2,[r._8(null,0),r._8(null,1)],null,null)}var Xs=r.W({encapsulation:2,styles:[".mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-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:0;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:88px;line-height:36px;padding:0 16px;border-radius:2px}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-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,.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{opacity:1}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:1}.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:0;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:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-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:1}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button[disabled]{box-shadow:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-flat-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.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:0;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:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-fab::-moz-focus-inner{border:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-fab[disabled]{box-shadow:none}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.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:0;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:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-mini-fab[disabled]{box-shadow:none}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.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 .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function Gs(t){return r._16(2,[r._13(402653184,1,{ripple:0}),(t()(),r.Y(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),r._8(null,0),(t()(),r.Y(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),r.X(4,212992,[[1,4]],0,_n,[r.i,r.u,Je,[2,yn]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),r.Y(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n._isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n._isRoundButton||n._isIconButton,r._9(e,4).unbounded)})}var Zs=r.W({encapsulation:2,styles:[".mat-sort-header-container{display:flex;cursor:pointer}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;margin:0 0 0 6px;position:relative;display:flex}.mat-sort-header-position-before .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}.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)}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],data:{animation:[{type:7,name:"indicator",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"translateY(0px)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"translateY(10px)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"leftPointer",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"rotate(-45deg)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"rotate(45deg)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"rightPointer",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"rotate(45deg)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"rotate(-45deg)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"arrowOpacity",definitions:[{type:0,name:"desc-to-active, asc-to-active, active",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"desc-to-hint, asc-to-hint, hint",styles:{type:6,styles:{opacity:.54},offset:null},options:void 0},{type:0,name:"hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"* => asc, * => desc, * => active, * => hint",animation:{type:4,styles:null,timings:"0ms"},options:null},{type:1,expr:"* <=> *",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"arrowPosition",definitions:[{type:1,expr:"* => desc-to-hint, * => desc-to-active",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(-25%)"},offset:null},{type:6,styles:{transform:"translateY(0)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => hint-to-desc, * => active-to-desc",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:6,styles:{transform:"translateY(25%)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => asc-to-hint, * => asc-to-active",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(25%)"},offset:null},{type:6,styles:{transform:"translateY(0)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => hint-to-asc, * => active-to-asc",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:6,styles:{transform:"translateY(-25%)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:0,name:"desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",styles:{type:6,styles:{transform:"translateY(0)"},offset:null},options:void 0},{type:0,name:"hint-to-desc, active-to-desc, desc",styles:{type:6,styles:{transform:"translateY(-25%)"},offset:null},options:void 0},{type:0,name:"hint-to-asc, active-to-asc, asc",styles:{type:6,styles:{transform:"translateY(25%)"},offset:null},options:void 0}],options:{}},{type:7,name:"allowChildren",definitions:[{type:1,expr:"* <=> *",animation:[{type:11,selector:"@*",animation:{type:9,options:null},options:{optional:!0}}],options:null}],options:{}}]}});function Qs(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"span",[["class","cdk-visually-hidden"]],null,null,null,null,null)),(t()(),r._15(1,null,["\xa0",""]))],null,function(t,e){var n=e.component;t(e,1,0,n._intl.sortDescriptionLabel(n.id,n._sort.direction))})}function Ks(t){return r._16(2,[(t()(),r.Y(0,0,null,null,8,"div",[["class","mat-sort-header-container"]],[[2,"mat-sort-header-sorted",null],[2,"mat-sort-header-position-before",null]],null,null,null,null)),(t()(),r.Y(1,0,null,null,1,"button",[["class","mat-sort-header-button"],["type","button"]],[[1,"disabled",0],[1,"aria-label",0]],[[null,"focus"],[null,"blur"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==o._setIndicatorHintVisible(!0)&&r),"blur"===e&&(r=!1!==o._setIndicatorHintVisible(!1)&&r),r},null,null)),r._8(null,0),(t()(),r.Y(3,0,null,null,5,"div",[["class","mat-sort-header-arrow"]],[[24,"@arrowOpacity",0],[24,"@arrowPosition",0],[24,"@allowChildren",0]],[[null,"@arrowPosition.start"],[null,"@arrowPosition.done"]],function(t,e,n){var r=!0,o=t.component;return"@arrowPosition.start"===e&&(r=0!=(o._disableViewStateAnimation=!0)&&r),"@arrowPosition.done"===e&&(r=0!=(o._disableViewStateAnimation=!1)&&r),r},null,null)),(t()(),r.Y(4,0,null,null,0,"div",[["class","mat-sort-header-stem"]],null,null,null,null,null)),(t()(),r.Y(5,0,null,null,3,"div",[["class","mat-sort-header-indicator"]],[[24,"@indicator",0]],null,null,null,null)),(t()(),r.Y(6,0,null,null,0,"div",[["class","mat-sort-header-pointer-left"]],[[24,"@leftPointer",0]],null,null,null,null)),(t()(),r.Y(7,0,null,null,0,"div",[["class","mat-sort-header-pointer-right"]],[[24,"@rightPointer",0]],null,null,null,null)),(t()(),r.Y(8,0,null,null,0,"div",[["class","mat-sort-header-pointer-middle"]],null,null,null,null,null)),(t()(),r.T(16777216,null,null,1,null,Qs)),r.X(10,16384,null,0,O,[r.H,r.E],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,10,0,e.component._isSorted())},function(t,e){var n=e.component;t(e,0,0,n._isSorted(),"before"==n.arrowPosition),t(e,1,0,n._isDisabled()||null,n._intl.sortButtonLabel(n.id)),t(e,3,0,n._getArrowViewState(),n._getArrowViewState(),n._getArrowDirectionState()),t(e,5,0,n._getArrowDirectionState()),t(e,6,0,n._getArrowDirectionState()),t(e,7,0,n._getArrowDirectionState())})}var Ws=r.W({encapsulation:2,styles:[".mat-table{display:block}.mat-header-row{min-height:56px}.mat-row{min-height:48px}.mat-header-row,.mat-row{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;padding:0 24px;box-sizing:border-box}.mat-header-row::after,.mat-row::after{display:inline-block;min-height:inherit;content:''}.mat-cell,.mat-header-cell{flex:1;overflow:hidden;word-wrap:break-word}"],data:{}});function $s(t){return r._16(2,[r._13(402653184,1,{_rowPlaceholder:0}),r._13(402653184,2,{_headerRowPlaceholder:0}),(t()(),r.Y(2,16777216,null,null,1,null,null,null,null,null,null,null)),r.X(3,16384,[[2,4]],0,_s,[r.H],null,null),(t()(),r.Y(4,16777216,null,null,1,null,null,null,null,null,null,null)),r.X(5,16384,[[1,4]],0,ys,[r.H],null,null)],null,null)}var Js=r.W({encapsulation:2,styles:[],data:{}});function ta(t){return r._16(2,[(t()(),r.Y(0,16777216,null,null,1,null,null,null,null,null,null,null)),r.X(1,16384,null,0,hs,[r.H],null,null)],null,null)}var ea,na=r.W({encapsulation:2,styles:[],data:{}});function ra(t){return r._16(2,[(t()(),r.Y(0,16777216,null,null,1,null,null,null,null,null,null,null)),r.X(1,16384,null,0,hs,[r.H],null,null)],null,null)}!function(t){t[t.NOT_STARTED=0]="NOT_STARTED",t[t.SEEDING_COMPLETE=1]="SEEDING_COMPLETE",t[t.DOWNLOAD_COMPLETE=2]="DOWNLOAD_COMPLETE",t[t.SEEDING=3]="SEEDING",t[t.DOWNLOADING=4]="DOWNLOADING",t[t.STALLED=5]="STALLED",t[t.STOPPED=6]="STOPPED",t[t.ALLOCATING_DISKSPACE=7]="ALLOCATING_DISKSPACE",t[t.ERROR=8]="ERROR",t[t.QUEUED=9]="QUEUED",t[t.CHECKING_DATA=10]="CHECKING_DATA",t[t.NO_SPACE_LEFT=11]="NO_SPACE_LEFT",t[t.PAUSED=12]="PAUSED",t[t.SUPERSEEDING=13]="SUPERSEEDING",t[t.INVALID_STATUS=14]="INVALID_STATUS"}(ea||(ea={}));var oa=function(){function t(){}return t.fromJson=function(e){var n=new t;return n.name=e.name,n.infoHash=e.infoHash,n.status=ea[ea[e.status]],n.timeAdded=new Date(0),n.timeAdded.setUTCSeconds(e.timeAdded/1e3),n.bytesDownloaded=e.bytesDownloaded,n.bytesUploaded=e.bytesUploaded,n.totalBytes=e.totalBytes,n.totalBytesToDownload=e.totalBytesToDownload,n.percentDone=e.bytesDownloaded/e.totalBytesToDownload*100,n.downloadRate=e.downloadRate,n.uploadRate=e.uploadRate,n.numPeers=e.numPeers,n.seeders=e.seeders,n.seedersTotal=e.seedersTotal,n.leechers=e.leechers,n.leechersTotal=e.leechersTotal,n.running=e.running,n.numFiles=e.numFiles,n},t}(),ia=function(){function t(t){this.torrentsService=t,this.displayedColumns=["actions","name","infoHash","status","timeAdded","bytesDownloaded","bytesUploaded","totalBytes","totalBytesToDownload","downloadRate","uploadRate","numPeers"]}return t.prototype.ngOnInit=function(){var e=this;this.torrentObserver=this.torrentsService.getTorrents().map(function(t){return t.torrents.map(function(t){return oa.fromJson(t)})}),this.getTorrents(),setInterval(function(){return e.getTorrents()},t.REFRESH_RATE)},t.prototype.getTorrents=function(){var t=this;this.torrentObserver.subscribe(function(e){return t.torrents=e})},t.prototype.status=function(t){return ea[t.status]},t.prototype.humanReadable=function(t,e){return void 0===e&&(e=["","k","M","G","T"]),t<900?this.fixed(t)+e[0]:e.length>1?this.humanReadable(t/1e3,e.slice(1)):this.fixed(t)+e[0]},t.prototype.fixed=function(t){return Math.round(100*t)/100},t.prototype.startTorrent=function(t){this.torrentsService.startTorrent(t)},t.prototype.pauseTorrent=function(t){this.torrentsService.pauseTorrent(t)},t.prototype.removeTorrent=function(t){this.torrentsService.removeTorrent(t)},t.REFRESH_RATE=5e3,t}(),sa=r.W({encapsulation:0,styles:[[".mat-column-actions[_ngcontent-%COMP%]{-webkit-box-flex:10;-ms-flex:10 5 10px;flex:10 5 10px}.mat-column-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:30px;padding:0}.mat-column-name[_ngcontent-%COMP%]{-webkit-box-flex:40;-ms-flex:40 10 60px;flex:40 10 60px}.mat-column-infoHash[_ngcontent-%COMP%]{-webkit-box-flex:20;-ms-flex:20 10 50px;flex:20 10 50px}.mat-column-status[_ngcontent-%COMP%]{-webkit-box-flex:5;-ms-flex:5 10 50px;flex:5 10 50px}.mat-column-bytesDownloaded[_ngcontent-%COMP%], .mat-column-bytesUploaded[_ngcontent-%COMP%], .mat-column-bytesUploded[_ngcontent-%COMP%], .mat-column-timeAdded[_ngcontent-%COMP%], .mat-column-totalBytes[_ngcontent-%COMP%], .mat-column-totalBytesToDownload[_ngcontent-%COMP%]{-webkit-box-flex:5;-ms-flex:5 10 20px;flex:5 10 20px}.mat-column-downloadRate[_ngcontent-%COMP%], .mat-column-numPeers[_ngcontent-%COMP%], .mat-column-seeders[_ngcontent-%COMP%], .mat-column-seedersTotal[_ngcontent-%COMP%], .mat-column-uploadRate[_ngcontent-%COMP%]{-webkit-box-flex:5;-ms-flex:5 10 10px;flex:5 10 10px}"]],data:{}});function aa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Actions"]))],null,null)}function la(t){return r._16(0,[(t()(),r.Y(0,0,null,null,20,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(-1,null,["\n \t"])),(t()(),r.Y(3,0,null,null,4,"button",[["mat-button",""]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.startTorrent(t.context.$implicit.infoHash)&&r),r},Gs,Xs)),r.X(4,180224,null,0,Di,[r.i,Je,Un],null,null),(t()(),r._15(-1,0,["\n \t\t"])),(t()(),r.Y(6,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._15(-1,null,["play_arrow"])),(t()(),r._15(-1,null,["\n \t"])),(t()(),r.Y(9,0,null,null,4,"button",[["mat-button",""]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.pauseTorrent(t.context.$implicit.infoHash)&&r),r},Gs,Xs)),r.X(10,180224,null,0,Di,[r.i,Je,Un],null,null),(t()(),r._15(-1,0,["\n \t\t"])),(t()(),r.Y(12,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._15(-1,null,["pause"])),(t()(),r._15(-1,null,["\n \t"])),(t()(),r.Y(15,0,null,null,4,"button",[["mat-button",""]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.removeTorrent(t.context.$implicit.infoHash)&&r),r},Gs,Xs)),r.X(16,180224,null,0,Di,[r.i,Je,Un],null,null),(t()(),r._15(-1,0,["\n \t\t"])),(t()(),r.Y(18,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),r._15(-1,null,["delete"])),(t()(),r._15(-1,null,["\n\t "]))],null,function(t,e){t(e,3,0,r._9(e,4).disabled||null),t(e,9,0,r._9(e,10).disabled||null),t(e,15,0,r._9(e,16).disabled||null)})}function ua(t){return r._16(0,[(t()(),r.Y(0,0,null,null,3,"mat-header-cell",[["class","mat-header-cell"],["mat-sort-header",""],["role","columnheader"]],[[2,"mat-sort-header-disabled",null]],[[null,"click"],[null,"mouseenter"],[null,"longpress"],[null,"mouseleave"]],function(t,e,n){var o=!0;return"click"===e&&(o=!1!==r._9(t,1)._handleClick()&&o),"mouseenter"===e&&(o=!1!==r._9(t,1)._setIndicatorHintVisible(!0)&&o),"longpress"===e&&(o=!1!==r._9(t,1)._setIndicatorHintVisible(!0)&&o),"mouseleave"===e&&(o=!1!==r._9(t,1)._setIndicatorHintVisible(!1)&&o),o},Ks,Zs)),r.X(1,245760,null,0,Cs,[ws,r.f,[2,bs],[2,fs]],{id:[0,"id"]},null),r.X(2,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,0,["Name"]))],function(t,e){t(e,1,0,"")},function(t,e){t(e,0,0,r._9(e,1)._isDisabled())})}function ca(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,["",""]))],null,function(t,e){t(e,2,0,e.context.$implicit.name)})}function ha(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Info Hash"]))],null,null)}function pa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,[" ",""]))],null,function(t,e){t(e,2,0,e.context.$implicit.infoHash)})}function da(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Status"]))],null,null)}function fa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.status(e.context.$implicit))})}function ma(t){return r._16(0,[(t()(),r.Y(0,0,null,null,3,"mat-header-cell",[["class","mat-header-cell"],["mat-sort-header",""],["role","columnheader"]],[[2,"mat-sort-header-disabled",null]],[[null,"click"],[null,"mouseenter"],[null,"longpress"],[null,"mouseleave"]],function(t,e,n){var o=!0;return"click"===e&&(o=!1!==r._9(t,1)._handleClick()&&o),"mouseenter"===e&&(o=!1!==r._9(t,1)._setIndicatorHintVisible(!0)&&o),"longpress"===e&&(o=!1!==r._9(t,1)._setIndicatorHintVisible(!0)&&o),"mouseleave"===e&&(o=!1!==r._9(t,1)._setIndicatorHintVisible(!1)&&o),o},Ks,Zs)),r.X(1,245760,null,0,Cs,[ws,r.f,[2,bs],[2,fs]],{id:[0,"id"]},null),r.X(2,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,0,["Time Added"]))],function(t,e){t(e,1,0,"")},function(t,e){t(e,0,0,r._9(e,1)._isDisabled())})}function ya(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.context.$implicit.timeAdded)})}function _a(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Bytes Downloaded"]))],null,null)}function ga(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.bytesDownloaded))})}function va(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Bytes Uploaded"]))],null,null)}function ba(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.bytesUploaded))})}function wa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Total Bytes"]))],null,null)}function Ea(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.totalBytes))})}function Ca(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Done"]))],null,null)}function xa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,["","%"]))],null,function(t,e){t(e,2,0,e.component.fixed(e.context.$implicit.percentDone))})}function Sa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Download Rate"]))],null,null)}function Oa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,["","B/s"]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.downloadRate))})}function Ta(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Upload Rate"]))],null,null)}function ka(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,["","B/s"]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.uploadRate))})}function Aa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),r.X(1,16384,null,0,As,[fs,r.i],null,null),(t()(),r._15(-1,null,["Peers"]))],null,null)}function Pa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),r.X(1,16384,null,0,Ps,[fs,r.i],null,null),(t()(),r._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.context.$implicit.numPeers)})}function Da(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"mat-header-row",[["class","mat-header-row"],["role","row"]],null,null,null,ta,Js)),r.X(1,49152,null,0,Is,[],null,null)],null,null)}function Ra(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"mat-row",[["class","mat-row"],["role","row"]],null,null,null,ra,na)),r.X(1,49152,null,0,Ns,[],null,null)],null,null)}function Ia(t){return r._16(0,[r._13(402653184,1,{sort:0}),(t()(),r.Y(1,0,null,null,197,"div",[["class","torrent-list mat-elevation-z8"]],null,null,null,null,null)),(t()(),r._15(-1,null,["\n "])),(t()(),r.Y(3,0,null,null,194,"mat-table",[["class","mat-table"],["matSort",""]],null,null,null,$s,Ws)),r.X(4,671744,[[1,4]],0,bs,[],null,null),r.X(5,2342912,[["table",4]],3,Ss,[r.p,r.f,r.i,[8,null]],{dataSource:[0,"dataSource"]},null),r._13(603979776,2,{_contentColumnDefs:1}),r._13(603979776,3,{_contentRowDefs:1}),r._13(335544320,4,{_headerRowDef:0}),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(10,0,null,null,13,null,null,null,null,null,null,null)),r.X(11,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,5,{cell:0}),r._13(335544320,6,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,aa)),r.X(17,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[6,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,la)),r.X(21,16384,null,0,Os,[r.E],null,null),r._11(2048,[[5,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(25,0,null,null,13,null,null,null,null,null,null,null)),r.X(26,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,7,{cell:0}),r._13(335544320,8,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,ua)),r.X(32,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[8,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,ca)),r.X(36,16384,null,0,Os,[r.E],null,null),r._11(2048,[[7,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(40,0,null,null,13,null,null,null,null,null,null,null)),r.X(41,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,9,{cell:0}),r._13(335544320,10,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,ha)),r.X(47,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[10,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,pa)),r.X(51,16384,null,0,Os,[r.E],null,null),r._11(2048,[[9,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(55,0,null,null,13,null,null,null,null,null,null,null)),r.X(56,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,11,{cell:0}),r._13(335544320,12,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,da)),r.X(62,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[12,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,fa)),r.X(66,16384,null,0,Os,[r.E],null,null),r._11(2048,[[11,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(70,0,null,null,13,null,null,null,null,null,null,null)),r.X(71,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,13,{cell:0}),r._13(335544320,14,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,ma)),r.X(77,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[14,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,ya)),r.X(81,16384,null,0,Os,[r.E],null,null),r._11(2048,[[13,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(85,0,null,null,13,null,null,null,null,null,null,null)),r.X(86,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,15,{cell:0}),r._13(335544320,16,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,_a)),r.X(92,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[16,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,ga)),r.X(96,16384,null,0,Os,[r.E],null,null),r._11(2048,[[15,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(100,0,null,null,13,null,null,null,null,null,null,null)),r.X(101,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,17,{cell:0}),r._13(335544320,18,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,va)),r.X(107,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[18,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,ba)),r.X(111,16384,null,0,Os,[r.E],null,null),r._11(2048,[[17,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(115,0,null,null,13,null,null,null,null,null,null,null)),r.X(116,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,19,{cell:0}),r._13(335544320,20,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,wa)),r.X(122,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[20,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,Ea)),r.X(126,16384,null,0,Os,[r.E],null,null),r._11(2048,[[19,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(130,0,null,null,13,null,null,null,null,null,null,null)),r.X(131,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,21,{cell:0}),r._13(335544320,22,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,Ca)),r.X(137,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[22,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,xa)),r.X(141,16384,null,0,Os,[r.E],null,null),r._11(2048,[[21,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(145,0,null,null,13,null,null,null,null,null,null,null)),r.X(146,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,23,{cell:0}),r._13(335544320,24,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,Sa)),r.X(152,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[24,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,Oa)),r.X(156,16384,null,0,Os,[r.E],null,null),r._11(2048,[[23,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(160,0,null,null,13,null,null,null,null,null,null,null)),r.X(161,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,25,{cell:0}),r._13(335544320,26,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,Ta)),r.X(167,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[26,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,ka)),r.X(171,16384,null,0,Os,[r.E],null,null),r._11(2048,[[25,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.Y(175,0,null,null,13,null,null,null,null,null,null,null)),r.X(176,16384,null,2,ks,[],{name:[0,"name"]},null),r._13(335544320,27,{cell:0}),r._13(335544320,28,{headerCell:0}),r._11(2048,[[2,4]],fs,null,[ks]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,Aa)),r.X(182,16384,null,0,Ts,[r.E],null,null),r._11(2048,[[28,4]],ds,null,[Ts]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,Pa)),r.X(186,16384,null,0,Os,[r.E],null,null),r._11(2048,[[27,4]],ps,null,[Os]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n\n "])),(t()(),r.T(0,null,null,2,null,Da)),r.X(191,540672,null,0,Ds,[r.E,r.p],{columns:[0,"columns"]},null),r._11(2048,[[4,4]],us,null,[Ds]),(t()(),r._15(-1,null,["\n "])),(t()(),r.T(0,null,null,2,null,Ra)),r.X(195,540672,null,0,Rs,[r.E,r.p],{columns:[0,"columns"]},null),r._11(2048,[[3,4]],cs,null,[Rs]),(t()(),r._15(-1,null,["\n "])),(t()(),r._15(-1,null,["\n"]))],function(t,e){var n=e.component;t(e,5,0,n.torrents),t(e,11,0,"actions"),t(e,26,0,"name"),t(e,41,0,"infoHash"),t(e,56,0,"status"),t(e,71,0,"timeAdded"),t(e,86,0,"bytesDownloaded"),t(e,101,0,"bytesUploaded"),t(e,116,0,"totalBytes"),t(e,131,0,"totalBytesToDownload"),t(e,146,0,"downloadRate"),t(e,161,0,"uploadRate"),t(e,176,0,"numPeers"),t(e,191,0,n.displayedColumns),t(e,195,0,n.displayedColumns)},null)}var Na=r.W({encapsulation:2,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;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-empty.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-placeholder-wrapper .mat-form-field-placeholder,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;height:1px;width:100%}.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.mat-form-field-underline .mat-form-field-ripple{position:absolute;top:0;left:0;width:100%;height:2px;transform-origin:50%;transform:scaleX(.5);visibility:hidden;opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field-invalid:not(.mat-focused) .mat-form-field-underline .mat-form-field-ripple{height:1px}.mat-focused .mat-form-field-underline .mat-form-field-ripple,.mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-form-field-label-wrapper .mat-icon,.mat-form-field-subscript-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-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;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[type=date]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=month]::after,.mat-input-element[type=time]::after,.mat-input-element[type=week]::after{content:' ';white-space:pre;width:1px}.mat-input-element::placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-moz-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-webkit-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element:-ms-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent!important;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-autosize{resize:none}"],data:{animation:[{type:7,name:"transitionMessages",definitions:[{type:0,name:"enter",styles:{type:6,styles:{opacity:1,transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function ja(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"div",[["class","mat-input-prefix mat-form-field-prefix"]],null,null,null,null,null)),r._8(null,0)],null,null)}function Va(t){return r._16(0,[(t()(),r.Y(0,0,null,null,2,null,null,null,null,null,null,null)),r._8(null,2),(t()(),r._15(2,null,["",""]))],null,function(t,e){t(e,2,0,e.component._control.placeholder)})}function Ma(t){return r._16(0,[r._8(null,3),(t()(),r.T(0,null,null,0))],null,null)}function Fa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(t()(),r._15(-1,null,["\xa0*"]))],null,null)}function La(t){return r._16(0,[(t()(),r.Y(0,0,[[4,0],["label",1]],null,7,"label",[["class","mat-form-field-label mat-input-placeholder mat-form-field-placeholder"]],[[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null)),r.X(1,16384,null,0,A,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),r.T(16777216,null,null,1,null,Va)),r.X(3,278528,null,0,P,[r.H,r.E,A],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),r.T(16777216,null,null,1,null,Ma)),r.X(5,278528,null,0,P,[r.H,r.E,A],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),r.T(16777216,null,null,1,null,Fa)),r.X(7,16384,null,0,O,[r.H,r.E],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n._hasLabel()),t(e,3,0,!1),t(e,5,0,!0),t(e,7,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(t,e){var n=e.component;t(e,0,0,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function Ba(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"div",[["class","mat-input-suffix mat-form-field-suffix"]],null,null,null,null,null)),r._8(null,4)],null,null)}function Ha(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),r._8(null,5)],null,function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function za(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(t()(),r._15(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n._hintLabelId),t(e,1,0,n.hintLabel)})}function Ua(t){return r._16(0,[(t()(),r.Y(0,0,null,null,5,"div",[["class","mat-input-hint-wrapper mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(t()(),r.T(16777216,null,null,1,null,za)),r.X(2,16384,null,0,O,[r.H,r.E],{ngIf:[0,"ngIf"]},null),r._8(null,6),(t()(),r.Y(4,0,null,null,0,"div",[["class","mat-input-hint-spacer mat-form-field-hint-spacer"]],null,null,null,null,null)),r._8(null,7)],function(t,e){t(e,2,0,e.component.hintLabel)},function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function Ya(t){return r._16(2,[r._13(402653184,1,{underlineRef:0}),r._13(402653184,2,{_connectionContainerRef:0}),r._13(402653184,3,{_inputContainerRef:0}),r._13(671088640,4,{_label:0}),(t()(),r.Y(4,0,null,null,18,"div",[["class","mat-input-wrapper mat-form-field-wrapper"]],null,null,null,null,null)),(t()(),r.Y(5,0,[[2,0],["connectionContainer",1]],null,9,"div",[["class","mat-input-flex mat-form-field-flex"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==(o._control.onContainerClick&&o._control.onContainerClick(n))&&r),r},null,null)),(t()(),r.T(16777216,null,null,1,null,ja)),r.X(7,16384,null,0,O,[r.H,r.E],{ngIf:[0,"ngIf"]},null),(t()(),r.Y(8,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-input-infix mat-form-field-infix"]],null,null,null,null,null)),r._8(null,1),(t()(),r.Y(10,0,null,null,2,"span",[["class","mat-form-field-label-wrapper mat-input-placeholder-wrapper mat-form-field-placeholder-wrapper"]],null,null,null,null,null)),(t()(),r.T(16777216,null,null,1,null,La)),r.X(12,16384,null,0,O,[r.H,r.E],{ngIf:[0,"ngIf"]},null),(t()(),r.T(16777216,null,null,1,null,Ba)),r.X(14,16384,null,0,O,[r.H,r.E],{ngIf:[0,"ngIf"]},null),(t()(),r.Y(15,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-input-underline mat-form-field-underline"]],null,null,null,null,null)),(t()(),r.Y(16,0,null,null,0,"span",[["class","mat-input-ripple mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null)),(t()(),r.Y(17,0,null,null,5,"div",[["class","mat-input-subscript-wrapper mat-form-field-subscript-wrapper"]],null,null,null,null,null)),r.X(18,16384,null,0,A,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),r.T(16777216,null,null,1,null,Ha)),r.X(20,278528,null,0,P,[r.H,r.E,A],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),r.T(16777216,null,null,1,null,Ua)),r.X(22,278528,null,0,P,[r.H,r.E,A],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){var n=e.component;t(e,7,0,n._prefixChildren.length),t(e,12,0,n._hasFloatingLabel()),t(e,14,0,n._suffixChildren.length),t(e,18,0,n._getDisplayedMessages()),t(e,20,0,"error"),t(e,22,0,"hint")},function(t,e){var n=e.component;t(e,16,0,"accent"==n.color,"warn"==n.color)})}var qa=r.W({encapsulation:0,styles:[[""]],data:{}});function Xa(t){return r._16(0,[(t()(),r._15(-1,null,["\n"])),(t()(),r.Y(1,0,null,null,6,"mat-toolbar",[["class","mat-toolbar"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,qs,Ys)),r.X(2,4243456,null,1,Vs,[r.i,Je,R],null,null),r._13(603979776,1,{_toolbarRows:1}),(t()(),r._15(-1,0,["\n "])),(t()(),r.Y(5,0,null,0,1,"span",[],null,null,null,null,null)),(t()(),r._15(-1,null,["KTorrent HTML interface"])),(t()(),r._15(-1,0,["\n"])),(t()(),r._15(-1,null,["\n\n"])),(t()(),r.Y(9,0,null,null,2,"button",[["mat-button",""]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.openMagnet()&&r),r},Gs,Xs)),r.X(10,180224,null,0,Di,[r.i,Je,Un],null,null),(t()(),r._15(-1,0,["Magnet link"])),(t()(),r._15(-1,null,["\n\n"])),(t()(),r.Y(13,0,null,null,1,"app-torrent-list",[],null,null,null,Ia,sa)),r.X(14,114688,null,0,ia,[pt],null,null),(t()(),r._15(-1,null,["\n\n"]))],function(t,e){t(e,14,0)},function(t,e){t(e,1,0,r._9(e,2)._toolbarRows.length,!r._9(e,2)._toolbarRows.length),t(e,9,0,r._9(e,10).disabled||null)})}var Ga=r.U("app-root",Fs,function(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"app-root",[],null,null,null,Xa,qa)),r.X(1,49152,null,0,Fs,[zi,pt],null,null)],null,null)},{},{},[]),Za=r.W({encapsulation:0,styles:["mat-form-field[_ngcontent-%COMP%] {\n width: 100%;\n}"],data:{}});function Qa(t){return r._16(0,[(t()(),r.Y(0,0,null,null,43,"div",[],null,[[null,"keydown"]],function(t,e,n){var r=!0;return"keydown"===e&&(r=!1!==t.component.submit(n)&&r),r},null,null)),(t()(),r._15(-1,null,["\n\t"])),(t()(),r.Y(2,0,null,null,2,"h2",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),r.X(3,81920,null,0,qi,[[2,Mi],r.i,zi],null,null),(t()(),r._15(-1,null,["New torrent from magnet link"])),(t()(),r._15(-1,null,["\n\t"])),(t()(),r.Y(6,0,null,null,2,"mat-dialog-content",[["class","mat-dialog-content"]],null,null,null,null,null)),r.X(7,16384,null,0,Xi,[],null,null),(t()(),r._15(-1,null,["Enter magnet link"])),(t()(),r._15(-1,null,["\n\t"])),(t()(),r.Y(10,0,null,null,18,"mat-form-field",[["class","mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,Ya,Na)),r.X(11,7389184,null,7,Ci,[r.i,r.f,[2,vn]],null,null),r._13(335544320,1,{_control:0}),r._13(335544320,2,{_placeholderChild:0}),r._13(335544320,3,{_labelChild:0}),r._13(603979776,4,{_errorChildren:1}),r._13(603979776,5,{_hintChildren:1}),r._13(603979776,6,{_prefixChildren:1}),r._13(603979776,7,{_suffixChildren:1}),(t()(),r._15(-1,1,["\n\t\t"])),(t()(),r.Y(20,0,null,1,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Magnet link"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var o=!0,i=t.component;return"input"===e&&(o=!1!==r._9(t,21)._handleInput(n.target.value)&&o),"blur"===e&&(o=!1!==r._9(t,21).onTouched()&&o),"compositionstart"===e&&(o=!1!==r._9(t,21)._compositionStart()&&o),"compositionend"===e&&(o=!1!==r._9(t,21)._compositionEnd(n.target.value)&&o),"blur"===e&&(o=!1!==r._9(t,26)._focusChanged(!1)&&o),"focus"===e&&(o=!1!==r._9(t,26)._focusChanged(!0)&&o),"input"===e&&(o=!1!==r._9(t,26)._onInput()&&o),"ngModelChange"===e&&(o=!1!==(i.magnet=n)&&o),o},null,null)),r.X(21,16384,null,0,lo,[r.y,r.i,[2,ao]],null,null),r._11(1024,null,io,function(t){return[t]},[lo]),r.X(23,671744,null,0,qo,[[8,null],[8,null],[8,null],[2,io]],{model:[0,"model"]},{update:"ngModelChange"}),r._11(2048,null,fo,null,[qo]),r.X(25,16384,null,0,Ao,[fo],null,null),r.X(26,933888,null,0,ts,[r.i,Je,[2,fo],[2,Fo],[2,Go],cn,[8,null]],{placeholder:[0,"placeholder"]},null),r._11(2048,[[1,4]],bi,null,[ts]),(t()(),r._15(-1,1,["\n\t"])),(t()(),r._15(-1,null,["\n\t"])),(t()(),r.Y(30,0,null,null,12,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),r.X(31,16384,null,0,Gi,[],null,null),(t()(),r._15(-1,null,["\n\t "])),(t()(),r.Y(33,0,null,null,3,"button",[["id","start"],["mat-button",""],["type","button"]],[[8,"disabled",0],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var o=!0;return"click"===e&&(o=!1!==r._9(t,35).dialogRef.close(r._9(t,35).dialogResult)&&o),o},Gs,Xs)),r.X(34,180224,null,0,Di,[r.i,Je,Un],null,null),r.X(35,606208,null,0,Yi,[[2,Mi],r.i,zi],{dialogResult:[0,"dialogResult"]},null),(t()(),r._15(-1,0,["Start torrent"])),(t()(),r._15(-1,null,["\n\t "])),(t()(),r.Y(38,0,null,null,3,"button",[["mat-button",""],["type","button"]],[[8,"disabled",0],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var o=!0;return"click"===e&&(o=!1!==r._9(t,40).dialogRef.close(r._9(t,40).dialogResult)&&o),o},Gs,Xs)),r.X(39,180224,null,0,Di,[r.i,Je,Un],null,null),r.X(40,606208,null,0,Yi,[[2,Mi],r.i,zi],{dialogResult:[0,"dialogResult"]},null),(t()(),r._15(-1,0,["Cancel"])),(t()(),r._15(-1,null,["\n\t"])),(t()(),r._15(-1,null,["\n"])),(t()(),r._15(-1,null,["\n"]))],function(t,e){var n=e.component;t(e,3,0),t(e,23,0,n.magnet),t(e,26,0,"Magnet link"),t(e,35,0,n.magnet),t(e,40,0,!1)},function(t,e){t(e,2,0,r._9(e,3).id),t(e,10,1,[r._9(e,11)._control.errorState,r._9(e,11)._control.errorState,r._9(e,11)._canLabelFloat,r._9(e,11)._shouldLabelFloat(),r._9(e,11)._hideControlPlaceholder(),r._9(e,11)._control.disabled,r._9(e,11)._control.focused,r._9(e,11)._shouldForward("untouched"),r._9(e,11)._shouldForward("touched"),r._9(e,11)._shouldForward("pristine"),r._9(e,11)._shouldForward("dirty"),r._9(e,11)._shouldForward("valid"),r._9(e,11)._shouldForward("invalid"),r._9(e,11)._shouldForward("pending")]),t(e,20,1,[r._9(e,25).ngClassUntouched,r._9(e,25).ngClassTouched,r._9(e,25).ngClassPristine,r._9(e,25).ngClassDirty,r._9(e,25).ngClassValid,r._9(e,25).ngClassInvalid,r._9(e,25).ngClassPending,r._9(e,26)._isServer,r._9(e,26).id,r._9(e,26).placeholder,r._9(e,26).disabled,r._9(e,26).required,r._9(e,26).readonly,r._9(e,26)._ariaDescribedby||null,r._9(e,26).errorState,r._9(e,26).required.toString()]),t(e,33,0,r._9(e,34).disabled||null,r._9(e,35).ariaLabel),t(e,38,0,r._9(e,39).disabled||null,r._9(e,40).ariaLabel)})}var Ka=r.U("app-magnet-dialog",Ls,function(t){return r._16(0,[(t()(),r.Y(0,0,null,null,1,"app-magnet-dialog",[],null,null,null,Qa,Za)),r.X(1,49152,null,0,Ls,[r.y],null,null)],null,null)},{},{},[]);function Wa(t){switch(t.length){case 0:return new _i;case 1:return t[0];default:return new gi(t)}}function $a(t,e,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var s=[],a=[],l=-1,u=null;if(r.forEach(function(t){var n=t.offset,r=n==l,c=r&&u||{};Object.keys(t).forEach(function(n){var r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case vi:a=o[n];break;case di:a=i[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}c[r]=a}),r||a.push(c),u=c,l=n}),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return a}function Ja(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&tl(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&tl(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&tl(n,"destroy",t.totalTime))})}}function tl(t,e,n){var r=el(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),o=t._data;return null!=o&&(r._data=o),r}function el(t,e,n,r,o,i){return void 0===o&&(o=""),void 0===i&&(i=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i}}function nl(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function rl(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var ol=function(t,e){return!1},il=function(t,e){return!1},sl=function(t,e,n){return[]};if("undefined"!=typeof Element){if(ol=function(t,e){return t.contains(e)},Element.prototype.matches)il=function(t,e){return t.matches(e)};else{var al=Element.prototype,ll=al.matchesSelector||al.mozMatchesSelector||al.msMatchesSelector||al.oMatchesSelector||al.webkitMatchesSelector;ll&&(il=function(t,e){return ll.apply(t,[e])})}sl=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var o=t.querySelector(e);o&&r.push(o)}return r}}var ul=null,cl=!1;function hl(t){ul||(ul=pl()||{},cl=!!ul.style&&"WebkitAppearance"in ul.style);var e=!0;return ul.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in ul.style)&&cl&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ul.style),e}function pl(){return"undefined"!=typeof document?document.body:null}var dl=il,fl=ol,ml=sl,yl=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return hl(t)},t.prototype.matchesElement=function(t,e){return dl(t,e)},t.prototype.containsElement=function(t,e){return fl(t,e)},t.prototype.query=function(t,e,n){return ml(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,o,i){return void 0===i&&(i=[]),new _i},t}(),_l=function(){function t(){}return t.NOOP=new yl,t}(),gl=1e3;function vl(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:bl(parseFloat(e[1]),e[2])}function bl(t,e){switch(e){case"s":return t*gl;default:return t}}function wl(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,o=0,i="";if("string"==typeof t){var s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=bl(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(o=bl(Math.floor(parseFloat(a)),s[4]));var l=s[5];l&&(i=l)}else r=t;if(!n){var u=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:i}}(t,e,n)}function El(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Cl(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else El(t,n);return n}function xl(t,e){t.style&&Object.keys(e).forEach(function(n){var r=Rl(n);t.style[r]=e[n]})}function Sl(t,e){t.style&&Object.keys(e).forEach(function(e){var n=Rl(e);t.style[n]=""})}function Ol(t){return Array.isArray(t)?1==t.length?t[0]:fi(t):t}var Tl=new RegExp("{{\\s*(.+?)\\s*}}","g");function kl(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=Tl.exec(n);)e.push(r[1]);Tl.lastIndex=0}return e}function Al(t,e,n){var r=t.toString(),o=r.replace(Tl,function(t,r){var o=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?t:o}function Pl(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var Dl=/-+([a-z0-9])/g;function Rl(t){return t.replace(Dl,function(){for(var t=[],e=0;e *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var o=t.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=o[1],s=o[2],a=o[3];e.push(Ml(i,a)),"<"!=s[0]||i==Nl&&a==Nl||e.push(Ml(a,i))}(t,o,r)}):o.push(n),o),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ul(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Il(n,t,e)}),options:Ul(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0,i=t.steps.map(function(t){e.currentTime=r;var i=Il(n,t,e);return o=Math.max(o,e.currentTime),i});return e.currentTime=o,{type:3,steps:i,options:Ul(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Yl(wl(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=Yl(0,0,"");return o.dynamic=!0,o.strValue=r,o}return Yl((n=n||wl(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var o=t.styles?t.styles:mi({});if(5==o.type)n=this.visitKeyframes(o,e);else{var i=t.styles,s=!1;if(!i){s=!0;var a={};r.easing&&(a.easing=r.easing),i=mi(a)}e.currentTime+=r.duration+r.delay;var l=this.visitStyle(i,e);l.isEmptyStep=s,n=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==di?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,o=null;return n.forEach(function(t){if(zl(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(var i in e)if(e[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,o=e.currentTime,i=e.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,l,u=e.collectedStyles[e.currentQuerySelector],c=u[r],h=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),h=!1),i=c.startTime),h&&(u[r]={startTime:i,endTime:o}),e.options&&(s=e.errors,a=e.options.params||{},(l=kl(t[r])).length&&l.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],s=!1,a=!1,l=0,u=t.steps.map(function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(zl(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(zl(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=u&&(o++,c=r.offset=u),a=a||c<0||c>1,s=s||c0&&o0?o==p?1:h*o:i[o],a=s*m;e.currentTime=d+f.delay+a,f.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:Il(this,Ol(t.animation),e),options:Ul(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Ul(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ul(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Fl,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),i=o[0],s=o[1];e.currentQuerySelector=n.length?n+" "+i:i,nl(e.collectedStyles,e.currentQuerySelector,{});var a=Il(this,Ol(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Ul(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:wl(t.timings,e.errors,!0);return{type:12,animation:Il(this,Ol(t.animation),e),timings:n,options:null}},t}(),Hl=function(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 zl(t){return!Array.isArray(t)&&"object"==typeof t}function Ul(t){var e;return t?(t=El(t)).params&&(t.params=(e=t.params)?El(e):null):t={},t}function Yl(t,e,n){return{duration:t,delay:e,easing:n}}function ql(t,e,n,r,o,i,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var Xl=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Gl=new RegExp(":enter","g"),Zl=new RegExp(":leave","g");function Ql(t,e,n,r,o,i,s,a,l,u){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===u&&(u=[]),(new Kl).buildKeyframes(t,e,n,r,o,i,s,a,l,u)}var Kl=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,o,i,s,a,l,u){void 0===u&&(u=[]),l=l||new Xl;var c=new $l(t,e,l,r,o,u,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),Il(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(s).length){var p=h[h.length-1];p.allowOnlyTimelineStyles()||p.setStyles([s],null,c.errors,a)}return h.length?h.map(function(t){return t.buildKeyframes()}):[ql(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,o=null!=n.duration?vl(n.duration):null,i=null!=n.delay?vl(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,i);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Il(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,o=e,i=t.options;if(i&&(i.params||i.delay)&&((o=e.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Wl);var s=vl(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return Il(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime,i=t.options&&t.options.delay?vl(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);i&&a.delayNextStep(i),Il(n,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return wl(e.params?Al(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(function(t){i.forwardTime((t.offset||0)*o),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+o),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,o=t.options||{},i=o.delay?vl(o.delay):0;i&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Wl);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;var l=null;a.forEach(function(r,o){e.currentQueryIndex=o;var a=e.createSubContext(t.options,r);i&&a.delayNextStep(i),r===e.element&&(l=a.currentTimeline),Il(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,o=t.timings,i=Math.abs(o.duration),s=i*(e.currentQueryTotal-1),a=i*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var l=e.currentTimeline;a&&l.delayNextStep(a);var u=l.currentTime;Il(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),Wl={},$l=function(){function t(t,e,n,r,o,i,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Jl(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,o=this.options;null!=r.duration&&(o.duration=vl(r.duration)),null!=r.delay&&(o.delay=vl(r.delay));var i=r.params;if(i){var s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=Al(i[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Wl,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new tu(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,i){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(Gl,"."+this._enterClassName)).replace(Zl,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,a)}return o||0!=s.length||i.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Jl=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,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()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){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))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||di,e._currentKeyframe[t]=di}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var o=this;e&&(this._previousKeyframe.easing=e);var i=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=di}):Cl(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=Al(s[t],i,n);o._pendingStyles[t]=e,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:di),o._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,s){var a=Cl(i,!0);Object.keys(a).forEach(function(t){var r=a[t];r==vi?e.add(t):r==di&&n.add(t)}),r||(a.offset=s/t.duration),o.push(a)});var i=e.size?Pl(e.values()):[],s=n.size?Pl(n.values()):[];if(r){var a=o[0],l=El(a);a.offset=0,l.offset=1,o=[a,l]}return ql(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)},t}(),tu=function(t){function e(e,n,r,o,i,s,a){void 0===a&&(a=!1);var l=t.call(this,e,n,s.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=o,l.postStyleProps=i,l._stretchStartingKeyframe=a,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return Object(l.b)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var i=[],s=r+n,a=n/s,l=Cl(t[0],!1);l.offset=0,i.push(l);var u=Cl(t[0],!1);u.offset=eu(a),i.push(u);for(var c=t.length-1,h=1;h<=c;h++){var p=Cl(t[h],!1);p.offset=eu((n+p.offset*r)/s),i.push(p)}r=s,n=0,o="",t=i}return ql(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)},e}(Jl);function eu(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var nu=function(){},ru=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.b)(e,t),e.prototype.normalizePropertyName=function(t,e){return Rl(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var o="",i=n.toString().trim();if(ou[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return i+o},e}(nu),ou=function(t){var e={};return"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(",").forEach(function(t){return e[t]=!0}),e}();function iu(t,e,n,r,o,i,s,a,l,u,c,h){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,errors:h}}var su={},au=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return function(t,e,n){return t.some(function(t){return t(e,n)})}(this.ast.matchers,t,e)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],o=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return o?o.buildStyles(e,n):i},t.prototype.build=function(t,e,n,r,o,i,s,a,u){var c=[],h=this.ast.options&&this.ast.options.params||su,p=this.buildStyles(n,s&&s.params||su,c),d=a&&a.params||su,f=this.buildStyles(r,d,c),m=new Set,y=new Map,_=new Map,g="void"===r,v={params:Object(l.a)({},h,d)},b=Ql(t,e,this.ast.animation,o,i,p,f,v,u,c);if(c.length)return iu(e,this._triggerName,n,r,g,p,f,[],[],y,_,c);b.forEach(function(t){var n=t.element,r=nl(y,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var o=nl(_,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&m.add(n)});var w=Pl(m.values());return iu(e,this._triggerName,n,r,g,p,f,b,w,y,_)},t}(),lu=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=El(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var i=o[t];i.length>1&&(i=Al(i,r,e)),n[t]=i})}}),n},t}(),uu=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new lu(t.style,t.options&&t.options.params||{})}),cu(this.states,"true","1"),cu(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new au(t,e,n.states))}),this.fallbackTransition=new au(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function cu(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var hu=new Xl,pu=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=Ll(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]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=$a(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var o,i=[],s=this._animations[t],a=new Map;if(s?(o=Ql(this._driver,e,s,"ng-enter","ng-leave",{},{},n,hu,i)).forEach(function(t){var e=nl(a,t.element,{});t.postStyleProps.forEach(function(t){return 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"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,di)})});var l=Wa(o.map(function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return r.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var o=el(e,"","","");return Ja(this._getPlayer(t),n,o,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),du=[],fu={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},mu={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},yu="__ng_removed",_u=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=El(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),gu=new _u("void"),vu=new _u("DELETED"),bu=function(){function t(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,ku(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var o,i=this;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"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=nl(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var l=nl(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(ku(t,"ng-trigger"),ku(t,"ng-trigger-"+e),l[e]=gu),function(){i._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),i._triggers[e]||delete l[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(e),s=new Eu(this.id,e,t),a=this._engine.statesByElement.get(t);a||(ku(t,"ng-trigger"),ku(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var l=a[e],u=new _u(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[e]=u,l){if(l===vu)return s}else l=gu;if("void"===u.value||l.value!==u.value){var c=nl(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==o.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=i.matchTransition(l.value,u.value),p=!1;if(!h){if(!r)return;h=i.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:p}),p||(ku(t,"ng-animate-queued"),s.onStart(function(){Au(t,"ng-animate-queued")})),s.onDone(function(){var e=o.players.indexOf(s);e>=0&&o.players.splice(e,1);var n=o._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o=0;o=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),o=0;o=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player;C.push(e);var i=t.element;if(p&&n.driver.containsElement(p,i)){var l=w.get(i),h=m.get(i),d=n._buildInstruction(t,r,h,l);if(d.errors&&d.errors.length)x.push(d);else{if(t.isFallbackTransition)return e.onStart(function(){return Sl(i,d.fromStyles)}),e.onDestroy(function(){return xl(i,d.toStyles)}),void o.push(e);d.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(i,d.timelines),s.push({instruction:d,player:e,element:i}),d.queriedElements.forEach(function(t){return nl(a,t,[]).push(e)}),d.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),d.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()});if(x.length){var O=[];x.forEach(function(t){O.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return O.push("- "+t+"\n")})}),C.forEach(function(t){return t.destroy()}),this.reportError(O)}var T=new Map,k=new Map;s.forEach(function(t){var e=t.element;r.has(e)&&(k.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,T))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){nl(T,e,[]).push(t),t.destroy()})});var A=_.filter(function(t){return Du(t,u,c)}),P=new Map;Su(P,this.driver,v,c,di).forEach(function(t){Du(t,u,c)&&A.push(t)});var D=new Map;f.forEach(function(t,e){Su(D,n.driver,new Set(t),u,vi)}),A.forEach(function(t){var e=P.get(t),n=D.get(t);P.set(t,Object(l.a)({},e,n))});var R=[],I=[],N={};s.forEach(function(t){var e=t.element,s=t.player,a=t.instruction;if(r.has(e)){if(h.has(e))return s.onDestroy(function(){return xl(e,a.toStyles)}),void o.push(s);var l=N;if(k.size>1){for(var u=e,c=[];u=u.parentNode;){var p=k.get(u);if(p){l=p;break}c.push(u)}c.forEach(function(t){return k.set(t,l)})}var d=n._buildAnimation(s.namespaceId,a,T,i,D,P);if(s.setRealPlayer(d),l===N)R.push(s);else{var f=n.playersByElement.get(l);f&&f.length&&(s.parentPlayer=Wa(f)),o.push(s)}}else Sl(e,a.fromStyles),s.onDestroy(function(){return xl(e,a.toStyles)}),I.push(s),h.has(e)&&o.push(s)}),I.forEach(function(t){var e=i.get(t.element);if(e&&e.length){var n=Wa(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var j=0;j<_.length;j++){var V,M=(V=_[j])[yu];if(Au(V,"ng-leave"),!M||!M.hasAnimation){var F=[];if(a.size){var L=a.get(V);L&&L.length&&F.push.apply(F,L);for(var B=this.driver.query(V,".ng-animating",!0),H=0;H0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new _i},t}(),Eu=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new _i,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Ja(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){nl(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Cu(t){return t&&1===t.nodeType}function xu(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Su(t,e,n,r,o){var i=[];n.forEach(function(t){return i.push(xu(t))});var s=[];r.forEach(function(n,r){var i={};n.forEach(function(t){var n=i[t]=e.computeStyle(r,t,o);n&&0!=n.length||(r[yu]=mu,s.push(r))}),t.set(r,i)});var a=0;return n.forEach(function(t){return xu(t,i[a++])}),s}function Ou(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var i=o.get(e);if(i)return i;var s=e.parentNode;return i=n.has(s)?s:r.has(s)?1:t(s),o.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}var Tu="$$classes";function ku(t,e){if(t.classList)t.classList.add(e);else{var n=t[Tu];n||(n=t[Tu]={}),n[e]=!0}}function Au(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Tu];n&&delete n[e]}}function Pu(t,e,n){Wa(n).onDone(function(){return t.processLeaveNode(e)})}function Du(t,e,n){var r=n.get(t);if(!r)return!1;var o=e.get(t);return o?r.forEach(function(t){return o.add(t)}):e.set(t,r),n.delete(t),!0}var Ru=function(){function t(t,e){var n=this;this._driver=t,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new wu(t,e),this._timelineEngine=new pu(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,o){var i=t+"-"+r,s=this._triggerCache[i];if(!s){var a=[],l=Ll(this._driver,o,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new uu(t,e)}(r,l),this._triggerCache[i]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=rl(n);this._timelineEngine.command(o[0],e,o[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var i=rl(n);return this._timelineEngine.listen(i[0],e,i[1],o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Iu=function(){function t(t,e,n,r){void 0===r&&(r=[]);var o=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,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.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return o.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return Cl(t,!1)}),n=Object.keys(this.previousStyles);if(n.length&&e.length){var r=e[0],o=[];if(n.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=t.previousStyles[e]}),o.length)for(var i=this,s=function(){var t=e[a];o.forEach(function(e){t[e]=Nu(i.element,e)})},a=1;a=0&&t1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof l&&(n=t.pop()),null===a&&1===t.length&&t[0]instanceof r.a?t[0]:Object(s.a)(n)(new o.a(t,a))};var r=n("YaPU"),o=n("Veqx"),i=n("1Q68"),s=n("8D5t")},0:function(t,e,n){t.exports=n("x35b")},"1Q68":function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t.schedule}},"3a3m":function(t,e,n){"use strict";var r=n("TToO"),o=n("g5jc"),i=n("YaPU"),s=n("OVmG"),a=n("VwZZ");function l(){return function(t){return t.lift(new u(t))}}var u=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new c(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.b)(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(s.a),h=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.b)(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new a.a).add(this.source.subscribe(new d(this.getSubject(),this))),t.closed?(this._connection=null,t=a.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return l()(this)},e}(i.a).prototype,p={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:h._subscribe},_isComplete:{value:h._isComplete,writable:!0},getSubject:{value:h.getSubject},connect:{value:h.connect},refCount:{value:h.refCount}},d=function(t){function e(e,n){t.call(this,e),this.connectable=n}return Object(r.b)(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b);function f(){return new o.a}e.a=function(){return function(t){return l()((e=f,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,p);return r.source=t,r.subjectFactory=n,r})(t));var e}}},"8D5t":function(t,e,n){"use strict";var r=n("Qnch");function o(t){return t}e.a=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(o,null,t)}},AMGY:function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||"undefined"!=typeof t&&t||o}).call(e,n("DuR2"))},BX3T:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},GK6M:function(t,e,n){"use strict";e.a=function(t){return r=t,i};var r,o=n("fKB6");function i(){try{return r.apply(this,arguments)}catch(t){return o.a.e=t,o.a}}},Jnfr:function(t,e){function n(t){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+t+"'.")})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="Jnfr"},N4j0:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length}},OVmG:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("TToO"),o=n("/iUD"),i=n("VwZZ"),s=n("t7NR"),a=n("tLDX"),l=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!n){this.destination=s.a;break}if("object"==typeof n){n instanceof e?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,n,r,o)}}return Object(r.b)(e,t),e.prototype[a.a]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(i.a),u=function(t){function e(e,n,r,i){var a;t.call(this),this._parentSubscriber=e;var l=this;Object(o.a)(n)?a=n:n&&(a=n.next,r=n.error,i=n.complete,n!==s.a&&(l=Object.create(n),Object(o.a)(l.unsubscribe)&&this.add(l.unsubscribe.bind(l)),l.unsubscribe=this.unsubscribe.bind(this))),this._context=l,this._next=a,this._error=r,this._complete=i}return Object(r.b)(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},PIsA:function(t,e,n){"use strict";var r=n("AMGY"),o=n("N4j0"),i=n("cQXm"),s=n("dgOU"),a=n("YaPU"),l=n("etqZ"),u=n("TToO"),c=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return Object(u.b)(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("OVmG").a),h=n("+CnV");e.a=function(t,e,n,u){var p=new c(t,n,u);if(p.closed)return null;if(e instanceof a.a)return e._isScalar?(p.next(e.value),p.complete(),null):(p.syncErrorThrowable=!0,e.subscribe(p));if(Object(o.a)(e)){for(var d=0,f=e.length;d0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.a)},Rf9G:function(t,e,n){"use strict";e.a=function(){return Object(r.a)()(this)};var r=n("3a3m")},TILf:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("TToO"),o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Object(r.b)(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.value,n=t.subscriber;t.done?n.complete():(n.next(e),n.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(n("YaPU").a)},TToO:function(t,e,n){"use strict";e.b=function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},n.d(e,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1?new e(t,r):1===o?new i.a(t[0],r):new s.a(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.subscriber;n>=t.count?r.complete():(r.next(e[n]),r.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var i=0;i ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var s=e[i];o.push(i+":"+("string"==typeof s?JSON.stringify(s):O(s)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(H,"\n ")}function X(t,e){return new Error(q(t,e))}var G="ngDebugContext",Z="ngOriginalError",Q="ngErrorLogger";function K(t){return t[G]}function W(t){return t[Z]}function $(t){for(var e=[],n=1;n0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+O(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)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Kt(t,e){return Array.isArray(e)?e.reduce(Kt,t):Object(r.a)({},t,e)}var Wt=function(){function t(t,e,n,r,a,l){var u=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=qt(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new o.a(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),h=new o.a(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){At.assertNotInAngularZone(),S(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){At.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(c,s.a.call(h))}return t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof ft?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Et?null:this._injector.get(Ct),i=n.create(R.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(Vt,null);return s&&i.injector.get(Mt).registerApplication(i.location.nativeElement,s),this._loadComponent(i),qt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Ot(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;$t(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ut,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),$t(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Tt("ApplicationRef#tick()"),t}();function $t(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Jt=function(){},te=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),ee=function(){},ne=function(t){this.nativeElement=t},re=function(){function t(){this.dirty=!0,this._results=[],this.changes=new kt,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[x()]=function(){return this._results[x()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),oe=function(){},ie=function(){},se=function(){},ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e}(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e}(se)),le=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof ue?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),ue=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Object(r.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return ce(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return he(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(le);function ce(t,e,n){t.childNodes.forEach(function(t){t instanceof ue&&(e(t)&&n.push(t),ce(t,e,n))})}function he(t,e,n){t instanceof ue&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof ue&&he(t,e,n)})}var pe=new Map;function de(t){return pe.get(t)||null}function fe(t){pe.set(t.nativeNode,t)}function me(t,e){var n=ge(t),r=ge(e);return n&&r?function(t,e,n){for(var r=t[x()](),o=e[x()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(t,e,me):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||T(t,e)}var ye=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),_e=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function ge(t){return!!ve(t)&&(Array.isArray(t)||!(t instanceof Map)&&x()in t)}function ve(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var be=function(){function t(){}return t.prototype.supports=function(t){return ge(t)},t.prototype.create=function(t){return new Ee(t)},t}(),we=function(t,e){return e},Ee=function(){function t(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||we}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Kn(n,e),Ke.dirtyParentQueries(r),Zn(r),r}function Gn(t,e,n){var r=e?yn(e,e.def.lastRenderRootNode):t.renderElement;Sn(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Zn(t){Sn(t,3,null,null,void 0)}function Qn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Kn(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Wn=new Object;function $n(t,e,n,r,o,i){return new Jn(t,e,n,r,o,i)}var Jn=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=xn(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Ke.createRootView(t,e||[],n,o,r,Wn),a=Ge(s,i).instance;return n&&s.renderer.setAttribute(Xe(s,0).renderElement,"ng-version",f.full),new tr(s,new or(s),a)},e}(ft),tr=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ne(Xe(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new lr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function er(t,e,n){return new nr(t,e,n)}var nr=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new ne(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new lr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=mn(t),t=t.parent;return t?new lr(t,e):new lr(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Xn(this._data,t);Ke.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new or(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Et||(o=i.get(Ct));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=t;return o=s._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Qn(i,r,o),function(t,e){var n=fn(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Ke.dirtyParentQueries(o),Gn(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,a=this._embeddedViews.indexOf(t._view);return o=e,s=(i=(n=this._data).viewContainer._embeddedViews)[r=a],Kn(i,r),null==o&&(o=i.length),Qn(i,o,s),Ke.dirtyParentQueries(s),Zn(s),Gn(n,o>0?i[o-1]:null,s),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Xn(this._data,t);e&&Ke.destroyView(e)},t.prototype.detach=function(t){var e=Xn(this._data,t);return e?new or(e):null},t}();function rr(t){return new or(t)}var or=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Sn(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){hn(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Ke.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Ke.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ke.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Zn(this._view),Ke.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function ir(t,e){return new sr(t,e)}var sr=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.b)(e,t),e.prototype.createEmbeddedView=function(t){return new or(Ke.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ne(Xe(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(oe);function ar(t,e){return new lr(t,e)}var lr=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=R.THROW_IF_NOT_FOUND),Ke.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:nn(t)},e)},t}();function ur(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Xe(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return qe(t,n.nodeIndex).renderText;if(20240&n.flags)return Ge(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function cr(t){return new hr(t.renderer)}var hr=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Dn(e),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return Ar(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Dr(t,e,n,o[0]));case 2:return r(Dr(t,e,n,o[0]),Dr(t,e,n,o[1]));case 3:return r(Dr(t,e,n,o[0]),Dr(t,e,n,o[1]),Dr(t,e,n,o[2]));default:for(var s=Array(i),a=0;a0)u=m,Zr(m)||(c=m);else for(;u&&f===u.nodeIndex+u.childCount;){var g=u.parent;g&&(g.childFlags|=u.childFlags,g.childMatchedQueries|=u.childMatchedQueries),c=(u=g)&&Zr(u)?u.renderParent:u}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||tn,updateRenderer:r||tn,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:d}}function Zr(t){return 0!=(1&t.flags)&&null===t.element.name}function Qr(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Kr(t,e,n,r){var o=Jr(t.root,t.renderer,t,e,n);return to(o,t.component,r),eo(o),o}function Wr(t,e,n){var r=Jr(t,t.renderer,null,null,e);return to(r,n,n),eo(r),r}function $r(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Jr(t.root,o,t,e.element.componentProvider,n)}function Jr(t,e,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function to(t,e,n){t.component=e,t.context=n}function eo(t){var e;_n(t)&&(e=Xe(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Fn(t,e,0,n)&&(d=!0),p>1&&Fn(t,e,1,r)&&(d=!0),p>2&&Fn(t,e,2,o)&&(d=!0),p>3&&Fn(t,e,3,i)&&(d=!0),p>4&&Fn(t,e,4,s)&&(d=!0),p>5&&Fn(t,e,5,a)&&(d=!0),p>6&&Fn(t,e,6,l)&&(d=!0),p>7&&Fn(t,e,7,u)&&(d=!0),p>8&&Fn(t,e,8,c)&&(d=!0),p>9&&Fn(t,e,9,h)&&(d=!0),d}(t,e,n,r,o,i,s,a,l,u,c,h);case 2:return function(t,e,n,r,o,i,s,a,l,u,c,h){var p=!1,d=e.bindings,f=d.length;if(f>0&&un(t,e,0,n)&&(p=!0),f>1&&un(t,e,1,r)&&(p=!0),f>2&&un(t,e,2,o)&&(p=!0),f>3&&un(t,e,3,i)&&(p=!0),f>4&&un(t,e,4,s)&&(p=!0),f>5&&un(t,e,5,a)&&(p=!0),f>6&&un(t,e,6,l)&&(p=!0),f>7&&un(t,e,7,u)&&(p=!0),f>8&&un(t,e,8,c)&&(p=!0),f>9&&un(t,e,9,h)&&(p=!0),p){var m=e.text.prefix;f>0&&(m+=Xr(n,d[0])),f>1&&(m+=Xr(r,d[1])),f>2&&(m+=Xr(o,d[2])),f>3&&(m+=Xr(i,d[3])),f>4&&(m+=Xr(s,d[4])),f>5&&(m+=Xr(a,d[5])),f>6&&(m+=Xr(l,d[6])),f>7&&(m+=Xr(u,d[7])),f>8&&(m+=Xr(c,d[8])),f>9&&(m+=Xr(h,d[9]));var y=qe(t,e.nodeIndex).renderText;t.renderer.setValue(y,m)}return p}(t,e,n,r,o,i,s,a,l,u,c,h);case 16384:return function(t,e,n,r,o,i,s,a,l,u,c,h){var p=Ge(t,e.nodeIndex),d=p.instance,f=!1,m=void 0,y=e.bindings.length;return y>0&&ln(t,e,0,n)&&(f=!0,m=Rr(t,p,e,0,n,m)),y>1&&ln(t,e,1,r)&&(f=!0,m=Rr(t,p,e,1,r,m)),y>2&&ln(t,e,2,o)&&(f=!0,m=Rr(t,p,e,2,o,m)),y>3&&ln(t,e,3,i)&&(f=!0,m=Rr(t,p,e,3,i,m)),y>4&&ln(t,e,4,s)&&(f=!0,m=Rr(t,p,e,4,s,m)),y>5&&ln(t,e,5,a)&&(f=!0,m=Rr(t,p,e,5,a,m)),y>6&&ln(t,e,6,l)&&(f=!0,m=Rr(t,p,e,6,l,m)),y>7&&ln(t,e,7,u)&&(f=!0,m=Rr(t,p,e,7,u,m)),y>8&&ln(t,e,8,c)&&(f=!0,m=Rr(t,p,e,8,c,m)),y>9&&ln(t,e,9,h)&&(f=!0,m=Rr(t,p,e,9,h,m)),m&&d.ngOnChanges(m),65536&e.flags&&Ye(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),f}(t,e,n,r,o,i,s,a,l,u,c,h);case 32:case 64:case 128:return function(t,e,n,r,o,i,s,a,l,u,c,h){var p=e.bindings,d=!1,f=p.length;if(f>0&&un(t,e,0,n)&&(d=!0),f>1&&un(t,e,1,r)&&(d=!0),f>2&&un(t,e,2,o)&&(d=!0),f>3&&un(t,e,3,i)&&(d=!0),f>4&&un(t,e,4,s)&&(d=!0),f>5&&un(t,e,5,a)&&(d=!0),f>6&&un(t,e,6,l)&&(d=!0),f>7&&un(t,e,7,u)&&(d=!0),f>8&&un(t,e,8,c)&&(d=!0),f>9&&un(t,e,9,h)&&(d=!0),d){var m=Ze(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(p.length),f>0&&(y[0]=n),f>1&&(y[1]=r),f>2&&(y[2]=o),f>3&&(y[3]=i),f>4&&(y[4]=s),f>5&&(y[5]=a),f>6&&(y[6]=l),f>7&&(y[7]=u),f>8&&(y[8]=c),f>9&&(y[9]=h);break;case 64:y={},f>0&&(y[p[0].name]=n),f>1&&(y[p[1].name]=r),f>2&&(y[p[2].name]=o),f>3&&(y[p[3].name]=i),f>4&&(y[p[4].name]=s),f>5&&(y[p[5].name]=a),f>6&&(y[p[6].name]=l),f>7&&(y[p[7].name]=u),f>8&&(y[p[8].name]=c),f>9&&(y[p[9].name]=h);break;case 128:var _=n;switch(f){case 1:y=_.transform(n);break;case 2:y=_.transform(r);break;case 3:y=_.transform(r,o);break;case 4:y=_.transform(r,o,i);break;case 5:y=_.transform(r,o,i,s);break;case 6:y=_.transform(r,o,i,s,a);break;case 7:y=_.transform(r,o,i,s,a,l);break;case 8:y=_.transform(r,o,i,s,a,l,u);break;case 9:y=_.transform(r,o,i,s,a,l,u,c);break;case 10:y=_.transform(r,o,i,s,a,l,u,c,h)}}m.value=y}return d}(t,e,n,r,o,i,s,a,l,u,c,h);default:throw"unreachable"}}(t,e,r,o,i,s,a,l,u,c,h,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&cn(t,e,0,n),p>1&&cn(t,e,1,r),p>2&&cn(t,e,2,o),p>3&&cn(t,e,3,i),p>4&&cn(t,e,4,s),p>5&&cn(t,e,5,a),p>6&&cn(t,e,6,l),p>7&&cn(t,e,7,u),p>8&&cn(t,e,8,c),p>9&&cn(t,e,9,h)}(t,e,r,o,i,s,a,l,u,c,h,p):function(t,e,n){for(var r=0;r0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,n),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),L=function(){function t(){}return t.prototype.encodeKey=function(t){return B(t)},t.prototype.encodeValue=function(t){return B(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function B(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,"/")}var H=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new L,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],i=o[0],s=o[1],a=r.get(i)||[];a.push(s),r.set(i,a)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function z(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function U(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Y(t){return"undefined"!=typeof FormData&&t instanceof FormData}var q=function(){function t(t,e,n,r){var o;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)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new F),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s=200&&this.status<300}}(),Z=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=X.ResponseHeader,n}return Object(c.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({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})},e}(G),Q=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=X.Response,n.body=void 0!==e.body?e.body:null,n}return Object(c.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({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})},e}(G),K=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(c.b)(e,t),e}(G);function W(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var $=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof q)r=t;else{var i;i=n.headers instanceof F?n.headers:new F(n.headers);var s=void 0;n.params&&(s=n.params instanceof H?n.params:new H({fromObject:n.params})),r=new q(t,e,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var a=(function(t,e){return function(t,e){return Object(u.a)(t,e,1)}(t,e)(this)}).call(l(r),function(t){return o.handler.handle(t)});if(t instanceof q||"events"===n.observe)return a;var c=(function(t,e){return p(t,e)(this)}).call(a,function(t){return t instanceof Q});switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return _.call(c,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return _.call(c,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return _.call(c,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return _.call(c,function(t){return t.body})}case"response":return c;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new H).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,W(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,W(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,W(n,e))},t}(),J=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),tt=new o.n("HTTP_INTERCEPTORS"),et=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),nt=/^\)\]\}',?\n/,rt=function(){},ot=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),it=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new j.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var s=t.serializeBody(),a=null,l=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new F(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return a=new Z({headers:o,status:e,statusText:n,url:i})},u=function(){var e=l(),o=e.headers,i=e.status,s=e.statusText,a=e.url,u=null;204!==i&&(u="undefined"==typeof r.response?r.responseText:r.response),0===i&&(i=u?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(nt,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=h,c&&(c=!1,u={error:t,text:u})}}c?(n.next(new Q({body:u,headers:o,status:i,statusText:s,url:a||void 0})),n.complete()):n.error(new K({error:u,headers:o,status:i,statusText:s,url:a||void 0}))},c=function(t){var e=new K({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},h=!1,p=function(e){h||(n.next(l()),h=!0);var o={type:X.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},d=function(t){var e={type:X.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",p),null!==s&&r.upload&&r.upload.addEventListener("progress",d)),r.send(s),n.next({type:X.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",p),null!==s&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},t}(),st=new o.n("XSRF_COOKIE_NAME"),at=new o.n("XSRF_HEADER_NAME"),lt=function(){},ut=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=O(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),ct=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),ht=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(tt,[]);this.chain=e.reduceRight(function(t,e){return new J(t,e)},this.backend)}return this.chain.handle(t)},t}(),pt=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:ct,useClass:et}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:st,useValue:e.cookieName}:[],e.headerName?{provide:at,useValue:e.headerName}:[]]}},t}(),dt=function(){};j.a.prototype.map=_;var ft=function(){function t(t){this.http=t}return t.prototype.setSecurityHeaders=function(e){t.securityHeaders=e},t.prototype.getTorrentData=function(){return this.http.get("http://"+location.hostname+":8880/ktorrentdata")},t.prototype.getTorrents=function(){return this.getTorrentData().map(function(t){return t.torrents.map(function(t){return s.fromJson(t)})})},t.prototype.startTorrent=function(e){this.http.post("http://"+location.host+"/ktorrentaction",{type:"start",hash:e},{headers:t.securityHeaders}).subscribe()},t.prototype.stopTorrent=function(e){this.http.post("http://"+location.host+"/ktorrentaction",{type:"stop",hash:e},{headers:t.securityHeaders}).subscribe()},t.prototype.removeTorrent=function(e){this.http.post("http://"+location.host+"/ktorrentaction",{type:"remove",hash:e},{headers:t.securityHeaders}).subscribe()},t.prototype.startFromMagnetLink=function(e){this.http.post("http://"+location.host+"/ktorrentaction",{type:"magnet",magnet:e},{headers:t.securityHeaders}).subscribe()},t}(),mt=new o.n("cdk-dir-doc"),yt=function(){return function(t){this.value="ltr",this.change=new o.l,t&&(this.value=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr")}}(),_t=function(){};function gt(t){return null!=t&&""+t!="false"}var vt=n("g5jc"),bt=null;function wt(){return bt}var Et,Ct={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},xt={"\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"},St={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"};o.Z.Node&&(Et=o.Z.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Tt,Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,bt||(bt=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Ct},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Et.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[s]=[]);var u=ue(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:u,handler:i});else{for(var c=!1,h=0;h-1},e}(zt),ye=["alt","control","meta","shift"],_e={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},ge=function(t){function e(e){return t.call(this,e)||this}return Object(c.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return wt().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(ye.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=wt().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ye.forEach(function(r){r!=n&&(0,_e[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(zt),ve=function(){function t(t,e){this.defaultDoc=t,this.DOM=e;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}this.DOM.setInnerHTML(this.inertBodyElement,' '),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,' '),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="
"+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=" "+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.DOM.createElement("template");return"content"in e?(this.DOM.setInnerHTML(e,t),e):(this.DOM.setInnerHTML(this.inertBodyElement,t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){var e=this;this.DOM.attributeMap(t).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.DOM.removeAttribute(t,r)});for(var n=0,r=this.DOM.childNodesAsList(t);n")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=this.DOM.nodeName(t).toLowerCase();Pe.hasOwnProperty(e)&&!Te.hasOwnProperty(e)&&(this.buf.push(""),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Me(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&this.DOM.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(t));return e},t}(),je=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ve=/([^\#-~ |!])/g;function Me(t){return t.replace(/&/g,"&").replace(je,function(t){return""+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ve,function(t){return""+t.charCodeAt(0)+";"}).replace(//g,">")}var Fe=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Le=/^url\(([^)]+)\)$/,Be=function(){},He=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(c.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case o.C.NONE:return e;case o.C.HTML:return e instanceof Ue?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=wt(),r=null;try{Se=Se||new ve(t,n);var i=e?String(e):"";r=Se.getInertBodyElement(i);var s=5,a=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=a,a=n.getInnerHTML(r),r=Se.getInertBodyElement(i)}while(i!==a);var l=new Ne,u=l.sanitizeChildren(n.getTemplateContent(r)||r);return Object(o.O)()&&l.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(r)for(var c=n.getTemplateContent(r)||r,h=0,p=n.childNodesAsList(c);h=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var 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")||In(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t}();function In(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Rn(t){if(!In(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Nn=function(){function t(t,e,n,r,o){void 0===o&&(o=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._enabled=!0,o||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;this._startAnchor||(this._startAnchor=this._createAnchor()),this._endAnchor||(this._endAnchor=this._createAnchor()),this._ngZone.runOutsideAngular(function(){t._startAnchor.addEventListener("focus",function(){t.focusLastTabbableElement()}),t._endAnchor.addEventListener("focus",function(){t.focusFirstTabbableElement()}),t._element.parentNode&&(t._element.parentNode.insertBefore(t._startAnchor,t._element),t._element.parentNode.insertBefore(t._endAnchor,t._element.nextSibling))})},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(xn(1)).subscribe(t)},t}(),jn=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new Nn(t,this._checker,this._ngZone,this._document,e)},t}();function Vn(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var Mn=0,Fn=new Map,Ln=null,Bn=function(){function t(t){this._document=t}return t.prototype.describe=function(t,e){this._canBeDescribed(t,e)&&(Fn.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))},t.prototype.removeDescription=function(t,e){if(this._canBeDescribed(t,e)){this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e);var n=Fn.get(e);n&&0===n.referenceCount&&this._deleteMessageElement(e),Ln&&0===Ln.childNodes.length&&this._deleteMessagesContainer()}},t.prototype.ngOnDestroy=function(){for(var t=this._document.querySelectorAll("[cdk-describedby-host]"),e=0;e=0?this.period=Number(n)<1?1:Number(n):Object(or.a)(n)&&(r=n),Object(or.a)(r)||(r=Pn),this.scheduler=r,this.dueTime=(i=e)instanceof Date&&!isNaN(+i)?+e-this.scheduler.now():e}return Object(c.b)(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.dueTime,{index:0,period:this.period,subscriber:t})},e}(j.a).create;function sr(t,e){return void 0===e&&(e=Pn),n=function(){return ir(t,e)},function(t){return t.lift(new er(n))};var n}var ar=n("/nXB"),lr=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new vt.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?j.a.create(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(sr(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):l()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)})},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(p(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,o){e._scrollableContainsElement(o,t)&&n.push(o)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return $n(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t}();function ur(t,e,n){return t||new lr(e,n)}var cr=function(){function t(t,e){var n=this;this._platform=t,this._change=t.isBrowser?e.runOutsideAngular(function(){return Object(ar.a)($n(window,"resize"),$n(window,"orientationchange"))}):l(),this._invalidateCache=this.change().subscribe(function(){return n._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(sr(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t}();function hr(t,e,n){return t||new cr(e,n)}var pr=function(){};function dr(){throw Error("Host already has a portal attached")}var fr=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&dr(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),mr=function(t){function e(e,n,r){var o=t.call(this)||this;return o.component=e,o.viewContainerRef=n,o.injector=r,o}return Object(c.b)(e,t),e}(fr),yr=function(t){function e(e,n,r){var o=t.call(this)||this;return o.templateRef=e,o.viewContainerRef=n,o.context=r,o}return Object(c.b)(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return void 0===n&&(n=this.context),this.context=n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},e}(fr),_r=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&dr(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof mr?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof yr?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),gr=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.outletElement=e,i._componentFactoryResolver=n,i._appRef=r,i._defaultInjector=o,i}return Object(c.b)(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,r=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.detectChanges(),r.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(r);-1!==t&&n.remove(t)}),r},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(_r),vr=function(t){function e(e,n){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._isInitialized=!1,r.attached=new o.l,r}return Object(c.b)(e,t),Object.defineProperty(e.prototype,"_deprecatedPortal",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_deprecatedPortalHost",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"portal",{get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._attachedPortal=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isInitialized=!0},e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(e.component),o=n.createComponent(r,n.length,e.injector||n.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return o.destroy()}),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o},e.prototype.attachTemplatePortal=function(e){var n=this;e.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r},e}(_r),br=function(){},wr=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return"undefined"!=typeof n?n:this._parentInjector.get(t,e)},t}(),Er=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),Cr=function(){return function(t){var e=this;this.scrollStrategy=new Er,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.direction="ltr",t&&Object.keys(t).filter(function(e){return"undefined"!=typeof t[e]}).forEach(function(n){return e[n]=t[n]})}}();function xr(){return Error("Scroll strategy has already been attached.")}var Sr=function(){function t(t,e,n,r){var o=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw xr();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),Tr=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=-this._previousScrollPosition.left+"px",t.style.top=-this._previousScrollPosition.top+"px",t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=this._document.body,n=t.style.scrollBehavior||"",r=e.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Or(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function kr(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var Ar=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw xr();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,o=n.height;Or(e,[{width:r,height:o,bottom:o,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),Pr=function(){return function(t,e,n,r){var o=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Er},this.close=function(t){return new Sr(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new Tr(o._viewportRuler,o._document)},this.reposition=function(t){return new Ar(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r}}(),Dr=function(){function t(t,e,n,r,o,i){this._portalOutlet=t,this._pane=e,this._config=n,this._ngZone=r,this._keyboardDispatcher=o,this._document=i,this._backdropElement=null,this._backdropClick=new vt.a,this._attachments=new vt.a,this._detachments=new vt.a,this._keydownEvents=new vt.a,n.scrollStrategy&&n.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(xn(1)).subscribe(function(){e.hasAttached()&&e.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&(Array.isArray(this._config.panelClass)?this._config.panelClass.forEach(function(t){return e._pane.classList.add(t)}):this._pane.classList.add(this._config.panelClass)),this._attachments.next(),this._keyboardDispatcher.add(this),n},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=Object(c.a)({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=Object(c.a)({},this._config,{direction:t}),this._updateElementDirection()},t.prototype._updateElementDirection=function(){this._pane.setAttribute("dir",this._config.direction)},t.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=Ir(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=Ir(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=Ir(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=Ir(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=Ir(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=Ir(this._config.maxHeight))},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._backdropElement.classList.add(this._config.backdropClass),this._pane.parentElement.insertBefore(this._backdropElement,this._pane),this._backdropElement.addEventListener("click",function(e){return t._backdropClick.next(e)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._pane.nextSibling&&this._pane.parentNode.appendChild(this._pane)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&e.classList.remove(this._config.backdropClass),e.addEventListener("transitionend",n),e.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){setTimeout(n,500)})}},t}();function Ir(t){return"string"==typeof t?t:t+"px"}var Rr=function(){function t(t,e,n,r,o){this._connectedTo=n,this._viewportRuler=r,this._document=o,this._dir="ltr",this._offsetX=0,this._offsetY=0,this.scrollables=[],this._resizeSubscription=On.a.EMPTY,this._preferredPositions=[],this._applied=!1,this._positionLocked=!1,this._onPositionChange=new vt.a,this._origin=this._connectedTo.nativeElement,this.withFallbackPosition(t,e)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._dir},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._onPositionChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this;this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return e.apply()})},t.prototype.dispose=function(){this._applied=!1,this._resizeSubscription.unsubscribe(),this._onPositionChange.complete()},t.prototype.detach=function(){this._applied=!1,this._resizeSubscription.unsubscribe()},t.prototype.apply=function(){if(this._applied&&this._positionLocked&&this._lastConnectedPosition)this.recalculateLastPosition();else{this._applied=!0;for(var t,e,n=this._pane,r=this._origin.getBoundingClientRect(),o=n.getBoundingClientRect(),i=this._viewportRuler.getViewportSize(),s=0,a=this._preferredPositions;s-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._unsubscribeFromKeydownEvents()},t.prototype._subscribeToKeydownEvents=function(){var t=this,e=$n(this._document.body,"keydown",!0);this._keydownEventSubscription=e.pipe(p(function(){return!!t._attachedOverlays.length})).subscribe(function(e){t._selectOverlayFromEvent(e)._keydownEvents.next(e)})},t.prototype._unsubscribeFromKeydownEvents=function(){this._keydownEventSubscription&&(this._keydownEventSubscription.unsubscribe(),this._keydownEventSubscription=null)},t.prototype._selectOverlayFromEvent=function(t){return this._attachedOverlays.find(function(e){return e.overlayElement===t.target||e.overlayElement.contains(t.target)})||this._attachedOverlays[this._attachedOverlays.length-1]},t}();function Mr(t,e){return t||new Vr(e)}var Fr=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t}();function Lr(t,e){return t||new Fr(e)}var Br=0,Hr=function(){function t(t,e,n,r,o,i,s,a,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=o,this._appRef=i,this._injector=s,this._ngZone=a,this._document=l}return t.prototype.create=function(t){var e=this._createPaneElement(),n=this._createPortalOutlet(e);return new Dr(n,e,new Cr(t),this._ngZone,this._keyboardDispatcher,this._document)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(){var t=this._document.createElement("div");return t.id="cdk-overlay-"+Br++,t.classList.add("cdk-overlay-pane"),this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return new gr(t,this._componentFactoryResolver,this._appRef,this._injector)},t}(),zr=new o.n("cdk-connected-overlay-scroll-strategy");function Ur(t){return function(){return t.scrollStrategies.reposition()}}var Yr=function(){},qr=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return j.a.of(this.value);case"E":return j.a.throw(this.error);case"C":return j.a.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Xr=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return Object(c.b)(e,t),e.create=function(){for(var t=[],n=0;nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return eo(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return no.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(eo(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(eo(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(oo);return 0==e.length?null:function(t){return so(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(oo);return 0==e.length?null:function(t){var n=function(t,n){return e.map(function(e){return e(t)})}(t).map(io);return _.call(Zr(n),so)}},t}();function oo(t){return null!=t}function io(t){var e=Object(o._3)(t)?$r(t):t;if(!Object(o._2)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function so(t){var e=t.reduce(function(t,e){return null!=e?Object(c.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}var ao=new o.n("NgValueAccessor"),lo=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),uo=new o.n("CompositionEventMode"),co=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=wt()?wt().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function ho(t){return t.validate?function(e){return t.validate(e)}:t}function po(t){return t.validate?function(e){return t.validate(e)}:t}var fo=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function mo(){throw new Error("unimplemented")}var yo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(c.b)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return mo()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return mo()},enumerable:!0,configurable:!0}),e}(Jr),_o=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),go=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(yo),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}();function vo(t,e){return e.path.concat([t])}function bo(t,e){t||xo(e,"Cannot find control with"),e.valueAccessor||xo(e,"No value accessor for form control with"),t.validator=ro.compose([t.validator,e.validator]),t.asyncValidator=ro.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&wo(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&wo(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function wo(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),t._pendingChange=!1}function Eo(t,e){null==t&&xo(e,"Cannot find control with"),t.validator=ro.compose([t.validator,e.validator]),t.asyncValidator=ro.composeAsync([t.asyncValidator,e.asyncValidator])}function Co(t){return xo(t,"There is no FormControl instance attached to form control element with")}function xo(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function So(t){return null!=t?ro.compose(t.map(ho)):null}function To(t){return null!=t?ro.composeAsync(t.map(po)):null}var Oo=[lo,function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),fo,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=o._4}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var 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)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i-1&&t.splice(n,1)}var Po=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return vo(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return So(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return To(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(to),Do=function(t){function e(e){return t.call(this,e)||this}return Object(c.b)(e,t),e}(function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}());function Io(t){var e=No(t)?t.validators:t;return Array.isArray(e)?So(e):e||null}function Ro(t,e){var n=No(e)?e.asyncValidators:t;return Array.isArray(n)?To(n):n||null}function No(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var jo=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=Io(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=Ro(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(c.a)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(c.a)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=io(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof Mo?t.controls[e]||null:t instanceof Fo&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new o.l,this.statusChanges=new o.l},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){No(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),Vo=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,Io(n),Ro(r,n))||this;return o._onChange=[],o._applyFormState(e),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(c.b)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(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},e}(jo),Mo=function(t){function e(e,n,r){var o=t.call(this,Io(n),Ro(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(c.b)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof Vo?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(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+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(jo),Fo=function(t){function e(e,n,r){var o=t.call(this,Io(n),Ro(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(c.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Vo?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(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)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(jo),Lo=Promise.resolve(null),Bo=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new o.l,r.form=new Mo({},So(e),To(n)),r}return Object(c.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Lo.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),bo(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Lo.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Ao(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;Lo.then(function(){var n=e._findContainer(t.path),r=new Mo({});Eo(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Lo.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Lo.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,ko(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(to),Ho='\n \n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',zo='\n \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Uo='\n ',Yo=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Ho+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n \n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+zo+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Uo)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+zo+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Uo)},t}(),qo=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return Object(c.b)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Bo||Yo.modelGroupParentException()},e}(Po),Xo=Promise.resolve(null),Go=function(t){function e(e,n,r,i){var s=t.call(this)||this;return s.control=new Vo,s._registered=!1,s.update=new o.l,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=function(t,e){if(!e)return null;var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===co?n=e:(i=e,Oo.some(function(t){return i.constructor===t})?(r&&xo(t,"More than one built-in value accessor matches form control with"),r=e):(o&&xo(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(xo(t,"No valid value accessor for form control with"),null)}(s,i),s}return Object(c.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(o._4)(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?vo(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return So(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return To(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){bo(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof qo)&&this._parent instanceof Po?Yo.formGroupNameException():this._parent instanceof qo||this._parent instanceof Bo||Yo.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Yo.missingNameException()},e.prototype._updateValue=function(t){var e=this;Xo.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Xo.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(yo),Zo=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Ho)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+zo+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Uo)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Ho)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+zo)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n \n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),Qo=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new o.l,r}return Object(c.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return bo(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){Ao(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);Eo(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);Eo(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,ko(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return Co(e)}),e.valueAccessor.registerOnTouched(function(){return Co(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&bo(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=So(this._validators);this.form.validator=ro.compose([this.form.validator,t]);var e=To(this._asyncValidators);this.form.asyncValidator=ro.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Zo.missingFormException()},e}(to),Ko=function(){},Wo=function(){},$o=n("TILf"),Jo=n("N4j0"),ti=n("cQXm"),ei=n("etqZ"),ni=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=ii(e)}return Object(c.b)(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.iterator,r=t.subscriber;if(t.hasError)r.error(t.error);else{var o=n.next();o.done?r.complete():(r.next(o.value),t.index=e+1,r.closed?"function"==typeof n.return&&n.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{index:0,iterator:n,subscriber:t});for(;;){var o=n.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof n.return&&n.return();break}}},e}(j.a),ri=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[ei.a]=function(){return this},t.prototype.next=function(){return this.idxsi?si:o:o}()),this.arr=t,this.idx=e,this.len=n}return t.prototype[ei.a]=function(){return this},t.prototype.next=function(){return this.idx=t.length?r.complete():(r.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.arrayLike,r=this.scheduler,o=n.length;if(r)return r.schedule(e.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:t});for(var i=0;i1?new a.a(t,n):new Cn.a(n),e)}}var fi=function(){},mi="*";function yi(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function _i(t){return{type:6,styles:t,offset:null}}function gi(t){Promise.resolve(null).then(t)}var vi=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;gi(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),bi=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,o=0,i=this.players.length;0==i?gi(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==i&&e._onFinish()}),t.onDestroy(function(){++r==i&&e._onDestroy()}),t.onStart(function(){++o==i&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),wi="!",Ei=function(){};function Ci(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var xi=0,Si=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o._elementRef=e,o._changeDetectorRef=n,o._showAlwaysAnimate=!1,o._subscriptAnimationState="",o._hintLabel="",o._hintLabelId="mat-hint-"+xi++,o._labelOptions=r||{},o.floatLabel=o._labelOptions.float||"auto",o}return Object(c.b)(e,t),Object.defineProperty(e.prototype,"dividerColor",{get:function(){return this.color},set:function(t){this.color=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=gt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this._floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatPlaceholder",{get:function(){return this._floatLabel},set:function(t){this.floatLabel=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild(),this._control.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+this._control.controlType),this._control.stateChanges.pipe(di(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()});var e=this._control.ngControl;e&&e.valueChanges&&e.valueChanges.subscribe(function(){t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(di(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(di(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})},e.prototype.ngAfterContentChecked=function(){this._validateControlChild()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!(!this._control.placeholder&&!this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._control.shouldPlaceholderFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return!this._hasLabel()||!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._showAlwaysAnimate=!0,this._floatLabel="always",$n(this._label.nativeElement,"transitionend").pipe(xn(1)).subscribe(function(){t._showAlwaysAnimate=!1}),this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"===r.align){if(t||n.hintLabel)throw Ci("start");t=r}else if("end"===r.align){if(e)throw Ci("end");e=r}})},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e}(hn(function(t){this._elementRef=t},"primary")),Ti=function(){},Oi=function(t){function e(e){t.call(this),this.observableFactory=e}return Object(c.b)(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new ki(t,this.observableFactory)},e}(j.a),ki=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return Object(c.b)(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(Object(tr.a)(this,t))},e}(Jn.a),Ai=Oi.create,Pi="accent",Di="primary",Ii=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Ri=function(t){function e(e,n,r){var o=t.call(this,e)||this;o._platform=n,o._focusMonitor=r,o._isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o._isIconButton=o._hasHostAttributes("mat-icon-button");for(var i=0,s=Ii;i-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t}(),qi=0,Xi=function(){function t(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.ariaLabel="Close dialog"}return t.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Ki(this._elementRef,this._dialog.openDialogs))},t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t}(),Gi=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+qi++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=Ki(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})},t}(),Zi=function(){},Qi=function(){};function Ki(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var Wi=function(){},$i=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Ji(t,this.notifier))},t}(),Ji=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(Object(tr.a)(this,n))}return Object(c.b)(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.complete()},e.prototype.notifyComplete=function(){},e}(Jn.a),ts=["button","checkbox","file","hidden","image","radio","range","reset","submit"],es=0,ns=function(t){function e(e,n,r,o,i,s,a){var l=t.call(this,s,o,i,r)||this;return l._elementRef=e,l._platform=n,l.ngControl=r,l._uid="mat-input-"+es++,l._isServer=!1,l.focused=!1,l.stateChanges=new vt.a,l.controlType="mat-input",l._disabled=!1,l.placeholder="",l._required=!1,l._type="text",l._readonly=!1,l._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return on().has(t)}),l._inputValueAccessor=a||l._elementRef.nativeElement,l._previousNativeValue=l.value,l.id=l.id,n.IOS&&e.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}),l._isServer=!l._platform.isBrowser,l}return Object(c.b)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=gt(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=gt(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&on().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=gt(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._focusChanged=function(t){t===this.focused||this.readonly||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(ts.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){var t=this._elementRef.nativeElement,e=this._platform.isBrowser?t.nodeName:t.name;return!!e&&"textarea"===e.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus()},e}(function(t){return function(t){function e(){for(var e=[],n=0;n0&&!this._renderChangeSubscription&&this._observeRenderChanges()},t.prototype.ngOnDestroy=function(){this._rowPlaceholder.viewContainer.clear(),this._headerRowPlaceholder.viewContainer.clear(),this._onDestroy.next(),this._onDestroy.complete(),this.dataSource instanceof ji&&this.dataSource.disconnect(this)},t.prototype.renderRows=function(){var t=this,e=this._dataDiffer.diff(this._data);if(e){var n=this._rowPlaceholder.viewContainer;e.forEachOperation(function(e,r,o){if(null==e.previousIndex)t._insertRow(e.item,o);else if(null==o)n.remove(r);else{var i=n.get(r);n.move(i,o)}}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){n.get(t.currentIndex).context.$implicit=t.item})}},t.prototype.setHeaderRowDef=function(t){this._headerRowDef=t,this._headerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype._cacheColumnDefs=function(){var t=this;this._columnDefsByName.clear();var e=this._contentColumnDefs?this._contentColumnDefs.toArray():[];this._customColumnDefs.forEach(function(t){return e.push(t)}),e.forEach(function(e){if(t._columnDefsByName.has(e.name))throw Error('Duplicate column definition name provided: "'+e.name+'".');t._columnDefsByName.set(e.name,e)})},t.prototype._cacheRowDefs=function(){var t=this;this._rowDefs=this._contentRowDefs?this._contentRowDefs.toArray():[],this._customRowDefs.forEach(function(e){return t._rowDefs.push(e)});var e=this._rowDefs.filter(function(t){return!t.when});if(e.length>1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=e[0]},t.prototype._renderUpdatedColumns=function(){var t=this;this._rowDefs.forEach(function(e){e.getColumnsDiff()&&(t._dataDiffer.diff([]),t._rowPlaceholder.viewContainer.clear(),t.renderRows())}),this._headerRowDef&&this._headerRowDef.getColumnsDiff()&&this._renderHeaderRow()},t.prototype._switchDataSource=function(t){this._data=[],this.dataSource instanceof ji&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowPlaceholder.viewContainer.clear()),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t,e=this;if(this.dataSource){var n;if(this.dataSource.connect instanceof Function?n=this.dataSource.connect(this):this.dataSource instanceof j.a?n=this.dataSource:Array.isArray(this.dataSource)&&(n=l(this.dataSource)),void 0===n)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=n.pipe((t=this._onDestroy,function(e){return e.lift(new $i(t))})).subscribe(function(t){e._data=t,e.renderRows()})}},t.prototype._renderHeaderRow=function(){this._headerRowPlaceholder.viewContainer.length>0&&this._headerRowPlaceholder.viewContainer.clear();var t=this._getHeaderCellTemplatesForRow(this._headerRowDef);t.length&&(this._headerRowPlaceholder.viewContainer.createEmbeddedView(this._headerRowDef.template,{cells:t}),t.forEach(function(t){ds.mostRecentCellOutlet&&ds.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,{})}),this._changeDetectorRef.markForCheck())},t.prototype._getRowDef=function(t,e){if(1==this._rowDefs.length)return this._rowDefs[0];var n=this._rowDefs.find(function(n){return n.when&&n.when(e,t)})||this._defaultRowDef;if(!n)throw Error("Could not find a matching row definition for the provided row data.");return n},t.prototype._insertRow=function(t,e){var n=this._getRowDef(t,e),r={$implicit:t};this._rowPlaceholder.viewContainer.createEmbeddedView(n.template,r,e),this._getCellTemplatesForRow(n).forEach(function(t){ds.mostRecentCellOutlet&&ds.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,r)}),this._changeDetectorRef.markForCheck()},t.prototype._updateRowIndexContext=function(){for(var t=this._rowPlaceholder.viewContainer,e=0,n=t.length;e=r.length&&(o=0),r[o]},e.prototype.ngOnChanges=function(){this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e}(cn(function(){})),Cs=function(){return function(){this.changes=new vt.a,this.sortButtonLabel=function(t){return"Change sorting for "+t},this.sortDescriptionLabel=function(t,e){return"Sorted by "+t+" "+("asc"==e?"ascending":"descending")}}}();function xs(t){return t||new Cs}var Ss=function(t){function e(e,n,r,o){var i=t.call(this)||this;if(i._intl=e,i._sort=r,i._cdkColumnDef=o,i._showIndicatorHint=!1,i._arrowDirection="",i._disableViewStateAnimation=!1,i.arrowPosition="after",!r)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return i._rerenderSubscription=Object(ar.a)(r.sortChange,r._stateChanges,e.changes).subscribe(function(){i._isSorted()&&i._updateArrowDirection(),!i._isSorted()&&i._viewState&&"active"===i._viewState.toState&&(i._disableViewStateAnimation=!1,i._setAnimationTransitionState({fromState:"active",toState:i._arrowDirection})),n.markForCheck()}),i}return Object(c.b)(e,t),Object.defineProperty(e.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=gt(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){!this.id&&this._cdkColumnDef&&(this.id=this._cdkColumnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)},e.prototype.ngOnDestroy=function(){this._sort.deregister(this),this._rerenderSubscription.unsubscribe()},e.prototype._setIndicatorHintVisible=function(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})))},e.prototype._setAnimationTransitionState=function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})},e.prototype._handleClick=function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}},e.prototype._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)},e.prototype._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection},e.prototype._getArrowViewState=function(){var t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState},e.prototype._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start},e.prototype._isDisabled=function(){return this._sort.disabled||this.disabled},e}(cn(function(){})),Ts=function(){},Os=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e}(bs),ks=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e}(fs),As=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e}(ms),Ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e}(ys),Ds=function(t){function e(e,n){var r=t.call(this,e,n)||this;return n.nativeElement.classList.add("mat-column-"+e.cssClassFriendlyName),r}return Object(c.b)(e,t),e}(function(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}),Is=function(t){function e(e,n){var r=t.call(this,e,n)||this;return n.nativeElement.classList.add("mat-column-"+e.cssClassFriendlyName),r}return Object(c.b)(e,t),e}(function(t,e){e.nativeElement.classList.add("cdk-column-"+t.cssClassFriendlyName)}),Rs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e}(hs),Ns=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e}(ps),js=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e}(function(){}),Vs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e}(function(){}),Ms=function(){},Fs=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o._platform=n,o._document=r,o}return Object(c.b)(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Object(o.O)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&[].slice.call(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)}).some(function(t){return t.textContent.trim()})&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e}(hn(function(t){this._elementRef=t})),Ls=function(){},Bs=function(){function t(t,e){this.dialog=t,this.torrentsService=e,this.title="app"}return t.prototype.openMagnet=function(){var t=this;this.dialog.open(Hs,{height:"220px",width:"450px"}).afterClosed().subscribe(function(e){e&&t.torrentsService.startFromMagnetLink(e)})},t}(),Hs=function(){function t(t){this.renderer=t}return t.prototype.submit=function(t){13===t.keyCode&&document.getElementById("start").click()},t}(),zs=o.W({encapsulation:2,styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%}@media screen and (-ms-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:12px 0;display:flex;flex-wrap:wrap;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+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"slideDialog",definitions:[{type:0,name:"enter",styles:{type:6,styles:{transform:"none",opacity:1},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0},offset:null},options:void 0},{type:0,name:"exit",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0)",opacity:0},offset:null},options:void 0},{type:1,expr:"* => *",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function Us(t){return o._16(0,[(t()(),o.T(0,null,null,0))],null,null)}function Ys(t){return o._16(0,[o._13(402653184,1,{_portalOutlet:0}),(t()(),o.T(16777216,null,null,1,null,Us)),o.X(2,212992,[[1,4]],0,vr,[o.h,o.H],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}var qs=o.U("mat-dialog-container",Mi,function(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"mat-dialog-container",[["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@slideDialog",0]],[["component","@slideDialog.start"],["component","@slideDialog.done"]],function(t,e,n){var r=!0;return"component:@slideDialog.start"===e&&(r=!1!==o._9(t,1)._onAnimationStart(n)&&r),"component:@slideDialog.done"===e&&(r=!1!==o._9(t,1)._onAnimationDone(n)&&r),r},Ys,zs)),o.X(1,49152,null,0,Mi,[o.i,jn,o.f,[2,N]],null,null)],null,function(t,e){t(e,0,0,o._9(e,1)._id,null==o._9(e,1)._config?null:o._9(e,1)._config.role,null!=o._9(e,1)._config&&o._9(e,1)._config.ariaLabel?null:o._9(e,1)._ariaLabelledBy,null==o._9(e,1)._config?null:o._9(e,1)._config.ariaLabel,(null==o._9(e,1)._config?null:o._9(e,1)._config.ariaDescribedBy)||null,o._9(e,1)._state)})},{},{},[]),Xs=o.W({encapsulation:2,styles:[".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%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function Gs(t){return o._16(2,[o._8(null,0),o._8(null,1)],null,null)}var Zs=o.W({encapsulation:2,styles:[".mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-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:0;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:88px;line-height:36px;padding:0 16px;border-radius:2px}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-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,.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{opacity:1}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:1}.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:0;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:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-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:1}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button[disabled]{box-shadow:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-flat-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.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:0;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:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-fab::-moz-focus-inner{border:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-fab[disabled]{box-shadow:none}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.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:0;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:88px;line-height:36px;padding:0 16px;border-radius:2px;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-mini-fab[disabled]{box-shadow:none}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.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 .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function Qs(t){return o._16(2,[o._13(402653184,1,{ripple:0}),(t()(),o.Y(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),o._8(null,0),(t()(),o.Y(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),o.X(4,212992,[[1,4]],0,vn,[o.i,o.u,en,[2,gn]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),o.Y(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n._isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n._isRoundButton||n._isIconButton,o._9(e,4).unbounded)})}var Ks=o.W({encapsulation:2,styles:[".mat-sort-header-container{display:flex;cursor:pointer}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;margin:0 0 0 6px;position:relative;display:flex}.mat-sort-header-position-before .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}.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)}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],data:{animation:[{type:7,name:"indicator",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"translateY(0px)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"translateY(10px)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"leftPointer",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"rotate(-45deg)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"rotate(45deg)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"rightPointer",definitions:[{type:0,name:"active-asc, asc",styles:{type:6,styles:{transform:"rotate(45deg)"},offset:null},options:void 0},{type:0,name:"active-desc, desc",styles:{type:6,styles:{transform:"rotate(-45deg)"},offset:null},options:void 0},{type:1,expr:"active-asc <=> active-desc",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"arrowOpacity",definitions:[{type:0,name:"desc-to-active, asc-to-active, active",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:0,name:"desc-to-hint, asc-to-hint, hint",styles:{type:6,styles:{opacity:.54},offset:null},options:void 0},{type:0,name:"hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc",styles:{type:6,styles:{opacity:0},offset:null},options:void 0},{type:1,expr:"* => asc, * => desc, * => active, * => hint",animation:{type:4,styles:null,timings:"0ms"},options:null},{type:1,expr:"* <=> *",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"arrowPosition",definitions:[{type:1,expr:"* => desc-to-hint, * => desc-to-active",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(-25%)"},offset:null},{type:6,styles:{transform:"translateY(0)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => hint-to-desc, * => active-to-desc",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:6,styles:{transform:"translateY(25%)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => asc-to-hint, * => asc-to-active",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(25%)"},offset:null},{type:6,styles:{transform:"translateY(0)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:1,expr:"* => hint-to-asc, * => active-to-asc",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:6,styles:{transform:"translateY(-25%)"},offset:null}]},timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null},{type:0,name:"desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",styles:{type:6,styles:{transform:"translateY(0)"},offset:null},options:void 0},{type:0,name:"hint-to-desc, active-to-desc, desc",styles:{type:6,styles:{transform:"translateY(-25%)"},offset:null},options:void 0},{type:0,name:"hint-to-asc, active-to-asc, asc",styles:{type:6,styles:{transform:"translateY(25%)"},offset:null},options:void 0}],options:{}},{type:7,name:"allowChildren",definitions:[{type:1,expr:"* <=> *",animation:[{type:11,selector:"@*",animation:{type:9,options:null},options:{optional:!0}}],options:null}],options:{}}]}});function Ws(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"span",[["class","cdk-visually-hidden"]],null,null,null,null,null)),(t()(),o._15(1,null,["\xa0",""]))],null,function(t,e){var n=e.component;t(e,1,0,n._intl.sortDescriptionLabel(n.id,n._sort.direction))})}function $s(t){return o._16(2,[(t()(),o.Y(0,0,null,null,8,"div",[["class","mat-sort-header-container"]],[[2,"mat-sort-header-sorted",null],[2,"mat-sort-header-position-before",null]],null,null,null,null)),(t()(),o.Y(1,0,null,null,1,"button",[["class","mat-sort-header-button"],["type","button"]],[[1,"disabled",0],[1,"aria-label",0]],[[null,"focus"],[null,"blur"]],function(t,e,n){var r=!0,o=t.component;return"focus"===e&&(r=!1!==o._setIndicatorHintVisible(!0)&&r),"blur"===e&&(r=!1!==o._setIndicatorHintVisible(!1)&&r),r},null,null)),o._8(null,0),(t()(),o.Y(3,0,null,null,5,"div",[["class","mat-sort-header-arrow"]],[[24,"@arrowOpacity",0],[24,"@arrowPosition",0],[24,"@allowChildren",0]],[[null,"@arrowPosition.start"],[null,"@arrowPosition.done"]],function(t,e,n){var r=!0,o=t.component;return"@arrowPosition.start"===e&&(r=0!=(o._disableViewStateAnimation=!0)&&r),"@arrowPosition.done"===e&&(r=0!=(o._disableViewStateAnimation=!1)&&r),r},null,null)),(t()(),o.Y(4,0,null,null,0,"div",[["class","mat-sort-header-stem"]],null,null,null,null,null)),(t()(),o.Y(5,0,null,null,3,"div",[["class","mat-sort-header-indicator"]],[[24,"@indicator",0]],null,null,null,null)),(t()(),o.Y(6,0,null,null,0,"div",[["class","mat-sort-header-pointer-left"]],[[24,"@leftPointer",0]],null,null,null,null)),(t()(),o.Y(7,0,null,null,0,"div",[["class","mat-sort-header-pointer-right"]],[[24,"@rightPointer",0]],null,null,null,null)),(t()(),o.Y(8,0,null,null,0,"div",[["class","mat-sort-header-pointer-middle"]],null,null,null,null,null)),(t()(),o.T(16777216,null,null,1,null,Ws)),o.X(10,16384,null,0,k,[o.H,o.E],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,10,0,e.component._isSorted())},function(t,e){var n=e.component;t(e,0,0,n._isSorted(),"before"==n.arrowPosition),t(e,1,0,n._isDisabled()||null,n._intl.sortButtonLabel(n.id)),t(e,3,0,n._getArrowViewState(),n._getArrowViewState(),n._getArrowDirectionState()),t(e,5,0,n._getArrowDirectionState()),t(e,6,0,n._getArrowDirectionState()),t(e,7,0,n._getArrowDirectionState())})}var Js=o.W({encapsulation:2,styles:[".mat-table{display:block}.mat-header-row{min-height:56px}.mat-row{min-height:48px}.mat-header-row,.mat-row{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;padding:0 24px;box-sizing:border-box}.mat-header-row::after,.mat-row::after{display:inline-block;min-height:inherit;content:''}.mat-cell,.mat-header-cell{flex:1;overflow:hidden;word-wrap:break-word}"],data:{}});function ta(t){return o._16(2,[o._13(402653184,1,{_rowPlaceholder:0}),o._13(402653184,2,{_headerRowPlaceholder:0}),(t()(),o.Y(2,16777216,null,null,1,null,null,null,null,null,null,null)),o.X(3,16384,[[2,4]],0,vs,[o.H],null,null),(t()(),o.Y(4,16777216,null,null,1,null,null,null,null,null,null,null)),o.X(5,16384,[[1,4]],0,gs,[o.H],null,null)],null,null)}var ea=o.W({encapsulation:2,styles:[],data:{}});function na(t){return o._16(2,[(t()(),o.Y(0,16777216,null,null,1,null,null,null,null,null,null,null)),o.X(1,16384,null,0,ds,[o.H],null,null)],null,null)}var ra=o.W({encapsulation:2,styles:[],data:{}});function oa(t){return o._16(2,[(t()(),o.Y(0,16777216,null,null,1,null,null,null,null,null,null,null)),o.X(1,16384,null,0,ds,[o.H],null,null)],null,null)}j.a.prototype.startWith=function(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Jn.a);function aa(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),function(r){return r.lift(new ia(t,e,n))}}(t,e,n)(this)}j.a.prototype.flatMapTo=aa,j.a.prototype.mergeMapTo=aa,j.a.timer=ir;var la=function(){function t(t){this.torrentsService=t,this.securityToken="",this.displayedColumns=["actions","name","infoHash","status","timeAdded","bytesDownloaded","bytesUploaded","totalBytes","totalBytesToDownload","downloadRate","uploadRate","numPeers"]}return t.prototype.ngOnInit=function(){var e=this;j.a.timer(0,t.REFRESH_RATE).mergeMapTo(this.torrentsService.getTorrents()).subscribe(function(t){return e.torrents=t});var n=document.cookie.split("; ").map(function(t){return t.split("=")}).filter(function(t){return"token"===t[0]})[0][1]||"";this.torrentsService.setSecurityHeaders((new F).set("Session-Token",n))},t.prototype.status=function(t){return r[t.status]},t.prototype.humanReadable=function(t,e){return void 0===e&&(e=["","k","M","G","T"]),t<900?this.fixed(t)+e[0]:e.length>1?this.humanReadable(t/1e3,e.slice(1)):this.fixed(t)+e[0]},t.prototype.fixed=function(t){return Math.round(100*t)/100},t.prototype.startTorrent=function(t){this.torrentsService.startTorrent(t)},t.prototype.pauseTorrent=function(t){this.torrentsService.stopTorrent(t)},t.prototype.removeTorrent=function(t){this.torrentsService.removeTorrent(t)},t.REFRESH_RATE=8e3,t}(),ua=o.W({encapsulation:0,styles:[[".mat-column-actions[_ngcontent-%COMP%]{-webkit-box-flex:10;-ms-flex:10 5 10px;flex:10 5 10px}.mat-column-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:30px;padding:0}.mat-column-name[_ngcontent-%COMP%]{-webkit-box-flex:40;-ms-flex:40 10 60px;flex:40 10 60px}.mat-column-infoHash[_ngcontent-%COMP%]{-webkit-box-flex:20;-ms-flex:20 10 50px;flex:20 10 50px}.mat-column-status[_ngcontent-%COMP%]{-webkit-box-flex:5;-ms-flex:5 10 50px;flex:5 10 50px}.mat-column-bytesDownloaded[_ngcontent-%COMP%], .mat-column-bytesUploaded[_ngcontent-%COMP%], .mat-column-bytesUploded[_ngcontent-%COMP%], .mat-column-timeAdded[_ngcontent-%COMP%], .mat-column-totalBytes[_ngcontent-%COMP%], .mat-column-totalBytesToDownload[_ngcontent-%COMP%]{-webkit-box-flex:5;-ms-flex:5 10 20px;flex:5 10 20px}.mat-column-downloadRate[_ngcontent-%COMP%], .mat-column-numPeers[_ngcontent-%COMP%], .mat-column-seeders[_ngcontent-%COMP%], .mat-column-seedersTotal[_ngcontent-%COMP%], .mat-column-uploadRate[_ngcontent-%COMP%]{-webkit-box-flex:5;-ms-flex:5 10 10px;flex:5 10 10px}"]],data:{}});function ca(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Actions"]))],null,null)}function ha(t){return o._16(0,[(t()(),o.Y(0,0,null,null,20,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(-1,null,["\n \t"])),(t()(),o.Y(3,0,null,null,4,"button",[["mat-button",""]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.startTorrent(t.context.$implicit.infoHash)&&r),r},Qs,Zs)),o.X(4,180224,null,0,Ri,[o.i,en,qn],null,null),(t()(),o._15(-1,0,["\n \t\t"])),(t()(),o.Y(6,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),o._15(-1,null,["play_arrow"])),(t()(),o._15(-1,null,["\n \t"])),(t()(),o.Y(9,0,null,null,4,"button",[["mat-button",""]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.pauseTorrent(t.context.$implicit.infoHash)&&r),r},Qs,Zs)),o.X(10,180224,null,0,Ri,[o.i,en,qn],null,null),(t()(),o._15(-1,0,["\n \t\t"])),(t()(),o.Y(12,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),o._15(-1,null,["stop"])),(t()(),o._15(-1,null,["\n \t"])),(t()(),o.Y(15,0,null,null,4,"button",[["mat-button",""]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.removeTorrent(t.context.$implicit.infoHash)&&r),r},Qs,Zs)),o.X(16,180224,null,0,Ri,[o.i,en,qn],null,null),(t()(),o._15(-1,0,["\n \t\t"])),(t()(),o.Y(18,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),o._15(-1,null,["delete"])),(t()(),o._15(-1,null,["\n\t "]))],null,function(t,e){t(e,3,0,o._9(e,4).disabled||null),t(e,9,0,o._9(e,10).disabled||null),t(e,15,0,o._9(e,16).disabled||null)})}function pa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,3,"mat-header-cell",[["class","mat-header-cell"],["mat-sort-header",""],["role","columnheader"]],[[2,"mat-sort-header-disabled",null]],[[null,"click"],[null,"mouseenter"],[null,"longpress"],[null,"mouseleave"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==o._9(t,1)._handleClick()&&r),"mouseenter"===e&&(r=!1!==o._9(t,1)._setIndicatorHintVisible(!0)&&r),"longpress"===e&&(r=!1!==o._9(t,1)._setIndicatorHintVisible(!0)&&r),"mouseleave"===e&&(r=!1!==o._9(t,1)._setIndicatorHintVisible(!1)&&r),r},$s,Ks)),o.X(1,245760,null,0,Ss,[Cs,o.f,[2,Es],[2,ys]],{id:[0,"id"]},null),o.X(2,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,0,["Name"]))],function(t,e){t(e,1,0,"")},function(t,e){t(e,0,0,o._9(e,1)._isDisabled())})}function da(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,["",""]))],null,function(t,e){t(e,2,0,e.context.$implicit.name)})}function fa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Info Hash"]))],null,null)}function ma(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,[" ",""]))],null,function(t,e){t(e,2,0,e.context.$implicit.infoHash)})}function ya(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Status"]))],null,null)}function _a(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.status(e.context.$implicit))})}function ga(t){return o._16(0,[(t()(),o.Y(0,0,null,null,3,"mat-header-cell",[["class","mat-header-cell"],["mat-sort-header",""],["role","columnheader"]],[[2,"mat-sort-header-disabled",null]],[[null,"click"],[null,"mouseenter"],[null,"longpress"],[null,"mouseleave"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==o._9(t,1)._handleClick()&&r),"mouseenter"===e&&(r=!1!==o._9(t,1)._setIndicatorHintVisible(!0)&&r),"longpress"===e&&(r=!1!==o._9(t,1)._setIndicatorHintVisible(!0)&&r),"mouseleave"===e&&(r=!1!==o._9(t,1)._setIndicatorHintVisible(!1)&&r),r},$s,Ks)),o.X(1,245760,null,0,Ss,[Cs,o.f,[2,Es],[2,ys]],{id:[0,"id"]},null),o.X(2,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,0,["Time Added"]))],function(t,e){t(e,1,0,"")},function(t,e){t(e,0,0,o._9(e,1)._isDisabled())})}function va(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.context.$implicit.timeAdded)})}function ba(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Bytes Downloaded"]))],null,null)}function wa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.bytesDownloaded))})}function Ea(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Bytes Uploaded"]))],null,null)}function Ca(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.bytesUploaded))})}function xa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Total Bytes"]))],null,null)}function Sa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.totalBytes))})}function Ta(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Done"]))],null,null)}function Oa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,["","%"]))],null,function(t,e){t(e,2,0,e.component.fixed(e.context.$implicit.percentDone))})}function ka(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Download Rate"]))],null,null)}function Aa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,["","B/s"]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.downloadRate))})}function Pa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Upload Rate"]))],null,null)}function Da(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,["","B/s"]))],null,function(t,e){t(e,2,0,e.component.humanReadable(e.context.$implicit.uploadRate))})}function Ia(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-header-cell",[["class","mat-header-cell"],["role","columnheader"]],null,null,null,null,null)),o.X(1,16384,null,0,Ds,[ys,o.i],null,null),(t()(),o._15(-1,null,["Peers"]))],null,null)}function Ra(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,"mat-cell",[["class","mat-cell"],["role","gridcell"]],null,null,null,null,null)),o.X(1,16384,null,0,Is,[ys,o.i],null,null),(t()(),o._15(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.context.$implicit.numPeers)})}function Na(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"mat-header-row",[["class","mat-header-row"],["role","row"]],null,null,null,na,ea)),o.X(1,49152,null,0,js,[],null,null)],null,null)}function ja(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"mat-row",[["class","mat-row"],["role","row"]],null,null,null,oa,ra)),o.X(1,49152,null,0,Vs,[],null,null)],null,null)}function Va(t){return o._16(0,[o._13(402653184,1,{sort:0}),(t()(),o.Y(1,0,null,null,197,"div",[["class","torrent-list mat-elevation-z8"]],null,null,null,null,null)),(t()(),o._15(-1,null,["\n "])),(t()(),o.Y(3,0,null,null,194,"mat-table",[["class","mat-table"],["matSort",""]],null,null,null,ta,Js)),o.X(4,671744,[[1,4]],0,Es,[],null,null),o.X(5,2342912,[["table",4]],3,Os,[o.p,o.f,o.i,[8,null]],{dataSource:[0,"dataSource"]},null),o._13(603979776,2,{_contentColumnDefs:1}),o._13(603979776,3,{_contentRowDefs:1}),o._13(335544320,4,{_headerRowDef:0}),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(10,0,null,null,13,null,null,null,null,null,null,null)),o.X(11,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,5,{cell:0}),o._13(335544320,6,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,ca)),o.X(17,16384,null,0,As,[o.E],null,null),o._11(2048,[[6,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,ha)),o.X(21,16384,null,0,ks,[o.E],null,null),o._11(2048,[[5,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(25,0,null,null,13,null,null,null,null,null,null,null)),o.X(26,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,7,{cell:0}),o._13(335544320,8,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,pa)),o.X(32,16384,null,0,As,[o.E],null,null),o._11(2048,[[8,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,da)),o.X(36,16384,null,0,ks,[o.E],null,null),o._11(2048,[[7,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(40,0,null,null,13,null,null,null,null,null,null,null)),o.X(41,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,9,{cell:0}),o._13(335544320,10,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,fa)),o.X(47,16384,null,0,As,[o.E],null,null),o._11(2048,[[10,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,ma)),o.X(51,16384,null,0,ks,[o.E],null,null),o._11(2048,[[9,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(55,0,null,null,13,null,null,null,null,null,null,null)),o.X(56,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,11,{cell:0}),o._13(335544320,12,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,ya)),o.X(62,16384,null,0,As,[o.E],null,null),o._11(2048,[[12,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,_a)),o.X(66,16384,null,0,ks,[o.E],null,null),o._11(2048,[[11,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(70,0,null,null,13,null,null,null,null,null,null,null)),o.X(71,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,13,{cell:0}),o._13(335544320,14,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,ga)),o.X(77,16384,null,0,As,[o.E],null,null),o._11(2048,[[14,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,va)),o.X(81,16384,null,0,ks,[o.E],null,null),o._11(2048,[[13,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(85,0,null,null,13,null,null,null,null,null,null,null)),o.X(86,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,15,{cell:0}),o._13(335544320,16,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,ba)),o.X(92,16384,null,0,As,[o.E],null,null),o._11(2048,[[16,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,wa)),o.X(96,16384,null,0,ks,[o.E],null,null),o._11(2048,[[15,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(100,0,null,null,13,null,null,null,null,null,null,null)),o.X(101,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,17,{cell:0}),o._13(335544320,18,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Ea)),o.X(107,16384,null,0,As,[o.E],null,null),o._11(2048,[[18,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Ca)),o.X(111,16384,null,0,ks,[o.E],null,null),o._11(2048,[[17,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(115,0,null,null,13,null,null,null,null,null,null,null)),o.X(116,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,19,{cell:0}),o._13(335544320,20,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,xa)),o.X(122,16384,null,0,As,[o.E],null,null),o._11(2048,[[20,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Sa)),o.X(126,16384,null,0,ks,[o.E],null,null),o._11(2048,[[19,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(130,0,null,null,13,null,null,null,null,null,null,null)),o.X(131,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,21,{cell:0}),o._13(335544320,22,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Ta)),o.X(137,16384,null,0,As,[o.E],null,null),o._11(2048,[[22,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Oa)),o.X(141,16384,null,0,ks,[o.E],null,null),o._11(2048,[[21,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(145,0,null,null,13,null,null,null,null,null,null,null)),o.X(146,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,23,{cell:0}),o._13(335544320,24,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,ka)),o.X(152,16384,null,0,As,[o.E],null,null),o._11(2048,[[24,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Aa)),o.X(156,16384,null,0,ks,[o.E],null,null),o._11(2048,[[23,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(160,0,null,null,13,null,null,null,null,null,null,null)),o.X(161,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,25,{cell:0}),o._13(335544320,26,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Pa)),o.X(167,16384,null,0,As,[o.E],null,null),o._11(2048,[[26,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Da)),o.X(171,16384,null,0,ks,[o.E],null,null),o._11(2048,[[25,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.Y(175,0,null,null,13,null,null,null,null,null,null,null)),o.X(176,16384,null,2,Ps,[],{name:[0,"name"]},null),o._13(335544320,27,{cell:0}),o._13(335544320,28,{headerCell:0}),o._11(2048,[[2,4]],ys,null,[Ps]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Ia)),o.X(182,16384,null,0,As,[o.E],null,null),o._11(2048,[[28,4]],ms,null,[As]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,Ra)),o.X(186,16384,null,0,ks,[o.E],null,null),o._11(2048,[[27,4]],fs,null,[ks]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n\n "])),(t()(),o.T(0,null,null,2,null,Na)),o.X(191,540672,null,0,Rs,[o.E,o.p],{columns:[0,"columns"]},null),o._11(2048,[[4,4]],hs,null,[Rs]),(t()(),o._15(-1,null,["\n "])),(t()(),o.T(0,null,null,2,null,ja)),o.X(195,540672,null,0,Ns,[o.E,o.p],{columns:[0,"columns"]},null),o._11(2048,[[3,4]],ps,null,[Ns]),(t()(),o._15(-1,null,["\n "])),(t()(),o._15(-1,null,["\n"]))],function(t,e){var n=e.component;t(e,5,0,n.torrents),t(e,11,0,"actions"),t(e,26,0,"name"),t(e,41,0,"infoHash"),t(e,56,0,"status"),t(e,71,0,"timeAdded"),t(e,86,0,"bytesDownloaded"),t(e,101,0,"bytesUploaded"),t(e,116,0,"totalBytes"),t(e,131,0,"totalBytesToDownload"),t(e,146,0,"downloadRate"),t(e,161,0,"uploadRate"),t(e,176,0,"numPeers"),t(e,191,0,n.displayedColumns),t(e,195,0,n.displayedColumns)},null)}var Ma=o.W({encapsulation:2,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;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-empty.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-placeholder-wrapper .mat-form-field-placeholder,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-placeholder-wrapper .mat-form-field-placeholder{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;height:1px;width:100%}.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.mat-form-field-underline .mat-form-field-ripple{position:absolute;top:0;left:0;width:100%;height:2px;transform-origin:50%;transform:scaleX(.5);visibility:hidden;opacity:0;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-form-field-invalid:not(.mat-focused) .mat-form-field-underline .mat-form-field-ripple{height:1px}.mat-focused .mat-form-field-underline .mat-form-field-ripple,.mat-form-field-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;opacity:1;transform:scaleX(1);transition:transform .3s cubic-bezier(.25,.8,.25,1),opacity .1s cubic-bezier(.25,.8,.25,1),background-color .3s cubic-bezier(.25,.8,.25,1)}.mat-form-field-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-form-field-label-wrapper .mat-icon,.mat-form-field-subscript-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-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;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[type=date]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=month]::after,.mat-input-element[type=time]::after,.mat-input-element[type=week]::after{content:' ';white-space:pre;width:1px}.mat-input-element::placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-moz-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element::-webkit-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-input-element:-ms-input-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent!important;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent!important;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-autosize{resize:none}"],data:{animation:[{type:7,name:"transitionMessages",definitions:[{type:0,name:"enter",styles:{type:6,styles:{opacity:1,transform:"translateY(0%)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function Fa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"div",[["class","mat-input-prefix mat-form-field-prefix"]],null,null,null,null,null)),o._8(null,0)],null,null)}function La(t){return o._16(0,[(t()(),o.Y(0,0,null,null,2,null,null,null,null,null,null,null)),o._8(null,2),(t()(),o._15(2,null,["",""]))],null,function(t,e){t(e,2,0,e.component._control.placeholder)})}function Ba(t){return o._16(0,[o._8(null,3),(t()(),o.T(0,null,null,0))],null,null)}function Ha(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(t()(),o._15(-1,null,["\xa0*"]))],null,null)}function za(t){return o._16(0,[(t()(),o.Y(0,0,[[4,0],["label",1]],null,7,"label",[["class","mat-form-field-label mat-input-placeholder mat-form-field-placeholder"]],[[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null)),o.X(1,16384,null,0,D,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),o.T(16777216,null,null,1,null,La)),o.X(3,278528,null,0,I,[o.H,o.E,D],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),o.T(16777216,null,null,1,null,Ba)),o.X(5,278528,null,0,I,[o.H,o.E,D],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),o.T(16777216,null,null,1,null,Ha)),o.X(7,16384,null,0,k,[o.H,o.E],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n._hasLabel()),t(e,3,0,!1),t(e,5,0,!0),t(e,7,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(t,e){var n=e.component;t(e,0,0,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function Ua(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"div",[["class","mat-input-suffix mat-form-field-suffix"]],null,null,null,null,null)),o._8(null,4)],null,null)}function Ya(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),o._8(null,5)],null,function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function qa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(t()(),o._15(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n._hintLabelId),t(e,1,0,n.hintLabel)})}function Xa(t){return o._16(0,[(t()(),o.Y(0,0,null,null,5,"div",[["class","mat-input-hint-wrapper mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(t()(),o.T(16777216,null,null,1,null,qa)),o.X(2,16384,null,0,k,[o.H,o.E],{ngIf:[0,"ngIf"]},null),o._8(null,6),(t()(),o.Y(4,0,null,null,0,"div",[["class","mat-input-hint-spacer mat-form-field-hint-spacer"]],null,null,null,null,null)),o._8(null,7)],function(t,e){t(e,2,0,e.component.hintLabel)},function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function Ga(t){return o._16(2,[o._13(402653184,1,{underlineRef:0}),o._13(402653184,2,{_connectionContainerRef:0}),o._13(402653184,3,{_inputContainerRef:0}),o._13(671088640,4,{_label:0}),(t()(),o.Y(4,0,null,null,18,"div",[["class","mat-input-wrapper mat-form-field-wrapper"]],null,null,null,null,null)),(t()(),o.Y(5,0,[[2,0],["connectionContainer",1]],null,9,"div",[["class","mat-input-flex mat-form-field-flex"]],null,[[null,"click"]],function(t,e,n){var r=!0,o=t.component;return"click"===e&&(r=!1!==(o._control.onContainerClick&&o._control.onContainerClick(n))&&r),r},null,null)),(t()(),o.T(16777216,null,null,1,null,Fa)),o.X(7,16384,null,0,k,[o.H,o.E],{ngIf:[0,"ngIf"]},null),(t()(),o.Y(8,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-input-infix mat-form-field-infix"]],null,null,null,null,null)),o._8(null,1),(t()(),o.Y(10,0,null,null,2,"span",[["class","mat-form-field-label-wrapper mat-input-placeholder-wrapper mat-form-field-placeholder-wrapper"]],null,null,null,null,null)),(t()(),o.T(16777216,null,null,1,null,za)),o.X(12,16384,null,0,k,[o.H,o.E],{ngIf:[0,"ngIf"]},null),(t()(),o.T(16777216,null,null,1,null,Ua)),o.X(14,16384,null,0,k,[o.H,o.E],{ngIf:[0,"ngIf"]},null),(t()(),o.Y(15,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-input-underline mat-form-field-underline"]],null,null,null,null,null)),(t()(),o.Y(16,0,null,null,0,"span",[["class","mat-input-ripple mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null)),(t()(),o.Y(17,0,null,null,5,"div",[["class","mat-input-subscript-wrapper mat-form-field-subscript-wrapper"]],null,null,null,null,null)),o.X(18,16384,null,0,D,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),o.T(16777216,null,null,1,null,Ya)),o.X(20,278528,null,0,I,[o.H,o.E,D],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),o.T(16777216,null,null,1,null,Xa)),o.X(22,278528,null,0,I,[o.H,o.E,D],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){var n=e.component;t(e,7,0,n._prefixChildren.length),t(e,12,0,n._hasFloatingLabel()),t(e,14,0,n._suffixChildren.length),t(e,18,0,n._getDisplayedMessages()),t(e,20,0,"error"),t(e,22,0,"hint")},function(t,e){var n=e.component;t(e,16,0,"accent"==n.color,"warn"==n.color)})}var Za=o.W({encapsulation:0,styles:[[""]],data:{}});function Qa(t){return o._16(0,[(t()(),o._15(-1,null,["\n"])),(t()(),o.Y(1,0,null,null,6,"mat-toolbar",[["class","mat-toolbar"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,Gs,Xs)),o.X(2,4243456,null,1,Fs,[o.i,en,N],null,null),o._13(603979776,1,{_toolbarRows:1}),(t()(),o._15(-1,0,["\n "])),(t()(),o.Y(5,0,null,0,1,"span",[],null,null,null,null,null)),(t()(),o._15(-1,null,["KTorrent HTML interface"])),(t()(),o._15(-1,0,["\n"])),(t()(),o._15(-1,null,["\n\n"])),(t()(),o.Y(9,0,null,null,2,"button",[["mat-button",""]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.openMagnet()&&r),r},Qs,Zs)),o.X(10,180224,null,0,Ri,[o.i,en,qn],null,null),(t()(),o._15(-1,0,["Magnet link"])),(t()(),o._15(-1,null,["\n\n"])),(t()(),o.Y(13,0,null,null,1,"app-torrent-list",[],null,null,null,Va,ua)),o.X(14,114688,null,0,la,[ft],null,null),(t()(),o._15(-1,null,["\n\n"]))],function(t,e){t(e,14,0)},function(t,e){t(e,1,0,o._9(e,2)._toolbarRows.length,!o._9(e,2)._toolbarRows.length),t(e,9,0,o._9(e,10).disabled||null)})}var Ka=o.U("app-root",Bs,function(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"app-root",[],null,null,null,Qa,Za)),o.X(1,49152,null,0,Bs,[Yi,ft],null,null)],null,null)},{},{},[]),Wa=o.W({encapsulation:0,styles:["mat-form-field[_ngcontent-%COMP%] {\n width: 100%;\n}"],data:{}});function $a(t){return o._16(0,[(t()(),o.Y(0,0,null,null,43,"div",[],null,[[null,"keydown"]],function(t,e,n){var r=!0;return"keydown"===e&&(r=!1!==t.component.submit(n)&&r),r},null,null)),(t()(),o._15(-1,null,["\n\t"])),(t()(),o.Y(2,0,null,null,2,"h2",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),o.X(3,81920,null,0,Gi,[[2,Li],o.i,Yi],null,null),(t()(),o._15(-1,null,["New torrent from magnet link"])),(t()(),o._15(-1,null,["\n\t"])),(t()(),o.Y(6,0,null,null,2,"mat-dialog-content",[["class","mat-dialog-content"]],null,null,null,null,null)),o.X(7,16384,null,0,Zi,[],null,null),(t()(),o._15(-1,null,["Enter magnet link"])),(t()(),o._15(-1,null,["\n\t"])),(t()(),o.Y(10,0,null,null,18,"mat-form-field",[["class","mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-focused",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,Ga,Ma)),o.X(11,7389184,null,7,Si,[o.i,o.f,[2,wn]],null,null),o._13(335544320,1,{_control:0}),o._13(335544320,2,{_placeholderChild:0}),o._13(335544320,3,{_labelChild:0}),o._13(603979776,4,{_errorChildren:1}),o._13(603979776,5,{_hintChildren:1}),o._13(603979776,6,{_prefixChildren:1}),o._13(603979776,7,{_suffixChildren:1}),(t()(),o._15(-1,1,["\n\t\t"])),(t()(),o.Y(20,0,null,1,7,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Magnet link"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var r=!0,i=t.component;return"input"===e&&(r=!1!==o._9(t,21)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==o._9(t,21).onTouched()&&r),"compositionstart"===e&&(r=!1!==o._9(t,21)._compositionStart()&&r),"compositionend"===e&&(r=!1!==o._9(t,21)._compositionEnd(n.target.value)&&r),"blur"===e&&(r=!1!==o._9(t,26)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==o._9(t,26)._focusChanged(!0)&&r),"input"===e&&(r=!1!==o._9(t,26)._onInput()&&r),"ngModelChange"===e&&(r=!1!==(i.magnet=n)&&r),r},null,null)),o.X(21,16384,null,0,co,[o.y,o.i,[2,uo]],null,null),o._11(1024,null,ao,function(t){return[t]},[co]),o.X(23,671744,null,0,Go,[[8,null],[8,null],[8,null],[2,ao]],{model:[0,"model"]},{update:"ngModelChange"}),o._11(2048,null,yo,null,[Go]),o.X(25,16384,null,0,Do,[yo],null,null),o.X(26,933888,null,0,ns,[o.i,en,[2,yo],[2,Bo],[2,Qo],pn,[8,null]],{placeholder:[0,"placeholder"]},null),o._11(2048,[[1,4]],Ei,null,[ns]),(t()(),o._15(-1,1,["\n\t"])),(t()(),o._15(-1,null,["\n\t"])),(t()(),o.Y(30,0,null,null,12,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),o.X(31,16384,null,0,Qi,[],null,null),(t()(),o._15(-1,null,["\n\t "])),(t()(),o.Y(33,0,null,null,3,"button",[["id","start"],["mat-button",""],["type","button"]],[[8,"disabled",0],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==o._9(t,35).dialogRef.close(o._9(t,35).dialogResult)&&r),r},Qs,Zs)),o.X(34,180224,null,0,Ri,[o.i,en,qn],null,null),o.X(35,606208,null,0,Xi,[[2,Li],o.i,Yi],{dialogResult:[0,"dialogResult"]},null),(t()(),o._15(-1,0,["Start torrent"])),(t()(),o._15(-1,null,["\n\t "])),(t()(),o.Y(38,0,null,null,3,"button",[["mat-button",""],["type","button"]],[[8,"disabled",0],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==o._9(t,40).dialogRef.close(o._9(t,40).dialogResult)&&r),r},Qs,Zs)),o.X(39,180224,null,0,Ri,[o.i,en,qn],null,null),o.X(40,606208,null,0,Xi,[[2,Li],o.i,Yi],{dialogResult:[0,"dialogResult"]},null),(t()(),o._15(-1,0,["Cancel"])),(t()(),o._15(-1,null,["\n\t"])),(t()(),o._15(-1,null,["\n"])),(t()(),o._15(-1,null,["\n"]))],function(t,e){var n=e.component;t(e,3,0),t(e,23,0,n.magnet),t(e,26,0,"Magnet link"),t(e,35,0,n.magnet),t(e,40,0,!1)},function(t,e){t(e,2,0,o._9(e,3).id),t(e,10,1,[o._9(e,11)._control.errorState,o._9(e,11)._control.errorState,o._9(e,11)._canLabelFloat,o._9(e,11)._shouldLabelFloat(),o._9(e,11)._hideControlPlaceholder(),o._9(e,11)._control.disabled,o._9(e,11)._control.focused,o._9(e,11)._shouldForward("untouched"),o._9(e,11)._shouldForward("touched"),o._9(e,11)._shouldForward("pristine"),o._9(e,11)._shouldForward("dirty"),o._9(e,11)._shouldForward("valid"),o._9(e,11)._shouldForward("invalid"),o._9(e,11)._shouldForward("pending")]),t(e,20,1,[o._9(e,25).ngClassUntouched,o._9(e,25).ngClassTouched,o._9(e,25).ngClassPristine,o._9(e,25).ngClassDirty,o._9(e,25).ngClassValid,o._9(e,25).ngClassInvalid,o._9(e,25).ngClassPending,o._9(e,26)._isServer,o._9(e,26).id,o._9(e,26).placeholder,o._9(e,26).disabled,o._9(e,26).required,o._9(e,26).readonly,o._9(e,26)._ariaDescribedby||null,o._9(e,26).errorState,o._9(e,26).required.toString()]),t(e,33,0,o._9(e,34).disabled||null,o._9(e,35).ariaLabel),t(e,38,0,o._9(e,39).disabled||null,o._9(e,40).ariaLabel)})}var Ja=o.U("app-magnet-dialog",Hs,function(t){return o._16(0,[(t()(),o.Y(0,0,null,null,1,"app-magnet-dialog",[],null,null,null,$a,Wa)),o.X(1,49152,null,0,Hs,[o.y],null,null)],null,null)},{},{},[]);function tl(t){switch(t.length){case 0:return new vi;case 1:return t[0];default:return new bi(t)}}function el(t,e,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var s=[],a=[],l=-1,u=null;if(r.forEach(function(t){var n=t.offset,r=n==l,c=r&&u||{};Object.keys(t).forEach(function(n){var r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case wi:a=o[n];break;case mi:a=i[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}c[r]=a}),r||a.push(c),u=c,l=n}),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return a}function nl(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&rl(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&rl(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&rl(n,"destroy",t.totalTime))})}}function rl(t,e,n){var r=ol(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),o=t._data;return null!=o&&(r._data=o),r}function ol(t,e,n,r,o,i){return void 0===o&&(o=""),void 0===i&&(i=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:o,totalTime:i}}function il(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function sl(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var al=function(t,e){return!1},ll=function(t,e){return!1},ul=function(t,e,n){return[]};if("undefined"!=typeof Element){if(al=function(t,e){return t.contains(e)},Element.prototype.matches)ll=function(t,e){return t.matches(e)};else{var cl=Element.prototype,hl=cl.matchesSelector||cl.mozMatchesSelector||cl.msMatchesSelector||cl.oMatchesSelector||cl.webkitMatchesSelector;hl&&(ll=function(t,e){return hl.apply(t,[e])})}ul=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var o=t.querySelector(e);o&&r.push(o)}return r}}var pl=null,dl=!1;function fl(t){pl||(pl=ml()||{},dl=!!pl.style&&"WebkitAppearance"in pl.style);var e=!0;return pl.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in pl.style)&&dl&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in pl.style),e}function ml(){return"undefined"!=typeof document?document.body:null}var yl=ll,_l=al,gl=ul,vl=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return fl(t)},t.prototype.matchesElement=function(t,e){return yl(t,e)},t.prototype.containsElement=function(t,e){return _l(t,e)},t.prototype.query=function(t,e,n){return gl(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,o,i){return void 0===i&&(i=[]),new vi},t}(),bl=function(){function t(){}return t.NOOP=new vl,t}(),wl=1e3;function El(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Cl(parseFloat(e[1]),e[2])}function Cl(t,e){switch(e){case"s":return t*wl;default:return t}}function xl(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,o=0,i="";if("string"==typeof t){var s=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=Cl(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(o=Cl(Math.floor(parseFloat(a)),s[4]));var l=s[5];l&&(i=l)}else r=t;if(!n){var u=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:i}}(t,e,n)}function Sl(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Tl(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Sl(t,n);return n}function Ol(t,e){t.style&&Object.keys(e).forEach(function(n){var r=jl(n);t.style[r]=e[n]})}function kl(t,e){t.style&&Object.keys(e).forEach(function(e){var n=jl(e);t.style[n]=""})}function Al(t){return Array.isArray(t)?1==t.length?t[0]:yi(t):t}var Pl=new RegExp("{{\\s*(.+?)\\s*}}","g");function Dl(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=Pl.exec(n);)e.push(r[1]);Pl.lastIndex=0}return e}function Il(t,e,n){var r=t.toString(),o=r.replace(Pl,function(t,r){var o=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?t:o}function Rl(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var Nl=/-+([a-z0-9])/g;function jl(t){return t.replace(Nl,function(){for(var t=[],e=0;e *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var o=t.match(/^(\*|[-\w]+)\s*([=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=o[1],s=o[2],a=o[3];e.push(Bl(i,a)),"<"!=s[0]||i==Ml&&a==Ml||e.push(Bl(a,i))}(t,o,r)}):o.push(n),o),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Xl(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Vl(n,t,e)}),options:Xl(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,o=0,i=t.steps.map(function(t){e.currentTime=r;var i=Vl(n,t,e);return o=Math.max(o,e.currentTime),i});return e.currentTime=o,{type:3,steps:i,options:Xl(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Gl(xl(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=Gl(0,0,"");return o.dynamic=!0,o.strValue=r,o}return Gl((n=n||xl(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var o=t.styles?t.styles:_i({});if(5==o.type)n=this.visitKeyframes(o,e);else{var i=t.styles,s=!1;if(!i){s=!0;var a={};r.easing&&(a.easing=r.easing),i=_i(a)}e.currentTime+=r.duration+r.delay;var l=this.visitStyle(i,e);l.isEmptyStep=s,n=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==mi?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,o=null;return n.forEach(function(t){if(ql(t)){var e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(var i in e)if(e[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,o=e.currentTime,i=e.currentTime;r&&i>0&&(i-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,l,u=e.collectedStyles[e.currentQuerySelector],c=u[r],h=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),h=!1),i=c.startTime),h&&(u[r]={startTime:i,endTime:o}),e.options&&(s=e.errors,a=e.options.params||{},(l=Dl(t[r])).length&&l.forEach(function(t){a.hasOwnProperty(t)||s.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],s=!1,a=!1,l=0,u=t.steps.map(function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(ql(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(ql(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=u&&(o++,c=r.offset=u),a=a||c<0||c>1,s=s||c0&&o0?o==p?1:h*o:i[o],a=s*m;e.currentTime=d+f.delay+a,f.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:Vl(this,Al(t.animation),e),options:Xl(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Xl(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Xl(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var o=function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(Hl,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),i=o[0],s=o[1];e.currentQuerySelector=n.length?n+" "+i:i,il(e.collectedStyles,e.currentQuerySelector,{});var a=Vl(this,Al(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Xl(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:xl(t.timings,e.errors,!0);return{type:12,animation:Vl(this,Al(t.animation),e),timings:n,options:null}},t}(),Yl=function(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 ql(t){return!Array.isArray(t)&&"object"==typeof t}function Xl(t){var e;return t?(t=Sl(t)).params&&(t.params=(e=t.params)?Sl(e):null):t={},t}function Gl(t,e,n){return{duration:t,delay:e,easing:n}}function Zl(t,e,n,r,o,i,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var Ql=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Kl=new RegExp(":enter","g"),Wl=new RegExp(":leave","g");function $l(t,e,n,r,o,i,s,a,l,u){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===u&&(u=[]),(new Jl).buildKeyframes(t,e,n,r,o,i,s,a,l,u)}var Jl=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,o,i,s,a,l,u){void 0===u&&(u=[]),l=l||new Ql;var c=new eu(t,e,l,r,o,u,[]);c.options=a,c.currentTimeline.setStyles([i],null,c.errors,a),Vl(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(s).length){var p=h[h.length-1];p.allowOnlyTimelineStyles()||p.setStyles([s],null,c.errors,a)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Zl(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,o=null!=n.duration?El(n.duration):null,i=null!=n.delay?El(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,i);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Vl(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,o=e,i=t.options;if(i&&(i.params||i.delay)&&((o=e.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=tu);var s=El(i.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return Vl(n,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],o=e.currentTimeline.currentTime,i=t.options&&t.options.delay?El(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);i&&a.delayNextStep(i),Vl(n,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(o),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return xl(e.params?Il(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,o=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(function(t){i.forwardTime((t.offset||0)*o),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+o),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,o=t.options||{},i=o.delay?El(o.delay):0;i&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=tu);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;var l=null;a.forEach(function(r,o){e.currentQueryIndex=o;var a=e.createSubContext(t.options,r);i&&a.delayNextStep(i),r===e.element&&(l=a.currentTimeline),Vl(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,o=t.timings,i=Math.abs(o.duration),s=i*(e.currentQueryTotal-1),a=i*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var l=e.currentTimeline;a&&l.delayNextStep(a);var u=l.currentTime;Vl(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),tu={},eu=function(){function t(t,e,n,r,o,i,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new nu(this._driver,e,0),s.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,o=this.options;null!=r.duration&&(o.duration=El(r.duration)),null!=r.delay&&(o.delay=El(r.delay));var i=r.params;if(i){var s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=Il(i[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var o=n||this.element,i=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=tu,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new ru(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,o,i){var s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(Kl,"."+this._enterClassName)).replace(Wl,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,a)}return o||0!=s.length||i.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),nu=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,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()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){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))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||mi,e._currentKeyframe[t]=mi}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var o=this;e&&(this._previousKeyframe.easing=e);var i=r&&r.params||{},s=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=mi}):Tl(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=Il(s[t],i,n);o._pendingStyles[t]=e,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:mi),o._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],o=t._styleSummary[n];(!r||o.time>r.time)&&e._updateStyle(n,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,s){var a=Tl(i,!0);Object.keys(a).forEach(function(t){var r=a[t];r==wi?e.add(t):r==mi&&n.add(t)}),r||(a.offset=s/t.duration),o.push(a)});var i=e.size?Rl(e.values()):[],s=n.size?Rl(n.values()):[];if(r){var a=o[0],l=Sl(a);a.offset=0,l.offset=1,o=[a,l]}return Zl(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)},t}(),ru=function(t){function e(e,n,r,o,i,s,a){void 0===a&&(a=!1);var l=t.call(this,e,n,s.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=o,l.postStyleProps=i,l._stretchStartingKeyframe=a,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return Object(c.b)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,o=e.easing;if(this._stretchStartingKeyframe&&n){var i=[],s=r+n,a=n/s,l=Tl(t[0],!1);l.offset=0,i.push(l);var u=Tl(t[0],!1);u.offset=ou(a),i.push(u);for(var c=t.length-1,h=1;h<=c;h++){var p=Tl(t[h],!1);p.offset=ou((n+p.offset*r)/s),i.push(p)}r=s,n=0,o="",t=i}return Zl(this.element,t,this.preStyleProps,this.postStyleProps,r,n,o,!0)},e}(nu);function ou(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var iu=function(){},su=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.normalizePropertyName=function(t,e){return jl(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var o="",i=n.toString().trim();if(au[e]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return i+o},e}(iu),au=function(t){var e={};return"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(",").forEach(function(t){return e[t]=!0}),e}();function lu(t,e,n,r,o,i,s,a,l,u,c,h){return{type:0,element:t,triggerName:e,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,errors:h}}var uu={},cu=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return function(t,e,n){return t.some(function(t){return t(e,n)})}(this.ast.matchers,t,e)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],o=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return o?o.buildStyles(e,n):i},t.prototype.build=function(t,e,n,r,o,i,s,a,l){var u=[],h=this.ast.options&&this.ast.options.params||uu,p=this.buildStyles(n,s&&s.params||uu,u),d=a&&a.params||uu,f=this.buildStyles(r,d,u),m=new Set,y=new Map,_=new Map,g="void"===r,v={params:Object(c.a)({},h,d)},b=$l(t,e,this.ast.animation,o,i,p,f,v,l,u);if(u.length)return lu(e,this._triggerName,n,r,g,p,f,[],[],y,_,u);b.forEach(function(t){var n=t.element,r=il(y,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var o=il(_,n,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),n!==e&&m.add(n)});var w=Rl(m.values());return lu(e,this._triggerName,n,r,g,p,f,b,w,y,_)},t}(),hu=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Sl(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var i=o[t];i.length>1&&(i=Il(i,r,e)),n[t]=i})}}),n},t}(),pu=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new hu(t.style,t.options&&t.options.params||{})}),du(this.states,"true","1"),du(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new cu(t,e,n.states))}),this.fallbackTransition=new cu(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function du(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var fu=new Ql,mu=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=zl(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]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=el(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var o,i=[],s=this._animations[t],a=new Map;if(s?(o=$l(this._driver,e,s,"ng-enter","ng-leave",{},{},n,fu,i)).forEach(function(t){var e=il(a,t.element,{});t.postStyleProps.forEach(function(t){return 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"));a.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,mi)})});var l=tl(o.map(function(t){var e=a.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return r.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var o=ol(e,"","","");return nl(this._getPlayer(t),n,o,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),yu=[],_u={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},gu={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},vu="__ng_removed",bu=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Sl(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),wu=new bu("void"),Eu=new bu("DELETED"),Cu=function(){function t(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,Du(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var o,i=this;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"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var s=il(this._elementListeners,t,[]),a={name:e,phase:n,callback:r};s.push(a);var l=il(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Du(t,"ng-trigger"),Du(t,"ng-trigger-"+e),l[e]=wu),function(){i._engine.afterFlush(function(){var t=s.indexOf(a);t>=0&&s.splice(t,1),i._triggers[e]||delete l[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(e),s=new Su(this.id,e,t),a=this._engine.statesByElement.get(t);a||(Du(t,"ng-trigger"),Du(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var l=a[e],u=new bu(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[e]=u,l){if(l===Eu)return s}else l=wu;if("void"===u.value||l.value!==u.value){var c=il(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==o.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=i.matchTransition(l.value,u.value),p=!1;if(!h){if(!r)return;h=i.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:l,toState:u,player:s,isFallbackTransition:p}),p||(Du(t,"ng-animate-queued"),s.onStart(function(){Iu(t,"ng-animate-queued")})),s.onDone(function(){var e=o.players.indexOf(s);e>=0&&o.players.splice(e,1);var n=o._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),c.push(s),s}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o=0;o=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,e)){this._namespaceList.splice(o+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),o=0;o=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player;C.push(e);var i=t.element;if(p&&n.driver.containsElement(p,i)){var c=w.get(i),h=m.get(i),d=n._buildInstruction(t,r,h,c);if(d.errors&&d.errors.length)x.push(d);else{if(t.isFallbackTransition)return e.onStart(function(){return kl(i,d.fromStyles)}),e.onDestroy(function(){return Ol(i,d.toStyles)}),void o.push(e);d.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(i,d.timelines),s.push({instruction:d,player:e,element:i}),d.queriedElements.forEach(function(t){return il(a,t,[]).push(e)}),d.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),d.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()});if(x.length){var T=[];x.forEach(function(t){T.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return T.push("- "+t+"\n")})}),C.forEach(function(t){return t.destroy()}),this.reportError(T)}var O=new Map,k=new Map;s.forEach(function(t){var e=t.element;r.has(e)&&(k.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){il(O,e,[]).push(t),t.destroy()})});var A=_.filter(function(t){return Nu(t,l,u)}),P=new Map;ku(P,this.driver,v,u,mi).forEach(function(t){Nu(t,l,u)&&A.push(t)});var D=new Map;f.forEach(function(t,e){ku(D,n.driver,new Set(t),l,wi)}),A.forEach(function(t){var e=P.get(t),n=D.get(t);P.set(t,Object(c.a)({},e,n))});var I=[],R=[],N={};s.forEach(function(t){var e=t.element,s=t.player,a=t.instruction;if(r.has(e)){if(h.has(e))return s.onDestroy(function(){return Ol(e,a.toStyles)}),void o.push(s);var l=N;if(k.size>1){for(var u=e,c=[];u=u.parentNode;){var p=k.get(u);if(p){l=p;break}c.push(u)}c.forEach(function(t){return k.set(t,l)})}var d=n._buildAnimation(s.namespaceId,a,O,i,D,P);if(s.setRealPlayer(d),l===N)I.push(s);else{var f=n.playersByElement.get(l);f&&f.length&&(s.parentPlayer=tl(f)),o.push(s)}}else kl(e,a.fromStyles),s.onDestroy(function(){return Ol(e,a.toStyles)}),R.push(s),h.has(e)&&o.push(s)}),R.forEach(function(t){var e=i.get(t.element);if(e&&e.length){var n=tl(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var j=0;j<_.length;j++){var V,M=(V=_[j])[vu];if(Iu(V,"ng-leave"),!M||!M.hasAnimation){var F=[];if(a.size){var L=a.get(V);L&&L.length&&F.push.apply(F,L);for(var B=this.driver.query(V,".ng-animating",!0),H=0;H0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new vi},t}(),Su=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new vi,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return nl(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){il(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Tu(t){return t&&1===t.nodeType}function Ou(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function ku(t,e,n,r,o){var i=[];n.forEach(function(t){return i.push(Ou(t))});var s=[];r.forEach(function(n,r){var i={};n.forEach(function(t){var n=i[t]=e.computeStyle(r,t,o);n&&0!=n.length||(r[vu]=gu,s.push(r))}),t.set(r,i)});var a=0;return n.forEach(function(t){return Ou(t,i[a++])}),s}function Au(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),o=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var i=o.get(e);if(i)return i;var s=e.parentNode;return i=n.has(s)?s:r.has(s)?1:t(s),o.set(e,i),i}(t);1!==e&&n.get(e).push(t)}),n}var Pu="$$classes";function Du(t,e){if(t.classList)t.classList.add(e);else{var n=t[Pu];n||(n=t[Pu]={}),n[e]=!0}}function Iu(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Pu];n&&delete n[e]}}function Ru(t,e,n){tl(n).onDone(function(){return t.processLeaveNode(e)})}function Nu(t,e,n){var r=n.get(t);if(!r)return!1;var o=e.get(t);return o?r.forEach(function(t){return o.add(t)}):e.set(t,r),n.delete(t),!0}var ju=function(){function t(t,e){var n=this;this._driver=t,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new xu(t,e),this._timelineEngine=new mu(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,o){var i=t+"-"+r,s=this._triggerCache[i];if(!s){var a=[],l=zl(this._driver,o,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(t,e){return new pu(t,e)}(r,l),this._triggerCache[i]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var o=sl(n);this._timelineEngine.command(o[0],e,o[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,o){if("@"==n.charAt(0)){var i=sl(n);return this._timelineEngine.listen(i[0],e,i[1],o)}return this._transitionEngine.listen(t,e,n,r,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Vu=function(){function t(t,e,n,r){void 0===r&&(r=[]);var o=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,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.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return o.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return Tl(t,!1)}),n=Object.keys(this.previousStyles);if(n.length&&e.length){var r=e[0],o=[];if(n.forEach(function(e){r.hasOwnProperty(e)||o.push(e),r[e]=t.previousStyles[e]}),o.length)for(var i=this,s=function(){var t=e[a];o.forEach(function(e){t[e]=Mu(i.element,e)})},a=1;a=0&&t.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){color:rgba(0,0,0,.38)}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:rgba(0,0,0,.04)}.mat-calendar-body-selected{background-color:#673ab7;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(103,58,183,.4)}.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.38)}.mat-calendar-body-today.mat-calendar-body-selected{-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.18)}.mat-datepicker-toggle-active{color:#673ab7}.mat-dialog-container{background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused,.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:rgba(0,0,0,.04)}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator::after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.54)}.mat-focused .mat-form-field-label{color:#673ab7}.mat-focused .mat-form-field-label.mat-accent{color:#ffd740}.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#ffd740}.mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-disabled .mat-form-field-underline{background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(0,0,0,.42)),color-stop(33%,rgba(0,0,0,.42)),color-stop(0,transparent));background-image:linear-gradient(to right,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 1px;background-repeat:repeat-x}.mat-form-field-ripple{background-color:#673ab7}.mat-form-field-ripple.mat-accent{background-color:#ffd740}.mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-invalid .mat-form-field-label,.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker,.mat-form-field-invalid .mat-form-field-label.mat-accent{color:#f44336}.mat-form-field-invalid .mat-form-field-ripple{background-color:#f44336}.mat-error{color:#f44336}.mat-icon.mat-primary{color:#673ab7}.mat-icon.mat-accent{color:#ffd740}.mat-icon.mat-warn{color:#f44336}.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#673ab7}.mat-input-element::-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-accent .mat-input-element{caret-color:#ffd740}.mat-form-field-invalid .mat-input-element,.mat-warn .mat-input-element{caret-color:#f44336}.mat-list .mat-list-item,.mat-list .mat-list-option,.mat-nav-list .mat-list-item,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-item,.mat-selection-list .mat-list-option{color:rgba(0,0,0,.87)}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500;color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-nav-list .mat-list-item{outline:0}.mat-nav-list .mat-list-item.mat-list-item-focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-list-option{outline:0}.mat-list-option.mat-list-item-focus,.mat-list-option:hover{background:rgba(0,0,0,.04)}.mat-menu-panel{background:#fff}.mat-menu-item{background:0 0;color:rgba(0,0,0,.87)}.mat-menu-item[disabled]{color:rgba(0,0,0,.38)}.mat-menu-item .mat-icon:not([color]),.mat-menu-item-submenu-trigger::after{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-progress-bar-background{fill:#d1c4e9}.mat-progress-bar-buffer{background-color:#d1c4e9}.mat-progress-bar-fill::after{background-color:#673ab7}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#ffe57f}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#ffe57f}.mat-progress-bar.mat-accent .mat-progress-bar-fill::after{background-color:#ffd740}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#ffcdd2}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#ffcdd2}.mat-progress-bar.mat-warn .mat-progress-bar-fill::after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#673ab7}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ffd740}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#673ab7}.mat-radio-button.mat-primary .mat-radio-inner-circle{background-color:#673ab7}.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element{background-color:rgba(103,58,183,.26)}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ffd740}.mat-radio-button.mat-accent .mat-radio-inner-circle{background-color:#ffd740}.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element{background-color:rgba(255,215,64,.26)}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn .mat-radio-inner-circle{background-color:#f44336}.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element{background-color:rgba(244,67,54,.26)}.mat-select-content,.mat-select-panel-done-animating{background:#fff}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#673ab7}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ffd740}.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow,.mat-form-field.mat-focused.mat-warn .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{background-color:#fff;color:rgba(0,0,0,.87)}.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{background-color:#ffc107}.mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background-color:rgba(255,193,7,.5)}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:rgba(0,0,0,.06)}.mat-slide-toggle .mat-ripple-element{background-color:rgba(255,193,7,.12)}.mat-slide-toggle.mat-primary.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{background-color:#673ab7}.mat-slide-toggle.mat-primary.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background-color:rgba(103,58,183,.5)}.mat-slide-toggle.mat-primary:not(.mat-checked) .mat-ripple-element{background-color:rgba(0,0,0,.06)}.mat-slide-toggle.mat-primary .mat-ripple-element{background-color:rgba(103,58,183,.12)}.mat-slide-toggle.mat-warn.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background-color:rgba(244,67,54,.5)}.mat-slide-toggle.mat-warn:not(.mat-checked) .mat-ripple-element{background-color:rgba(0,0,0,.06)}.mat-slide-toggle.mat-warn .mat-ripple-element{background-color:rgba(244,67,54,.12)}.mat-disabled .mat-slide-toggle-thumb{background-color:#bdbdbd}.mat-disabled .mat-slide-toggle-bar{background-color:rgba(0,0,0,.1)}.mat-slide-toggle-thumb{background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#673ab7}.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#ffd740}.mat-accent .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#f44336}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-slider-focus-ring{background-color:rgba(255,215,64,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill,.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper::after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(to right,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.38)}.mat-step-header .mat-step-icon{background-color:#673ab7;color:#fff}.mat-step-header .mat-step-icon-not-touched{background-color:rgba(0,0,0,.38);color:#fff}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line::before{border-left-color:rgba(0,0,0,.12)}.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-primary .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-primary .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-primary .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(209,196,233,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#673ab7}.mat-tab-group.mat-primary.mat-background-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-accent .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-accent .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-accent .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(255,229,127,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ffd740}.mat-tab-group.mat-accent.mat-background-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent .mat-ink-bar{background-color:rgba(0,0,0,.87)}.mat-tab-group.mat-warn .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-warn .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-warn .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-warn .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-background-primary .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-primary .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-primary .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(209,196,233,.3)}.mat-tab-group.mat-background-primary .mat-tab-header,.mat-tab-group.mat-background-primary .mat-tab-links,.mat-tab-nav-bar.mat-background-primary .mat-tab-header,.mat-tab-nav-bar.mat-background-primary .mat-tab-links{background-color:#673ab7}.mat-tab-group.mat-background-primary .mat-tab-label,.mat-tab-group.mat-background-primary .mat-tab-link,.mat-tab-nav-bar.mat-background-primary .mat-tab-label,.mat-tab-nav-bar.mat-background-primary .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-primary .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-tab-group.mat-background-accent .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-background-accent .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-accent .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-accent .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(255,229,127,.3)}.mat-tab-group.mat-background-accent .mat-tab-header,.mat-tab-group.mat-background-accent .mat-tab-links,.mat-tab-nav-bar.mat-background-accent .mat-tab-header,.mat-tab-nav-bar.mat-background-accent .mat-tab-links{background-color:#ffd740}.mat-tab-group.mat-background-accent .mat-tab-label,.mat-tab-group.mat-background-accent .mat-tab-link,.mat-tab-nav-bar.mat-background-accent .mat-tab-label,.mat-tab-nav-bar.mat-background-accent .mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-accent .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent .mat-ripple-element{background-color:rgba(0,0,0,.12)}.mat-tab-group.mat-background-warn .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-background-warn .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-warn .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-warn .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-background-warn .mat-tab-header,.mat-tab-group.mat-background-warn .mat-tab-links,.mat-tab-nav-bar.mat-background-warn .mat-tab-header,.mat-tab-nav-bar.mat-background-warn .mat-tab-links{background-color:#f44336}.mat-tab-group.mat-background-warn .mat-tab-label,.mat-tab-group.mat-background-warn .mat-tab-link,.mat-tab-nav-bar.mat-background-warn .mat-tab-label,.mat-tab-nav-bar.mat-background-warn .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#673ab7;color:#fff}.mat-toolbar.mat-accent{background:#ffd740;color:rgba(0,0,0,.87)}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-snack-bar-container{background:#323232;color:#fff}.mat-simple-snackbar-action{line-height:1;font-family:inherit;font-size:inherit;font-weight:500;color:#ffd740}
\ No newline at end of file
Index: plugins/htmlinterface/html/styles.ef26c6a93b31d2372f33.bundle.css
===================================================================
--- /dev/null
+++ plugins/htmlinterface/html/styles.ef26c6a93b31d2372f33.bundle.css
@@ -0,0 +1 @@
+.mat-elevation-z0{-webkit-box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-elevation-z1{-webkit-box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-elevation-z2{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-elevation-z3{-webkit-box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12);box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-elevation-z4{-webkit-box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-elevation-z5{-webkit-box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12);box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.mat-elevation-z6{-webkit-box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-elevation-z7{-webkit-box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12);box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.mat-elevation-z8{-webkit-box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-elevation-z9{-webkit-box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12);box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.mat-elevation-z10{-webkit-box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12);box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.mat-elevation-z11{-webkit-box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12);box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.mat-elevation-z12{-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12);box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-elevation-z13{-webkit-box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12);box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.mat-elevation-z14{-webkit-box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12);box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.mat-elevation-z15{-webkit-box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12);box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.mat-elevation-z16{-webkit-box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-elevation-z17{-webkit-box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12);box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.mat-elevation-z18{-webkit-box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12);box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.mat-elevation-z19{-webkit-box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12);box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.mat-elevation-z20{-webkit-box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12);box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.mat-elevation-z21{-webkit-box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12);box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.mat-elevation-z22{-webkit-box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12);box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.mat-elevation-z23{-webkit-box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12);box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.mat-elevation-z24{-webkit-box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-h1,.mat-headline,.mat-typography h1{font:400 24px/32px Roboto,"Helvetica Neue",sans-serif;margin:0 0 16px}.mat-h2,.mat-title,.mat-typography h2{font:500 20px/32px Roboto,"Helvetica Neue",sans-serif;margin:0 0 16px}.mat-h3,.mat-subheading-2,.mat-typography h3{font:400 16px/28px Roboto,"Helvetica Neue",sans-serif;margin:0 0 16px}.mat-h4,.mat-subheading-1,.mat-typography h4{font:400 15px/24px Roboto,"Helvetica Neue",sans-serif;margin:0 0 16px}.mat-h5,.mat-typography h5{font:400 11.62px/20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-h6,.mat-typography h6{font:400 9.38px/20px Roboto,"Helvetica Neue",sans-serif;margin:0 0 12px}.mat-body-2,.mat-body-strong{font:500 14px/24px Roboto,"Helvetica Neue",sans-serif}.mat-body,.mat-body-1,.mat-typography{font:400 14px/20px Roboto,"Helvetica Neue",sans-serif}.mat-body p,.mat-body-1 p,.mat-typography p{margin:0 0 12px}.mat-caption,.mat-small{font:400 12px/20px Roboto,"Helvetica Neue",sans-serif}.mat-display-4,.mat-typography .mat-display-4{font:300 112px/112px Roboto,"Helvetica Neue",sans-serif;margin:0 0 56px;letter-spacing:-.05em}.mat-display-3,.mat-typography .mat-display-3{font:400 56px/56px Roboto,"Helvetica Neue",sans-serif;margin:0 0 64px;letter-spacing:-.02em}.mat-display-2,.mat-typography .mat-display-2{font:400 45px/48px Roboto,"Helvetica Neue",sans-serif;margin:0 0 64px;letter-spacing:-.005em}.mat-display-1,.mat-typography .mat-display-1{font:400 34px/40px Roboto,"Helvetica Neue",sans-serif;margin:0 0 64px}.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button,.mat-stroked-button{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-button-toggle,.mat-card{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-card-title{font-size:24px;font-weight:400}.mat-card-content,.mat-card-header .mat-card-title,.mat-card-subtitle{font-size:14px}.mat-checkbox{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-checkbox-layout .mat-checkbox-label{line-height:24px}.mat-chip{font-size:13px;line-height:18px}.mat-chip .mat-chip-remove.mat-icon{font-size:18px}.mat-table{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-header-cell{font-size:12px;font-weight:500}.mat-cell{font-size:14px}.mat-calendar{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-calendar-body{font-size:13px}.mat-calendar-body-label,.mat-calendar-period-button{font-size:14px;font-weight:500}.mat-calendar-table-header th{font-size:11px;font-weight:400}.mat-dialog-title{font:500 20px/32px Roboto,"Helvetica Neue",sans-serif}.mat-expansion-panel-header{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content{font:400 14px/20px Roboto,"Helvetica Neue",sans-serif}.mat-form-field{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,"Helvetica Neue",sans-serif}.mat-form-field-wrapper{padding-bottom:1.25em}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{font-size:150%;line-height:1.125}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{height:1.5em;width:1.5em}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{height:1.125em;line-height:1.125}.mat-form-field-infix{padding:.4375em 0;border-top:.84375em solid transparent}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{-webkit-transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.33333%}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{-webkit-transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.33334%}.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{-webkit-transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.33335%}.mat-form-field-label-wrapper{top:-.84375em;padding-top:.84375em}.mat-form-field-label{top:1.28125em}.mat-form-field-underline{bottom:1.25em}.mat-form-field-subscript-wrapper{font-size:75%;margin-top:.54167em;top:calc(100% - 1.66667em)}.mat-grid-tile-footer,.mat-grid-tile-header{font-size:14px}.mat-grid-tile-footer .mat-line,.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2),.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:12px}input.mat-input-element{margin-top:-.0625em}.mat-menu-item{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px;font-weight:400}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px}.mat-radio-button,.mat-select{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-select-trigger{height:1.125em}.mat-slide-toggle-content{font:400 14px/20px Roboto,"Helvetica Neue",sans-serif}.mat-slider-thumb-label-text{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-stepper-horizontal,.mat-stepper-vertical{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-step-label{font-size:14px;font-weight:400}.mat-step-label-selected{font-size:14px;font-weight:500}.mat-tab-group{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-tab-label,.mat-tab-link{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font:500 20px/32px Roboto,"Helvetica Neue",sans-serif;margin:0}.mat-tooltip{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset{font-size:14px;padding-top:9px;padding-bottom:9px}.mat-list-item,.mat-list-option{font-family:Roboto,"Helvetica Neue",sans-serif}.mat-list .mat-list-item,.mat-nav-list .mat-list-item,.mat-selection-list .mat-list-item{font-size:16px}.mat-list .mat-list-item .mat-line,.mat-nav-list .mat-list-item .mat-line,.mat-selection-list .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.mat-list .mat-list-item .mat-line:nth-child(n+2),.mat-nav-list .mat-list-item .mat-line:nth-child(n+2),.mat-selection-list .mat-list-item .mat-line:nth-child(n+2){font-size:14px}.mat-list .mat-list-option,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-option{font-size:16px}.mat-list .mat-list-option .mat-line,.mat-nav-list .mat-list-option .mat-line,.mat-selection-list .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.mat-list .mat-list-option .mat-line:nth-child(n+2),.mat-nav-list .mat-list-option .mat-line:nth-child(n+2),.mat-selection-list .mat-list-option .mat-line:nth-child(n+2){font-size:14px}.mat-list[dense] .mat-list-item,.mat-nav-list[dense] .mat-list-item,.mat-selection-list[dense] .mat-list-item{font-size:12px}.mat-list[dense] .mat-list-item .mat-line,.mat-nav-list[dense] .mat-list-item .mat-line,.mat-selection-list[dense] .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.mat-list[dense] .mat-list-item .mat-line:nth-child(n+2),.mat-list[dense] .mat-list-option,.mat-nav-list[dense] .mat-list-item .mat-line:nth-child(n+2),.mat-nav-list[dense] .mat-list-option,.mat-selection-list[dense] .mat-list-item .mat-line:nth-child(n+2),.mat-selection-list[dense] .mat-list-option{font-size:12px}.mat-list[dense] .mat-list-option .mat-line,.mat-nav-list[dense] .mat-list-option .mat-line,.mat-selection-list[dense] .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.mat-list[dense] .mat-list-option .mat-line:nth-child(n+2),.mat-nav-list[dense] .mat-list-option .mat-line:nth-child(n+2),.mat-selection-list[dense] .mat-list-option .mat-line:nth-child(n+2){font-size:12px}.mat-list[dense] .mat-subheader,.mat-nav-list[dense] .mat-subheader,.mat-selection-list[dense] .mat-subheader{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:12px;font-weight:500}.mat-option{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:16px;color:rgba(0,0,0,.87)}.mat-optgroup-label{font:500 14px/24px Roboto,"Helvetica Neue",sans-serif;color:rgba(0,0,0,.54)}.mat-simple-snackbar{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px}.mat-ripple{overflow:hidden}@media screen and (-ms-high-contrast:active){.mat-ripple{display:none}}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;-webkit-transition:opacity,-webkit-transform 0s cubic-bezier(0,0,.2,1);transition:opacity,-webkit-transform 0s cubic-bezier(0,0,.2,1);transition:opacity,transform 0s cubic-bezier(0,0,.2,1);transition:opacity,transform 0s cubic-bezier(0,0,.2,1),-webkit-transform 0s cubic-bezier(0,0,.2,1);-webkit-transform:scale(0);transform:scale(0)}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;-webkit-transition:opacity .4s cubic-bezier(.25,.8,.25,1);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.288)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.mat-ripple-element{background-color:rgba(0,0,0,.1)}.mat-option:focus:not(.mat-option-disabled),.mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#673ab7}.mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#ffd740}.mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-active{background:rgba(0,0,0,.04);color:rgba(0,0,0,.87)}.mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.mat-pseudo-checkbox::after{color:#fafafa}.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate,.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate{background:#ffd740}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#673ab7}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-theme-loaded-marker{display:none}.mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.mat-button,.mat-icon-button,.mat-stroked-button{background:0 0}.mat-button.mat-primary .mat-button-focus-overlay,.mat-icon-button.mat-primary .mat-button-focus-overlay,.mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:rgba(103,58,183,.12)}.mat-button.mat-accent .mat-button-focus-overlay,.mat-icon-button.mat-accent .mat-button-focus-overlay,.mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:rgba(255,215,64,.12)}.mat-button.mat-warn .mat-button-focus-overlay,.mat-icon-button.mat-warn .mat-button-focus-overlay,.mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:rgba(244,67,54,.12)}.mat-button[disabled] .mat-button-focus-overlay,.mat-icon-button[disabled] .mat-button-focus-overlay,.mat-stroked-button[disabled] .mat-button-focus-overlay{background-color:transparent}.mat-button.mat-primary,.mat-icon-button.mat-primary,.mat-stroked-button.mat-primary{color:#673ab7}.mat-button.mat-accent,.mat-icon-button.mat-accent,.mat-stroked-button.mat-accent{color:#ffd740}.mat-button.mat-warn,.mat-icon-button.mat-warn,.mat-stroked-button.mat-warn{color:#f44336}.mat-button.mat-accent[disabled],.mat-button.mat-primary[disabled],.mat-button.mat-warn[disabled],.mat-button[disabled][disabled],.mat-icon-button.mat-accent[disabled],.mat-icon-button.mat-primary[disabled],.mat-icon-button.mat-warn[disabled],.mat-icon-button[disabled][disabled],.mat-stroked-button.mat-accent[disabled],.mat-stroked-button.mat-primary[disabled],.mat-stroked-button.mat-warn[disabled],.mat-stroked-button[disabled][disabled]{color:rgba(0,0,0,.26)}.mat-fab,.mat-mini-fab,.mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.mat-fab.mat-primary,.mat-mini-fab.mat-primary,.mat-raised-button.mat-primary{color:#fff;background-color:#673ab7}.mat-fab.mat-accent,.mat-mini-fab.mat-accent,.mat-raised-button.mat-accent{color:rgba(0,0,0,.87);background-color:#ffd740}.mat-fab.mat-warn,.mat-mini-fab.mat-warn,.mat-raised-button.mat-warn{color:#fff;background-color:#f44336}.mat-fab.mat-accent[disabled],.mat-fab.mat-primary[disabled],.mat-fab.mat-warn[disabled],.mat-fab[disabled][disabled],.mat-mini-fab.mat-accent[disabled],.mat-mini-fab.mat-primary[disabled],.mat-mini-fab.mat-warn[disabled],.mat-mini-fab[disabled][disabled],.mat-raised-button.mat-accent[disabled],.mat-raised-button.mat-primary[disabled],.mat-raised-button.mat-warn[disabled],.mat-raised-button[disabled][disabled]{color:rgba(0,0,0,.26);background-color:rgba(0,0,0,.12)}.mat-fab.mat-primary .mat-ripple-element,.mat-mini-fab.mat-primary .mat-ripple-element,.mat-raised-button.mat-primary .mat-ripple-element{background-color:rgba(255,255,255,.2)}.mat-fab.mat-accent .mat-ripple-element,.mat-mini-fab.mat-accent .mat-ripple-element,.mat-raised-button.mat-accent .mat-ripple-element{background-color:rgba(0,0,0,.2)}.mat-fab.mat-warn .mat-ripple-element,.mat-mini-fab.mat-warn .mat-ripple-element,.mat-raised-button.mat-warn .mat-ripple-element{background-color:rgba(255,255,255,.2)}.mat-button.mat-primary .mat-ripple-element{background-color:rgba(103,58,183,.1)}.mat-button.mat-accent .mat-ripple-element{background-color:rgba(255,215,64,.1)}.mat-button.mat-warn .mat-ripple-element{background-color:rgba(244,67,54,.1)}.mat-flat-button{color:rgba(0,0,0,.87);background-color:#fff}.mat-flat-button.mat-primary{color:#fff;background-color:#673ab7}.mat-flat-button.mat-accent{color:rgba(0,0,0,.87);background-color:#ffd740}.mat-flat-button.mat-warn{color:#fff;background-color:#f44336}.mat-flat-button.mat-accent[disabled],.mat-flat-button.mat-primary[disabled],.mat-flat-button.mat-warn[disabled],.mat-flat-button[disabled][disabled]{color:rgba(0,0,0,.26);background-color:rgba(0,0,0,.12)}.mat-flat-button.mat-primary .mat-ripple-element{background-color:rgba(255,255,255,.2)}.mat-flat-button.mat-accent .mat-ripple-element{background-color:rgba(0,0,0,.2)}.mat-flat-button.mat-warn .mat-ripple-element{background-color:rgba(255,255,255,.2)}.mat-icon-button.mat-primary .mat-ripple-element{background-color:rgba(103,58,183,.2)}.mat-icon-button.mat-accent .mat-ripple-element{background-color:rgba(255,215,64,.2)}.mat-icon-button.mat-warn .mat-ripple-element{background-color:rgba(244,67,54,.2)}.mat-button-toggle{color:rgba(0,0,0,.38)}.mat-button-toggle.cdk-focused .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.mat-button-toggle-disabled{background-color:#eee;color:rgba(0,0,0,.26)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-card{background:#fff;color:rgba(0,0,0,.87)}.mat-card-subtitle{color:rgba(0,0,0,.54)}.mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.mat-checkbox-checkmark{fill:#fafafa}.mat-checkbox-checkmark-path{stroke:#fafafa!important}.mat-checkbox-mixedmark{background-color:#fafafa}.mat-checkbox-checked.mat-primary .mat-checkbox-background,.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#673ab7}.mat-checkbox-checked.mat-accent .mat-checkbox-background,.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#ffd740}.mat-checkbox-checked.mat-warn .mat-checkbox-background,.mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#f44336}.mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.mat-checkbox-disabled .mat-checkbox-label{color:#b0b0b0}.mat-checkbox:not(.mat-checkbox-disabled).mat-primary .mat-checkbox-ripple .mat-ripple-element{background-color:rgba(103,58,183,.26)}.mat-checkbox:not(.mat-checkbox-disabled).mat-accent .mat-checkbox-ripple .mat-ripple-element{background-color:rgba(255,215,64,.26)}.mat-checkbox:not(.mat-checkbox-disabled).mat-warn .mat-checkbox-ripple .mat-ripple-element{background-color:rgba(244,67,54,.26)}.mat-chip:not(.mat-basic-chip){background-color:#e0e0e0;color:rgba(0,0,0,.87)}.mat-chip:not(.mat-basic-chip) .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.mat-chip:not(.mat-basic-chip) .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-chip-selected.mat-primary{background-color:#673ab7;color:#fff}.mat-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-chip-selected.mat-primary .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.mat-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-chip-selected.mat-warn .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-chip-selected.mat-accent{background-color:#ffd740;color:rgba(0,0,0,.87)}.mat-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.mat-chip.mat-chip-selected.mat-accent .mat-chip-remove:hover{opacity:.54}.mat-table{background:#fff}.mat-header-row,.mat-row{border-bottom-color:rgba(0,0,0,.12)}.mat-header-cell{color:rgba(0,0,0,.54)}.mat-cell{color:rgba(0,0,0,.87)}.mat-datepicker-content{background-color:#fff;color:rgba(0,0,0,.87)}.mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.mat-calendar-next-button,.mat-calendar-previous-button{color:rgba(0,0,0,.54)}.mat-calendar-table-header{color:rgba(0,0,0,.38)}.mat-calendar-table-header-divider::after{background:rgba(0,0,0,.12)}.mat-calendar-body-label{color:rgba(0,0,0,.54)}.mat-calendar-body-cell-content{color:rgba(0,0,0,.87);border-color:transparent}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){color:rgba(0,0,0,.38)}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:rgba(0,0,0,.04)}.mat-calendar-body-selected{background-color:#673ab7;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(103,58,183,.4)}.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.38)}.mat-calendar-body-today.mat-calendar-body-selected{-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.18)}.mat-datepicker-toggle-active{color:#673ab7}.mat-dialog-container{background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused,.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:rgba(0,0,0,.04)}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator::after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.54)}.mat-focused .mat-form-field-label{color:#673ab7}.mat-focused .mat-form-field-label.mat-accent{color:#ffd740}.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#ffd740}.mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-disabled .mat-form-field-underline{background-image:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(0,0,0,.42)),color-stop(33%,rgba(0,0,0,.42)),color-stop(0,transparent));background-image:linear-gradient(to right,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 1px;background-repeat:repeat-x}.mat-form-field-ripple{background-color:#673ab7}.mat-form-field-ripple.mat-accent{background-color:#ffd740}.mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-invalid .mat-form-field-label,.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker,.mat-form-field-invalid .mat-form-field-label.mat-accent{color:#f44336}.mat-form-field-invalid .mat-form-field-ripple{background-color:#f44336}.mat-error{color:#f44336}.mat-icon.mat-primary{color:#673ab7}.mat-icon.mat-accent{color:#ffd740}.mat-icon.mat-warn{color:#f44336}.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#673ab7}.mat-input-element::-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-accent .mat-input-element{caret-color:#ffd740}.mat-form-field-invalid .mat-input-element,.mat-warn .mat-input-element{caret-color:#f44336}.mat-list .mat-list-item,.mat-list .mat-list-option,.mat-nav-list .mat-list-item,.mat-nav-list .mat-list-option,.mat-selection-list .mat-list-item,.mat-selection-list .mat-list-option{color:rgba(0,0,0,.87)}.mat-list .mat-subheader,.mat-nav-list .mat-subheader,.mat-selection-list .mat-subheader{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500;color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-list-option.mat-list-item-focus,.mat-list-option:hover,.mat-nav-list .mat-list-item.mat-list-item-focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-menu-panel{background:#fff}.mat-menu-item{background:0 0;color:rgba(0,0,0,.87)}.mat-menu-item[disabled]{color:rgba(0,0,0,.38)}.mat-menu-item .mat-icon:not([color]),.mat-menu-item-submenu-trigger::after{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-progress-bar-background{fill:#d1c4e9}.mat-progress-bar-buffer{background-color:#d1c4e9}.mat-progress-bar-fill::after{background-color:#673ab7}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#ffe57f}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#ffe57f}.mat-progress-bar.mat-accent .mat-progress-bar-fill::after{background-color:#ffd740}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#ffcdd2}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#ffcdd2}.mat-progress-bar.mat-warn .mat-progress-bar-fill::after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#673ab7}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ffd740}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#673ab7}.mat-radio-button.mat-primary .mat-radio-inner-circle{background-color:#673ab7}.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element{background-color:rgba(103,58,183,.26)}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ffd740}.mat-radio-button.mat-accent .mat-radio-inner-circle{background-color:#ffd740}.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element{background-color:rgba(255,215,64,.26)}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn .mat-radio-inner-circle{background-color:#f44336}.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element{background-color:rgba(244,67,54,.26)}.mat-select-content,.mat-select-panel-done-animating{background:#fff}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#673ab7}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ffd740}.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow,.mat-form-field.mat-focused.mat-warn .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{background-color:#fff;color:rgba(0,0,0,.87)}.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{background-color:#ffc107}.mat-slide-toggle.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background-color:rgba(255,193,7,.5)}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:rgba(0,0,0,.06)}.mat-slide-toggle .mat-ripple-element{background-color:rgba(255,193,7,.12)}.mat-slide-toggle.mat-primary.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{background-color:#673ab7}.mat-slide-toggle.mat-primary.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background-color:rgba(103,58,183,.5)}.mat-slide-toggle.mat-primary:not(.mat-checked) .mat-ripple-element{background-color:rgba(0,0,0,.06)}.mat-slide-toggle.mat-primary .mat-ripple-element{background-color:rgba(103,58,183,.12)}.mat-slide-toggle.mat-warn.mat-checked:not(.mat-disabled) .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked:not(.mat-disabled) .mat-slide-toggle-bar{background-color:rgba(244,67,54,.5)}.mat-slide-toggle.mat-warn:not(.mat-checked) .mat-ripple-element{background-color:rgba(0,0,0,.06)}.mat-slide-toggle.mat-warn .mat-ripple-element{background-color:rgba(244,67,54,.12)}.mat-disabled .mat-slide-toggle-thumb{background-color:#bdbdbd}.mat-disabled .mat-slide-toggle-bar{background-color:rgba(0,0,0,.1)}.mat-slide-toggle-thumb{background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#673ab7}.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#ffd740}.mat-accent .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#f44336}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-slider-focus-ring{background-color:rgba(255,215,64,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill,.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper::after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(to right,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.38)}.mat-step-header .mat-step-icon{background-color:#673ab7;color:#fff}.mat-step-header .mat-step-icon-not-touched{background-color:rgba(0,0,0,.38);color:#fff}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line::before{border-left-color:rgba(0,0,0,.12)}.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-primary .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-primary .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-primary .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(209,196,233,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#673ab7}.mat-tab-group.mat-primary.mat-background-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-accent .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-accent .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-accent .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(255,229,127,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ffd740}.mat-tab-group.mat-accent.mat-background-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent .mat-ink-bar{background-color:rgba(0,0,0,.87)}.mat-tab-group.mat-warn .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-warn .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-warn .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-warn .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-background-primary .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-primary .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-primary .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(209,196,233,.3)}.mat-tab-group.mat-background-primary .mat-tab-header,.mat-tab-group.mat-background-primary .mat-tab-links,.mat-tab-nav-bar.mat-background-primary .mat-tab-header,.mat-tab-nav-bar.mat-background-primary .mat-tab-links{background-color:#673ab7}.mat-tab-group.mat-background-primary .mat-tab-label,.mat-tab-group.mat-background-primary .mat-tab-link,.mat-tab-nav-bar.mat-background-primary .mat-tab-label,.mat-tab-nav-bar.mat-background-primary .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-primary .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-tab-group.mat-background-accent .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-background-accent .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-accent .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-accent .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(255,229,127,.3)}.mat-tab-group.mat-background-accent .mat-tab-header,.mat-tab-group.mat-background-accent .mat-tab-links,.mat-tab-nav-bar.mat-background-accent .mat-tab-header,.mat-tab-nav-bar.mat-background-accent .mat-tab-links{background-color:#ffd740}.mat-tab-group.mat-background-accent .mat-tab-label,.mat-tab-group.mat-background-accent .mat-tab-link,.mat-tab-nav-bar.mat-background-accent .mat-tab-label,.mat-tab-nav-bar.mat-background-accent .mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-accent .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent .mat-ripple-element{background-color:rgba(0,0,0,.12)}.mat-tab-group.mat-background-warn .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-group.mat-background-warn .mat-tab-link:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-warn .mat-tab-label:not(.mat-tab-disabled):focus,.mat-tab-nav-bar.mat-background-warn .mat-tab-link:not(.mat-tab-disabled):focus{background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-background-warn .mat-tab-header,.mat-tab-group.mat-background-warn .mat-tab-links,.mat-tab-nav-bar.mat-background-warn .mat-tab-header,.mat-tab-nav-bar.mat-background-warn .mat-tab-links{background-color:#f44336}.mat-tab-group.mat-background-warn .mat-tab-label,.mat-tab-group.mat-background-warn .mat-tab-link,.mat-tab-nav-bar.mat-background-warn .mat-tab-label,.mat-tab-nav-bar.mat-background-warn .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#673ab7;color:#fff}.mat-toolbar.mat-accent{background:#ffd740;color:rgba(0,0,0,.87)}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-snack-bar-container{background:#323232;color:#fff}.mat-simple-snackbar-action{line-height:1;font-family:inherit;font-size:inherit;font-weight:500;color:#ffd740}
\ No newline at end of file
Index: plugins/htmlinterface/htmlinterfacedialog.h
===================================================================
--- plugins/htmlinterface/htmlinterfacedialog.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2008 by Joris Guisson and Ivan Vasic *
- * joris.guisson@gmail.com *
- * ivasic@gmail.com *
- * *
- * Copyright (C) 2018 by Emmanuel Eytan *
- * eje211@gmail.com *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-
-#ifndef KTHTMLINTERFACEDIALOG_H
-#define KTHTMLINTERFACEDIALOG_H
-
-#include
-#include "ui_htmlinterfacewidget.h"
-
-namespace kt
-{
- class HtmlInterfacePlugin;
- class HtmlInterfaceModel;
-
- /**
- Dialog to manipulate the download order.
- */
- class HtmlInterfaceDialog : public QDialog, public Ui_HtmlInterfaceWidget
- {
- Q_OBJECT
- public:
- HtmlInterfaceDialog(HtmlInterfacePlugin* plugin, bt::TorrentInterface* tor, QWidget* parent);
- ~HtmlInterfaceDialog();
-
-// private slots:
-// void commitHtmlInterface();
-// void moveUp();
-// void moveDown();
-// void moveTop();
-// void moveBottom();
-// void itemSelectionChanged(const QItemSelection& new_sel, const QItemSelection& old_sel);
-// void customOrderEnableToggled(bool on);
-// void search(const QString& text);
-//
-// private:
-// bt::TorrentInterface* tor;
-// HtmlInterfacePlugin* plugin;
-// HtmlInterfaceModel* model;
-// };
-
-}
-
-#endif
Index: plugins/htmlinterface/htmlinterfacedialog.cpp
===================================================================
--- plugins/htmlinterface/htmlinterfacedialog.cpp
+++ /dev/null
@@ -1,222 +0,0 @@
-/***************************************************************************
- * Copyright (C) 2008 by Joris Guisson and Ivan Vasic *
- * joris.guisson@gmail.com *
- * ivasic@gmail.com *
- * *
- * Copyright (C) 2018 by Emmanuel Eytan *
- * eje211@gmail.com *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
- ***************************************************************************/
-
-
-#include "htmlinterfacedialog.h"
-
-#include
-#include
-
-#include
-
-#include
-#include "htmlinterfaceplugin.h"
-
-namespace kt
-{
-
- HtmlInterfaceDialog::HtmlInterfaceDialog(HtmlInterfacePlugin* plugin, bt::TorrentInterface* tor, QWidget* parent)
- : QDialog(parent), tor(tor), plugin(plugin)
- {
-// setupUi(this);
-// connect(buttonBox, &QDialogButtonBox::accepted, this, &HtmlInterfaceDialog::accept);
-// connect(buttonBox, &QDialogButtonBox::rejected, this, &HtmlInterfaceDialog::reject);
-// connect(this, &HtmlInterfaceDialog::accepted, this, &HtmlInterfaceDialog::commitHtmlInterface);
-// setWindowTitle(i18n("File Download Order"));
-// m_top_label->setText(i18n("File download order for %1 :", tor->getDisplayName()));
-//
-// HtmlInterfaceManager* dom = plugin->manager(tor);
-// m_custom_order_enabled->setChecked(dom != 0);
-// m_order->setEnabled(dom != 0);
-// m_move_up->setEnabled(false);
-// m_move_down->setEnabled(false);
-// m_move_top->setEnabled(false);
-// m_move_bottom->setEnabled(false);
-// m_search_files->setEnabled(false);
-//
-// m_move_up->setIcon(QIcon::fromTheme(QStringLiteral("go-up")));
-// connect(m_move_up, &QPushButton::clicked, this, &HtmlInterfaceDialog::moveUp);
-// m_move_down->setIcon(QIcon::fromTheme(QStringLiteral("go-down")));
-// connect(m_move_down, &QPushButton::clicked, this, &HtmlInterfaceDialog::moveDown);
-// m_move_top->setIcon(QIcon::fromTheme(QStringLiteral("go-top")));
-// connect(m_move_top, &QPushButton::clicked, this, &HtmlInterfaceDialog::moveTop);
-// m_move_bottom->setIcon(QIcon::fromTheme(QStringLiteral("go-bottom")));
-// connect(m_move_bottom, &QPushButton::clicked, this, &HtmlInterfaceDialog::moveBottom);
-//
-// m_order->setSelectionMode(QAbstractItemView::ContiguousSelection);
-// m_order->setDragEnabled(true);
-// m_order->setAcceptDrops(true);
-// m_order->setDropIndicatorShown(true);
-// m_order->setDragDropMode(QAbstractItemView::InternalMove);
-//
-// model = new HtmlInterfaceModel(tor, this);
-// if (dom)
-// model->initOrder(dom->downloadOrder());
-// m_order->setModel(model);
-//
-// QSize s = KSharedConfig::openConfig()->group("HtmlInterfaceDialog").readEntry("size", size());
-// resize(s);
-//
-// connect(m_order->selectionModel(), SIGNAL(selectionChanged(QItemSelection, QItemSelection)),
-// this, SLOT(itemSelectionChanged(QItemSelection, QItemSelection)));
-// connect(m_custom_order_enabled, &QCheckBox::toggled, this, &HtmlInterfaceDialog::customOrderEnableToggled);
-// connect(m_search_files, &QLineEdit::textChanged, this, &HtmlInterfaceDialog::search);
-//
-// QMenu* sort_by_menu = new QMenu(m_sort_by);
-// sort_by_menu->addAction(i18n("Name"), model, SLOT(sortByName()));
-// sort_by_menu->addAction(i18n("Seasons and Episodes"), model, SLOT(sortBySeasonsAndEpisodes()));
-// sort_by_menu->addAction(i18n("Album Track Order"), model, SLOT(sortByAlbumTrackOrder()));
-// m_sort_by->setMenu(sort_by_menu);
-// m_sort_by->setPopupMode(QToolButton::InstantPopup);
-// m_sort_by->setEnabled(false);
- }
-
-
- HtmlInterfaceDialog::~HtmlInterfaceDialog()
- {
- KSharedConfig::openConfig()->group("HtmlInterfaceDialog").writeEntry("size", size());
- }
-
-// void HtmlInterfaceDialog::commitHtmlInterface()
-// {
-// if (m_custom_order_enabled->isChecked())
-// {
-// HtmlInterfaceManager* dom = plugin->manager(tor);
-// if (!dom)
-// {
-// dom = plugin->createManager(tor);
-// connect(tor, &bt::TorrentInterface::chunkDownloaded, dom, &HtmlInterfaceManager::chunkDownloaded);
-// }
-//
-// dom->setHtmlInterface(model->downloadOrder());
-// dom->save();
-// dom->update();
-// }
-// else
-// {
-// HtmlInterfaceManager* dom = plugin->manager(tor);
-// if (dom)
-// {
-// dom->disable();
-// plugin->destroyManager(tor);
-// }
-// }
-// }
-//
-// void HtmlInterfaceDialog::moveUp()
-// {
-// QModelIndexList idx = m_order->selectionModel()->selectedRows();
-// model->moveUp(idx.front().row(), idx.count());
-// if (idx.front().row() > 0)
-// {
-// QItemSelection sel(model->index(idx.first().row() - 1), model->index(idx.last().row() - 1));
-// m_order->selectionModel()->select(sel, QItemSelectionModel::ClearAndSelect);
-// }
-// }
-//
-// void HtmlInterfaceDialog::moveTop()
-// {
-// QModelIndexList idx = m_order->selectionModel()->selectedRows();
-// model->moveTop(idx.front().row(), idx.count());
-// if (idx.front().row() > 0)
-// {
-// QItemSelection sel(model->index(0), model->index(idx.count() - 1));
-// m_order->selectionModel()->select(sel, QItemSelectionModel::ClearAndSelect);
-// }
-// }
-//
-// void HtmlInterfaceDialog::moveDown()
-// {
-// QModelIndexList idx = m_order->selectionModel()->selectedRows();
-// model->moveDown(idx.front().row(), idx.count());
-// if (idx.back().row() < (int)tor->getNumFiles() - 1)
-// {
-// QItemSelection sel(model->index(idx.first().row() + 1), model->index(idx.last().row() + 1));
-// m_order->selectionModel()->select(sel, QItemSelectionModel::ClearAndSelect);
-// }
-// }
-//
-// void HtmlInterfaceDialog::moveBottom()
-// {
-// QModelIndexList idx = m_order->selectionModel()->selectedRows();
-// model->moveBottom(idx.front().row(), idx.count());
-// if (idx.back().row() < (int)tor->getNumFiles() - 1)
-// {
-// QItemSelection sel(model->index(tor->getNumFiles() - idx.size()), model->index(tor->getNumFiles() - 1));
-// m_order->selectionModel()->select(sel, QItemSelectionModel::ClearAndSelect);
-// }
-// }
-//
-// void HtmlInterfaceDialog::itemSelectionChanged(const QItemSelection& new_sel, const QItemSelection& old_sel)
-// {
-// Q_UNUSED(old_sel);
-// if (new_sel.empty())
-// {
-// m_move_down->setEnabled(false);
-// m_move_up->setEnabled(false);
-// m_move_top->setEnabled(false);
-// m_move_down->setEnabled(false);
-// }
-// else
-// {
-// bool up_ok = new_sel.front().topLeft().row() > 0;
-// bool down_ok = new_sel.back().bottomRight().row() != (int)tor->getNumFiles() - 1;
-// m_move_up->setEnabled(up_ok);
-// m_move_top->setEnabled(up_ok);
-// m_move_down->setEnabled(down_ok);
-// m_move_bottom->setEnabled(down_ok);
-// }
-// }
-//
-// void HtmlInterfaceDialog::customOrderEnableToggled(bool on)
-// {
-// m_search_files->setEnabled(on);
-// m_sort_by->setEnabled(on);
-// if (!on)
-// {
-// m_move_down->setEnabled(false);
-// m_move_up->setEnabled(false);
-// m_move_top->setEnabled(false);
-// m_move_down->setEnabled(false);
-// }
-// else
-// {
-// itemSelectionChanged(m_order->selectionModel()->selection(), QItemSelection());
-// }
-// }
-//
-// void HtmlInterfaceDialog::search(const QString& text)
-// {
-// if (text.isEmpty())
-// {
-// model->clearHighLights();
-// }
-// else
-// {
-// QModelIndex idx = model->find(text);
-// if (idx.isValid())
-// m_order->scrollTo(idx);
-// }
-// }
-}
Index: plugins/htmlinterface/htmlinterfaceplugin.h
===================================================================
--- plugins/htmlinterface/htmlinterfaceplugin.h
+++ plugins/htmlinterface/htmlinterfaceplugin.h
@@ -47,27 +47,10 @@
void currentTorrentChanged(bt::TorrentInterface* tc) override;
HtmlInterfacePlugin * instance;
-// QString parentPart() const override {return QStringLiteral("torrentactivity");}
-//
-// /// Get the download order manager for a torrent (returns 0 if none exists)
-// HtmlInterfaceManager* manager(bt::TorrentInterface* tc);
-//
-// /// Create a manager for a torrent
-// HtmlInterfaceManager* createManager(bt::TorrentInterface* tc);
-//
-// /// Destroy a manager
-// void destroyManager(bt::TorrentInterface* tc);
-//
-// private slots:
-// void showHtmlInterfaceDialog();
-// void torrentAdded(bt::TorrentInterface* tc);
-// void torrentRemoved(bt::TorrentInterface* tc);
-//
+
private:
QThread* thread;
- WebServer * worker;
-// QAction * download_order_action;
-// bt::PtrMap managers;
+ WebServer * ws;
};
}
Index: plugins/htmlinterface/htmlinterfaceplugin.cpp
===================================================================
--- plugins/htmlinterface/htmlinterfaceplugin.cpp
+++ plugins/htmlinterface/htmlinterfaceplugin.cpp
@@ -29,15 +29,9 @@
#include
#include "htmlinterfaceplugin.h"
-// #include
-// #include
#include
#include
-// #include
#include
-#include "mongoose.h"
-// #include "htmlinterfacemanager.h"
-// #include "htmlinterfacedialog.h"
#include "webserver.h"
@@ -53,11 +47,6 @@
{
Q_UNUSED(args);
qInfo("I've still been constructed!");
-// download_order_action = new QAction(QIcon::fromTheme(QStringLiteral("view-sort-ascending")), i18n("File Download Order"), this);
-// connect(download_order_action, &QAction::triggered, this, &HtmlInterfacePlugin::showHtmlInterfaceDialog);
-// actionCollection()->addAction(QStringLiteral("download_order"), download_order_action);
-// setXMLFile(QStringLiteral("ktorrent_htmlinterfaceui.rc"));
-// managers.setAutoDelete(true);
}
@@ -74,89 +63,19 @@
void HtmlInterfacePlugin::load()
{
qInfo("I've been loaded");
- HtmlInterfacePlugin::instance = this;
- thread = new QThread;
- worker = new WebServer(getCore());
- worker->moveToThread(thread);
-// connect(worker, SIGNAL (error(QString)), this, SLOT (errorString(QString)));
- connect(thread, SIGNAL (started()), worker, SLOT (process()));
- connect(worker, SIGNAL (finished()), thread, SLOT (quit()));
- connect(worker, SIGNAL (finished()), worker, SLOT (deleteLater()));
- connect(thread, SIGNAL (finished()), thread, SLOT (deleteLater()));
- thread->start();
-// TorrentActivityInterface* ta = getGUI()->getTorrentActivity();
-// ta->addViewListener(this);
-// connect(getCore(), SIGNAL(torrentAdded(bt::TorrentInterface*)), this, SLOT(torrentAdded(bt::TorrentInterface*)));
-// connect(getCore(), SIGNAL(torrentRemoved(bt::TorrentInterface*)), this, SLOT(torrentRemoved(bt::TorrentInterface*)));
-// currentTorrentChanged(ta->getCurrentTorrent());
-//
-// kt::QueueManager* qman = getCore()->getQueueManager();
-// for (kt::QueueManager::iterator i = qman->begin(); i != qman->end(); i++)
-// torrentAdded(*i);
+ ws = new WebServer(getCore());
+ ws->process();
}
void HtmlInterfacePlugin::unload()
{
-// TorrentActivityInterface* ta = getGUI()->getTorrentActivity();
-// ta->removeViewListener(this);
-// disconnect(getCore(), SIGNAL(torrentAdded(bt::TorrentInterface*)), this, SLOT(torrentAdded(bt::TorrentInterface*)));
-// disconnect(getCore(), SIGNAL(torrentRemoved(bt::TorrentInterface*)), this, SLOT(torrentRemoved(bt::TorrentInterface*)));
-// managers.clear();
+ delete ws;
}
-
-// void HtmlInterfacePlugin::showHtmlInterfaceDialog()
-// {
-// bt::TorrentInterface* tor = getGUI()->getTorrentActivity()->getCurrentTorrent();
-// if (!tor || !tor->getStats().multi_file_torrent)
-// return;
-//
-// HtmlInterfaceDialog dlg(this, tor, getGUI()->getMainWindow());
-// dlg.exec();
-// }
-//
+
void HtmlInterfacePlugin::currentTorrentChanged(bt::TorrentInterface* tc)
{
-// download_order_action->setEnabled(tc && tc->getStats().multi_file_torrent);
}
-//
-// HtmlInterfaceManager* HtmlInterfacePlugin::manager(bt::TorrentInterface* tc)
-// {
-// return managers.find(tc);Aumyenne
-
-// }
-//
-// HtmlInterfaceManager* HtmlInterfacePlugin::createManager(bt::TorrentInterface* tc)
-// {
-// HtmlInterfaceManager* m = manager(tc);
-// if (m)
-// return m;
-//
-// m = new HtmlInterfaceManager(tc);
-// managers.insert(tc, m);
-// return m;
-// }
-//
-// void HtmlInterfacePlugin::destroyManager(bt::TorrentInterface* tc)
-// {
-// managers.erase(tc);
-// }
-//
-// void HtmlInterfacePlugin::torrentAdded(bt::TorrentInterface* tc)
-// {
-// if (bt::Exists(tc->getTorDir() + QStringLiteral("download_order")))
-// {
-// HtmlInterfaceManager* m = createManager(tc);
-// m->load();
-// m->update();
-// connect(tc, SIGNAL(chunkDownloaded(bt::TorrentInterface*, bt::Uint32)),
-// m, SLOT(chunkDownloaded(bt::TorrentInterface*, bt::Uint32)));
-// }
-// }
-//
-// void HtmlInterfacePlugin::torrentRemoved(bt::TorrentInterface* tc)
-// {
-// managers.erase(tc);
-// }
+
}
Index: plugins/htmlinterface/htmlinterfacewidget.ui
===================================================================
--- plugins/htmlinterface/htmlinterfacewidget.ui
+++ /dev/null
@@ -1,152 +0,0 @@
-
-
- DownloadOrderWidget
-
-
-
- 0
- 0
- 623
- 517
-
-
-
- File Download Order
-
-
- -
-
-
- File download order for:
-
-
-
- -
-
-
- Whether or not to enable a custom download order.
-
-
- Custom file download order enabled
-
-
-
- -
-
- -
-
-
- Qt::DefaultContextMenu
-
-
- Sort By
-
-
- Qt::ToolButtonTextBesideIcon
-
-
-
- -
-
-
- Search files
-
-
- true
-
-
-
-
-
- -
-
- -
-
-
- Order in which to download the files of a torrent. The file at the top will be downloaded first, followed by the second, then the third ...
-
-
-
- -
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
-
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- -
-
-
- QDialogButtonBox::Cancel|QDialogButtonBox::Ok
-
-
-
-
-
-
-
-
- m_custom_order_enabled
- toggled(bool)
- m_order
- setEnabled(bool)
-
-
- 141
- 33
-
-
- 166
- 113
-
-
-
-
-
Index: plugins/htmlinterface/mongoose.h
===================================================================
--- plugins/htmlinterface/mongoose.h
+++ /dev/null
@@ -1,6222 +0,0 @@
-#ifdef MG_MODULE_LINES
-#line 1 "mongoose/src/mg_common.h"
-#endif
-/*
- * Copyright (c) 2004-2013 Sergey Lyubka
- * Copyright (c) 2013-2015 Cesanta Software Limited
- * All rights reserved
- *
- * This software is dual-licensed: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation. For the terms of this
- * license, see .
- *
- * You are free to use this software under the terms of the GNU General
- * Public License, but WITHOUT ANY WARRANTY; without even the implied
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- * See the GNU General Public License for more details.
- *
- * Alternatively, you can license this software under a commercial
- * license, as set out in .
- */
-
-#ifndef CS_MONGOOSE_SRC_COMMON_H_
-#define CS_MONGOOSE_SRC_COMMON_H_
-
-#define MG_VERSION "6.11"
-
-/* Local tweaks, applied before any of Mongoose's own headers. */
-#ifdef MG_LOCALS
-#include
-#endif
-
-#endif /* CS_MONGOOSE_SRC_COMMON_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platform.h"
-#endif
-#ifndef CS_COMMON_PLATFORM_H_
-#define CS_COMMON_PLATFORM_H_
-
-/*
- * For the "custom" platform, includes and dependencies can be
- * provided through mg_locals.h.
- */
-#define CS_P_CUSTOM 0
-#define CS_P_UNIX 1
-#define CS_P_WINDOWS 2
-#define CS_P_ESP32 15
-#define CS_P_ESP8266 3
-#define CS_P_CC3100 6
-#define CS_P_CC3200 4
-#define CS_P_CC3220 17
-#define CS_P_MSP432 5
-#define CS_P_TM4C129 14
-#define CS_P_MBED 7
-#define CS_P_WINCE 8
-#define CS_P_NXP_LPC 13
-#define CS_P_NXP_KINETIS 9
-#define CS_P_NRF51 12
-#define CS_P_NRF52 10
-#define CS_P_PIC32 11
-#define CS_P_STM32 16
-/* Next id: 18 */
-
-/* If not specified explicitly, we guess platform by defines. */
-#ifndef CS_PLATFORM
-
-#if defined(TARGET_IS_MSP432P4XX) || defined(__MSP432P401R__)
-#define CS_PLATFORM CS_P_MSP432
-#elif defined(cc3200) || defined(TARGET_IS_CC3200)
-#define CS_PLATFORM CS_P_CC3200
-#elif defined(cc3220) || defined(TARGET_IS_CC3220)
-#define CS_PLATFORM CS_P_CC3220
-#elif defined(__unix__) || defined(__APPLE__)
-#define CS_PLATFORM CS_P_UNIX
-#elif defined(WINCE)
-#define CS_PLATFORM CS_P_WINCE
-#elif defined(_WIN32)
-#define CS_PLATFORM CS_P_WINDOWS
-#elif defined(__MBED__)
-#define CS_PLATFORM CS_P_MBED
-#elif defined(__USE_LPCOPEN)
-#define CS_PLATFORM CS_P_NXP_LPC
-#elif defined(FRDM_K64F) || defined(FREEDOM)
-#define CS_PLATFORM CS_P_NXP_KINETIS
-#elif defined(PIC32)
-#define CS_PLATFORM CS_P_PIC32
-#elif defined(ESP_PLATFORM)
-#define CS_PLATFORM CS_P_ESP32
-#elif defined(ICACHE_FLASH)
-#define CS_PLATFORM CS_P_ESP8266
-#elif defined(TARGET_IS_TM4C129_RA0) || defined(TARGET_IS_TM4C129_RA1) || \
- defined(TARGET_IS_TM4C129_RA2)
-#define CS_PLATFORM CS_P_TM4C129
-#elif defined(STM32)
-#define CS_PLATFORM CS_P_STM32
-#endif
-
-#ifndef CS_PLATFORM
-#error "CS_PLATFORM is not specified and we couldn't guess it."
-#endif
-
-#endif /* !defined(CS_PLATFORM) */
-
-#define MG_NET_IF_SOCKET 1
-#define MG_NET_IF_SIMPLELINK 2
-#define MG_NET_IF_LWIP_LOW_LEVEL 3
-#define MG_NET_IF_PIC32 4
-
-#define MG_SSL_IF_OPENSSL 1
-#define MG_SSL_IF_MBEDTLS 2
-#define MG_SSL_IF_SIMPLELINK 3
-
-/* Amalgamated: #include "common/platforms/platform_unix.h" */
-/* Amalgamated: #include "common/platforms/platform_windows.h" */
-/* Amalgamated: #include "common/platforms/platform_esp32.h" */
-/* Amalgamated: #include "common/platforms/platform_esp8266.h" */
-/* Amalgamated: #include "common/platforms/platform_cc3100.h" */
-/* Amalgamated: #include "common/platforms/platform_cc3200.h" */
-/* Amalgamated: #include "common/platforms/platform_cc3220.h" */
-/* Amalgamated: #include "common/platforms/platform_mbed.h" */
-/* Amalgamated: #include "common/platforms/platform_nrf51.h" */
-/* Amalgamated: #include "common/platforms/platform_nrf52.h" */
-/* Amalgamated: #include "common/platforms/platform_wince.h" */
-/* Amalgamated: #include "common/platforms/platform_nxp_lpc.h" */
-/* Amalgamated: #include "common/platforms/platform_nxp_kinetis.h" */
-/* Amalgamated: #include "common/platforms/platform_pic32.h" */
-/* Amalgamated: #include "common/platforms/platform_stm32.h" */
-
-/* Common stuff */
-
-#if !defined(WEAK)
-#if (defined(__GNUC__) || defined(__TI_COMPILER_VERSION__)) && !defined(_WIN32)
-#define WEAK __attribute__((weak))
-#else
-#define WEAK
-#endif
-#endif
-
-#ifdef __GNUC__
-#define NORETURN __attribute__((noreturn))
-#define NOINLINE __attribute__((noinline))
-#define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
-#define NOINSTR __attribute__((no_instrument_function))
-#define DO_NOT_WARN_UNUSED __attribute__((unused))
-#else
-#define NORETURN
-#define NOINLINE
-#define WARN_UNUSED_RESULT
-#define NOINSTR
-#define DO_NOT_WARN_UNUSED
-#endif /* __GNUC__ */
-
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
-#endif
-
-#endif /* CS_COMMON_PLATFORM_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_windows.h"
-#endif
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_WINDOWS_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_WINDOWS_H_
-#if CS_PLATFORM == CS_P_WINDOWS
-
-/*
- * MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015)
- * MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013)
- * MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012)
- * MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010)
- * MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008)
- * MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005)
- * MSVC++ 7.1 _MSC_VER == 1310 (Visual Studio 2003)
- * MSVC++ 7.0 _MSC_VER == 1300
- * MSVC++ 6.0 _MSC_VER == 1200
- * MSVC++ 5.0 _MSC_VER == 1100
- */
-#ifdef _MSC_VER
-#pragma warning(disable : 4127) /* FD_SET() emits warning, disable it */
-#pragma warning(disable : 4204) /* missing c99 support */
-#endif
-
-#ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
-#define _WINSOCK_DEPRECATED_NO_WARNINGS 1
-#endif
-
-#ifndef _CRT_SECURE_NO_WARNINGS
-#define _CRT_SECURE_NO_WARNINGS
-#endif
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#ifdef _MSC_VER
-#pragma comment(lib, "ws2_32.lib") /* Linking with winsock library */
-#endif
-
-#include
-#include
-#include
-#include
-
-#if _MSC_VER < 1700
-typedef int bool;
-#else
-#include
-#endif
-
-#if defined(_MSC_VER) && _MSC_VER >= 1800
-#define strdup _strdup
-#endif
-
-#ifndef EINPROGRESS
-#define EINPROGRESS WSAEINPROGRESS
-#endif
-#ifndef EWOULDBLOCK
-#define EWOULDBLOCK WSAEWOULDBLOCK
-#endif
-#ifndef __func__
-#define STRX(x) #x
-#define STR(x) STRX(x)
-#define __func__ __FILE__ ":" STR(__LINE__)
-#endif
-#define snprintf _snprintf
-#define vsnprintf _vsnprintf
-#define to64(x) _atoi64(x)
-#if !defined(__MINGW32__) && !defined(__MINGW64__)
-#define popen(x, y) _popen((x), (y))
-#define pclose(x) _pclose(x)
-#define fileno _fileno
-#endif
-#if defined(_MSC_VER) && _MSC_VER >= 1400
-#define fseeko(x, y, z) _fseeki64((x), (y), (z))
-#else
-#define fseeko(x, y, z) fseek((x), (y), (z))
-#endif
-#if defined(_MSC_VER) && _MSC_VER <= 1200
-typedef unsigned long uintptr_t;
-typedef long intptr_t;
-#endif
-typedef int socklen_t;
-#if _MSC_VER >= 1700
-#include
-#else
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-typedef int int32_t;
-typedef unsigned int uint32_t;
-typedef short int16_t;
-typedef unsigned short uint16_t;
-typedef __int64 int64_t;
-typedef unsigned __int64 uint64_t;
-#endif
-typedef SOCKET sock_t;
-typedef uint32_t in_addr_t;
-#ifndef UINT16_MAX
-#define UINT16_MAX 65535
-#endif
-#ifndef UINT32_MAX
-#define UINT32_MAX 4294967295
-#endif
-#ifndef pid_t
-#define pid_t HANDLE
-#endif
-#define INT64_FMT "I64d"
-#define INT64_X_FMT "I64x"
-#define SIZE_T_FMT "Iu"
-typedef struct _stati64 cs_stat_t;
-#ifndef S_ISDIR
-#define S_ISDIR(x) (((x) &_S_IFMT) == _S_IFDIR)
-#endif
-#ifndef S_ISREG
-#define S_ISREG(x) (((x) &_S_IFMT) == _S_IFREG)
-#endif
-#define DIRSEP '\\'
-#define CS_DEFINE_DIRENT
-
-#ifndef va_copy
-#ifdef __va_copy
-#define va_copy __va_copy
-#else
-#define va_copy(x, y) (x) = (y)
-#endif
-#endif
-
-#ifndef MG_MAX_HTTP_REQUEST_SIZE
-#define MG_MAX_HTTP_REQUEST_SIZE 8192
-#endif
-
-#ifndef MG_MAX_HTTP_SEND_MBUF
-#define MG_MAX_HTTP_SEND_MBUF 4096
-#endif
-
-#ifndef MG_MAX_HTTP_HEADERS
-#define MG_MAX_HTTP_HEADERS 40
-#endif
-
-#ifndef CS_ENABLE_STDIO
-#define CS_ENABLE_STDIO 1
-#endif
-
-#ifndef MG_ENABLE_BROADCAST
-#define MG_ENABLE_BROADCAST 1
-#endif
-
-#ifndef MG_ENABLE_DIRECTORY_LISTING
-#define MG_ENABLE_DIRECTORY_LISTING 1
-#endif
-
-#ifndef MG_ENABLE_FILESYSTEM
-#define MG_ENABLE_FILESYSTEM 1
-#endif
-
-#ifndef MG_ENABLE_HTTP_CGI
-#define MG_ENABLE_HTTP_CGI MG_ENABLE_FILESYSTEM
-#endif
-
-#ifndef MG_NET_IF
-#define MG_NET_IF MG_NET_IF_SOCKET
-#endif
-
-unsigned int sleep(unsigned int seconds);
-
-/* https://stackoverflow.com/questions/16647819/timegm-cross-platform */
-#define timegm _mkgmtime
-
-#define gmtime_r(a, b) \
- do { \
- *(b) = *gmtime(a); \
- } while (0)
-
-#endif /* CS_PLATFORM == CS_P_WINDOWS */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_WINDOWS_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_unix.h"
-#endif
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_
-#if CS_PLATFORM == CS_P_UNIX
-
-#ifndef _XOPEN_SOURCE
-#define _XOPEN_SOURCE 600
-#endif
-
-/* wants this for C++ */
-#ifndef __STDC_FORMAT_MACROS
-#define __STDC_FORMAT_MACROS
-#endif
-
-/* C++ wants that for INT64_MAX */
-#ifndef __STDC_LIMIT_MACROS
-#define __STDC_LIMIT_MACROS
-#endif
-
-/* Enable fseeko() and ftello() functions */
-#ifndef _LARGEFILE_SOURCE
-#define _LARGEFILE_SOURCE
-#endif
-
-/* Enable 64-bit file offsets */
-#ifndef _FILE_OFFSET_BITS
-#define _FILE_OFFSET_BITS 64
-#endif
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#ifdef __APPLE__
-#include
-#ifndef BYTE_ORDER
-#define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN
-#define BIG_ENDIAN __DARWIN_BIG_ENDIAN
-#define PDP_ENDIAN __DARWIN_PDP_ENDIAN
-#define BYTE_ORDER __DARWIN_BYTE_ORDER
-#endif
-#endif
-
-/*
- * osx correctly avoids defining strtoll when compiling in strict ansi mode.
- * c++ 11 standard defines strtoll as well.
- * We require strtoll, and if your embedded pre-c99 compiler lacks one, please
- * implement a shim.
- */
-#if !(defined(__cplusplus) && __cplusplus >= 201103L) && \
- !(defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L)
-long long strtoll(const char *, char **, int);
-#endif
-
-typedef int sock_t;
-#define INVALID_SOCKET (-1)
-#define SIZE_T_FMT "zu"
-typedef struct stat cs_stat_t;
-#define DIRSEP '/'
-#define to64(x) strtoll(x, NULL, 10)
-#define INT64_FMT PRId64
-#define INT64_X_FMT PRIx64
-
-#ifndef __cdecl
-#define __cdecl
-#endif
-
-#ifndef va_copy
-#ifdef __va_copy
-#define va_copy __va_copy
-#else
-#define va_copy(x, y) (x) = (y)
-#endif
-#endif
-
-#define closesocket(x) close(x)
-
-#ifndef MG_MAX_HTTP_REQUEST_SIZE
-#define MG_MAX_HTTP_REQUEST_SIZE 8192
-#endif
-
-#ifndef MG_MAX_HTTP_SEND_MBUF
-#define MG_MAX_HTTP_SEND_MBUF 4096
-#endif
-
-#ifndef MG_MAX_HTTP_HEADERS
-#define MG_MAX_HTTP_HEADERS 40
-#endif
-
-#ifndef CS_ENABLE_STDIO
-#define CS_ENABLE_STDIO 1
-#endif
-
-#ifndef MG_ENABLE_BROADCAST
-#define MG_ENABLE_BROADCAST 1
-#endif
-
-#ifndef MG_ENABLE_DIRECTORY_LISTING
-#define MG_ENABLE_DIRECTORY_LISTING 1
-#endif
-
-#ifndef MG_ENABLE_FILESYSTEM
-#define MG_ENABLE_FILESYSTEM 1
-#endif
-
-#ifndef MG_ENABLE_HTTP_CGI
-#define MG_ENABLE_HTTP_CGI MG_ENABLE_FILESYSTEM
-#endif
-
-#ifndef MG_NET_IF
-#define MG_NET_IF MG_NET_IF_SOCKET
-#endif
-
-#ifndef MG_HOSTS_FILE_NAME
-#define MG_HOSTS_FILE_NAME "/etc/hosts"
-#endif
-
-#ifndef MG_RESOLV_CONF_FILE_NAME
-#define MG_RESOLV_CONF_FILE_NAME "/etc/resolv.conf"
-#endif
-
-#endif /* CS_PLATFORM == CS_P_UNIX */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_UNIX_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_esp32.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_
-#if CS_PLATFORM == CS_P_ESP32
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#define SIZE_T_FMT "u"
-typedef struct stat cs_stat_t;
-#define DIRSEP '/'
-#define to64(x) strtoll(x, NULL, 10)
-#define INT64_FMT PRId64
-#define INT64_X_FMT PRIx64
-#define __cdecl
-#define _FILE_OFFSET_BITS 32
-
-#define MG_LWIP 1
-
-#ifndef MG_NET_IF
-#define MG_NET_IF MG_NET_IF_SOCKET
-#endif
-
-#ifndef CS_ENABLE_STDIO
-#define CS_ENABLE_STDIO 1
-#endif
-
-#endif /* CS_PLATFORM == CS_P_ESP32 */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_ESP32_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_esp8266.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_ESP8266_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_ESP8266_H_
-#if CS_PLATFORM == CS_P_ESP8266
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#define SIZE_T_FMT "u"
-typedef struct stat cs_stat_t;
-#define DIRSEP '/'
-#if !defined(MGOS_VFS_DEFINE_DIRENT)
-#define CS_DEFINE_DIRENT
-#endif
-
-#define to64(x) strtoll(x, NULL, 10)
-#define INT64_FMT PRId64
-#define INT64_X_FMT PRIx64
-#define __cdecl
-#define _FILE_OFFSET_BITS 32
-
-#if !defined(RTOS_SDK) && !defined(__cplusplus)
-#define fileno(x) -1
-#endif
-
-#define MG_LWIP 1
-
-/* struct timeval is defined in sys/time.h. */
-#define LWIP_TIMEVAL_PRIVATE 0
-
-#ifndef MG_NET_IF
-#include
-#if LWIP_SOCKET /* RTOS SDK has LWIP sockets */
-#define MG_NET_IF MG_NET_IF_SOCKET
-#else
-#define MG_NET_IF MG_NET_IF_LWIP_LOW_LEVEL
-#endif
-#endif
-
-#ifndef CS_ENABLE_STDIO
-#define CS_ENABLE_STDIO 1
-#endif
-
-#define inet_ntop(af, src, dst, size) \
- (((af) == AF_INET) ? ipaddr_ntoa_r((const ip_addr_t *) (src), (dst), (size)) \
- : NULL)
-#define inet_pton(af, src, dst) \
- (((af) == AF_INET) ? ipaddr_aton((src), (ip_addr_t *) (dst)) : 0)
-
-#endif /* CS_PLATFORM == CS_P_ESP8266 */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_ESP8266_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_cc3100.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_CC3100_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_CC3100_H_
-#if CS_PLATFORM == CS_P_CC3100
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#define MG_NET_IF MG_NET_IF_SIMPLELINK
-#define MG_SSL_IF MG_SSL_IF_SIMPLELINK
-
-/*
- * CC3100 SDK and STM32 SDK include headers w/out path, just like
- * #include "simplelink.h". As result, we have to add all required directories
- * into Makefile IPATH and do the same thing (include w/out path)
- */
-
-#include
-#include
-#undef timeval
-
-typedef int sock_t;
-#define INVALID_SOCKET (-1)
-
-#define to64(x) strtoll(x, NULL, 10)
-#define INT64_FMT PRId64
-#define INT64_X_FMT PRIx64
-#define SIZE_T_FMT "u"
-
-#define SOMAXCONN 8
-
-const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
-char *inet_ntoa(struct in_addr in);
-int inet_pton(int af, const char *src, void *dst);
-
-#endif /* CS_PLATFORM == CS_P_CC3100 */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_CC3100_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_cc3200.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_
-#if CS_PLATFORM == CS_P_CC3200
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#ifndef __TI_COMPILER_VERSION__
-#include
-#include
-#endif
-
-#define MG_NET_IF MG_NET_IF_SIMPLELINK
-#define MG_SSL_IF MG_SSL_IF_SIMPLELINK
-
-/* Only SPIFFS supports directories, SLFS does not. */
-#if defined(CC3200_FS_SPIFFS) && !defined(MG_ENABLE_DIRECTORY_LISTING)
-#define MG_ENABLE_DIRECTORY_LISTING 1
-#endif
-
-/* Amalgamated: #include "common/platforms/simplelink/cs_simplelink.h" */
-
-typedef int sock_t;
-#define INVALID_SOCKET (-1)
-#define SIZE_T_FMT "u"
-typedef struct stat cs_stat_t;
-#define DIRSEP '/'
-#define to64(x) strtoll(x, NULL, 10)
-#define INT64_FMT PRId64
-#define INT64_X_FMT PRIx64
-#define __cdecl
-
-#define fileno(x) -1
-
-/* Some functions we implement for Mongoose. */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef __TI_COMPILER_VERSION__
-struct SlTimeval_t;
-#define timeval SlTimeval_t
-int gettimeofday(struct timeval *t, void *tz);
-int settimeofday(const struct timeval *tv, const void *tz);
-
-int asprintf(char **strp, const char *fmt, ...);
-
-#endif
-
-/* TI's libc does not have stat & friends, add them. */
-#ifdef __TI_COMPILER_VERSION__
-
-#include
-
-typedef unsigned int mode_t;
-typedef size_t _off_t;
-typedef long ssize_t;
-
-struct stat {
- int st_ino;
- mode_t st_mode;
- int st_nlink;
- time_t st_mtime;
- off_t st_size;
-};
-
-int _stat(const char *pathname, struct stat *st);
-int stat(const char *pathname, struct stat *st);
-
-#define __S_IFMT 0170000
-
-#define __S_IFDIR 0040000
-#define __S_IFCHR 0020000
-#define __S_IFREG 0100000
-
-#define __S_ISTYPE(mode, mask) (((mode) &__S_IFMT) == (mask))
-
-#define S_IFDIR __S_IFDIR
-#define S_IFCHR __S_IFCHR
-#define S_IFREG __S_IFREG
-#define S_ISDIR(mode) __S_ISTYPE((mode), __S_IFDIR)
-#define S_ISREG(mode) __S_ISTYPE((mode), __S_IFREG)
-
-/* 5.x series compilers don't have va_copy, 16.x do. */
-#if __TI_COMPILER_VERSION__ < 16000000
-#define va_copy(apc, ap) ((apc) = (ap))
-#endif
-
-#endif /* __TI_COMPILER_VERSION__ */
-
-#ifdef CC3200_FS_SLFS
-#define MG_FS_SLFS
-#endif
-
-#if (defined(CC3200_FS_SPIFFS) || defined(CC3200_FS_SLFS)) && \
- !defined(MG_ENABLE_FILESYSTEM)
-#define MG_ENABLE_FILESYSTEM 1
-#define CS_DEFINE_DIRENT
-#endif
-
-#ifndef CS_ENABLE_STDIO
-#define CS_ENABLE_STDIO 1
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* CS_PLATFORM == CS_P_CC3200 */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_msp432.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_MSP432_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_MSP432_H_
-#if CS_PLATFORM == CS_P_MSP432
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#ifndef __TI_COMPILER_VERSION__
-#include
-#include
-#endif
-
-#define MG_NET_IF MG_NET_IF_SIMPLELINK
-#define MG_SSL_IF MG_SSL_IF_SIMPLELINK
-
-/* Amalgamated: #include "common/platforms/simplelink/cs_simplelink.h" */
-
-typedef int sock_t;
-#define INVALID_SOCKET (-1)
-#define SIZE_T_FMT "u"
-typedef struct stat cs_stat_t;
-#define DIRSEP '/'
-#define to64(x) strtoll(x, NULL, 10)
-#define INT64_FMT PRId64
-#define INT64_X_FMT PRIx64
-#define __cdecl
-
-#define fileno(x) -1
-
-/* Some functions we implement for Mongoose. */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#ifdef __TI_COMPILER_VERSION__
-struct SlTimeval_t;
-#define timeval SlTimeval_t
-int gettimeofday(struct timeval *t, void *tz);
-#endif
-
-/* TI's libc does not have stat & friends, add them. */
-#ifdef __TI_COMPILER_VERSION__
-
-#include
-
-typedef unsigned int mode_t;
-typedef size_t _off_t;
-typedef long ssize_t;
-
-struct stat {
- int st_ino;
- mode_t st_mode;
- int st_nlink;
- time_t st_mtime;
- off_t st_size;
-};
-
-int _stat(const char *pathname, struct stat *st);
-#define stat(a, b) _stat(a, b)
-
-#define __S_IFMT 0170000
-
-#define __S_IFDIR 0040000
-#define __S_IFCHR 0020000
-#define __S_IFREG 0100000
-
-#define __S_ISTYPE(mode, mask) (((mode) &__S_IFMT) == (mask))
-
-#define S_IFDIR __S_IFDIR
-#define S_IFCHR __S_IFCHR
-#define S_IFREG __S_IFREG
-#define S_ISDIR(mode) __S_ISTYPE((mode), __S_IFDIR)
-#define S_ISREG(mode) __S_ISTYPE((mode), __S_IFREG)
-
-/* As of 5.2.7, TI compiler does not support va_copy() yet. */
-#define va_copy(apc, ap) ((apc) = (ap))
-
-#endif /* __TI_COMPILER_VERSION__ */
-
-#ifndef CS_ENABLE_STDIO
-#define CS_ENABLE_STDIO 1
-#endif
-
-#if (defined(CC3200_FS_SPIFFS) || defined(CC3200_FS_SLFS)) && \
- !defined(MG_ENABLE_FILESYSTEM)
-#define MG_ENABLE_FILESYSTEM 1
-#endif
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* CS_PLATFORM == CS_P_MSP432 */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_MSP432_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_tm4c129.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_TM4C129_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_TM4C129_H_
-#if CS_PLATFORM == CS_P_TM4C129
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#ifndef __TI_COMPILER_VERSION__
-#include
-#include
-#endif
-
-#define SIZE_T_FMT "u"
-typedef struct stat cs_stat_t;
-#define DIRSEP '/'
-#define to64(x) strtoll(x, NULL, 10)
-#define INT64_FMT PRId64
-#define INT64_X_FMT PRIx64
-#define __cdecl
-
-#ifndef MG_NET_IF
-#include
-#if LWIP_SOCKET
-#define MG_NET_IF MG_NET_IF_SOCKET
-#else
-#define MG_NET_IF MG_NET_IF_LWIP_LOW_LEVEL
-#endif
-#define MG_LWIP 1
-#elif MG_NET_IF == MG_NET_IF_SIMPLELINK
-/* Amalgamated: #include "common/platforms/simplelink/cs_simplelink.h" */
-#endif
-
-#ifndef CS_ENABLE_STDIO
-#define CS_ENABLE_STDIO 1
-#endif
-
-#ifdef __TI_COMPILER_VERSION__
-/* As of 5.2.8, TI compiler does not support va_copy() yet. */
-#define va_copy(apc, ap) ((apc) = (ap))
-#endif /* __TI_COMPILER_VERSION__ */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* CS_PLATFORM == CS_P_TM4C129 */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_TM4C129_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_mbed.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_MBED_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_MBED_H_
-#if CS_PLATFORM == CS_P_MBED
-
-/*
- * mbed.h contains C++ code (e.g. templates), thus, it should be processed
- * only if included directly to startup file (ex: main.cpp)
- */
-#ifdef __cplusplus
-/* Amalgamated: #include "mbed.h" */
-#endif /* __cplusplus */
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-typedef struct stat cs_stat_t;
-#define DIRSEP '/'
-
-#ifndef CS_ENABLE_STDIO
-#define CS_ENABLE_STDIO 1
-#endif
-
-/*
- * mbed can be compiled with the ARM compiler which
- * just doesn't come with a gettimeofday shim
- * because it's a BSD API and ARM targets embedded
- * non-unix platforms.
- */
-#if defined(__ARMCC_VERSION) || defined(__ICCARM__)
-#define _TIMEVAL_DEFINED
-#define gettimeofday _gettimeofday
-
-/* copied from GCC on ARM; for some reason useconds are signed */
-typedef long suseconds_t; /* microseconds (signed) */
-struct timeval {
- time_t tv_sec; /* seconds */
- suseconds_t tv_usec; /* and microseconds */
-};
-
-#endif
-
-#if MG_NET_IF == MG_NET_IF_SIMPLELINK
-
-#define MG_SIMPLELINK_NO_OSI 1
-
-#include
-
-typedef int sock_t;
-#define INVALID_SOCKET (-1)
-
-#define to64(x) strtoll(x, NULL, 10)
-#define INT64_FMT PRId64
-#define INT64_X_FMT PRIx64
-#define SIZE_T_FMT "u"
-
-#define SOMAXCONN 8
-
-const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
-char *inet_ntoa(struct in_addr in);
-int inet_pton(int af, const char *src, void *dst);
-int inet_aton(const char *cp, struct in_addr *inp);
-in_addr_t inet_addr(const char *cp);
-
-#endif /* MG_NET_IF == MG_NET_IF_SIMPLELINK */
-
-#endif /* CS_PLATFORM == CS_P_MBED */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_MBED_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_nrf51.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_NRF51_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_NRF51_H_
-#if CS_PLATFORM == CS_P_NRF51
-
-#include
-#include
-#include
-#include
-#include
-#include
-
-#define to64(x) strtoll(x, NULL, 10)
-
-#define MG_NET_IF MG_NET_IF_LWIP_LOW_LEVEL
-#define MG_LWIP 1
-#define MG_ENABLE_IPV6 1
-
-/*
- * For ARM C Compiler, make lwip to export `struct timeval`; for other
- * compilers, suppress it.
- */
-#if !defined(__ARMCC_VERSION)
-#define LWIP_TIMEVAL_PRIVATE 0
-#else
-struct timeval;
-int gettimeofday(struct timeval *tp, void *tzp);
-#endif
-
-#define INT64_FMT PRId64
-#define SIZE_T_FMT "u"
-
-/*
- * ARM C Compiler doesn't have strdup, so we provide it
- */
-#define CS_ENABLE_STRDUP defined(__ARMCC_VERSION)
-
-#endif /* CS_PLATFORM == CS_P_NRF51 */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_NRF51_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/platform_nrf52.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-#ifndef CS_COMMON_PLATFORMS_PLATFORM_NRF52_H_
-#define CS_COMMON_PLATFORMS_PLATFORM_NRF52_H_
-#if CS_PLATFORM == CS_P_NRF52
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#define to64(x) strtoll(x, NULL, 10)
-
-#define MG_NET_IF MG_NET_IF_LWIP_LOW_LEVEL
-#define MG_LWIP 1
-#define MG_ENABLE_IPV6 1
-
-#if !defined(ENOSPC)
-#define ENOSPC 28 /* No space left on device */
-#endif
-
-/*
- * For ARM C Compiler, make lwip to export `struct timeval`; for other
- * compilers, suppress it.
- */
-#if !defined(__ARMCC_VERSION)
-#define LWIP_TIMEVAL_PRIVATE 0
-#endif
-
-#define INT64_FMT PRId64
-#define SIZE_T_FMT "u"
-
-/*
- * ARM C Compiler doesn't have strdup, so we provide it
- */
-#define CS_ENABLE_STRDUP defined(__ARMCC_VERSION)
-
-#endif /* CS_PLATFORM == CS_P_NRF52 */
-#endif /* CS_COMMON_PLATFORMS_PLATFORM_NRF52_H_ */
-#ifdef MG_MODULE_LINES
-#line 1 "common/platforms/simplelink/cs_simplelink.h"
-#endif
-/*
- * Copyright (c) 2014-2016 Cesanta Software Limited
- * All rights reserved
- */
-
-#ifndef CS_COMMON_PLATFORMS_SIMPLELINK_CS_SIMPLELINK_H_
-#define CS_COMMON_PLATFORMS_SIMPLELINK_CS_SIMPLELINK_H_
-
-#if defined(MG_NET_IF) && MG_NET_IF == MG_NET_IF_SIMPLELINK
-
-/* If simplelink.h is already included, all bets are off. */
-#if !defined(__SIMPLELINK_H__)
-
-#include