-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path26-es5.b7d2430b181e3db5467b.js
1 lines (1 loc) · 131 KB
/
26-es5.b7d2430b181e3db5467b.js
1
!function(){function e(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(l){a=!0,r=l}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),e}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return c(this,i)}}function c(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?u(e):t}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{"/1cH":function(e,i,n){"use strict";n.d(i,"a",function(){return Y}),n.d(i,"b",function(){return Z}),n.d(i,"c",function(){return K});var a=n("u47x"),s=n("8LU1"),c=n("fXoL"),u=n("FKr1"),d=n("quSY"),p=n("XNiG"),f=n("NXyV"),m=n("VRyK"),_=n("LRne"),b=n("xgIS"),v=n("ofXK"),g=n("rDax"),y=n("vxfF"),k=n("FtGj"),w=n("nLfN"),x=n("+rOU"),O=n("3Pt+"),C=n("kmnG"),S=n("IzEk"),D=n("eIep"),R=n("pLZG"),E=n("lJxs"),j=n("vkgz"),I=n("3E0/"),P=n("cH1L"),L=["panel"];function T(e,t){if(1&e&&(c.ec(0,"div",0,1),c.tc(2),c.dc()),2&e){var i=t.id,n=c.pc();c.vc("id",n.id)("ngClass",n._classList),c.Nb("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(i))}}var A=["*"],F=0,M=function e(t,i){h(this,e),this.source=t,this.option=i},z=Object(u.A)(function e(){h(this,e)}),B=new c.x("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),V=function(){var e=function(e){o(i,e);var t=l(i);function i(e,n,a){var r;return h(this,i),(r=t.call(this))._changeDetectorRef=e,r._elementRef=n,r._activeOptionChanges=d.a.EMPTY,r.showPanel=!1,r._isOpen=!1,r.displayWith=null,r.optionSelected=new c.s,r.opened=new c.s,r.closed=new c.s,r.optionActivated=new c.s,r._classList={},r.id="mat-autocomplete-"+F++,r._autoActiveFirstOption=!!a.autoActiveFirstOption,r}return r(i,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new a.b(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(t){e.optionActivated.emit({source:e,option:e.options.toArray()[t]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(e){var t=new M(this,e);this.optionSelected.emit(t)}},{key:"_getPanelAriaLabelledby",value:function(e){return this.ariaLabel?null:this.ariaLabelledby?e+" "+this.ariaLabelledby:e}},{key:"_setVisibilityClasses",value:function(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}},{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(e){this._autoActiveFirstOption=Object(s.c)(e)}},{key:"classList",set:function(e){this._classList=e&&e.length?Object(s.g)(e).reduce(function(e,t){return e[t]=!0,e},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}}]),i}(z);return e.\u0275fac=function(t){return new(t||e)(c.Yb(c.i),c.Yb(c.p),c.Yb(B))},e.\u0275dir=c.Tb({type:e,viewQuery:function(e,t){var i;(1&e&&(c.Mc(c.V,!0),c.Wc(L,!0)),2&e)&&(c.Bc(i=c.mc())&&(t.template=i.first),c.Bc(i=c.mc())&&(t.panel=i.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[c.Jb]}),e}(),Y=function(){var e=function(e){o(i,e);var t=l(i);function i(){var e;return h(this,i),(e=t.apply(this,arguments))._visibleClass="mat-autocomplete-visible",e._hiddenClass="mat-autocomplete-hidden",e}return i}(V);return e.\u0275fac=function(t){return N(t||e)},e.\u0275cmp=c.Sb({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,i){var n;(1&e&&(c.Rb(i,u.g,!0),c.Rb(i,u.o,!0)),2&e)&&(c.Bc(n=c.mc())&&(t.optionGroups=n),c.Bc(n=c.mc())&&(t.options=n))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[c.Lb([{provide:u.h,useExisting:e}]),c.Jb],ngContentSelectors:A,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(c.uc(),c.Qc(0,T,3,4,"ng-template"))},directives:[v.q],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),e}(),N=c.gc(Y),G=new c.x("mat-autocomplete-scroll-strategy"),H={provide:G,deps:[g.c],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},W={provide:O.l,useExisting:Object(c.eb)(function(){return K}),multi:!0},q=function(){var e=function(){function e(i,n,a,r,o,s,l,c,u,_,b){var v=this;h(this,e),this._element=i,this._overlay=n,this._viewContainerRef=a,this._zone=r,this._changeDetectorRef=o,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=_,this._defaults=b,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=d.a.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new p.a,this._windowBlurHandler=function(){v._canOpenOnNextFocus=v._document.activeElement!==v._element.nativeElement||v.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Object(f.a)(function(){return v.autocomplete&&v.autocomplete.options?Object(m.a).apply(void 0,t(v.autocomplete.options.map(function(e){return e.onSelectionChange}))):v._zone.onStable.pipe(Object(S.a)(1),Object(D.a)(function(){return v.optionSelections}))}),this._scrollStrategy=s}return r(e,[{key:"ngAfterViewInit",value:function(){var e=this,t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(function(){return t.addEventListener("blur",e._windowBlurHandler)})}},{key:"ngOnChanges",value:function(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"_getOutsideClickStream",value:function(){var e=this;return Object(m.a)(Object(b.a)(this._document,"click"),Object(b.a)(this._document,"touchend")).pipe(Object(R.a)(function(t){var i=e._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,n=e._formField?e._formField._elementRef.nativeElement:null,a=e.connectedTo?e.connectedTo.elementRef.nativeElement:null;return e._overlayAttached&&i!==e._element.nativeElement&&(!n||!n.contains(i))&&(!a||!a.contains(i))&&!!e._overlayRef&&!e._overlayRef.overlayElement.contains(i)}))}},{key:"writeValue",value:function(e){var t=this;Promise.resolve(null).then(function(){return t._setTriggerValue(e)})}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._element.nativeElement.disabled=e}},{key:"_handleKeydown",value:function(e){var t=e.keyCode;if(t!==k.h||Object(k.t)(e)||e.preventDefault(),this.activeOption&&t===k.g&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){var i=this.autocomplete._keyManager.activeItem,n=t===k.q||t===k.e;this.panelOpen||t===k.p?this.autocomplete._keyManager.onKeydown(e):n&&this._canOpen()&&this.openPanel(),(n||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(e){var t=e.target,i=t.value;"number"===t.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var e=this,t=this._zone.onStable.pipe(Object(S.a)(1)),i=this.autocomplete.options.changes.pipe(Object(j.a)(function(){return e._positionStrategy.reapplyLastPosition()}),Object(I.a)(0));return Object(m.a)(t,i).pipe(Object(D.a)(function(){var t=e.panelOpen;return e._resetActiveItem(),e.autocomplete._setVisibility(),e.panelOpen&&(e._overlayRef.updatePosition(),t!==e.panelOpen&&e.autocomplete.opened.emit()),e.panelClosingActions}),Object(S.a)(1)).subscribe(function(t){return e._setValueAndClose(t)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(e){var t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,i=null!=t?t:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}},{key:"_setValueAndClose",value:function(e){e&&e.source&&(this._clearPreviousSelectedOption(e.source),this._setTriggerValue(e.source.value),this._onChange(e.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(e.source)),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(e){this.autocomplete.options.forEach(function(t){t!==e&&t.selected&&t.deselect()})}},{key:"_attachOverlay",value:function(){var e,t=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Object(w.c)(this._element.nativeElement));var i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new x.i(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e._labelId}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(function(e){(e.keyCode===k.h&&!Object(k.t)(e)||e.keyCode===k.q&&Object(k.t)(e,"altKey"))&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){t.panelOpen&&i&&i.updateSize({width:t._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var e;return new g.d({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}},{key:"_setStrategyPositions",value:function(e){var t,i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],n=this._aboveClass,a=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:n},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:n}];t="above"===this.position?a:"below"===this.position?i:[].concat(i,a),e.withPositions(t)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}},{key:"_canOpen",value:function(){var e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}},{key:"_scrollToOption",value:function(e){var t=this.autocomplete,i=Object(u.x)(e,t.options,t.optionGroups);if(0===e&&1===i)t._setScrollTop(0);else{var n=t.options.toArray()[e];if(n){var a=n._getHostElement(),r=Object(u.y)(a.offsetTop,a.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(r)}}}},{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(e){this._autocompleteDisabled=Object(s.c)(e)}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"panelClosingActions",get:function(){var e=this;return Object(m.a)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Object(R.a)(function(){return e._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Object(R.a)(function(){return e._overlayAttached})):Object(_.a)()).pipe(Object(E.a)(function(e){return e instanceof u.q?e:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Yb(c.p),c.Yb(g.c),c.Yb(c.ab),c.Yb(c.I),c.Yb(c.i),c.Yb(G),c.Yb(P.c,8),c.Yb(C.a,9),c.Yb(v.e,8),c.Yb(y.j),c.Yb(B,8))},e.\u0275dir=c.Tb({type:e,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[c.Kb]}),e}(),K=function(){var e=function(e){o(i,e);var t=l(i);function i(){var e;return h(this,i),(e=t.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",e}return i}(q);return e.\u0275fac=function(t){return Q(t||e)},e.\u0275dir=c.Tb({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&c.lc("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(e){return t._handleInput(e)})("keydown",function(e){return t._handleKeydown(e)}),2&e&&c.Nb("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[c.Lb([W]),c.Jb]}),e}(),Q=c.gc(K),Z=function(){var e=function e(){h(this,e)};return e.\u0275mod=c.Wb({type:e}),e.\u0275inj=c.Vb({factory:function(t){return new(t||e)},providers:[H],imports:[[g.f,u.p,u.j,v.c],y.c,u.p,u.j]}),e}()},"1kqw":function(e,i,n){"use strict";n.r(i),n.d(i,"ChipsAutocompleteExample",function(){return re}),n.d(i,"ChipsDragDropExample",function(){return le}),n.d(i,"ChipsExamplesModule",function(){return ke}),n.d(i,"ChipsHarnessExample",function(){return ye}),n.d(i,"ChipsInputExample",function(){return pe}),n.d(i,"ChipsOverviewExample",function(){return fe}),n.d(i,"ChipsStackedExample",function(){return ge});var a,s,c,d,p,f,m=n("5+WD"),_=n("ofXK"),b=n("fXoL"),v=n("3Pt+"),g=n("/1cH"),y=n("FtGj"),k=n("FKr1"),w=n("8LU1"),x=n("R1ws"),O=n("XNiG"),C=n("VRyK"),S=n("IzEk"),D=n("1G5W"),R=n("JX91"),E=n("u47x"),j=n("0EQZ"),I=n("kmnG"),P=n("nLfN"),L=n("cH1L"),T=["*"],A=new b.x("MatChipRemove"),F=new b.x("MatChipAvatar"),M=new b.x("MatChipTrailingIcon"),z=Object(k.E)(Object(k.z)(Object(k.A)(function e(t){h(this,e),this._elementRef=t}),"primary"),-1),B=((c=function e(){h(this,e)}).\u0275fac=function(e){return new(e||c)},c.\u0275dir=b.Tb({type:c,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[b.Lb([{provide:F,useExisting:c}])]}),c),V=((s=function(e){o(i,e);var t=l(i);function i(e,n,a,r,o,s,l,c){var d;return h(this,i),(d=t.call(this,e))._elementRef=e,d._ngZone=n,d._changeDetectorRef=o,d._hasFocus=!1,d.chipListSelectable=!0,d._chipListMultiple=!1,d._chipListDisabled=!1,d._selected=!1,d._selectable=!0,d._disabled=!1,d._removable=!0,d._onFocus=new O.a,d._onBlur=new O.a,d.selectionChange=new b.s,d.destroyed=new b.s,d.removed=new b.s,d._addHostClassName(),d._chipRippleTarget=s.createElement("div"),d._chipRippleTarget.classList.add("mat-chip-ripple"),d._elementRef.nativeElement.appendChild(d._chipRippleTarget),d._chipRipple=new k.v(u(d),n,d._chipRippleTarget,a),d._chipRipple.setupTriggerEvents(e),d.rippleConfig=r||{},d._animationsDisabled="NoopAnimations"===l,d.tabIndex=null!=c&&parseInt(c)||-1,d}return r(i,[{key:"_addHostClassName",value:function(){var e=this._elementRef.nativeElement;e.hasAttribute("mat-basic-chip")||"mat-basic-chip"===e.tagName.toLowerCase()?e.classList.add("mat-basic-chip"):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(e){this.disabled?e.preventDefault():e.stopPropagation()}},{key:"_handleKeydown",value:function(e){if(!this.disabled)switch(e.keyCode){case y.d:case y.b:this.remove(),e.preventDefault();break;case y.o:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}},{key:"_blur",value:function(){var e=this;this._ngZone.onStable.pipe(Object(S.a)(1)).subscribe(function(){e._ngZone.run(function(){e._hasFocus=!1,e._onBlur.next({chip:e})})})}},{key:"_dispatchSelectionChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}},{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(e){var t=Object(w.c)(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(e){this._value=e}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(e){this._selectable=Object(w.c)(e)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(e){this._disabled=Object(w.c)(e)}},{key:"removable",get:function(){return this._removable},set:function(e){this._removable=Object(w.c)(e)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}}]),i}(z)).\u0275fac=function(e){return new(e||s)(b.Yb(b.p),b.Yb(b.I),b.Yb(P.a),b.Yb(k.i,8),b.Yb(b.i),b.Yb(_.e),b.Yb(x.a,8),b.jc("tabindex"))},s.\u0275dir=b.Tb({type:s,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,i){var n;1&e&&(b.Rb(i,F,!0),b.Rb(i,M,!0),b.Rb(i,A,!0)),2&e&&(b.Bc(n=b.mc())&&(t.avatar=n.first),b.Bc(n=b.mc())&&(t.trailingIcon=n.first),b.Bc(n=b.mc())&&(t.removeIcon=n.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&b.lc("click",function(e){return t._handleClick(e)})("keydown",function(e){return t._handleKeydown(e)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(b.Nb("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),b.Qb("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[b.Jb]}),s),Y=((a=function(){function e(t,i){h(this,e),this._parentChip=t,"BUTTON"===i.nativeElement.nodeName&&i.nativeElement.setAttribute("type","button")}return r(e,[{key:"_handleClick",value:function(e){var t=this._parentChip;t.removable&&!t.disabled&&t.remove(),e.stopPropagation()}}]),e}()).\u0275fac=function(e){return new(e||a)(b.Yb(V),b.Yb(b.p))},a.\u0275dir=b.Tb({type:a,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(e,t){1&e&&b.lc("click",function(e){return t._handleClick(e)})},features:[b.Lb([{provide:A,useExisting:a}])]}),a),N=new b.x("mat-chips-default-options"),G=Object(k.C)(function e(t,i,n,a){h(this,e),this._defaultErrorStateMatcher=t,this._parentForm=i,this._parentFormGroup=n,this.ngControl=a}),H=0,W=function e(t,i){h(this,e),this.source=t,this.value=i},q=((p=function(e){o(n,e);var i=l(n);function n(e,t,a,r,o,s,l){var c;return h(this,n),(c=i.call(this,s,r,o,l))._elementRef=e,c._changeDetectorRef=t,c._dir=a,c.ngControl=l,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new O.a,c._uid="mat-chip-list-"+H++,c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(e,t){return e===t},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new b.s,c.valueChange=new b.s,c.ngControl&&(c.ngControl.valueAccessor=u(c)),c}return r(n,[{key:"ngAfterContentInit",value:function(){var e=this;this._keyManager=new E.g(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(D.a)(this._destroyed)).subscribe(function(t){return e._keyManager.withHorizontalOrientation(t)}),this._keyManager.tabOut.pipe(Object(D.a)(this._destroyed)).subscribe(function(){e._allowFocusEscape()}),this.chips.changes.pipe(Object(R.a)(null),Object(D.a)(this._destroyed)).subscribe(function(){e.disabled&&Promise.resolve().then(function(){e._syncChipsState()}),e._resetChips(),e._initializeSelection(),e._updateTabIndex(),e._updateFocusForDestroyedChips(),e.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new j.c(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"writeValue",value:function(e){this.chips&&this._setSelectionByValue(e,!1)}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.stateChanges.next()}},{key:"onContainerClick",value:function(e){this._originatesFromChip(e)||this.focus()}},{key:"focus",value:function(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}},{key:"_focusInput",value:function(e){this._chipInput&&this._chipInput.focus(e)}},{key:"_keydown",value:function(e){var t=e.target;e.keyCode===y.b&&this._isInputEmpty(t)?(this._keyManager.setLastItemActive(),e.preventDefault()):t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(e){return e>=0&&e<this.chips.length}},{key:"_isInputEmpty",value:function(e){return!(!e||"input"!==e.nodeName.toLowerCase()||e.value)}},{key:"_setSelectionByValue",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(e){return e.deselect()}),Array.isArray(e))e.forEach(function(e){return t._selectValue(e,i)}),this._sortValues();else{var n=this._selectValue(e,i);n&&i&&this._keyManager.setActiveItem(n)}}},{key:"_selectValue",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.chips.find(function(i){return null!=i.value&&t._compareWith(i.value,e)});return n&&(i?n.selectViaInteraction():n.select(),this._selectionModel.select(n)),n}},{key:"_initializeSelection",value:function(){var e=this;Promise.resolve().then(function(){(e.ngControl||e._value)&&(e._setSelectionByValue(e.ngControl?e.ngControl.value:e._value,!1),e.stateChanges.next())})}},{key:"_clearSelection",value:function(e){this._selectionModel.clear(),this.chips.forEach(function(t){t!==e&&t.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var e=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(t){t.selected&&e._selectionModel.select(t)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(e){var t;t=Array.isArray(this.selected)?this.selected.map(function(e){return e.value}):this.selected?this.selected.value:e,this._value=t,this.change.emit(new W(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var e=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){e.focused||e._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var e=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){e._tabIndex=e._userTabIndex||0,e._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var e=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(t){t.source.selected?e._selectionModel.select(t.source):e._selectionModel.deselect(t.source),e.multiple||e.chips.forEach(function(t){!e._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&e._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var e=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(t){var i=e.chips.toArray().indexOf(t.chip);e._isValidIndex(i)&&e._keyManager.updateActiveItem(i),e.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){e._blur(),e.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var e=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(t){var i=t.chip,n=e.chips.toArray().indexOf(t.chip);e._isValidIndex(n)&&i._hasFocus&&(e._lastDestroyedChipIndex=n)})}},{key:"_originatesFromChip",value:function(e){for(var t=e.target;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(e){return e._hasFocus})}},{key:"_syncChipsState",value:function(){var e=this;this.chips&&this.chips.forEach(function(t){t._chipListDisabled=e._disabled,t._chipListMultiple=e.multiple})}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Object(w.c)(e),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(e){this.writeValue(e),this._value=e}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=Object(w.c)(e),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(e){this._placeholder=e,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(e){this._disabled=Object(w.c)(e),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(e){var t=this;this._selectable=Object(w.c)(e),this.chips&&this.chips.forEach(function(e){return e.chipListSelectable=t._selectable})}},{key:"tabIndex",set:function(e){this._userTabIndex=e,this._tabIndex=e}},{key:"chipSelectionChanges",get:function(){return Object(C.a).apply(void 0,t(this.chips.map(function(e){return e.selectionChange})))}},{key:"chipFocusChanges",get:function(){return Object(C.a).apply(void 0,t(this.chips.map(function(e){return e._onFocus})))}},{key:"chipBlurChanges",get:function(){return Object(C.a).apply(void 0,t(this.chips.map(function(e){return e._onBlur})))}},{key:"chipRemoveChanges",get:function(){return Object(C.a).apply(void 0,t(this.chips.map(function(e){return e.destroyed})))}}]),n}(G)).\u0275fac=function(e){return new(e||p)(b.Yb(b.p),b.Yb(b.i),b.Yb(L.c,8),b.Yb(v.p,8),b.Yb(v.i,8),b.Yb(k.d),b.Yb(v.m,10))},p.\u0275cmp=b.Sb({type:p,selectors:[["mat-chip-list"]],contentQueries:function(e,t,i){var n;1&e&&b.Rb(i,V,!0),2&e&&b.Bc(n=b.mc())&&(t.chips=n)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&b.lc("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(e){return t._keydown(e)}),2&e&&(b.hc("id",t._uid),b.Nb("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),b.Qb("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[b.Lb([{provide:I.d,useExisting:p}]),b.Jb],ngContentSelectors:T,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(b.uc(),b.ec(0,"div",0),b.tc(1),b.dc())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),p),K=0,Q=((d=function(){function e(t,i){h(this,e),this._elementRef=t,this._defaultOptions=i,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new b.s,this.placeholder="",this.id="mat-chip-list-input-"+K++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}return r(e,[{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"_keydown",value:function(e){e&&e.keyCode===y.p&&!Object(y.t)(e,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(e)}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(e){!this._inputElement.value&&e&&this._chipList._keydown(e),e&&!this._isSeparatorKey(e)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),e&&e.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(e){this._inputElement.focus(e)}},{key:"_isSeparatorKey",value:function(e){return!Object(y.t)(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}},{key:"chipList",set:function(e){e&&(this._chipList=e,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(e){this._addOnBlur=Object(w.c)(e)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(e){this._disabled=Object(w.c)(e)}},{key:"empty",get:function(){return!this._inputElement.value}}]),e}()).\u0275fac=function(e){return new(e||d)(b.Yb(b.p),b.Yb(N))},d.\u0275dir=b.Tb({type:d,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&b.lc("keydown",function(e){return t._keydown(e)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(b.hc("id",t.id),b.Nb("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[b.Kb]}),d),Z={separatorKeyCodes:[y.g]},U=((f=function e(){h(this,e)}).\u0275mod=b.Wb({type:f}),f.\u0275inj=b.Vb({factory:function(e){return new(e||f)},providers:[k.d,{provide:N,useValue:Z}],imports:[[k.j]]}),f),X=n("NFeN"),J=n("lJxs"),$=["fruitInput"],ee=["auto"];function te(e,t){1&e&&(Object(b.ec)(0,"mat-icon",11),Object(b.Sc)(1,"cancel"),Object(b.dc)())}function ie(e,t){if(1&e){var i=Object(b.fc)();Object(b.ec)(0,"mat-chip",9),Object(b.lc)("removed",function(){Object(b.Gc)(i);var e=t.$implicit;return Object(b.pc)().remove(e)}),Object(b.Sc)(1),Object(b.Qc)(2,te,2,0,"mat-icon",10),Object(b.dc)()}if(2&e){var n=t.$implicit,a=Object(b.pc)();Object(b.vc)("selectable",a.selectable)("removable",a.removable),Object(b.Mb)(1),Object(b.Uc)(" ",n," "),Object(b.Mb)(1),Object(b.vc)("ngIf",a.removable)}}function ne(e,t){if(1&e&&(Object(b.ec)(0,"mat-option",12),Object(b.Sc)(1),Object(b.dc)()),2&e){var i=t.$implicit;Object(b.vc)("value",i),Object(b.Mb)(1),Object(b.Uc)(" ",i," ")}}var ae,re=((ae=function(){function e(){var t=this;h(this,e),this.visible=!0,this.selectable=!0,this.removable=!0,this.separatorKeysCodes=[y.g,y.c],this.fruitCtrl=new v.e,this.fruits=["Lemon"],this.allFruits=["Apple","Lemon","Lime","Orange","Strawberry"],this.filteredFruits=this.fruitCtrl.valueChanges.pipe(Object(R.a)(null),Object(J.a)(function(e){return e?t._filter(e):t.allFruits.slice()}))}return r(e,[{key:"add",value:function(e){var t=e.input,i=e.value;(i||"").trim()&&this.fruits.push(i.trim()),t&&(t.value=""),this.fruitCtrl.setValue(null)}},{key:"remove",value:function(e){var t=this.fruits.indexOf(e);t>=0&&this.fruits.splice(t,1)}},{key:"selected",value:function(e){this.fruits.push(e.option.viewValue),this.fruitInput.nativeElement.value="",this.fruitCtrl.setValue(null)}},{key:"_filter",value:function(e){var t=e.toLowerCase();return this.allFruits.filter(function(e){return 0===e.toLowerCase().indexOf(t)})}}]),e}()).\u0275fac=function(e){return new(e||ae)},ae.\u0275cmp=Object(b.Sb)({type:ae,selectors:[["chips-autocomplete-example"]],viewQuery:function(e,t){var i;1&e&&(Object(b.Wc)($,!0),Object(b.Wc)(ee,!0)),2&e&&(Object(b.Bc)(i=Object(b.mc)())&&(t.fruitInput=i.first),Object(b.Bc)(i=Object(b.mc)())&&(t.matAutocomplete=i.first))},decls:12,vars:8,consts:[[1,"example-chip-list"],["aria-label","Fruit selection"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["placeholder","New fruit...",3,"formControl","matAutocomplete","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputTokenEnd"],["fruitInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[3,"value"]],template:function(e,t){if(1&e&&(Object(b.ec)(0,"mat-form-field",0),Object(b.ec)(1,"mat-label"),Object(b.Sc)(2,"Favorite Fruits"),Object(b.dc)(),Object(b.ec)(3,"mat-chip-list",1,2),Object(b.Qc)(5,ie,3,4,"mat-chip",3),Object(b.ec)(6,"input",4,5),Object(b.lc)("matChipInputTokenEnd",function(e){return t.add(e)}),Object(b.dc)(),Object(b.dc)(),Object(b.ec)(8,"mat-autocomplete",6,7),Object(b.lc)("optionSelected",function(e){return t.selected(e)}),Object(b.Qc)(10,ne,2,2,"mat-option",8),Object(b.qc)(11,"async"),Object(b.dc)(),Object(b.dc)()),2&e){var i=Object(b.Cc)(4),n=Object(b.Cc)(9);Object(b.Mb)(5),Object(b.vc)("ngForOf",t.fruits),Object(b.Mb)(1),Object(b.vc)("formControl",t.fruitCtrl)("matAutocomplete",n)("matChipInputFor",i)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes),Object(b.Mb)(4),Object(b.vc)("ngForOf",Object(b.rc)(11,6,t.filteredFruits))}},directives:[I.c,I.g,q,_.s,v.c,g.c,Q,v.n,v.f,g.a,V,_.t,X.a,Y,k.o],pipes:[_.b],styles:[".example-chip-list[_ngcontent-%COMP%] {\n width: 100%;\n}"]}),ae);function oe(e,t){if(1&e&&(Object(b.ec)(0,"mat-chip",2),Object(b.Sc)(1),Object(b.dc)()),2&e){var i=t.$implicit;Object(b.Mb)(1),Object(b.Uc)(" ",i.name," ")}}var se,le=((se=function(){function e(){h(this,e),this.vegetables=[{name:"apple"},{name:"banana"},{name:"strawberry"},{name:"orange"},{name:"kiwi"},{name:"cherry"}]}return r(e,[{key:"drop",value:function(e){Object(m.h)(this.vegetables,e.previousIndex,e.currentIndex)}}]),e}()).\u0275fac=function(e){return new(e||se)},se.\u0275cmp=Object(b.Sb)({type:se,selectors:[["chips-drag-drop-example"]],decls:2,vars:1,consts:[["cdkDropList","","cdkDropListOrientation","horizontal",1,"example-chip",3,"cdkDropListDropped"],["class","example-box","cdkDrag","",4,"ngFor","ngForOf"],["cdkDrag","",1,"example-box"]],template:function(e,t){1&e&&(Object(b.ec)(0,"mat-chip-list",0),Object(b.lc)("cdkDropListDropped",function(e){return t.drop(e)}),Object(b.Qc)(1,oe,2,1,"mat-chip",1),Object(b.dc)()),2&e&&(Object(b.Mb)(1),Object(b.vc)("ngForOf",t.vegetables))},directives:[q,m.e,_.s,V,m.a],styles:[".example-box.cdk-drag-animating[_ngcontent-%COMP%] {\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\n}\n\n.example-chip[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] {\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\n}"]}),se);function ce(e,t){1&e&&(Object(b.ec)(0,"mat-icon",7),Object(b.Sc)(1,"cancel"),Object(b.dc)())}function ue(e,t){if(1&e){var i=Object(b.fc)();Object(b.ec)(0,"mat-chip",5),Object(b.lc)("removed",function(){Object(b.Gc)(i);var e=t.$implicit;return Object(b.pc)().remove(e)}),Object(b.Sc)(1),Object(b.Qc)(2,ce,2,0,"mat-icon",6),Object(b.dc)()}if(2&e){var n=t.$implicit,a=Object(b.pc)();Object(b.vc)("selectable",a.selectable)("removable",a.removable),Object(b.Mb)(1),Object(b.Uc)(" ",n.name," "),Object(b.Mb)(1),Object(b.vc)("ngIf",a.removable)}}var de,he,pe=((he=function(){function e(){h(this,e),this.visible=!0,this.selectable=!0,this.removable=!0,this.addOnBlur=!0,this.separatorKeysCodes=[y.g,y.c],this.fruits=[{name:"Lemon"},{name:"Lime"},{name:"Apple"}]}return r(e,[{key:"add",value:function(e){var t=e.input,i=e.value;(i||"").trim()&&this.fruits.push({name:i.trim()}),t&&(t.value="")}},{key:"remove",value:function(e){var t=this.fruits.indexOf(e);t>=0&&this.fruits.splice(t,1)}}]),e}()).\u0275fac=function(e){return new(e||he)},he.\u0275cmp=Object(b.Sb)({type:he,selectors:[["chips-input-example"]],decls:7,vars:4,consts:[[1,"example-chip-list"],["aria-label","Fruit selection"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["placeholder","New fruit...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""]],template:function(e,t){if(1&e&&(Object(b.ec)(0,"mat-form-field",0),Object(b.ec)(1,"mat-label"),Object(b.Sc)(2,"Favorite Fruits"),Object(b.dc)(),Object(b.ec)(3,"mat-chip-list",1,2),Object(b.Qc)(5,ue,3,4,"mat-chip",3),Object(b.ec)(6,"input",4),Object(b.lc)("matChipInputTokenEnd",function(e){return t.add(e)}),Object(b.dc)(),Object(b.dc)(),Object(b.dc)()),2&e){var i=Object(b.Cc)(4);Object(b.Mb)(5),Object(b.vc)("ngForOf",t.fruits),Object(b.Mb)(1),Object(b.vc)("matChipInputFor",i)("matChipInputSeparatorKeyCodes",t.separatorKeysCodes)("matChipInputAddOnBlur",t.addOnBlur)}},directives:[I.c,I.g,q,_.s,Q,V,_.t,X.a,Y],styles:[".example-chip-list[_ngcontent-%COMP%] {\n width: 100%;\n}"]}),he),fe=((de=function e(){h(this,e)}).\u0275fac=function(e){return new(e||de)},de.\u0275cmp=Object(b.Sb)({type:de,selectors:[["chips-overview-example"]],decls:9,vars:0,consts:[["aria-label","Fish selection"],["color","primary","selected",""],["color","accent","selected",""]],template:function(e,t){1&e&&(Object(b.ec)(0,"mat-chip-list",0),Object(b.ec)(1,"mat-chip"),Object(b.Sc)(2,"One fish"),Object(b.dc)(),Object(b.ec)(3,"mat-chip"),Object(b.Sc)(4,"Two fish"),Object(b.dc)(),Object(b.ec)(5,"mat-chip",1),Object(b.Sc)(6,"Primary fish"),Object(b.dc)(),Object(b.ec)(7,"mat-chip",2),Object(b.Sc)(8,"Accent fish"),Object(b.dc)(),Object(b.dc)())},directives:[q,V],encapsulation:2}),de);function me(e,t){if(1&e&&(Object(b.ec)(0,"mat-chip",2),Object(b.Sc)(1),Object(b.dc)()),2&e){var i=t.$implicit;Object(b.vc)("color",i.color),Object(b.Mb)(1),Object(b.Uc)(" ",i.name," ")}}var _e,be,ve,ge=((ve=function e(){h(this,e),this.availableColors=[{name:"none",color:void 0},{name:"Primary",color:"primary"},{name:"Accent",color:"accent"},{name:"Warn",color:"warn"}]}).\u0275fac=function(e){return new(e||ve)},ve.\u0275cmp=Object(b.Sb)({type:ve,selectors:[["chips-stacked-example"]],decls:2,vars:1,consts:[["aria-label","Color selection",1,"mat-chip-list-stacked"],["selected","",3,"color",4,"ngFor","ngForOf"],["selected","",3,"color"]],template:function(e,t){1&e&&(Object(b.ec)(0,"mat-chip-list",0),Object(b.Qc)(1,me,2,2,"mat-chip",1),Object(b.dc)()),2&e&&(Object(b.Mb)(1),Object(b.vc)("ngForOf",t.availableColors))},directives:[q,_.s,V],styles:["mat-chip[_ngcontent-%COMP%] {\n max-width: 200px;\n}"]}),ve),ye=((be=function e(){h(this,e),this.isDisabled=!1,this.remove=jasmine.createSpy("remove spy"),this.add=jasmine.createSpy("add spy")}).\u0275fac=function(e){return new(e||be)},be.\u0275cmp=Object(b.Sb)({type:be,selectors:[["chips-harness-example"]],decls:11,vars:2,consts:[[3,"disabled","aria-orientation"],[3,"removed"],["matChipRemove",""]],template:function(e,t){1&e&&(Object(b.ec)(0,"mat-chip-list",0),Object(b.ec)(1,"mat-chip",1),Object(b.lc)("removed",function(){return t.remove()}),Object(b.Sc)(2,"Chip 1"),Object(b.dc)(),Object(b.ec)(3,"mat-chip",1),Object(b.lc)("removed",function(){return t.remove()}),Object(b.Sc)(4,"Chip 2 "),Object(b.ec)(5,"span",2),Object(b.Sc)(6,"remove_icon"),Object(b.dc)(),Object(b.dc)(),Object(b.ec)(7,"mat-chip",1),Object(b.lc)("removed",function(){return t.remove()}),Object(b.ec)(8,"mat-chip-avatar"),Object(b.Sc)(9,"C"),Object(b.dc)(),Object(b.Sc)(10,"Chip 4"),Object(b.dc)(),Object(b.dc)()),2&e&&Object(b.vc)("disabled",t.isDisabled)("aria-orientation","horizontal")},directives:[q,V,Y,B],encapsulation:2}),be),ke=((_e=function e(){h(this,e)}).\u0275mod=Object(b.Wb)({type:_e}),_e.\u0275inj=Object(b.Vb)({factory:function(e){return new(e||_e)},imports:[[_.c,m.g,g.b,U,X.b,I.e,v.t]]}),_e)},"5+WD":function(i,n,a){"use strict";a.d(n,"a",function(){return Ie}),a.d(n,"b",function(){return Se}),a.d(n,"c",function(){return Re}),a.d(n,"d",function(){return je}),a.d(n,"e",function(){return Oe}),a.d(n,"f",function(){return ye}),a.d(n,"g",function(){return Te}),a.d(n,"h",function(){return X}),a.d(n,"i",function(){return J});var o=a("fXoL"),s=a("ofXK"),l=a("vxfF"),c=a("nLfN"),u=a("8LU1"),d=a("XNiG"),p=a("quSY"),f=a("HDdC"),m=a("D0XW"),_=a("Y7HM");function b(e){var t=e.subscriber,i=e.counter,n=e.period;t.next(i),this.schedule({subscriber:t,counter:i+1,period:n},n)}var v=a("eNwd"),g=a("VRyK"),y=a("1G5W"),k=a("JX91"),w=a("lJxs"),x=a("IzEk"),O=a("vkgz"),C=a("eIep"),S=a("cH1L");function D(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function R(e,t){var i=t?"":"none";D(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function E(e,t){var i=e.style;i.position=t?"":"fixed",i.top=i.opacity=t?"":"0",i.left=t?"":"-999em"}function j(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function I(e,t){return e.getPropertyValue(t).split(",").map(function(e){return e.trim()})}function P(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function L(e,t,i){var n=e.top,a=e.bottom,r=e.left,o=e.right;return i>=n&&i<=a&&t>=r&&t<=o}function T(e,t,i){e.top+=t,e.bottom=e.top+e.height,e.left+=i,e.right=e.left+e.width}function A(e,t,i,n){var a=e.top,r=e.right,o=e.bottom,s=e.left,l=e.width*t,c=e.height*t;return n>a-c&&n<o+c&&i>s-l&&i<r+l}var F=function(){function e(t,i){h(this,e),this._document=t,this._viewportRuler=i,this.positions=new Map}return r(e,[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var t=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(function(e){t.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:P(e)})})}},{key:"handleScroll",value:function(e){var t=e.target,i=this.positions.get(t);if(!i)return null;var n,a,r=t===this._document?t.documentElement:t,o=i.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();n=s.top,a=s.left}else n=t.scrollTop,a=t.scrollLeft;var l=o.top-n,c=o.left-a;return this.positions.forEach(function(e,i){e.clientRect&&t!==i&&r.contains(i)&&T(e.clientRect,l,c)}),o.top=n,o.left=a,{top:l,left:c}}}]),e}();function M(e){var t=e.cloneNode(!0),i=t.querySelectorAll("[id]"),n=e.nodeName.toLowerCase();t.removeAttribute("id");for(var a=0;a<i.length;a++)i[a].removeAttribute("id");return"canvas"===n?Y(e,t):"input"!==n&&"select"!==n&&"textarea"!==n||V(e,t),z("canvas",e,t,Y),z("input, textarea, select",e,t,V),t}function z(e,t,i,n){var a=t.querySelectorAll(e);if(a.length)for(var r=i.querySelectorAll(e),o=0;o<a.length;o++)n(a[o],r[o])}var B=0;function V(e,t){"file"!==t.type&&(t.value=e.value),"radio"===t.type&&t.name&&(t.name="mat-clone-".concat(t.name,"-").concat(B++))}function Y(e,t){var i=t.getContext("2d");if(i)try{i.drawImage(e,0,0)}catch(n){}}var N=Object(c.f)({passive:!0}),G=Object(c.f)({passive:!1}),H=function(){function e(t,i,n,a,r,o){var s=this;h(this,e),this._config=i,this._document=n,this._ngZone=a,this._viewportRuler=r,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new d.a,this._pointerMoveSubscription=p.a.EMPTY,this._pointerUpSubscription=p.a.EMPTY,this._scrollSubscription=p.a.EMPTY,this._resizeSubscription=p.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new d.a,this.started=new d.a,this.released=new d.a,this.ended=new d.a,this.entered=new d.a,this.exited=new d.a,this.dropped=new d.a,this.moved=this._moveEvents,this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find(function(t){var i=e.target;return!!i&&(i===t||t.contains(i))});!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){e.preventDefault();var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var i=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._lastKnownPointerPosition=t,s._updatePointerDirectionDelta(i),s._dropContainer)s._updateActiveDropContainer(i,t);else{var n=s._activeTransform;n.x=i.x-s._pickupPositionOnPage.x+s._passiveTransform.x,n.y=i.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(n.x,n.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(n.x," ").concat(n.y,")"))}s._moveEvents.observers.length&&s._ngZone.run(function(){s._moveEvents.next({source:s,pointerPosition:i,event:e,distance:s._getDragDistance(i),delta:s._pointerDirectionDelta})})}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){var a=Date.now()>=s._dragStartTime+s._getDragStartDelay(e),r=s._dropContainer;if(!a)return void s._endDragSequence(e);r&&(r.isDragging()||r.isReceiving())||(s._hasStartedDragging=!0,s._ngZone.run(function(){return s._startDragSequence(e)}))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t),this._parentPositions=new F(n,r),o.registerDragItem(this)}return r(e,[{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){var t=this;this._handles=e.map(function(e){return Object(u.e)(e)}),this._handles.forEach(function(e){return R(e,t.disabled)}),this._toggleNativeDragInteractions();var i=new Set;return this._disabledHandles.forEach(function(e){t._handles.indexOf(e)>-1&&i.add(e)}),this._disabledHandles=i,this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,i=Object(u.e)(e);return i!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(function(){i.addEventListener("mousedown",t._pointerDown,G),i.addEventListener("touchstart",t._pointerDown,N)}),this._initialTransform=void 0,this._rootElement=i),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?Object(u.e)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(function(){return t._containInsideBoundaryOnResize()})),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&K(this._rootElement),K(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),R(e,!0))}},{key:"enableHandle",value:function(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),R(e,this.disabled))}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&K(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&K(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){Q(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t=this._dropContainer;if(t){var i=this._rootElement,n=i.parentNode,a=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();n.insertBefore(o,i),E(i,!1),this._document.body.appendChild(n.replaceChild(r,i)),function(e,t){return t||e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement||e.body}(this._document,s).appendChild(a),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var i=this;t.stopPropagation();var n=this.isDragging(),a=Q(t),r=!a&&0!==t.button,o=this._rootElement,s=!a&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(n||r||s)){this._handles.length&&(this._rootElementTapHighlight=o.style.webkitTapHighlightColor||"",o.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(function(e){i._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=P(this._boundaryElement));var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;E(this._rootElement,!0),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(function(){var i=t._dropContainer,n=i.getItemIndex(t),a=t._getPointerPositionOnPage(e),r=t._getDragDistance(t._getPointerPositionOnPage(e)),o=i._isOverContainer(a.x,a.y);t.ended.next({source:t,distance:r}),t.dropped.next({item:t,currentIndex:n,previousIndex:t._initialIndex,container:i,previousContainer:t._initialContainer,isPointerOverContainer:o,distance:r}),i.drop(t,n,t._initialIndex,t._initialContainer,o,r),t._dropContainer=t._initialContainer})}},{key:"_updateActiveDropContainer",value:function(e,t){var i=this,n=e.x,a=e.y,r=t.x,o=t.y,s=this._initialContainer._getSiblingContainerFromPosition(this,n,a);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,a)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(function(){i.exited.next({item:i,container:i._dropContainer}),i._dropContainer.exit(i),i._dropContainer=s,i._dropContainer.enter(i,n,a,s===i._initialContainer&&s.sortingDisabled?i._initialIndex:void 0),i.entered.next({item:i,container:s,currentIndex:s.getItemIndex(i)})}),this._dropContainer._startScrollingIfNecessary(r,o),this._dropContainer._sortItem(this,n,a,this._pointerDirectionDelta),this._preview.style.transform=W(n-this._pickupPositionInElement.x,a-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,i=this.previewClass,n=t?t.template:null;if(n&&t){var a=t.matchSize?this._rootElement.getBoundingClientRect():null,r=t.viewContainer.createEmbeddedView(n,t.context);r.detectChanges(),e=Z(r,this._document),this._previewRef=r,t.matchSize?U(e,a):e.style.transform=W(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var o=this._rootElement;U(e=M(o),o.getBoundingClientRect())}return D(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),R(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),i&&(Array.isArray(i)?i.forEach(function(t){return e.classList.add(t)}):e.classList.add(i)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=W(t.left,t.top);var i=function(e){var t=getComputedStyle(e),i=I(t,"transition-property"),n=i.find(function(e){return"transform"===e||"all"===e});if(!n)return 0;var a=i.indexOf(n),r=I(t,"transition-duration"),o=I(t,"transition-delay");return j(r[a])+j(o[a])}(this._preview);return 0===i?Promise.resolve():this._ngZone.runOutsideAngular(function(){return new Promise(function(t){var n=function i(n){(!n||n.target===e._preview&&"transform"===n.propertyName)&&(e._preview.removeEventListener("transitionend",i),t(),clearTimeout(a))},a=setTimeout(n,1.5*i);e._preview.addEventListener("transitionend",n)})})}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,i=t?t.template:null;return i?(this._placeholderRef=t.viewContainer.createEmbeddedView(i,t.context),this._placeholderRef.detectChanges(),e=Z(this._placeholderRef,this._document)):e=M(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var i=this._rootElement.getBoundingClientRect(),n=e===this._rootElement?null:e,a=n?n.getBoundingClientRect():i,r=Q(t)?t.targetTouches[0]:t,o=this._getViewportScrollPosition();return{x:a.left-i.left+(r.pageX-a.left-o.left),y:a.top-i.top+(r.pageY-a.top-o.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=this._getViewportScrollPosition(),i=Q(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,n=i.pageX-t.left,a=i.pageY-t.top;if(this._ownerSVGElement){var r=this._ownerSVGElement.getScreenCTM();if(r){var o=this._ownerSVGElement.createSVGPoint();return o.x=n,o.y=a,o.matrixTransform(r.inverse())}}return{x:n,y:a}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this._dropContainer?this._dropContainer.lockAxis:null,i=this.constrainPosition?this.constrainPosition(e,this):e,n=i.x,a=i.y;if("x"===this.lockAxis||"x"===t?a=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(n=this._pickupPositionOnPage.x),this._boundaryRect){var r=this._pickupPositionInElement,o=r.x,s=r.y,l=this._boundaryRect,c=this._previewRect,u=l.top+s,d=l.bottom-(c.height-s);n=q(n,l.left+o,l.right-(c.width-o)),a=q(a,u,d)}return{x:n,y:a}}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,i=e.y,n=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,r=Math.abs(t-a.x),o=Math.abs(i-a.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=t>a.x?1:-1,a.x=t),o>this._config.pointerDirectionChangeThreshold&&(n.y=i>a.y?1:-1,a.y=i),n}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,R(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,G),e.removeEventListener("touchstart",this._pointerDown,N)}},{key:"_applyRootElementTransform",value:function(e,t){var i=W(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,i=e.y;if(!(0===t&&0===i||this.isDragging())&&this._boundaryElement){var n=this._boundaryElement.getBoundingClientRect(),a=this._rootElement.getBoundingClientRect();if(!(0===n.width&&0===n.height||0===a.width&&0===a.height)){var r=n.left-a.left,o=a.right-n.right,s=n.top-a.top,l=a.bottom-n.bottom;n.width>a.width?(r>0&&(t+=r),o>0&&(t-=o)):t=0,n.height>a.height?(s>0&&(i+=s),l>0&&(i-=l)):i=0,t===this._passiveTransform.x&&i===this._passiveTransform.y||this.setFreeDragPosition({y:i,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:Q(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);if(t){var i=e.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&T(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}},{key:"_getShadowRoot",value:function(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Object(c.c)(this._rootElement)),this._cachedShadowRoot}},{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=Object(u.c)(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(function(e){return R(e,t)}))}}]),e}();function W(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function q(e,t,i){return Math.max(t,Math.min(i,e))}function K(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Q(e){return"t"===e.type[0]}function Z(e,t){var i=e.rootNodes;if(1===i.length&&i[0].nodeType===t.ELEMENT_NODE)return i[0];var n=t.createElement("div");return i.forEach(function(e){return n.appendChild(e)}),n}function U(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=W(t.left,t.top)}function X(e,t,i){var n=$(t,e.length-1),a=$(i,e.length-1);if(n!==a){for(var r=e[n],o=a<n?-1:1,s=n;s!==a;s+=o)e[s]=e[s+o];e[a]=r}}function J(e,t,i,n){var a=$(i,e.length-1),r=$(n,t.length);e.length&&t.splice(r,0,e.splice(a,1)[0])}function $(e,t){return Math.max(0,Math.min(t,e))}var ee=function(){function i(e,t,n,a,r){var o=this;h(this,i),this._dragDropRegistry=t,this._ngZone=a,this._viewportRuler=r,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.beforeStarted=new d.a,this.entered=new d.a,this.exited=new d.a,this.dropped=new d.a,this.sorted=new d.a,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=p.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new d.a,this._cachedShadowRoot=null,this._startScrollInterval=function(){o._stopScrolling(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.a;return(!Object(_.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=m.a),new f.a(function(i){return i.add(t.schedule(b,e,{subscriber:i,counter:0,period:e})),i})}(0,v.a).pipe(Object(y.a)(o._stopScrollTimers)).subscribe(function(){var e=o._scrollNode;1===o._verticalScrollDirection?ie(e,-2):2===o._verticalScrollDirection&&ie(e,2),1===o._horizontalScrollDirection?ne(e,-2):2===o._horizontalScrollDirection&&ne(e,2)})},this.element=Object(u.e)(e),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new F(n,r)}return r(i,[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var e=this,t=Object(u.e)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(function(t){return t._startReceiving(e)}),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(e,t,i,n){var a;this.start(),null==n?-1===(a=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(a=this._getItemIndexFromPointerPosition(e,t,i)):a=n;var r=this._activeDraggables,o=r.indexOf(e),s=e.getPlaceholderElement(),l=r[a];if(l===e&&(l=r[a+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){var c=l.getRootElement();c.parentElement.insertBefore(s,c),r.splice(a,0,e)}else if(this._shouldEnterAsFirstChild(t,i)){var d=r[0].getRootElement();d.parentNode.insertBefore(s,d),r.unshift(e)}else Object(u.e)(this.element).appendChild(s),r.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,i,n,a,r){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:a,distance:r})}},{key:"withItems",value:function(e){var t=this,i=this._draggables;return this._draggables=e,e.forEach(function(e){return e._withDropContainer(t)}),this.isDragging()&&(i.filter(function(e){return e.isDragging()}).every(function(t){return-1===e.indexOf(t)})?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var i=Object(u.e)(this.element);return this._scrollableElements=-1===e.indexOf(i)?[i].concat(t(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?te("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,function(t){return t.drag===e}):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,i,n){if(!this.sortingDisabled&&A(this._clientRect,.05,t,i)){var a=this._itemPositions,r=this._getItemIndexFromPointerPosition(e,t,i,n);if(!(-1===r&&a.length>0)){var o="horizontal"===this._orientation,s=te(a,function(t){return t.drag===e}),l=a[r],c=l.clientRect,u=s>r?1:-1,d=this._getItemOffsetPx(a[s].clientRect,c,u),h=this._getSiblingOffsetPx(s,a,u),p=a.slice();X(a,s,r),this.sorted.next({previousIndex:s,currentIndex:r,container:this,item:e}),a.forEach(function(t,i){if(p[i]!==t){var n=t.drag===e,a=n?d:h,r=n?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=a,o?(r.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),T(t.clientRect,0,a)):(r.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),T(t.clientRect,a,0))}}),this._previousSwap.overlaps=L(c,t,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=o?n.x:n.y}}}},{key:"_startScrollingIfNecessary",value:function(t,i){var n=this;if(!this.autoScrollDisabled){var a,r=0,o=0;if(this._parentPositions.positions.forEach(function(s,l){var c;l!==n._document&&s.clientRect&&!a&&A(s.clientRect,.05,t,i)&&(c=e(function(e,t,i,n){var a=ae(t,n),r=re(t,i),o=0,s=0;if(a){var l=e.scrollTop;1===a?l>0&&(o=1):e.scrollHeight-l>e.clientHeight&&(o=2)}if(r){var c=e.scrollLeft;1===r?c>0&&(s=1):e.scrollWidth-c>e.clientWidth&&(s=2)}return[o,s]}(l,s.clientRect,t,i),2),r=c[0],o=c[1],(r||o)&&(a=l))}),!r&&!o){var s=this._viewportRuler.getViewportSize(),l=s.width,c=s.height,u={width:l,height:c,top:0,right:l,bottom:c,left:0};r=ae(u,i),o=re(u,t),a=window}!a||r===this._verticalScrollDirection&&o===this._horizontalScrollDirection&&a===this._scrollNode||(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=a,(r||o)&&a?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var e=Object(u.e)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:P(t)}}).sort(function(t,i){return e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top})}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=Object(u.e)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(function(e){var t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(function(t){return t._stopReceiving(e)}),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,i){var n="horizontal"===this._orientation,a=t[e].clientRect,r=t[e+-1*i],o=a[n?"width":"height"]*i;if(r){var s=n?"left":"top",l=n?"right":"bottom";-1===i?o-=r.clientRect[s]-a[l]:o+=a[s]-r.clientRect[l]}return o}},{key:"_getItemOffsetPx",value:function(e,t,i){var n="horizontal"===this._orientation,a=n?t.left-e.left:t.top-e.top;return-1===i&&(a+=n?t.width-e.width:t.height-e.height),a}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){var a=i[i.length-1].clientRect;return n?e>=a.right:t>=a.bottom}var r=i[0].clientRect;return n?e<=r.left:t<=r.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,i,n){var a=this,r="horizontal"===this._orientation,o=te(this._itemPositions,function(o,s,l){var c=o.drag,u=o.clientRect;if(c===e)return l.length<2;if(n){var d=r?n.x:n.y;if(c===a._previousSwap.drag&&a._previousSwap.overlaps&&d===a._previousSwap.delta)return!1}return r?t>=Math.floor(u.left)&&t<Math.floor(u.right):i>=Math.floor(u.top)&&i<Math.floor(u.bottom)});return-1!==o&&this.sortPredicate(o,e,this)?o:-1}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,t){return L(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,i){return this._siblings.find(function(n){return n._canReceive(e,t,i)})}},{key:"_canReceive",value:function(e,t,i){if(!L(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;var n=this._getShadowRoot().elementFromPoint(t,i);if(!n)return!1;var a=Object(u.e)(this.element);return n===a||a.contains(n)}},{key:"_startReceiving",value:function(e){var t=this._activeSiblings;t.has(e)||(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(function(t){if(e.isDragging()){var i=e._parentPositions.handleScroll(t);i&&(e._itemPositions.forEach(function(e){T(e.clientRect,i.top,i.left)}),e._itemPositions.forEach(function(t){var i=t.drag;e._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else e.isReceiving()&&e._cacheParentPositions()})}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=Object(c.c)(Object(u.e)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}}]),i}();function te(e,t){for(var i=0;i<e.length;i++)if(t(e[i],i,e))return i;return-1}function ie(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function ne(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function ae(e,t){var i=e.top,n=e.bottom,a=.05*e.height;return t>=i-a&&t<=i+a?1:t>=n-a&&t<=n+a?2:0}function re(e,t){var i=e.left,n=e.right,a=.05*e.width;return t>=i-a&&t<=i+a?1:t>=n-a&&t<=n+a?2:0}var oe,se,le,ce,ue,de,he,pe,fe=Object(c.f)({passive:!1,capture:!0}),me=((oe=function(){function e(t,i){var n=this;h(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new d.a,this.pointerUp=new d.a,this.scroll=new d.a,this._preventDefaultWhileDragging=function(e){n._activeDragInstances.size&&e.preventDefault()},this._persistentTouchmoveListener=function(e){n._activeDragInstances.size&&(e.preventDefault(),n.pointerMove.next(e))},this._document=i}return r(e,[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(function(){t._document.addEventListener("touchmove",t._persistentTouchmoveListener,fe)})}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,fe)}},{key:"startDragging",value:function(e,t){var i=this;if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){var n=t.type.startsWith("touch");this._globalListeners.set(n?"touchend":"mouseup",{handler:function(e){return i.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return i.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:fe}),n||this._globalListeners.set("mousemove",{handler:function(e){return i.pointerMove.next(e)},options:fe}),this._ngZone.runOutsideAngular(function(){i._globalListeners.forEach(function(e,t){i._document.addEventListener(t,e.handler,e.options)})})}}},{key:"stopDragging",value:function(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(e){return this._activeDragInstances.has(e)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach(function(t){return e.removeDragItem(t)}),this._dropInstances.forEach(function(t){return e.removeDropContainer(t)}),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach(function(t,i){e._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}}]),e}()).\u0275fac=function(e){return new(e||oe)(o.ic(o.I),o.ic(s.e))},oe.\u0275prov=Object(o.Ub)({factory:function(){return new oe(Object(o.ic)(o.I),Object(o.ic)(s.e))},token:oe,providedIn:"root"}),oe),_e={dragStartThreshold:5,pointerDirectionChangeThreshold:5},be=((se=function(){function e(t,i,n,a){h(this,e),this._document=t,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=a}return r(e,[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e;return new H(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new ee(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}]),e}()).\u0275fac=function(e){return new(e||se)(o.ic(s.e),o.ic(o.I),o.ic(l.j),o.ic(me))},se.\u0275prov=Object(o.Ub)({factory:function(){return new se(Object(o.ic)(s.e),Object(o.ic)(o.I),Object(o.ic)(l.j),Object(o.ic)(me))},token:se,providedIn:"root"}),se),ve=new o.x("CDK_DRAG_PARENT"),ge=new o.x("CdkDropListGroup"),ye=((le=function(){function e(){h(this,e),this._items=new Set,this._disabled=!1}return r(e,[{key:"ngOnDestroy",value:function(){this._items.clear()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Object(u.c)(e)}}]),e}()).\u0275fac=function(e){return new(e||le)},le.\u0275dir=o.Tb({type:le,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[o.Lb([{provide:ge,useExisting:le}])]}),le),ke=new o.x("CDK_DRAG_CONFIG"),we=0,xe=new o.x("CdkDropList"),Oe=((ce=function(){function e(t,i,n,a,r,s,l){var c=this;h(this,e),this.element=t,this._changeDetectorRef=n,this._scrollDispatcher=a,this._dir=r,this._group=s,this._destroyed=new d.a,this.connectedTo=[],this.id="cdk-drop-list-"+we++,this.enterPredicate=function(){return!0},this.sortPredicate=function(){return!0},this.dropped=new o.s,this.entered=new o.s,this.exited=new o.s,this.sorted=new o.s,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,l&&this._assignDefaults(l),this._dropListRef.enterPredicate=function(e,t){return c.enterPredicate(e.data,t.data)},this._dropListRef.sortPredicate=function(e,t,i){return c.sortPredicate(e,t.data,i.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),s&&s._items.add(this)}return r(e,[{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort(function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"_setupInputSyncSubscription",value:function(t){var i=this;this._dir&&this._dir.change.pipe(Object(k.a)(this._dir.value),Object(y.a)(this._destroyed)).subscribe(function(e){return t.withDirection(e)}),t.beforeStarted.subscribe(function(){var n=Object(u.b)(i.connectedTo).map(function(t){return"string"==typeof t?e._dropLists.find(function(e){return e.id===t}):t});if(i._group&&i._group._items.forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),!i._scrollableParentsResolved){var a=i._scrollDispatcher.getAncestorScrollContainers(i.element).map(function(e){return e.getElementRef().nativeElement});i._dropListRef.withScrollableParents(a),i._scrollableParentsResolved=!0}t.disabled=i.disabled,t.lockAxis=i.lockAxis,t.sortingDisabled=Object(u.c)(i.sortingDisabled),t.autoScrollDisabled=Object(u.c)(i.autoScrollDisabled),t.connectedTo(n.filter(function(e){return e&&e!==i}).map(function(e){return e._dropListRef})).withOrientation(i.orientation)})}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe(function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()}),e.sorted.subscribe(function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance}),t._changeDetectorRef.markForCheck()})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,i=e.draggingDisabled,n=e.sortingDisabled,a=e.listAutoScrollDisabled,r=e.listOrientation;this.disabled=null!=i&&i,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=a&&a,this.orientation=r||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map(function(e){return e._dragRef}))}},{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=Object(u.c)(e)}}]),e}()).\u0275fac=function(e){return new(e||ce)(o.Yb(o.p),o.Yb(be),o.Yb(o.i),o.Yb(l.g),o.Yb(S.c,8),o.Yb(ge,12),o.Yb(ke,8))},ce.\u0275dir=o.Tb({type:ce,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(o.Nb("id",t.id),o.Qb("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[o.Lb([{provide:ge,useValue:void 0},{provide:xe,useExisting:ce}])]}),ce._dropLists=[],ce),Ce=new o.x("CdkDragHandle"),Se=((ue=function(){function e(t,i){h(this,e),this.element=t,this._stateChanges=new d.a,this._disabled=!1,this._parentDrag=i}return r(e,[{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Object(u.c)(e),this._stateChanges.next(this)}}]),e}()).\u0275fac=function(e){return new(e||ue)(o.Yb(o.p),o.Yb(ve,12))},ue.\u0275dir=o.Tb({type:ue,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[o.Lb([{provide:Ce,useExisting:ue}])]}),ue),De=new o.x("CdkDragPlaceholder"),Re=((de=function e(t){h(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||de)(o.Yb(o.V))},de.\u0275dir=o.Tb({type:de,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[o.Lb([{provide:De,useExisting:de}])]}),de),Ee=new o.x("CdkDragPreview"),je=((pe=function(){function e(t){h(this,e),this.templateRef=t,this._matchSize=!1}return r(e,[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=Object(u.c)(e)}}]),e}()).\u0275fac=function(e){return new(e||pe)(o.Yb(o.V))},pe.\u0275dir=o.Tb({type:pe,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"},features:[o.Lb([{provide:Ee,useExisting:pe}])]}),pe),Ie=((he=function(){function e(t,i,n,a,r,s,l,c,u,p){var m=this;h(this,e),this.element=t,this.dropContainer=i,this._ngZone=a,this._viewContainerRef=r,this._dir=l,this._changeDetectorRef=u,this._selfHandle=p,this._destroyed=new d.a,this.started=new o.s,this.released=new o.s,this.ended=new o.s,this.entered=new o.s,this.exited=new o.s,this.dropped=new o.s,this.moved=new f.a(function(e){var t=m._dragRef.moved.pipe(Object(w.a)(function(e){return{source:m,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}})).subscribe(e);return function(){t.unsubscribe()}}),this._dragRef=c.createDrag(t,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,s&&this._assignDefaults(s),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}return r(e,[{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.pipe(Object(x.a)(1),Object(y.a)(this._destroyed)).subscribe(function(){e._updateRootElement(),e._handles.changes.pipe(Object(k.a)(e._handles),Object(O.a)(function(t){var i=t.filter(function(t){return t._parentDrag===e}).map(function(e){return e.element});e._selfHandle&&e.rootElementSelector&&i.push(e.element),e._dragRef.withHandles(i)}),Object(C.a)(function(e){return Object(g.a).apply(void 0,t(e.map(function(e){return e._stateChanges.pipe(Object(k.a)(e))})))}),Object(y.a)(e._destroyed)).subscribe(function(t){var i=e._dragRef,n=t.element.nativeElement;t.disabled?i.disableHandle(n):i.enableHandle(n)}),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)})}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,i=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?Pe(e,this.rootElementSelector):e;this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;return e?"string"==typeof e?Pe(this.element.nativeElement,e):Object(u.e)(e):null}},{key:"_syncInputs",value:function(e){var t=this;e.beforeStarted.subscribe(function(){if(!e.isDragging()){var i=t._dir,n=t.dragStartDelay,a=t._placeholderTemplate?{template:t._placeholderTemplate.templateRef,context:t._placeholderTemplate.data,viewContainer:t._viewContainerRef}:null,r=t._previewTemplate?{template:t._previewTemplate.templateRef,context:t._previewTemplate.data,matchSize:t._previewTemplate.matchSize,viewContainer:t._viewContainerRef}:null;e.disabled=t.disabled,e.lockAxis=t.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:Object(u.f)(n),e.constrainPosition=t.constrainPosition,e.previewClass=t.previewClass,e.withBoundaryElement(t._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(r),i&&e.withDirection(i.value)}})}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe(function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()}),e.released.subscribe(function(){t.released.emit({source:t})}),e.ended.subscribe(function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()}),e.entered.subscribe(function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})}),e.exited.subscribe(function(e){t.exited.emit({container:e.container.data,item:t})}),e.dropped.subscribe(function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})})}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,i=e.dragStartDelay,n=e.constrainPosition,a=e.previewClass,r=e.boundaryElement,o=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=o&&o,this.dragStartDelay=i||0,t&&(this.lockAxis=t),n&&(this.constrainPosition=n),a&&(this.previewClass=a),r&&(this.boundaryElement=r),s&&(this.rootElementSelector=s)}},{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=Object(u.c)(e),this._dragRef.disabled=this._disabled}}]),e}()).\u0275fac=function(e){return new(e||he)(o.Yb(o.p),o.Yb(xe,12),o.Yb(s.e),o.Yb(o.I),o.Yb(o.ab),o.Yb(ke,8),o.Yb(S.c,8),o.Yb(be),o.Yb(o.i),o.Yb(Ce,10))},he.\u0275dir=o.Tb({type:he,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,i){var n;1&e&&(o.Rb(i,Ee,!0),o.Rb(i,De,!0),o.Rb(i,Ce,!0)),2&e&&(o.Bc(n=o.mc())&&(t._previewTemplate=n.first),o.Bc(n=o.mc())&&(t._placeholderTemplate=n.first),o.Bc(n=o.mc())&&(t._handles=n))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&o.Qb("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[o.Lb([{provide:ve,useExisting:he}]),o.Kb]}),he);function Pe(e,t){for(var i=e.parentElement;i;){if(i.matches?i.matches(t):i.msMatchesSelector(t))return i;i=i.parentElement}return null}var Le,Te=((Le=function e(){h(this,e)}).\u0275mod=o.Wb({type:Le}),Le.\u0275inj=o.Vb({factory:function(e){return new(e||Le)},providers:[be],imports:[l.c]}),Le)},kmnG:function(e,i,n){"use strict";n.d(i,"a",function(){return re}),n.d(i,"b",function(){return N}),n.d(i,"c",function(){return oe}),n.d(i,"d",function(){return H}),n.d(i,"e",function(){return se}),n.d(i,"f",function(){return Z}),n.d(i,"g",function(){return U}),n.d(i,"h",function(){return $}),n.d(i,"i",function(){return te}),n.d(i,"j",function(){return W}),n.d(i,"k",function(){return q}),n.d(i,"l",function(){return G});var a=n("GU7r"),s=n("ofXK"),c=n("fXoL"),u=n("FKr1"),d=n("8LU1"),p=n("XNiG"),f=n("VRyK"),m=n("xgIS"),_=n("JX91"),b=n("1G5W"),v=n("IzEk"),g=n("R0Ic"),y=n("R1ws"),k=n("cH1L"),w=n("nLfN"),x=["underline"],O=["connectionContainer"],C=["inputContainer"],S=["label"];function D(e,t){1&e&&(c.cc(0),c.ec(1,"div",14),c.Zb(2,"div",15),c.Zb(3,"div",16),c.Zb(4,"div",17),c.dc(),c.ec(5,"div",18),c.Zb(6,"div",15),c.Zb(7,"div",16),c.Zb(8,"div",17),c.dc(),c.bc())}function R(e,t){1&e&&(c.ec(0,"div",19),c.tc(1,1),c.dc())}function E(e,t){if(1&e&&(c.cc(0),c.tc(1,2),c.ec(2,"span"),c.Sc(3),c.dc(),c.bc()),2&e){var i=c.pc(2);c.Mb(3),c.Tc(i._control.placeholder)}}function j(e,t){1&e&&c.tc(0,3,["*ngSwitchCase","true"])}function I(e,t){1&e&&(c.ec(0,"span",23),c.Sc(1," *"),c.dc())}function P(e,t){if(1&e){var i=c.fc();c.ec(0,"label",20,21),c.lc("cdkObserveContent",function(){return c.Gc(i),c.pc().updateOutlineGap()}),c.Qc(2,E,4,1,"ng-container",12),c.Qc(3,j,1,0,"ng-content",12),c.Qc(4,I,2,0,"span",22),c.dc()}if(2&e){var n=c.pc();c.Qb("mat-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-form-field-empty",n._control.empty&&!n._shouldAlwaysFloat())("mat-accent","accent"==n.color)("mat-warn","warn"==n.color),c.vc("cdkObserveContentDisabled","outline"!=n.appearance)("id",n._labelId)("ngSwitch",n._hasLabel()),c.Nb("for",n._control.id)("aria-owns",n._control.id),c.Mb(2),c.vc("ngSwitchCase",!1),c.Mb(1),c.vc("ngSwitchCase",!0),c.Mb(1),c.vc("ngIf",!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)}}function L(e,t){1&e&&(c.ec(0,"div",24),c.tc(1,4),c.dc())}function T(e,t){if(1&e&&(c.ec(0,"div",25,26),c.Zb(2,"span",27),c.dc()),2&e){var i=c.pc();c.Mb(2),c.Qb("mat-accent","accent"==i.color)("mat-warn","warn"==i.color)}}function A(e,t){if(1&e&&(c.ec(0,"div"),c.tc(1,5),c.dc()),2&e){var i=c.pc();c.vc("@transitionMessages",i._subscriptAnimationState)}}function F(e,t){if(1&e&&(c.ec(0,"div",31),c.Sc(1),c.dc()),2&e){var i=c.pc(2);c.vc("id",i._hintLabelId),c.Mb(1),c.Tc(i.hintLabel)}}function M(e,t){if(1&e&&(c.ec(0,"div",28),c.Qc(1,F,2,2,"div",29),c.tc(2,6),c.Zb(3,"div",30),c.tc(4,7),c.dc()),2&e){var i=c.pc();c.vc("@transitionMessages",i._subscriptAnimationState),c.Mb(1),c.vc("ngIf",i.hintLabel)}}var z=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],B=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],V=0,Y=new c.x("MatError"),N=function(){var e=function e(){h(this,e),this.id="mat-error-"+V++};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Tb({type:e,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&c.Nb("id",t.id)},inputs:{id:"id"},features:[c.Lb([{provide:Y,useExisting:e}])]}),e}(),G={transitionMessages:Object(g.m)("transitionMessages",[Object(g.j)("enter",Object(g.k)({opacity:1,transform:"translateY(0%)"})),Object(g.l)("void => enter",[Object(g.k)({opacity:0,transform:"translateY(-100%)"}),Object(g.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},H=function(){var e=function e(){h(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Tb({type:e}),e}();function W(e){return Error("A hint was already declared for 'align=\"".concat(e,"\"'."))}function q(){return Error("mat-form-field must contain a MatFormFieldControl.")}var K=0,Q=new c.x("MatHint"),Z=function(){var e=function e(){h(this,e),this.align="start",this.id="mat-hint-"+K++};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Tb({type:e,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(c.Nb("id",t.id)("align",null),c.Qb("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[c.Lb([{provide:Q,useExisting:e}])]}),e}(),U=function(){var e=function e(){h(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Tb({type:e,selectors:[["mat-label"]]}),e}(),X=function(){var e=function e(){h(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Tb({type:e,selectors:[["mat-placeholder"]]}),e}(),J=new c.x("MatPrefix"),$=function(){var e=function e(){h(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Tb({type:e,selectors:[["","matPrefix",""]],features:[c.Lb([{provide:J,useExisting:e}])]}),e}(),ee=new c.x("MatSuffix"),te=function(){var e=function e(){h(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=c.Tb({type:e,selectors:[["","matSuffix",""]],features:[c.Lb([{provide:ee,useExisting:e}])]}),e}(),ie=0,ne=Object(u.z)(function e(t){h(this,e),this._elementRef=t},"primary"),ae=new c.x("MAT_FORM_FIELD_DEFAULT_OPTIONS"),re=new c.x("MatFormField"),oe=function(){var e=function(e){o(n,e);var i=l(n);function n(e,t,a,r,o,s,l,c){var u;return h(this,n),(u=i.call(this,e))._elementRef=e,u._changeDetectorRef=t,u._dir=r,u._defaults=o,u._platform=s,u._ngZone=l,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new p.a,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+ie++,u._labelId="mat-form-field-label-"+ie++,u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==c,u.appearance=o&&o.appearance?o.appearance:"legacy",u._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,u}return r(n,[{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Object(_.a)(null)).subscribe(function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(b.a)(this._destroyed)).subscribe(function(){return e._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.pipe(Object(b.a)(e._destroyed)).subscribe(function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()})}),Object(f.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(_.a)(null)).subscribe(function(){e._processHints(),e._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(_.a)(null)).subscribe(function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(b.a)(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e.updateOutlineGap()})}):e.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(m.a)(this._label.nativeElement,"transitionend").pipe(Object(v.a)(1)).subscribe(function(){e._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push.apply(e,t(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var i=this._hintChildren?this._hintChildren.find(function(e){return"start"===e.align}):null,n=this._hintChildren?this._hintChildren.find(function(e){return"end"===e.align}):null;i?e.push(i.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&e.push.apply(e,t(this._errorChildren.map(function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,i=0,n=this._connectionContainerRef.nativeElement,a=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var o=n.getBoundingClientRect();if(0===o.width&&0===o.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(o),l=e.children,c=this._getStartEnd(l[0].getBoundingClientRect()),u=0,d=0;d<l.length;d++)u+=l[d].offsetWidth;t=Math.abs(c-s)-5,i=u>0?.75*u+10:0}for(var h=0;h<a.length;h++)a[h].style.width=t+"px";for(var p=0;p<r.length;p++)r[p].style.width=i+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}},{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=Object(d.c)(e)}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}}]),n}(ne);return e.\u0275fac=function(t){return new(t||e)(c.Yb(c.p),c.Yb(c.i),c.Yb(c.p),c.Yb(k.c,8),c.Yb(ae,8),c.Yb(w.a),c.Yb(c.I),c.Yb(y.a,8))},e.\u0275cmp=c.Sb({type:e,selectors:[["mat-form-field"]],contentQueries:function(e,t,i){var n;(1&e&&(c.Rb(i,H,!0),c.Lc(i,H,!0),c.Rb(i,U,!0),c.Lc(i,U,!0),c.Rb(i,X,!0),c.Rb(i,Y,!0),c.Rb(i,Q,!0),c.Rb(i,J,!0),c.Rb(i,ee,!0)),2&e)&&(c.Bc(n=c.mc())&&(t._controlNonStatic=n.first),c.Bc(n=c.mc())&&(t._controlStatic=n.first),c.Bc(n=c.mc())&&(t._labelChildNonStatic=n.first),c.Bc(n=c.mc())&&(t._labelChildStatic=n.first),c.Bc(n=c.mc())&&(t._placeholderChild=n.first),c.Bc(n=c.mc())&&(t._errorChildren=n),c.Bc(n=c.mc())&&(t._hintChildren=n),c.Bc(n=c.mc())&&(t._prefixChildren=n),c.Bc(n=c.mc())&&(t._suffixChildren=n))},viewQuery:function(e,t){var i;(1&e&&(c.Wc(x,!0),c.Mc(O,!0),c.Wc(C,!0),c.Wc(S,!0)),2&e)&&(c.Bc(i=c.mc())&&(t.underlineRef=i.first),c.Bc(i=c.mc())&&(t._connectionContainerRef=i.first),c.Bc(i=c.mc())&&(t._inputContainerRef=i.first),c.Bc(i=c.mc())&&(t._label=i.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&c.Qb("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat())("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[c.Lb([{provide:re,useExisting:e}]),c.Jb],ngContentSelectors:B,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(c.uc(z),c.ec(0,"div",0),c.ec(1,"div",1,2),c.lc("click",function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)}),c.Qc(3,D,9,0,"ng-container",3),c.Qc(4,R,2,0,"div",4),c.ec(5,"div",5,6),c.tc(7),c.ec(8,"span",7),c.Qc(9,P,5,16,"label",8),c.dc(),c.dc(),c.Qc(10,L,2,0,"div",9),c.dc(),c.Qc(11,T,3,4,"div",10),c.ec(12,"div",11),c.Qc(13,A,2,1,"div",12),c.Qc(14,M,5,2,"div",13),c.dc(),c.dc()),2&e&&(c.Mb(3),c.vc("ngIf","outline"==t.appearance),c.Mb(1),c.vc("ngIf",t._prefixChildren.length),c.Mb(5),c.vc("ngIf",t._hasFloatingLabel()),c.Mb(1),c.vc("ngIf",t._suffixChildren.length),c.Mb(1),c.vc("ngIf","outline"!=t.appearance),c.Mb(1),c.vc("ngSwitch",t._getDisplayedMessages()),c.Mb(1),c.vc("ngSwitchCase","error"),c.Mb(1),c.vc("ngSwitchCase","hint"))},directives:[s.t,s.x,s.y,a.a],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[G.transitionMessages]},changeDetection:0}),e}(),se=function(){var e=function e(){h(this,e)};return e.\u0275mod=c.Wb({type:e}),e.\u0275inj=c.Vb({factory:function(t){return new(t||e)},imports:[[s.c,u.j,a.c],u.j]}),e}()}}])}();