-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path15-es5.12d8b76a1a8c79734c4f.js
1 lines (1 loc) · 87.3 KB
/
15-es5.12d8b76a1a8c79734c4f.js
1
!function(){function e(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var c=0,r=function(){};return{s:r,n:function(){return c>=e.length?{done:!0}:{done:!1,value:e[c++]}},e:function(e){throw e},f:r}}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 o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],i=!0,c=!1,r=void 0;try{for(var o,a=e[Symbol.iterator]();!(i=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(s){c=!0,r=s}finally{try{i||null==a.return||a.return()}finally{if(c)throw r}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return c(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)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(i){var c=Object.getOwnPropertyDescriptor(i,t);return c.get?c.get.call(n):c.value}})(e,t,n||e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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&&u(e,t)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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,i=f(e);if(t){var c=f(this).constructor;n=Reflect.construct(i,arguments,c)}else n=i.apply(this,arguments);return d(this,n)}}function d(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)}(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{"+0xr":function(e,t,i){"use strict";i.d(t,"a",function(){return Y}),i.d(t,"b",function(){return j}),i.d(t,"c",function(){return N}),i.d(t,"d",function(){return L}),i.d(t,"e",function(){return E}),i.d(t,"f",function(){return X}),i.d(t,"g",function(){return U}),i.d(t,"h",function(){return B}),i.d(t,"i",function(){return A}),i.d(t,"j",function(){return z}),i.d(t,"k",function(){return P}),i.d(t,"l",function(){return ee}),i.d(t,"m",function(){return K}),i.d(t,"n",function(){return q}),i.d(t,"o",function(){return C}),i.d(t,"p",function(){return re}),i.d(t,"q",function(){return ce}),i.d(t,"r",function(){return ne});var c=i("f6nW"),r=i("0EQZ"),u=i("FKr1"),d=i("8LU1"),m=i("2Vo4"),b=i("XNiG"),p=i("quSY"),y=i("VRyK"),k=i("LRne"),g=i("itXk"),_=i("lJxs"),v=i("fXoL"),w=[[["caption"]],[["colgroup"],["col"]]],S=["caption","colgroup, col"];function x(e,t){if(1&e&&(v.ec(0,"th",3),v.Sc(1),v.dc()),2&e){var n=v.pc();v.Nc("text-align",n.justify),v.Mb(1),v.Uc(" ",n.headerText," ")}}function O(e,t){if(1&e&&(v.ec(0,"td",4),v.Sc(1),v.dc()),2&e){var n=t.$implicit,i=v.pc();v.Nc("text-align",i.justify),v.Mb(1),v.Uc(" ",i.dataAccessor(n,i.name)," ")}}var C=function(){var e=function(e){l(n,e);var t=h(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).stickyCssClass="mat-table-sticky",e.needsPositionStickyOnElement=!1,e}return n}(c.q);return e.\u0275fac=function(t){return R(t||e)},e.\u0275cmp=v.Sb({type:e,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&v.Qb("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[v.Lb([{provide:r.g,useClass:r.e},{provide:c.q,useExisting:e},{provide:c.a,useExisting:e},{provide:c.x,useClass:c.y}]),v.Jb],ngContentSelectors:S,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(v.uc(w),v.tc(0),v.tc(1,1),v.ac(2,0),v.ac(3,1),v.ac(4,2),v.ac(5,3))},directives:[c.v,c.t,c.w,c.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}(),R=v.gc(C),j=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.c);return e.\u0275fac=function(t){return D(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["","matCellDef",""]],features:[v.Lb([{provide:c.c,useExisting:e}]),v.Jb]}),e}(),D=v.gc(j),A=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.k);return e.\u0275fac=function(t){return T(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["","matHeaderCellDef",""]],features:[v.Lb([{provide:c.k,useExisting:e}]),v.Jb]}),e}(),T=v.gc(A),E=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.g);return e.\u0275fac=function(t){return M(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["","matFooterCellDef",""]],features:[v.Lb([{provide:c.g,useExisting:e}]),v.Jb]}),e}(),M=v.gc(E),N=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return o(n,[{key:"_updateColumnCssClassName",value:function(){a(f(n.prototype),"_updateColumnCssClassName",this).call(this),this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)}},{key:"name",get:function(){return this._name},set:function(e){this._setNameInput(e)}}]),n}(c.e);return e.\u0275fac=function(t){return I(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[v.Lb([{provide:c.e,useExisting:e},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),v.Jb]}),e}(),I=v.gc(N),B=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.j);return e.\u0275fac=function(t){return V(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[v.Jb]}),e}(),V=v.gc(B),L=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.f);return e.\u0275fac=function(t){return F(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[v.Jb]}),e}(),F=v.gc(L),Y=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.b);return e.\u0275fac=function(t){return H(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[v.Jb]}),e}(),H=v.gc(Y),P=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.m);return e.\u0275fac=function(t){return Q(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[v.Lb([{provide:c.m,useExisting:e}]),v.Jb]}),e}(),Q=v.gc(P),U=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.i);return e.\u0275fac=function(t){return J(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[v.Lb([{provide:c.i,useExisting:e}]),v.Jb]}),e}(),J=v.gc(U),q=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.p);return e.\u0275fac=function(t){return W(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[v.Lb([{provide:c.p,useExisting:e}]),v.Jb]}),e}(),W=v.gc(q),z=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.l);return e.\u0275fac=function(t){return Z(t||e)},e.\u0275cmp=v.Sb({type:e,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[v.Lb([{provide:c.l,useExisting:e}]),v.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&v.ac(0,0)},directives:[c.d],encapsulation:2}),e}(),Z=v.gc(z),X=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.h);return e.\u0275fac=function(t){return $(t||e)},e.\u0275cmp=v.Sb({type:e,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[v.Lb([{provide:c.h,useExisting:e}]),v.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&v.ac(0,0)},directives:[c.d],encapsulation:2}),e}(),$=v.gc(X),K=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.o);return e.\u0275fac=function(t){return G(t||e)},e.\u0275cmp=v.Sb({type:e,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[v.Lb([{provide:c.o,useExisting:e}]),v.Jb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&v.ac(0,0)},directives:[c.d],encapsulation:2}),e}(),G=v.gc(K),ee=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.n);return e.\u0275fac=function(t){return te(t||e)},e.\u0275dir=v.Tb({type:e,selectors:[["ng-template","matNoDataRow",""]],features:[v.Lb([{provide:c.n,useExisting:e}]),v.Jb]}),e}(),te=v.gc(ee),ne=function(){var e=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.s);return e.\u0275fac=function(t){return ie(t||e)},e.\u0275cmp=v.Sb({type:e,selectors:[["mat-text-column"]],features:[v.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&&(v.cc(0,0),v.Qc(1,x,2,3,"th",1),v.Qc(2,O,2,3,"td",2),v.bc())},directives:[N,A,j,B,Y],encapsulation:2}),e}(),ie=v.gc(ne),ce=function(){var e=function e(){s(this,e)};return e.\u0275mod=v.Wb({type:e}),e.\u0275inj=v.Vb({factory:function(t){return new(t||e)},imports:[[c.r,u.j],u.j]}),e}(),re=function(e){l(i,e);var t=h(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return s(this,i),(e=t.call(this))._renderData=new m.a([]),e._filter=new m.a(""),e._internalPageChanges=new b.a,e._renderChangesSubscription=p.a.EMPTY,e.sortingDataAccessor=function(e,t){var n=e[t];if(Object(d.a)(n)){var i=Number(n);return i<9007199254740991?i:n}return n},e.sortData=function(t,n){var i=n.active,c=n.direction;return i&&""!=c?t.sort(function(t,n){var r=e.sortingDataAccessor(t,i),o=e.sortingDataAccessor(n,i),a=typeof r,s=typeof o;a!==s&&("number"===a&&(r+=""),"number"===s&&(o+=""));var l=0;return null!=r&&null!=o?r>o?l=1:r<o&&(l=-1):null!=r?l=1:null!=o&&(l=-1),l*("asc"==c?1:-1)}):t},e.filterPredicate=function(e,t){var n=Object.keys(e).reduce(function(t,n){return t+e[n]+"\u25ec"},"").toLowerCase(),i=t.trim().toLowerCase();return-1!=n.indexOf(i)},e._data=new m.a(n),e._updateChangeSubscription(),e}return o(i,[{key:"_updateChangeSubscription",value:function(){var e=this,t=this._sort?Object(y.a)(this._sort.sortChange,this._sort.initialized):Object(k.a)(null),i=this._paginator?Object(y.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(k.a)(null),c=this._data,r=Object(g.b)([c,this._filter]).pipe(Object(_.a)(function(t){var i=n(t,1)[0];return e._filterData(i)})),o=Object(g.b)([r,t]).pipe(Object(_.a)(function(t){var i=n(t,1)[0];return e._orderData(i)})),a=Object(g.b)([o,i]).pipe(Object(_.a)(function(t){var i=n(t,1)[0];return e._pageData(i)}));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=a.subscribe(function(t){return e._renderData.next(t)})}},{key:"_filterData",value:function(e){var t=this;return this.filteredData=null==this.filter||""===this.filter?e:e.filter(function(e){return t.filterPredicate(e,t.filter)}),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}},{key:"_orderData",value:function(e){return this.sort?this.sortData(e.slice(),this.sort):e}},{key:"_pageData",value:function(e){if(!this.paginator)return e;var t=this.paginator.pageIndex*this.paginator.pageSize;return e.slice(t,t+this.paginator.pageSize)}},{key:"_updatePaginator",value:function(e){var t=this;Promise.resolve().then(function(){var n=t.paginator;if(n&&(n.length=e,n.pageIndex>0)){var i=Math.ceil(n.length/n.pageSize)-1||0,c=Math.min(n.pageIndex,i);c!==n.pageIndex&&(n.pageIndex=c,t._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderData}},{key:"disconnect",value:function(){}},{key:"data",get:function(){return this._data.value},set:function(e){this._data.next(e)}},{key:"filter",get:function(){return this._filter.value},set:function(e){this._filter.next(e)}},{key:"sort",get:function(){return this._sort},set:function(e){this._sort=e,this._updateChangeSubscription()}},{key:"paginator",get:function(){return this._paginator},set:function(e){this._paginator=e,this._updateChangeSubscription()}}]),i}(r.b)},"7dfx":function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"b",function(){return w}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return x}),n.d(t,"e",function(){return C}),n.d(t,"f",function(){return S});var i=n("8LU1"),c=n("0EQZ"),r=n("fXoL"),a=n("XNiG"),l=n("HDdC"),u=n("LRne"),h=n("1G5W"),d=n("eIep"),f=n("/uUt"),m=n("3Pt+"),b=n("f6nW"),p=n("ofXK");function y(e,t){if(1&e){var n=r.fc();r.ec(0,"input",5,6),r.lc("click",function(e){return r.Gc(n),r.Cc(1).toggle(e)}),r.qc(2,"async"),r.qc(3,"async"),r.dc()}if(2&e){var i=r.Cc(1);r.vc("checked",r.rc(2,2,i.checked))("indeterminate",r.rc(3,4,i.indeterminate))}}function k(e,t){if(1&e&&(r.ec(0,"th",3),r.Qc(1,y,4,6,"input",4),r.dc()),2&e){var n=r.pc();r.Mb(1),r.vc("ngIf",n.selection.multiple)}}function g(e,t){if(1&e){var n=r.fc();r.ec(0,"td",7),r.ec(1,"input",8,9),r.lc("click",function(){return r.Gc(n),r.Cc(2).toggle()}),r.qc(3,"async"),r.dc(),r.dc()}if(2&e){var i=t.$implicit,c=t.$index,o=r.Cc(2);r.Mb(1),r.vc("cdkSelectionToggleValue",i)("cdkSelectionToggleIndex",c)("checked",r.rc(3,3,o.checked))}}var _=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;s(this,e),this._multiple=t,this._trackByFn=n,this._selectionMap=new Map,this.changed=new a.a}return o(e,[{key:"isSelected",value:function(e){return this._selectionMap.has(this._getTrackedByValue(e))}},{key:"select",value:function(){var e=this._getCurrentSelection();this._multiple||this._selectionMap.clear();for(var t=[],n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];for(var r=0,o=i;r<o.length;r++){var a=o[r];this.isSelected(a)||(t.push(a),this._markSelected(this._getTrackedByValue(a),a))}var s=this._getCurrentSelection();this.changed.next({before:e,after:s})}},{key:"deselect",value:function(){for(var e=this._getCurrentSelection(),t=[],n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];for(var r=0,o=i;r<o.length;r++){var a=o[r];this.isSelected(a)&&(t.push(a),this._markDeselected(this._getTrackedByValue(a)))}var s=this._getCurrentSelection();this.changed.next({before:e,after:s})}},{key:"_markSelected",value:function(e,t){this._selectionMap.set(e,t)}},{key:"_markDeselected",value:function(e){this._selectionMap.delete(e)}},{key:"_getTrackedByValue",value:function(e){return this._trackByFn?this._trackByFn(e.index,e.value):e.value}},{key:"_getCurrentSelection",value:function(){return Array.from(this._selectionMap.values())}}]),e}(),v=function(){var e=function(){function e(){s(this,e),this.change=new r.s,this._destroyed=new a.a,this.selectAllState="none"}return o(e,[{key:"_switchDataSource",value:function(e){this._data=[],Object(c.h)(this._dataSource)&&this._dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),this._dataSource=e}},{key:"_observeRenderChanges",value:function(){var e,t=this;this._dataSource&&(Object(c.h)(this._dataSource)?e=this._dataSource.connect(this):this._dataSource instanceof l.a?e=this._dataSource:Array.isArray(this._dataSource)&&(e=Object(u.a)(this._dataSource)),this._renderChangeSubscription=e.pipe(Object(h.a)(this._destroyed)).subscribe(function(e){t._data=e||[]}))}},{key:"ngOnInit",value:function(){var e=this;this._selection=new _(this._multiple,this.trackByFn),this._selection.changed.pipe(Object(h.a)(this._destroyed)).subscribe(function(t){e._updateSelectAllState(),e.change.emit(t)})}},{key:"ngAfterContentChecked",value:function(){this._dataSource&&!this._renderChangeSubscription&&this._observeRenderChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),Object(c.h)(this._dataSource)&&this._dataSource.disconnect(this)}},{key:"toggleSelection",value:function(e,t){this.isSelected(e,t)?this._selection.deselect({value:e,index:t}):this._selection.select({value:e,index:t})}},{key:"toggleSelectAll",value:function(){"none"===this.selectAllState?this._selectAll():this._clearAll()}},{key:"isSelected",value:function(e,t){return this._selection.isSelected({value:e,index:t})}},{key:"isAllSelected",value:function(){var e=this;return this._data.every(function(t,n){return e._selection.isSelected({value:t,index:n})})}},{key:"isPartialSelected",value:function(){var e=this;return!this.isAllSelected()&&this._data.some(function(t,n){return e._selection.isSelected({value:t,index:n})})}},{key:"_selectAll",value:function(){var e,t=[];this._data.forEach(function(e,n){t.push({value:e,index:n})}),(e=this._selection).select.apply(e,t)}},{key:"_clearAll",value:function(){var e,t=[];this._data.forEach(function(e,n){t.push({value:e,index:n})}),(e=this._selection).deselect.apply(e,t)}},{key:"_updateSelectAllState",value:function(){this.selectAllState=this.isAllSelected()?"all":this.isPartialSelected()?"partial":"none"}},{key:"dataSource",get:function(){return this._dataSource},set:function(e){this._dataSource!==e&&this._switchDataSource(e)}},{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Object(i.c)(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkSelection",""]],inputs:{dataSource:"dataSource",multiple:["cdkSelectionMultiple","multiple"],trackByFn:["trackBy","trackByFn"]},outputs:{change:"cdkSelectionChange"},exportAs:["cdkSelection"]}),e}(),w=function(){var e=function(){function e(t,n){var i=this;s(this,e),this._selection=t,this._controlValueAccessor=n,this.checked=this._selection.change.pipe(Object(d.a)(function(){return Object(u.a)(i._selection.isAllSelected())})),this.indeterminate=this._selection.change.pipe(Object(d.a)(function(){return Object(u.a)(i._selection.isPartialSelected())})),this._destroyed=new a.a}return o(e,[{key:"toggle",value:function(e){var t=this;e&&e.preventDefault(),setTimeout(function(){t._selection.toggleSelectAll()})}},{key:"ngOnInit",value:function(){this._assertValidParentSelection(),this._configureControlValueAccessor()}},{key:"_configureControlValueAccessor",value:function(){var e=this;this._controlValueAccessor&&this._controlValueAccessor.length&&(this._controlValueAccessor[0].registerOnChange(function(t){!0!==t&&!1!==t||e.toggle()}),this.checked.pipe(Object(h.a)(this._destroyed)).subscribe(function(t){e._controlValueAccessor[0].writeValue(t)}))}},{key:"_assertValidParentSelection",value:function(){}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Yb(v,8),r.Yb(m.l,10))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkSelectAll",""]],exportAs:["cdkSelectAll"]}),e}(),S=function(){var e=function(){function e(t,n){var i=this;s(this,e),this._selection=t,this._controlValueAccessors=n,this.checked=this._selection.change.pipe(Object(d.a)(function(){return Object(u.a)(i._isSelected())}),Object(f.a)()),this._destroyed=new a.a}return o(e,[{key:"toggle",value:function(){this._selection.toggleSelection(this.value,this.index)}},{key:"ngOnInit",value:function(){this._assertValidParentSelection(),this._configureControlValueAccessor()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_assertValidParentSelection",value:function(){}},{key:"_configureControlValueAccessor",value:function(){var e=this;this._controlValueAccessors&&this._controlValueAccessors.length&&(this._controlValueAccessors[0].registerOnChange(function(t){"boolean"==typeof t&&e.toggle()}),this.checked.pipe(Object(h.a)(this._destroyed)).subscribe(function(t){e._controlValueAccessors[0].writeValue(t)}))}},{key:"_isSelected",value:function(){return this._selection.isSelected(this.value,this.index)}},{key:"index",get:function(){return this._index},set:function(e){this._index=Object(i.f)(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Yb(v,8),r.Yb(m.l,10))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkSelectionToggle",""]],inputs:{index:["cdkSelectionToggleIndex","index"],value:["cdkSelectionToggleValue","value"]},exportAs:["cdkSelectionToggle"]}),e}(),x=function(){var e=function(){function e(t,n){s(this,e),this._table=t,this.selection=n}return o(e,[{key:"ngOnInit",value:function(){this._syncColumnDefName(),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:"_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)(r.Yb(b.q,8),r.Yb(v,8))},e.\u0275cmp=r.Sb({type:e,selectors:[["cdk-selection-column"]],viewQuery:function(e,t){var n;(1&e&&(r.Mc(b.e,!0),r.Mc(b.c,!0),r.Mc(b.k,!0)),2&e)&&(r.Bc(n=r.mc())&&(t._columnDef=n.first),r.Bc(n=r.mc())&&(t._cell=n.first),r.Bc(n=r.mc())&&(t._headerCell=n.first))},inputs:{name:["cdkSelectionColumnName","name"]},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdkHeaderCell","",4,"cdkHeaderCellDef"],["cdkCell","",4,"cdkCellDef"],["cdkHeaderCell",""],["type","checkbox","cdkSelectAll","",3,"checked","indeterminate","click",4,"ngIf"],["type","checkbox","cdkSelectAll","",3,"checked","indeterminate","click"],["allToggler","cdkSelectAll"],["cdkCell",""],["type","checkbox","cdkSelectionToggle","",3,"cdkSelectionToggleValue","cdkSelectionToggleIndex","checked","click"],["toggler","cdkSelectionToggle"]],template:function(e,t){1&e&&(r.cc(0,0),r.Qc(1,k,2,1,"th",1),r.Qc(2,g,4,5,"td",2),r.bc())},directives:[b.e,b.k,b.c,p.t,w,S],pipes:[p.b],encapsulation:2,changeDetection:0}),e}(),O=function(){var e=function(){function e(t){s(this,e),this._selection=t}return o(e,[{key:"index",get:function(){return this._index},set:function(e){this._index=Object(i.f)(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.Yb(v))},e.\u0275dir=r.Tb({type:e,selectors:[["","cdkRowSelection",""]],hostVars:3,hostBindings:function(e,t){2&e&&(r.Nb("aria-selected",t._selection.isSelected(t.value,t.index)),r.Qb("cdk-selected",t._selection.isSelected(t.value,t.index)))},inputs:{index:["cdkRowSelectionIndex","index"],value:["cdkRowSelectionValue","value"]}}),e}(),C=function(){var e=function e(){s(this,e)};return e.\u0275mod=r.Wb({type:e}),e.\u0275inj=r.Vb({factory:function(t){return new(t||e)},imports:[[p.c,b.r]]}),e}()},JK6p:function(e,t,n){"use strict";n.r(t),n.d(t,"MatSelectionColumnExample",function(){return J}),n.d(t,"MatSelectionExamplesModule",function(){return ne}),n.d(t,"MatSelectionListExample",function(){return G});var i=n("8LU1"),c=n("7dfx"),r=n("fXoL"),a=n("+0xr"),u=n("ofXK"),d=n("bSwM");function f(e,t){if(1&e&&(r.Zb(0,"mat-checkbox",5,6),r.qc(2,"async")),2&e){var n=r.Cc(1);r.vc("indeterminate",r.rc(2,1,n.indeterminate))}}function m(e,t){if(1&e&&(r.ec(0,"th",3),r.Qc(1,f,3,3,"mat-checkbox",4),r.dc()),2&e){var n=r.pc();r.Mb(1),r.vc("ngIf",n.selection.multiple)}}function b(e,t){if(1&e&&(r.ec(0,"td",7),r.Zb(1,"mat-checkbox",8),r.dc()),2&e){var n=t.$implicit,i=t.$index;r.Mb(1),r.vc("matSelectionToggleValue",n)("matSelectionToggleIndex",i)}}var p,y,k,g,_,v,w=((p=function(e){l(n,e);var t=h(n);function n(){var e;return s(this,n),(e=t.apply(this,arguments)).change=new r.s,e}return o(n,[{key:"multiple",get:function(){return this._multiple},set:function(e){this._multiple=Object(i.c)(e)}}]),n}(c.c)).\u0275fac=function(e){return S(e||p)},p.\u0275dir=r.Tb({type:p,selectors:[["","matSelection",""]],inputs:{multiple:["matSelectionMultiple","multiple"]},outputs:{change:"matSelectionChange"},exportAs:["matSelection"],features:[r.Lb([{provide:c.c,useExisting:p}]),r.Jb]}),p),S=r.gc(w),x=((y=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(c.b)).\u0275fac=function(e){return O(e||y)},y.\u0275dir=r.Tb({type:y,selectors:[["","matSelectAll",""]],exportAs:["matSelectAll"],features:[r.Lb([{provide:c.b,useExisting:y}]),r.Jb]}),y),O=r.gc(x),C=((k=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return o(n,[{key:"index",get:function(){return this._index},set:function(e){this._index=Object(i.f)(e)}}]),n}(c.f)).\u0275fac=function(e){return R(e||k)},k.\u0275dir=r.Tb({type:k,selectors:[["","matSelectionToggle",""]],inputs:{index:["matSelectionToggleIndex","index"],value:["matSelectionToggleValue","value"]},exportAs:["matSelectionToggle"],features:[r.Lb([{provide:c.f,useExisting:k}]),r.Jb]}),k),R=r.gc(C),j=((_=function(){function e(t,n){s(this,e),this._table=t,this.selection=n}return o(e,[{key:"ngOnInit",value:function(){this._syncColumnDefName(),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:"_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}()).\u0275fac=function(e){return new(e||_)(r.Yb(a.o,8),r.Yb(w,8))},_.\u0275cmp=r.Sb({type:_,selectors:[["mat-selection-column"]],viewQuery:function(e,t){var n;1&e&&(r.Mc(a.c,!0),r.Mc(a.b,!0),r.Mc(a.i,!0)),2&e&&(r.Bc(n=r.mc())&&(t._columnDef=n.first),r.Bc(n=r.mc())&&(t._cell=n.first),r.Bc(n=r.mc())&&(t._headerCell=n.first))},inputs:{name:"name"},decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","","class","mat-selection-column-header",4,"matHeaderCellDef"],["mat-cell","","class","mat-selection-column-cell",4,"matCellDef"],["mat-header-cell","",1,"mat-selection-column-header"],["matSelectAll","",3,"indeterminate",4,"ngIf"],["matSelectAll","",3,"indeterminate"],["allToggler","matSelectAll"],["mat-cell","",1,"mat-selection-column-cell"],["matSelectionToggle","",3,"matSelectionToggleValue","matSelectionToggleIndex"]],template:function(e,t){1&e&&(r.cc(0,0),r.Qc(1,m,2,1,"th",1),r.Qc(2,b,2,2,"td",2),r.bc())},directives:[a.c,a.i,a.b,a.h,u.t,d.a,x,a.a,C],pipes:[u.b],styles:["th.mat-selection-column-header,td.mat-selection-column-cell{text-align:center;width:48px}\n"],encapsulation:2,changeDetection:0}),_),D=((g=function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return o(n,[{key:"index",get:function(){return this._index},set:function(e){this._index=Object(i.f)(e)}}]),n}(c.a)).\u0275fac=function(e){return A(e||g)},g.\u0275dir=r.Tb({type:g,selectors:[["","matRowSelection",""]],hostVars:3,hostBindings:function(e,t){2&e&&(r.Nb("aria-selected",t._selection.isSelected(t.value,t.index)),r.Qb("mat-selected",t._selection.isSelected(t.value,t.index)))},inputs:{index:["matRowSelectionIndex","index"],value:["matRowSelectionValue","value"]},features:[r.Lb([{provide:c.a,useExisting:g}]),r.Jb]}),g),A=r.gc(D),T=((v=function e(){s(this,e)}).\u0275mod=r.Wb({type:v}),v.\u0275inj=r.Vb({factory:function(e){return new(e||v)},imports:[[u.c,a.q,d.b]]}),v),E=n("3Pt+"),M=n("jtHE");function N(e,t){1&e&&(Object(r.ec)(0,"th",10),Object(r.Sc)(1," No. "),Object(r.dc)())}function I(e,t){if(1&e&&(Object(r.ec)(0,"td",11),Object(r.Sc)(1),Object(r.dc)()),2&e){var n=t.$implicit;Object(r.Mb)(1),Object(r.Uc)(" ",n.position," ")}}function B(e,t){1&e&&(Object(r.ec)(0,"th",10),Object(r.Sc)(1," Name "),Object(r.dc)())}function V(e,t){if(1&e&&(Object(r.ec)(0,"td",11),Object(r.Sc)(1),Object(r.dc)()),2&e){var n=t.$implicit;Object(r.Mb)(1),Object(r.Uc)(" ",n.name," ")}}function L(e,t){1&e&&(Object(r.ec)(0,"th",10),Object(r.Sc)(1," Weight "),Object(r.dc)())}function F(e,t){if(1&e&&(Object(r.ec)(0,"td",11),Object(r.Sc)(1),Object(r.dc)()),2&e){var n=t.$implicit;Object(r.Mb)(1),Object(r.Uc)(" ",n.weight," ")}}function Y(e,t){1&e&&(Object(r.ec)(0,"th",10),Object(r.Sc)(1," Symbol "),Object(r.dc)())}function H(e,t){if(1&e&&(Object(r.ec)(0,"td",11),Object(r.Sc)(1),Object(r.dc)()),2&e){var n=t.$implicit;Object(r.Mb)(1),Object(r.Uc)(" ",n.symbol," ")}}function P(e,t){1&e&&Object(r.Zb)(0,"tr",12)}function Q(e,t){if(1&e&&Object(r.Zb)(0,"tr",13),2&e){var n=t.$implicit;Object(r.vc)("matRowSelectionValue",n)}}var U,J=((U=function(){function e(){s(this,e),this._destroyed=new M.a(1),this.displayedColumns=["select","position","name","weight","symbol"],this.dataSource=q,this.selected=[]}return o(e,[{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"selectionChanged",value:function(e){this.selected=e.after.map(function(e){return e.value.name})}}]),e}()).\u0275fac=function(e){return new(e||U)},U.\u0275cmp=Object(r.Sb)({type:U,selectors:[["mat-selection-column-example"]],decls:17,vars:5,consts:[["mat-table","","matSelection","",1,"example-table",3,"dataSource","matSelectionMultiple","matSelectionChange"],["name","select"],["matColumnDef","position"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","symbol"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","matRowSelection","",3,"matRowSelectionValue",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","","matRowSelection","",3,"matRowSelectionValue"]],template:function(e,t){1&e&&(Object(r.Sc)(0),Object(r.ec)(1,"table",0),Object(r.lc)("matSelectionChange",function(e){return t.selectionChanged(e)}),Object(r.Zb)(2,"mat-selection-column",1),Object(r.cc)(3,2),Object(r.Qc)(4,N,2,0,"th",3),Object(r.Qc)(5,I,2,1,"td",4),Object(r.bc)(),Object(r.cc)(6,5),Object(r.Qc)(7,B,2,0,"th",3),Object(r.Qc)(8,V,2,1,"td",4),Object(r.bc)(),Object(r.cc)(9,6),Object(r.Qc)(10,L,2,0,"th",3),Object(r.Qc)(11,F,2,1,"td",4),Object(r.bc)(),Object(r.cc)(12,7),Object(r.Qc)(13,Y,2,0,"th",3),Object(r.Qc)(14,H,2,1,"td",4),Object(r.bc)(),Object(r.Qc)(15,P,1,0,"tr",8),Object(r.Qc)(16,Q,1,1,"tr",9),Object(r.dc)()),2&e&&(Object(r.Uc)("Selected: ",t.selected,"\n"),Object(r.Mb)(1),Object(r.vc)("dataSource",t.dataSource)("matSelectionMultiple",!0),Object(r.Mb)(14),Object(r.vc)("matHeaderRowDef",t.displayedColumns),Object(r.Mb)(1),Object(r.vc)("matRowDefColumns",t.displayedColumns))},directives:[a.o,w,j,a.c,a.i,a.b,a.k,a.n,a.h,a.a,a.j,a.m,D],styles:[".example-table[_ngcontent-%COMP%] {\n width: 100%;\n}"]}),U),q=[{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"}];function W(e,t){if(1&e){var n=Object(r.fc)();Object(r.ec)(0,"li"),Object(r.ec)(1,"input",10,11),Object(r.lc)("click",function(){return Object(r.Gc)(n),Object(r.Cc)(2).toggle()}),Object(r.qc)(3,"async"),Object(r.dc)(),Object(r.Sc)(4),Object(r.dc)()}if(2&e){var i=t.$implicit,c=Object(r.Cc)(2);Object(r.Mb)(1),Object(r.vc)("matSelectionToggleValue",i)("checked",Object(r.rc)(3,3,c.checked)),Object(r.Mb)(3),Object(r.Uc)(" ",i," ")}}function z(e,t){if(1&e&&(Object(r.ec)(0,"li"),Object(r.Zb)(1,"mat-checkbox",12),Object(r.Sc)(2),Object(r.dc)()),2&e){var n=t.$implicit;Object(r.Mb)(1),Object(r.vc)("matSelectionToggleValue",n),Object(r.Mb)(1),Object(r.Uc)(" ",n," ")}}function Z(e,t){if(1&e&&(Object(r.ec)(0,"li"),Object(r.Zb)(1,"mat-checkbox",12),Object(r.Sc)(2),Object(r.dc)()),2&e){var n=t.$implicit;Object(r.Mb)(1),Object(r.vc)("matSelectionToggleValue",n),Object(r.Mb)(1),Object(r.Uc)(" ",n," ")}}function X(e,t){if(1&e&&(Object(r.ec)(0,"li"),Object(r.Zb)(1,"mat-checkbox",13),Object(r.Sc)(2),Object(r.dc)()),2&e){var n=t.$implicit,i=t.index;Object(r.Mb)(1),Object(r.vc)("matSelectionToggleValue",n)("matSelectionToggleIndex",i),Object(r.Mb)(1),Object(r.Uc)(" ",n," ")}}var $,K,G=(($=function(){function e(){s(this,e),this._destroyed=new M.a(1),this.data=ee,this.selected1=[],this.selected2=[],this.selected3=[],this.selected4=[]}return o(e,[{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"getCurrentSelected",value:function(e){return e.after.map(function(e){return e.value})}},{key:"trackByFn",value:function(e,t){return e}},{key:"changeElementName",value:function(){this.data=te}},{key:"reset",value:function(){this.data=ee}}]),e}()).\u0275fac=function(e){return new(e||$)},$.\u0275cmp=Object(r.Sb)({type:$,selectors:[["mat-selection-list-example"]],decls:38,vars:30,consts:[["matSelection","",3,"dataSource","matSelectionMultiple","matSelectionChange"],["type","checkbox","matSelectAll","",3,"checked","indeterminate","click"],["allToggler","matSelectAll"],[4,"ngFor","ngForOf"],["matSelectAll","",3,"indeterminate"],["toggle1","matSelectAll"],["matSelection","",3,"dataSource","matSelectionMultiple","trackBy","matSelectionChange"],["toggle2","matSelectAll"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"click"],["type","checkbox","matSelectionToggle","",3,"matSelectionToggleValue","checked","click"],["toggler","matSelectionToggle"],["matSelectionToggle","",3,"matSelectionToggleValue"],["matSelectionToggle","",3,"matSelectionToggleValue","matSelectionToggleIndex"]],template:function(e,t){if(1&e){var n=Object(r.fc)();Object(r.ec)(0,"h3"),Object(r.ec)(1,"code"),Object(r.Sc)(2,"native input"),Object(r.dc)(),Object(r.dc)(),Object(r.Sc)(3),Object(r.ec)(4,"ul",0),Object(r.lc)("matSelectionChange",function(e){return t.selected1=t.getCurrentSelected(e)}),Object(r.ec)(5,"input",1,2),Object(r.lc)("click",function(e){return Object(r.Gc)(n),Object(r.Cc)(6).toggle(e)}),Object(r.qc)(7,"async"),Object(r.qc)(8,"async"),Object(r.dc)(),Object(r.Qc)(9,W,5,5,"li",3),Object(r.dc)(),Object(r.ec)(10,"h3"),Object(r.ec)(11,"code"),Object(r.Sc)(12,"mat-checkbox"),Object(r.dc)(),Object(r.dc)(),Object(r.Sc)(13),Object(r.ec)(14,"ul",0),Object(r.lc)("matSelectionChange",function(e){return t.selected2=t.getCurrentSelected(e)}),Object(r.Zb)(15,"mat-checkbox",4,5),Object(r.qc)(17,"async"),Object(r.Qc)(18,z,3,2,"li",3),Object(r.dc)(),Object(r.ec)(19,"h3"),Object(r.ec)(20,"code"),Object(r.Sc)(21,"Single select with mat-checkbox"),Object(r.dc)(),Object(r.dc)(),Object(r.Sc)(22),Object(r.ec)(23,"ul",0),Object(r.lc)("matSelectionChange",function(e){return t.selected3=t.getCurrentSelected(e)}),Object(r.Qc)(24,Z,3,2,"li",3),Object(r.dc)(),Object(r.ec)(25,"h3"),Object(r.ec)(26,"code"),Object(r.Sc)(27,"with trackBy"),Object(r.dc)(),Object(r.dc)(),Object(r.Sc)(28),Object(r.ec)(29,"ul",6),Object(r.lc)("matSelectionChange",function(e){return t.selected4=t.getCurrentSelected(e)}),Object(r.Zb)(30,"mat-checkbox",4,7),Object(r.qc)(32,"async"),Object(r.Qc)(33,X,3,3,"li",8),Object(r.dc)(),Object(r.ec)(34,"button",9),Object(r.lc)("click",function(){return t.changeElementName()}),Object(r.Sc)(35,"Change element names and the already selected stays"),Object(r.dc)(),Object(r.ec)(36,"button",9),Object(r.lc)("click",function(){return t.reset()}),Object(r.Sc)(37,"reset"),Object(r.dc)()}if(2&e){var i=Object(r.Cc)(6),c=Object(r.Cc)(16),o=Object(r.Cc)(31);Object(r.Mb)(3),Object(r.Uc)("\nSelected: ",t.selected1,"\n"),Object(r.Mb)(1),Object(r.vc)("dataSource",t.data)("matSelectionMultiple",!0),Object(r.Mb)(1),Object(r.vc)("checked",Object(r.rc)(7,22,i.checked))("indeterminate",Object(r.rc)(8,24,i.indeterminate)),Object(r.Mb)(4),Object(r.vc)("ngForOf",t.data),Object(r.Mb)(4),Object(r.Uc)("\nSelected: ",t.selected2,"\n"),Object(r.Mb)(1),Object(r.vc)("dataSource",t.data)("matSelectionMultiple",!0),Object(r.Mb)(1),Object(r.vc)("indeterminate",Object(r.rc)(17,26,c.indeterminate)),Object(r.Mb)(3),Object(r.vc)("ngForOf",t.data),Object(r.Mb)(4),Object(r.Uc)("\nSelected: ",t.selected3,"\n"),Object(r.Mb)(1),Object(r.vc)("dataSource",t.data)("matSelectionMultiple",!1),Object(r.Mb)(1),Object(r.vc)("ngForOf",t.data),Object(r.Mb)(4),Object(r.Uc)("\nSelected: ",t.selected4,"\n"),Object(r.Mb)(1),Object(r.vc)("dataSource",t.data)("matSelectionMultiple",!0)("trackBy",t.trackByFn),Object(r.Mb)(1),Object(r.vc)("indeterminate",Object(r.rc)(32,28,o.indeterminate)),Object(r.Mb)(3),Object(r.vc)("ngForOf",t.data)("ngForTrackBy",t.trackByFn)}},directives:[w,x,u.s,d.a,C],pipes:[u.b],encapsulation:2}),$),ee=["Hydrogen","Helium","Lithium","Beryllium","Boron","Carbon","Nitrogen","Oxygen","Fluorine","Neon","Sodium","Magnesium","Aluminum","Silicon","Phosphorus","Sulfur","Chlorine","Argon","Potassium","Calcium"],te=["H","He","Li","Be","B","C","N","O","F","Ne","Na","Mg","Al","Si","P","S","Cl","Ar","K","Ca"],ne=((K=function e(){s(this,e)}).\u0275mod=Object(r.Wb)({type:K}),K.\u0275inj=Object(r.Vb)({factory:function(e){return new(e||K)},imports:[[T,a.q,u.c,E.j,E.t,d.b]]}),K)},bSwM:function(e,t,n){"use strict";n.d(t,"a",function(){return x}),n.d(t,"b",function(){return C});var i=n("8LU1"),c=n("fXoL"),r=n("3Pt+"),a=n("FKr1"),u=n("R1ws"),d=n("GU7r"),f=n("u47x"),m=["input"],b=function(){return{enterDuration:150}},p=["*"],y=new c.x("mat-checkbox-default-options",{providedIn:"root",factory:k});function k(){return{color:"accent",clickAction:"check-indeterminate"}}var g=0,_={color:"accent",clickAction:"check-indeterminate"},v={provide:r.l,useExisting:Object(c.eb)(function(){return x}),multi:!0},w=function e(){s(this,e)},S=Object(a.E)(Object(a.z)(Object(a.A)(Object(a.B)(function e(t){s(this,e),this._elementRef=t})))),x=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i,r,o,a,l,u){var h;return s(this,n),(h=t.call(this,e))._changeDetectorRef=i,h._focusMonitor=r,h._ngZone=o,h._animationMode=l,h._options=u,h.ariaLabel="",h.ariaLabelledby=null,h._uniqueId="mat-checkbox-"+ ++g,h.id=h._uniqueId,h.labelPosition="after",h.name=null,h.change=new c.s,h.indeterminateChange=new c.s,h._onTouched=function(){},h._currentAnimationClass="",h._currentCheckState=0,h._controlValueAccessorChangeFn=function(){},h._checked=!1,h._disabled=!1,h._indeterminate=!1,h._options=h._options||_,h.color=h.defaultColor=h._options.color||_.color,h.tabIndex=parseInt(a)||0,h}return o(n,[{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){t||Promise.resolve().then(function(){e._onTouched(),e._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}},{key:"ngAfterViewChecked",value:function(){}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._controlValueAccessorChangeFn=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_getAriaChecked",value:function(){return this.checked?"true":this.indeterminate?"mixed":"false"}},{key:"_transitionCheckState",value:function(e){var t=this._currentCheckState,n=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){n.classList.remove(i)},1e3)})}}},{key:"_emitChangeEvent",value:function(){var e=new w;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)}},{key:"toggle",value:function(){this.checked=!this.checked}},{key:"_onInputClick",value:function(e){var t,n=this,i=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(function(){n._indeterminate=!1,n.indeterminateChange.emit(n._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"keyboard",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._inputElement,e,t)}},{key:"_onInteractionEvent",value:function(e){e.stopPropagation()}},{key:"_getAnimationClassForCheckStateTransition",value:function(e,t){if("NoopAnimations"===this._animationMode)return"";var n="";switch(e){case 0:if(1===t)n="unchecked-checked";else{if(3!=t)return"";n="unchecked-indeterminate"}break;case 2:n=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:n=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:n=1===t?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n}},{key:"_syncIndeterminate",value:function(e){var t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}},{key:"inputId",get:function(){return(this.id||this._uniqueId)+"-input"}},{key:"required",get:function(){return this._required},set:function(e){this._required=Object(i.c)(e)}},{key:"checked",get:function(){return this._checked},set:function(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled},set:function(e){var t=Object(i.c)(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}},{key:"indeterminate",get:function(){return this._indeterminate},set:function(e){var t=e!=this._indeterminate;this._indeterminate=Object(i.c)(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}}]),n}(S);return e.\u0275fac=function(t){return new(t||e)(c.Yb(c.p),c.Yb(c.i),c.Yb(f.h),c.Yb(c.I),c.jc("tabindex"),c.Yb(u.a,8),c.Yb(y,8))},e.\u0275cmp=c.Sb({type:e,selectors:[["mat-checkbox"]],viewQuery:function(e,t){var n;(1&e&&(c.Wc(m,!0),c.Wc(a.t,!0)),2&e)&&(c.Bc(n=c.mc())&&(t._inputElement=n.first),c.Bc(n=c.mc())&&(t.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(c.hc("id",t.id),c.Nb("tabindex",null),c.Qb("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[c.Lb([v]),c.Jb],ngContentSelectors:p,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(c.uc(),c.ec(0,"label",0,1),c.ec(2,"span",2),c.ec(3,"input",3,4),c.lc("change",function(e){return t._onInteractionEvent(e)})("click",function(e){return t._onInputClick(e)}),c.dc(),c.ec(5,"span",5),c.Zb(6,"span",6),c.dc(),c.Zb(7,"span",7),c.ec(8,"span",8),c.oc(),c.ec(9,"svg",9),c.Zb(10,"path",10),c.dc(),c.nc(),c.Zb(11,"span",11),c.dc(),c.dc(),c.ec(12,"span",12,13),c.lc("cdkObserveContent",function(){return t._onLabelTextChange()}),c.ec(14,"span",14),c.Sc(15,"\xa0"),c.dc(),c.tc(16),c.dc(),c.dc()),2&e){var n=c.Cc(1),i=c.Cc(13);c.Nb("for",t.inputId),c.Mb(2),c.Qb("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),c.Mb(1),c.vc("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),c.Nb("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),c.Mb(2),c.vc("matRippleTrigger",n)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",c.yc(19,b))}},directives:[a.t,d.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),e}(),O=function(){var e=function e(){s(this,e)};return e.\u0275mod=c.Wb({type:e}),e.\u0275inj=c.Vb({factory:function(t){return new(t||e)}}),e}(),C=function(){var e=function e(){s(this,e)};return e.\u0275mod=c.Wb({type:e}),e.\u0275inj=c.Vb({factory:function(t){return new(t||e)},imports:[[a.u,a.j,d.c,O],a.j,O]}),e}()},f6nW:function(n,i,c){"use strict";c.d(i,"a",function(){return A}),c.d(i,"b",function(){return Y}),c.d(i,"c",function(){return E}),c.d(i,"d",function(){return X}),c.d(i,"e",function(){return B}),c.d(i,"f",function(){return F}),c.d(i,"g",function(){return N}),c.d(i,"h",function(){return K}),c.d(i,"i",function(){return z}),c.d(i,"j",function(){return L}),c.d(i,"k",function(){return M}),c.d(i,"l",function(){return $}),c.d(i,"m",function(){return q}),c.d(i,"n",function(){return ee}),c.d(i,"o",function(){return G}),c.d(i,"p",function(){return Z}),c.d(i,"q",function(){return ae}),c.d(i,"r",function(){return ue}),c.d(i,"s",function(){return le}),c.d(i,"t",function(){return ie}),c.d(i,"u",function(){return re}),c.d(i,"v",function(){return ce}),c.d(i,"w",function(){return oe}),c.d(i,"x",function(){return P}),c.d(i,"y",function(){return Q});var r=c("8LU1"),u=c("0EQZ"),d=c("fXoL"),m=c("cH1L"),b=c("nLfN"),p=c("vxfF"),y=c("ofXK"),k=c("XNiG"),g=c("Cfvw"),_=c("2Vo4"),v=c("7+OI"),w=c("LRne"),S=c("1G5W"),x=c("IzEk"),O=[[["caption"]],[["colgroup"],["col"]]],C=["caption","colgroup, col"];function R(e,t){if(1&e&&(d.ec(0,"th",3),d.Sc(1),d.dc()),2&e){var n=d.pc();d.Nc("text-align",n.justify),d.Mb(1),d.Uc(" ",n.headerText," ")}}function j(e,t){if(1&e&&(d.ec(0,"td",4),d.Sc(1),d.dc()),2&e){var n=t.$implicit,i=d.pc();d.Nc("text-align",i.justify),d.Mb(1),d.Uc(" ",i.dataAccessor(n,i.name)," ")}}function D(e){return function(e){l(n,e);var t=h(n);function n(){var e;s(this,n);for(var i=arguments.length,c=new Array(i),r=0;r<i;r++)c[r]=arguments[r];return(e=t.call.apply(t,[this].concat(c)))._sticky=!1,e._hasStickyChanged=!1,e}return o(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(r.c)(e),this._hasStickyChanged=t!==this._sticky}}]),n}(e)}var A=new d.x("CDK_TABLE"),T=new d.x("text-column-options"),E=function(){var e=function e(t){s(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.V))},e.\u0275dir=d.Tb({type:e,selectors:[["","cdkCellDef",""]]}),e}(),M=function(){var e=function e(t){s(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.V))},e.\u0275dir=d.Tb({type:e,selectors:[["","cdkHeaderCellDef",""]]}),e}(),N=function(){var e=function e(t){s(this,e),this.template=t};return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.V))},e.\u0275dir=d.Tb({type:e,selectors:[["","cdkFooterCellDef",""]]}),e}(),I=D(function e(){s(this,e)}),B=function(){var e=function(e){l(n,e);var t=h(n);function n(e){var i;return s(this,n),(i=t.call(this))._table=e,i._stickyEnd=!1,i}return o(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(r.c)(e),this._hasStickyChanged=t!==this._stickyEnd}}]),n}(I);return e.\u0275fac=function(t){return new(t||e)(d.Yb(A,8))},e.\u0275dir=d.Tb({type:e,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,n){var i;(1&e&&(d.Rb(n,E,!0),d.Rb(n,M,!0),d.Rb(n,N,!0)),2&e)&&(d.Bc(i=d.mc())&&(t.cell=i.first),d.Bc(i=d.mc())&&(t.headerCell=i.first),d.Bc(i=d.mc())&&(t.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[d.Lb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:e}]),d.Jb]}),e}(),V=function e(n,i){s(this,e);var c,r=i.nativeElement.classList,o=t(n._columnCssClassName);try{for(o.s();!(c=o.n()).done;){var a=c.value;r.add(a)}}catch(l){o.e(l)}finally{o.f()}},L=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i){return s(this,n),t.call(this,e,i)}return n}(V);return e.\u0275fac=function(t){return new(t||e)(d.Yb(B),d.Yb(d.p))},e.\u0275dir=d.Tb({type:e,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[d.Jb]}),e}(),F=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i){return s(this,n),t.call(this,e,i)}return n}(V);return e.\u0275fac=function(t){return new(t||e)(d.Yb(B),d.Yb(d.p))},e.\u0275dir=d.Tb({type:e,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[d.Jb]}),e}(),Y=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i){return s(this,n),t.call(this,e,i)}return n}(V);return e.\u0275fac=function(t){return new(t||e)(d.Yb(B),d.Yb(d.p))},e.\u0275dir=d.Tb({type:e,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[d.Jb]}),e}(),H=function e(){s(this,e),this.tasks=[],this.endTasks=[]},P=new d.x("_COALESCED_STYLE_SCHEDULER"),Q=function(){var e=function(){function e(t){s(this,e),this._ngZone=t,this._currentSchedule=null,this._destroyed=new k.a}return o(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 H,this._getScheduleObservable().pipe(Object(S.a)(this._destroyed)).subscribe(function(){for(;e._currentSchedule.tasks.length||e._currentSchedule.endTasks.length;){var n=e._currentSchedule;e._currentSchedule=new H;var i,c=t(n.tasks);try{for(c.s();!(i=c.n()).done;){(0,i.value)()}}catch(a){c.e(a)}finally{c.f()}var r,o=t(n.endTasks);try{for(o.s();!(r=o.n()).done;){(0,r.value)()}}catch(a){o.e(a)}finally{o.f()}}e._currentSchedule=null}))}},{key:"_getScheduleObservable",value:function(){return this._ngZone.isStable?Object(g.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(x.a)(1))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.ic(d.I))},e.\u0275prov=d.Ub({token:e,factory:e.\u0275fac}),e}(),U=function(){var e=function(){function e(t,n){s(this,e),this.template=t,this._differs=n}return o(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 q?e.headerCell.template:this instanceof z?e.footerCell.template:e.cell.template}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.V),d.Yb(d.A))},e.\u0275dir=d.Tb({type:e,features:[d.Kb]}),e}(),J=D(function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(U)),q=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i,c){var r;return s(this,n),(r=t.call(this,e,i))._table=c,r}return o(n,[{key:"ngOnChanges",value:function(e){a(f(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(J);return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.V),d.Yb(d.A),d.Yb(A,8))},e.\u0275dir=d.Tb({type:e,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[d.Jb,d.Kb]}),e}(),W=D(function(e){l(n,e);var t=h(n);function n(){return s(this,n),t.apply(this,arguments)}return n}(U)),z=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i,c){var r;return s(this,n),(r=t.call(this,e,i))._table=c,r}return o(n,[{key:"ngOnChanges",value:function(e){a(f(n.prototype),"ngOnChanges",this).call(this,e)}}]),n}(W);return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.V),d.Yb(d.A),d.Yb(A,8))},e.\u0275dir=d.Tb({type:e,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[d.Jb,d.Kb]}),e}(),Z=function(){var e=function(e){l(n,e);var t=h(n);function n(e,i,c){var r;return s(this,n),(r=t.call(this,e,i))._table=c,r}return n}(U);return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.V),d.Yb(d.A),d.Yb(A,8))},e.\u0275dir=d.Tb({type:e,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[d.Jb]}),e}(),X=function(){var e=function(){function e(t){s(this,e),this._viewContainer=t,e.mostRecentCellOutlet=this}return o(e,[{key:"ngOnDestroy",value:function(){e.mostRecentCellOutlet===this&&(e.mostRecentCellOutlet=null)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.ab))},e.\u0275dir=d.Tb({type:e,selectors:[["","cdkCellOutlet",""]]}),e.mostRecentCellOutlet=null,e}(),$=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=d.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&&d.ac(0,0)},directives:[X],encapsulation:2}),e}(),K=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=d.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&&d.ac(0,0)},directives:[X],encapsulation:2}),e}(),G=function(){var e=function e(){s(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=d.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&&d.ac(0,0)},directives:[X],encapsulation:2}),e}(),ee=function(){var e=function e(t){s(this,e),this.templateRef=t};return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.V))},e.\u0275dir=d.Tb({type:e,selectors:[["ng-template","cdkNoDataRow",""]]}),e}(),te=["top","bottom","left","right"],ne=function(){function e(t,n,i,c){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];s(this,e),this._isNativeHtmlTable=t,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=c,this._isBrowser=r,this._needsPositionStickyOnElement=o,this._cachedCellWidths=[]}return o(e,[{key:"clearStickyPositioning",value:function(e,n){var i,c=this,r=[],o=t(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s<a.children.length;s++)r.push(a.children[s])}}}catch(l){o.e(l)}finally{o.f()}this._scheduleStyleChanges(function(){var e,i=t(r);try{for(i.s();!(e=i.n()).done;){var o=e.value;c._removeStickyStyle(o,n)}}catch(l){i.e(l)}finally{i.f()}})}},{key:"updateStickyColumns",value:function(e,n,i){var c=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.length&&this._isBrowser&&(n.some(function(e){return e})||i.some(function(e){return e}))){var o=e[0],a=o.children.length,s=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(s,n),u=this._getStickyEndColumnPositions(s,i);this._scheduleStyleChanges(function(){var r,o="rtl"===c.direction,s=o?"right":"left",h=o?"left":"right",d=t(e);try{for(d.s();!(r=d.n()).done;)for(var f=r.value,m=0;m<a;m++){var b=f.children[m];n[m]&&c._addStickyStyle(b,s,l[m]),i[m]&&c._addStickyStyle(b,h,u[m])}}catch(p){d.e(p)}finally{d.f()}})}}},{key:"stickRows",value:function(e,n,i){var c=this;if(this._isBrowser){for(var r="bottom"===i?e.slice().reverse():e,o="bottom"===i?n.slice().reverse():n,a=[],s=[],l=0,u=0;l<r.length;l++)if(a[l]=u,o[l]){var h=r[l];s[l]=this._isNativeHtmlTable?Array.from(h.children):[h],l!==r.length-1&&(u+=h.getBoundingClientRect().height)}this._scheduleStyleChanges(function(){for(var e=0;e<r.length;e++)if(o[e]){var n,l=a[e],u=t(s[e]);try{for(u.s();!(n=u.n()).done;){var h=n.value;c._addStickyStyle(h,i,l)}}catch(d){u.e(d)}finally{u.f()}}})}}},{key:"updateStickyFooterContainer",value:function(e,t){var n=this;if(this._isNativeHtmlTable){var i=e.querySelector("tfoot");this._scheduleStyleChanges(function(){t.some(function(e){return!e})?n._removeStickyStyle(i,["bottom"]):n._addStickyStyle(i,"bottom",0)})}}},{key:"_removeStickyStyle",value:function(e,n){var i,c=t(n);try{for(c.s();!(i=c.n()).done;){var r=i.value;e.style[r]=""}}catch(o){c.e(o)}finally{c.f()}te.some(function(t){return-1===n.indexOf(t)&&e.style[t]})?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 n,i={top:100,bottom:10,left:1,right:1},c=0,r=t(te);try{for(r.s();!(n=r.n()).done;){var o=n.value;e.style[o]&&(c+=i[o])}}catch(a){r.e(a)}finally{r.f()}return c?""+c:""}},{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=[],i=e.children,c=0;c<i.length;c++)n.push(i[c].getBoundingClientRect().width);return this._cachedCellWidths=n,n}},{key:"_getStickyStartColumnPositions",value:function(e,t){for(var n=[],i=0,c=0;c<e.length;c++)t[c]&&(n[c]=i,i+=e[c]);return n}},{key:"_getStickyEndColumnPositions",value:function(e,t){for(var n=[],i=0,c=e.length;c>0;c--)t[c]&&(n[c]=i,i+=e[c]);return n}},{key:"_scheduleStyleChanges",value:function(e){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(e):e()}}]),e}(),ie=function(){var e=function e(t,n){s(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.ab),d.Yb(d.p))},e.\u0275dir=d.Tb({type:e,selectors:[["","rowOutlet",""]]}),e}(),ce=function(){var e=function e(t,n){s(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.ab),d.Yb(d.p))},e.\u0275dir=d.Tb({type:e,selectors:[["","headerRowOutlet",""]]}),e}(),re=function(){var e=function e(t,n){s(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.ab),d.Yb(d.p))},e.\u0275dir=d.Tb({type:e,selectors:[["","footerRowOutlet",""]]}),e}(),oe=function(){var e=function e(t,n){s(this,e),this.viewContainer=t,this.elementRef=n};return e.\u0275fac=function(t){return new(t||e)(d.Yb(d.ab),d.Yb(d.p))},e.\u0275dir=d.Tb({type:e,selectors:[["","noDataRowOutlet",""]]}),e}(),ae=function(){var n=function(){function n(e,t,i,c,r,o,a,l,u,h){s(this,n),this._differs=e,this._changeDetectorRef=t,this._elementRef=i,this._dir=r,this._platform=a,this._viewRepeater=l,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._onDestroy=new k.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 _.a({start:0,end:Number.MAX_VALUE}),c||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return o(n,[{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(S.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(u.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,i){return e._getEmbeddedViewArgs(t.item,i)},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,i,c){if(null==t.previousIndex){var r=t.item;e._renderRow(e._rowOutlet,r.rowDef,c,{$implicit:r.data})}else if(null==c)n.remove(i);else{var o=n.get(i);n.move(o,c)}}),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),i=this._getRenderedRows(this._rowOutlet),c=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(e(n),e(i),e(c)),["left","right"]),this._stickyColumnStylesNeedReset=!1),n.forEach(function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])}),this._rowDefs.forEach(function(e){for(var n=[],c=0;c<i.length;c++)t._renderRows[c].rowDef===e&&n.push(i[c]);t._addStickyColumnStyles(n,e)}),c.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 i=this._data[n],c=this._getRenderRowsForData(i,n,t.get(i));this._cachedRenderRowsMap.has(i)||this._cachedRenderRowsMap.set(i,new WeakMap);for(var r=0;r<c.length;r++){var o=c[r],a=this._cachedRenderRowsMap.get(o.data);a.has(o.rowDef)?a.get(o.rowDef).push(o):a.set(o.rowDef,[o]),e.push(o)}}return e}},{key:"_getRenderRowsForData",value:function(e,t,n){return this._getRowDefs(e,t).map(function(i){var c=n&&n.has(i)?n.get(i):[];if(c.length){var r=c.shift();return r.dataIndex=t,r}return{data:e,rowDef:i,dataIndex:t}})}},{key:"_cacheColumnDefs",value:function(){var e=this;this._columnDefsByName.clear(),se(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=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);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 i=this._footerRowDefs.reduce(e,!1);return i&&this._forceRenderFooterRows(),t||n||i}},{key:"_switchDataSource",value:function(e){this._data=[],Object(u.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(u.h)(this.dataSource)?e=this.dataSource.connect(this):Object(v.a)(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Object(w.a)(this.dataSource)),this._renderChangeSubscription=e.pipe(Object(S.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,i=Array.from(t.columns||[]).map(function(e){return n._columnDefsByName.get(e)}),c=i.map(function(e){return e.sticky}),r=i.map(function(e){return e.stickyEnd});this._stickyStyler.updateStickyColumns(e,c,r,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(e){for(var t=[],n=0;n<e.viewContainer.length;n++){var i=e.viewContainer.get(n);t.push(i.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 i=this._rowDefs.find(function(n){return n.when&&n.when(t,e)})||this._defaultRowDef;i&&n.push(i)}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 i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=e.viewContainer.createEmbeddedView(t.template,i,n);return this._renderCellTemplateForItem(t,i),c}},{key:"_renderCellTemplateForItem",value:function(e,n){var i,c=t(this._getCellTemplates(e));try{for(c.s();!(i=c.n()).done;){var r=i.value;X.mostRecentCellOutlet&&X.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,n)}}catch(o){c.e(o)}finally{c.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var e=this._rowOutlet.viewContainer,t=0,n=e.length;t<n;t++){var i=e.get(t).context;i.count=n,i.first=0===t,i.last=t===n-1,i.even=t%2==0,i.odd=!i.even,this.multiTemplateDataRows?(i.dataIndex=this._renderRows[t].dataIndex,i.renderIndex=t):i.index=this._renderRows[t].dataIndex}}},{key:"_getCellTemplates",value:function(e){var t=this;return e&&e.columns?Array.from(e.columns,function(n){var i=t._columnDefsByName.get(n);return e.extractCellTemplate(i)}):[]}},{key:"_applyNativeTableSections",value:function(){for(var e=this._document.createDocumentFragment(),n=0,i=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];n<i.length;n++){var c=i[n],r=this._document.createElement(c.tag);r.setAttribute("role","rowgroup");var o,a=t(c.outlets);try{for(a.s();!(o=a.n()).done;){var s=o.value;r.appendChild(s.elementRef.nativeElement)}}catch(l){a.e(l)}finally{a.f()}e.appendChild(r)}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(w.a)()).pipe(Object(S.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(r.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(r.c)(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}}]),n}();return n.\u0275fac=function(e){return new(e||n)(d.Yb(d.A),d.Yb(d.i),d.Yb(d.p),d.jc("role"),d.Yb(m.c,8),d.Yb(y.e),d.Yb(b.a),d.Yb(u.g,8),d.Yb(P,8),d.Yb(p.j,8))},n.\u0275cmp=d.Sb({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,n){var i;(1&e&&(d.Rb(n,ee,!0),d.Rb(n,B,!0),d.Rb(n,Z,!0),d.Rb(n,q,!0),d.Rb(n,z,!0)),2&e)&&(d.Bc(i=d.mc())&&(t._noDataRow=i.first),d.Bc(i=d.mc())&&(t._contentColumnDefs=i),d.Bc(i=d.mc())&&(t._contentRowDefs=i),d.Bc(i=d.mc())&&(t._contentHeaderRowDefs=i),d.Bc(i=d.mc())&&(t._contentFooterRowDefs=i))},viewQuery:function(e,t){var n;(1&e&&(d.Mc(ie,!0),d.Mc(ce,!0),d.Mc(re,!0),d.Mc(oe,!0)),2&e)&&(d.Bc(n=d.mc())&&(t._rowOutlet=n.first),d.Bc(n=d.mc())&&(t._headerRowOutlet=n.first),d.Bc(n=d.mc())&&(t._footerRowOutlet=n.first),d.Bc(n=d.mc())&&(t._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&d.Qb("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[d.Lb([{provide:A,useExisting:n},{provide:u.g,useClass:u.e},{provide:P,useClass:Q}])],ngContentSelectors:C,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(d.uc(O),d.tc(0),d.tc(1,1),d.ac(2,0),d.ac(3,1),d.ac(4,2),d.ac(5,3))},directives:[ce,ie,oe,re],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n}();function se(e,t){return e.concat(Array.from(t))}var le=function(){var e=function(){function e(t,n){s(this,e),this._table=t,this._options=n,this.justify="start",this._options=n||{}}return o(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)(d.Yb(ae,8),d.Yb(T,8))},e.\u0275cmp=d.Sb({type:e,selectors:[["cdk-text-column"]],viewQuery:function(e,t){var n;(1&e&&(d.Mc(B,!0),d.Mc(E,!0),d.Mc(M,!0)),2&e)&&(d.Bc(n=d.mc())&&(t.columnDef=n.first),d.Bc(n=d.mc())&&(t.cell=n.first),d.Bc(n=d.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&&(d.cc(0,0),d.Qc(1,R,2,3,"th",1),d.Qc(2,j,2,3,"td",2),d.bc())},directives:[B,M,E,L,Y],encapsulation:2}),e}(),ue=function(){var e=function e(){s(this,e)};return e.\u0275mod=d.Wb({type:e}),e.\u0275inj=d.Vb({factory:function(t){return new(t||e)},imports:[[p.h]]}),e}()}}])}();