diff --git a/example-app/0.59c2840404dc785f61d5.chunk.js b/example-app/0.59c2840404dc785f61d5.chunk.js deleted file mode 100644 index 1292df015f..0000000000 --- a/example-app/0.59c2840404dc785f61d5.chunk.js +++ /dev/null @@ -1 +0,0 @@ -webpackJsonp([0],{IUpl:function(n,t,l){"use strict";var e=l("bKpL"),o=l("Y+l6");e.Observable.prototype.toArray=o.toArray},MBEm:function(n,t,l){"use strict";var e=l("bKpL"),o=l("kGJb");e.Observable.prototype.distinctUntilChanged=o.distinctUntilChanged},Ozq5:function(n,t,l){"use strict";var e=l("bKpL"),o=l("GoZW");e.Observable.prototype.pluck=o.pluck},Pic8:function(n,t,l){"use strict";var e=l("bKpL"),o=l("aCMF");e.Observable.prototype.switchMap=o.switchMap},RpuY:function(n,t,l){"use strict";var e=l("bKpL"),o=l("cPhF");e.Observable.prototype.mergeMap=o.mergeMap,e.Observable.prototype.flatMap=o.mergeMap},"Y+l6":function(n,t,l){"use strict";var e=l("6Xbx").__extends,o=l("T14+");t.toArray=function(){return this.lift(new r)};var r=function(){function n(){}return n.prototype.call=function(n,t){return t.subscribe(new u(n))},n}(),u=function(n){function t(t){n.call(this,t),this.array=[]}return e(t,n),t.prototype._next=function(n){this.array.push(n)},t.prototype._complete=function(){this.destination.next(this.array),this.destination.complete()},t}(o.Subscriber)},azLz:function(n,t,l){"use strict";var e=l("bKpL"),o=l("CH/r");e.Observable.prototype.debounceTime=o.debounceTime},gbhw:function(n,t,l){"use strict";var e=l("bKpL"),o=l("422b");e.Observable.prototype.filter=o.filter},q07K:function(n,t,l){"use strict";var e=l("bKpL"),o=l("8Jh8");e.Observable.prototype.takeUntil=o.takeUntil},vfw3:function(n,t,l){"use strict";var e=l("bKpL"),o=l("iDKa");e.Observable.prototype.skip=o.skip},zOuy:function(n,t,l){"use strict";function e(n,t){switch(void 0===n&&(n=Pn),t.type){case V:var l=t.payload;return""===l?{ids:[],loading:!1,error:"",query:l}:Bn({},n,{loading:!0,error:"",query:l});case H:return{ids:t.payload.map(function(n){return n.id}),loading:!1,error:"",query:n.query};case N:return Bn({},n,{loading:!1,error:t.payload});default:return n}}function o(n){return function(t,l){var e={ids:l.ids.slice(),entities:Object.assign({},l.entities)};return n(t,e)?Object.assign({},l,e):l}}function r(n){function t(t,l){var e=n(t);return!(e in l.entities||(l.ids.push(e),l.entities[e]=t,0))}function l(n,l){var e=!1;for(var o in n)e=t(n[o],l)||e;return e}function e(n,t){var l=n.filter(function(n){return n in t.entities}).map(function(n){return delete t.entities[n]}).length>0;return l&&(t.ids=t.ids.filter(function(n){return n in t.entities})),l}function r(t,l){var e={},o=t.filter(function(n){return n.id in l.entities}).map(function(t){return function(t,l,e){var o=e.entities[l.id],r=Object.assign({},o,l.changes),u=n(r);u!==l.id&&(t[l.id]=u,delete e.entities[l.id]),e.entities[u]=r}(e,t,l)}).length>0;return o&&(l.ids=l.ids.map(function(n){return e[n]||n})),o}return{removeAll:function(n){return Object.assign({},n,{ids:[],entities:{}})},addOne:o(t),addMany:o(l),addAll:o(function(n,t){return t.ids=[],t.entities={},l(n,t),!0}),updateOne:o(function(n,t){return r([n],t)}),updateMany:o(r),removeOne:o(function(n,t){return e([n],t)}),removeMany:o(e)}}function u(n,t){switch(void 0===n&&(n=Fn),t.type){case H:case gn:return Sn({},$n.addMany(t.payload,n),{selectedBookId:n.selectedBookId});case Q:return Sn({},$n.addOne(t.payload,n),{selectedBookId:n.selectedBookId});case nn:return Sn({},n,{selectedBookId:t.payload});default:return n}}function i(n,t){switch(void 0===n&&(n=An),t.type){case hn:return Ln({},n,{loading:!0});case gn:return{loaded:!0,loading:!1,ids:t.payload.map(function(n){return n.id})};case fn:case bn:return n.ids.indexOf(t.payload.id)>-1?n:Ln({},n,{ids:n.ids.concat([t.payload.id])});case mn:case pn:return Ln({},n,{ids:n.ids.filter(function(n){return n!==t.payload.id})});default:return n}}function a(n){return B._25(2,[(n()(),B._3(0,0,null,null,1,":svg:svg",[["focusable","false"],["preserveAspectRatio","xMidYMid meet"]],[[4,"width","px"],[4,"height","px"],[1,"viewBox",0]],null,null,null,null)),(n()(),B._3(1,0,null,null,0,":svg:circle",[["cx","50%"],["cy","50%"]],[[1,"r",0],[4,"animation-name",null],[4,"stroke-dashoffset","px"],[4,"stroke-dasharray","px"],[4,"transform","rotate"],[4,"stroke-width","px"]],null,null,null,null))],null,function(n,t){var l=t.component;n(t,0,0,l._elementSize,l._elementSize,l._viewBox),n(t,1,0,l._circleRadius,"mat-progress-spinner-stroke-rotate-"+l.diameter,l._strokeDashOffset,l._strokeCircumference,"360deg",l.strokeWidth)})}function c(n){return B._25(0,[(n()(),B._3(0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),B._23(1,null,["",""]))],null,function(n,t){n(t,1,0,t.component.error)})}function s(n){return B._25(0,[(n()(),B._23(-1,null,["\n "])),(n()(),B._3(1,0,null,null,39,"mat-card",[["class","mat-card"]],null,null,null,ot.d,ot.a)),B._2(2,16384,null,0,rt.t,[],null,null),B._2(3,49152,null,0,ut.a,[],null,null),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(5,0,null,0,3,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),B._2(6,16384,null,0,rt.t,[],null,null),B._2(7,16384,null,0,ut.i,[],null,null),(n()(),B._23(-1,null,["Find a Book"])),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(10,0,null,0,23,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),B._2(11,16384,null,0,rt.t,[],null,null),B._2(12,16384,null,0,ut.c,[],null,null),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(14,0,null,null,14,"mat-input-container",[["class","mat-input-container mat-form-field"]],[[2,"mat-input-invalid",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-focused",null],[2,"mat-primary",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,it.b,it.a)),B._2(15,7389184,null,6,at.a,[B.k,B.B,B.h,[2,rt.j]],null,null),B._21(335544320,1,{_control:0}),B._21(335544320,2,{_placeholderChild:0}),B._21(603979776,3,{_errorChildren:1}),B._21(603979776,4,{_hintChildren:1}),B._21(603979776,5,{_prefixChildren:1}),B._21(603979776,6,{_suffixChildren:1}),B._2(22,16384,null,0,rt.t,[],null,null),(n()(),B._23(-1,1,["\n "])),(n()(),B._3(24,0,null,1,3,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Search for a book"]],[[1,"id",0],[8,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0]],[[null,"keyup"],[null,"blur"],[null,"focus"],[null,"input"]],function(n,t,l){var e=!0,o=n.component;return"blur"===t&&(e=!1!==B._16(n,25)._focusChanged(!1)&&e),"focus"===t&&(e=!1!==B._16(n,25)._focusChanged(!0)&&e),"input"===t&&(e=!1!==B._16(n,25)._onInput()&&e),"keyup"===t&&(e=!1!==o.search.emit(l.target.value)&&e),e},null,null)),B._2(25,933888,null,0,ct.a,[B.k,B.B,st.a,[8,null],[2,A.o],[2,A.i],rt.e],{placeholder:[0,"placeholder"],value:[1,"value"]},null),B._2(26,16384,null,0,rt.t,[],null,null),B._20(2048,[[1,4]],at.b,null,[ct.a]),(n()(),B._23(-1,1,["\n "])),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(30,0,null,null,2,"mat-spinner",[["class","mat-spinner mat-progress-spinner"],["mode","indeterminate"],["role","progressbar"]],[[2,"show",null],[4,"width","px"],[4,"height","px"]],null,null,a,_t)),B._2(31,16384,null,0,rt.t,[],null,null),B._2(32,573440,null,0,dt.c,[B.B,B.k,st.a,[2,S.d]],{diameter:[0,"diameter"],strokeWidth:[1,"strokeWidth"]},null),(n()(),B._23(-1,null,["\n "])),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(35,0,null,1,4,"mat-card-footer",[["class","mat-card-footer"]],null,null,null,null,null)),B._2(36,16384,null,0,rt.t,[],null,null),B._2(37,16384,null,0,ut.d,[],null,null),(n()(),B.Y(16777216,null,null,1,null,c)),B._2(39,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,0,["\n "])),(n()(),B._23(-1,null,["\n "]))],function(n,t){var l=t.component;n(t,25,0,"Search for a book",l.query),n(t,32,0,30,3),n(t,39,0,l.error)},function(n,t){var l=t.component;n(t,14,1,[B._16(t,15)._control.errorState,B._16(t,15)._control.errorState,B._16(t,15)._canPlaceholderFloat,B._16(t,15)._control.shouldPlaceholderFloat||B._16(t,15)._shouldAlwaysFloat,B._16(t,15)._control.focused,"primary"==B._16(t,15).color,"accent"==B._16(t,15).color,"warn"==B._16(t,15).color,B._16(t,15)._shouldForward("untouched"),B._16(t,15)._shouldForward("touched"),B._16(t,15)._shouldForward("pristine"),B._16(t,15)._shouldForward("dirty"),B._16(t,15)._shouldForward("valid"),B._16(t,15)._shouldForward("invalid"),B._16(t,15)._shouldForward("pending")]),n(t,24,0,B._16(t,25).id,B._16(t,25).placeholder,B._16(t,25).disabled,B._16(t,25).required,B._16(t,25).readonly,B._16(t,25)._ariaDescribedby||null,B._16(t,25).errorState),n(t,30,0,l.searching,B._16(t,32)._elementSize,B._16(t,32)._elementSize)})}function d(n){return B._25(0,[B._18(0,K,[]),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(2,0,null,null,2,"h5",[["class","mat-subheader"],["mat-subheader",""]],null,null,null,null,null)),B._2(3,16384,null,0,bt.f,[],null,null),(n()(),B._23(-1,null,["Written By:"])),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(6,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),B._23(7,null,["\n ","\n "])),B._19(8,1),(n()(),B._23(-1,null,["\n "]))],null,function(n,t){var l=t.component;n(t,7,0,B._24(t,7,0,n(t,8,0,B._16(t,0),l.authors)))})}function f(n){return B._25(0,[(n()(),B._3(0,0,null,null,1,"img",[["class","mat-card-sm-image"],["mat-card-sm-image",""]],[[8,"src",4]],null,null,null,null)),B._2(1,16384,null,0,ut.g,[],null,null)],null,function(n,t){n(t,0,0,t.component.thumbnail)})}function p(n){return B._25(0,[(n()(),B._3(0,0,null,null,4,"mat-card-subtitle",[["class","mat-card-subtitle"]],null,null,null,null,null)),B._2(1,16384,null,0,rt.t,[],null,null),B._2(2,16384,null,0,ut.h,[],null,null),(n()(),B._23(3,null,["",""])),B._19(4,2)],null,function(n,t){var l=t.component;n(t,3,0,B._24(t,3,0,n(t,4,0,B._16(t.parent,0),l.subtitle,40)))})}function _(n){return B._25(0,[(n()(),B._3(0,0,null,null,2,"p",[],null,null,null,null,null)),(n()(),B._23(1,null,["",""])),B._19(2,1)],null,function(n,t){var l=t.component;n(t,1,0,B._24(t,1,0,n(t,2,0,B._16(t.parent,0),l.description)))})}function m(n){return B._25(0,[B._18(0,R,[]),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(2,0,null,null,41,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,l){var e=!0;return"click"===t&&(e=!1!==B._16(n,3).onClick(l.button,l.ctrlKey,l.metaKey,l.shiftKey)&&e),e},null,null)),B._2(3,671744,null,0,$.o,[$.m,$.a,S.h],{routerLink:[0,"routerLink"]},null),B._17(4,2),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(6,0,null,null,36,"mat-card",[["class","mat-card"]],null,null,null,ot.d,ot.a)),B._2(7,16384,null,0,rt.t,[],null,null),B._2(8,49152,null,0,ut.a,[],null,null),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(10,0,null,0,15,"mat-card-title-group",[["class","mat-card-title-group"]],null,null,null,ot.c,ot.b)),B._2(11,16384,null,0,rt.t,[],null,null),B._2(12,49152,null,0,ut.j,[],null,null),(n()(),B._23(-1,2,["\n "])),(n()(),B.Y(16777216,null,1,1,null,f)),B._2(15,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,2,["\n "])),(n()(),B._3(17,0,null,0,4,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),B._2(18,16384,null,0,rt.t,[],null,null),B._2(19,16384,null,0,ut.i,[],null,null),(n()(),B._23(20,null,["",""])),B._19(21,2),(n()(),B._23(-1,2,["\n "])),(n()(),B.Y(16777216,null,0,1,null,p)),B._2(24,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,2,["\n "])),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(27,0,null,0,6,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),B._2(28,16384,null,0,rt.t,[],null,null),B._2(29,16384,null,0,ut.c,[],null,null),(n()(),B._23(-1,null,["\n "])),(n()(),B.Y(16777216,null,null,1,null,_)),B._2(32,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,null,["\n "])),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(35,0,null,1,6,"mat-card-footer",[["class","mat-card-footer"]],null,null,null,null,null)),B._2(36,16384,null,0,rt.t,[],null,null),B._2(37,16384,null,0,ut.d,[],null,null),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(39,0,null,null,1,"bc-book-authors",[],null,null,null,d,ht)),B._2(40,49152,null,0,G,[],{book:[0,"book"]},null),(n()(),B._23(-1,null,["\n "])),(n()(),B._23(-1,0,["\n "])),(n()(),B._23(-1,null,["\n "])),(n()(),B._23(-1,null,["\n "]))],function(n,t){var l=t.component;n(t,3,0,n(t,4,0,"/books",l.id)),n(t,15,0,l.thumbnail),n(t,24,0,l.subtitle),n(t,32,0,l.description),n(t,40,0,l.book)},function(n,t){var l=t.component;n(t,2,0,B._16(t,3).target,B._16(t,3).href),n(t,20,0,B._24(t,20,0,n(t,21,0,B._16(t,0),l.title,35)))})}function b(n){return B._25(0,[(n()(),B._3(0,0,null,null,1,"bc-book-preview",[],null,null,null,m,gt)),B._2(1,49152,null,0,q,[],{book:[0,"book"]},null)],function(n,t){n(t,1,0,t.context.$implicit)},null)}function h(n){return B._25(0,[(n()(),B._23(-1,null,["\n "])),(n()(),B.Y(16777216,null,null,1,null,b)),B._2(2,802816,null,0,S.i,[B.M,B.J,B.q],{ngForOf:[0,"ngForOf"]},null),(n()(),B._23(-1,null,["\n "]))],function(n,t){n(t,2,0,t.component.books)},null)}function g(n){return B._25(2,[(n()(),B._23(-1,null,["\n "])),(n()(),B._3(1,0,null,null,4,"bc-book-search",[],null,[[null,"search"]],function(n,t,l){var e=!0;return"search"===t&&(e=!1!==n.component.search(l)&&e),e},s,mt)),B._2(2,49152,null,0,z,[],{query:[0,"query"],searching:[1,"searching"],error:[2,"error"]},{search:"search"}),B._18(131072,S.b,[B.h]),B._18(131072,S.b,[B.h]),B._18(131072,S.b,[B.h]),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(7,0,null,null,2,"bc-book-preview-list",[],null,null,null,h,yt)),B._2(8,49152,null,0,Y,[],{books:[0,"books"]},null),B._18(131072,S.b,[B.h]),(n()(),B._23(-1,null,["\n "]))],function(n,t){var l=t.component;n(t,2,0,B._24(t,2,0,B._16(t,3).transform(l.searchQuery$)),B._24(t,2,1,B._16(t,4).transform(l.loading$)),B._24(t,2,2,B._16(t,5).transform(l.error$))),n(t,8,0,B._24(t,8,0,B._16(t,9).transform(l.books$)))},null)}function y(n){return B._25(0,[(n()(),B._3(0,0,null,null,3,"mat-card-subtitle",[["class","mat-card-subtitle"]],null,null,null,null,null)),B._2(1,16384,null,0,rt.t,[],null,null),B._2(2,16384,null,0,ut.h,[],null,null),(n()(),B._23(3,null,["",""]))],null,function(n,t){n(t,3,0,t.component.subtitle)})}function k(n){return B._25(0,[(n()(),B._3(0,0,null,null,1,"img",[["class","mat-card-sm-image"],["mat-card-sm-image",""]],[[8,"src",4]],null,null,null,null)),B._2(1,16384,null,0,ut.g,[],null,null)],null,function(n,t){n(t,0,0,t.component.thumbnail)})}function v(n){return B._25(0,[(n()(),B._3(0,0,null,null,4,"button",[["class","mat-raised-button"],["color","warn"],["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(n,t,l){var e=!0,o=n.component;return"click"===t&&(e=!1!==o.remove.emit(o.book)&&e),e},Ot.b,Ot.a)),B._2(1,16384,null,0,rt.t,[],null,null),B._2(2,180224,null,0,jt.b,[B.B,B.k,st.a,xt.g],{color:[0,"color"]},null),B._2(3,16384,null,0,jt.f,[],null,null),(n()(),B._23(-1,0,["\n Remove Book from Collection\n "]))],function(n,t){n(t,2,0,"warn")},function(n,t){n(t,0,0,B._16(t,2).disabled||null)})}function O(n){return B._25(0,[(n()(),B._3(0,0,null,null,4,"button",[["class","mat-raised-button"],["color","primary"],["mat-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(n,t,l){var e=!0,o=n.component;return"click"===t&&(e=!1!==o.add.emit(o.book)&&e),e},Ot.b,Ot.a)),B._2(1,16384,null,0,rt.t,[],null,null),B._2(2,180224,null,0,jt.b,[B.B,B.k,st.a,xt.g],{color:[0,"color"]},null),B._2(3,16384,null,0,jt.f,[],null,null),(n()(),B._23(-1,0,["\n Add Book to Collection\n "]))],function(n,t){n(t,2,0,"primary")},function(n,t){n(t,0,0,B._16(t,2).disabled||null)})}function j(n){return B._25(0,[(n()(),B._3(0,0,null,null,45,"mat-card",[["class","mat-card"]],null,null,null,ot.d,ot.a)),B._2(1,16384,null,0,rt.t,[],null,null),B._2(2,49152,null,0,ut.a,[],null,null),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(4,0,null,0,14,"mat-card-title-group",[["class","mat-card-title-group"]],null,null,null,ot.c,ot.b)),B._2(5,16384,null,0,rt.t,[],null,null),B._2(6,49152,null,0,ut.j,[],null,null),(n()(),B._23(-1,2,["\n "])),(n()(),B._3(8,0,null,0,3,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),B._2(9,16384,null,0,rt.t,[],null,null),B._2(10,16384,null,0,ut.i,[],null,null),(n()(),B._23(11,null,["",""])),(n()(),B._23(-1,2,["\n "])),(n()(),B.Y(16777216,null,0,1,null,y)),B._2(14,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,2,["\n "])),(n()(),B.Y(16777216,null,1,1,null,k)),B._2(17,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,2,["\n "])),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(20,0,null,0,5,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),B._2(21,16384,null,0,rt.t,[],null,null),B._2(22,16384,null,0,ut.c,[],null,null),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(24,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(n()(),B._23(-1,null,["\n "])),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(27,0,null,1,6,"mat-card-footer",[["class","footer mat-card-footer"]],null,null,null,null,null)),B._2(28,16384,null,0,rt.t,[],null,null),B._2(29,16384,null,0,ut.d,[],null,null),(n()(),B._23(-1,null,["\n "])),(n()(),B._3(31,0,null,null,1,"bc-book-authors",[],null,null,null,d,ht)),B._2(32,49152,null,0,G,[],{book:[0,"book"]},null),(n()(),B._23(-1,null,["\n "])),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(35,0,null,0,9,"mat-card-actions",[["align","start"],["class","mat-card-actions"]],[[2,"mat-card-actions-align-end",null]],null,null,null,null)),B._2(36,16384,null,0,rt.t,[],null,null),B._2(37,16384,null,0,ut.b,[],{align:[0,"align"]},null),(n()(),B._23(-1,null,["\n "])),(n()(),B.Y(16777216,null,null,1,null,v)),B._2(40,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,null,["\n\n "])),(n()(),B.Y(16777216,null,null,1,null,O)),B._2(43,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,null,["\n "])),(n()(),B._23(-1,0,["\n "]))],function(n,t){var l=t.component;n(t,14,0,l.subtitle),n(t,17,0,l.thumbnail),n(t,32,0,l.book),n(t,37,0,"start"),n(t,40,0,l.inCollection),n(t,43,0,!l.inCollection)},function(n,t){var l=t.component;n(t,11,0,l.title),n(t,24,0,l.description),n(t,35,0,"end"===B._16(t,37).align)})}function x(n){return B._25(0,[(n()(),B._23(-1,null,["\n "])),(n()(),B.Y(16777216,null,null,1,null,j)),B._2(2,16384,null,0,S.j,[B.M,B.J],{ngIf:[0,"ngIf"]},null),(n()(),B._23(-1,null,["\n\n "]))],function(n,t){n(t,2,0,t.component.book)},null)}function w(n){return B._25(2,[(n()(),B._23(-1,null,["\n "])),(n()(),B._3(1,0,null,null,4,"bc-book-detail",[],null,[[null,"add"],[null,"remove"]],function(n,t,l){var e=!0,o=n.component;return"add"===t&&(e=!1!==o.addToCollection(l)&&e),"remove"===t&&(e=!1!==o.removeFromCollection(l)&&e),e},x,wt)),B._2(2,49152,null,0,T,[],{book:[0,"book"],inCollection:[1,"inCollection"]},{add:"add",remove:"remove"}),B._18(131072,S.b,[B.h]),B._18(131072,S.b,[B.h]),(n()(),B._23(-1,null,["\n "])),(n()(),B._23(-1,null,["\n "]))],function(n,t){var l=t.component;n(t,2,0,B._24(t,2,0,B._16(t,3).transform(l.book$)),B._24(t,2,1,B._16(t,4).transform(l.isSelectedBookInCollection$)))},null)}function C(n){return B._25(2,[(n()(),B._23(-1,null,["\n "])),(n()(),B._3(1,0,null,null,1,"bc-selected-book-page",[],null,null,null,w,Ct)),B._2(2,49152,null,0,tt,[F.o],null,null),(n()(),B._23(-1,null,["\n "]))],null,null)}function M(n){return B._25(2,[(n()(),B._23(-1,null,["\n "])),(n()(),B._3(1,0,null,null,8,"mat-card",[["class","mat-card"]],null,null,null,ot.d,ot.a)),B._2(2,16384,null,0,rt.t,[],null,null),B._2(3,49152,null,0,ut.a,[],null,null),(n()(),B._23(-1,0,["\n "])),(n()(),B._3(5,0,null,0,3,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),B._2(6,16384,null,0,rt.t,[],null,null),B._2(7,16384,null,0,ut.i,[],null,null),(n()(),B._23(-1,null,["My Collection"])),(n()(),B._23(-1,0,["\n "])),(n()(),B._23(-1,null,["\n\n "])),(n()(),B._3(11,0,null,null,2,"bc-book-preview-list",[],null,null,null,h,yt)),B._2(12,49152,null,0,Y,[],{books:[0,"books"]},null),B._18(131072,S.b,[B.h]),(n()(),B._23(-1,null,["\n "]))],function(n,t){var l=t.component;n(t,12,0,B._24(t,12,0,B._16(t,13).transform(l.books$)))},null)}Object.defineProperty(t,"__esModule",{value:!0});var I,B=l("LMZF"),P=l("6Xbx"),S=l("Un6q"),$=l("UHIZ"),F=l("ADVA"),L=l("Tl+Y"),A=l("0nO6"),G=function(){function n(){}return Object.defineProperty(n.prototype,"authors",{get:function(){return this.book.volumeInfo.authors},enumerable:!0,configurable:!0}),n}(),T=function(){function n(){this.add=new B.m,this.remove=new B.m}return Object.defineProperty(n.prototype,"id",{get:function(){return this.book.id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this.book.volumeInfo.title},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"subtitle",{get:function(){return this.book.volumeInfo.subtitle},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"description",{get:function(){return this.book.volumeInfo.description},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"thumbnail",{get:function(){return this.book.volumeInfo.imageLinks&&this.book.volumeInfo.imageLinks.smallThumbnail},enumerable:!0,configurable:!0}),n}(),q=function(){function n(){}return Object.defineProperty(n.prototype,"id",{get:function(){return this.book.id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this.book.volumeInfo.title},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"subtitle",{get:function(){return this.book.volumeInfo.subtitle},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"description",{get:function(){return this.book.volumeInfo.description},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"thumbnail",{get:function(){return!!this.book.volumeInfo.imageLinks&&this.book.volumeInfo.imageLinks.smallThumbnail},enumerable:!0,configurable:!0}),n}(),Y=function(){},z=(l("azLz"),l("5v8a"),l("MBEm"),function(){return function(){this.query="",this.searching=!1,this.error="",this.search=new B.m}}()),K=function(){function n(){}return n.prototype.transform=function(n){if(!n)return"Author Unknown";switch(n.length){case 0:return"Author Unknown";case 1:return n[0];case 2:return n.join(" and ");default:var t=n[n.length-1];return n.slice(0,-1).join(", ")+", and "+t}},n}(),R=function(){function n(){}return n.prototype.transform=function(n,t){void 0===t&&(t=250);var l=n.replace(/(<([^>]+)>)/gi,"");return n.length>=t?l.slice(0,t)+"...":l},n}(),X=function(){},E=(l("zjId"),function(){}),J=(l("xpf9"),l("Pic8"),l("vfw3"),l("q07K"),l("bKpL")),U=(l("1VPd"),l("IhB/")),D=l("slZm"),Z=l("+zVg"),W=l("p1F6"),V="[Book] Search",H="[Book] Search Complete",N="[Book] Search Error",Q="[Book] Load",nn="[Book] Select",tn=function(){return function(n){this.payload=n,this.type=V}}(),ln=function(){return function(n){this.payload=n,this.type=H}}(),en=function(){return function(n){this.payload=n,this.type=N}}(),on=function(){return function(n){this.payload=n,this.type=Q}}(),rn=function(){return function(n){this.payload=n,this.type=nn}}(),un=new B.o("Search Debounce"),an=new B.o("Search Scheduler"),cn=function(){function n(n,t,l,e){var o=this;this.actions$=n,this.googleBooks=t,this.debounce=l,this.scheduler=e,this.search$=this.actions$.ofType(V).debounceTime(this.debounce||300,this.scheduler||U.async).map(function(n){return n.payload}).switchMap(function(n){if(""===n)return Object(D.empty)();var t=o.actions$.ofType(V).skip(1);return o.googleBooks.searchBooks(n).takeUntil(t).map(function(n){return new ln(n)}).catch(function(n){return Object(Z.of)(new en(n))})})}return Object(P.__decorate)([Object(L.b)(),Object(P.__metadata)("design:type",J.Observable)],n.prototype,"search$",void 0),n=Object(P.__decorate)([Object(P.__param)(2,Object(B.y)()),Object(P.__param)(2,Object(B.n)(un)),Object(P.__param)(3,Object(B.y)()),Object(P.__param)(3,Object(B.n)(an))],n)}(),sn=(l("RpuY"),l("IUpl"),l("XVRg"),l("23I1")),dn="[Collection] Add Book",fn="[Collection] Add Book Success",pn="[Collection] Add Book Fail",_n="[Collection] Remove Book",mn="[Collection] Remove Book Success",bn="[Collection] Remove Book Fail",hn="[Collection] Load",gn="[Collection] Load Success",yn=function(){return function(n){this.payload=n,this.type=dn}}(),kn=function(){return function(n){this.payload=n,this.type=fn}}(),vn=function(){return function(n){this.payload=n,this.type=pn}}(),On=function(){return function(n){this.payload=n,this.type=_n}}(),jn=function(){return function(n){this.payload=n,this.type=mn}}(),xn=function(){return function(n){this.payload=n,this.type=bn}}(),wn=function(){return function(){this.type=hn}}(),Cn=function(){return function(n){this.payload=n,this.type=gn}}(),Mn=function(n){this.payload=n,this.type="[Collection] Load Fail"},In=function(){function n(n,t){var l=this;this.actions$=n,this.db=t,this.openDB$=Object(sn.defer)(function(){return l.db.open("books_app")}),this.loadCollection$=this.actions$.ofType(hn).switchMap(function(){return l.db.query("books").toArray().map(function(n){return new Cn(n)}).catch(function(n){return Object(Z.of)(new Mn(n))})}),this.addBookToCollection$=this.actions$.ofType(dn).map(function(n){return n.payload}).mergeMap(function(n){return l.db.insert("books",[n]).map(function(){return new kn(n)}).catch(function(){return Object(Z.of)(new vn(n))})}),this.removeBookFromCollection$=this.actions$.ofType(_n).map(function(n){return n.payload}).mergeMap(function(n){return l.db.executeWrite("books","delete",[n.id]).map(function(){return new jn(n)}).catch(function(){return Object(Z.of)(new xn(n))})})}return Object(P.__decorate)([Object(L.b)({dispatch:!1}),Object(P.__metadata)("design:type",J.Observable)],n.prototype,"openDB$",void 0),Object(P.__decorate)([Object(L.b)(),Object(P.__metadata)("design:type",J.Observable)],n.prototype,"loadCollection$",void 0),Object(P.__decorate)([Object(L.b)(),Object(P.__metadata)("design:type",J.Observable)],n.prototype,"addBookToCollection$",void 0),Object(P.__decorate)([Object(L.b)(),Object(P.__metadata)("design:type",J.Observable)],n.prototype,"removeBookFromCollection$",void 0),n}(),Bn=(l("5uCp"),l("gbhw"),l("eqpX"),l("ykQW"),this&&this.__assign||Object.assign||function(n){for(var t,l=1,e=arguments.length;l-1}),Nn=function(){function n(n,t,l){this.store=n,this.googleBooks=t,this.router=l}return n.prototype.waitForCollectionToLoad=function(){return this.store.select(Zn).filter(function(n){return n}).take(1)},n.prototype.hasBookInStore=function(n){return this.store.select(Yn).map(function(t){return!!t[n]}).take(1)},n.prototype.hasBookInApi=function(n){var t=this;return this.googleBooks.retrieveBook(n).map(function(n){return new on(n)}).do(function(n){return t.store.dispatch(n)}).map(function(n){return!!n}).catch(function(){return t.router.navigate(["/404"]),Object(Z.of)(!1)})},n.prototype.hasBook=function(n){var t=this;return this.hasBookInStore(n).switchMap(function(l){return l?Object(Z.of)(l):t.hasBookInApi(n)})},n.prototype.canActivate=function(n){var t=this;return this.waitForCollectionToLoad().switchMap(function(){return t.hasBook(n.params.id)})},n}(),Qn=function(){function n(n){this.store=n,this.searchQuery$=n.select(Xn).take(1),this.books$=n.select(Un),this.loading$=n.select(En),this.error$=n.select(Jn)}return n.prototype.search=function(n){this.store.dispatch(new tn(n))},n}(),nt=(l("Ozq5"),function(){function n(n,t){this.actionsSubscription=t.params.map(function(n){return new rn(n.id)}).subscribe(n)}return n.prototype.ngOnDestroy=function(){this.actionsSubscription.unsubscribe()},n}()),tt=function(){function n(n){this.store=n,this.book$=n.select(zn),this.isSelectedBookInCollection$=n.select(Hn)}return n.prototype.addToCollection=function(n){this.store.dispatch(new yn(n))},n.prototype.removeFromCollection=function(n){this.store.dispatch(new On(n))},n}(),lt=function(){function n(n){this.store=n,this.books$=n.select(Vn)}return n.prototype.ngOnInit=function(){this.store.dispatch(new wn)},n}(),et=function(){},ot=l("pvRN"),rt=l("j5BN"),ut=l("Ioj9"),it=l("ulOE"),at=l("Lpd/"),ct=l("SlD5"),st=l("V8+5"),dt=l("0bRs"),ft=l("l6RC"),pt=l("RyBE"),_t=B._1({encapsulation:2,styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:translate(-50%,-50%) rotate(-90deg);top:50%;left:50%;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.1%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.01%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.01%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.51%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],data:{}}),mt=B._1({encapsulation:0,styles:["mat-card-title[_ngcontent-%COMP%], mat-card-content[_ngcontent-%COMP%], mat-card-footer[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n }\n\n mat-card-footer[_ngcontent-%COMP%] {\n color: #FF0000;\n padding: 5px 0;\n }\n\n .mat-form-field[_ngcontent-%COMP%] {\n min-width: 300px;\n }\n\n .mat-spinner[_ngcontent-%COMP%] {\n position: relative;\n top: 10px;\n left: 10px;\n opacity: 0.0;\n padding-left: 60px; // Make room for the spinner\n }\n\n .mat-spinner.show[_ngcontent-%COMP%] {\n opacity: 1.0;\n }"],data:{}}),bt=l("dYU3"),ht=B._1({encapsulation:0,styles:["h5[_ngcontent-%COMP%] {\n margin-bottom: 5px;\n }"],data:{}}),gt=B._1({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n }\n\n [_nghost-%COMP%] a[_ngcontent-%COMP%] {\n display: flex;\n }\n\n mat-card[_ngcontent-%COMP%] {\n width: 400px;\n margin: 15px;\n display: flex;\n flex-flow: column;\n justify-content: space-between;\n }\n\n @media only screen and (max-width: 768px) {\n mat-card[_ngcontent-%COMP%] {\n margin: 15px 0 !important;\n }\n }\n mat-card[_ngcontent-%COMP%]:hover {\n box-shadow: 3px 3px 16px -2px rgba(0, 0, 0, .5);\n }\n mat-card-title[_ngcontent-%COMP%] {\n margin-right: 10px;\n }\n mat-card-title-group[_ngcontent-%COMP%] {\n margin: 0;\n }\n a[_ngcontent-%COMP%] {\n color: inherit;\n text-decoration: none;\n }\n img[_ngcontent-%COMP%] {\n width: 60px;\n min-width: 60px;\n margin-left: 5px;\n }\n mat-card-content[_ngcontent-%COMP%] {\n margin-top: 15px;\n margin: 15px 0 0;\n }\n span[_ngcontent-%COMP%] {\n display: inline-block;\n font-size: 13px;\n }\n mat-card-footer[_ngcontent-%COMP%] {\n padding: 0 25px 25px;\n }"],data:{}}),yt=B._1({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }"],data:{}}),kt=B._1({encapsulation:2,styles:[],data:{}}),vt=B.Z("bc-find-book-page",Qn,function(n){return B._25(0,[(n()(),B._3(0,0,null,null,1,"bc-find-book-page",[],null,null,null,g,kt)),B._2(1,49152,null,0,Qn,[F.o],null,null)],null,null)},{},{},[]),Ot=l("ESfO"),jt=l("ghl+"),xt=l("8Xfy"),wt=B._1({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n justify-content: center;\n margin: 75px 0;\n }\n mat-card[_ngcontent-%COMP%] {\n max-width: 600px;\n }\n mat-card-title-group[_ngcontent-%COMP%] {\n margin-left: 0;\n }\n img[_ngcontent-%COMP%] {\n width: 60px;\n min-width: 60px;\n margin-left: 5px;\n }\n mat-card-content[_ngcontent-%COMP%] {\n margin: 15px 0 50px;\n }\n mat-card-actions[_ngcontent-%COMP%] {\n margin: 25px 0 0 !important;\n }\n mat-card-footer[_ngcontent-%COMP%] {\n padding: 0 25px 25px;\n position: relative;\n }"],data:{}}),Ct=B._1({encapsulation:2,styles:[],data:{}}),Mt=B._1({encapsulation:2,styles:[],data:{}}),It=B.Z("bc-view-book-page",nt,function(n){return B._25(0,[(n()(),B._3(0,0,null,null,1,"bc-view-book-page",[],null,null,null,C,Mt)),B._2(1,180224,null,0,nt,[F.o,$.a],null,null)],null,null)},{},{},[]),Bt=B._1({encapsulation:0,styles:["mat-card-title[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n }"],data:{}}),Pt=B.Z("bc-collection-page",lt,function(n){return B._25(0,[(n()(),B._3(0,0,null,null,1,"bc-collection-page",[],null,null,null,M,Bt)),B._2(1,114688,null,0,lt,[F.o],null,null)],function(n,t){n(t,1,0)},null)},{},{},[]),St=l("4jwp"),$t=l("OFGE"),Ft=l("vgc3"),Lt=l("TMwh"),At=l("CZgk"),Gt=l("e0rv"),Tt=l("YXpL"),qt=l("6lKZ"),Yt=l("3w/j");l.d(t,"BooksModuleNgFactory",function(){return zt});var zt=B._0(et,[],function(n){return B._13([B._14(512,B.j,B.W,[[8,[vt,It,Pt]],[3,B.j],B.v]),B._14(4608,S.l,S.k,[B.s,[2,S.r]]),B._14(4608,st.a,st.a,[]),B._14(4608,rt.e,rt.e,[]),B._14(6144,ft.b,null,[pt.b]),B._14(4608,ft.c,ft.c,[[2,ft.b]]),B._14(4608,xt.i,xt.i,[st.a]),B._14(4608,xt.h,xt.h,[xt.i,st.a,B.x]),B._14(136192,xt.d,xt.b,[[3,xt.d],st.a]),B._14(5120,xt.l,xt.k,[[3,xt.l],[2,xt.j],st.a]),B._14(5120,xt.g,xt.e,[[3,xt.g],B.x,st.a]),B._14(5120,St.c,St.a,[[3,St.c],B.x,st.a]),B._14(5120,St.g,St.f,[[3,St.g],st.a,B.x,St.c]),B._14(4608,$t.e,$t.e,[St.c,St.g]),B._14(5120,$t.c,$t.f,[[3,$t.c]]),B._14(4608,$t.i,$t.i,[St.g]),B._14(4608,$t.a,$t.a,[$t.e,$t.c,B.j,$t.i,B.g,B.p,B.x]),B._14(5120,$t.g,$t.h,[$t.a]),B._14(5120,Ft.d,Ft.a,[[3,Ft.d],[2,Lt.a],pt.c]),B._14(4608,A.e,A.e,[]),B._14(4608,A.t,A.t,[]),B._14(4608,Nn,Nn,[F.o,W.a,$.m]),B._14(512,S.c,S.c,[]),B._14(512,st.b,st.b,[]),B._14(512,at.c,at.c,[]),B._14(512,ct.b,ct.b,[]),B._14(512,rt.c,rt.c,[]),B._14(512,ft.a,ft.a,[]),B._14(256,rt.f,!0,[]),B._14(512,rt.l,rt.l,[[2,rt.f]]),B._14(512,ut.f,ut.f,[]),B._14(512,rt.x,rt.x,[]),B._14(512,xt.a,xt.a,[]),B._14(512,jt.d,jt.d,[]),B._14(512,At.e,At.e,[]),B._14(512,St.b,St.b,[]),B._14(512,$t.d,$t.d,[]),B._14(512,Gt.g,Gt.g,[]),B._14(512,rt.n,rt.n,[]),B._14(512,rt.v,rt.v,[]),B._14(512,bt.d,bt.d,[]),B._14(512,Ft.c,Ft.c,[]),B._14(512,Tt.b,Tt.b,[]),B._14(512,dt.b,dt.b,[]),B._14(512,qt.a,qt.a,[]),B._14(512,A.r,A.r,[]),B._14(512,A.p,A.p,[]),B._14(512,$.p,$.p,[[2,$.v],[2,$.m]]),B._14(512,X,X,[]),B._14(512,E,E,[]),B._14(1024,F.k,function(){return[{key:"books",reducerFactory:F.C,metaReducers:[],initialState:void 0}]},[]),B._14(1024,F.t,function(){return[{search:e,books:u,collection:i}]},[]),B._14(1024,F.u,function(n){return[n]},[F.t]),B._14(1024,F.b,function(n,t,l){return[F.z(n,t,l)]},[B.p,F.t,F.u]),B._14(131584,F.p,F.p,[F.k,F.b,F.h]),B._14(512,cn,cn,[L.a,W.a,[2,un],[2,an]]),B._14(512,In,In,[L.a,Yt.b]),B._14(1024,L.i,function(n,t){return[L.d(n,t)]},[cn,In]),B._14(512,L.g,L.g,[L.f,L.i,[2,F.q]]),B._14(512,et,et,[]),B._14(1024,$.k,function(){return[[{path:"find",component:Qn},{path:":id",component:nt,canActivate:[Nn]},{path:"",component:lt}]]},[])])})}}); \ No newline at end of file diff --git a/example-app/3rdpartylicenses.txt b/example-app/3rdpartylicenses.txt index 0bafd40503..d9e22664ac 100644 --- a/example-app/3rdpartylicenses.txt +++ b/example-app/3rdpartylicenses.txt @@ -1,8 +1,6 @@ -@angular/material@2.0.0-beta.12 +core-js MIT -The MIT License - -Copyright (c) 2017 Google, Inc. +Copyright (c) 2014-2018 Denis Pushkarev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -22,15 +20,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@angular/animations@5.0.1 -MIT -MIT -@angular/cdk@2.0.0-beta.12 +zone.js MIT The MIT License -Copyright (c) 2017 Google, Inc. +Copyright (c) 2016-2018 Google, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -50,35 +45,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@angular/common@5.0.1 -MIT -MIT - -@angular/core@5.0.1 -MIT -MIT - -@angular/forms@5.0.1 -MIT -MIT - -@angular/http@5.0.1 -MIT -MIT - -@angular/platform-browser@5.0.1 -MIT -MIT - -@angular/router@5.0.1 -MIT -MIT -@ngrx/db@2.1.0 +hammerjs MIT The MIT License (MIT) -Copyright (c) 2015 ngrx +Copyright (C) 2011-2014 by Jorik Tangelder (Eight Media) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -87,92 +59,312 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -@ngrx/effects@4.1.1 + +@ngrx/store MIT -The MIT License (MIT) -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald +deep-freeze-strict +public domain +This software is released to the public domain. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +It is based in part on the deepFreeze function from: +https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/freeze -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +https://developer.mozilla.org/en-US/docs/Project:Copyrights -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -@ngrx/store-devtools@4.1.1 -MIT -The MIT License (MIT) +tslib +Apache-2.0 +Apache License -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald +Version 2.0, January 2004 -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +http://www.apache.org/licenses/ -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +1. Definitions. -@ngrx/store@4.1.1 -MIT -The MIT License (MIT) +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. -Copyright (c) 2017 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. -core-js@2.4.1 +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +@angular/forms +MIT + +@angular/platform-browser +MIT + +@angular/common +MIT + +@angular/material/card + +@angular/material MIT -Copyright (c) 2014-2016 Denis Pushkarev +The MIT License + +Copyright (c) 2018 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -192,11 +384,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -hammerjs@2.0.8 + +@angular/cdk MIT -The MIT License (MIT) +The MIT License -Copyright (C) 2011-2014 by Jorik Tangelder (Eight Media) +Copyright (c) 2018 Google LLC. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -216,11 +409,19 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -ngrx-store-freeze@0.2.0 + +@angular/material/form-field + +@angular/animations +MIT + +@angular/material/button + +@ngrx/db MIT The MIT License (MIT) -Copyright (c) 2017 Brandon Roberts +Copyright (c) 2015 ngrx Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -240,49 +441,41 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -webpack@3.8.1 + + +@ngrx/effects MIT -Copyright JS Foundation and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -zone.js@0.8.12 + +@angular/material/dialog + +@angular/router MIT -The MIT License -Copyright (c) 2016 Google, Inc. +@ngrx/store-devtools +MIT -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +@ngrx/router-store +MIT -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +ngrx-store-freeze -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file +@angular/material/core + +@angular/material/list + +@angular/material/icon + +@angular/material/sidenav + +@angular/material/toolbar + +@angular/core +MIT + +@angular/compiler +MIT + +@angular/material/progress-spinner + +@ngrx/entity +MIT diff --git a/example-app/4.4d362735ef8201a05455.js b/example-app/4.4d362735ef8201a05455.js new file mode 100644 index 0000000000..bbdfa76f82 --- /dev/null +++ b/example-app/4.4d362735ef8201a05455.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{xV2a:function(n,t,e){"use strict";e.r(t);var o={};e.r(o),e.d(o,"BookActionTypes",function(){return U}),e.d(o,"LoadBook",function(){return on});var l={};e.r(l),e.d(l,"BooksApiActionTypes",function(){return en}),e.d(l,"SearchSuccess",function(){return rn}),e.d(l,"SearchFailure",function(){return un});var r={};e.r(r),e.d(r,"CollectionApiActionTypes",function(){return ln}),e.d(r,"AddBookSuccess",function(){return cn}),e.d(r,"AddBookFailure",function(){return sn}),e.d(r,"RemoveBookSuccess",function(){return bn}),e.d(r,"RemoveBookFailure",function(){return dn}),e.d(r,"LoadBooksSuccess",function(){return pn}),e.d(r,"LoadBooksFailure",function(){return fn});var i={};e.r(i),e.d(i,"CollectionPageActionTypes",function(){return an}),e.d(i,"LoadCollection",function(){return hn});var u={};e.r(u),e.d(u,"FindBookPageActionTypes",function(){return mn}),e.d(u,"SearchBooks",function(){return kn});var a={};e.r(a),e.d(a,"SelectedBookPageActionTypes",function(){return gn}),e.d(a,"AddBook",function(){return vn}),e.d(a,"RemoveBook",function(){return On});var c={};e.r(c),e.d(c,"ViewBookPageActionTypes",function(){return yn}),e.d(c,"SelectBook",function(){return Bn});var s=e("CcnG"),b=function(){return function(){}}(),d=e("t68o"),p=e("pMnS"),f=e("lzlj"),m=e("FVSy"),h=e("dJrM"),g=e("seP3"),k=e("Wf4p"),y=e("Fzqc"),v=e("dWZg"),O=e("wFw1"),B=e("b716"),j=e("gIcY"),x=e("/VYK"),C=e("Blfk"),w=e("Ip0R"),I=e("ZYjt"),P=s.ob({encapsulation:2,styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],data:{}});function S(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,0,":svg:circle",[["cx","50%"],["cy","50%"]],[[1,"r",0],[4,"animation-name",null],[4,"stroke-dashoffset","px"],[4,"stroke-dasharray","px"],[4,"stroke-width","%"]],null,null,null,null))],null,function(n,t){var e=t.component;n(t,0,0,e._circleRadius,"mat-progress-spinner-stroke-rotate-"+e.diameter,e._strokeDashOffset,e._strokeCircumference,e._circleStrokeWidth)})}function A(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,0,":svg:circle",[["cx","50%"],["cy","50%"]],[[1,"r",0],[4,"stroke-dashoffset","px"],[4,"stroke-dasharray","px"],[4,"stroke-width","%"]],null,null,null,null))],null,function(n,t){var e=t.component;n(t,0,0,e._circleRadius,e._strokeDashOffset,e._strokeCircumference,e._circleStrokeWidth)})}function _(n){return s.Ib(2,[(n()(),s.qb(0,0,null,null,5,":svg:svg",[["focusable","false"],["preserveAspectRatio","xMidYMid meet"]],[[4,"width","px"],[4,"height","px"],[1,"viewBox",0]],null,null,null,null)),s.pb(1,16384,null,0,w.m,[],{ngSwitch:[0,"ngSwitch"]},null),(n()(),s.hb(16777216,null,null,1,null,S)),s.pb(3,278528,null,0,w.n,[s.P,s.M,w.m],{ngSwitchCase:[0,"ngSwitchCase"]},null),(n()(),s.hb(16777216,null,null,1,null,A)),s.pb(5,278528,null,0,w.n,[s.P,s.M,w.m],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(n,t){n(t,1,0,"indeterminate"===t.component.mode),n(t,3,0,!0),n(t,5,0,!1)},function(n,t){var e=t.component;n(t,0,0,e.diameter,e.diameter,e._viewBox)})}var q=function(){return function(){this.query="",this.searching=!1,this.error="",this.search=new s.m}}(),M=s.ob({encapsulation:0,styles:["mat-card-title[_ngcontent-%COMP%], mat-card-content[_ngcontent-%COMP%], mat-card-footer[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n }\n\n mat-card-footer[_ngcontent-%COMP%] {\n color: #ff0000;\n padding: 5px 0;\n }\n\n .mat-form-field[_ngcontent-%COMP%] {\n min-width: 300px;\n margin-right: 10px; // Make room for the spinner\n }\n\n .mat-spinner[_ngcontent-%COMP%] {\n position: relative;\n top: 10px;\n left: 10px;\n visibility: hidden;\n }\n\n .mat-spinner.show[_ngcontent-%COMP%] {\n visibility: visible;\n }"],data:{}});function z(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,1,"span",[],null,null,null,null,null)),(n()(),s.Gb(1,null,["",""]))],null,function(n,t){n(t,1,0,t.component.error)})}function F(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,24,"mat-card",[["class","mat-card"]],null,null,null,f.d,f.a)),s.pb(1,49152,null,0,m.a,[],null,null),(n()(),s.qb(2,0,null,0,2,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),s.pb(3,16384,null,0,m.i,[],null,null),(n()(),s.Gb(-1,null,["Find a Book"])),(n()(),s.qb(5,0,null,0,15,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),s.pb(6,16384,null,0,m.c,[],null,null),(n()(),s.qb(7,0,null,null,11,"mat-form-field",[["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,h.b,h.a)),s.pb(8,7389184,null,7,g.b,[s.k,s.h,[2,k.f],[2,y.b],[2,g.a],v.a,s.z,[2,O.a]],null,null),s.Eb(335544320,1,{_control:0}),s.Eb(335544320,2,{_placeholderChild:0}),s.Eb(335544320,3,{_labelChild:0}),s.Eb(603979776,4,{_errorChildren:1}),s.Eb(603979776,5,{_hintChildren:1}),s.Eb(603979776,6,{_prefixChildren:1}),s.Eb(603979776,7,{_suffixChildren:1}),(n()(),s.qb(16,0,null,1,2,"input",[["class","mat-input-element mat-form-field-autofill-control"],["matInput",""],["placeholder","Search for a book"]],[[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"keyup"],[null,"blur"],[null,"focus"],[null,"input"]],function(n,t,e){var o=!0,l=n.component;return"blur"===t&&(o=!1!==s.zb(n,17)._focusChanged(!1)&&o),"focus"===t&&(o=!1!==s.zb(n,17)._focusChanged(!0)&&o),"input"===t&&(o=!1!==s.zb(n,17)._onInput()&&o),"keyup"===t&&(o=!1!==l.search.emit(e.target.value)&&o),o},null,null)),s.pb(17,999424,null,0,B.a,[s.k,v.a,[8,null],[2,j.m],[2,j.h],k.b,[8,null],x.a,s.z],{placeholder:[0,"placeholder"],value:[1,"value"]},null),s.Db(2048,[[1,4]],g.c,null,[B.a]),(n()(),s.qb(19,0,null,null,1,"mat-spinner",[["class","mat-spinner mat-progress-spinner"],["mode","indeterminate"],["role","progressbar"]],[[2,"show",null],[2,"_mat-animation-noopable",null],[4,"width","px"],[4,"height","px"]],null,null,_,P)),s.pb(20,49152,null,0,C.d,[s.k,v.a,[2,w.d],[2,O.a],C.a],{diameter:[0,"diameter"],strokeWidth:[1,"strokeWidth"]},null),(n()(),s.qb(21,0,null,1,3,"mat-card-footer",[["class","mat-card-footer"]],null,null,null,null,null)),s.pb(22,16384,null,0,m.d,[],null,null),(n()(),s.hb(16777216,null,null,1,null,z)),s.pb(24,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null)],function(n,t){var e=t.component;n(t,17,0,"Search for a book",e.query),n(t,20,0,30,3),n(t,24,0,e.error)},function(n,t){var e=t.component;n(t,7,1,["standard"==s.zb(t,8).appearance,"fill"==s.zb(t,8).appearance,"outline"==s.zb(t,8).appearance,"legacy"==s.zb(t,8).appearance,s.zb(t,8)._control.errorState,s.zb(t,8)._canLabelFloat,s.zb(t,8)._shouldLabelFloat(),s.zb(t,8)._hideControlPlaceholder(),s.zb(t,8)._control.disabled,s.zb(t,8)._control.autofilled,s.zb(t,8)._control.focused,"accent"==s.zb(t,8).color,"warn"==s.zb(t,8).color,s.zb(t,8)._shouldForward("untouched"),s.zb(t,8)._shouldForward("touched"),s.zb(t,8)._shouldForward("pristine"),s.zb(t,8)._shouldForward("dirty"),s.zb(t,8)._shouldForward("valid"),s.zb(t,8)._shouldForward("invalid"),s.zb(t,8)._shouldForward("pending"),!s.zb(t,8)._animationsEnabled]),n(t,16,0,s.zb(t,17)._isServer,s.zb(t,17).id,s.zb(t,17).placeholder,s.zb(t,17).disabled,s.zb(t,17).required,s.zb(t,17).readonly&&!s.zb(t,17)._isNativeSelect||null,s.zb(t,17)._ariaDescribedby||null,s.zb(t,17).errorState,s.zb(t,17).required.toString()),n(t,19,0,e.searching,s.zb(t,20)._noopAnimations,s.zb(t,20).diameter,s.zb(t,20).diameter)})}var T=function(){function n(){}return n.prototype.transform=function(n,t){void 0===t&&(t=250);var e=n.replace(/(<([^>]+)>)/gi,"");return n.length>=t?e.slice(0,t)+"...":e},n}(),L=e("ZYCi"),$=function(){function n(){}return n.prototype.transform=function(n){if(!n)return"Author Unknown";switch(n.length){case 0:return"Author Unknown";case 1:return n[0];case 2:return n.join(" and ");default:var t=n[n.length-1];return n.slice(0,-1).join(", ")+", and "+t}},n}(),N=e("0/Q6"),R=function(){function n(){}return Object.defineProperty(n.prototype,"authors",{get:function(){return this.book.volumeInfo.authors},enumerable:!0,configurable:!0}),n}(),E=s.ob({encapsulation:0,styles:["h5[_ngcontent-%COMP%] {\n margin-bottom: 5px;\n }"],data:{}});function G(n){return s.Ib(0,[s.Bb(0,$,[]),(n()(),s.qb(1,0,null,null,2,"h5",[["class","mat-subheader"],["mat-subheader",""]],null,null,null,null,null)),s.pb(2,16384,null,0,N.f,[],null,null),(n()(),s.Gb(-1,null,["Written By:"])),(n()(),s.qb(4,0,null,null,2,"span",[],null,null,null,null,null)),(n()(),s.Gb(5,null,[" "," "])),s.Cb(6,1)],null,function(n,t){var e=t.component,o=s.Hb(t,5,0,n(t,6,0,s.zb(t,0),e.authors));n(t,5,0,o)})}var H=function(){function n(){}return Object.defineProperty(n.prototype,"id",{get:function(){return this.book.id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this.book.volumeInfo.title},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"subtitle",{get:function(){return this.book.volumeInfo.subtitle},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"description",{get:function(){return this.book.volumeInfo.description},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"thumbnail",{get:function(){return!!this.book.volumeInfo.imageLinks&&this.book.volumeInfo.imageLinks.smallThumbnail.replace("http:","")},enumerable:!0,configurable:!0}),n}(),X=s.ob({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n }\n\n [_nghost-%COMP%] a[_ngcontent-%COMP%] {\n display: flex;\n }\n\n mat-card[_ngcontent-%COMP%] {\n width: 400px;\n margin: 15px;\n display: flex;\n flex-flow: column;\n justify-content: space-between;\n }\n\n @media only screen and (max-width: 768px) {\n mat-card[_ngcontent-%COMP%] {\n margin: 15px 0 !important;\n }\n }\n mat-card[_ngcontent-%COMP%]:hover {\n box-shadow: 3px 3px 16px -2px rgba(0, 0, 0, 0.5);\n }\n mat-card-title[_ngcontent-%COMP%] {\n margin-right: 10px;\n }\n mat-card-title-group[_ngcontent-%COMP%] {\n margin: 0;\n }\n a[_ngcontent-%COMP%] {\n color: inherit;\n text-decoration: none;\n }\n img[_ngcontent-%COMP%] {\n width: 60px;\n min-width: 60px;\n margin-left: 5px;\n }\n mat-card-content[_ngcontent-%COMP%] {\n margin-top: 15px;\n margin: 15px 0 0;\n }\n span[_ngcontent-%COMP%] {\n display: inline-block;\n font-size: 13px;\n }\n mat-card-footer[_ngcontent-%COMP%] {\n padding: 0 25px 25px;\n }"],data:{}});function D(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,1,"img",[["class","mat-card-sm-image"],["mat-card-sm-image",""]],[[8,"src",4]],null,null,null,null)),s.pb(1,16384,null,0,m.g,[],null,null)],null,function(n,t){n(t,0,0,t.component.thumbnail)})}function W(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,3,"mat-card-subtitle",[["class","mat-card-subtitle"]],null,null,null,null,null)),s.pb(1,16384,null,0,m.h,[],null,null),(n()(),s.Gb(2,null,["",""])),s.Cb(3,2)],null,function(n,t){var e=t.component,o=s.Hb(t,2,0,n(t,3,0,s.zb(t.parent,0),e.subtitle,40));n(t,2,0,o)})}function Y(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,2,"p",[],null,null,null,null,null)),(n()(),s.Gb(1,null,["",""])),s.Cb(2,1)],null,function(n,t){var e=t.component,o=s.Hb(t,1,0,n(t,2,0,s.zb(t.parent,0),e.description));n(t,1,0,o)})}function Z(n){return s.Ib(0,[s.Bb(0,T,[]),(n()(),s.qb(1,0,null,null,22,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(n,t,e){var o=!0;return"click"===t&&(o=!1!==s.zb(n,2).onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)&&o),o},null,null)),s.pb(2,671744,null,0,L.q,[L.o,L.a,w.h],{routerLink:[0,"routerLink"]},null),s.Ab(3,2),(n()(),s.qb(4,0,null,null,19,"mat-card",[["class","mat-card"]],null,null,null,f.d,f.a)),s.pb(5,49152,null,0,m.a,[],null,null),(n()(),s.qb(6,0,null,0,9,"mat-card-title-group",[["class","mat-card-title-group"]],null,null,null,f.c,f.b)),s.pb(7,49152,null,0,m.j,[],null,null),(n()(),s.hb(16777216,null,1,1,null,D)),s.pb(9,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null),(n()(),s.qb(10,0,null,0,3,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),s.pb(11,16384,null,0,m.i,[],null,null),(n()(),s.Gb(12,null,["",""])),s.Cb(13,2),(n()(),s.hb(16777216,null,0,1,null,W)),s.pb(15,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null),(n()(),s.qb(16,0,null,0,3,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),s.pb(17,16384,null,0,m.c,[],null,null),(n()(),s.hb(16777216,null,null,1,null,Y)),s.pb(19,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null),(n()(),s.qb(20,0,null,1,3,"mat-card-footer",[["class","mat-card-footer"]],null,null,null,null,null)),s.pb(21,16384,null,0,m.d,[],null,null),(n()(),s.qb(22,0,null,null,1,"bc-book-authors",[],null,null,null,G,E)),s.pb(23,49152,null,0,R,[],{book:[0,"book"]},null)],function(n,t){var e=t.component,o=n(t,3,0,"/books",e.id);n(t,2,0,o),n(t,9,0,e.thumbnail),n(t,15,0,e.subtitle),n(t,19,0,e.description),n(t,23,0,e.book)},function(n,t){var e=t.component;n(t,1,0,s.zb(t,2).target,s.zb(t,2).href);var o=s.Hb(t,12,0,n(t,13,0,s.zb(t,0),e.title,35));n(t,12,0,o)})}var V=function(){return function(){}}(),J=s.ob({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n }"],data:{}});function K(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,1,"bc-book-preview",[],null,null,null,Z,X)),s.pb(1,49152,null,0,H,[],{book:[0,"book"]},null)],function(n,t){n(t,1,0,t.context.$implicit)},null)}function Q(n){return s.Ib(0,[(n()(),s.hb(16777216,null,null,1,null,K)),s.pb(1,278528,null,0,w.i,[s.P,s.M,s.s],{ngForOf:[0,"ngForOf"]},null)],function(n,t){n(t,1,0,t.component.books)},null)}var U,nn=e("bUQ0"),tn=e("t9fZ");!function(n){n.LoadBook="[Book Exists Guard] Load Book"}(U||(U={}));var en,on=function(){return function(n){this.payload=n,this.type=U.LoadBook}}();!function(n){n.SearchSuccess="[Books/API] Search Success",n.SearchFailure="[Books/API] Search Failure"}(en||(en={}));var ln,rn=function(){return function(n){this.payload=n,this.type=en.SearchSuccess}}(),un=function(){return function(n){this.payload=n,this.type=en.SearchFailure}}();!function(n){n.AddBookSuccess="[Collection/API] Add Book Success",n.AddBookFailure="[Collection/API] Add Book Failure",n.RemoveBookSuccess="[Collection/API] Remove Book Success",n.RemoveBookFailure="[Collection/API] Remove Book Failure",n.LoadBooksSuccess="[Collection/API] Load Books Success",n.LoadBooksFailure="[Collection/API] Load Books Failure"}(ln||(ln={}));var an,cn=function(){return function(n){this.payload=n,this.type=ln.AddBookSuccess}}(),sn=function(){return function(n){this.payload=n,this.type=ln.AddBookFailure}}(),bn=function(){return function(n){this.payload=n,this.type=ln.RemoveBookSuccess}}(),dn=function(){return function(n){this.payload=n,this.type=ln.RemoveBookFailure}}(),pn=function(){return function(n){this.payload=n,this.type=ln.LoadBooksSuccess}}(),fn=function(){return function(n){this.payload=n,this.type=ln.LoadBooksFailure}}();!function(n){n.LoadCollection="[Collection Page] Load Collection"}(an||(an={}));var mn,hn=function(){return function(){this.type=an.LoadCollection}}();!function(n){n.SearchBooks="[Find Book Page] Search Books"}(mn||(mn={}));var gn,kn=function(){return function(n){this.payload=n,this.type=mn.SearchBooks}}();!function(n){n.AddBook="[Selected Book Page] Add Book",n.RemoveBook="[Selected Book Page] Remove Book"}(gn||(gn={}));var yn,vn=function(){return function(n){this.payload=n,this.type=gn.AddBook}}(),On=function(){return function(n){this.payload=n,this.type=gn.RemoveBook}}();!function(n){n.SelectBook="[View Book Page] Select Book"}(yn||(yn={}));var Bn=function(){return function(n){this.payload=n,this.type=yn.SelectBook}}(),jn=e("wvrL"),xn=function(){return(xn=Object.assign||function(n){for(var t,e=1,o=arguments.length;e0;return e&&(t.ids=t.ids.filter(function(n){return n in t.entities})),e?Pn.Both:Pn.None}function l(t,e){var o={};return(t=t.filter(function(n){return n.id in e.entities})).length>0?t.filter(function(t){return function(t,e,o){var l=Object.assign({},o.entities[e.id],e.changes),r=An(l,n),i=r!==e.id;return i&&(t[e.id]=r,delete o.entities[e.id]),o.entities[r]=l,i}(o,t,e)}).length>0?(e.ids=e.ids.map(function(n){return o[n]||n}),Pn.Both):Pn.EntitiesOnly:Pn.None}function r(t,o){for(var r=[],i=[],u=0,a=t;u0;if(0===o.length)return Pn.None;var r=e.ids,u=[];return e.ids=e.ids.filter(function(n,t){return n in e.entities||(u.push(t),!1)}),i(o,e),!l&&u.every(function(n){return e.ids[n]===r[n]})?Pn.EntitiesOnly:Pn.Both}function r(t,e){for(var r=[],i=[],u=0,a=t;u-1?n:Ln({},n,{ids:n.ids.concat([t.payload.id])});case r.CollectionApiActionTypes.RemoveBookSuccess:case r.CollectionApiActionTypes.AddBookFailure:return Ln({},n,{ids:n.ids.filter(function(n){return n!==t.payload.id})});default:return n}}var Rn=Object(jn.a)("books"),En=Object(jn.b)(Rn,function(n){return n.books}),Gn=Object(jn.b)(En,function(n){return n.selectedBookId}),Hn=zn.getSelectors(En).selectEntities,Xn=Object(jn.b)(Hn,Gn,function(n,t){return t&&n[t]}),Dn=Object(jn.b)(Rn,function(n){return n.search}),Wn=Object(jn.b)(Dn,function(n){return n.ids}),Yn=Object(jn.b)(Dn,function(n){return n.query}),Zn=Object(jn.b)(Dn,function(n){return n.loading}),Vn=Object(jn.b)(Dn,function(n){return n.error}),Jn=Object(jn.b)(Hn,Wn,function(n,t){return t.map(function(t){return n[t]})}),Kn=Object(jn.b)(Rn,function(n){return n.collection}),Qn=Object(jn.b)(Kn,function(n){return n.loaded}),Un=(Object(jn.b)(Kn,function(n){return n.loading}),Object(jn.b)(Kn,function(n){return n.ids})),nt=Object(jn.b)(Hn,Un,function(n,t){return t.map(function(t){return n[t]})}),tt=Object(jn.b)(Un,Gn,function(n,t){return t&&n.indexOf(t)>-1}),et=function(){function n(n){this.store=n,this.searchQuery$=n.pipe(Object(nn.c)(Yn),Object(tn.a)(1)),this.books$=n.pipe(Object(nn.c)(Jn)),this.loading$=n.pipe(Object(nn.c)(Zn)),this.error$=n.pipe(Object(nn.c)(Vn))}return n.prototype.search=function(n){this.store.dispatch(new u.SearchBooks(n))},n}(),ot=s.ob({encapsulation:2,styles:[],data:{}});function lt(n){return s.Ib(2,[(n()(),s.qb(0,0,null,null,4,"bc-book-search",[],null,[[null,"search"]],function(n,t,e){var o=!0;return"search"===t&&(o=!1!==n.component.search(e)&&o),o},F,M)),s.pb(1,49152,null,0,q,[],{query:[0,"query"],searching:[1,"searching"],error:[2,"error"]},{search:"search"}),s.Bb(131072,w.b,[s.h]),s.Bb(131072,w.b,[s.h]),s.Bb(131072,w.b,[s.h]),(n()(),s.qb(5,0,null,null,2,"bc-book-preview-list",[],null,null,null,Q,J)),s.pb(6,49152,null,0,V,[],{books:[0,"books"]},null),s.Bb(131072,w.b,[s.h])],function(n,t){var e=t.component;n(t,1,0,s.Hb(t,1,0,s.zb(t,2).transform(e.searchQuery$)),s.Hb(t,1,1,s.zb(t,3).transform(e.loading$)),s.Hb(t,1,2,s.zb(t,4).transform(e.error$))),n(t,6,0,s.Hb(t,6,0,s.zb(t,7).transform(e.books$)))},null)}function rt(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,1,"bc-find-book-page",[],null,null,null,lt,ot)),s.pb(1,49152,null,0,et,[nn.b],null,null)],null,null)}var it=s.mb("bc-find-book-page",et,rt,{},{},[]),ut=e("bujt"),at=e("UodH"),ct=e("lLAP"),st=function(){function n(){this.add=new s.m,this.remove=new s.m}return Object.defineProperty(n.prototype,"id",{get:function(){return this.book.id},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"title",{get:function(){return this.book.volumeInfo.title},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"subtitle",{get:function(){return this.book.volumeInfo.subtitle},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"description",{get:function(){return this.book.volumeInfo.description},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"thumbnail",{get:function(){return this.book.volumeInfo.imageLinks&&this.book.volumeInfo.imageLinks.smallThumbnail&&this.book.volumeInfo.imageLinks.smallThumbnail.replace("http:","")},enumerable:!0,configurable:!0}),n}(),bt=s.ob({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: flex;\n justify-content: center;\n margin: 75px 0;\n }\n mat-card[_ngcontent-%COMP%] {\n max-width: 600px;\n }\n mat-card-title-group[_ngcontent-%COMP%] {\n margin-left: 0;\n }\n img[_ngcontent-%COMP%] {\n width: 60px;\n min-width: 60px;\n margin-left: 5px;\n }\n mat-card-content[_ngcontent-%COMP%] {\n margin: 15px 0 50px;\n }\n mat-card-actions[_ngcontent-%COMP%] {\n margin: 25px 0 0 !important;\n }\n mat-card-footer[_ngcontent-%COMP%] {\n padding: 0 25px 25px;\n position: relative;\n }"],data:{}});function dt(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,2,"mat-card-subtitle",[["class","mat-card-subtitle"]],null,null,null,null,null)),s.pb(1,16384,null,0,m.h,[],null,null),(n()(),s.Gb(2,null,["",""]))],null,function(n,t){n(t,2,0,t.component.subtitle)})}function pt(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,1,"img",[["class","mat-card-sm-image"],["mat-card-sm-image",""]],[[8,"src",4]],null,null,null,null)),s.pb(1,16384,null,0,m.g,[],null,null)],null,function(n,t){n(t,0,0,t.component.thumbnail)})}function ft(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,2,"button",[["color","warn"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(n,t,e){var o=!0,l=n.component;return"click"===t&&(o=!1!==l.remove.emit(l.book)&&o),o},ut.b,ut.a)),s.pb(1,180224,null,0,at.b,[s.k,v.a,ct.b,[2,O.a]],{color:[0,"color"]},null),(n()(),s.Gb(-1,0,[" Remove Book from Collection "]))],function(n,t){n(t,1,0,"warn")},function(n,t){n(t,0,0,s.zb(t,1).disabled||null,"NoopAnimations"===s.zb(t,1)._animationMode)})}function mt(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,2,"button",[["color","primary"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(n,t,e){var o=!0,l=n.component;return"click"===t&&(o=!1!==l.add.emit(l.book)&&o),o},ut.b,ut.a)),s.pb(1,180224,null,0,at.b,[s.k,v.a,ct.b,[2,O.a]],{color:[0,"color"]},null),(n()(),s.Gb(-1,0,[" Add Book to Collection "]))],function(n,t){n(t,1,0,"primary")},function(n,t){n(t,0,0,s.zb(t,1).disabled||null,"NoopAnimations"===s.zb(t,1)._animationMode)})}function ht(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,23,"mat-card",[["class","mat-card"]],null,null,null,f.d,f.a)),s.pb(1,49152,null,0,m.a,[],null,null),(n()(),s.qb(2,0,null,0,8,"mat-card-title-group",[["class","mat-card-title-group"]],null,null,null,f.c,f.b)),s.pb(3,49152,null,0,m.j,[],null,null),(n()(),s.qb(4,0,null,0,2,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),s.pb(5,16384,null,0,m.i,[],null,null),(n()(),s.Gb(6,null,["",""])),(n()(),s.hb(16777216,null,0,1,null,dt)),s.pb(8,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null),(n()(),s.hb(16777216,null,1,1,null,pt)),s.pb(10,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null),(n()(),s.qb(11,0,null,0,2,"mat-card-content",[["class","mat-card-content"]],null,null,null,null,null)),s.pb(12,16384,null,0,m.c,[],null,null),(n()(),s.qb(13,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(n()(),s.qb(14,0,null,1,3,"mat-card-footer",[["class","footer mat-card-footer"]],null,null,null,null,null)),s.pb(15,16384,null,0,m.d,[],null,null),(n()(),s.qb(16,0,null,null,1,"bc-book-authors",[],null,null,null,G,E)),s.pb(17,49152,null,0,R,[],{book:[0,"book"]},null),(n()(),s.qb(18,0,null,0,5,"mat-card-actions",[["align","start"],["class","mat-card-actions"]],[[2,"mat-card-actions-align-end",null]],null,null,null,null)),s.pb(19,16384,null,0,m.b,[],{align:[0,"align"]},null),(n()(),s.hb(16777216,null,null,1,null,ft)),s.pb(21,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null),(n()(),s.hb(16777216,null,null,1,null,mt)),s.pb(23,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null)],function(n,t){var e=t.component;n(t,8,0,e.subtitle),n(t,10,0,e.thumbnail),n(t,17,0,e.book),n(t,19,0,"start"),n(t,21,0,e.inCollection),n(t,23,0,!e.inCollection)},function(n,t){var e=t.component;n(t,6,0,e.title),n(t,13,0,e.description),n(t,18,0,"end"===s.zb(t,19).align)})}function gt(n){return s.Ib(0,[(n()(),s.hb(16777216,null,null,1,null,ht)),s.pb(1,16384,null,0,w.j,[s.P,s.M],{ngIf:[0,"ngIf"]},null)],function(n,t){n(t,1,0,t.component.book)},null)}var kt=function(){function n(n){this.store=n,this.book$=n.pipe(Object(nn.c)(Xn)),this.isSelectedBookInCollection$=n.pipe(Object(nn.c)(tt))}return n.prototype.addToCollection=function(n){this.store.dispatch(new a.AddBook(n))},n.prototype.removeFromCollection=function(n){this.store.dispatch(new a.RemoveBook(n))},n}(),yt=s.ob({encapsulation:2,styles:[],data:{}});function vt(n){return s.Ib(2,[(n()(),s.qb(0,0,null,null,3,"bc-book-detail",[],null,[[null,"add"],[null,"remove"]],function(n,t,e){var o=!0,l=n.component;return"add"===t&&(o=!1!==l.addToCollection(e)&&o),"remove"===t&&(o=!1!==l.removeFromCollection(e)&&o),o},gt,bt)),s.pb(1,49152,null,0,st,[],{book:[0,"book"],inCollection:[1,"inCollection"]},{add:"add",remove:"remove"}),s.Bb(131072,w.b,[s.h]),s.Bb(131072,w.b,[s.h])],function(n,t){var e=t.component;n(t,1,0,s.Hb(t,1,0,s.zb(t,2).transform(e.book$)),s.Hb(t,1,1,s.zb(t,3).transform(e.isSelectedBookInCollection$)))},null)}var Ot=e("67Y/"),Bt=function(){function n(n,t){this.actionsSubscription=t.params.pipe(Object(Ot.a)(function(n){return new c.SelectBook(n.id)})).subscribe(n)}return n.prototype.ngOnDestroy=function(){this.actionsSubscription.unsubscribe()},n}(),jt=s.ob({encapsulation:2,styles:[],data:{}});function xt(n){return s.Ib(2,[(n()(),s.qb(0,0,null,null,1,"bc-selected-book-page",[],null,null,null,vt,yt)),s.pb(1,49152,null,0,kt,[nn.b],null,null)],null,null)}function Ct(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,1,"bc-view-book-page",[],null,null,null,xt,jt)),s.pb(1,180224,null,0,Bt,[nn.b,L.a],null,null)],null,null)}var wt=s.mb("bc-view-book-page",Bt,Ct,{},{},[]),It=function(){function n(n){this.store=n,this.books$=n.pipe(Object(nn.c)(nt))}return n.prototype.ngOnInit=function(){this.store.dispatch(new i.LoadCollection)},n}(),Pt=s.ob({encapsulation:0,styles:["mat-card-title[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n }"],data:{}});function St(n){return s.Ib(2,[(n()(),s.qb(0,0,null,null,4,"mat-card",[["class","mat-card"]],null,null,null,f.d,f.a)),s.pb(1,49152,null,0,m.a,[],null,null),(n()(),s.qb(2,0,null,0,2,"mat-card-title",[["class","mat-card-title"]],null,null,null,null,null)),s.pb(3,16384,null,0,m.i,[],null,null),(n()(),s.Gb(-1,null,["My Collection"])),(n()(),s.qb(5,0,null,null,2,"bc-book-preview-list",[],null,null,null,Q,J)),s.pb(6,49152,null,0,V,[],{books:[0,"books"]},null),s.Bb(131072,w.b,[s.h])],function(n,t){var e=t.component;n(t,6,0,s.Hb(t,6,0,s.zb(t,7).transform(e.books$)))},null)}function At(n){return s.Ib(0,[(n()(),s.qb(0,0,null,null,1,"bc-collection-page",[],null,null,null,St,Pt)),s.pb(1,114688,null,0,It,[nn.b],null,null)],function(n,t){n(t,1,0)},null)}var _t=s.mb("bc-collection-page",It,At,{},{},[]),qt=e("M2Lx"),Mt=e("eDkP"),zt=e("o3x0"),Ft=e("qAlS"),Tt=e("Nsh5"),Lt=e("LC5p"),$t=e("SMsm"),Nt=e("8mMr"),Rt=e("4c35"),Et=e("U8Sl"),Gt=function(){return function(){}}(),Ht=function(){return function(){}}(),Xt=e("F/XL"),Dt=e("VnD/"),Wt=e("xMyE"),Yt=e("9Z1F"),Zt=e("15JJ"),Vt=e("t/Na"),Jt=function(){function n(n){this.http=n,this.API_PATH="https://www.googleapis.com/books/v1/volumes"}return n.prototype.searchBooks=function(n){return this.http.get(this.API_PATH+"?q="+n).pipe(Object(Ot.a)(function(n){return n.items||[]}))},n.prototype.retrieveBook=function(n){return this.http.get(this.API_PATH+"/"+n)},n.ngInjectableDef=s.T({factory:function(){return new n(s.X(Vt.c))},token:n,providedIn:"root"}),n}(),Kt=function(){function n(n,t,e){this.store=n,this.googleBooks=t,this.router=e}return n.prototype.waitForCollectionToLoad=function(){return this.store.pipe(Object(nn.c)(Qn),Object(Dt.a)(function(n){return n}),Object(tn.a)(1))},n.prototype.hasBookInStore=function(n){return this.store.pipe(Object(nn.c)(Hn),Object(Ot.a)(function(t){return!!t[n]}),Object(tn.a)(1))},n.prototype.hasBookInApi=function(n){var t=this;return this.googleBooks.retrieveBook(n).pipe(Object(Ot.a)(function(n){return new o.LoadBook(n)}),Object(Wt.a)(function(n){return t.store.dispatch(n)}),Object(Ot.a)(function(n){return!!n}),Object(Yt.a)(function(){return t.router.navigate(["/404"]),Object(Xt.a)(!1)}))},n.prototype.hasBook=function(n){var t=this;return this.hasBookInStore(n).pipe(Object(Zt.a)(function(e){return e?Object(Xt.a)(e):t.hasBookInApi(n)}))},n.prototype.canActivate=function(n){var t=this;return this.waitForCollectionToLoad().pipe(Object(Zt.a)(function(){return t.hasBook(n.params.id)}))},n.ngInjectableDef=s.T({factory:function(){return new n(s.X(nn.b),s.X(Jt),s.X(L.o))},token:n,providedIn:"root"}),n}(),Qt=function(){return function(){}}(),Ut=e("KoCW"),ne=e("kNOE"),te=e("eeLN"),ee=e("PXu1"),oe=e("mrSG"),le=e("fuZ8"),re=e("dh7u"),ie=e("T1DM"),ue=e("G5J1"),ae=e("Gi3i"),ce=e("0mNj"),se=e("ny24"),be=function(){function n(n,t){var e=this;this.actions$=n,this.googleBooks=t,this.search$=function(n){var t=void 0===n?{}:n,o=t.debounce,r=void 0===o?300:o,i=t.scheduler,a=void 0===i?ie.a:i;return e.actions$.pipe(Object(le.b)(u.FindBookPageActionTypes.SearchBooks),Object(ae.a)(r,a),Object(Ot.a)(function(n){return n.payload}),Object(Zt.a)(function(n){if(""===n)return ue.a;var t=e.actions$.pipe(Object(le.b)(u.FindBookPageActionTypes.SearchBooks),Object(ce.a)(1));return e.googleBooks.searchBooks(n).pipe(Object(se.a)(t),Object(Ot.a)(function(n){return new l.SearchSuccess(n)}),Object(Yt.a)(function(n){return Object(Xt.a)(new l.SearchFailure(n))}))}))}}return Object(oe.b)([Object(re.a)(),Object(oe.d)("design:type",Object)],n.prototype,"search$",void 0),n}(),de=e("lYZG"),pe=e("6blF"),fe=e("Qgas");function me(n,t,e){return 0===e?[t]:(n.push(t),n)}var he=e("psW0"),ge=function(){function n(n,t){var e=this;this.actions$=n,this.db=t,this.openDB$=Object(de.a)(function(){return e.db.open("books_app")}),this.loadCollection$=this.actions$.pipe(Object(le.b)(i.CollectionPageActionTypes.LoadCollection),Object(Zt.a)(function(){return e.db.query("books").pipe(Object(fe.a)(me,[]),Object(Ot.a)(function(n){return new r.LoadBooksSuccess(n)}),Object(Yt.a)(function(n){return Object(Xt.a)(new r.LoadBooksFailure(n))}))})),this.addBookToCollection$=this.actions$.pipe(Object(le.b)(a.SelectedBookPageActionTypes.AddBook),Object(Ot.a)(function(n){return n.payload}),Object(he.a)(function(n){return e.db.insert("books",[n]).pipe(Object(Ot.a)(function(){return new r.AddBookSuccess(n)}),Object(Yt.a)(function(){return Object(Xt.a)(new r.AddBookFailure(n))}))})),this.removeBookFromCollection$=this.actions$.pipe(Object(le.b)(a.SelectedBookPageActionTypes.RemoveBook),Object(Ot.a)(function(n){return n.payload}),Object(he.a)(function(n){return e.db.executeWrite("books","delete",[n.id]).pipe(Object(Ot.a)(function(){return new r.RemoveBookSuccess(n)}),Object(Yt.a)(function(){return Object(Xt.a)(new r.RemoveBookFailure(n))}))}))}return Object(oe.b)([Object(re.a)({dispatch:!1}),Object(oe.d)("design:type",pe.a)],n.prototype,"openDB$",void 0),Object(oe.b)([Object(re.a)(),Object(oe.d)("design:type",pe.a)],n.prototype,"loadCollection$",void 0),Object(oe.b)([Object(re.a)(),Object(oe.d)("design:type",pe.a)],n.prototype,"addBookToCollection$",void 0),Object(oe.b)([Object(re.a)(),Object(oe.d)("design:type",pe.a)],n.prototype,"removeBookFromCollection$",void 0),n}(),ke=e("nNXz"),ye=e("D9r6"),ve=e("IvYz"),Oe=e("DB2k"),Be=e("6hZr");e.d(t,"BooksModuleNgFactory",function(){return je});var je=s.nb(b,[],function(n){return s.wb([s.xb(512,s.j,s.cb,[[8,[d.a,p.a,it,wt,_t]],[3,s.j],s.x]),s.xb(4608,w.l,w.k,[s.u,[2,w.u]]),s.xb(4608,qt.c,qt.c,[]),s.xb(4608,k.b,k.b,[]),s.xb(4608,Mt.a,Mt.a,[Mt.g,Mt.c,s.j,Mt.f,Mt.d,s.q,s.z,w.d,y.b,[2,w.g]]),s.xb(5120,Mt.h,Mt.i,[Mt.a]),s.xb(5120,zt.b,zt.c,[Mt.a]),s.xb(135680,zt.d,zt.d,[Mt.a,s.q,[2,w.g],[2,zt.a],zt.b,[3,zt.d],Mt.c]),s.xb(4608,j.d,j.d,[]),s.xb(4608,j.q,j.q,[]),s.xb(1073742336,w.c,w.c,[]),s.xb(1073742336,v.b,v.b,[]),s.xb(1073742336,x.c,x.c,[]),s.xb(1073742336,qt.d,qt.d,[]),s.xb(1073742336,g.d,g.d,[]),s.xb(1073742336,B.b,B.b,[]),s.xb(1073742336,y.a,y.a,[]),s.xb(1073742336,k.j,k.j,[[2,k.c],[2,I.g]]),s.xb(1073742336,m.f,m.f,[]),s.xb(1073742336,k.t,k.t,[]),s.xb(1073742336,at.c,at.c,[]),s.xb(1073742336,Ft.c,Ft.c,[]),s.xb(1073742336,Tt.h,Tt.h,[]),s.xb(1073742336,k.l,k.l,[]),s.xb(1073742336,k.r,k.r,[]),s.xb(1073742336,Lt.a,Lt.a,[]),s.xb(1073742336,N.d,N.d,[]),s.xb(1073742336,$t.c,$t.c,[]),s.xb(1073742336,Nt.b,Nt.b,[]),s.xb(1073742336,C.c,C.c,[]),s.xb(1073742336,Rt.f,Rt.f,[]),s.xb(1073742336,Mt.e,Mt.e,[]),s.xb(1073742336,zt.j,zt.j,[]),s.xb(1073742336,Et.a,Et.a,[]),s.xb(1073742336,j.o,j.o,[]),s.xb(1073742336,j.n,j.n,[]),s.xb(1073742336,L.r,L.r,[[2,L.y],[2,L.o]]),s.xb(1073742336,Gt,Gt,[]),s.xb(1073742336,Ht,Ht,[]),s.xb(1073742336,Qt,Qt,[]),s.xb(1024,Ut.g,function(){return[{}]},[]),s.xb(1024,Ut.f,function(){return[{key:"books",reducerFactory:ne.a,metaReducers:[],initialState:void 0}]},[]),s.xb(1024,Ut.m,te.d,[s.q,Ut.g,Ut.f]),s.xb(1024,Ut.h,function(){return[{search:wn,books:Tn,collection:Nn}]},[]),s.xb(1024,Ut.i,function(n){return[n]},[Ut.h]),s.xb(1024,Ut.a,function(n,t,e){return[te.c(n,t,e)]},[s.q,Ut.h,Ut.i]),s.xb(1073873408,te.a,te.a,[Ut.m,Ut.a,ee.b,te.b]),s.xb(512,be,be,[le.a,Jt]),s.xb(512,ge,ge,[le.a,ke.b]),s.xb(1024,ye.a,function(n,t){return[ve.a(n,t)]},[be,ge]),s.xb(1073742336,Oe.a,Oe.a,[Be.a,ye.a,[2,te.b],[2,te.a]]),s.xb(1073742336,b,b,[]),s.xb(1024,L.m,function(){return[[{path:"find",component:et},{path:":id",component:Bt,canActivate:[Kt]},{path:"",component:It}]]},[])])})}}]); \ No newline at end of file diff --git a/example-app/index.html b/example-app/index.html index f54740d26f..6c5cd17cad 100644 --- a/example-app/index.html +++ b/example-app/index.html @@ -1 +1,15 @@ -Book CollectionLoading... \ No newline at end of file + + + + + Book Collection + + + + + + + + Loading... + + diff --git a/example-app/inline.1c4b583d9a7fc0a581d3.bundle.js b/example-app/inline.1c4b583d9a7fc0a581d3.bundle.js deleted file mode 100644 index fdfbb47655..0000000000 --- a/example-app/inline.1c4b583d9a7fc0a581d3.bundle.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var a,i,f,l=0,s=[];lu||n!=n?o*(1/0):o*n)}})},"0bRs":function(t,e,n){"use strict";n.d(e,"b",function(){return u}),n.d(e,"a",function(){return s}),n.d(e,"c",function(){return a}),n("LMZF"),n("V8+5");var r=n("j5BN"),i=n("v4e1"),o=(n("Un6q"),function(t,e){this._renderer=t,this._elementRef=e}),s=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o._renderer=e,o._elementRef=n,o._document=i,o._baseSize=100,o._baseStrokeWidth=10,o._fallbackAnimation=!1,o._elementSize=o._baseSize,o._diameter=o._baseSize,o.strokeWidth=10,o.mode="determinate",o._fallbackAnimation=r.EDGE||r.TRIDENT,e.addClass(n.nativeElement,o._fallbackAnimation?"mat-progress-spinner-indeterminate-fallback-animation":"mat-progress-spinner-indeterminate-animation"),o}return Object(i.a)(e,t),Object.defineProperty(e.prototype,"diameter",{get:function(){return this._diameter},set:function(t){this._setDiameterAndInitStyles(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(t){null!=t&&"determinate"===this.mode&&(this._value=Math.max(0,Math.min(100,t)))},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(t.strokeWidth||t.diameter)&&(this._elementSize=this._diameter+Math.max(this.strokeWidth-this._baseStrokeWidth,0))},Object.defineProperty(e.prototype,"_circleRadius",{get:function(){return(this.diameter-this._baseStrokeWidth)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_viewBox",{get:function(){return"0 0 "+this._elementSize+" "+this._elementSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:null},enumerable:!0,configurable:!0}),e.prototype._setDiameterAndInitStyles=function(t){this._diameter=t,e.diameters.has(this.diameter)||this._fallbackAnimation||this._attachStyleNode()},e.prototype._attachStyleNode=function(){var t=this._renderer.createElement("style");t.textContent=this._getAnimationText(),this._renderer.appendChild(this._document.head,t),e.diameters.add(this.diameter)},e.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.51% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.1% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.51% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.01% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.51% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.01% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.51% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},e.diameters=new Set([100]),e}(Object(r.D)(o,"primary")),a=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r,i)||this;return o.mode="indeterminate",o}return Object(i.a)(e,t),e}(s),u=function(){}},"0imh":function(t,e,n){"use strict";var r=n("6Xbx").__extends,i=n("rlar"),o=n("yR50"),s=n("xFbG"),a=n("AHF9"),u=n("Lhvy"),c=n("g0Kb");e.ReplaySubject=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this),this.scheduler=r,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n}return r(e,t),e.prototype.next=function(e){var n=this._getNow();this._events.push(new l(n,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._trimBufferThenGetEvents(),r=this.scheduler;if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new c.SubjectSubscription(this,t)),r&&t.add(t=new a.ObserveOnSubscriber(t,r));for(var i=n.length,o=0;oe&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.Subject);var l=function(t,e){this.time=t,this.value=e}},"0nO6":function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}C(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(t){return null==t||0===t.length}function o(t){return null!=t}function s(t){var e=Object(T._8)(t)?Object(A.fromPromise)(t):t;if(!Object(T._7)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function a(t){var e=t.reduce(function(t,e){return null!=e?O({},t,e):t},{});return 0===Object.keys(e).length?null:e}function u(t){return t.validate?function(e){return t.validate(e)}:t}function c(t){return t.validate?function(e){return t.validate(e)}:t}function l(){throw new Error("unimplemented")}function h(t,e){return e.path.concat([t])}function p(t,e){t||y(e,"Cannot find control with"),e.valueAccessor||y(e,"No value accessor for form control with"),t.validator=N.compose([t.validator,e.validator]),t.asyncValidator=N.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingDirty=!0,"change"===t.updateOn&&f(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&f(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function f(t,e){e.viewToModelUpdate(t._pendingValue),t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1})}function d(t,e){null==t&&y(e,"Cannot find control with"),t.validator=N.compose([t.validator,e.validator]),t.asyncValidator=N.composeAsync([t.asyncValidator,e.asyncValidator])}function m(t){return y(t,"There is no FormControl instance attached to form control element with")}function y(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function v(t){return null!=t?N.compose(t.map(u)):null}function g(t){return null!=t?N.composeAsync(t.map(c)):null}function _(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&t.viewToModelUpdate(e._pendingValue)})}function b(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function w(t){var e=x(t)?t.validators:t;return Array.isArray(e)?v(e):e||null}function E(t,e){var n=x(e)?e.asyncValidators:t;return Array.isArray(n)?g(n):n||null}function x(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function S(t){return!(t instanceof ot||t instanceof it||t instanceof st)}var C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},O=Object.assign||function(t){for(var e,n=1,r=arguments.length;nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return i(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return M.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(i(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,r;return"string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(i(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(o);return 0==e.length?null:function(t){return a(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(o);return 0==e.length?null:function(t){var n=function(t,n){return e.map(function(e){return e(t)})}(t).map(s);return P.map.call(Object(k.forkJoin)(n),a)}},t}(),F=new T.o("NgValueAccessor"),L=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),V=new T.o("CompositionEventMode"),B=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){var t=Object(I.s)()?Object(I.s)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}(),U=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return r(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return l()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return l()},enumerable:!0,configurable:!0}),e}(R),H=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),q=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(z),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),W=[L,function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),U,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=T._11}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Q),$=function(t){function e(e,n,r){var i=t.call(this,w(n),E(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return r(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Y?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Q),tt=Promise.resolve(null),et=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new T.m,r.form=new J({},v(e),g(n)),r}return r(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;tt.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),p(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;tt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),b(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;tt.then(function(){var n=e._findContainer(t.path),r=new J({});d(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;tt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;tt.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,_(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(j),nt={formControlName:'\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '},rt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+nt.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+nt.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+nt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+nt.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+nt.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+nt.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),it=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new T.m,r}return r(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return p(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){b(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);d(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);d(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,_(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return m(e)}),e.valueAccessor.registerOnTouched(function(){return m(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&p(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=v(this._validators);this.form.validator=N.compose([this.form.validator,t]);var e=g(this._asyncValidators);this.form.asyncValidator=N.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||rt.missingFormException()},e}(j),ot=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return r(e,t),e.prototype._checkParentType=function(){S(this._parent)&&rt.groupParentException()},e}(X),st=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return h(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return v(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return g(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){S(this._parent)&&rt.arrayParentException()},e}(j),at=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._added=!1,o.update=new T.m,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=function(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){e.constructor===B?n=e:function(t){return W.some(function(e){return t.constructor===e})}(e)?(r&&y(t,"More than one built-in value accessor matches form control with"),r=e):(i&&y(t,"More than one custom value accessor matches form control with"),i=e)}),i||r||n||(y(t,"No valid value accessor for form control with"),null)}(o,i),o}return r(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){rt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(T._11)(e,n.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return h(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return v(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return g(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof ot)&&this._parent instanceof X?rt.ngModelGroupException():this._parent instanceof ot||this._parent instanceof it||this._parent instanceof st||rt.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e}(z),ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.validate=function(t){return this.required?N.requiredTrue(t):null},e}(function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?N.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}()),ct=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t);return new J(n,null!=e?e.validator:null,null!=e?e.asyncValidator:null)},t.prototype.control=function(t,e,n){return new Y(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new $(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){return t instanceof Y||t instanceof J||t instanceof $?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),lt=function(){},ht=function(){},pt=function(){}},"1VPd":function(t,e,n){"use strict";e.Scheduler=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}()},"1eQ7":function(t,e,n){"use strict";var r=n("6Xbx").__extends,i=n("T14+"),o=n("TpsG");e.first=function(t,e,n){return this.lift(new s(t,e,n,this))};var s=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),a=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return r(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new o.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber)},"1zvG":function(t,e,n){"use strict";var r=n("JXkd"),i=n("TJLg"),o=n("3r0D")("hasInstance"),s=Function.prototype;o in s||n("tose").f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},"23I1":function(t,e,n){"use strict";var r=n("MzWM");e.defer=r.DeferObservable.create},"2B7B":function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!y(this,t)}}),f&&r(h.prototype,"size",{get:function(){return u(this[m])}}),h},def:function(t,e,n){var r,i,o=y(t,e);return o?o.v=n:(t._l=o={i:i=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[m]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,e,n){l(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?h(0,n.k):"values"==e?h(0,n.v):h(0,[n.k,n.v]):(t._t=void 0,h(1))},n?"entries":"values",!n,!0),p(e)}}},"3MMU":function(t,e,n){"use strict";var r=n("RT4T"),i=n("ddeV"),o=n("rppw");t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),a=i(t,s),u=i(e,s),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?s:i(c,s))-u,s-a),h=1;for(u0;)u in n?n[a]=n[u]:delete n[a],a+=h,u+=h;return n}},"3lsR":function(t,e,n){"use strict";var r=n("bKpL");e.Notification=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},"3r0D":function(t,e,n){var r=n("Iclu")("wks"),i=n("c09d"),o=n("ptrv").Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},"3w/j":function(t,e,n){"use strict";n.d(e,"c",function(){return c}),n.d(e,"d",function(){return l}),e.e=function(){return"undefined"!=typeof window?window.indexedDB:self.indexedDB},n.d(e,"b",function(){return h}),n.d(e,"a",function(){return p});var r=n("bKpL"),i=(n.n(r),n("rlar")),o=(n.n(i),n("cPhF")),s=(n.n(o),n("rDIt")),a=(n.n(s),n("7JOC")),u=(n.n(a),n("LMZF")),c=new u.o("IndexedDBBackend"),l=new u.o("IDB_SCHEMA"),h=function(){function t(t,e){this.changes=new i.Subject,this._schema=e,this._idb=t}return t.prototype._mapRecord=function(t){return function(e){return t.primaryKey||(e.record.$key=e.$key),e.record}},t.prototype._upgradeDB=function(t,e){for(var n in this._schema.stores)e.objectStoreNames.contains(n)&&e.deleteObjectStore(n),this._createObjectStore(e,n,this._schema.stores[n]);t.next(e),t.complete()},t.prototype._createObjectStore=function(t,e,n){t.createObjectStore(e,{autoIncrement:!0,keyPath:n.primaryKey})},t.prototype.open=function(t,e,n){var i=this;void 0===e&&(e=1);var o=this._idb;return r.Observable.create(function(e){var n=o.open(t,i._schema.version),r=function(t){e.next(t.target.result),e.complete()},s=function(t){console.log(t),e.error(t)},a=function(t){i._upgradeDB(e,t.target.result)};return n.addEventListener("success",r),n.addEventListener("error",s),n.addEventListener("upgradeneeded",a),function(){n.removeEventListener("success",r),n.removeEventListener("error",s),n.removeEventListener("upgradeneeded",a)}})},t.prototype.deleteDatabase=function(t){var e=this;return new r.Observable(function(n){var r=e._idb.deleteDatabase(t),i=function(t){n.next(null),n.complete()},o=function(t){return n.error(t)};return r.addEventListener("success",i),r.addEventListener("error",o),function(){r.removeEventListener("success",i),r.removeEventListener("error",o)}})},t.prototype.insert=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.executeWrite(t,"put",e);return s._do.call(i,function(t){return n?r.changes.next({type:"DB_INSERT",payload:t}):{}})},t.prototype.get=function(t,e){var n=this,i=this.open(this._schema.name);return o.mergeMap.call(i,function(i){return new r.Observable(function(r){n._mapRecord(n._schema.stores[t]);var o=i.transaction([t],"readonly"),s=o.objectStore(t).get(e),a=function(t){return r.error(t)},u=function(){return r.complete()},c=function(t){return r.next(s.result)};return o.addEventListener("complete",u),o.addEventListener("error",a),s.addEventListener("success",c),s.addEventListener("error",a),function(){s.removeEventListener("success",c),s.removeEventListener("error",a),o.removeEventListener("complete",u),o.removeEventListener("error",a)}})})},t.prototype.query=function(t,e){var n=this.open(this._schema.name);return o.mergeMap.call(n,function(n){return new r.Observable(function(r){var i=n.transaction([t],"readonly"),o=i.objectStore(t).openCursor(),s=function(t){return r.error(t)},a=function(t){var n=t.target.result;n?(e?e(n.value)&&r.next(n.value):r.next(n.value),n.continue()):r.complete()};return i.addEventListener("error",s),o.addEventListener("success",a),o.addEventListener("error",s),function(){o.removeEventListener("success",a),o.removeEventListener("error",s),i.removeEventListener("error",s)}})})},t.prototype.executeWrite=function(t,e,n){var i=this,s=this.open(this._schema.name);return o.mergeMap.call(s,function(s){return new r.Observable(function(u){var c=i._schema.stores[t],l=i._mapRecord(c),h=s.transaction([t],"readwrite"),p=h.objectStore(t),f=function(t){return u.error(t)},d=function(){return u.complete()};h.addEventListener("complete",d),h.addEventListener("error",f);var m=o.mergeMap.call(Object(a.from)(n),function(t){return new r.Observable(function(n){var r;if(c.primaryKey)r=p[e](t);else{var i=t.$key,o=Object.assign({},t);delete o.key,r=p[e](o,i)}r.addEventListener("success",function(){n.next(l({$key:r.result,record:t}))}),r.addEventListener("error",function(t){n.error(t)})})}).subscribe(u);return function(){m.unsubscribe(),h.removeEventListener("complete",d),h.removeEventListener("error",f)}})})},t.prototype.compare=function(t,e){return this._idb.cmp(t,e)},t}(),p=function(){function t(){}return t.provideDB=function(e){return{ngModule:t,providers:[{provide:l,useValue:e}]}},t}()},"422b":function(t,e,n){"use strict";var r=n("6Xbx").__extends,i=n("T14+");e.filter=function(t,e){return this.lift(new o(t,e))};var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return r(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},"4D9a":function(t,e,n){"use strict";n("RSwQ");var r=n("+pQw"),i=n("8H1R"),o=n("V+0c"),s=/./.toString,a=function(t){n("lfBE")(RegExp.prototype,"toString",t,!0)};n("umMR")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},"4TT8":function(t,e,n){var r=n("CDXM");r(r.S+r.F*!n("V+0c"),"Object",{defineProperties:n("ewdp")})},"4jwp":function(t,e,n){"use strict";function r(t,e,n){return t||new f(e,n)}function i(t,e,n,r){return t||new m(e,n,r)}n.d(e,"c",function(){return f}),n.d(e,"a",function(){return r}),n.d(e,"d",function(){return d}),n.d(e,"g",function(){return m}),n.d(e,"f",function(){return i}),n.d(e,"e",function(){return y}),n.d(e,"b",function(){return v});var o=n("LMZF"),s=n("V8+5"),a=n("rlar"),u=(n.n(a),n("xFbG")),c=(n.n(u),n("zGUx")),l=(n.n(c),n("Txt5")),h=(n.n(l),n("LEug")),p=(n.n(h),n("+zVg")),f=(n.n(p),function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new a.Subject,this._globalSubscription=null,this._scrolledCount=0,this.scrollableReferences=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._notify()});this.scrollableReferences.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollableReferences.get(t);e&&(e.unsubscribe(),this.scrollableReferences.delete(t))},t.prototype.scrolled=function(t,e){var n=this;if(void 0===t&&(t=20),!this._platform.isBrowser)return u.Subscription.EMPTY;var r=t>0?l.auditTime.call(this._scrolled.asObservable(),t):this._scrolled.asObservable();this._scrolledCount++,this._globalSubscription||(this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Object(c.fromEvent)(window.document,"scroll").subscribe(function(){return n._notify()})}));var i=r.subscribe(e);return i.add(function(){n._scrolledCount--,!n._globalSubscription||n.scrollableReferences.size||n._scrolledCount||(n._globalSubscription.unsubscribe(),n._globalSubscription=null)}),i},t.prototype.getScrollContainers=function(t){var e=this,n=[];return this.scrollableReferences.forEach(function(r,i){e.scrollableContainsElement(i,t)&&n.push(i)}),n},t.prototype.scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._notify=function(){this._scrolled.next()},t}()),d=function(){function t(t,e,n,r){this._elementRef=t,this._scroll=e,this._ngZone=n,this._renderer=r,this._elementScrolled=new a.Subject}return t.prototype.ngOnInit=function(){var t=this;this._scrollListener=this._ngZone.runOutsideAngular(function(){return t._renderer.listen(t.getElementRef().nativeElement,"scroll",function(e){t._elementScrolled.next(e)})}),this._scroll.register(this)},t.prototype.ngOnDestroy=function(){this._scroll.deregister(this),this._scrollListener&&(this._scrollListener(),this._scrollListener=null)},t.prototype.elementScrolled=function(){return this._elementScrolled.asObservable()},t.prototype.getElementRef=function(){return this._elementRef},t}(),m=function(){function t(t,e,n){var r=this;this._change=t.isBrowser?e.runOutsideAngular(function(){return Object(h.merge)(Object(c.fromEvent)(window,"resize"),Object(c.fromEvent)(window,"orientationchange"))}):Object(p.of)(),this._invalidateCacheSubscriptions=[n.scrolled(0,function(){return r._cacheViewportGeometry()}),this.change().subscribe(function(){return r._cacheViewportGeometry()})]}return t.prototype.ngOnDestroy=function(){this._invalidateCacheSubscriptions.forEach(function(t){return t.unsubscribe()})},t.prototype.getViewportRect=function(t){void 0===t&&(t=this._documentRect),t||(this._cacheViewportGeometry(),t=this._documentRect);var e=this.getViewportScrollPosition(t),n=window.innerHeight,r=window.innerWidth;return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+r,height:n,width:r}},t.prototype.getViewportScrollPosition=function(t){return void 0===t&&(t=this._documentRect),t||(this._cacheViewportGeometry(),t=this._documentRect),{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?l.auditTime.call(this._change,t):this._change},t.prototype._cacheViewportGeometry=function(){this._documentRect=document.documentElement.getBoundingClientRect()},t}(),y={provide:m,deps:[[new o.y,new o.G,m],s.a,o.x,f],useFactory:i},v=function(){}},"51pc":function(t,e,n){var r=n("+pQw"),i=n("ewdp"),o=n("a/Sk"),s=n("yIWP")("IE_PROTO"),a=function(){},u=function(){var t,e=n("BQSv")("iframe"),r=o.length;for(e.style.display="none",n("Ed9o").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("