-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path14-es2015.769317312b9e9466acaa.js
1 lines (1 loc) · 91.4 KB
/
14-es2015.769317312b9e9466acaa.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{"+0xr":function(e,t,i){"use strict";i.d(t,"a",function(){return H}),i.d(t,"b",function(){return v}),i.d(t,"c",function(){return D}),i.d(t,"d",function(){return z}),i.d(t,"e",function(){return j}),i.d(t,"f",function(){return L}),i.d(t,"g",function(){return P}),i.d(t,"h",function(){return k}),i.d(t,"i",function(){return O}),i.d(t,"j",function(){return I}),i.d(t,"k",function(){return N}),i.d(t,"l",function(){return Q}),i.d(t,"m",function(){return U}),i.d(t,"n",function(){return M}),i.d(t,"o",function(){return g}),i.d(t,"p",function(){return K}),i.d(t,"q",function(){return $}),i.d(t,"r",function(){return X});var s=i("f6nW"),n=i("0EQZ"),r=i("FKr1"),o=i("8LU1"),c=i("2Vo4"),a=i("XNiG"),l=i("quSY"),h=i("VRyK"),d=i("LRne"),u=i("itXk"),f=i("lJxs"),m=i("fXoL");const b=[[["caption"]],[["colgroup"],["col"]]],p=["caption","colgroup, col"];function y(e,t){if(1&e&&(m.ec(0,"th",3),m.Sc(1),m.dc()),2&e){const e=m.pc();m.Nc("text-align",e.justify),m.Mb(1),m.Uc(" ",e.headerText," ")}}function _(e,t){if(1&e&&(m.ec(0,"td",4),m.Sc(1),m.dc()),2&e){const e=t.$implicit,i=m.pc();m.Nc("text-align",i.justify),m.Mb(1),m.Uc(" ",i.dataAccessor(e,i.name)," ")}}let g=(()=>{class e extends s.q{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return e.\u0275fac=function(t){return w(t||e)},e.\u0275cmp=m.Sb({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&m.Qb("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[m.Lb([{provide:n.g,useClass:n.e},{provide:s.q,useExisting:e},{provide:s.a,useExisting:e},{provide:s.x,useClass:s.y}]),m.Jb],ngContentSelectors:p,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(m.uc(b),m.tc(0),m.tc(1,1),m.ac(2,0),m.ac(3,1),m.ac(4,2),m.ac(5,3))},directives:[s.v,s.t,s.w,s.u],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),e})();const w=m.gc(g);let v=(()=>{class e extends s.c{}return e.\u0275fac=function(t){return R(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["","matCellDef",""]],features:[m.Lb([{provide:s.c,useExisting:e}]),m.Jb]}),e})();const R=m.gc(v);let O=(()=>{class e extends s.k{}return e.\u0275fac=function(t){return C(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["","matHeaderCellDef",""]],features:[m.Lb([{provide:s.k,useExisting:e}]),m.Jb]}),e})();const C=m.gc(O);let j=(()=>{class e extends s.g{}return e.\u0275fac=function(t){return S(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["","matFooterCellDef",""]],features:[m.Lb([{provide:s.g,useExisting:e}]),m.Jb]}),e})();const S=m.gc(j);let D=(()=>{class e extends s.e{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)}}return e.\u0275fac=function(t){return x(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[m.Lb([{provide:s.e,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),m.Jb]}),e})();const x=m.gc(D);let k=(()=>{class e extends s.j{}return e.\u0275fac=function(t){return E(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[m.Jb]}),e})();const E=m.gc(k);let z=(()=>{class e extends s.f{}return e.\u0275fac=function(t){return A(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[m.Jb]}),e})();const A=m.gc(z);let H=(()=>{class e extends s.b{}return e.\u0275fac=function(t){return T(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[m.Jb]}),e})();const T=m.gc(H);let N=(()=>{class e extends s.m{}return e.\u0275fac=function(t){return F(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[m.Lb([{provide:s.m,useExisting:e}]),m.Jb]}),e})();const F=m.gc(N);let P=(()=>{class e extends s.i{}return e.\u0275fac=function(t){return W(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[m.Lb([{provide:s.i,useExisting:e}]),m.Jb]}),e})();const W=m.gc(P);let M=(()=>{class e extends s.p{}return e.\u0275fac=function(t){return Y(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[m.Lb([{provide:s.p,useExisting:e}]),m.Jb]}),e})();const Y=m.gc(M);let I=(()=>{class e extends s.l{}return e.\u0275fac=function(t){return V(t||e)},e.\u0275cmp=m.Sb({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[m.Lb([{provide:s.l,useExisting:e}]),m.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&m.ac(0,0)},directives:[s.d],encapsulation:2}),e})();const V=m.gc(I);let L=(()=>{class e extends s.h{}return e.\u0275fac=function(t){return B(t||e)},e.\u0275cmp=m.Sb({type:e,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[m.Lb([{provide:s.h,useExisting:e}]),m.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&m.ac(0,0)},directives:[s.d],encapsulation:2}),e})();const B=m.gc(L);let U=(()=>{class e extends s.o{}return e.\u0275fac=function(t){return Z(t||e)},e.\u0275cmp=m.Sb({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[m.Lb([{provide:s.o,useExisting:e}]),m.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&m.ac(0,0)},directives:[s.d],encapsulation:2}),e})();const Z=m.gc(U);let Q=(()=>{class e extends s.n{}return e.\u0275fac=function(t){return J(t||e)},e.\u0275dir=m.Tb({type:e,selectors:[["ng-template","matNoDataRow",""]],features:[m.Lb([{provide:s.n,useExisting:e}]),m.Jb]}),e})();const J=m.gc(Q);let X=(()=>{class e extends s.s{}return e.\u0275fac=function(t){return q(t||e)},e.\u0275cmp=m.Sb({type:e,selectors:[["mat-text-column"]],features:[m.Jb],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(e,t){1&e&&(m.cc(0,0),m.Qc(1,y,2,3,"th",1),m.Qc(2,_,2,3,"td",2),m.bc())},directives:[D,O,v,k,H],encapsulation:2}),e})();const q=m.gc(X);let $=(()=>{class e{}return e.\u0275mod=m.Wb({type:e}),e.\u0275inj=m.Vb({factory:function(t){return new(t||e)},imports:[[s.r,r.j],r.j]}),e})();class K extends n.b{constructor(e=[]){super(),this._renderData=new c.a([]),this._filter=new c.a(""),this._internalPageChanges=new a.a,this._renderChangesSubscription=l.a.EMPTY,this.sortingDataAccessor=(e,t)=>{const i=e[t];if(Object(o.a)(i)){const e=Number(i);return e<9007199254740991?e:i}return i},this.sortData=(e,t)=>{const i=t.active,s=t.direction;return i&&""!=s?e.sort((e,t)=>{let n=this.sortingDataAccessor(e,i),r=this.sortingDataAccessor(t,i);const o=typeof n,c=typeof r;o!==c&&("number"===o&&(n+=""),"number"===c&&(r+=""));let a=0;return null!=n&&null!=r?n>r?a=1:n<r&&(a=-1):null!=n?a=1:null!=r&&(a=-1),a*("asc"==s?1:-1)}):e},this.filterPredicate=(e,t)=>{const i=Object.keys(e).reduce((t,i)=>t+e[i]+"\u25ec","").toLowerCase(),s=t.trim().toLowerCase();return-1!=i.indexOf(s)},this._data=new c.a(e),this._updateChangeSubscription()}get data(){return this._data.value}set data(e){this._data.next(e)}get filter(){return this._filter.value}set filter(e){this._filter.next(e)}get sort(){return this._sort}set sort(e){this._sort=e,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(e){this._paginator=e,this._updateChangeSubscription()}_updateChangeSubscription(){const e=this._sort?Object(h.a)(this._sort.sortChange,this._sort.initialized):Object(d.a)(null),t=this._paginator?Object(h.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(d.a)(null),i=this._data,s=Object(u.b)([i,this._filter]).pipe(Object(f.a)(([e])=>this._filterData(e))),n=Object(u.b)([s,e]).pipe(Object(f.a)(([e])=>this._orderData(e))),r=Object(u.b)([n,t]).pipe(Object(f.a)(([e])=>this._pageData(e)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=r.subscribe(e=>this._renderData.next(e))}_filterData(e){return this.filteredData=null==this.filter||""===this.filter?e:e.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(e){return this.sort?this.sortData(e.slice(),this.sort):e}_pageData(e){if(!this.paginator)return e;const t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(t,t+this.paginator.pageSize)}_updatePaginator(e){Promise.resolve().then(()=>{const t=this.paginator;if(t&&(t.length=e,t.pageIndex>0)){const e=Math.ceil(t.length/t.pageSize)-1||0,i=Math.min(t.pageIndex,e);i!==t.pageIndex&&(t.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}},CqXF:function(e,t,i){"use strict";i.d(t,"a",function(){return n});var s=i("7o/Q");function n(e){return t=>t.lift(new r(e))}class r{constructor(e){this.value=e}call(e,t){return t.subscribe(new o(e,this.value))}}class o extends s.a{constructor(e,t){super(e),this.value=t}_next(e){this.destination.next(this.value)}}},EePR:function(e,t,i){"use strict";i.d(t,"a",function(){return ne}),i.d(t,"b",function(){return ie}),i.d(t,"c",function(){return me}),i.d(t,"d",function(){return se}),i.d(t,"e",function(){return he}),i.d(t,"f",function(){return de}),i.d(t,"g",function(){return be}),i.d(t,"h",function(){return ue}),i.d(t,"i",function(){return fe}),i.d(t,"j",function(){return G}),i.d(t,"k",function(){return te}),i.d(t,"l",function(){return B}),i.d(t,"m",function(){return J}),i.d(t,"n",function(){return Q});var s=i("fXoL"),n=i("XNiG"),r=i("mCNh"),o=i("itXk"),c=i("HDdC"),a=i("xgIS"),l=i("DH7j"),h=i("n6bG"),d=i("lJxs");function u(e,t,i){return i?u(e,t).pipe(Object(d.a)(e=>Object(l.a)(e)?i(...e):i(e))):new c.a(i=>{const s=(...e)=>i.next(1===e.length?e[0]:e);let n;try{n=e(s)}catch(r){return void i.error(r)}if(Object(h.a)(t))return()=>t(s,n)})}var f=i("VRyK"),m=i("/uUt"),b=i("JX91"),p=i("UXun"),y=i("pLZG"),_=i("3UWI"),g=i("tnsW"),w=i("Kj3r"),v=i("zP0r"),R=i("IzEk"),O=i("1G5W"),C=i("CqXF"),j=i("7o/Q"),S=i("D0XW");i("zx2A");const D={leading:!0,trailing:!1};class x{constructor(e,t,i,s){this.duration=e,this.scheduler=t,this.leading=i,this.trailing=s}call(e,t){return t.subscribe(new k(e,this.duration,this.scheduler,this.leading,this.trailing))}}class k extends j.a{constructor(e,t,i,s,n){super(e),this.duration=t,this.scheduler=i,this.leading=s,this.trailing=n,this._hasTrailingValue=!1,this._trailingValue=null}_next(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(E,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)}}function E(e){const{subscriber:t}=e;t.clearThrottle()}var z=i("w1tV"),A=i("l7GE"),H=i("ZUHj");class T{constructor(e,t){this.observables=e,this.project=t}call(e,t){return t.subscribe(new N(e,this.observables,this.project))}}class N extends A.a{constructor(e,t,i){super(e),this.observables=t,this.project=i,this.toRespond=[];const s=t.length;this.values=new Array(s);for(let n=0;n<s;n++)this.toRespond.push(n);for(let n=0;n<s;n++){let e=t[n];this.add(Object(H.a)(this,e,void 0,n))}}notifyNext(e,t,i){this.values[i]=t;const s=this.toRespond;if(s.length>0){const e=s.indexOf(i);-1!==e&&s.splice(e,1)}}notifyComplete(){}_next(e){if(0===this.toRespond.length){const t=[e,...this.values];this.project?this._tryProject(t):this.destination.next(t)}}_tryProject(e){let t;try{t=this.project.apply(this,e)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}var F=i("cH1L"),P=i("FtGj"),W=i("rDax"),M=i("+rOU"),Y=i("u47x"),I=i("ofXK"),V=i("3Pt+"),L=i("vxfF");const B=".cdk-cell, .mat-cell, td",U=".cdk-popover-edit-cell, .mat-popover-edit-cell",Z=".cdk-row, .mat-row, tr";function Q(e,t){return e.matches?e.matches(t):e.msMatchesSelector(t)}function J(e,t){if(!(e instanceof Node))return null;let i=e;for(;null!=i&&!(i instanceof Element);)i=i.parentNode;return i&&(X?i.closest(t):function(e,t){let i=e;for(;null!=i&&!(i instanceof Element&&Q(i,t));)i=i.parentNode;return i||null}(i,t))}const X=!!Element.prototype.closest;let q=(()=>{class e{constructor(e){this._ngZone=e,this.editing=new n.a,this.hovering=new n.a,this.focused=new n.a,this.allRows=new n.a,this.mouseMove=new n.a,this.disabledCells=new WeakMap,this._editRef=null,this._distinctUntilChanged=Object(m.a)(),this._startWithNull=Object(b.a)(null),this._distinctShare=Object(r.a)(this._distinctUntilChanged,Object(p.a)(1)),this._startWithNullDistinct=Object(r.a)(this._startWithNull,this._distinctUntilChanged),this.editingAndEnabled=this.editing.pipe(Object(y.a)(e=>null==e||!this.disabledCells.has(e)),Object(p.a)(1)),this.editingOrFocused=Object(o.b)([this.editingAndEnabled.pipe(Object(d.a)(e=>J(e,Z)),this._startWithNull),this.focused.pipe(this._startWithNull)]).pipe(Object(d.a)(([e,t])=>t||e),this._distinctUntilChanged,Object(_.a)(0),this._distinctUntilChanged,Object(p.a)(1)),this._rowsWithHoverContent=new WeakMap,this._currentlyEditing=null,this._hoveredContentStateDistinct=Object(o.b)([this._getFirstRowWithHoverContent(),this._getLastRowWithHoverContent(),this.editingOrFocused,this.hovering.pipe(Object(m.a)(),Object(g.a)(e=>this.mouseMove.pipe(Object(y.a)(t=>e===t),this._startWithNull,Object(w.a)(40))),this._startWithNullDistinct)]).pipe(Object(v.a)(1),Object(d.a)($),Object(m.a)(K),this._enterZone(),Object(p.a)(1)),this._editingAndEnabledDistinct=this.editingAndEnabled.pipe(Object(m.a)(),this._enterZone(),Object(p.a)(1)),this._lastSeenRow=null,this._lastSeenRowHoverOrFocus=null,this._editingAndEnabledDistinct.subscribe(e=>{this._currentlyEditing=e})}get editRef(){return this._editRef}editingCell(e){let t=null;return this._editingAndEnabledDistinct.pipe(Object(d.a)(i=>i===(t||(t=J(e,B)))),this._distinctUntilChanged)}doneEditingCell(e){const t=J(e,B);this._currentlyEditing===t&&this.editing.next(null)}setActiveEditRef(e){this._editRef=e}unsetActiveEditRef(e){this._editRef===e&&(this._editRef=null)}registerRowWithHoverContent(e){this._rowsWithHoverContent.set(e,(this._rowsWithHoverContent.get(e)||0)+1)}deregisterRowWithHoverContent(e){const t=this._rowsWithHoverContent.get(e)||0;t<=1?this._rowsWithHoverContent.delete(e):this._rowsWithHoverContent.set(e,t-1)}hoverOrFocusOnRow(e){return e!==this._lastSeenRow&&(this._lastSeenRow=e,this._lastSeenRowHoverOrFocus=this._hoveredContentStateDistinct.pipe(Object(d.a)(t=>t.get(e)||0),this._distinctShare)),this._lastSeenRowHoverOrFocus}_enterZone(){return e=>new c.a(t=>e.subscribe({next:e=>this._ngZone.run(()=>t.next(e)),error:e=>t.error(e),complete:()=>t.complete()}))}_getFirstRowWithHoverContent(){return this._mapAllRowsToSingleRow(e=>{for(let t,i=0;t=e[i];i++)if(this._rowsWithHoverContent.has(t))return t;return null})}_getLastRowWithHoverContent(){return this._mapAllRowsToSingleRow(e=>{for(let t,i=e.length-1;t=e[i];i--)if(this._rowsWithHoverContent.has(t))return t;return null})}_mapAllRowsToSingleRow(e){return this.allRows.pipe(Object(d.a)(e),this._startWithNullDistinct)}}return e.\u0275fac=function(t){return new(t||e)(s.ic(s.I))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})();function $([e,t,i,s]){const n=new Map;for(const r of[e,t,i&&i.previousElementSibling,i&&i.nextElementSibling])r&&n.set(r,1);for(const r of[i,s])r&&n.set(r,2);return n}function K(e,t){if(e.size!==t.size)return!1;for(const i of Array.from(e.keys()))if(t.get(i)!==e.get(i))return!1;return!0}let G=(()=>{class e{constructor(e,t,i){this._form=e,this._editEventDispatcher=t,this._ngZone=i,this._finalValueSubject=new n.a,this.finalValue=this._finalValueSubject,this._blurredSubject=new n.a,this.blurred=this._blurredSubject,this._editEventDispatcher.setActiveEditRef(this)}init(e){this._ngZone.onStable.pipe(Object(R.a)(1)).subscribe(()=>{this.updateRevertValue(),e&&this.reset(e)})}ngOnDestroy(){this._editEventDispatcher.unsetActiveEditRef(this),this._finalValueSubject.next(this._form.value),this._finalValueSubject.complete()}isValid(){return this._form.valid}updateRevertValue(){this._revertFormValue=this._form.value}close(){this._editEventDispatcher.editing.next(null)}blur(){this._blurredSubject.next()}reset(e){this._form.reset(e||this._revertFormValue)}}return e.\u0275fac=function(t){return new(t||e)(s.ic(V.b,2),s.ic(q),s.ic(s.I))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})(),ee=(()=>{class e{constructor(e){this.directionality=e,this.keyObserver={next:e=>this.handleKeyboardEvent(e)}}moveFocusHorizontally(e,t){const i=Array.from(J(e,"table, cdk-table, mat-table").querySelectorAll(U)),s=i.indexOf(e)+t;i[s]&&i[s].focus()}moveFocusVertically(e,t){const i=J(e,Z),s=Array.from(J(i,"table, cdk-table, mat-table").querySelectorAll(Z)),n=s.indexOf(i),r=Array.from(i.querySelectorAll(U)).indexOf(e),o=n+t;if(s[o]){const e=Array.from(s[o].querySelectorAll(U));e[r]&&e[r].focus()}}handleKeyboardEvent(e){const t=J(e.target,U);if(t){switch(e.keyCode){case P.q:this.moveFocusVertically(t,-1);break;case P.e:this.moveFocusVertically(t,1);break;case P.j:this.moveFocusHorizontally(t,"ltr"===this.directionality.value?-1:1);break;case P.n:this.moveFocusHorizontally(t,"ltr"===this.directionality.value?1:-1);break;default:return}e.preventDefault()}}}return e.\u0275fac=function(t){return new(t||e)(s.ic(F.c))},e.\u0275prov=Object(s.Ub)({factory:function(){return new e(Object(s.ic)(F.c))},token:e,providedIn:"root"}),e})();class te{constructor(){this._formValues=new WeakMap}for(e){const t=this._formValues;let i=t.get(e);return i||(i={},t.set(e,i)),i}}let ie=(()=>{class e{constructor(e,t){this.elementRef=e,this.editRef=t,this.destroyed=new n.a,this.clickOutBehavior="close",this.preservedFormValueChange=new s.s,this.ignoreSubmitUnlessValid=!0}ngOnInit(){this.editRef.init(this.preservedFormValue),this.editRef.finalValue.subscribe(this.preservedFormValueChange),this.editRef.blurred.subscribe(()=>this._handleBlur())}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}handleFormSubmit(){this.ignoreSubmitUnlessValid&&!this.editRef.isValid()||(this.editRef.updateRevertValue(),this.editRef.close())}close(){this.editRef.close()}handlePossibleClickOut(e){if(!J(e.target,".cdk-edit-pane, .mat-edit-pane"))switch(this.clickOutBehavior){case"submit":this._triggerFormSubmit(),this.editRef.close();break;case"close":this.editRef.close()}}_handleKeydown(e){"Escape"!==e.key||Object(P.t)(e)||(this.close(),e.preventDefault())}_handleBlur(){"submit"===this.clickOutBehavior&&this._triggerFormSubmit()}_triggerFormSubmit(){this.elementRef.nativeElement.dispatchEvent(new Event("submit"))}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(s.p),s.Yb(G))},e.\u0275dir=s.Tb({type:e,selectors:[["form","cdkEditControl",""]],hostBindings:function(e,t){1&e&&s.lc("ngSubmit",function(){return t.handleFormSubmit()})("click",function(e){return t.handlePossibleClickOut(e)},!1,s.Ec)("keydown",function(e){return t._handleKeydown(e)})},inputs:{clickOutBehavior:["cdkEditControlClickOutBehavior","clickOutBehavior"],preservedFormValue:["cdkEditControlPreservedFormValue","preservedFormValue"],ignoreSubmitUnlessValid:["cdkEditControlIgnoreSubmitUnlessValid","ignoreSubmitUnlessValid"]},outputs:{preservedFormValueChange:"cdkEditControlPreservedFormValueChange"},features:[s.Lb([G])]}),e})(),se=(()=>{class e{constructor(e){this.editRef=e,this.type="button"}revertEdit(){this.editRef.reset()}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(G))},e.\u0275dir=s.Tb({type:e,selectors:[["button","cdkEditRevert",""]],hostAttrs:["type","button"],hostBindings:function(e,t){1&e&&s.lc("click",function(){return t.revertEdit()})},inputs:{type:"type"}}),e})(),ne=(()=>{class e{constructor(e,t){this.elementRef=e,this.editRef=t;const i=e.nativeElement;"BUTTON"!==i.nodeName||i.getAttribute("type")||i.setAttribute("type","button")}closeEdit(){this.editRef.close()}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(s.p),s.Yb(G))},e.\u0275dir=s.Tb({type:e,selectors:[["","cdkEditClose",""]],hostBindings:function(e,t){1&e&&s.lc("click",function(){return t.closeEdit()})("keydown.enter",function(){return t.closeEdit()})("keydown.space",function(){return t.closeEdit()})}}),e})(),re=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})(),oe=(()=>{class e extends re{constructor(e,t){super(),this.direction=e,this.overlay=t}positionStrategyForCells(e){return this.overlay.position().flexibleConnectedTo(e[0]).withGrowAfterOpen().withPush().withViewportMargin(16).withPositions([{originX:"start",originY:"top",overlayX:"start",overlayY:"top"}])}sizeConfigForCells(e){if(0===e.length)return{};if(1===e.length)return{width:e[0].getBoundingClientRect().width};let t,i;return"ltr"===this.direction.value?(t=e[0],i=e[e.length-1]):(i=e[0],t=e[e.length-1]),{width:i.getBoundingClientRect().right-t.getBoundingClientRect().left}}}return e.\u0275fac=function(t){return new(t||e)(s.ic(F.c),s.ic(W.c))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})(),ce=(()=>{class e{constructor(e,t,i,s,n,r,o,c,a){this.directionality=e,this.editEventDispatcher=t,this.focusDispatcher=i,this.focusTrapFactory=s,this.ngZone=n,this.overlay=r,this.positionFactory=o,this.scrollDispatcher=c,this.viewportRuler=a}}return e.\u0275fac=function(t){return new(t||e)(s.ic(F.c),s.ic(q),s.ic(ee),s.ic(Y.j),s.ic(s.I),s.ic(W.c),s.ic(re),s.ic(L.g),s.ic(L.j))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})();class ae extends Y.i{constructor(e,t,i,s){super(e,t,i,s,!0),this._escapeSubject=new n.a,this.startAnchorListener=()=>(this._escapeSubject.next(0),!0),this.endAnchorListener=()=>(this._escapeSubject.next(1),!0),this.attachAnchors()}escapes(){return this._escapeSubject}}let le=(()=>{class e{constructor(e,t,i){this._checker=e,this._ngZone=t,this._document=i}create(e){return new ae(e,this._checker,this._ngZone,this._document)}}return e.\u0275fac=function(t){return new(t||e)(s.ic(Y.l),s.ic(s.I),s.ic(I.e))},e.\u0275prov=Object(s.Ub)({factory:function(){return new e(Object(s.ic)(Y.l),Object(s.ic)(s.I),Object(s.ic)(I.e))},token:e,providedIn:"root"}),e})(),he=(()=>{class e{constructor(e,t,i,s){this.elementRef=e,this.editEventDispatcher=t,this.focusDispatcher=i,this.ngZone=s,this.destroyed=new n.a}ngAfterViewInit(){this._listenForTableEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}_listenForTableEvents(){const e=this.elementRef.nativeElement,t=e=>Object(d.a)(t=>J(t.target,e));this.ngZone.runOutsideAngular(()=>{Object(a.a)(e,"mouseover").pipe(t(Z),Object(O.a)(this.destroyed)).subscribe(this.editEventDispatcher.hovering),Object(a.a)(e,"mouseleave").pipe(Object(C.a)(null),Object(O.a)(this.destroyed)).subscribe(this.editEventDispatcher.hovering),Object(a.a)(e,"mousemove").pipe(function(e,t=S.a,i=D){return s=>s.lift(new x(e,t,i.leading,i.trailing))}(10),t(Z),Object(O.a)(this.destroyed)).subscribe(this.editEventDispatcher.mouseMove),u(t=>e.addEventListener("focus",t,!0),t=>e.removeEventListener("focus",t,!0)).pipe(t(Z),Object(z.a)(),Object(O.a)(this.destroyed)).subscribe(this.editEventDispatcher.focused),Object(f.a)(u(t=>e.addEventListener("blur",t,!0),t=>e.removeEventListener("blur",t,!0)),Object(a.a)(e,"keydown").pipe(Object(y.a)(e=>"Escape"===e.key))).pipe(Object(C.a)(null),Object(z.a)(),Object(O.a)(this.destroyed)).subscribe(this.editEventDispatcher.focused),this.ngZone.onStable.pipe(function(...e){return t=>{let i;return"function"==typeof e[e.length-1]&&(i=e.pop()),t.lift(new T(e,i))}}(this.editEventDispatcher.editingOrFocused),Object(y.a)(([e,t])=>null==t),Object(d.a)(()=>e.querySelectorAll(Z)),Object(z.a)(),Object(O.a)(this.destroyed)).subscribe(this.editEventDispatcher.allRows),Object(a.a)(e,"keydown").pipe(Object(y.a)(e=>"Enter"===e.key),t(B),Object(O.a)(this.destroyed)).subscribe(this.editEventDispatcher.editing),Object(a.a)(e,"keydown").pipe(Object(O.a)(this.destroyed)).subscribe(this.focusDispatcher.keyObserver)})}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(s.p),s.Yb(q),s.Yb(ee),s.Yb(s.I))},e.\u0275dir=s.Tb({type:e,selectors:[["table","editable",""],["cdk-table","editable",""],["mat-table","editable",""]],features:[s.Lb([q,ce])]}),e})(),de=(()=>{class e{constructor(e,t,i){this.services=e,this.elementRef=t,this.viewContainerRef=i,this.template=null,this._colspan={},this._disabled=!1,this.destroyed=new n.a}get colspan(){return this._colspan}set colspan(e){this._colspan=e,this.overlayRef&&(this.overlayRef.updatePositionStrategy(this._getPositionStrategy()),this.overlayRef.hasAttached()&&this._updateOverlaySize())}get disabled(){return this._disabled}set disabled(e){this._disabled=e,e?(this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement),this.services.editEventDispatcher.disabledCells.set(this.elementRef.nativeElement,!0)):this.services.editEventDispatcher.disabledCells.delete(this.elementRef.nativeElement)}ngAfterViewInit(){this._startListeningToEditEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.focusTrap&&(this.focusTrap.destroy(),this.focusTrap=void 0),this.overlayRef&&this.overlayRef.dispose()}initFocusTrap(){this.focusTrap=this.services.focusTrapFactory.create(this.overlayRef.overlayElement)}closeEditOverlay(){this.services.editEventDispatcher.doneEditingCell(this.elementRef.nativeElement)}panelClass(){return"cdk-edit-pane"}_startListeningToEditEvents(){this.services.editEventDispatcher.editingCell(this.elementRef.nativeElement).pipe(Object(O.a)(this.destroyed)).subscribe(e=>{e&&this.template?(this.overlayRef||this._createEditOverlay(),this._showEditOverlay()):this.overlayRef&&(this._maybeReturnFocusToCell(),this.overlayRef.detach())})}_createEditOverlay(){this.overlayRef=this.services.overlay.create({disposeOnNavigation:!0,panelClass:this.panelClass(),positionStrategy:this._getPositionStrategy(),scrollStrategy:this.services.overlay.scrollStrategies.reposition(),direction:this.services.directionality}),this.initFocusTrap(),this.overlayRef.overlayElement.setAttribute("aria-role","dialog"),this.overlayRef.detachments().subscribe(()=>this.closeEditOverlay())}_showEditOverlay(){this.overlayRef.attach(new M.i(this.template,this.viewContainerRef,{$implicit:this.context})),this.services.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.focusTrap.focusInitialElement()})}),Object(f.a)(this.services.scrollDispatcher.scrolled(),this.services.viewportRuler.change()).pipe(Object(b.a)(null),Object(O.a)(Object(f.a)(this.overlayRef.detachments(),this.destroyed))).subscribe(()=>{this._updateOverlaySize()})}_getOverlayCells(){const e=J(this.elementRef.nativeElement,B);if(!this._colspan.before&&!this._colspan.after)return[e];const t=J(this.elementRef.nativeElement,Z),i=Array.from(t.querySelectorAll(B)),s=i.indexOf(e);return i.slice(s-(this._colspan.before||0),s+(this._colspan.after||0)+1)}_getPositionStrategy(){return this.services.positionFactory.positionStrategyForCells(this._getOverlayCells())}_updateOverlaySize(){this.overlayRef.updateSize(this.services.positionFactory.sizeConfigForCells(this._getOverlayCells()))}_maybeReturnFocusToCell(){J(document.activeElement,".cdk-edit-pane, .mat-edit-pane")===this.overlayRef.overlayElement&&this.elementRef.nativeElement.focus()}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(ce),s.Yb(s.p),s.Yb(s.ab))},e.\u0275dir=s.Tb({type:e,selectors:[["","cdkPopoverEdit","",3,"cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(e,t){2&e&&s.Nb("tabindex",t.disabled?null:0)("aria-haspopup",!t.disabled)},inputs:{template:["cdkPopoverEdit","template"],context:["cdkPopoverEditContext","context"],colspan:["cdkPopoverEditColspan","colspan"],disabled:["cdkPopoverEditDisabled","disabled"]}}),e})(),ue=(()=>{class e extends de{constructor(e,t,i,s){super(i,e,t),this.focusEscapeNotifierFactory=s}initFocusTrap(){this.focusTrap=this.focusEscapeNotifierFactory.create(this.overlayRef.overlayElement),this.focusTrap.escapes().pipe(Object(O.a)(this.destroyed)).subscribe(e=>{this.services.editEventDispatcher.editRef&&this.services.editEventDispatcher.editRef.blur(),this.services.focusDispatcher.moveFocusHorizontally(J(this.elementRef.nativeElement,B),0===e?-1:1),this.closeEditOverlay()})}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(s.p),s.Yb(s.ab),s.Yb(ce),s.Yb(le))},e.\u0275dir=s.Tb({type:e,selectors:[["","cdkPopoverEdit","","cdkPopoverEditTabOut",""]],hostAttrs:[1,"cdk-popover-edit-cell"],hostVars:2,hostBindings:function(e,t){2&e&&s.Nb("tabindex",t.disabled?null:0)("aria-haspopup",!t.disabled)},inputs:{template:["cdkPopoverEdit","template"],context:["cdkPopoverEditContext","context"],colspan:["cdkPopoverEditColspan","colspan"],disabled:["cdkPopoverEditDisabled","disabled"]},features:[s.Jb]}),e})(),fe=(()=>{class e{constructor(e,t,i,s){this.services=e,this.elementRef=t,this.templateRef=i,this.viewContainerRef=s,this.destroyed=new n.a,this.viewRef=null}ngAfterViewInit(){this._row=J(this.elementRef.nativeElement,Z),this.services.editEventDispatcher.registerRowWithHoverContent(this._row),this._listenForHoverAndFocusEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewRef&&this.viewRef.destroy(),this._row&&this.services.editEventDispatcher.deregisterRowWithHoverContent(this._row)}initElement(e){}makeElementHiddenButFocusable(e){e.style.opacity="0"}makeElementVisible(e){e.style.opacity=""}_listenForHoverAndFocusEvents(){this.services.editEventDispatcher.hoverOrFocusOnRow(this._row).pipe(Object(O.a)(this.destroyed)).subscribe(e=>{2===e||1===e?(this.viewRef?-1===this.viewContainerRef.indexOf(this.viewRef)&&(this.viewContainerRef.insert(this.viewRef),this.viewRef.markForCheck()):(this.viewRef=this.viewContainerRef.createEmbeddedView(this.templateRef,{}),this.initElement(this.viewRef.rootNodes[0]),this.viewRef.markForCheck()),2===e?this.makeElementVisible(this.viewRef.rootNodes[0]):this.makeElementHiddenButFocusable(this.viewRef.rootNodes[0])):this.viewRef&&this.viewContainerRef.detach(this.viewContainerRef.indexOf(this.viewRef))})}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(ce),s.Yb(s.p),s.Yb(s.V),s.Yb(s.ab))},e.\u0275dir=s.Tb({type:e,selectors:[["","cdkRowHoverContent",""]]}),e})(),me=(()=>{class e{constructor(e,t){this.elementRef=e,this.editEventDispatcher=t;const i=e.nativeElement;"BUTTON"!==i.nodeName||i.getAttribute("type")||i.setAttribute("type","button")}openEdit(e){this.editEventDispatcher.editing.next(J(this.elementRef.nativeElement,B)),e.stopPropagation()}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(s.p),s.Yb(q))},e.\u0275dir=s.Tb({type:e,selectors:[["","cdkEditOpen",""]],hostBindings:function(e,t){1&e&&s.lc("click",function(e){return t.openEdit(e)})}}),e})(),be=(()=>{class e{}return e.\u0275mod=s.Wb({type:e}),e.\u0275inj=s.Vb({factory:function(t){return new(t||e)},providers:[{provide:re,useClass:oe}],imports:[[W.f]]}),e})()},Elvg:function(e,t,i){"use strict";i.r(t),i.d(t,"ColumnResizeExamplesModule",function(){return Ve}),i.d(t,"DefaultEnabledColumnResizeExample",function(){return De}),i.d(t,"DefaultEnabledColumnResizeExampleModule",function(){return xe}),i.d(t,"DefaultEnabledColumnResizeFlexExample",function(){return me}),i.d(t,"DefaultEnabledColumnResizeFlexExampleModule",function(){return be}),i.d(t,"OptInColumnResizeExample",function(){return Ye}),i.d(t,"OptInColumnResizeExampleModule",function(){return Ie});var s=i("fXoL"),n=i("+0xr"),r=i("XNiG"),o=i("xgIS"),c=i("VRyK"),a=i("itXk"),l=i("HDdC"),h=i("lJxs"),d=i("1G5W"),u=i("pLZG"),f=i("CqXF"),m=i("IzEk"),b=i("JX91"),p=i("Zy1z"),y=i("/uUt"),_=i("w1tV"),g=i("zP0r"),w=i("EePR"),v=i("f6nW"),R=i("ofXK"),O=i("8LU1"),C=i("+rOU"),j=i("FtGj");let S=0,D=(()=>{class e{constructor(){this.destroyed=new r.a,this.selectorId=""+ ++S}ngAfterViewInit(){this.elementRef.nativeElement.classList.add(this.getUniqueCssClass()),this._listenForRowHoverEvents(),this._listenForResizeActivity(),this._listenForHoverActivity()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}getUniqueCssClass(){return"cdk-column-resize-"+this.selectorId}setResized(){this.elementRef.nativeElement.classList.add("cdk-column-resize-with-resized-column")}_listenForRowHoverEvents(){this.ngZone.runOutsideAngular(()=>{const e=this.elementRef.nativeElement;Object(o.a)(e,"mouseover").pipe(Object(h.a)(e=>Object(w.m)(e.target,".cdk-header-cell, .mat-header-cell")),Object(d.a)(this.destroyed)).subscribe(this.eventDispatcher.headerCellHovered),Object(o.a)(e,"mouseleave").pipe(Object(u.a)(e=>!!e.relatedTarget&&!Object(w.n)(e.relatedTarget,".mat-column-resize-overlay-thumb")),Object(f.a)(null),Object(d.a)(this.destroyed)).subscribe(this.eventDispatcher.headerCellHovered)})}_listenForResizeActivity(){Object(c.a)(this.eventDispatcher.overlayHandleActiveForCell.pipe(Object(f.a)(void 0)),this.notifier.triggerResize.pipe(Object(f.a)(void 0)),this.notifier.resizeCompleted.pipe(Object(f.a)(void 0))).pipe(Object(m.a)(1),Object(d.a)(this.destroyed)).subscribe(()=>{this.setResized()})}_listenForHoverActivity(){this.eventDispatcher.headerRowHoveredOrActiveDistinct.pipe(Object(b.a)(null),Object(p.a)(),Object(d.a)(this.destroyed)).subscribe(([e,t])=>{t&&t.classList.add("cdk-column-resize-hover-or-active"),e&&e.classList.remove("cdk-column-resize-hover-or-active")})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=s.Tb({type:e}),e})(),x=(()=>{class e{constructor(){this.resizeCanceled=new r.a,this.resizeCompleted=new r.a,this.triggerResize=new r.a}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})(),k=(()=>{class e{constructor(e){this._source=e,this.resizeCompleted=this._source.resizeCompleted}resize(e,t){this._source.triggerResize.next({columnId:e,size:t,completeImmediately:!0,isStickyColumn:!0})}}return e.\u0275fac=function(t){return new(t||e)(s.ic(x))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})(),E=(()=>{class e{constructor(e){this._ngZone=e,this.headerCellHovered=new r.a,this.overlayHandleActiveForCell=new r.a,this.headerCellHoveredDistinct=this.headerCellHovered.pipe(Object(y.a)(),Object(_.a)()),this.headerRowHoveredOrActiveDistinct=Object(a.b)(this.headerCellHoveredDistinct.pipe(Object(h.a)(e=>Object(w.m)(e,".cdk-header-row, .mat-header-row")),Object(b.a)(null),Object(y.a)()),this.overlayHandleActiveForCell.pipe(Object(h.a)(e=>Object(w.m)(e,".cdk-header-row, .mat-header-row")),Object(b.a)(null),Object(y.a)())).pipe(Object(g.a)(1),Object(h.a)(([e,t])=>t||e),Object(y.a)(),Object(_.a)()),this._headerRowHoveredOrActiveDistinctReenterZone=this.headerRowHoveredOrActiveDistinct.pipe(this._enterZone(),Object(_.a)()),this._lastSeenRow=null,this._lastSeenRowHover=null}resizeOverlayVisibleForHeaderRow(e){return e!==this._lastSeenRow&&(this._lastSeenRow=e,this._lastSeenRowHover=this._headerRowHoveredOrActiveDistinctReenterZone.pipe(Object(h.a)(t=>t===e),Object(y.a)(),Object(_.a)())),this._lastSeenRowHover}_enterZone(){return e=>new l.a(t=>e.subscribe({next:e=>this._ngZone.run(()=>t.next(e)),error:e=>t.error(e),complete:()=>t.complete()}))}}return e.\u0275fac=function(t){return new(t||e)(s.ic(s.I))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})(),z=(()=>{class e{constructor(){this._pendingResizeDelta=null}updateTableWidthAndStickyColumns(e){var t;if(null===this._pendingResizeDelta){const e=this.columnResize.elementRef.nativeElement,t=T(e);this.styleScheduler.schedule(()=>{e.style.width=Object(O.d)(t+this._pendingResizeDelta),this._pendingResizeDelta=null}),this.styleScheduler.scheduleEnd(()=>{this.table.updateStickyColumnStyles()})}this._pendingResizeDelta=(null!==(t=this._pendingResizeDelta)&&void 0!==t?t:0)+e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})(),A=(()=>{class e extends z{constructor(e,t,i){super(),this.columnResize=e,this.styleScheduler=t,this.table=i}applyColumnSize(e,t,i,s){const n=i-(null!=s?s:T(t));0!==n&&(this.styleScheduler.schedule(()=>{t.style.width=Object(O.d)(i)}),this.updateTableWidthAndStickyColumns(n))}applyMinColumnSize(e,t,i){const s=T(t),n=Math.max(s,i);this.applyColumnSize(e,t,n,s)}applyMaxColumnSize(e,t,i){const s=T(t),n=Math.min(s,i);this.applyColumnSize(e,t,n,s)}}return e.\u0275fac=function(t){return new(t||e)(s.ic(D),s.ic(v.x),s.ic(v.q))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})(),H=(()=>{class e extends z{constructor(e,t,i,s){super(),this.columnResize=e,this.styleScheduler=t,this.table=i,this._columnIndexes=new Map,this._columnProperties=new Map,this._indexSequence=0,this.defaultMinSize=0,this.defaultMaxSize=Number.MAX_SAFE_INTEGER,this._document=s}applyColumnSize(e,t,i,s){const n=i-(null!=s?s:this._getAppliedWidth(e)||t.offsetWidth);if(0===n)return;const r=Object(O.d)(i);this._applyProperty(e,"flex","0 0.01 "+r),this.updateTableWidthAndStickyColumns(n)}applyMinColumnSize(e,t,i){const s=Object(O.d)(i);this._applyProperty(e,"min-width",s,i!==this.defaultMinSize),this.updateTableWidthAndStickyColumns(0)}applyMaxColumnSize(e,t,i){const s=Object(O.d)(i);this._applyProperty(e,"max-width",s,i!==this.defaultMaxSize),this.updateTableWidthAndStickyColumns(0)}getColumnCssClass(e){return"cdk-column-"+e}ngOnDestroy(){this._styleElement&&this._styleElement.parentNode&&(this._styleElement.parentNode.removeChild(this._styleElement),this._styleElement=void 0)}_getPropertyValue(e,t){return this._getColumnPropertiesMap(e).get(t)}_getAppliedWidth(e){return t=this._getPropertyValue(e,"flex"),Number(null===(i=null==t?void 0:t.match(/0 0\.01 (\d+)px/))||void 0===i?void 0:i[1]);var t,i}_applyProperty(e,t,i,s=!0){const n=this._getColumnPropertiesMap(e);this.styleScheduler.schedule(()=>{s?n.set(t,i):n.delete(t),this._applySizeCss(e)})}_getStyleSheet(){return this._styleElement||(this._styleElement=this._document.createElement("style"),this._styleElement.appendChild(this._document.createTextNode("")),this._document.head.appendChild(this._styleElement)),this._styleElement.sheet}_getColumnPropertiesMap(e){let t=this._columnProperties.get(e);return void 0===t&&(t=new Map,this._columnProperties.set(e,t)),t}_applySizeCss(e){const t=this._getColumnPropertiesMap(e),i=Array.from(t.keys());let s=this._columnIndexes.get(e);if(void 0===s){if(!i.length)return;s=this._indexSequence++,this._columnIndexes.set(e,s)}else this._getStyleSheet().deleteRule(s);const n=this.getColumnCssClass(e),r=`.${this.columnResize.getUniqueCssClass()} .${n}`,o=i.map(e=>`${e}:${t.get(e)}`).join(";");this._getStyleSheet().insertRule(`${r} {${o}}`,s)}}return e.\u0275fac=function(t){return new(t||e)(s.ic(D),s.ic(v.x),s.ic(v.q),s.ic(R.e))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})();function T(e){return Number(null===(t=e.style.width.match(/(\d+)px/))||void 0===t?void 0:t[1])||e.offsetWidth;var t}const N={provide:z,useClass:A};class F{constructor(e,t,i,s){this.origin=e,this.overlayRef=t,this.minWidthPx=i,this.maxWidthPx=s}}let P=(()=>{class e{constructor(){this.minWidthPxInternal=0,this.maxWidthPxInternal=Number.MAX_SAFE_INTEGER,this.destroyed=new r.a,this._viewInitialized=!1}get minWidthPx(){return this.minWidthPxInternal}set minWidthPx(e){this.minWidthPxInternal=e,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMinWidthPx()}get maxWidthPx(){return this.maxWidthPxInternal}set maxWidthPx(e){this.maxWidthPxInternal=e,this.columnResize.setResized(),this.elementRef.nativeElement&&this._viewInitialized&&this._applyMaxWidthPx()}ngAfterViewInit(){this._listenForRowHoverEvents(),this._listenForResizeEvents(),this._appendInlineHandle(),this.styleScheduler.scheduleEnd(()=>{this._viewInitialized=!0,this._applyMinWidthPx(),this._applyMaxWidthPx()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.inlineHandle&&this.elementRef.nativeElement.removeChild(this.inlineHandle),this.overlayRef&&this.overlayRef.dispose()}_createOverlayForHandle(){const e="rtl"===this.directionality.value,t=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withFlexibleDimensions(!1).withGrowAfterOpen(!1).withPush(!1).withDefaultOffsetX(e?1:0).withPositions([{originX:e?"start":"end",originY:"top",overlayX:"center",overlayY:"top"}]);return this.overlay.create({direction:"ltr",disposeOnNavigation:!0,positionStrategy:t,scrollStrategy:this.overlay.scrollStrategies.reposition(),width:"16px"})}_listenForRowHoverEvents(){const e=this.elementRef.nativeElement,t=Object(d.a)(this.destroyed);this.eventDispatcher.resizeOverlayVisibleForHeaderRow(Object(w.m)(e,".cdk-header-row, .mat-header-row")).pipe(t).subscribe(e=>{e?(this.overlayRef||(this.overlayRef=this._createOverlayForHandle()),this._showHandleOverlay()):this.overlayRef&&this.overlayRef.detach()})}_listenForResizeEvents(){const e=Object(d.a)(this.destroyed);Object(c.a)(this.resizeNotifier.resizeCanceled,this.resizeNotifier.triggerResize).pipe(e,Object(u.a)(e=>e.columnId===this.columnDef.name)).subscribe(({size:e,previousSize:t,completeImmediately:i})=>{this.elementRef.nativeElement.classList.add("cdk-resizable-overlay-thumb-active"),this._applySize(e,t),i&&this._completeResizeOperation()}),Object(c.a)(this.resizeNotifier.resizeCanceled,this.resizeNotifier.resizeCompleted).pipe(e).subscribe(e=>{this._cleanUpAfterResize(e)})}_completeResizeOperation(){this.ngZone.run(()=>{this.resizeNotifier.resizeCompleted.next({columnId:this.columnDef.name,size:this.elementRef.nativeElement.offsetWidth})})}_cleanUpAfterResize(e){this.elementRef.nativeElement.classList.remove("cdk-resizable-overlay-thumb-active"),this.overlayRef&&this.overlayRef.hasAttached()&&(this._updateOverlayHandleHeight(),this.overlayRef.updatePosition(),e.columnId===this.columnDef.name&&this.inlineHandle.focus())}_createHandlePortal(){const e=s.y.create({parent:this.injector,providers:[{provide:F,useValue:new F(this.elementRef,this.overlayRef,this.minWidthPx,this.maxWidthPx)}]});return new C.d(this.getOverlayHandleComponentType(),this.viewContainerRef,e)}_showHandleOverlay(){this._updateOverlayHandleHeight(),this.overlayRef.attach(this._createHandlePortal()),this.changeDetectorRef.markForCheck()}_updateOverlayHandleHeight(){this.overlayRef.updateSize({height:this.elementRef.nativeElement.offsetHeight})}_applySize(e,t){const i=Math.min(Math.max(e,this.minWidthPx,0),this.maxWidthPx);this.resizeStrategy.applyColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,i,t)}_applyMinWidthPx(){this.resizeStrategy.applyMinColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.minWidthPx)}_applyMaxWidthPx(){this.resizeStrategy.applyMaxColumnSize(this.columnDef.cssClassFriendlyName,this.elementRef.nativeElement,this.maxWidthPx)}_appendInlineHandle(){this.styleScheduler.schedule(()=>{this.inlineHandle=this.document.createElement("div"),this.inlineHandle.tabIndex=0,this.inlineHandle.className=this.getInlineHandleCssClassName(),this.elementRef.nativeElement.appendChild(this.inlineHandle)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=s.Tb({type:e}),e})(),W=(()=>{class e{constructor(){this.destroyed=new r.a}ngAfterViewInit(){this._listenForMouseEvents()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}_listenForMouseEvents(){this.ngZone.runOutsideAngular(()=>{Object(o.a)(this.elementRef.nativeElement,"mouseenter").pipe(Object(f.a)(this.resizeRef.origin.nativeElement),Object(d.a)(this.destroyed)).subscribe(e=>this.eventDispatcher.headerCellHovered.next(e)),Object(o.a)(this.elementRef.nativeElement,"mouseleave").pipe(Object(h.a)(e=>e.relatedTarget&&Object(w.m)(e.relatedTarget,".cdk-header-cell, .mat-header-cell")),Object(d.a)(this.destroyed)).subscribe(e=>this.eventDispatcher.headerCellHovered.next(e)),Object(o.a)(this.elementRef.nativeElement,"mousedown").pipe(Object(d.a)(this.destroyed)).subscribe(e=>{this._dragStarted(e)})})}_dragStarted(e){if(0!==e.button)return;const t=Object(o.a)(this.document,"mouseup"),i=Object(o.a)(this.document,"mousemove"),s=Object(o.a)(this.document,"keyup").pipe(Object(u.a)(e=>e.keyCode===j.h)),n=e.screenX,r=this._getOriginWidth();let a=0,l=this._getOriginOffset(),f=r,m=0;this.updateResizeActive(!0),t.pipe(Object(d.a)(Object(c.a)(s,this.destroyed))).subscribe(({screenX:e})=>{this.styleScheduler.scheduleEnd(()=>{this._notifyResizeEnded(f,e!==n)})}),s.pipe(Object(d.a)(Object(c.a)(t,this.destroyed))).subscribe(()=>{this._notifyResizeEnded(r)}),i.pipe(Object(h.a)(({screenX:e})=>e),Object(b.a)(n),Object(y.a)(),Object(p.a)(),Object(d.a)(Object(c.a)(t,s,this.destroyed))).subscribe(([e,t])=>{let i=t-e;if(0!==m){if(m<0&&i<0||m>0&&i>0)return void(m+=i);{const e=m+i;if(m=m>0?Math.max(e,0):Math.min(e,0),i=e-m,0===i)return}}let s=f+(this._isLtr()?i:-i);s=Math.min(Math.max(s,this.resizeRef.minWidthPx,0),this.resizeRef.maxWidthPx),this.resizeNotifier.triggerResize.next({columnId:this.columnDef.name,size:s,previousSize:f,isStickyColumn:this.columnDef.sticky||this.columnDef.stickyEnd}),this.styleScheduler.scheduleEnd(()=>{const e=this._getOriginWidth(),t=this._getOriginOffset(),s=t-l,n=e-f;f=e,l=t,m+=i+(this._isLtr()?-n:n),a+=s+(this._isLtr()?n:0),this._updateOverlayOffset(a)})})}updateResizeActive(e){this.eventDispatcher.overlayHandleActiveForCell.next(e?this.resizeRef.origin.nativeElement:null)}_getOriginWidth(){return this.resizeRef.origin.nativeElement.offsetWidth}_getOriginOffset(){return this.resizeRef.origin.nativeElement.offsetLeft}_updateOverlayOffset(e){this.resizeRef.overlayRef.overlayElement.style.transform=`translateX(${Object(O.d)(e)})`}_isLtr(){return"ltr"===this.directionality.value}_notifyResizeEnded(e,t=!1){this.updateResizeActive(!1),this.ngZone.run(()=>{const i={columnId:this.columnDef.name,size:e};t?this.resizeNotifier.resizeCompleted.next(i):this.resizeNotifier.resizeCanceled.next(i)})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=s.Tb({type:e}),e})();var M=i("cH1L"),Y=i("rDax"),I=i("FKr1");const V={provide:z,useClass:(()=>{class e extends H{constructor(e,t,i,s){super(e,t,i,s)}getColumnCssClass(e){return"mat-column-"+e}}return e.\u0275fac=function(t){return new(t||e)(s.ic(D),s.ic(v.x),s.ic(v.q),s.ic(R.e))},e.\u0275prov=s.Ub({token:e,factory:e.\u0275fac}),e})()},L=[k,E,x],B=[...L,N],U=[...L,V];class Z extends D{getTableHeight(){return this.elementRef.nativeElement.offsetHeight}}let Q=(()=>{class e extends Z{constructor(e,t,i,s,n){super(),this.columnResizeNotifier=e,this.elementRef=t,this.eventDispatcher=i,this.ngZone=s,this.notifier=n}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(k),s.Yb(s.p),s.Yb(E),s.Yb(s.I),s.Yb(x))},e.\u0275dir=s.Tb({type:e,selectors:[["table","mat-table","","columnResize",""]],hostAttrs:[1,"mat-column-resize-table"],features:[s.Lb([...B,{provide:D,useExisting:e}]),s.Jb]}),e})(),J=(()=>{class e extends Z{constructor(e,t,i,s,n){super(),this.columnResizeNotifier=e,this.elementRef=t,this.eventDispatcher=i,this.ngZone=s,this.notifier=n}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(k),s.Yb(s.p),s.Yb(E),s.Yb(s.I),s.Yb(x))},e.\u0275dir=s.Tb({type:e,selectors:[["table","mat-table",""]],hostAttrs:[1,"mat-column-resize-table"],features:[s.Lb([...B,{provide:D,useExisting:e}]),s.Jb]}),e})(),X=(()=>{class e extends Z{constructor(e,t,i,s,n){super(),this.columnResizeNotifier=e,this.elementRef=t,this.eventDispatcher=i,this.ngZone=s,this.notifier=n}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(k),s.Yb(s.p),s.Yb(E),s.Yb(s.I),s.Yb(x))},e.\u0275dir=s.Tb({type:e,selectors:[["mat-table"]],hostAttrs:[1,"mat-column-resize-flex"],features:[s.Lb([...U,{provide:D,useExisting:e}]),s.Jb]}),e})(),q=(()=>{class e extends W{constructor(e,t,i,s,n,r,o,c,a,l){super(),this.columnDef=e,this.columnResize=t,this.directionality=i,this.elementRef=s,this.eventDispatcher=n,this.ngZone=r,this.resizeNotifier=o,this.resizeRef=c,this.styleScheduler=a,this.document=l}updateResizeActive(e){super.updateResizeActive(e),this.resizeRef.overlayRef.updateSize({height:e?this.columnResize.getTableHeight():this.resizeRef.origin.nativeElement.offsetHeight})}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(v.e),s.Yb(D),s.Yb(M.c),s.Yb(s.p),s.Yb(E),s.Yb(s.I),s.Yb(x),s.Yb(F),s.Yb(v.x),s.Yb(R.e))},e.\u0275cmp=s.Sb({type:e,selectors:[["ng-component"]],hostAttrs:[1,"mat-column-resize-overlay-thumb"],features:[s.Jb],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),e})();class $ extends P{constructor(){super(...arguments),this.minWidthPxInternal=32}getInlineHandleCssClassName(){return"mat-resizable-handle"}getOverlayHandleComponentType(){return q}}let K=(()=>{class e extends ${constructor(e,t,i,s,n,r,o,c,a,l,h,d,u,f){super(),this.columnDef=e,this.columnResize=t,this.directionality=i,this.elementRef=n,this.eventDispatcher=r,this.injector=o,this.ngZone=c,this.overlay=a,this.resizeNotifier=l,this.resizeStrategy=h,this.styleScheduler=d,this.viewContainerRef=u,this.changeDetectorRef=f,this.document=s}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(v.e),s.Yb(D),s.Yb(M.c),s.Yb(R.e),s.Yb(s.p),s.Yb(E),s.Yb(s.y),s.Yb(s.I),s.Yb(Y.c),s.Yb(x),s.Yb(z),s.Yb(v.x),s.Yb(s.ab),s.Yb(s.i))},e.\u0275dir=s.Tb({type:e,selectors:[["mat-header-cell",3,"disableResize",""],["th","mat-header-cell","",3,"disableResize",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:["matResizableMinWidthPx","minWidthPx"],maxWidthPx:["matResizableMaxWidthPx","maxWidthPx"]},features:[s.Jb]}),e})(),G=(()=>{class e extends ${constructor(e,t,i,s,n,r,o,c,a,l,h,d,u,f){super(),this.columnDef=e,this.columnResize=t,this.directionality=i,this.elementRef=n,this.eventDispatcher=r,this.injector=o,this.ngZone=c,this.overlay=a,this.resizeNotifier=l,this.resizeStrategy=h,this.styleScheduler=d,this.viewContainerRef=u,this.changeDetectorRef=f,this.document=s}}return e.\u0275fac=function(t){return new(t||e)(s.Yb(v.e),s.Yb(D),s.Yb(M.c),s.Yb(R.e),s.Yb(s.p),s.Yb(E),s.Yb(s.y),s.Yb(s.I),s.Yb(Y.c),s.Yb(x),s.Yb(z),s.Yb(v.x),s.Yb(s.ab),s.Yb(s.i))},e.\u0275dir=s.Tb({type:e,selectors:[["mat-header-cell","resizable",""],["th","mat-header-cell","","resizable",""]],hostAttrs:[1,"mat-resizable"],inputs:{minWidthPx:["matResizableMinWidthPx","minWidthPx"],maxWidthPx:["matResizableMaxWidthPx","maxWidthPx"]},features:[s.Jb]}),e})();const ee=[I.j,Y.f,(()=>{class e{}return e.\u0275mod=s.Wb({type:e}),e.\u0275inj=s.Vb({factory:function(t){return new(t||e)}}),e})()];let te=(()=>{class e{}return e.\u0275mod=s.Wb({type:e}),e.\u0275inj=s.Vb({factory:function(t){return new(t||e)},imports:[ee]}),e})(),ie=(()=>{class e{}return e.\u0275mod=s.Wb({type:e}),e.\u0275inj=s.Vb({factory:function(t){return new(t||e)},imports:[ee]}),e})();function se(e,t){1&e&&(Object(s.ec)(0,"mat-header-cell",12),Object(s.Sc)(1," No. "),Object(s.dc)()),2&e&&Object(s.vc)("matResizableMaxWidthPx",100)}function ne(e,t){if(1&e&&(Object(s.ec)(0,"mat-cell"),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.position," ")}}function re(e,t){1&e&&(Object(s.ec)(0,"mat-header-cell",13),Object(s.Sc)(1," Name "),Object(s.dc)()),2&e&&Object(s.vc)("matResizableMinWidthPx",150)}function oe(e,t){if(1&e&&(Object(s.ec)(0,"mat-cell"),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.name," ")}}function ce(e,t){1&e&&(Object(s.ec)(0,"mat-header-cell",14),Object(s.Sc)(1," Weight (Not resizable) "),Object(s.dc)())}function ae(e,t){if(1&e&&(Object(s.ec)(0,"mat-cell"),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.weight," ")}}function le(e,t){1&e&&(Object(s.ec)(0,"mat-header-cell"),Object(s.Sc)(1," Symbol "),Object(s.dc)())}function he(e,t){if(1&e&&(Object(s.ec)(0,"mat-cell"),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.symbol," ")}}function de(e,t){1&e&&Object(s.Zb)(0,"mat-header-row")}function ue(e,t){1&e&&Object(s.Zb)(0,"mat-row")}const fe=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let me=(()=>{class e{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=fe}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["default-enabled-column-resize-flex-example"]],decls:15,vars:3,consts:[[1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],[3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","name","sticky",""],[3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["disableResize","",4,"matHeaderCellDef"],["matColumnDef","symbol"],[4,"matHeaderCellDef"],[4,"matHeaderRowDef"],[4,"matRowDef","matRowDefColumns"],[3,"matResizableMaxWidthPx"],[3,"matResizableMinWidthPx"],["disableResize",""]],template:function(e,t){1&e&&(Object(s.ec)(0,"mat-table",0),Object(s.cc)(1,1),Object(s.Qc)(2,se,2,1,"mat-header-cell",2),Object(s.Qc)(3,ne,2,1,"mat-cell",3),Object(s.bc)(),Object(s.cc)(4,4),Object(s.Qc)(5,re,2,1,"mat-header-cell",5),Object(s.Qc)(6,oe,2,1,"mat-cell",3),Object(s.bc)(),Object(s.cc)(7,6),Object(s.Qc)(8,ce,2,0,"mat-header-cell",7),Object(s.Qc)(9,ae,2,1,"mat-cell",3),Object(s.bc)(),Object(s.cc)(10,8),Object(s.Qc)(11,le,2,0,"mat-header-cell",9),Object(s.Qc)(12,he,2,1,"mat-cell",3),Object(s.bc)(),Object(s.Qc)(13,de,1,0,"mat-header-row",10),Object(s.Qc)(14,ue,1,0,"mat-row",11),Object(s.dc)()),2&e&&(Object(s.vc)("dataSource",t.dataSource),Object(s.Mb)(13),Object(s.vc)("matHeaderRowDef",t.displayedColumns),Object(s.Mb)(1),Object(s.vc)("matRowDefColumns",t.displayedColumns))},directives:[X,n.o,n.c,n.i,n.b,n.k,n.n,K,n.h,n.a,n.j,n.m],styles:["[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}"]}),e})(),be=(()=>{class e{}return e.\u0275mod=Object(s.Wb)({type:e}),e.\u0275inj=Object(s.Vb)({factory:function(t){return new(t||e)},imports:[[te,n.q]]}),e})();function pe(e,t){1&e&&(Object(s.ec)(0,"th",12),Object(s.Sc)(1," No. "),Object(s.dc)()),2&e&&Object(s.vc)("matResizableMaxWidthPx",100)}function ye(e,t){if(1&e&&(Object(s.ec)(0,"td",13),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.position," ")}}function _e(e,t){1&e&&(Object(s.ec)(0,"th",14),Object(s.Sc)(1," Name "),Object(s.dc)()),2&e&&Object(s.vc)("matResizableMinWidthPx",150)}function ge(e,t){if(1&e&&(Object(s.ec)(0,"td",13),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.name," ")}}function we(e,t){1&e&&(Object(s.ec)(0,"th",15),Object(s.Sc)(1," Weight (Not resizable) "),Object(s.dc)())}function ve(e,t){if(1&e&&(Object(s.ec)(0,"td",13),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.weight," ")}}function Re(e,t){1&e&&(Object(s.ec)(0,"th",16),Object(s.Sc)(1," Symbol "),Object(s.dc)())}function Oe(e,t){if(1&e&&(Object(s.ec)(0,"td",13),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.symbol," ")}}function Ce(e,t){1&e&&Object(s.Zb)(0,"tr",17)}function je(e,t){1&e&&Object(s.Zb)(0,"tr",18)}const Se=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let De=(()=>{class e{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=Se}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["default-enabled-column-resize-example"]],decls:15,vars:3,consts:[["mat-table","",1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],["mat-header-cell","",3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name","sticky",""],["mat-header-cell","",3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["mat-header-cell","","disableResize","",4,"matHeaderCellDef"],["matColumnDef","symbol"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",3,"matResizableMaxWidthPx"],["mat-cell",""],["mat-header-cell","",3,"matResizableMinWidthPx"],["mat-header-cell","","disableResize",""],["mat-header-cell",""],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Object(s.ec)(0,"table",0),Object(s.cc)(1,1),Object(s.Qc)(2,pe,2,1,"th",2),Object(s.Qc)(3,ye,2,1,"td",3),Object(s.bc)(),Object(s.cc)(4,4),Object(s.Qc)(5,_e,2,1,"th",5),Object(s.Qc)(6,ge,2,1,"td",3),Object(s.bc)(),Object(s.cc)(7,6),Object(s.Qc)(8,we,2,0,"th",7),Object(s.Qc)(9,ve,2,1,"td",3),Object(s.bc)(),Object(s.cc)(10,8),Object(s.Qc)(11,Re,2,0,"th",9),Object(s.Qc)(12,Oe,2,1,"td",3),Object(s.bc)(),Object(s.Qc)(13,Ce,1,0,"tr",10),Object(s.Qc)(14,je,1,0,"tr",11),Object(s.dc)()),2&e&&(Object(s.vc)("dataSource",t.dataSource),Object(s.Mb)(13),Object(s.vc)("matHeaderRowDef",t.displayedColumns),Object(s.Mb)(1),Object(s.vc)("matRowDefColumns",t.displayedColumns))},directives:[J,n.o,n.c,n.i,n.b,n.k,n.n,K,n.h,n.a,n.j,n.m],styles:["[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}"]}),e})(),xe=(()=>{class e{}return e.\u0275mod=Object(s.Wb)({type:e}),e.\u0275inj=Object(s.Vb)({factory:function(t){return new(t||e)},imports:[[te,n.q]]}),e})();function ke(e,t){1&e&&(Object(s.ec)(0,"th",12),Object(s.Sc)(1," No. "),Object(s.dc)()),2&e&&Object(s.vc)("matResizableMaxWidthPx",100)}function Ee(e,t){if(1&e&&(Object(s.ec)(0,"td",13),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.position," ")}}function ze(e,t){1&e&&(Object(s.ec)(0,"th",14),Object(s.Sc)(1," Name "),Object(s.dc)()),2&e&&Object(s.vc)("matResizableMinWidthPx",150)}function Ae(e,t){if(1&e&&(Object(s.ec)(0,"td",13),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.name," ")}}function He(e,t){1&e&&(Object(s.ec)(0,"th",15),Object(s.Sc)(1," Weight (Not resizable) "),Object(s.dc)())}function Te(e,t){if(1&e&&(Object(s.ec)(0,"td",13),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.weight," ")}}function Ne(e,t){1&e&&(Object(s.ec)(0,"th",16),Object(s.Sc)(1," Symbol "),Object(s.dc)())}function Fe(e,t){if(1&e&&(Object(s.ec)(0,"td",13),Object(s.Sc)(1),Object(s.dc)()),2&e){const e=t.$implicit;Object(s.Mb)(1),Object(s.Uc)(" ",e.symbol," ")}}function Pe(e,t){1&e&&Object(s.Zb)(0,"tr",17)}function We(e,t){1&e&&Object(s.Zb)(0,"tr",18)}const Me=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"},{position:11,name:"Sodium",weight:22.9897,symbol:"Na"},{position:12,name:"Magnesium",weight:24.305,symbol:"Mg"},{position:13,name:"Aluminum",weight:26.9815,symbol:"Al"},{position:14,name:"Silicon",weight:28.0855,symbol:"Si"},{position:15,name:"Phosphorus",weight:30.9738,symbol:"P"},{position:16,name:"Sulfur",weight:32.065,symbol:"S"},{position:17,name:"Chlorine",weight:35.453,symbol:"Cl"},{position:18,name:"Argon",weight:39.948,symbol:"Ar"},{position:19,name:"Potassium",weight:39.0983,symbol:"K"},{position:20,name:"Calcium",weight:40.078,symbol:"Ca"}];let Ye=(()=>{class e{constructor(){this.displayedColumns=["position","name","weight","symbol"],this.dataSource=Me}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(s.Sb)({type:e,selectors:[["opt-in-column-resize-example"]],decls:15,vars:3,consts:[["mat-table","","columnResize","",1,"mat-elevation-z8","example-table",3,"dataSource"],["matColumnDef","position","sticky",""],["mat-header-cell","","resizable","",3,"matResizableMaxWidthPx",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name","sticky",""],["mat-header-cell","","resizable","",3,"matResizableMinWidthPx",4,"matHeaderCellDef"],["matColumnDef","weight"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","symbol"],["mat-header-cell","","resizable","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","resizable","",3,"matResizableMaxWidthPx"],["mat-cell",""],["mat-header-cell","","resizable","",3,"matResizableMinWidthPx"],["mat-header-cell",""],["mat-header-cell","","resizable",""],["mat-header-row",""],["mat-row",""]],template:function(e,t){1&e&&(Object(s.ec)(0,"table",0),Object(s.cc)(1,1),Object(s.Qc)(2,ke,2,1,"th",2),Object(s.Qc)(3,Ee,2,1,"td",3),Object(s.bc)(),Object(s.cc)(4,4),Object(s.Qc)(5,ze,2,1,"th",5),Object(s.Qc)(6,Ae,2,1,"td",3),Object(s.bc)(),Object(s.cc)(7,6),Object(s.Qc)(8,He,2,0,"th",7),Object(s.Qc)(9,Te,2,1,"td",3),Object(s.bc)(),Object(s.cc)(10,8),Object(s.Qc)(11,Ne,2,0,"th",9),Object(s.Qc)(12,Fe,2,1,"td",3),Object(s.bc)(),Object(s.Qc)(13,Pe,1,0,"tr",10),Object(s.Qc)(14,We,1,0,"tr",11),Object(s.dc)()),2&e&&(Object(s.vc)("dataSource",t.dataSource),Object(s.Mb)(13),Object(s.vc)("matHeaderRowDef",t.displayedColumns),Object(s.Mb)(1),Object(s.vc)("matRowDefColumns",t.displayedColumns))},directives:[n.o,Q,n.c,n.i,n.b,n.k,n.n,n.h,G,n.a,n.j,n.m],styles:["[_nghost-%COMP%] {\n display: block;\n overflow: auto;\n}"]}),e})(),Ie=(()=>{class e{}return e.\u0275mod=Object(s.Wb)({type:e}),e.\u0275inj=Object(s.Vb)({factory:function(t){return new(t||e)},imports:[[ie,n.q]]}),e})(),Ve=(()=>{class e{}return e.\u0275mod=Object(s.Wb)({type:e}),e.\u0275inj=Object(s.Vb)({factory:function(t){return new(t||e)},imports:[xe,be,Ie]}),e})()},f6nW:function(e,t,i){"use strict";i.d(t,"a",function(){return R}),i.d(t,"b",function(){return H}),i.d(t,"c",function(){return C}),i.d(t,"d",function(){return U}),i.d(t,"e",function(){return k}),i.d(t,"f",function(){return A}),i.d(t,"g",function(){return S}),i.d(t,"h",function(){return Q}),i.d(t,"i",function(){return L}),i.d(t,"j",function(){return z}),i.d(t,"k",function(){return j}),i.d(t,"l",function(){return Z}),i.d(t,"m",function(){return Y}),i.d(t,"n",function(){return X}),i.d(t,"o",function(){return J}),i.d(t,"p",function(){return B}),i.d(t,"q",function(){return ie}),i.d(t,"r",function(){return re}),i.d(t,"s",function(){return ne}),i.d(t,"t",function(){return K}),i.d(t,"u",function(){return ee}),i.d(t,"v",function(){return G}),i.d(t,"w",function(){return te}),i.d(t,"x",function(){return N}),i.d(t,"y",function(){return F});var s=i("8LU1"),n=i("0EQZ"),r=i("fXoL"),o=i("cH1L"),c=i("nLfN"),a=i("vxfF"),l=i("ofXK"),h=i("XNiG"),d=i("Cfvw"),u=i("2Vo4"),f=i("7+OI"),m=i("LRne"),b=i("1G5W"),p=i("IzEk");const y=[[["caption"]],[["colgroup"],["col"]]],_=["caption","colgroup, col"];function g(e,t){if(1&e&&(r.ec(0,"th",3),r.Sc(1),r.dc()),2&e){const e=r.pc();r.Nc("text-align",e.justify),r.Mb(1),r.Uc(" ",e.headerText," ")}}function w(e,t){if(1&e&&(r.ec(0,"td",4),r.Sc(1),r.dc()),2&e){const e=t.$implicit,i=r.pc();r.Nc("text-align",i.justify),r.Mb(1),r.Uc(" ",i.dataAccessor(e,i.name)," ")}}function v(e){return class extends e{constructor(...e){super(...e),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(e){const t=this._sticky;this._sticky=Object(s.c)(e),this._hasStickyChanged=t!==this._sticky}hasStickyChanged(){const e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}resetStickyChanged(){this._hasStickyChanged=!1}}}const R=new r.x("CDK_TABLE"),O=new r.x("text-column-options");let C=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.V))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkCellDef",""]]}),e})(),j=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.V))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e})(),S=(()=>{class e{constructor(e){this.template=e}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.V))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkFooterCellDef",""]]}),e})();class D{}const x=v(D);let k=(()=>{class e extends x{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Object(s.c)(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(R,8))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,i){if(1&e&&(r.Rb(i,C,!0),r.Rb(i,j,!0),r.Rb(i,S,!0)),2&e){let e;r.Bc(e=r.mc())&&(t.cell=e.first),r.Bc(e=r.mc())&&(t.headerCell=e.first),r.Bc(e=r.mc())&&(t.footerCell=e.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[r.Lb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),r.Jb]}),e})();class E{constructor(e,t){const i=t.nativeElement.classList;for(const s of e._columnCssClassName)i.add(s)}}let z=(()=>{class e extends E{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(k),r.Yb(r.p))},e.\u0275dir=r.Tb({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[r.Jb]}),e})(),A=(()=>{class e extends E{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(k),r.Yb(r.p))},e.\u0275dir=r.Tb({type:e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[r.Jb]}),e})(),H=(()=>{class e extends E{constructor(e,t){super(e,t)}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(k),r.Yb(r.p))},e.\u0275dir=r.Tb({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[r.Jb]}),e})();class T{constructor(){this.tasks=[],this.endTasks=[]}}const N=new r.x("_COALESCED_STYLE_SCHEDULER");let F=(()=>{class e{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new h.a}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new T,this._getScheduleObservable().pipe(Object(b.a)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new T;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(d.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(p.a)(1))}}return e.\u0275fac=function(t){return new(t||e)(r.ic(r.I))},e.\u0275prov=r.Ub({token:e,factory:e.\u0275fac}),e})(),P=(()=>{class e{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Y?e.headerCell.template:this instanceof L?e.footerCell.template:e.cell.template}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.V),r.Yb(r.A))},e.\u0275dir=r.Tb({type:e,features:[r.Kb]}),e})();class W extends P{}const M=v(W);let Y=(()=>{class e extends M{constructor(e,t,i){super(e,t),this._table=i}ngOnChanges(e){super.ngOnChanges(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.V),r.Yb(r.A),r.Yb(R,8))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[r.Jb,r.Kb]}),e})();class I extends P{}const V=v(I);let L=(()=>{class e extends V{constructor(e,t,i){super(e,t),this._table=i}ngOnChanges(e){super.ngOnChanges(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.V),r.Yb(r.A),r.Yb(R,8))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[r.Jb,r.Kb]}),e})(),B=(()=>{class e extends P{constructor(e,t,i){super(e,t),this._table=i}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.V),r.Yb(r.A),r.Yb(R,8))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[r.Jb]}),e})(),U=(()=>{class e{constructor(t){this._viewContainer=t,e.mostRecentCellOutlet=this}ngOnDestroy(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.ab))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e})(),Z=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Sb({type:e,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&r.ac(0,0)},directives:[U],encapsulation:2}),e})(),Q=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Sb({type:e,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&r.ac(0,0)},directives:[U],encapsulation:2}),e})(),J=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r.Sb({type:e,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&r.ac(0,0)},directives:[U],encapsulation:2}),e})(),X=(()=>{class e{constructor(e){this.templateRef=e}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.V))},e.\u0275dir=r.Tb({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e})();const q=["top","bottom","left","right"];class ${constructor(e,t,i,s,n=!0,r=!0){this._isNativeHtmlTable=e,this._stickCellCss=t,this.direction=i,this._coalescedStyleScheduler=s,this._isBrowser=n,this._needsPositionStickyOnElement=r,this._cachedCellWidths=[]}clearStickyPositioning(e,t){const i=[];for(const s of e)if(s.nodeType===s.ELEMENT_NODE){i.push(s);for(let e=0;e<s.children.length;e++)i.push(s.children[e])}this._scheduleStyleChanges(()=>{for(const e of i)this._removeStickyStyle(e,t)})}updateStickyColumns(e,t,i,s=!0){if(!e.length||!this._isBrowser||!t.some(e=>e)&&!i.some(e=>e))return;const n=e[0],r=n.children.length,o=this._getCellWidths(n,s),c=this._getStickyStartColumnPositions(o,t),a=this._getStickyEndColumnPositions(o,i);this._scheduleStyleChanges(()=>{const s="rtl"===this.direction,n=s?"right":"left",o=s?"left":"right";for(const l of e)for(let e=0;e<r;e++){const s=l.children[e];t[e]&&this._addStickyStyle(s,n,c[e]),i[e]&&this._addStickyStyle(s,o,a[e])}})}stickRows(e,t,i){if(!this._isBrowser)return;const s="bottom"===i?e.slice().reverse():e,n="bottom"===i?t.slice().reverse():t,r=[],o=[];for(let c=0,a=0;c<s.length;c++){if(r[c]=a,!n[c])continue;const e=s[c];o[c]=this._isNativeHtmlTable?Array.from(e.children):[e],c!==s.length-1&&(a+=e.getBoundingClientRect().height)}this._scheduleStyleChanges(()=>{for(let e=0;e<s.length;e++){if(!n[e])continue;const t=r[e];for(const s of o[e])this._addStickyStyle(s,i,t)}})}updateStickyFooterContainer(e,t){if(!this._isNativeHtmlTable)return;const i=e.querySelector("tfoot");this._scheduleStyleChanges(()=>{t.some(e=>!e)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)})}_removeStickyStyle(e,t){for(const i of t)e.style[i]="";q.some(i=>-1===t.indexOf(i)&&e.style[i])?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}_addStickyStyle(e,t,i){e.classList.add(this._stickCellCss),e.style[t]=i+"px",e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(e){const t={top:100,bottom:10,left:1,right:1};let i=0;for(const s of q)e.style[s]&&(i+=t[s]);return i?""+i:""}_getCellWidths(e,t=!0){if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],s=e.children;for(let n=0;n<s.length;n++)i.push(s[n].getBoundingClientRect().width);return this._cachedCellWidths=i,i}_getStickyStartColumnPositions(e,t){const i=[];let s=0;for(let n=0;n<e.length;n++)t[n]&&(i[n]=s,s+=e[n]);return i}_getStickyEndColumnPositions(e,t){const i=[];let s=0;for(let n=e.length;n>0;n--)t[n]&&(i[n]=s,s+=e[n]);return i}_scheduleStyleChanges(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}let K=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.ab),r.Yb(r.p))},e.\u0275dir=r.Tb({type:e,selectors:[["","rowOutlet",""]]}),e})(),G=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.ab),r.Yb(r.p))},e.\u0275dir=r.Tb({type:e,selectors:[["","headerRowOutlet",""]]}),e})(),ee=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.ab),r.Yb(r.p))},e.\u0275dir=r.Tb({type:e,selectors:[["","footerRowOutlet",""]]}),e})(),te=(()=>{class e{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.ab),r.Yb(r.p))},e.\u0275dir=r.Tb({type:e,selectors:[["","noDataRowOutlet",""]]}),e})(),ie=(()=>{class e{constructor(e,t,i,s,n,r,o,c,a,l){this._differs=e,this._changeDetectorRef=t,this._elementRef=i,this._dir=n,this._platform=o,this._viewRepeater=c,this._coalescedStyleScheduler=a,this._viewportRuler=l,this._onDestroy=new h.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new u.a({start:0,end:Number.MAX_VALUE}),s||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Object(s.c)(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Object(s.c)(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler&&this._viewportRuler.change().pipe(Object(b.a)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||e,this._forceRecalculateCellWidths=e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(n.h)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return void this._updateNoDataRow();const t=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(e,t,(e,t,i)=>this._getEmbeddedViewArgs(e.item,i),e=>e.item.data,e=>{1===e.operation&&e.context&&this._renderCellTemplateForItem(e.record.item.rowDef,e.context)}):e.forEachOperation((e,i,s)=>{if(null==e.previousIndex){const t=e.item;this._renderRow(this._rowOutlet,t.rowDef,s,{$implicit:t.data})}else if(null==s)t.remove(i);else{const e=t.get(i);t.move(e,s)}}),this._updateRowIndexContext(),e.forEachIdentityChange(e=>{t.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");const i=this._headerRowDefs.map(e=>e.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,i,"top"),this._headerRowDefs.forEach(e=>e.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");const i=this._footerRowDefs.map(e=>e.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(e=>e.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((e,t)=>{this._addStickyColumnStyles([e],this._headerRowDefs[t])}),this._rowDefs.forEach(e=>{const i=[];for(let s=0;s<t.length;s++)this._renderRows[s].rowDef===e&&i.push(t[s]);this._addStickyColumnStyles(i,e)}),i.forEach((e,t)=>{this._addStickyColumnStyles([e],this._footerRowDefs[t])}),Array.from(this._columnDefsByName.values()).forEach(e=>e.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let i=0;i<this._data.length;i++){let s=this._data[i];const n=this._getRenderRowsForData(s,i,t.get(s));this._cachedRenderRowsMap.has(s)||this._cachedRenderRowsMap.set(s,new WeakMap);for(let t=0;t<n.length;t++){let i=n[t];const s=this._cachedRenderRowsMap.get(i.data);s.has(i.rowDef)?s.get(i.rowDef).push(i):s.set(i.rowDef,[i]),e.push(i)}}return e}_getRenderRowsForData(e,t,i){return this._getRowDefs(e,t).map(s=>{const n=i&&i.has(s)?i.get(s):[];if(n.length){const e=n.shift();return e.dataIndex=t,e}return{data:e,rowDef:s,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),se(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(e=>{this._columnDefsByName.has(e.name),this._columnDefsByName.set(e.name,e)})}_cacheRowDefs(){this._headerRowDefs=se(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=se(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=se(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(e=>!e.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(e,t)=>e||!!t.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const i=this._headerRowDefs.reduce(e,!1);i&&this._forceRenderHeaderRows();const s=this._footerRowDefs.reduce(e,!1);return s&&this._forceRenderFooterRows(),t||i||s}_switchDataSource(e){this._data=[],Object(n.h)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Object(n.h)(this.dataSource)?e=this.dataSource.connect(this):Object(f.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(m.a)(this.dataSource)),this._renderChangeSubscription=e.pipe(Object(b.a)(this._onDestroy)).subscribe(e=>{this._data=e||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const i=Array.from(t.columns||[]).map(e=>this._columnDefsByName.get(e)),s=i.map(e=>e.sticky),n=i.map(e=>e.stickyEnd);this._stickyStyler.updateStickyColumns(e,s,n,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let i=0;i<e.viewContainer.length;i++){const s=e.viewContainer.get(i);t.push(s.rootNodes[0])}return t}_getRowDefs(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];let i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter(i=>!i.when||i.when(t,e));else{let s=this._rowDefs.find(i=>i.when&&i.when(t,e))||this._defaultRowDef;s&&i.push(s)}return i}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,i,s={}){const n=e.viewContainer.createEmbeddedView(t.template,s,i);return this._renderCellTemplateForItem(t,s),n}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))U.mostRecentCellOutlet&&U.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t<i;t++){const s=e.get(t).context;s.count=i,s.first=0===t,s.last=t===i-1,s.even=t%2==0,s.odd=!s.even,this.multiTemplateDataRows?(s.dataIndex=this._renderRows[t].dataIndex,s.renderIndex=t):s.index=this._renderRows[t].dataIndex}}_getCellTemplates(e){return e&&e.columns?Array.from(e.columns,t=>{const i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const i of t){const t=this._document.createElement(i.tag);t.setAttribute("role","rowgroup");for(const e of i.outlets)t.appendChild(e.elementRef.nativeElement);e.appendChild(t)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(e,t)=>e||t.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new $(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(m.a)()).pipe(Object(b.a)(this._onDestroy)).subscribe(e=>{this._stickyStyler.direction=e,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(e=>!e._table||e._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(e){const t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;t?i.createEmbeddedView(e.templateRef):i.clear(),this._isShowingNoDataRow=t}}}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(r.A),r.Yb(r.i),r.Yb(r.p),r.jc("role"),r.Yb(o.c,8),r.Yb(l.e),r.Yb(c.a),r.Yb(n.g,8),r.Yb(N,8),r.Yb(a.j,8))},e.\u0275cmp=r.Sb({type:e,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,i){if(1&e&&(r.Rb(i,X,!0),r.Rb(i,k,!0),r.Rb(i,B,!0),r.Rb(i,Y,!0),r.Rb(i,L,!0)),2&e){let e;r.Bc(e=r.mc())&&(t._noDataRow=e.first),r.Bc(e=r.mc())&&(t._contentColumnDefs=e),r.Bc(e=r.mc())&&(t._contentRowDefs=e),r.Bc(e=r.mc())&&(t._contentHeaderRowDefs=e),r.Bc(e=r.mc())&&(t._contentFooterRowDefs=e)}},viewQuery:function(e,t){if(1&e&&(r.Mc(K,!0),r.Mc(G,!0),r.Mc(ee,!0),r.Mc(te,!0)),2&e){let e;r.Bc(e=r.mc())&&(t._rowOutlet=e.first),r.Bc(e=r.mc())&&(t._headerRowOutlet=e.first),r.Bc(e=r.mc())&&(t._footerRowOutlet=e.first),r.Bc(e=r.mc())&&(t._noDataRowOutlet=e.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&r.Qb("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[r.Lb([{provide:R,useExisting:e},{provide:n.g,useClass:n.e},{provide:N,useClass:F}])],ngContentSelectors:_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(r.uc(y),r.tc(0),r.tc(1,1),r.ac(2,0),r.ac(3,1),r.ac(4,2),r.ac(5,3))},directives:[G,K,te,ee],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),e})();function se(e,t){return e.concat(Array.from(t))}let ne=(()=>{class e{constructor(e,t){this._table=e,this._options=t,this.justify="start",this._options=t||{}}get name(){return this._name}set name(e){this._name=e,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((e,t)=>e[t])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return e.\u0275fac=function(t){return new(t||e)(r.Yb(ie,8),r.Yb(O,8))},e.\u0275cmp=r.Sb({type:e,selectors:[["cdk-text-column"]],viewQuery:function(e,t){if(1&e&&(r.Mc(k,!0),r.Mc(C,!0),r.Mc(j,!0)),2&e){let e;r.Bc(e=r.mc())&&(t.columnDef=e.first),r.Bc(e=r.mc())&&(t.cell=e.first),r.Bc(e=r.mc())&&(t.headerCell=e.first)}},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(e,t){1&e&&(r.cc(0,0),r.Qc(1,g,2,3,"th",1),r.Qc(2,w,2,3,"td",2),r.bc())},directives:[k,j,C,z,H],encapsulation:2}),e})(),re=(()=>{class e{}return e.\u0275mod=r.Wb({type:e}),e.\u0275inj=r.Vb({factory:function(t){return new(t||e)},imports:[[a.h]]}),e})()}}]);