-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path35-es5.6fb954aecfb40c578a61.js
1 lines (1 loc) · 43.9 KB
/
35-es5.6fb954aecfb40c578a61.js
1
!function(){function e(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,n,c){return(t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var c=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(c){var i=Object.getOwnPropertyDescriptor(c,t);return i.get?i.get.call(n):i.value}})(e,n,c||e)}function n(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,r=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw r}}}}function c(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function o(e,t){for(var n=0;n<t.length;n++){var c=t[n];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var n,c=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(c,arguments,i)}else n=c.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{d10P:function(e,t,n){"use strict";n.r(t),n.d(t,"CdkTableBasicExample",function(){return B}),n.d(t,"CdkTableExamplesModule",function(){return z}),n.d(t,"CdkTableFixedLayoutExample",function(){return J}),n.d(t,"CdkTableFlexBasicExample",function(){return O});var c=n("f6nW"),i=n("fXoL"),o=n("0EQZ"),a=n("2Vo4");function l(e,t){1&e&&(Object(i.ec)(0,"cdk-header-cell"),Object(i.Sc)(1," No. "),Object(i.dc)())}function f(e,t){if(1&e&&(Object(i.ec)(0,"cdk-cell"),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.position," ")}}function h(e,t){1&e&&(Object(i.ec)(0,"cdk-header-cell"),Object(i.Sc)(1," Name "),Object(i.dc)())}function b(e,t){if(1&e&&(Object(i.ec)(0,"cdk-cell"),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.name," ")}}function y(e,t){1&e&&(Object(i.ec)(0,"cdk-header-cell"),Object(i.Sc)(1," Weight "),Object(i.dc)())}function m(e,t){if(1&e&&(Object(i.ec)(0,"cdk-cell"),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.weight," ")}}function _(e,t){1&e&&(Object(i.ec)(0,"cdk-header-cell"),Object(i.Sc)(1," Symbol "),Object(i.dc)())}function w(e,t){if(1&e&&(Object(i.ec)(0,"cdk-cell"),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.symbol," ")}}function v(e,t){1&e&&Object(i.Zb)(0,"cdk-header-row")}function p(e,t){1&e&&Object(i.Zb)(0,"cdk-row")}var k=[{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"}],O=function(){var e=function e(){d(this,e),this.displayedColumns=["position","name","weight","symbol"],this.dataSource=new g};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(i.Sb)({type:e,selectors:[["cdk-table-flex-basic-example"]],decls:15,vars:3,consts:[[3,"dataSource"],["cdkColumnDef","position"],[4,"cdkHeaderCellDef"],[4,"cdkCellDef"],["cdkColumnDef","name"],["cdkColumnDef","weight"],["cdkColumnDef","symbol"],[4,"cdkHeaderRowDef"],[4,"cdkRowDef","cdkRowDefColumns"]],template:function(e,t){1&e&&(Object(i.ec)(0,"cdk-table",0),Object(i.cc)(1,1),Object(i.Qc)(2,l,2,0,"cdk-header-cell",2),Object(i.Qc)(3,f,2,1,"cdk-cell",3),Object(i.bc)(),Object(i.cc)(4,4),Object(i.Qc)(5,h,2,0,"cdk-header-cell",2),Object(i.Qc)(6,b,2,1,"cdk-cell",3),Object(i.bc)(),Object(i.cc)(7,5),Object(i.Qc)(8,y,2,0,"cdk-header-cell",2),Object(i.Qc)(9,m,2,1,"cdk-cell",3),Object(i.bc)(),Object(i.cc)(10,6),Object(i.Qc)(11,_,2,0,"cdk-header-cell",2),Object(i.Qc)(12,w,2,1,"cdk-cell",3),Object(i.bc)(),Object(i.Qc)(13,v,1,0,"cdk-header-row",7),Object(i.Qc)(14,p,1,0,"cdk-row",8),Object(i.dc)()),2&e&&(Object(i.vc)("dataSource",t.dataSource),Object(i.Mb)(13),Object(i.vc)("cdkHeaderRowDef",t.displayedColumns),Object(i.Mb)(1),Object(i.vc)("cdkRowDefColumns",t.displayedColumns))},directives:[c.q,c.e,c.k,c.c,c.m,c.p,c.j,c.b,c.l,c.o],styles:["cdk-row[_ngcontent-%COMP%], cdk-header-row[_ngcontent-%COMP%], cdk-footer-row[_ngcontent-%COMP%] {\n display: flex;\n}\n\ncdk-cell[_ngcontent-%COMP%], cdk-header-cell[_ngcontent-%COMP%], cdk-footer-cell[_ngcontent-%COMP%] {\n flex: 1;\n}"]}),e}(),g=function(e){s(n,e);var t=u(n);function n(){var e;return d(this,n),(e=t.apply(this,arguments)).data=new a.a(k),e}return r(n,[{key:"connect",value:function(){return this.data}},{key:"disconnect",value:function(){}}]),n}(o.b);function R(e,t){1&e&&(Object(i.ec)(0,"th",9),Object(i.Sc)(1," No. "),Object(i.dc)())}function C(e,t){if(1&e&&(Object(i.ec)(0,"td",10),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.position," ")}}function S(e,t){1&e&&(Object(i.ec)(0,"th",9),Object(i.Sc)(1," Name "),Object(i.dc)())}function D(e,t){if(1&e&&(Object(i.ec)(0,"td",10),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.name," ")}}function j(e,t){1&e&&(Object(i.ec)(0,"th",9),Object(i.Sc)(1," Weight "),Object(i.dc)())}function x(e,t){if(1&e&&(Object(i.ec)(0,"td",10),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.weight," ")}}function N(e,t){1&e&&(Object(i.ec)(0,"th",9),Object(i.Sc)(1," Symbol "),Object(i.dc)())}function T(e,t){if(1&e&&(Object(i.ec)(0,"td",10),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.symbol," ")}}function E(e,t){1&e&&Object(i.Zb)(0,"tr",11)}function H(e,t){1&e&&Object(i.Zb)(0,"tr",12)}var M=[{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"}],B=function(){var e=function e(){d(this,e),this.displayedColumns=["position","name","weight","symbol"],this.dataSource=new A};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(i.Sb)({type:e,selectors:[["cdk-table-basic-example"]],decls:15,vars:3,consts:[["cdk-table","",3,"dataSource"],["cdkColumnDef","position"],["cdk-header-cell","",4,"cdkHeaderCellDef"],["cdk-cell","",4,"cdkCellDef"],["cdkColumnDef","name"],["cdkColumnDef","weight"],["cdkColumnDef","symbol"],["cdk-header-row","",4,"cdkHeaderRowDef"],["cdk-row","",4,"cdkRowDef","cdkRowDefColumns"],["cdk-header-cell",""],["cdk-cell",""],["cdk-header-row",""],["cdk-row",""]],template:function(e,t){1&e&&(Object(i.ec)(0,"table",0),Object(i.cc)(1,1),Object(i.Qc)(2,R,2,0,"th",2),Object(i.Qc)(3,C,2,1,"td",3),Object(i.bc)(),Object(i.cc)(4,4),Object(i.Qc)(5,S,2,0,"th",2),Object(i.Qc)(6,D,2,1,"td",3),Object(i.bc)(),Object(i.cc)(7,5),Object(i.Qc)(8,j,2,0,"th",2),Object(i.Qc)(9,x,2,1,"td",3),Object(i.bc)(),Object(i.cc)(10,6),Object(i.Qc)(11,N,2,0,"th",2),Object(i.Qc)(12,T,2,1,"td",3),Object(i.bc)(),Object(i.Qc)(13,E,1,0,"tr",7),Object(i.Qc)(14,H,1,0,"tr",8),Object(i.dc)()),2&e&&(Object(i.vc)("dataSource",t.dataSource),Object(i.Mb)(13),Object(i.vc)("cdkHeaderRowDef",t.displayedColumns),Object(i.Mb)(1),Object(i.vc)("cdkRowDefColumns",t.displayedColumns))},directives:[c.q,c.e,c.k,c.c,c.m,c.p,c.j,c.b,c.l,c.o],styles:["table[_ngcontent-%COMP%] {\n width: 100%;\n}\n\nth[_ngcontent-%COMP%] {\n text-align: left;\n}"]}),e}(),A=function(e){s(n,e);var t=u(n);function n(){var e;return d(this,n),(e=t.apply(this,arguments)).data=new a.a(M),e}return r(n,[{key:"connect",value:function(){return this.data}},{key:"disconnect",value:function(){}}]),n}(o.b);function Y(e,t){1&e&&(Object(i.ec)(0,"th",9),Object(i.Sc)(1," No. "),Object(i.dc)())}function F(e,t){if(1&e&&(Object(i.ec)(0,"td",10),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.position," ")}}function Q(e,t){1&e&&(Object(i.ec)(0,"th",9),Object(i.Sc)(1," Name "),Object(i.dc)())}function I(e,t){if(1&e&&(Object(i.ec)(0,"td",10),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.name," ")}}function L(e,t){1&e&&(Object(i.ec)(0,"th",9),Object(i.Sc)(1," Weight "),Object(i.dc)())}function P(e,t){if(1&e&&(Object(i.ec)(0,"td",10),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.weight," ")}}function U(e,t){1&e&&(Object(i.ec)(0,"th",9),Object(i.Sc)(1," Symbol "),Object(i.dc)())}function W(e,t){if(1&e&&(Object(i.ec)(0,"td",10),Object(i.Sc)(1),Object(i.dc)()),2&e){var n=t.$implicit;Object(i.Mb)(1),Object(i.Uc)(" ",n.symbol," ")}}function V(e,t){1&e&&Object(i.Zb)(0,"tr",11)}function $(e,t){1&e&&Object(i.Zb)(0,"tr",12)}var Z=[{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"}],J=function(){var e=function e(){d(this,e),this.displayedColumns=["position","name","weight","symbol"],this.dataSource=new q};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Object(i.Sb)({type:e,selectors:[["cdk-table-fixed-layout-example"]],decls:15,vars:3,consts:[["cdk-table","","fixedLayout","",3,"dataSource"],["cdkColumnDef","position"],["cdk-header-cell","",4,"cdkHeaderCellDef"],["cdk-cell","",4,"cdkCellDef"],["cdkColumnDef","name"],["cdkColumnDef","weight"],["cdkColumnDef","symbol"],["cdk-header-row","",4,"cdkHeaderRowDef"],["cdk-row","",4,"cdkRowDef","cdkRowDefColumns"],["cdk-header-cell",""],["cdk-cell",""],["cdk-header-row",""],["cdk-row",""]],template:function(e,t){1&e&&(Object(i.ec)(0,"table",0),Object(i.cc)(1,1),Object(i.Qc)(2,Y,2,0,"th",2),Object(i.Qc)(3,F,2,1,"td",3),Object(i.bc)(),Object(i.cc)(4,4),Object(i.Qc)(5,Q,2,0,"th",2),Object(i.Qc)(6,I,2,1,"td",3),Object(i.bc)(),Object(i.cc)(7,5),Object(i.Qc)(8,L,2,0,"th",2),Object(i.Qc)(9,P,2,1,"td",3),Object(i.bc)(),Object(i.cc)(10,6),Object(i.Qc)(11,U,2,0,"th",2),Object(i.Qc)(12,W,2,1,"td",3),Object(i.bc)(),Object(i.Qc)(13,V,1,0,"tr",7),Object(i.Qc)(14,$,1,0,"tr",8),Object(i.dc)()),2&e&&(Object(i.vc)("dataSource",t.dataSource),Object(i.Mb)(13),Object(i.vc)("cdkHeaderRowDef",t.displayedColumns),Object(i.Mb)(1),Object(i.vc)("cdkRowDefColumns",t.displayedColumns))},directives:[c.q,c.e,c.k,c.c,c.m,c.p,c.j,c.b,c.l,c.o],styles:["table[_ngcontent-%COMP%] {\n width: 100%;\n}\n\nth[_ngcontent-%COMP%] {\n text-align: left;\n}"]}),e}(),q=function(e){s(n,e);var t=u(n);function n(){var e;return d(this,n),(e=t.apply(this,arguments)).data=new a.a(Z),e}return r(n,[{key:"connect",value:function(){return this.data}},{key:"disconnect",value:function(){}}]),n}(o.b),z=function(){var e=function e(){d(this,e)};return e.\u0275mod=Object(i.Wb)({type:e}),e.\u0275inj=Object(i.Vb)({factory:function(t){return new(t||e)},imports:[[c.r]]}),e}()},f6nW:function(c,i,o){"use strict";o.d(i,"a",function(){return N}),o.d(i,"b",function(){return I}),o.d(i,"c",function(){return E}),o.d(i,"d",function(){return z}),o.d(i,"e",function(){return A}),o.d(i,"f",function(){return Q}),o.d(i,"g",function(){return M}),o.d(i,"h",function(){return X}),o.d(i,"i",function(){return J}),o.d(i,"j",function(){return F}),o.d(i,"k",function(){return H}),o.d(i,"l",function(){return K}),o.d(i,"m",function(){return $}),o.d(i,"n",function(){return ee}),o.d(i,"o",function(){return G}),o.d(i,"p",function(){return q}),o.d(i,"q",function(){return se}),o.d(i,"r",function(){return le}),o.d(i,"s",function(){return ue}),o.d(i,"t",function(){return ce}),o.d(i,"u",function(){return oe}),o.d(i,"v",function(){return ie}),o.d(i,"w",function(){return re}),o.d(i,"x",function(){return P}),o.d(i,"y",function(){return U});var a=o("8LU1"),l=o("0EQZ"),h=o("fXoL"),b=o("cH1L"),y=o("nLfN"),m=o("vxfF"),_=o("ofXK"),w=o("XNiG"),v=o("Cfvw"),p=o("2Vo4"),k=o("7+OI"),O=o("LRne"),g=o("1G5W"),R=o("IzEk"),C=[[["caption"]],[["colgroup"],["col"]]],S=["caption","colgroup, col"];function D(e,t){if(1&e&&(h.ec(0,"th",3),h.Sc(1),h.dc()),2&e){var n=h.pc();h.Nc("text-align",n.justify),h.Mb(1),h.Uc(" ",n.headerText," ")}}function j(e,t){if(1&e&&(h.ec(0,"td",4),h.Sc(1),h.dc()),2&e){var n=t.$implicit,c=h.pc();h.Nc("text-align",c.justify),h.Mb(1),h.Uc(" ",c.dataAccessor(n,c.name)," ")}}function x(e){return function(e){s(n,e);var t=u(n);function n(){var e;d(this,n);for(var c=arguments.length,i=new Array(c),o=0;o<c;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i)))._sticky=!1,e._hasStickyChanged=!1,e}return r(n,[{key:"hasStickyChanged",value:function(){var e=this._hasStickyChanged;return this._hasStickyChanged=!1,e}},{key:"resetStickyChanged",value:function(){this._hasStickyChanged=!1}},{key:"sticky",get:function(){return this._sticky},set:function(e){var t=this._sticky;this._sticky=Object(a.c)(e),this._hasStickyChanged=t!==this._sticky}}]),n}(e)}var N=new h.x("CDK_TABLE"),T=new h.x("text-column-options"),E=function(){var e=function e(t){d(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.V))},e.\u0275dir=h.Tb({type:e,selectors:[["","cdkCellDef",""]]}),e}(),H=function(){var e=function e(t){d(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.V))},e.\u0275dir=h.Tb({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e}(),M=function(){var e=function e(t){d(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.V))},e.\u0275dir=h.Tb({type:e,selectors:[["","cdkFooterCellDef",""]]}),e}(),B=x(function e(){d(this,e)}),A=function(){var e=function(e){s(n,e);var t=u(n);function n(e){var c;return d(this,n),(c=t.call(this))._table=e,c._stickyEnd=!1,c}return r(n,[{key:"_updateColumnCssClassName",value:function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]}},{key:"_setNameInput",value:function(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}},{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}},{key:"stickyEnd",get:function(){return this._stickyEnd},set:function(e){var t=this._stickyEnd;this._stickyEnd=Object(a.c)(e),this._hasStickyChanged=t!==this._stickyEnd}}]),n}(B);return e.\u0275fac=function(t){return new(t||e)(h.Yb(N,8))},e.\u0275dir=h.Tb({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var c;(1&e&&(h.Rb(n,E,!0),h.Rb(n,H,!0),h.Rb(n,M,!0)),2&e)&&(h.Bc(c=h.mc())&&(t.cell=c.first),h.Bc(c=h.mc())&&(t.headerCell=c.first),h.Bc(c=h.mc())&&(t.footerCell=c.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[h.Lb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),h.Jb]}),e}(),Y=function e(t,c){d(this,e);var i,o=c.nativeElement.classList,r=n(t._columnCssClassName);try{for(r.s();!(i=r.n()).done;){var s=i.value;o.add(s)}}catch(a){r.e(a)}finally{r.f()}},F=function(){var e=function(e){s(n,e);var t=u(n);function n(e,c){return d(this,n),t.call(this,e,c)}return n}(Y);return e.\u0275fac=function(t){return new(t||e)(h.Yb(A),h.Yb(h.p))},e.\u0275dir=h.Tb({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[h.Jb]}),e}(),Q=function(){var e=function(e){s(n,e);var t=u(n);function n(e,c){return d(this,n),t.call(this,e,c)}return n}(Y);return e.\u0275fac=function(t){return new(t||e)(h.Yb(A),h.Yb(h.p))},e.\u0275dir=h.Tb({type:e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[h.Jb]}),e}(),I=function(){var e=function(e){s(n,e);var t=u(n);function n(e,c){return d(this,n),t.call(this,e,c)}return n}(Y);return e.\u0275fac=function(t){return new(t||e)(h.Yb(A),h.Yb(h.p))},e.\u0275dir=h.Tb({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[h.Jb]}),e}(),L=function e(){d(this,e),this.tasks=[],this.endTasks=[]},P=new h.x("_COALESCED_STYLE_SCHEDULER"),U=function(){var e=function(){function e(t){d(this,e),this._ngZone=t,this._currentSchedule=null,this._destroyed=new w.a}return r(e,[{key:"schedule",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}},{key:"scheduleEnd",value:function(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_createScheduleIfNeeded",value:function(){var e=this;this._currentSchedule||(this._currentSchedule=new L,this._getScheduleObservable().pipe(Object(g.a)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var t=e._currentSchedule;e._currentSchedule=new L;var c,i=n(t.tasks);try{for(i.s();!(c=i.n()).done;){(0,c.value)()}}catch(s){i.e(s)}finally{i.f()}var o,r=n(t.endTasks);try{for(r.s();!(o=r.n()).done;){(0,o.value)()}}catch(s){r.e(s)}finally{r.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?Object(v.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(R.a)(1))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.ic(h.I))},e.\u0275prov=h.Ub({token:e,factory:e.\u0275fac}),e}(),W=function(){var e=function(){function e(t,n){d(this,e),this.template=t,this._differs=n}return r(e,[{key:"ngOnChanges",value:function(e){if(!this._columnsDiffer){var t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}},{key:"getColumnsDiff",value:function(){return this._columnsDiffer.diff(this.columns)}},{key:"extractCellTemplate",value:function(e){return this instanceof $?e.headerCell.template:this instanceof J?e.footerCell.template:e.cell.template}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.V),h.Yb(h.A))},e.\u0275dir=h.Tb({type:e,features:[h.Kb]}),e}(),V=x(function(e){s(n,e);var t=u(n);function n(){return d(this,n),t.apply(this,arguments)}return n}(W)),$=function(){var e=function(e){s(c,e);var n=u(c);function c(e,t,i){var o;return d(this,c),(o=n.call(this,e,t))._table=i,o}return r(c,[{key:"ngOnChanges",value:function(e){t(f(c.prototype),"ngOnChanges",this).call(this,e)}}]),c}(V);return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.V),h.Yb(h.A),h.Yb(N,8))},e.\u0275dir=h.Tb({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[h.Jb,h.Kb]}),e}(),Z=x(function(e){s(n,e);var t=u(n);function n(){return d(this,n),t.apply(this,arguments)}return n}(W)),J=function(){var e=function(e){s(c,e);var n=u(c);function c(e,t,i){var o;return d(this,c),(o=n.call(this,e,t))._table=i,o}return r(c,[{key:"ngOnChanges",value:function(e){t(f(c.prototype),"ngOnChanges",this).call(this,e)}}]),c}(Z);return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.V),h.Yb(h.A),h.Yb(N,8))},e.\u0275dir=h.Tb({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[h.Jb,h.Kb]}),e}(),q=function(){var e=function(e){s(n,e);var t=u(n);function n(e,c,i){var o;return d(this,n),(o=t.call(this,e,c))._table=i,o}return n}(W);return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.V),h.Yb(h.A),h.Yb(N,8))},e.\u0275dir=h.Tb({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[h.Jb]}),e}(),z=function(){var e=function(){function e(t){d(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return r(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.ab))},e.\u0275dir=h.Tb({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e}(),K=function(){var e=function e(){d(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h.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&&h.ac(0,0)},directives:[z],encapsulation:2}),e}(),X=function(){var e=function e(){d(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h.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&&h.ac(0,0)},directives:[z],encapsulation:2}),e}(),G=function(){var e=function e(){d(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=h.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&&h.ac(0,0)},directives:[z],encapsulation:2}),e}(),ee=function(){var e=function e(t){d(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.V))},e.\u0275dir=h.Tb({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e}(),te=["top","bottom","left","right"],ne=function(){function e(t,n,c,i){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];d(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=c,this._coalescedStyleScheduler=i,this._isBrowser=o,this._needsPositionStickyOnElement=r,this._cachedCellWidths=[]}return r(e,[{key:"clearStickyPositioning",value:function(e,t){var c,i=this,o=[],r=n(e);try{for(r.s();!(c=r.n()).done;){var s=c.value;if(s.nodeType===s.ELEMENT_NODE){o.push(s);for(var a=0;a<s.children.length;a++)o.push(s.children[a])}}}catch(u){r.e(u)}finally{r.f()}this._scheduleStyleChanges(function(){var e,c=n(o);try{for(c.s();!(e=c.n()).done;){var r=e.value;i._removeStickyStyle(r,t)}}catch(u){c.e(u)}finally{c.f()}})}},{key:"updateStickyColumns",value:function(e,t,c){var i=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(t.some(function(e){return e})||c.some(function(e){return e}))){var r=e[0],s=r.children.length,a=this._getCellWidths(r,o),u=this._getStickyStartColumnPositions(a,t),l=this._getStickyEndColumnPositions(a,c);this._scheduleStyleChanges(function(){var o,r="rtl"===i.direction,a=r?"right":"left",f=r?"left":"right",d=n(e);try{for(d.s();!(o=d.n()).done;)for(var h=o.value,b=0;b<s;b++){var y=h.children[b];t[b]&&i._addStickyStyle(y,a,u[b]),c[b]&&i._addStickyStyle(y,f,l[b])}}catch(m){d.e(m)}finally{d.f()}})}}},{key:"stickRows",value:function(e,t,c){var i=this;if(this._isBrowser){for(var o="bottom"===c?e.slice().reverse():e,r="bottom"===c?t.slice().reverse():t,s=[],a=[],u=0,l=0;u<o.length;u++)if(s[u]=l,r[u]){var f=o[u];a[u]=this._isNativeHtmlTable?Array.from(f.children):[f],u!==o.length-1&&(l+=f.getBoundingClientRect().height)}this._scheduleStyleChanges(function(){for(var e=0;e<o.length;e++)if(r[e]){var t,u=s[e],l=n(a[e]);try{for(l.s();!(t=l.n()).done;){var f=t.value;i._addStickyStyle(f,c,u)}}catch(d){l.e(d)}finally{l.f()}}})}}},{key:"updateStickyFooterContainer",value:function(e,t){var n=this;if(this._isNativeHtmlTable){var c=e.querySelector("tfoot");this._scheduleStyleChanges(function(){t.some(function(e){return!e})?n._removeStickyStyle(c,["bottom"]):n._addStickyStyle(c,"bottom",0)})}}},{key:"_removeStickyStyle",value:function(e,t){var c,i=n(t);try{for(i.s();!(c=i.n()).done;){var o=c.value;e.style[o]=""}}catch(r){i.e(r)}finally{i.f()}te.some(function(n){return-1===t.indexOf(n)&&e.style[n]})?e.style.zIndex=this._getCalculatedZIndex(e):(e.style.zIndex="",this._needsPositionStickyOnElement&&(e.style.position=""),e.classList.remove(this._stickCellCss))}},{key:"_addStickyStyle",value:function(e,t,n){e.classList.add(this._stickCellCss),e.style[t]=n+"px",e.style.zIndex=this._getCalculatedZIndex(e),this._needsPositionStickyOnElement&&(e.style.cssText+="position: -webkit-sticky; position: sticky; ")}},{key:"_getCalculatedZIndex",value:function(e){var t,c={top:100,bottom:10,left:1,right:1},i=0,o=n(te);try{for(o.s();!(t=o.n()).done;){var r=t.value;e.style[r]&&(i+=c[r])}}catch(s){o.e(s)}finally{o.f()}return i?""+i:""}},{key:"_getCellWidths",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],c=e.children,i=0;i<c.length;i++)n.push(c[i].getBoundingClientRect().width);return this._cachedCellWidths=n,n}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],c=0,i=0;i<e.length;i++)t[i]&&(n[i]=c,c+=e[i]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],c=0,i=e.length;i>0;i--)t[i]&&(n[i]=c,c+=e[i]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),ce=function(){var e=function e(t,n){d(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.ab),h.Yb(h.p))},e.\u0275dir=h.Tb({type:e,selectors:[["","rowOutlet",""]]}),e}(),ie=function(){var e=function e(t,n){d(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.ab),h.Yb(h.p))},e.\u0275dir=h.Tb({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),oe=function(){var e=function e(t,n){d(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.ab),h.Yb(h.p))},e.\u0275dir=h.Tb({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),re=function(){var e=function e(t,n){d(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(h.Yb(h.ab),h.Yb(h.p))},e.\u0275dir=h.Tb({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),se=function(){var t=function(){function t(e,n,c,i,o,r,s,a,u,l){d(this,t),this._differs=e,this._changeDetectorRef=n,this._elementRef=c,this._dir=o,this._platform=s,this._viewRepeater=a,this._coalescedStyleScheduler=u,this._viewportRuler=l,this._onDestroy=new w.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 p.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return r(t,[{key:"ngOnInit",value:function(){var e=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(t,n){return e.trackBy?e.trackBy(n.dataIndex,n.data):n}),this._viewportRuler&&this._viewportRuler.change().pipe(Object(g.a)(this._onDestroy)).subscribe(function(){e._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var 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()}},{key:"ngOnDestroy",value:function(){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(l.h)(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var e=this;this._renderRows=this._getAllRenderRows();var t=this._dataDiffer.diff(this._renderRows);if(t){var n=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,n,function(t,n,c){return e._getEmbeddedViewArgs(t.item,c)},function(e){return e.item.data},function(t){1===t.operation&&t.context&&e._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation(function(t,c,i){if(null==t.previousIndex){var o=t.item;e._renderRow(e._rowOutlet,o.rowDef,i,{$implicit:o.data})}else if(null==i)n.remove(c);else{var r=n.get(c);n.move(r,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(function(e){n.get(e.currentIndex).context.$implicit=e.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(e){this._customColumnDefs.add(e)}},{key:"removeColumnDef",value:function(e){this._customColumnDefs.delete(e)}},{key:"addRowDef",value:function(e){this._customRowDefs.add(e)}},{key:"removeRowDef",value:function(e){this._customRowDefs.delete(e)}},{key:"addHeaderRowDef",value:function(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(e){this._customNoDataRow=e}},{key:"updateStickyHeaderRowStyles",value:function(){var e=this._getRenderedRows(this._headerRowOutlet),t=this._elementRef.nativeElement.querySelector("thead");t&&(t.style.display=e.length?"":"none");var n=this._headerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var e=this._getRenderedRows(this._footerRowOutlet),t=this._elementRef.nativeElement.querySelector("tfoot");t&&(t.style.display=e.length?"":"none");var n=this._footerRowDefs.map(function(e){return e.sticky});this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(e){return e.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,n=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(e(n),e(c),e(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach(function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])}),this._rowDefs.forEach(function(e){for(var n=[],i=0;i<c.length;i++)t._renderRows[i].rowDef===e&&n.push(c[i]);t._addStickyColumnStyles(n,e)}),i.forEach(function(e,n){t._addStickyColumnStyles([e],t._footerRowDefs[n])}),Array.from(this._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})}},{key:"_getAllRenderRows",value:function(){var e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(var n=0;n<this._data.length;n++){var c=this._data[n],i=this._getRenderRowsForData(c,n,t.get(c));this._cachedRenderRowsMap.has(c)||this._cachedRenderRowsMap.set(c,new WeakMap);for(var o=0;o<i.length;o++){var r=i[o],s=this._cachedRenderRowsMap.get(r.data);s.has(r.rowDef)?s.get(r.rowDef).push(r):s.set(r.rowDef,[r]),e.push(r)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,n){return this._getRowDefs(e,t).map(function(c){var i=n&&n.has(c)?n.get(c):[];if(i.length){var o=i.shift();return o.dataIndex=t,o}return{data:e,rowDef:c,dataIndex:t}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),ae(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(t){e._columnDefsByName.has(t.name),e._columnDefsByName.set(t.name,t)})}},{key:"_cacheRowDefs",value:function(){this._headerRowDefs=ae(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ae(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ae(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);var e=this._rowDefs.filter(function(e){return!e.when});this._defaultRowDef=e[0]}},{key:"_renderUpdatedColumns",value:function(){var e=function(e,t){return e||!!t.getColumnsDiff()},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();var n=this._headerRowDefs.reduce(e,!1);n&&this._forceRenderHeaderRows();var c=this._footerRowDefs.reduce(e,!1);return c&&this._forceRenderFooterRows(),t||n||c}},{key:"_switchDataSource",value:function(e){this._data=[],Object(l.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}},{key:"_observeRenderChanges",value:function(){var e,t=this;this.dataSource&&(Object(l.h)(this.dataSource)?e=this.dataSource.connect(this):Object(k.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(O.a)(this.dataSource)),this._renderChangeSubscription=e.pipe(Object(g.a)(this._onDestroy)).subscribe(function(e){t._data=e||[],t.renderRows()}))}},{key:"_forceRenderHeaderRows",value:function(){var e=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(t,n){return e._renderRow(e._headerRowOutlet,t,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var e=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(t,n){return e._renderRow(e._footerRowOutlet,t,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(e,t){var n=this,c=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),i=c.map(function(e){return e.sticky}),o=c.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,i,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var c=e.viewContainer.get(n);t.push(c.rootNodes[0])}return t}},{key:"_getRowDefs",value:function(e,t){if(1==this._rowDefs.length)return[this._rowDefs[0]];var n=[];if(this.multiTemplateDataRows)n=this._rowDefs.filter(function(n){return!n.when||n.when(t,e)});else{var c=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;c&&n.push(c)}return n}},{key:"_getEmbeddedViewArgs",value:function(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}},{key:"_renderRow",value:function(e,t,n){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.viewContainer.createEmbeddedView(t.template,c,n);return this._renderCellTemplateForItem(t,c),i}},{key:"_renderCellTemplateForItem",value:function(e,t){var c,i=n(this._getCellTemplates(e));try{for(i.s();!(c=i.n()).done;){var o=c.value;z.mostRecentCellOutlet&&z.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,t)}}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var c=e.get(t).context;c.count=n,c.first=0===t,c.last=t===n-1,c.even=t%2==0,c.odd=!c.even,this.multiTemplateDataRows?(c.dataIndex=this._renderRows[t].dataIndex,c.renderIndex=t):c.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,function(n){var c=t._columnDefsByName.get(n);return e.extractCellTemplate(c)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),t=0,c=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];t<c.length;t++){var i=c[t],o=this._document.createElement(i.tag);o.setAttribute("role","rowgroup");var r,s=n(i.outlets);try{for(s.s();!(r=s.n()).done;){var a=r.value;o.appendChild(a.elementRef.nativeElement)}}catch(u){s.e(u)}finally{s.f()}e.appendChild(o)}this._elementRef.nativeElement.appendChild(e)}},{key:"_forceRenderDataRows",value:function(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}},{key:"_checkStickyStates",value:function(){var e=function(e,t){return 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())}},{key:"_setupStickyStyler",value:function(){var e=this;this._stickyStyler=new ne(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(O.a)()).pipe(Object(g.a)(this._onDestroy)).subscribe(function(t){e._stickyStyler.direction=t,e.updateStickyColumnStyles()})}},{key:"_getOwnDefs",value:function(e){var t=this;return e.filter(function(e){return!e._table||e._table===t})}},{key:"_updateNoDataRow",value:function(){var e=this._customNoDataRow||this._noDataRow;if(e){var t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){var n=this._noDataRowOutlet.viewContainer;t?n.createEmbeddedView(e.templateRef):n.clear(),this._isShowingNoDataRow=t}}}},{key:"trackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(e){this._multiTemplateDataRows=Object(a.c)(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(e){this._fixedLayout=Object(a.c)(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(h.Yb(h.A),h.Yb(h.i),h.Yb(h.p),h.jc("role"),h.Yb(b.c,8),h.Yb(_.e),h.Yb(y.a),h.Yb(l.g,8),h.Yb(P,8),h.Yb(m.j,8))},t.\u0275cmp=h.Sb({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var c;(1&e&&(h.Rb(n,ee,!0),h.Rb(n,A,!0),h.Rb(n,q,!0),h.Rb(n,$,!0),h.Rb(n,J,!0)),2&e)&&(h.Bc(c=h.mc())&&(t._noDataRow=c.first),h.Bc(c=h.mc())&&(t._contentColumnDefs=c),h.Bc(c=h.mc())&&(t._contentRowDefs=c),h.Bc(c=h.mc())&&(t._contentHeaderRowDefs=c),h.Bc(c=h.mc())&&(t._contentFooterRowDefs=c))},viewQuery:function(e,t){var n;(1&e&&(h.Mc(ce,!0),h.Mc(ie,!0),h.Mc(oe,!0),h.Mc(re,!0)),2&e)&&(h.Bc(n=h.mc())&&(t._rowOutlet=n.first),h.Bc(n=h.mc())&&(t._headerRowOutlet=n.first),h.Bc(n=h.mc())&&(t._footerRowOutlet=n.first),h.Bc(n=h.mc())&&(t._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&h.Qb("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[h.Lb([{provide:N,useExisting:t},{provide:l.g,useClass:l.e},{provide:P,useClass:U}])],ngContentSelectors:S,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(h.uc(C),h.tc(0),h.tc(1,1),h.ac(2,0),h.ac(3,1),h.ac(4,2),h.ac(5,3))},directives:[ie,ce,re,oe],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t}();function ae(e,t){return e.concat(Array.from(t))}var ue=function(){var e=function(){function e(t,n){d(this,e),this._table=t,this._options=n,this.justify="start",this._options=n||{}}return r(e,[{key:"ngOnInit",value:function(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||function(e,t){return e[t]}),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}},{key:"ngOnDestroy",value:function(){this._table&&this._table.removeColumnDef(this.columnDef)}},{key:"_createDefaultHeaderText",value:function(){var e=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(e):e[0].toUpperCase()+e.slice(1)}},{key:"_syncColumnDefName",value:function(){this.columnDef&&(this.columnDef.name=this.name)}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this._syncColumnDefName()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Yb(se,8),h.Yb(T,8))},e.\u0275cmp=h.Sb({type:e,selectors:[["cdk-text-column"]],viewQuery:function(e,t){var n;(1&e&&(h.Mc(A,!0),h.Mc(E,!0),h.Mc(H,!0)),2&e)&&(h.Bc(n=h.mc())&&(t.columnDef=n.first),h.Bc(n=h.mc())&&(t.cell=n.first),h.Bc(n=h.mc())&&(t.headerCell=n.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(e,t){1&e&&(h.cc(0,0),h.Qc(1,D,2,3,"th",1),h.Qc(2,j,2,3,"td",2),h.bc())},directives:[A,H,E,F,I],encapsulation:2}),e}(),le=function(){var e=function e(){d(this,e)};return e.\u0275mod=h.Wb({type:e}),e.\u0275inj=h.Vb({factory:function(t){return new(t||e)},imports:[[m.h]]}),e}()}}])}();