(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{"+tJ4":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n=0}},"/PH2":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function a(){for(var t=[],e=0;e0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i.a)},"/WYv":function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return r})},0:function(t,e,n){t.exports=n("zUnb")},"0/uQ":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("6blF"),i=n("Fxb1"),o=n("i4X3");function a(t,e){return e?Object(o.a)(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},"15JJ":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),a=n("zotm"),s=n("67Y/"),u=n("0/uQ");function l(t,e){return"function"==typeof e?function(n){return n.pipe(l(function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.a(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Object(a.a)(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.a)},"1fDf":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("FFOo");function i(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof r.a?e:null}return!0}},"1gzp":function(t,e,n){"use strict";function r(t){return"string"==typeof t}function i(t){return"number"==typeof t}function o(t){return"function"==typeof t}n.d(e,"c",function(){return r}),n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o})},"26FU":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("mrSG"),i=n("K9Ia"),o=n("8g8A"),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},"2Bdj":function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},"2WpN":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("mrSG"),i=n("FFOo"),o=n("pugT");function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.callback))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new o.a(n)),r}return r.__extends(e,t),e}(i.a)},"2ePl":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},"386E":function(t,e,n){"use strict";var r=n("CcnG"),i=n("Ip0R");n("cyVl"),n("CZqF"),n("ZYCi"),n.d(e,"a",function(){return o}),n.d(e,"b",function(){return m});var o=r["\u0275crt"]({encapsulation:2,styles:[["#http-loader{top:0;left:0;height:100%;width:100%;position:fixed;z-index:9999}.loader-bg{height:100%;width:100%;position:absolute;filter:alpha(opacity=70);opacity:.7;background-color:#f1f1f1}.colored-parent,.colored>div{background-color:#333}"],[".sk-double-bounce{top:50%;width:40px;height:40px;position:relative;margin:auto}.double-bounce1,.double-bounce2{width:100%;height:100%;border-radius:50%;opacity:.6;position:absolute;top:0;left:0;-webkit-animation:2s ease-in-out infinite sk-bounce;animation:2s ease-in-out infinite sk-bounce}.double-bounce2{-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes sk-bounce{0%,100%{-webkit-transform:scale(0)}50%{-webkit-transform:scale(1)}}@keyframes sk-bounce{0%,100%{transform:scale(0);-webkit-transform:scale(0)}50%{transform:scale(1);-webkit-transform:scale(1)}}"],[".sk-chasing-dots{top:50%;margin:auto;width:40px;height:40px;position:relative;text-align:center;-webkit-animation:2s linear infinite sk-chasingDotsRotate;animation:2s linear infinite sk-chasingDotsRotate}.sk-chasing-dots .sk-child{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;-webkit-animation:2s ease-in-out infinite sk-chasingDotsBounce;animation:2s ease-in-out infinite sk-chasingDotsBounce}.sk-chasing-dots .sk-dot2{top:auto;bottom:0;-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes sk-chasingDotsRotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes sk-chasingDotsRotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes sk-chasingDotsBounce{0%,100%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes sk-chasingDotsBounce{0%,100%{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1)}}"],[".sk-cube-grid{position:relative;top:50%;width:40px;height:40px;margin:auto}.sk-cube-grid .sk-cube{width:33%;height:33%;float:left;-webkit-animation:1.3s ease-in-out infinite sk-cubeGridScaleDelay;animation:1.3s ease-in-out infinite sk-cubeGridScaleDelay}.sk-cube-grid .sk-cube1{-webkit-animation-delay:.2s;animation-delay:.2s}.sk-cube-grid .sk-cube2{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-cube-grid .sk-cube3{-webkit-animation-delay:.4s;animation-delay:.4s}.sk-cube-grid .sk-cube4{-webkit-animation-delay:.1s;animation-delay:.1s}.sk-cube-grid .sk-cube5{-webkit-animation-delay:.2s;animation-delay:.2s}.sk-cube-grid .sk-cube6{-webkit-animation-delay:.3s;animation-delay:.3s}.sk-cube-grid .sk-cube7{-webkit-animation-delay:0s;animation-delay:0s}.sk-cube-grid .sk-cube8{-webkit-animation-delay:.1s;animation-delay:.1s}.sk-cube-grid .sk-cube9{-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes sk-cubeGridScaleDelay{0%,100%,70%{-webkit-transform:scale3D(1,1,1);transform:scale3D(1,1,1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}@keyframes sk-cubeGridScaleDelay{0%,100%,70%{-webkit-transform:scale3D(1,1,1);transform:scale3D(1,1,1)}35%{-webkit-transform:scale3D(0,0,1);transform:scale3D(0,0,1)}}"],[".sk-rotating-plane{position:relative;top:50%;width:40px;height:40px;margin:auto;-webkit-animation:1.2s ease-in-out infinite sk-rotateplane;animation:1.2s ease-in-out infinite sk-rotateplane}@-webkit-keyframes sk-rotateplane{0%{-webkit-transform:perspective(120px)}50%{-webkit-transform:perspective(120px) rotateY(180deg)}100%{-webkit-transform:perspective(120px) rotateY(180deg) rotateX(180deg)}}@keyframes sk-rotateplane{0%{transform:perspective(120px) rotateX(0) rotateY(0);-webkit-transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0);-webkit-transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}100%{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg);-webkit-transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}"],[".sk-spinner-pulse{position:relative;top:50%;width:40px;height:40px;margin:auto;border-radius:100%;-webkit-animation:1s ease-in-out infinite sk-pulseScaleOut;animation:1s ease-in-out infinite sk-pulseScaleOut}@-webkit-keyframes sk-pulseScaleOut{0%{-webkit-transform:scale(0);transform:scale(0)}100%{-webkit-transform:scale(1);transform:scale(1);opacity:0}}@keyframes sk-pulseScaleOut{0%{-webkit-transform:scale(0);transform:scale(0)}100%{-webkit-transform:scale(1);transform:scale(1);opacity:0}}"],[".sk-three-bounce{top:50%;position:relative;margin:auto;width:80px;text-align:center}.sk-three-bounce .sk-child{width:20px;height:20px;border-radius:100%;display:inline-block;-webkit-animation:1.4s ease-in-out infinite both sk-three-bounce;animation:1.4s ease-in-out infinite both sk-three-bounce}.sk-three-bounce .sk-bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.sk-three-bounce .sk-bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes sk-three-bounce{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes sk-three-bounce{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}"],[".sk-wandering-cubes{top:50%;margin:auto;width:40px;height:40px;position:relative}.sk-wandering-cubes .sk-cube{width:10px;height:10px;position:absolute;top:0;left:0;-webkit-animation:1.8s ease-in-out -1.8s infinite both sk-wanderingCube;animation:1.8s ease-in-out -1.8s infinite both sk-wanderingCube}.sk-wandering-cubes .sk-cube2{-webkit-animation-delay:-.9s;animation-delay:-.9s}@-webkit-keyframes sk-wanderingCube{0%{-webkit-transform:rotate(0);transform:rotate(0)}25%{-webkit-transform:translateX(30px) rotate(-90deg) scale(.5);transform:translateX(30px) rotate(-90deg) scale(.5)}50%{-webkit-transform:translateX(30px) translateY(30px) rotate(-179deg);transform:translateX(30px) translateY(30px) rotate(-179deg)}50.1%{-webkit-transform:translateX(30px) translateY(30px) rotate(-180deg);transform:translateX(30px) translateY(30px) rotate(-180deg)}75%{-webkit-transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5);transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}@keyframes sk-wanderingCube{0%{-webkit-transform:rotate(0);transform:rotate(0)}25%{-webkit-transform:translateX(30px) rotate(-90deg) scale(.5);transform:translateX(30px) rotate(-90deg) scale(.5)}50%{-webkit-transform:translateX(30px) translateY(30px) rotate(-179deg);transform:translateX(30px) translateY(30px) rotate(-179deg)}50.1%{-webkit-transform:translateX(30px) translateY(30px) rotate(-180deg);transform:translateX(30px) translateY(30px) rotate(-180deg)}75%{-webkit-transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5);transform:translateX(0) translateY(30px) rotate(-270deg) scale(.5)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}"],[".sk-wave{position:relative;top:50%;margin:auto;width:50px;height:40px;text-align:center;font-size:10px}.sk-wave .sk-rect{height:100%;width:6px;display:inline-block;-webkit-animation:1.2s ease-in-out infinite sk-waveStretchDelay;animation:1.2s ease-in-out infinite sk-waveStretchDelay}.sk-wave .sk-rect1{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.sk-wave .sk-rect2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.sk-wave .sk-rect3{-webkit-animation-delay:-1s;animation-delay:-1s}.sk-wave .sk-rect5{-webkit-animation-delay:-.8s;animation-delay:-.8s}.sk-wave .sk-rect4{-webkit-animation-delay:-.9s;animation-delay:-.9s}@-webkit-keyframes sk-waveStretchDelay{0%,100%,40%{-webkit-transform:scaleY(.4);transform:scaleY(.4)}20%{-webkit-transform:scaleY(1);transform:scaleY(1)}}@keyframes sk-waveStretchDelay{0%,100%,40%{-webkit-transform:scaleY(.4);transform:scaleY(.4)}20%{-webkit-transform:scaleY(1);transform:scaleY(1)}}"],[".sk-line-material{top:0;position:relative;margin:auto;width:100%}.sk-line-material .sk-child{width:100%;height:4px;position:absolute;top:0;display:inline-block;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-animation:2s ease-in-out infinite both sk-line-material;animation:2s ease-in-out infinite both sk-line-material}@-webkit-keyframes sk-line-material{0%,100%,80%{-webkit-transform:scaleX(0);transform:scaleX(0)}40%{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes sk-line-material{0%{-webkit-transform:scaleX(0);transform:scaleX(0)}100%{-webkit-transform:scaleX(1);transform:scaleX(1)}}#http-loader{top:0;left:0;height:100%;width:100%;position:fixed;z-index:9999}.loader-bg{height:100%;width:100%;position:absolute;filter:alpha(opacity=70);opacity:1;background-color:rgba(0,0,0,0)}.colored-parent,.colored>div{background-color:rgba(26,188,156,.8)}"]],data:{}});function a(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,9,"div",[["class","sk-cube-grid"]],[[2,"colored",null]],null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,0,"div",[["class","sk-cube sk-cube1"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](2,0,null,null,0,"div",[["class","sk-cube sk-cube2"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](3,0,null,null,0,"div",[["class","sk-cube sk-cube3"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](4,0,null,null,0,"div",[["class","sk-cube sk-cube4"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](5,0,null,null,0,"div",[["class","sk-cube sk-cube5"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](6,0,null,null,0,"div",[["class","sk-cube sk-cube6"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](7,0,null,null,0,"div",[["class","sk-cube sk-cube7"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](8,0,null,null,0,"div",[["class","sk-cube sk-cube8"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](9,0,null,null,0,"div",[["class","sk-cube sk-cube9"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,!n.backgroundColor),t(e,1,0,n.backgroundColor),t(e,2,0,n.backgroundColor),t(e,3,0,n.backgroundColor),t(e,4,0,n.backgroundColor),t(e,5,0,n.backgroundColor),t(e,6,0,n.backgroundColor),t(e,7,0,n.backgroundColor),t(e,8,0,n.backgroundColor),t(e,9,0,n.backgroundColor)})}function s(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","sk-rotating-plane colored-parent"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component.backgroundColor)})}function u(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","sk-double-bounce"]],[[2,"colored",null]],null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,0,"div",[["class","double-bounce1"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](2,0,null,null,0,"div",[["class","double-bounce2"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,!n.backgroundColor),t(e,1,0,n.backgroundColor),t(e,2,0,n.backgroundColor)})}function l(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,5,"div",[["class","sk-wave"]],[[2,"colored",null]],null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,0,"div",[["class","sk-rect sk-rect1"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](2,0,null,null,0,"div",[["class","sk-rect sk-rect2"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](3,0,null,null,0,"div",[["class","sk-rect sk-rect3"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](4,0,null,null,0,"div",[["class","sk-rect sk-rect4"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](5,0,null,null,0,"div",[["class","sk-rect sk-rect5"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,!n.backgroundColor),t(e,1,0,n.backgroundColor),t(e,2,0,n.backgroundColor),t(e,3,0,n.backgroundColor),t(e,4,0,n.backgroundColor),t(e,5,0,n.backgroundColor)})}function c(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","sk-wandering-cubes"]],[[2,"colored",null]],null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,0,"div",[["class","sk-cube sk-cube1"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](2,0,null,null,0,"div",[["class","sk-cube sk-cube2"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,!n.backgroundColor),t(e,1,0,n.backgroundColor),t(e,2,0,n.backgroundColor)})}function f(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","sk-spinner sk-spinner-pulse colored-parent"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component.backgroundColor)})}function p(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","sk-chasing-dots"]],[[2,"colored",null]],null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,0,"div",[["class","sk-child sk-dot1"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](2,0,null,null,0,"div",[["class","sk-child sk-dot2"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,!n.backgroundColor),t(e,1,0,n.backgroundColor),t(e,2,0,n.backgroundColor)})}function h(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,3,"div",[["class","sk-three-bounce"]],[[2,"colored",null]],null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,0,"div",[["class","sk-child sk-bounce1"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](2,0,null,null,0,"div",[["class","sk-child sk-bounce2"]],[[4,"background-color",null]],null,null,null,null)),(t()(),r["\u0275eld"](3,0,null,null,0,"div",[["class","sk-child sk-bounce3"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,!n.backgroundColor),t(e,1,0,n.backgroundColor),t(e,2,0,n.backgroundColor),t(e,3,0,n.backgroundColor)})}function d(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","sk-line-material"]],[[2,"colored",null]],null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,0,"div",[["class","sk-child sk-bounce1"]],[[4,"background-color",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,0,0,!n.backgroundColor),t(e,1,0,n.backgroundColor)})}function g(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,19,"div",[["id","http-loader"]],null,null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,18,"div",[["class","loader-bg"]],null,null,null,null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,a)),r["\u0275did"](3,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,s)),r["\u0275did"](5,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,u)),r["\u0275did"](7,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,l)),r["\u0275did"](9,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,c)),r["\u0275did"](11,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,f)),r["\u0275did"](13,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,p)),r["\u0275did"](15,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,h)),r["\u0275did"](17,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,d)),r["\u0275did"](19,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.spinner===n.Spinkit.skCubeGrid),t(e,5,0,n.spinner===n.Spinkit.skRotatingPlane),t(e,7,0,n.spinner===n.Spinkit.skDoubleBounce),t(e,9,0,n.spinner===n.Spinkit.skWave),t(e,11,0,n.spinner===n.Spinkit.skWanderingCubes),t(e,13,0,n.spinner===n.Spinkit.skSpinnerPulse),t(e,15,0,n.spinner===n.Spinkit.skChasingDots),t(e,17,0,n.spinner===n.Spinkit.skThreeBounce),t(e,19,0,n.spinner===n.Spinkit.skLine)},null)}function m(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](16777216,null,null,1,null,g)),r["\u0275did"](1,16384,null,0,i.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,1,0,e.component.isSpinnerVisible)},null)}},"3fWJ":function(t,e,n){"use strict";function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}n.d(e,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"4GxJ":function(t,e,n){"use strict";n.d(e,"c",function(){return P}),n.d(e,"b",function(){return D}),n.d(e,"a",function(){return M}),n.d(e,"A",function(){return A}),n.d(e,"B",function(){return I}),n.d(e,"f",function(){return j}),n.d(e,"e",function(){return R}),n.d(e,"d",function(){return N}),n.d(e,"g",function(){return F}),n.d(e,"k",function(){return z}),n.d(e,"j",function(){return L}),n.d(e,"i",function(){return V}),n.d(e,"l",function(){return U}),n.d(e,"h",function(){return K}),n.d(e,"q",function(){return xt}),n.d(e,"p",function(){return J}),n.d(e,"o",function(){return ot}),n.d(e,"m",function(){return st}),n.d(e,"n",function(){return lt}),n.d(e,"r",function(){return Ct}),n.d(e,"v",function(){return jt}),n.d(e,"t",function(){return Nt}),n.d(e,"u",function(){return St}),n.d(e,"z",function(){return Vt}),n.d(e,"y",function(){return Ft}),n.d(e,"x",function(){return Lt}),n.d(e,"C",function(){return qt}),n.d(e,"F",function(){return Kt}),n.d(e,"E",function(){return Gt}),n.d(e,"D",function(){return Wt}),n.d(e,"I",function(){return Zt}),n.d(e,"H",function(){return $t}),n.d(e,"G",function(){return Yt}),n.d(e,"N",function(){return ne}),n.d(e,"M",function(){return Xt}),n.d(e,"L",function(){return ee}),n.d(e,"J",function(){return te}),n.d(e,"K",function(){return Jt}),n.d(e,"R",function(){return le}),n.d(e,"Q",function(){return ie}),n.d(e,"P",function(){return ue}),n.d(e,"O",function(){return ae}),n.d(e,"U",function(){return de}),n.d(e,"T",function(){return ce}),n.d(e,"S",function(){return he}),n.d(e,"s",function(){return ge}),n.d(e,"V",function(){return ye}),n.d(e,"w",function(){return ve}),n.d(e,"X",function(){return _t}),n.d(e,"eb",function(){return rt}),n.d(e,"W",function(){return ct}),n.d(e,"Y",function(){return ft}),n.d(e,"Z",function(){return wt}),n.d(e,"db",function(){return et}),n.d(e,"fb",function(){return Dt}),n.d(e,"hb",function(){return Rt}),n.d(e,"gb",function(){return Pt}),n.d(e,"ab",function(){return Ht}),n.d(e,"bb",function(){return pe}),n.d(e,"cb",function(){return me});var r=n("CcnG"),i=n("Ip0R"),o=(n("gIcY"),n("K9Ia")),a=n("gI3B"),s=n("p0ib"),u=n("bne5"),l=n("W0Ae"),c=n("6blF"),f=(n("26FU"),n("67Y/")),p=n("VnD/"),h=n("15JJ"),d=n("ny24"),g=n("t9fZ"),m=n("/PH2"),y=n("vubp"),v=n("S1nX"),b=(n("xMyE"),n("mrSG"));function _(t){return parseInt(""+t,10)}function w(t){return null!=t?""+t:""}function x(t,e,n){return void 0===n&&(n=0),Math.max(Math.min(t,e),n)}function C(t){return"string"==typeof t}function S(t){return!isNaN(_(t))}function E(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function O(t){return null!=t}function k(t){return S(t)?("0"+t).slice(-2):""}function T(t,e){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(e)>=0}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});var D=function(){function t(){this.closeOthers=!1}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),I=function(){function t(t,e){this.accordion=t,this.panel=e}return Object.defineProperty(t.prototype,"ngbPanelToggle",{set:function(t){t&&(this.panel=t)},enumerable:!0,configurable:!0}),t}(),A=function(){return function(t){this.templateRef=t}}(),M=function(){function t(t){this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new r.EventEmitter,this.type=t.type,this.closeOtherPanels=t.closeOthers}return t.prototype.isExpanded=function(t){return this.activeIds.indexOf(t)>-1},t.prototype.expand=function(t){this._changeOpenState(this._findPanelById(t),!0)},t.prototype.expandAll=function(){var t=this;this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(function(e){return t._changeOpenState(e,!0)})},t.prototype.collapse=function(t){this._changeOpenState(this._findPanelById(t),!1)},t.prototype.collapseAll=function(){var t=this;this.panels.forEach(function(e){t._changeOpenState(e,!1)})},t.prototype.toggle=function(t){var e=this._findPanelById(t);e&&this._changeOpenState(e,!e.isOpen)},t.prototype.ngAfterContentChecked=function(){var t=this;C(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(function(e){return e.isOpen=!e.disabled&&t.activeIds.indexOf(e.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0]),this._updateActiveIds())},t.prototype._changeOpenState=function(t,e){if(t&&!t.disabled&&t.isOpen!==e){var n=!1;this.panelChange.emit({panelId:t.id,nextState:e,preventDefault:function(){n=!0}}),n||(t.isOpen=e,e&&this.closeOtherPanels&&this._closeOthers(t.id),this._updateActiveIds())}},t.prototype._closeOthers=function(t){this.panels.forEach(function(e){e.id!==t&&(e.isOpen=!1)})},t.prototype._findPanelById=function(t){return this.panels.find(function(e){return e.id===t})},t.prototype._updateActiveIds=function(){this.activeIds=this.panels.filter(function(t){return t.isOpen&&!t.disabled}).map(function(t){return t.id})},t}(),P=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),R=function(){function t(){this.dismissible=!0,this.type="warning"}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),N=function(){function t(t,e,n){this._renderer=e,this._element=n,this.close=new r.EventEmitter,this.dismissible=t.dismissible,this.type=t.type}return t.prototype.closeHandler=function(){this.close.emit(null)},t.prototype.ngOnChanges=function(t){var e=t.type;e&&!e.firstChange&&(this._renderer.removeClass(this._element.nativeElement,"alert-"+e.previousValue),this._renderer.addClass(this._element.nativeElement,"alert-"+e.currentValue))},t.prototype.ngOnInit=function(){this._renderer.addClass(this._element.nativeElement,"alert-"+this.type)},t}(),j=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),F=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),L=function(){function t(){this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),V=function(){function t(t,e,n,i){this._platformId=e,this._ngZone=n,this._cd=i,this._destroy$=new o.a,this._start$=new o.a,this._stop$=new o.a,this.slide=new r.EventEmitter,this.interval=t.interval,this.wrap=t.wrap,this.keyboard=t.keyboard,this.pauseOnHover=t.pauseOnHover,this.showNavigationArrows=t.showNavigationArrows,this.showNavigationIndicators=t.showNavigationIndicators}return t.prototype.ngAfterContentInit=function(){var t=this;Object(i.isPlatformBrowser)(this._platformId)&&this._ngZone.runOutsideAngular(function(){t._start$.pipe(Object(f.a)(function(){return t.interval}),Object(p.a)(function(e){return e>0&&t.slides.length>0}),Object(h.a)(function(e){return Object(a.a)(e).pipe(Object(d.a)(Object(s.a)(t._stop$,t._destroy$)))})).subscribe(function(){return t._ngZone.run(function(){return t.next()})}),t._start$.next()}),this.slides.changes.pipe(Object(d.a)(this._destroy$)).subscribe(function(){return t._cd.markForCheck()})},t.prototype.ngAfterContentChecked=function(){var t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:null},t.prototype.ngOnDestroy=function(){this._destroy$.next()},t.prototype.ngOnChanges=function(t){"interval"in t&&!t.interval.isFirstChange()&&this._start$.next()},t.prototype.select=function(t){this._cycleToSelected(t,this._getSlideEventDirection(this.activeId,t))},t.prototype.prev=function(){this._cycleToSelected(this._getPrevSlide(this.activeId),B.RIGHT)},t.prototype.next=function(){this._cycleToSelected(this._getNextSlide(this.activeId),B.LEFT)},t.prototype.pause=function(){this._stop$.next()},t.prototype.cycle=function(){this._start$.next()},t.prototype._cycleToSelected=function(t,e){var n=this._getSlideById(t);n&&n.id!==this.activeId&&(this.slide.emit({prev:this.activeId,current:n.id,direction:e}),this._start$.next(),this.activeId=n.id),this._cd.markForCheck()},t.prototype._getSlideEventDirection=function(t,e){return this._getSlideIdxById(t)>this._getSlideIdxById(e)?B.RIGHT:B.LEFT},t.prototype._getSlideById=function(t){return this.slides.find(function(e){return e.id===t})},t.prototype._getSlideIdxById=function(t){return this.slides.toArray().indexOf(this._getSlideById(t))},t.prototype._getNextSlide=function(t){var e=this.slides.toArray(),n=this._getSlideIdxById(t);return n===e.length-1?this.wrap?e[0].id:e[e.length-1].id:e[n+1].id},t.prototype._getPrevSlide=function(t){var e=this.slides.toArray(),n=this._getSlideIdxById(t);return 0===n?this.wrap?e[e.length-1].id:e[0].id:e[n-1].id},t}(),B={LEFT:"left",RIGHT:"right"},z=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),U=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),H=function(){function t(t,e,n){this.year=E(t)?t:null,this.month=E(e)?e:null,this.day=E(n)?n:null}return t.from=function(e){return e instanceof t?e:e?new t(e.year,e.month,e.day):null},t.prototype.equals=function(t){return t&&this.year===t.year&&this.month===t.month&&this.day===t.day},t.prototype.before=function(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.dayt.day:this.month>t.month:this.year>t.year)},t}();function q(t){return new H(t.getFullYear(),t.getMonth()+1,t.getDate())}function G(t){var e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function W(){return new $}var K=function(){function t(){}return t.ngInjectableDef=Object(r.defineInjectable)({factory:W,token:t,providedIn:"root"}),t}(),$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(b.__extends)(e,t),e.prototype.getDaysPerWeek=function(){return 7},e.prototype.getMonths=function(){return[1,2,3,4,5,6,7,8,9,10,11,12]},e.prototype.getWeeksPerMonth=function(){return 6},e.prototype.getNext=function(t,e,n){void 0===e&&(e="d"),void 0===n&&(n=1);var r=G(t);switch(e){case"y":return new H(t.year+n,1,1);case"m":r=new Date(t.year,t.month+n-1,1,12);break;case"d":r.setDate(r.getDate()+n);break;default:return t}return q(r)},e.prototype.getPrev=function(t,e,n){return void 0===e&&(e="d"),void 0===n&&(n=1),this.getNext(t,e,-n)},e.prototype.getWeekday=function(t){var e=G(t).getDay();return 0===e?7:e},e.prototype.getWeekNumber=function(t,e){7===e&&(e=0);var n=G(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));var r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1},e.prototype.getToday=function(){return q(new Date)},e.prototype.isValid=function(t){if(!(t&&E(t.year)&&E(t.month)&&E(t.day)))return!1;if(0===t.year)return!1;var e=G(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day},e}(K);function Y(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function Z(t,e){return!(!t&&!e||t&&e&&t.year===e.year&&t.month===e.month)}function X(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t}function Q(t,e){var n=e.minDate,r=e.maxDate,i=e.disabled,o=e.markDisabled;return!(!O(t)||i||o&&o(t,{year:t.year,month:t.month})||n&&t.before(n)||r&&t.after(r))}var J=function(){function t(){}return t.prototype.getDayNumerals=function(t){return""+t.day},t.prototype.getWeekNumerals=function(t){return""+t},t.prototype.getYearNumerals=function(t){return""+t},t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return t=Object(r.inject)(r.LOCALE_ID),new tt(t);var t},token:t,providedIn:"root"}),t}(),tt=function(t){function e(e){var n=t.call(this)||this;n._locale=e;var r=Object(i.getLocaleDayNames)(e,i.FormStyle.Standalone,i.TranslationWidth.Short);return n._weekdaysShort=r.map(function(t,e){return r[(e+1)%7]}),n._monthsShort=Object(i.getLocaleMonthNames)(e,i.FormStyle.Standalone,i.TranslationWidth.Abbreviated),n._monthsFull=Object(i.getLocaleMonthNames)(e,i.FormStyle.Standalone,i.TranslationWidth.Wide),n}return Object(b.__extends)(e,t),e.prototype.getWeekdayShortName=function(t){return this._weekdaysShort[t-1]},e.prototype.getMonthShortName=function(t){return this._monthsShort[t-1]},e.prototype.getMonthFullName=function(t){return this._monthsFull[t-1]},e.prototype.getDayAriaLabel=function(t){var e=new Date(t.year,t.month-1,t.day);return Object(i.formatDate)(e,"fullDate",this._locale)},e}(J),et=function(){function t(t,e){this._calendar=t,this._i18n=e,this._model$=new o.a,this._select$=new o.a,this._state={disabled:!1,displayMonths:1,firstDayOfWeek:1,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectBoxes:{years:[],months:[]},selectedDate:null}}return Object.defineProperty(t.prototype,"model$",{get:function(){return this._model$.pipe(Object(p.a)(function(t){return t.months.length>0}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"select$",{get:function(){return this._select$.pipe(Object(p.a)(function(t){return null!==t}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dayTemplateData",{set:function(t){this._state.dayTemplateData!==t&&this._nextState({dayTemplateData:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{set:function(t){this._state.disabled!==t&&this._nextState({disabled:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayMonths",{set:function(t){E(t=_(t))&&t>0&&this._state.displayMonths!==t&&this._nextState({displayMonths:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstDayOfWeek",{set:function(t){E(t=_(t))&&t>=0&&this._state.firstDayOfWeek!==t&&this._nextState({firstDayOfWeek:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusVisible",{set:function(t){this._state.focusVisible===t||this._state.disabled||this._nextState({focusVisible:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{set:function(t){var e=this.toValidDate(t,null);Y(this._state.maxDate,e)&&this._nextState({maxDate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markDisabled",{set:function(t){this._state.markDisabled!==t&&this._nextState({markDisabled:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{set:function(t){var e=this.toValidDate(t,null);Y(this._state.minDate,e)&&this._nextState({minDate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigation",{set:function(t){this._state.navigation!==t&&this._nextState({navigation:t})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outsideDays",{set:function(t){this._state.outsideDays!==t&&this._nextState({outsideDays:t})},enumerable:!0,configurable:!0}),t.prototype.focus=function(t){!this._state.disabled&&this._calendar.isValid(t)&&Y(this._state.focusDate,t)&&this._nextState({focusDate:t})},t.prototype.focusMove=function(t,e){this.focus(this._calendar.getNext(this._state.focusDate,t,e))},t.prototype.focusSelect=function(){Q(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})},t.prototype.open=function(t){var e=this.toValidDate(t,this._calendar.getToday());this._state.disabled||this._state.firstDate&&!Z(this._state.firstDate,t)||this._nextState({firstDate:e})},t.prototype.select=function(t,e){void 0===e&&(e={});var n=this.toValidDate(t,null);this._state.disabled||(Y(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&&Q(n,this._state)&&this._select$.next(n))},t.prototype.toValidDate=function(t,e){var n=H.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e},t.prototype._nextState=function(t){var e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)},t.prototype._patchContexts=function(t){var e=t.months,n=t.displayMonths,r=t.selectedDate,i=t.focusDate,o=t.focusVisible,a=t.disabled,s=t.outsideDays;t.months.forEach(function(t){t.weeks.forEach(function(u){u.days.forEach(function(u){i&&(u.context.focused=i.equals(u.date)&&o),u.tabindex=!a&&u.date.equals(i)&&i.month===t.number?0:-1,!0===a&&(u.context.disabled=!0),void 0!==r&&(u.context.selected=null!==r&&r.equals(u.date)),t.number!==u.date.month&&(u.hidden="hidden"===s||"collapsed"===s||n>1&&u.date.after(e[0].firstDate)&&u.date.before(e[n-1].lastDate))})})})},t.prototype._updateState=function(t){var e,n,r=Object.assign({},this._state,t),i=r.firstDate;if(("minDate"in t||"maxDate"in t)&&(function(t,e){if(e&&t&&e.before(t))throw new Error("'maxDate' "+e+" should be greater than 'minDate' "+t)}(r.minDate,r.maxDate),r.focusDate=X(r.focusDate,r.minDate,r.maxDate),r.firstDate=X(r.firstDate,r.minDate,r.maxDate),i=r.focusDate),"disabled"in t&&(r.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(i=r.selectedDate),"focusVisible"in t)return r;if("focusDate"in t&&(r.focusDate=X(r.focusDate,r.minDate,r.maxDate),i=r.focusDate,0!==r.months.length&&!r.focusDate.before(r.firstDate)&&!r.focusDate.after(r.lastDate)))return r;if("firstDate"in t&&(r.firstDate=X(r.firstDate,r.minDate,r.maxDate),i=r.firstDate),i){var o=function(t,e,n,r,i){var o=n.displayMonths,a=n.months,s=a.splice(0,a.length);return Array.from({length:o},function(n,r){var o=t.getNext(e,"m",r);if(a[r]=null,!i){var u=s.findIndex(function(t){return t.firstDate.equals(o)});-1!==u&&(a[r]=s.splice(u,1)[0])}return o}).forEach(function(e,i){null===a[i]&&(a[i]=function(t,e,n,r,i){void 0===i&&(i={});var o=n.dayTemplateData,a=n.minDate,s=n.maxDate,u=n.firstDayOfWeek,l=n.markDisabled,c=n.outsideDays,f=t.getToday();i.firstDate=null,i.lastDate=null,i.number=e.month,i.year=e.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],e=function(t,e,n){var r=t.getDaysPerWeek(),i=new H(e.year,e.month,1),o=t.getWeekday(i)%r;return t.getPrev(i,"d",(r+o-n)%r)}(t,e,u);for(var p=0;p0?o[0].firstDate:void 0,r.lastDate=o.length>0?o[o.length-1].lastDate:void 0,"selectedDate"in t&&!Q(r.selectedDate,r)&&(r.selectedDate=null),"firstDate"in t&&(void 0===r.focusDate||r.focusDate.before(r.firstDate)||r.focusDate.after(r.lastDate))&&(r.focusDate=i);var a=!this._state.firstDate||this._state.firstDate.year!==r.firstDate.year,s=!this._state.firstDate||this._state.firstDate.month!==r.firstDate.month;"select"===r.navigation?(("minDate"in t||"maxDate"in t||0===r.selectBoxes.years.length||a)&&(r.selectBoxes.years=function(t,e,n){if(!t)return[];var r=e&&e.year||t.year-10;return Array.from({length:(n&&n.year||t.year+10)-r+1},function(t,e){return r+e})}(r.firstDate,r.minDate,r.maxDate)),("minDate"in t||"maxDate"in t||0===r.selectBoxes.months.length||a)&&(r.selectBoxes.months=function(t,e,n,r){if(!e)return[];var i=t.getMonths(e.year);if(n&&e.year===n.year){var o=i.findIndex(function(t){return t===n.month});i=i.slice(o)}return r&&e.year===r.year&&(o=i.findIndex(function(t){return t===r.month}),i=i.slice(0,o+1)),i}(this._calendar,r.firstDate,r.minDate,r.maxDate))):r.selectBoxes={years:[],months:[]},"arrows"!==r.navigation&&"select"!==r.navigation||!(s||a||"minDate"in t||"maxDate"in t||"disabled"in t)||(r.prevDisabled=r.disabled||(e=r.minDate,n=this._calendar.getPrev(r.firstDate,"m"),e&&(n.year===e.year&&n.month=0&&y.top>=0&&y.right<=w&&y.bottom<=_},t}()),_t=function(){function t(t){this.i18n=t}return t.prototype.isMuted=function(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)},t}(),wt=function(){function t(t){this.i18n=t,this.select=new r.EventEmitter}return t.prototype.changeMonth=function(t){this.select.emit(new H(this.date.year,_(t),1))},t.prototype.changeYear=function(t){this.select.emit(new H(_(t),this.date.month,1))},t}(),xt=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Ct=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),St=function(){function t(){this.backdrop=!0,this.keyboard=!0}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Et=function(){return function(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}(),Ot=function(){function t(t,e,n,r,i){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=r,this._componentFactoryResolver=i}return t.prototype.open=function(t,e){return this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),0,this._injector,this._contentRef.nodes)),this._windowRef},t.prototype.close=function(){this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null,this._contentRef.viewRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef=null))},t.prototype._getContentRef=function(t,e){if(t){if(t instanceof r.TemplateRef){var n=this._viewContainerRef.createEmbeddedView(t,e);return new Et([n.rootNodes],n)}return new Et([[this._renderer.createText(""+t)]])}return new Et([])},t}(),kt=function(){},Tt=function(){function t(t){this._document=t}return t.prototype.compensate=function(){return this._isPresent()?this._adjustBody(this._getWidth()):kt},t.prototype._adjustBody=function(t){var e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=r+t+"px",function(){return e.style["padding-right"]=n}},t.prototype._isPresent=function(){var t=this._document.body.getBoundingClientRect();return t.left+t.right0},t.prototype._attachBackdrop=function(t,e){var n=t.resolveComponentFactory(Dt).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n},t.prototype._attachWindowComponent=function(t,e,n){var r=t.resolveComponentFactory(Pt).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r},t.prototype._applyWindowOptions=function(t,e){this._windowAttributes.forEach(function(n){O(e[n])&&(t[n]=e[n])})},t.prototype._applyBackdropOptions=function(t,e){this._backdropAttributes.forEach(function(n){O(e[n])&&(t[n]=e[n])})},t.prototype._getContentRef=function(t,e,n,i){return n?n instanceof r.TemplateRef?this._createFromTemplateRef(n,i):C(n)?this._createFromString(n):this._createFromComponent(t,e,n,i):new Et([])},t.prototype._createFromTemplateRef=function(t,e){var n=t.createEmbeddedView({$implicit:e,close:function(t){e.close(t)},dismiss:function(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Et([n.rootNodes],n)},t.prototype._createFromString=function(t){var e=this._document.createTextNode(""+t);return new Et([[e]])},t.prototype._createFromComponent=function(t,e,n,i){var o=t.resolveComponentFactory(n),a=r.Injector.create({providers:[{provide:It,useValue:i}],parent:e}),s=o.create(a);return this._applicationRef.attachView(s.hostView),new Et([[s.location.nativeElement]],s.hostView,s)},t.prototype._setAriaHidden=function(t){var e=this,n=t.parentElement;n&&t!==this._document.body&&(Array.from(n.children).forEach(function(n){n!==t&&"SCRIPT"!==n.nodeName&&(e._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))},t.prototype._revertAriaHidden=function(){this._ariaHiddenValues.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()},t.prototype._registerModalRef=function(t){var e=this,n=function(){var n=e._modalRefs.indexOf(t);n>-1&&e._modalRefs.splice(n,1)};this._modalRefs.push(t),t.result.then(n,n)},t.prototype._registerWindowCmpt=function(t){var e=this;this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(function(){var n=e._windowCmpts.indexOf(t);n>-1&&(e._windowCmpts.splice(n,1),e._activeWindowCmptHasChanged.next())})},t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t(Object(r.inject)(r.ApplicationRef),Object(r.inject)(r.INJECTOR),Object(r.inject)(i.DOCUMENT),Object(r.inject)(Tt),Object(r.inject)(r.RendererFactory2))},token:t,providedIn:"root"}),t}(),Nt=function(){function t(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}return t.prototype.open=function(t,e){void 0===e&&(e={});var n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)},t.prototype.dismissAll=function(t){this._modalStack.dismissAll(t)},t.prototype.hasOpenModals=function(){return this._modalStack.hasOpenModals()},t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t(Object(r.inject)(r.ComponentFactoryResolver),Object(r.inject)(r.INJECTOR),Object(r.inject)(Rt),Object(r.inject)(St))},token:t,providedIn:"root"}),t}(),jt=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Ft=function(){function t(){this.disabled=!1,this.boundaryLinks=!1,this.directionLinks=!0,this.ellipses=!0,this.maxSize=0,this.pageSize=10,this.rotate=!1}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Lt=function(){function t(t){this.pageCount=0,this.pages=[],this.page=1,this.pageChange=new r.EventEmitter(!0),this.disabled=t.disabled,this.boundaryLinks=t.boundaryLinks,this.directionLinks=t.directionLinks,this.ellipses=t.ellipses,this.maxSize=t.maxSize,this.pageSize=t.pageSize,this.rotate=t.rotate,this.size=t.size}return t.prototype.hasPrevious=function(){return this.page>1},t.prototype.hasNext=function(){return this.page0&&(t>1&&this.pages.unshift(-1),this.pages.unshift(1)),e0&&this.pageCount>this.maxSize){var i=0,o=this.pageCount;this.rotate?(i=(e=Object(b.__read)(this._applyRotation(),2))[0],o=e[1]):(i=(n=Object(b.__read)(this._applyPagination(),2))[0],o=n[1]),this.pages=this.pages.slice(i,o),this._applyEllipses(i,o)}},t}(),Vt=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Bt=function(){function t(t,e){this.open=t,this.close=e,e||(this.close=t)}return t.prototype.isManual=function(){return"manual"===this.open||"manual"===this.close},t}(),zt={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},Ut=function(t){return t>0?Object(y.a)(t):function(t){return t}},Ht=function(){function t(){}return t.prototype.isTitleTemplate=function(){return this.title instanceof r.TemplateRef},t}(),qt=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Gt=function(){function t(){this.max=100,this.animated=!1,this.striped=!1,this.showValue=!1}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Wt=function(){function t(t){this.value=0,this.max=t.max,this.animated=t.animated,this.striped=t.striped,this.type=t.type,this.showValue=t.showValue,this.height=t.height}return t.prototype.getValue=function(){return x(this.value,this.max)},t.prototype.getPercentValue=function(){return 100*this.getValue()/this.max},t}(),Kt=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),$t=function(){function t(){this.max=10,this.readonly=!1,this.resettable=!1}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Yt=function(){function t(t,e){this._changeDetectorRef=e,this.contexts=[],this.disabled=!1,this.hover=new r.EventEmitter,this.leave=new r.EventEmitter,this.rateChange=new r.EventEmitter(!0),this.onChange=function(t){},this.onTouched=function(){},this.max=t.max,this.readonly=t.readonly}return t.prototype.ariaValueText=function(){return this.nextRate+" out of "+this.max},t.prototype.enter=function(t){this.readonly||this.disabled||this._updateState(t),this.hover.emit(t)},t.prototype.handleBlur=function(){this.onTouched()},t.prototype.handleClick=function(t){this.update(this.resettable&&this.rate===t?0:t)},t.prototype.handleKeyDown=function(t){switch(t.which){case nt.ArrowDown:case nt.ArrowLeft:this.update(this.rate-1);break;case nt.ArrowUp:case nt.ArrowRight:this.update(this.rate+1);break;case nt.Home:this.update(0);break;case nt.End:this.update(this.max);break;default:return}t.preventDefault()},t.prototype.ngOnChanges=function(t){t.rate&&this.update(this.rate)},t.prototype.ngOnInit=function(){this.contexts=Array.from({length:this.max},function(t,e){return{fill:0,index:e}}),this._updateState(this.rate)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.reset=function(){this.leave.emit(this.nextRate),this._updateState(this.rate)},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.update=function(t,e){void 0===e&&(e=!0);var n=x(t,this.max,0);this.readonly||this.disabled||this.rate===n||(this.rate=n,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)},t.prototype.writeValue=function(t){this.update(t,!1),this._changeDetectorRef.markForCheck()},t.prototype._getFillValue=function(t){var e=this.nextRate-t;return e>=1?100:e<1&&e>0?parseInt((100*e).toFixed(2),10):0},t.prototype._updateState=function(t){var e=this;this.nextRate=t,this.contexts.forEach(function(t,n){return t.fill=e._getFillValue(n)})},t}(),Zt=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),Xt=function(){function t(){this.justify="start",this.orientation="horizontal",this.type="tabs"}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Qt=0,Jt=function(){return function(t){this.templateRef=t}}(),te=function(){function t(){this.id="ngb-tab-"+Qt++,this.disabled=!1}return t.prototype.ngAfterContentChecked=function(){this.titleTpl=this.titleTpls.first,this.contentTpl=this.contentTpls.first},t}(),ee=function(){function t(t){this.destroyOnHide=!0,this.tabChange=new r.EventEmitter,this.type=t.type,this.justify=t.justify,this.orientation=t.orientation}return Object.defineProperty(t.prototype,"justify",{set:function(t){this.justifyClass="fill"===t||"justified"===t?"nav-"+t:"justify-content-"+t},enumerable:!0,configurable:!0}),t.prototype.select=function(t){var e=this._getTabById(t);if(e&&!e.disabled&&this.activeId!==e.id){var n=!1;this.tabChange.emit({activeId:this.activeId,nextId:e.id,preventDefault:function(){n=!0}}),n||(this.activeId=e.id)}},t.prototype.ngAfterContentChecked=function(){var t=this._getTabById(this.activeId);this.activeId=t?t.id:this.tabs.length?this.tabs.first.id:null},t.prototype._getTabById=function(t){var e=this.tabs.filter(function(e){return e.id===t});return e.length?e[0]:null},t}(),ne=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),re=function(){function t(t,e,n){this.hour=_(t),this.minute=_(e),this.second=_(n)}return t.prototype.changeHour=function(t){void 0===t&&(t=1),this.updateHour((isNaN(this.hour)?0:this.hour)+t)},t.prototype.updateHour=function(t){this.hour=S(t)?(t<0?24+t:t)%24:NaN},t.prototype.changeMinute=function(t){void 0===t&&(t=1),this.updateMinute((isNaN(this.minute)?0:this.minute)+t)},t.prototype.updateMinute=function(t){S(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN},t.prototype.changeSecond=function(t){void 0===t&&(t=1),this.updateSecond((isNaN(this.second)?0:this.second)+t)},t.prototype.updateSecond=function(t){S(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN},t.prototype.isValid=function(t){return void 0===t&&(t=!0),S(this.hour)&&S(this.minute)&&(!t||S(this.second))},t.prototype.toString=function(){return(this.hour||0)+":"+(this.minute||0)+":"+(this.second||0)},t}(),ie=function(){function t(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}();function oe(){return new se}var ae=function(){function t(){}return t.ngInjectableDef=Object(r.defineInjectable)({factory:oe,token:t,providedIn:"root"}),t}(),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(b.__extends)(e,t),e.prototype.fromModel=function(t){return t&&E(t.hour)&&E(t.minute)?{hour:t.hour,minute:t.minute,second:E(t.second)?t.second:null}:null},e.prototype.toModel=function(t){return t&&E(t.hour)&&E(t.minute)?{hour:t.hour,minute:t.minute,second:E(t.second)?t.second:null}:null},e}(ae),ue=function(){function t(t,e,n){this._config=t,this._ngbTimeAdapter=e,this._cd=n,this.onChange=function(t){},this.onTouched=function(){},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}return Object.defineProperty(t.prototype,"hourStep",{get:function(){return this._hourStep},set:function(t){this._hourStep=E(t)?t:this._config.hourStep},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minuteStep",{get:function(){return this._minuteStep},set:function(t){this._minuteStep=E(t)?t:this._config.minuteStep},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"secondStep",{get:function(){return this._secondStep},set:function(t){this._secondStep=E(t)?t:this._config.secondStep},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this._ngbTimeAdapter.fromModel(t);this.model=e?new re(e.hour,e.minute,e.second):new re,this.seconds||e&&S(e.second)||(this.model.second=0),this._cd.markForCheck()},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype.changeHour=function(t){this.model.changeHour(t),this.propagateModelChange()},t.prototype.changeMinute=function(t){this.model.changeMinute(t),this.propagateModelChange()},t.prototype.changeSecond=function(t){this.model.changeSecond(t),this.propagateModelChange()},t.prototype.updateHour=function(t){var e=this.model.hour>=12,n=_(t);this.model.updateHour(this.meridian&&(e&&n<12||!e&&12===n)?n+12:n),this.propagateModelChange()},t.prototype.updateMinute=function(t){this.model.updateMinute(_(t)),this.propagateModelChange()},t.prototype.updateSecond=function(t){this.model.updateSecond(_(t)),this.propagateModelChange()},t.prototype.toggleMeridian=function(){this.meridian&&this.changeHour(12)},t.prototype.formatHour=function(t){return S(t)?k(this.meridian?t%12==0?12:t%12:t%24):k(NaN)},t.prototype.formatMinSec=function(t){return k(t)},Object.defineProperty(t.prototype,"isSmallSize",{get:function(){return"small"===this.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLargeSize",{get:function(){return"large"===this.size},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.seconds&&!this.seconds&&this.model&&!S(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))},t.prototype.propagateModelChange=function(t){void 0===t&&(t=!0),t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))},t}(),le=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),ce=function(){function t(){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}return t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),fe=0,pe=function(){return function(){}}(),he=function(){function t(t,e,n,i,o,a,s,u,l){var c=this;this._elementRef=t,this._renderer=e,this._ngZone=s,this._document=u,this._changeDetector=l,this.shown=new r.EventEmitter,this.hidden=new r.EventEmitter,this._ngbTooltipWindowId="ngb-tooltip-"+fe++,this.autoClose=a.autoClose,this.placement=a.placement,this.triggers=a.triggers,this.container=a.container,this.disableTooltip=a.disableTooltip,this.tooltipClass=a.tooltipClass,this.openDelay=a.openDelay,this.closeDelay=a.closeDelay,this._popupService=new Ot(pe,n,o,e,i),this._zoneSubscription=s.onStable.subscribe(function(){c._windowRef&&function(t,e,n,r,i){var o,a,s=Array.isArray(n)?n:n.split(vt),u=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],l=e.classList,c=function(t){var e=Object(b.__read)(t.split("-"),2),n=e[0],r=e[1],i=[];return i.push("bs-tooltip-"+n),r&&i.push("bs-tooltip-"+n+"-"+r),i.forEach(function(t){l.add(t)}),i};u.forEach(function(t){l.remove("bs-tooltip-"+t)});var f=s.findIndex(function(t){return"auto"===t});f>=0&&u.forEach(function(t){null==s.find(function(e){return-1!==e.search("^"+t)})&&s.splice(f++,1,t)});var p,h=e.style;h.position="absolute",h.top="0",h.left="0";var d=!1;try{for(var g=Object(b.__values)(s),m=g.next();!m.done;m=g.next()){var y=c(p=m.value);if(bt.positionElements(t,e,p,r)){d=!0;break}y.forEach(function(t){l.remove(t)})}}catch(v){o={error:v}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}d||(c(p=s[0]),bt.positionElements(t,e,p,r))}(c._elementRef.nativeElement,c._windowRef.location.nativeElement,c.placement,"body"===c.container)})}return Object.defineProperty(t.prototype,"ngbTooltip",{get:function(){return this._ngbTooltip},set:function(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()},enumerable:!0,configurable:!0}),t.prototype.open=function(t){var e,n,r,i,o,a,s=this;this._windowRef||!this._ngbTooltip||this.disableTooltip||(this._windowRef=this._popupService.open(this._ngbTooltip,t),this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),e=this._ngZone,n=this._document,i=function(){return s.close()},o=this.hidden,a=[this._windowRef.location.nativeElement],(r=this.autoClose)&&e.runOutsideAngular(function(){var t=Object(u.a)(n,"keydown").pipe(Object(d.a)(o),Object(p.a)(function(t){return t.which===nt.Escape})),s=Object(u.a)(n,dt?"touchstart":"mousedown").pipe(Object(f.a)(function(t){var e=t.target;return!(t instanceof MouseEvent&&2===t.button||pt(e,void 0))&&("inside"===r?pt(e,a)&&ht(e,void 0):"outside"===r?!pt(e,a):ht(e,void 0)||!pt(e,a))}),Object(d.a)(o)),c=Object(u.a)(n,dt?"touchend":"mouseup").pipe(Object(m.a)(s),Object(p.a)(function(t){return Object(b.__read)(t,2)[1]}),Object(y.a)(dt?16:0),Object(d.a)(o));Object(l.a)([t,c]).subscribe(function(){return e.run(i)})}),this.shown.emit())},t.prototype.close=function(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(),this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck())},t.prototype.toggle=function(){this._windowRef?this.close():this.open()},t.prototype.isOpen=function(){return null!=this._windowRef},t.prototype.ngOnInit=function(){this._unregisterListenersFn=function(t,e,n,r,i,o,a,u){void 0===a&&(a=0),void 0===u&&(u=0);var l=function(t,e){void 0===e&&(e=zt);var n=(t||"").trim();if(0===n.length)return[];var r=n.split(/\s+/).map(function(t){return t.split(":")}).map(function(t){var n=e[t[0]]||t;return new Bt(n[0],n[1])}),i=r.filter(function(t){return t.isManual()});if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===i.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===l.length&&l[0].isManual())return function(){};var h=function(t,e,n,r){return new c.a(function(i){var o=[],a=function(){return i.next(!0)},s=function(){return i.next(!1)},u=function(){return i.next(!r())};return n.forEach(function(n){n.open===n.close?o.push(t.listen(e,n.open,u)):o.push(t.listen(e,n.open,a),t.listen(e,n.close,s))}),function(){o.forEach(function(t){return t()})}})}(t,e,l,r).pipe(function(t,e,n){return function(r){var i=null,o=r.pipe(Object(f.a)(function(t){return{open:t}}),Object(p.a)(function(t){var e=n();return e===t.open||i&&i.open!==e?(i&&i.open!==t.open&&(i=null),!1):(i=t,!0)}),Object(v.a)()),a=o.pipe(Object(p.a)(function(t){return t.open}),Ut(t)),u=o.pipe(Object(p.a)(function(t){return!t.open}),Ut(e));return Object(s.a)(a,u).pipe(Object(p.a)(function(t){return t===i&&(i=null,t.open!==n())}),Object(f.a)(function(t){return t.open}))}}(a,u,r)).subscribe(function(t){return t?i():o()});return function(){return h.unsubscribe()}}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)},t.prototype.ngOnDestroy=function(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()},t}(),de=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),ge=function(){function t(){this.highlightClass="ngb-highlight"}return t.prototype.ngOnChanges=function(t){var e,n=w(this.result),r=n.toLowerCase(),i=w(this.term).toLowerCase(),o=0;this.parts=i.length>0?r.split(new RegExp("("+(e=i,e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))+")")).map(function(t){var e=n.substr(o,t.length);return o+=t.length,e}):[n]},t}(),me=function(){function t(){this.activeIdx=0,this.focusFirst=!0,this.formatter=w,this.selectEvent=new r.EventEmitter,this.activeChangeEvent=new r.EventEmitter}return t.prototype.hasActive=function(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)},t}(),ye=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}(),ve=function(){function t(){}return t.forRoot=function(){return{ngModule:t}},t}()},"5dVO":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("CcnG"),i=n("miAi"),o=function(){function t(t){this.spinnerService=t,this.spinnerText="Cargando"}return t.prototype.show=function(){this.spinnerService.show()},t.prototype.hide=function(){this.spinnerService.hide()},t.prototype.getSpinnerText=function(){return this.spinnerText},t.prototype.setSpinnerText=function(t){this.spinnerText=t},t.ngInjectableDef=r.defineInjectable({factory:function(){return new t(r.inject(i.c))},token:t,providedIn:"root"}),t}()},"60iU":function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return s});var r,i=n("G5J1"),o=n("F/XL"),a=n("XlPw");r||(r={});var s=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 Object(o.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(i.b)()}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}()},"67Y/":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i.a)},"6ahw":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("iLxQ"),i=n("DKTb"),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},"6blF":function(t,e,n){"use strict";var r=n("1fDf"),i=n("FFOo"),o=n("L/V9"),a=n("6ahw"),s=n("xTla"),u=n("y3By"),l=n("iLxQ");n.d(e,"a",function(){return c});var c=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,s=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(a.a)}(t,e,n);if(s.add(r?r.call(s,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),Object(r.a)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=f(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e0),t(e,5,0,e.context.index!==n.months.length-1)},function(t,e){var n=e.component;t(e,3,0,n.i18n.getMonthFullName(e.context.$implicit.number,e.context.$implicit.year),n.i18n.getYearNumerals(e.context.$implicit.year))})}function I(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](16777216,null,null,1,null,D)),r["\u0275did"](1,278528,null,0,o.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),r["\u0275and"](0,null,null,0))],function(t,e){t(e,1,0,e.component.months)},null)}function A(t){return r["\u0275vid"](2,[(t()(),r["\u0275eld"](0,0,null,null,2,"div",[["class","ngb-dp-arrow"]],null,null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,1,"button",[["aria-label","Previous month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Previous month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==i.navigate.emit(i.navigation.PREV)&&r),r},null,null)),(t()(),r["\u0275eld"](2,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,O)),r["\u0275did"](4,16384,null,0,o.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,I)),r["\u0275did"](6,16384,null,0,o.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275eld"](7,0,null,null,2,"div",[["class","ngb-dp-arrow right"]],null,null,null,null,null)),(t()(),r["\u0275eld"](8,0,null,null,1,"button",[["aria-label","Next month"],["class","btn btn-link ngb-dp-arrow-btn"],["title","Next month"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==i.navigate.emit(i.navigation.NEXT)&&r),r},null,null)),(t()(),r["\u0275eld"](9,0,null,null,0,"span",[["class","ngb-dp-navigation-chevron"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.showSelect),t(e,6,0,!n.showSelect)},function(t,e){var n=e.component;t(e,1,0,n.prevDisabled),t(e,8,0,n.nextDisabled)})}var M=r["\u0275crt"]({encapsulation:2,styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}"],data:{}});function P(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,3,"option",[],[[1,"aria-label",0]],null,null,null,null)),r["\u0275did"](1,147456,null,0,a.NgSelectOption,[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),r["\u0275did"](2,147456,null,0,a["\u0275angular_packages_forms_forms_s"],[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),(t()(),r["\u0275ted"](3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){var n=e.component;t(e,0,0,n.i18n.getMonthFullName(e.context.$implicit,null==n.date?null:n.date.year)),t(e,3,0,n.i18n.getMonthShortName(e.context.$implicit,null==n.date?null:n.date.year))})}function R(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,3,"option",[],null,null,null,null,null)),r["\u0275did"](1,147456,null,0,a.NgSelectOption,[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),r["\u0275did"](2,147456,null,0,a["\u0275angular_packages_forms_forms_s"],[r.ElementRef,r.Renderer2,[8,null]],{value:[0,"value"]},null),(t()(),r["\u0275ted"](3,null,["",""]))],function(t,e){t(e,1,0,e.context.$implicit),t(e,2,0,e.context.$implicit)},function(t,e){t(e,3,0,e.component.i18n.getYearNumerals(e.context.$implicit))})}function N(t){return r["\u0275vid"](2,[(t()(),r["\u0275eld"](0,0,null,null,2,"select",[["aria-label","Select month"],["class","custom-select"],["title","Select month"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==t.component.changeMonth(n.target.value)&&r),r},null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,P)),r["\u0275did"](2,278528,null,0,o.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),r["\u0275eld"](3,0,null,null,2,"select",[["aria-label","Select year"],["class","custom-select"],["title","Select year"]],[[8,"disabled",0],[8,"value",0]],[[null,"change"]],function(t,e,n){var r=!0;return"change"===e&&(r=!1!==t.component.changeYear(n.target.value)&&r),r},null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,R)),r["\u0275did"](5,278528,null,0,o.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.months),t(e,5,0,n.years)},function(t,e){var n=e.component;t(e,0,0,n.disabled,null==n.date?null:n.date.month),t(e,3,0,n.disabled,null==n.date?null:n.date.year)})}var j=r["\u0275crt"]({encapsulation:2,styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month-view{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],data:{}});function F(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","btn-light"],["ngbDatepickerDayView",""]],[[2,"bg-primary",null],[2,"text-white",null],[2,"text-muted",null],[2,"outside",null],[2,"active",null]],null,null,S,C)),r["\u0275did"](1,49152,null,0,i.X,[i.p],{currentMonth:[0,"currentMonth"],date:[1,"date"],disabled:[2,"disabled"],focused:[3,"focused"],selected:[4,"selected"]},null)],function(t,e){t(e,1,0,e.context.currentMonth,e.context.date,e.context.disabled,e.context.focused,e.context.selected)},function(t,e){t(e,0,0,r["\u0275nov"](e,1).selected,r["\u0275nov"](e,1).selected,r["\u0275nov"](e,1).isMuted(),r["\u0275nov"](e,1).isMuted(),r["\u0275nov"](e,1).focused)})}function L(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ngb-datepicker-navigation",[],null,[[null,"navigate"],[null,"select"]],function(t,e,n){var r=!0,i=t.component;return"navigate"===e&&(r=!1!==i.onNavigateEvent(n)&&r),"select"===e&&(r=!1!==i.onNavigateDateSelect(n)&&r),r},A,E)),r["\u0275did"](1,49152,null,0,i.Y,[i.p],{date:[0,"date"],disabled:[1,"disabled"],months:[2,"months"],showSelect:[3,"showSelect"],prevDisabled:[4,"prevDisabled"],nextDisabled:[5,"nextDisabled"],selectBoxes:[6,"selectBoxes"]},{navigate:"navigate",select:"select"})],function(t,e){var n=e.component;t(e,1,0,n.model.firstDate,n.model.disabled,n.model.months,"select"===n.model.navigation,n.model.prevDisabled,n.model.nextDisabled,n.model.selectBoxes)},null)}function V(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"div",[["class","ngb-dp-month-name bg-light"]],null,null,null,null,null)),(t()(),r["\u0275ted"](1,null,[" "," "," "]))],null,function(t,e){var n=e.component;t(e,1,0,n.i18n.getMonthFullName(e.parent.context.$implicit.number,e.parent.context.$implicit.year),n.i18n.getYearNumerals(e.parent.context.$implicit.year))})}function B(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,4,"div",[["class","ngb-dp-month"]],null,null,null,null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,V)),r["\u0275did"](2,16384,null,0,o.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275eld"](3,0,null,null,1,"ngb-datepicker-month-view",[["role","grid"]],null,[[null,"select"]],function(t,e,n){var r=!0;return"select"===e&&(r=!1!==t.component.onDateSelect(n)&&r),r},x,p)),r["\u0275did"](4,49152,null,0,i.W,[i.p],{dayTemplate:[0,"dayTemplate"],month:[1,"month"],showWeekdays:[2,"showWeekdays"],showWeekNumbers:[3,"showWeekNumbers"]},{select:"select"})],function(t,e){var n=e.component;t(e,2,0,"none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),t(e,4,0,n.dayTemplate||r["\u0275nov"](e.parent,1),e.context.$implicit,n.showWeekdays,n.showWeekNumbers)},null)}function z(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](0,null,null,0))],null,null)}function U(t){return r["\u0275vid"](2,[r["\u0275qud"](402653184,1,{_monthsEl:0}),(t()(),r["\u0275and"](0,[["dt",2]],null,0,null,F)),(t()(),r["\u0275eld"](2,0,null,null,2,"div",[["class","ngb-dp-header bg-light"]],null,null,null,null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,L)),r["\u0275did"](4,16384,null,0,o.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275eld"](5,0,[[1,0],["months",1]],null,2,"div",[["class","ngb-dp-months"]],null,[[null,"keydown"]],function(t,e,n){var r=!0;return"keydown"===e&&(r=!1!==t.component.onKeyDown(n)&&r),r},null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,B)),r["\u0275did"](7,278528,null,0,o.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),r["\u0275and"](16777216,null,null,1,null,z)),r["\u0275did"](9,540672,null,0,o.NgTemplateOutlet,[r.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(t,e){var n=e.component;t(e,4,0,"none"!==n.navigation),t(e,7,0,n.model.months),t(e,9,0,n.footerTemplate)},null)}function H(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,4,"ngb-datepicker",[],null,null,null,U,j)),r["\u0275prd"](5120,null,a.NG_VALUE_ACCESSOR,function(t){return[t]},[i.n]),r["\u0275prd"](512,null,i.db,i.db,[i.h,i.p]),r["\u0275prd"](512,null,i.eb,i.eb,[i.db,i.h]),r["\u0275did"](4,4964352,null,0,i.n,[i.eb,i.db,i.h,i.p,i.o,r.ChangeDetectorRef,r.ElementRef,i.m,r.NgZone],null,null)],function(t,e){t(e,4,0)},null)}var q=r["\u0275ccf"]("ngb-datepicker",i.n,H,{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},{navigate:"navigate",select:"select"},[]),G=r["\u0275crt"]({encapsulation:2,styles:["ngb-popover-window.bs-popover-bottom .arrow,ngb-popover-window.bs-popover-top .arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left .arrow,ngb-popover-window.bs-popover-top-left .arrow{left:2em}ngb-popover-window.bs-popover-bottom-right .arrow,ngb-popover-window.bs-popover-top-right .arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left .arrow,ngb-popover-window.bs-popover-right .arrow{top:50%;margin-top:-.5rem}ngb-popover-window.bs-popover-left-top .arrow,ngb-popover-window.bs-popover-right-top .arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom .arrow,ngb-popover-window.bs-popover-right-bottom .arrow{top:auto;bottom:.7em}"],data:{}});function W(t){return r["\u0275vid"](0,[(t()(),r["\u0275ted"](0,null,["",""]))],null,function(t,e){t(e,0,0,e.component.title)})}function K(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](0,null,null,0))],null,null)}function $(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,3,"h3",[["class","popover-header"]],null,null,null,null,null)),(t()(),r["\u0275and"](0,[["simpleTitle",2]],null,0,null,W)),(t()(),r["\u0275and"](16777216,null,null,1,null,K)),r["\u0275did"](3,540672,null,0,o.NgTemplateOutlet,[r.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null)],function(t,e){var n=e.component;t(e,3,0,n.context,n.isTitleTemplate()?n.title:r["\u0275nov"](e,1))},null)}function Y(t){return r["\u0275vid"](2,[(t()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,$)),r["\u0275did"](2,16384,null,0,o.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275eld"](3,0,null,null,1,"div",[["class","popover-body"]],null,null,null,null,null)),r["\u0275ncd"](null,0)],function(t,e){t(e,2,0,null!=e.component.title)},null)}function Z(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ngb-popover-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,Y,G)),r["\u0275did"](1,49152,null,0,i.ab,[],null,null)],null,function(t,e){t(e,0,0,"popover"+(r["\u0275nov"](e,1).popoverClass?" "+r["\u0275nov"](e,1).popoverClass:""),r["\u0275nov"](e,1).id)})}var X=r["\u0275ccf"]("ngb-popover-window",i.ab,Z,{title:"title",id:"id",popoverClass:"popoverClass",context:"context"},{},["*"]),Q=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function J(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](0,null,null,0))],null,null)}function tt(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,4,"li",[["class","nav-item"]],null,null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,3,"a",[["class","nav-link"],["href",""],["role","tab"]],[[8,"id",0],[2,"active",null],[2,"disabled",null],[1,"tabindex",0],[1,"aria-controls",0],[1,"aria-expanded",0],[1,"aria-disabled",0]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(t.component.select(t.context.$implicit.id),r=!1!==n.preventDefault()&&r),r},null,null)),(t()(),r["\u0275ted"](2,null,[" ",""])),(t()(),r["\u0275and"](16777216,null,null,1,null,J)),r["\u0275did"](4,540672,null,0,o.NgTemplateOutlet,[r.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(t,e){t(e,4,0,null==e.context.$implicit.titleTpl?null:e.context.$implicit.titleTpl.templateRef)},function(t,e){var n=e.component;t(e,1,0,e.context.$implicit.id,e.context.$implicit.id===n.activeId,e.context.$implicit.disabled,e.context.$implicit.disabled?"-1":void 0,n.destroyOnHide&&e.context.$implicit.id!==n.activeId?null:e.context.$implicit.id+"-panel",e.context.$implicit.id===n.activeId,e.context.$implicit.disabled),t(e,2,0,e.context.$implicit.title)})}function et(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](0,null,null,0))],null,null)}function nt(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,2,"div",[["role","tabpanel"]],[[8,"className",0],[1,"aria-labelledby",0],[8,"id",0],[1,"aria-expanded",0]],null,null,null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,et)),r["\u0275did"](2,540672,null,0,o.NgTemplateOutlet,[r.ViewContainerRef],{ngTemplateOutlet:[0,"ngTemplateOutlet"]},null)],function(t,e){t(e,2,0,null==e.parent.context.$implicit.contentTpl?null:e.parent.context.$implicit.contentTpl.templateRef)},function(t,e){var n=e.component;t(e,0,0,r["\u0275inlineInterpolate"](1,"tab-pane ",e.parent.context.$implicit.id===n.activeId?"active":null,""),e.parent.context.$implicit.id,r["\u0275inlineInterpolate"](1,"",e.parent.context.$implicit.id,"-panel"),e.parent.context.$implicit.id===n.activeId)})}function rt(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](16777216,null,null,1,null,nt)),r["\u0275did"](1,16384,null,0,o.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),r["\u0275and"](0,null,null,0))],function(t,e){var n=e.component;t(e,1,0,!n.destroyOnHide||e.context.$implicit.id===n.activeId)},null)}function it(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,2,"ul",[["role","tablist"]],[[8,"className",0]],null,null,null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,tt)),r["\u0275did"](2,278528,null,0,o.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),r["\u0275eld"](3,0,null,null,2,"div",[["class","tab-content"]],null,null,null,null,null)),(t()(),r["\u0275and"](16777216,null,null,1,null,rt)),r["\u0275did"](5,278528,null,0,o.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.tabs),t(e,5,0,n.tabs)},function(t,e){var n=e.component;t(e,0,0,"nav nav-"+n.type+("horizontal"==n.orientation?" "+n.justifyClass:" flex-column"))})}var ot=r["\u0275crt"]({encapsulation:2,styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{top:auto;bottom:.4rem}"],data:{}});function at(t){return r["\u0275vid"](2,[(t()(),r["\u0275eld"](0,0,null,null,0,"div",[["class","arrow"]],null,null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,1,"div",[["class","tooltip-inner"]],null,null,null,null,null)),r["\u0275ncd"](null,0)],null,null)}function st(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ngb-tooltip-window",[["role","tooltip"]],[[8,"className",0],[8,"id",0]],null,null,at,ot)),r["\u0275did"](1,49152,null,0,i.bb,[],null,null)],null,function(t,e){t(e,0,0,"tooltip show"+(r["\u0275nov"](e,1).tooltipClass?" "+r["\u0275nov"](e,1).tooltipClass:""),r["\u0275nov"](e,1).id)})}var ut=r["\u0275ccf"]("ngb-tooltip-window",i.bb,st,{id:"id",tooltipClass:"tooltipClass"},{},["*"]),lt=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ct(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ngb-highlight",[],null,null,null,_t,mt)),r["\u0275did"](1,573440,null,0,i.s,[],{result:[0,"result"],term:[1,"term"]},null)],function(t,e){var n=e.context.formatter(e.context.result);t(e,1,0,n,e.context.term)},null)}function ft(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](0,null,null,0))],null,null)}function pt(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,3,"button",[["class","dropdown-item"],["role","option"],["type","button"]],[[8,"id",0],[2,"active",null]],[[null,"mouseenter"],[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"mouseenter"===e&&(r=!1!==i.markActive(t.context.index)&&r),"click"===e&&(r=!1!==i.select(t.context.$implicit)&&r),r},null,null)),(t()(),r["\u0275and"](16777216,null,null,2,null,ft)),r["\u0275did"](2,540672,null,0,o.NgTemplateOutlet,[r.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r["\u0275pod"](3,{result:0,term:1,formatter:2})],function(t,e){var n=e.component,i=t(e,3,0,e.context.$implicit,n.term,n.formatter);t(e,2,0,i,n.resultTemplate||r["\u0275nov"](e.parent,0))},function(t,e){var n=e.component;t(e,0,0,n.id+"-"+e.context.index,e.context.index===n.activeIdx)})}function ht(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](0,[["rt",2]],null,0,null,ct)),(t()(),r["\u0275and"](16777216,null,null,1,null,pt)),r["\u0275did"](2,278528,null,0,o.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.results)},null)}function dt(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ngb-typeahead-window",[["class","dropdown-menu show"],["role","listbox"]],[[8,"id",0]],[[null,"mousedown"]],function(t,e,n){var r=!0;return"mousedown"===e&&(r=!1!==n.preventDefault()&&r),r},ht,lt)),r["\u0275did"](1,114688,null,0,i.cb,[],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,r["\u0275nov"](e,1).id)})}var gt=r["\u0275ccf"]("ngb-typeahead-window",i.cb,dt,{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate"},{selectEvent:"select",activeChangeEvent:"activeChange"},[]),mt=r["\u0275crt"]({encapsulation:2,styles:[".ngb-highlight{font-weight:700}"],data:{}});function yt(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),r["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,e.component.highlightClass),t(e,1,0,e.parent.context.$implicit)})}function vt(t){return r["\u0275vid"](0,[(t()(),r["\u0275ted"](0,null,["",""]))],null,function(t,e){t(e,0,0,e.parent.context.$implicit)})}function bt(t){return r["\u0275vid"](0,[(t()(),r["\u0275and"](16777216,null,null,1,null,yt)),r["\u0275did"](1,16384,null,0,o.NgIf,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),r["\u0275and"](0,[["even",2]],null,0,null,vt))],function(t,e){t(e,1,0,e.context.odd,r["\u0275nov"](e,2))},null)}function _t(t){return r["\u0275vid"](2,[(t()(),r["\u0275and"](16777216,null,null,1,null,bt)),r["\u0275did"](1,278528,null,0,o.NgForOf,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,1,0,e.component.parts)},null)}var wt=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function xt(t){return r["\u0275vid"](0,[],null,null)}function Ct(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ngb-modal-backdrop",[["style","z-index: 1050"]],[[8,"className",0]],null,null,xt,wt)),r["\u0275did"](1,49152,null,0,i.fb,[],null,null)],null,function(t,e){t(e,0,0,"modal-backdrop fade show"+(r["\u0275nov"](e,1).backdropClass?" "+r["\u0275nov"](e,1).backdropClass:""))})}var St=r["\u0275ccf"]("ngb-modal-backdrop",i.fb,Ct,{backdropClass:"backdropClass"},{},[]),Et=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Ot(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,2,"div",[["role","document"]],[[8,"className",0]],null,null,null,null)),(t()(),r["\u0275eld"](1,0,null,null,1,"div",[["class","modal-content"]],null,null,null,null,null)),r["\u0275ncd"](null,0)],null,function(t,e){var n=e.component;t(e,0,0,"modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":""))})}function kt(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ngb-modal-window",[["role","dialog"],["tabindex","-1"]],[[8,"className",0],[1,"aria-modal",0],[1,"aria-labelledby",0]],[[null,"keyup.esc"],[null,"click"]],function(t,e,n){var i=!0;return"keyup.esc"===e&&(i=!1!==r["\u0275nov"](t,1).escKey(n)&&i),"click"===e&&(i=!1!==r["\u0275nov"](t,1).backdropClick(n)&&i),i},Ot,Et)),r["\u0275did"](1,4440064,null,0,i.gb,[o.DOCUMENT,r.ElementRef],null,null)],function(t,e){t(e,1,0)},function(t,e){t(e,0,0,"modal fade show d-block"+(r["\u0275nov"](e,1).windowClass?" "+r["\u0275nov"](e,1).windowClass:""),!0,r["\u0275nov"](e,1).ariaLabelledBy)})}var Tt=r["\u0275ccf"]("ngb-modal-window",i.gb,kt,{ariaLabelledBy:"ariaLabelledBy",backdrop:"backdrop",centered:"centered",keyboard:"keyboard",size:"size",windowClass:"windowClass"},{dismissEvent:"dismiss"},["*"])},"9Z1F":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),i=n("MGBS"),o=n("rPjj"),a=n("zotm");function s(t){return function(e){var n=new u(t),r=e.lift(n);return n.caught=r}}var u=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.selector,this.caught))},t}(),l=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(i){return void t.prototype.error.call(this,i)}this._unsubscribeAndRecycle();var r=new o.a(this,void 0,void 0);this.add(r),Object(a.a)(this,n,void 0,void 0,r)}},e}(i.a)},ADQ8:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=[{label:"Usuario",main:[{main_state:"user",state:"profile",name:"Mi Perfil",type:"link",icon:"ti-user",level:3}],level:3},{label:"Compa\xf1ia",main:[{state:"companies",name:"Listar",type:"link",icon:"ti-home",level:1},{state:"Dias festivos por compa\xf1ia",name:"Index",type:"link",icon:"ti-home",level:1}],level:1},{label:"ADMINISTRATIVO",main:[{main_state:"admin",state:"contrato",name:"Gesti\xf3n de Contratos",type:"link",icon:"ti-pencil-alt",level:2},{main_state:"admin",state:"centro-costo",name:"Centro de costos",type:"link",icon:"ti-layers",level:1},{main_state:"admin",state:"jobs",name:"Cargos",type:"link",icon:"ti-receipt",level:1}],level:2},{label:"USUARIOS",main:[{main_state:"admin",state:"users",name:"Administraci\xf3n de usuarios",type:"link",icon:"ti-direction-alt",level:1}],level:1},{label:"SALUD",main:[{main_state:"admin",state:"survey",name:"Encuestas",type:"link",icon:"ti-clipboard",level:3}],level:3},{label:"REPORTES",main:[{main_state:"admin",state:"reporte-cargos",name:"Cargos",type:"link",icon:"ti-envelope",level:1},{main_state:"admin",state:"reporte-centro-costo",name:"Centros de costo",type:"link",icon:"ti-layout",level:1},{main_state:"admin",state:"reporte-contrato",name:"Contratos",type:"link",icon:"ti-pencil-alt",level:1},{main_state:"admin",state:"reportes",name:"Vacaciones",type:"link",icon:"ti-map-alt",level:1}],level:1},{label:"IMPORTACION",staff:!0,main:[{main_state:"admin",state:"importa-data",name:"Importacion masiva datos",type:"link",icon:"ti-upload",level:1,staff:!0},{main_state:"admin",state:"importa-certificado",name:"Cargue de documentos",type:"link",icon:"ti-zip",level:1,staff:!0}],level:1}],i=function(){function t(){}return t.prototype.getAll=function(){return r},t}()},AKJO:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"swing",function(){return fn}),n.d(r,"linear",function(){return pn}),n.d(r,"easeOutElastic",function(){return hn});var i={extend:function(t){for(var e in this)"extend"!==e&&(t[e]=this[e])},observers:function(){return this._observers=this._observers||[],this._observers},addObserver:function(t){return this._observers?this._observers.push(t):this._observers=[t],this},removeObserver:function(t){var e=this.observers(),n=e.indexOf(t);return-1!==n&&e.splice(n,1),this},trigger:function(t,e){var n=this._observers;if(n&&!this._suspended)for(var r=0;r/g;function d(t){return String(t).replace(l,"&").replace(c,"<").replace(h,">").replace(f,""").replace(p,"'")}function g(t){return"function"==typeof t}function m(t){return"string"==typeof t?[t]:t}function y(){this._defaultPrevented=!0}function v(){return!0===this._defaultPrevented}var b=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.bind=function(t,e,n){var r=arguments,i=this,o=m(t),a=g(e),s=o.length;if(void 0===e){for(var u in t)i.bind(u,t[u]);return this}for(var l=function(t){var s=o[t],u=a?e:e[s];if(u){if(n){var l=u;(u=function(){i.unbind(s,u),l.apply(i,r)}).original=l}(i._events[s]=i._events[s]||[]).push(u)}},c=0;c=0;r--)n[r]!==e&&n[r].original!==e||n.splice(r,1);else this._events[t]=[];return this},e}(u),_={};"undefined"!=typeof window&&(_.browser=function(t){var e,n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var r in n)if(n.hasOwnProperty(r)){var i=t.match(n[r]);if(i){(e={})[r]=!0,e[i[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.documentMode||i[2],10);break}}return e}(window.navigator.userAgent));var w=_;function x(){return(new Date).getTime()}var C={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},S=w.browser,E=function(t){var e=Object.keys(C);e.push("transparent");var n=new RegExp("^("+e.join("|")+")(\\W|$)","i");return E=function(t){return n.exec(t)},n.exec(t)},O=function(t){function e(){t.call(this)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toHSV=function(){return this},e.prototype.toRGB=function(){return this},e.prototype.toHex=function(){return this.toBytes().toHex()},e.prototype.toBytes=function(){return this},e.prototype.toCss=function(){return"#"+this.toHex()},e.prototype.toCssRgba=function(){var t=this.toBytes();return"rgba("+t.r+", "+t.g+", "+t.b+", "+parseFloat(Number(this.a).toFixed(3))+")"},e.prototype.toDisplay=function(){return S.msie&&S.version<9?this.toCss():this.toCssRgba()},e.prototype.equals=function(t){return t===this||null!==t&&this.toCssRgba()===P(t).toCssRgba()},e.prototype.diff=function(t){if(null===t)return NaN;var e=this.toBytes(),n=t.toBytes();return Math.sqrt(Math.pow(.3*(e.r-n.r),2)+Math.pow(.59*(e.g-n.g),2)+Math.pow(.11*(e.b-n.b),2))},e.prototype.clone=function(){var t=this.toBytes();return t===this&&(t=new T(t.r,t.g,t.b,t.a)),t},e}(u),k=function(t){function e(e,n,r,i){t.call(this),this.r=e,this.g=n,this.b=r,this.a=i}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toHSV=function(){var t,e,n=this.r,r=this.g,i=this.b,o=Math.min(n,r,i),a=Math.max(n,r,i),s=a-o,u=a;return 0===s?new I(0,0,u,this.a):(0!==a?(e=s/a,t=n===a?(r-i)/s:r===a?2+(i-n)/s:4+(n-r)/s,(t*=60)<0&&(t+=360)):(e=0,t=-1),new I(t,e,u,this.a))},e.prototype.toHSL=function(){var t,e,n=this.r,r=this.g,i=this.b,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;if(o===a)t=e=0;else{var u=o-a;switch(e=s>.5?u/(2-o-a):u/(o+a),o){case n:t=(r-i)/u+(rr.length;)r=n+r;return r}var I=function(t){function e(e,n,r,i){t.call(this),this.h=e,this.s=n,this.v=r,this.a=i}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toRGB=function(){var t,e,n,r=this.h,i=this.s,o=this.v;if(0===i)t=e=n=o;else{r/=60;var a=Math.floor(r),s=r-a,u=o*(1-i),l=o*(1-i*s),c=o*(1-i*(1-s));switch(a){case 0:t=o,e=c,n=u;break;case 1:t=l,e=o,n=u;break;case 2:t=u,e=o,n=c;break;case 3:t=u,e=l,n=o;break;case 4:t=c,e=u,n=o;break;default:t=o,e=u,n=l}}return new k(t,e,n,this.a)},e.prototype.toHSL=function(){return this.toRGB().toHSL()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(O),A=function(t){function e(e,n,r,i){t.call(this),this.h=e,this.s=n,this.l=r,this.a=i}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toRGB=function(){var t,e,n,r=this.h/360,i=this.s/100,o=this.l/100;if(0===i)t=e=n=o;else{var a=o<.5?o*(1+i):o+i-o*i,s=2*o-a;t=M(s,a,r+1/3),e=M(s,a,r),n=M(s,a,r-1/3)}return new k(t,e,n,this.a)},e.prototype.toHSV=function(){return this.toRGB().toHSV()},e.prototype.toBytes=function(){return this.toRGB().toBytes()},e}(O);function M(t,e,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function P(t,e){var n,r;if(null==t||"none"===t)return null;if(t instanceof O)return t;var i=t.toLowerCase();if(n=E(i))return(i="transparent"===n[1]?new k(1,1,1,0):P(C[n[1]],e)).match=[n[1]],i;if((n=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(i))?r=new T(parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16),1):(n=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(i))?r=new T(parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16),1):(n=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(i))?r=new T(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),1):(n=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(i))?r=new T(parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10),parseFloat(n[4])):(n=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(i))?r=new k(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,1):(n=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(i))&&(r=new k(parseFloat(n[1])/100,parseFloat(n[2])/100,parseFloat(n[3])/100,parseFloat(n[4]))),r)r.match=n;else if(!e)throw new Error("Cannot parse color: "+i);return r}var R=function(t){function e(n){if(t.call(this),1===arguments.length)for(var r=e.formats,i=this.resolveColor(n),o=0;o255?255:t},e.prototype.padDigit=function(t){return 1===t.length?"0"+t:t},e.prototype.brightness=function(t){var e=Math.round;return this.r=e(this.normalizeByte(this.r*t)),this.g=e(this.normalizeByte(this.g*t)),this.b=e(this.normalizeByte(this.b*t)),this},e.prototype.percBrightness=function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)},e.fromBytes=function(t,e,n,r){return new T(t,e,n,null!=r?r:1)},e.fromRGB=function(t,e,n,r){return new k(t,e,n,null!=r?r:1)},e.fromHSV=function(t,e,n,r){return new I(t,e,n,null!=r?r:1)},e.fromHSL=function(t,e,n,r){return new A(t,e,n,null!=r?r:1)},e}(u);R.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],R.namedColors=C;var N=R;function j(t,e){return t.push.apply(t,e),t}var F={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1000:"m"};function L(t){for(var e=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],n="";t>0;)t=this._size?(n[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++},e.prototype.get=function(t){var e=this._map[t];if(e)return e===this._head&&e!==this._tail&&(this._head=e.newer,this._head.older=null),e!==this._tail&&(e.older&&(e.older.newer=e.newer,e.newer.older=e.older),e.older=this._tail,e.newer=null,this._tail.newer=e,this._tail=e),e.value},e}(u),at=/\r?\n|\r|\t/g,st=" ";function ut(t){return String(t).replace(at,st)}var lt,ct={baselineMarkerSize:1};"undefined"!=typeof document&&((lt=document.createElement("div")).style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");var ft=function(t){function e(e){t.call(this),this._cache=new ot(1e3),this.options=Object.assign({},ct,e)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.measure=function(t,e,n){if(void 0===n&&(n={}),!t)return{width:0,height:0,baseline:0};var r=function(t){for(var e=2166136261,n=0;n>>0}(t+function(t){var e=[];for(var n in t)e.push(n+t[n]);return e.sort().join("")}(e)),i=this._cache.get(r);if(i)return i;var o={width:0,height:0,baseline:0},a=n.box||lt,s=this._baselineMarker().cloneNode(!1);for(var u in e){var l=e[u];void 0!==l&&(a.style[u]=l)}var c=!1!==n.normalizeText?ut(t):String(t);return a.textContent=c,a.appendChild(s),document.body.appendChild(a),c.length&&(o.width=a.offsetWidth-this.options.baselineMarkerSize,o.height=a.offsetHeight,o.baseline=s.offsetTop+this.options.baselineMarkerSize),o.width>0&&o.height>0&&this._cache.put(r,o),a.parentNode.removeChild(a),o},e.prototype._baselineMarker=function(){var t=document.createElement("div");return t.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",t},e}(u);ft.current=new ft;var pt=ft;function ht(t,e,n){return pt.current.measure(t,e,n)}var dt={}.toString,gt=function(t){function e(e,n){for(var r in void 0===n&&(n=""),t.call(this),this.prefix=n,e){var i=e[r];i=this._wrap(i,r),this[r]=i}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){for(var e=t.split("."),n=this;e.length&&n;)n=n[e.shift()];return n},e.prototype.set=function(t,e){this.get(t)!==e&&(this._set(t,this._wrap(e,t)),this.optionsChange({field:this.prefix+t,value:e}))},e.prototype._set=function(t,n){var r=t.indexOf(".")>=0,i=this,o=t;if(r){for(var a=o.split("."),s=this.prefix;a.length>1;){s+=(o=a.shift())+".";var u=i[o];u||((u=new e({},s)).addObserver(this),i[o]=u),i=u}o=a[0]}i._clear(o),i[o]=n},e.prototype._clear=function(t){var e=this[t];e&&e.removeObserver&&e.removeObserver(this)},e.prototype._wrap=function(n,r){var i=dt.call(n),o=n;return null!==o&&z(o)&&"[object Object]"===i&&(n instanceof e||n instanceof t||(o=new e(o,this.prefix+r+".")),o.addObserver(this)),o},e}(u);i.extend(gt.prototype);var mt=gt;function yt(t){return function(e){return this[t]!==e&&(this[t]=e,this.geometryChange()),this}}function vt(t){return function(){return this[t]}}function bt(t,e){for(var n=0;n0&&!$(t.color)},e.prototype._clippedBBox=function(t){return this.bbox(t)},e}(u);Mt.prototype.nodeType="Element",i.extend(Mt.prototype);var Pt=Mt;function Rt(t,e,n,r){var i=0,o=0;return r&&(i=Math.atan2(r.c*n,r.a*e),0!==r.b&&(o=Math.atan2(r.d*n,r.b*e))),{x:i,y:o}}var Nt=Math.PI/2,jt=function(t){function e(e,n){void 0===e&&(e=new St),void 0===n&&(n=0),t.call(this),this.setCenter(e),this.setRadius(n)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.setCenter=function(t){return this._observerField("center",St.create(t)),this.geometryChange(),this},e.prototype.getCenter=function(){return this.center},e.prototype.equals=function(t){return t&&t.center.equals(this.center)&&t.radius===this.radius},e.prototype.clone=function(){return new e(this.center.clone(),this.radius)},e.prototype.pointAt=function(t){return this._pointAt(X(t))},e.prototype.bbox=function(t){for(var e=Rt(0,this.radius,this.radius,t),n=St.maxPoint(),r=St.minPoint(),i=0;i<4;i++){var o=this._pointAt(e.x+i*Nt).transformCopy(t),a=this._pointAt(e.y+i*Nt).transformCopy(t),s=new St(o.x,a.y);n=St.min(n,s),r=St.max(r,s)}return Tt.fromPoints(n,r)},e.prototype._pointAt=function(t){var e=this.center,n=this.radius;return new St(e.x+n*Math.cos(t),e.y+n*Math.sin(t))},e.prototype.containsPoint=function(t){var e=this.center,n=this.radius;return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n,2)},e.prototype._isOnPath=function(t,e){var n=this.radius,r=this.center.distanceTo(t);return n-e<=r&&r<=n+e},e}(u);bt(jt.prototype,["radius"]),i.extend(jt.prototype);var Ft=jt,Lt={extend:function(t){t.fill=this.fill,t.stroke=this.stroke},fill:function(t,e){var n=this.options;if(z(t)){if(t&&"Gradient"!==t.nodeType){var r={color:t};z(e)&&(r.opacity=e),n.set("fill",r)}else n.set("fill",t);return this}return n.get("fill")},stroke:function(t,e,n){return z(t)?(this.options.set("stroke.color",t),z(e)&&this.options.set("stroke.width",e),z(n)&&this.options.set("stroke.opacity",n),this):this.options.get("stroke")}},Vt=wt.IDENTITY.toString(),Bt={extend:function(t){t.bbox=this.bbox,t.geometryChange=this.geometryChange},bbox:function(t){var e,n=xt(this.currentTransform(t)),r=n?n.toString():Vt;this._bboxCache&&this._matrixHash===r?e=this._bboxCache.clone():(e=this._bbox(n),this._bboxCache=e?e.clone():null,this._matrixHash=r);var i=this.options.get("stroke.width");return i&&e&&e.expand(i/2),e},geometryChange:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}};function zt(t){var e="_"+t;return function(t){return z(t)?(this._observerField(e,t),this.geometryChange(),this):this[e]}}function Ut(t,e){for(var n=0;ne||n&&t===e)&&(e+=360),{startAngle:t,endAngle:e}},e.prototype._intervalCurvePoints=function(t,e,n){var r=this.pointAt(t),i=this.pointAt(e),o=this._derivativeAt(t),a=this._derivativeAt(e),s=(X(e)-X(t))/3,u=new St(r.x+s*o.x,r.y+s*o.y),l=new St(i.x-s*a.x,i.y-s*a.y);return n&&(r.transform(n),i.transform(n),u.transform(n),l.transform(n)),{p1:r,cp1:u,cp2:l,p2:i}},e.prototype._derivativeAt=function(t){var e=X(t);return new St(-this.radiusX*Math.sin(e),this.radiusY*Math.cos(e))},e.prototype.containsPoint=function(t){var e,n=this._arcInterval(),r=n.endAngle-n.startAngle,i=this.center,o=this.radiusX,a=this.radiusY,s=i.distanceTo(t),u=Math.atan2(t.y-i.y,t.x-i.x),l=o*a/Math.sqrt(Yt(o,2)*Yt(Math.sin(u),2)+Yt(a,2)*Yt(Math.cos(u),2)),c=this.pointAt(this.startAngle).round(Wt),f=this.pointAt(this.endAngle).round(Wt),p=function(t,e,n,r){var i=e.x-t.x,o=f.x-c.x,a=e.y-t.y,s=f.y-c.y,u=t.x-c.x,l=t.y-c.y,p=i*s-o*a,h=(i*l-a*u)/p,d=(o*l-s*u)/p;if(h>=0&&h<=1&&d>=0&&d<=1)return new St(t.x+d*i,t.y+d*a)}(i,t.round(Wt));if(r<180)e=p&&$t(i.distanceTo(p),s)&&$t(s,l);else{var h=Xt(i.x,i.y,o,a,t.x,t.y);360!==h&&(h=(360+h)%360);var d=n.startAngle<=h&&h<=n.endAngle;e=d&&$t(s,l)||!d&&(!p||p.equals(t))}return e},e.prototype._isOnPath=function(t,e){var n=this._arcInterval(),r=this.center,i=Xt(r.x,r.y,this.radiusX,this.radiusY,t.x,t.y);return 360!==i&&(i=(360+i)%360),n.startAngle<=i&&i<=n.endAngle&&this.pointAt(i).distanceTo(t)<=e},e.fromPoints=function(t,n,r,i,o,a,s){var u=function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.rx,a=t.ry,s=t.largeArc,u=t.swipe,l=t.rotation;void 0===l&&(l=0);var c=X(l),f=Math.cos(c),p=Math.sin(c),h=f*(e-r)/2+p*(n-i)/2,d=-p*(e-r)/2+f*(n-i)/2,g=s!==u?1:-1,m=Math.pow(h,2),y=Math.pow(d,2),v=Math.pow(o,2),b=Math.pow(a,2),_=m/v+y/b;_>1&&(o*=_=Math.sqrt(m/v+y/b),v=Math.pow(o,2),a*=_,b=Math.pow(a,2));var w=g*Math.sqrt((v*b-v*y-b*m)/(v*y+b*m));isNaN(w)&&(w=0);var x=w*(o*d)/a,C=a*h*-w/o,S=f*x-p*C+(e+r)/2,E=p*x+f*C+(n+i)/2,O=(h-x)/o,k=(d-C)/a,T=-(h+x)/o,D=-(d+C)/a,I=(k>=0?1:-1)*K(Math.acos(O/Math.sqrt(O*O+k*k))),A=Q((O*T+k*D)/(Math.sqrt(O*O+k*k)*Math.sqrt(T*T+D*D)),10),M=(O*D-k*T>=0?1:-1)*K(Math.acos(A));!u&&M>0&&(M-=360),u&&M<0&&(M+=360);var P=I+M,R=P>=0?1:-1;return P=Math.abs(P)%360*R,{center:new St(S,E),startAngle:I,endAngle:P,radiusX:o,radiusY:a,xRotation:l}}({x1:t.x,y1:t.y,x2:n.x,y2:n.y,rx:r,ry:i,largeArc:o,swipe:a,rotation:s});return new e(u.center,{startAngle:u.startAngle,endAngle:u.endAngle,radiusX:u.radiusX,radiusY:u.radiusY,xRotation:u.xRotation,anticlockwise:0===a})},e}(u);function Xt(t,e,n,r,i,o){var a=Q((i-t)/n,3),s=Q((o-e)/r,3);return Q(K(Math.atan2(s,a)))}function Qt(t,e){for(var n=t;n0?n.x-i:o-n.x)/(o-i)+a-n.y>=0}return r?1:0}var be=function(t){function e(e,n,r){t.call(this),this.anchor(e||new St),this.controlIn(n),this.controlOut(r)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.bboxTo=function(t,e){var n=this.anchor().transformCopy(e),r=t.anchor().transformCopy(e);return this.controlOut()&&t.controlIn()?this._curveBoundingBox(n,this.controlOut().transformCopy(e),t.controlIn().transformCopy(e),r):this._lineBoundingBox(n,r)},e.prototype._lineBoundingBox=function(t,e){return Tt.fromPoints(t,e)},e.prototype._curveBoundingBox=function(t,e,n,r){var i=[t,e,n,r],o=this._curveExtremesFor(i,"x"),a=this._curveExtremesFor(i,"y"),s=_e([o.min,o.max,t.x,r.x]),u=_e([a.min,a.max,t.y,r.y]);return Tt.fromPoints(new St(s.min,u.min),new St(s.max,u.max))},e.prototype._curveExtremesFor=function(t,e){var n=this._curveExtremes(t[0][e],t[1][e],t[2][e],t[3][e]);return{min:pe(n.min,e,t),max:pe(n.max,e,t)}},e.prototype._curveExtremes=function(t,e,n,r){var i=t-3*e+3*n-r,o=-2*(t-2*e+n),a=t-e,s=Math.sqrt(o*o-4*i*a),u=0,l=1;0===i?0!==o&&(u=l=-a/o):isNaN(s)||(u=(-o+s)/(2*i),l=(-o-s)/(2*i));var c=Math.max(Math.min(u,l),0);(c<0||c>1)&&(c=0);var f=Math.min(Math.max(u,l),1);return(f>1||f<0)&&(f=1),{min:c,max:f}},e.prototype._intersectionsTo=function(t,e){return this.controlOut()&&t.controlIn()?function(t,e,n){for(var r,i=he(t,"x"),o=me(i[0],i[1],i[2],i[3]-e.x),a=0,s=0;se.y)&&((0===o[s]||1===o[s])&&n.bottomRight().x>e.x||00&&Y(this.paths).lineTo(t,e),this},e.prototype.curveTo=function(t,e,n){return this.paths.length>0&&Y(this.paths).curveTo(t,e,n),this},e.prototype.arc=function(t,e,n,r,i){return this.paths.length>0&&Y(this.paths).arc(t,e,n,r,i),this},e.prototype.arcTo=function(t,e,n,r,i,o){return this.paths.length>0&&Y(this.paths).arcTo(t,e,n,r,i,o),this},e.prototype.close=function(){return this.paths.length>0&&Y(this.paths).close(),this},e.prototype._bbox=function(t){return xe(this.paths,!0,t)},e.prototype.rawBBox=function(){return xe(this.paths,!1)},e.prototype._containsPoint=function(t){for(var e=this.paths,n=0;n2&&(s="l",l.splice(0,2))),Ie[s])Ie[s](r,{parameters:l,position:i,isRelative:u,previousCommand:n}),a&&"z"===a.toLowerCase()&&r.close();else if("m"!==s)throw new Error("Error while parsing SVG path. Unsupported command: "+s);n=s}),r},e}(u);Pe.current=new Pe;var Re=Pe,Ne=function(t){function e(e){t.call(this,e),this.segments=new ue,this.segments.addObserver(this),z(this.options.stroke)||(this.stroke("#000"),z(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.moveTo=function(t,e){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(t,e),this},e.prototype.lineTo=function(t,e){var n=z(e)?new St(t,e):t,r=new we(n);return this.segments.push(r),this},e.prototype.curveTo=function(t,e,n){if(this.segments.length>0){var r=Y(this.segments),i=new we(n,e);this.suspend(),r.controlOut(t),this.resume(),this.segments.push(i)}return this},e.prototype.arc=function(t,e,n,r,i){if(this.segments.length>0){var o=Y(this.segments).anchor(),a=X(t),s=new St(o.x-n*Math.cos(a),o.y-r*Math.sin(a)),u=new Jt(s,{startAngle:t,endAngle:e,radiusX:n,radiusY:r,anticlockwise:i});this._addArcSegments(u)}return this},e.prototype.arcTo=function(t,e,n,r,i,o){if(this.segments.length>0){var a=Y(this.segments).anchor(),s=Jt.fromPoints(a,t,e,n,r,i,o);this._addArcSegments(s)}return this},e.prototype._addArcSegments=function(t){this.suspend();for(var e=t.curvePoints(),n=1;n1){if(n[0]._isOnPathTo(n[1],t,i,"start"))return!0;for(var o=2;o<=r-2;o++)if(n[o-1]._isOnPathTo(n[o],t,i))return!0;if(n[r-2]._isOnPathTo(n[r-1],t,i,"end"))return!0}return!1},e.prototype._bbox=function(t){var e,n=this.segments,r=n.length;if(1===r){var i=n[0].anchor().transformCopy(t);e=new Tt(i,Ot.ZERO)}else if(r>0)for(var o=1;o0){t.moveTo(e[0].x,e[0].y);for(var n=1;n=0&&(this.children.splice(e,1),t.parent=null,this.childrenChange("remove",[t],e)),this},e.prototype.removeAt=function(t){if(0<=t&&t=0;n--)e(t[n],n)},Je=(function(t){function e(e,n){t.call(this,Object.assign({},Ze,n)),this._rect=e,this._fieldMap={}}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.rect=function(t){return t?(this._rect=t,this):this._rect},e.prototype._initMap=function(){var t=this.options,e=this._fieldMap;"horizontal"===t.orientation?(e.sizeField="width",e.groupsSizeField="height",e.groupAxis="x",e.groupsAxis="y"):(e.sizeField="height",e.groupsSizeField="width",e.groupAxis="y",e.groupsAxis="x"),t.reverse?(this.forEach=Qe,this.justifyAlign=Ye):(this.forEach=Xe,this.justifyAlign=$e)},e.prototype.reflow=function(){if(this._rect&&0!==this.children.length){this._initMap(),this.options.transform&&this.transform(null);for(var t,e,n,r=this.options,i=this._rect,o=this._initGroups(),a=o.groups,s=o.groupsSize,u=this._fieldMap,l=u.sizeField,c=u.groupsSizeField,f=u.groupAxis,p=u.groupsAxis,h=new St,d=new St,g=new Ot,m=$e(s,i,r.alignContent,p,c),y=function(i,o){var a=e.elements[o];d[f]=t,d[p]=$e(i.size[c],n,r.alignItems,p,c),function(t,e,n){var r=n.transform()||At(),i=r.matrix();i.e+=t.x-e.origin.x,i.f+=t.y-e.origin.y,r.matrix(i),n.transform(r)}(d,i,a),t+=i.size[l]+r.spacing},v=0;vi.size[l]){var b=i.size[l]/n.size[l],_=n.topLeft().scale(b,b),w=$e(n.size[c]*b,i,r.alignContent,p,c),x=At();"x"===f?x.translate(i.origin.x-_.x,w-_.y):x.translate(w-_.x,i.origin.y-_.y),x.scale(b,b),this.transform(x)}}},e.prototype._initGroups=function(){for(var t=this.options,e=this.children,n=t.lineSpacing,r=t.wrap,i=t.spacing,o=this._fieldMap.sizeField,a=this._newGroup(),s=[],u=function(){s.push(a),l+=a.lineSize+n},l=-n,c=0;cthis._rect.size[o]?0===a.bboxes.length?(this._addToGroup(a,p,f),u(),a=this._newGroup()):(u(),a=this._newGroup(),this._addToGroup(a,p,f)):this._addToGroup(a,p,f))}return a.bboxes.length&&u(),{groups:s,groupsSize:l}},e.prototype._addToGroup=function(t,e,n){t.size+=e.size[this._fieldMap.sizeField]+this.options.spacing,t.lineSize=Math.max(e.size[this._fieldMap.groupsSizeField],t.lineSize),t.bboxes.push(e),t.elements.push(n)},e.prototype._newGroup=function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}(Ke),function(t){function e(e,n){void 0===e&&(e=new Tt),void 0===n&&(n={}),t.call(this,n),this.geometry(e),z(this.options.stroke)||this.stroke("#000")}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._bbox=function(t){return this._geometry.bbox(t)},e.prototype.rawBBox=function(){return this._geometry.bbox()},e.prototype._containsPoint=function(t){return this._geometry.containsPoint(t)},e.prototype._isOnPath=function(t){return this.geometry()._isOnPath(t,this.options.stroke.width/2)},e}(Pt));Je.prototype.nodeType="Rect",Lt.extend(Je.prototype),Bt.extend(Je.prototype),Ut(Je.prototype,["geometry"]);var tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._change=function(){this.optionsChange({field:"stops"})},e}(se);function en(t){return function(e){return z(e)?(this.options.set(t,e),this):this.options.get(t)}}var nn=function(t){function e(e,n,r){t.call(this),this.options=new mt({offset:e,color:n,opacity:z(r)?r:1}),this.options.addObserver(this)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.create=function(t){if(z(t))return t instanceof e?t:t.length>1?new e(t[0],t[1],t[2]):new e(t.offset,t.color,t.opacity)},e}(u);!function(t,e){for(var n=0;n=0&&this.stops.splice(e,1)},e}(u);on.prototype.nodeType="Gradient",i.extend(on.prototype),Object.assign(on.prototype,{optionsChange:function(t){this.trigger("optionsChange",{field:"gradient"+(t?"."+t.field:""),value:this})},geometryChange:function(){this.optionsChange()}});var an=on,sn=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.start(e.start||new St),this.end(e.end||new St(1,0))}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(an);ce(sn.prototype,["start","end"]);var un=sn,ln=function(t){function e(e){void 0===e&&(e={}),t.call(this,e),this.center(e.center||new St),this._radius=z(e.radius)?e.radius:1,this._fallbackFill=e.fallbackFill}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.radius=function(t){return z(t)?(this._radius=t,this.geometryChange(),this):this._radius},e.prototype.fallbackFill=function(t){return z(t)?(this._fallbackFill=t,this.optionsChange(),this):this._fallbackFill},e}(an);ce(ln.prototype,["center"]);var cn=ln;function fn(t){return.5-Math.cos(t*Math.PI)/2}function pn(t){return t}function hn(t,e,n,r){var i=1.70158,o=0,a=r;return 0===t?n:1===t?n+r:(o||(o=.5),a0||e.height>0)&&(!n||e.width!==n.width||e.height!==n.height))&&(this.currentSize(e),this._resize(e,t),this.trigger("resize",e))},e.prototype.size=function(t){if(!t)return this.getSize();this.setSize(t)},e.prototype.suspendTracking=function(){this._suspendedTracking=!0},e.prototype.resumeTracking=function(){this._suspendedTracking=!1},e.prototype._enableTracking=function(){},e.prototype._resize=function(){},e.prototype._handler=function(t){var e=this;return function(n){var r=e.eventTarget(n);r&&!e._suspendedTracking&&e.trigger(t,{element:r,originalEvent:n,type:t})}},e.prototype._elementOffset=function(){var t=this.element,e=et(t,["paddingLeft","paddingTop"]),n=e.paddingLeft,r=e.paddingTop,i=function(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||0),left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}}(t),o=i.top;return{left:i.left+parseInt(n,10),top:o+parseInt(r,10)}},e.prototype._surfacePoint=function(t){var e=this._elementOffset(),n=function(t){return z((t.x||{}).location)?{x:t.x.location,y:t.y.location}:{x:t.pageX||t.clientX||0,y:t.pageY||t.clientY||0}}(t);return new St(n.x-e.left,n.y-e.top)},e}(b);wn.create=function(t,e){return bn.current.create(t,e)},wn.support={};var xn=wn,Cn=function(t){function e(e){t.call(this),this.childNodes=[],this.parent=null,e&&(this.srcElement=e,this.observe())}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){this.srcElement&&this.srcElement.removeObserver(this);for(var t=this.childNodes,e=0;e0&&o.load(i);var a=this.element;a&&o.attachTo(a,e)}},e.prototype.root=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.attachTo=function(t,e){var n=document.createElement("div");Mn(n,""+this.render()+"");var r=n.firstChild.firstChild;r&&(z(e)?t.insertBefore(r,t.childNodes[e]||null):t.appendChild(r),this.setElement(r))},e.prototype.setElement=function(t){this.element&&(this.element._kendoNode=null),this.element=t,this.element._kendoNode=this;for(var e=this.childNodes,n=0;n"},e.prototype.renderOffset=function(){return Sn("offset",this.srcElement.offset())},e.prototype.mapStyle=function(){var t=this.srcElement;return[["stop-color",t.color()],["stop-opacity",t.opacity()]]},e.prototype.optionsChange=function(t){"offset"===t.field?this.attr(t.field,t.value):"color"!==t.field&&"opacity"!==t.field||this.css("stop-"+t.field,t.value)},e}(Nn),Fn=function(t){function e(e){t.call(this,e),this.id=e.id,this.loadStops()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.loadStops=function(){for(var t=this.srcElement.stops,e=this.element,n=0;n"+this.renderChildren()+""},e.prototype.mapCoordinates=function(){var t=this.srcElement,e=t.start(),n=t.end();return[["x1",e.x],["y1",e.y],["x2",n.x],["y2",n.y],this.mapSpace()]},e}(Fn),Vn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.template=function(){return""+this.renderChildren()+""},e.prototype.mapCoordinates=function(){var t=this.srcElement,e=t.center(),n=t.radius();return[["cx",e.x],["cy",e.y],["r",n],this.mapSpace()]},e}(Fn),Bn=function(t){function e(e){t.call(this),this.srcElement=e,this.id=e.id,this.load([e])}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.template=function(){return""+this.renderChildren()+""},e}(Nn),zn=function(t){function e(){t.call(this),this.definitionMap={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.attachTo=function(t){this.element=t},e.prototype.template=function(){return""+this.renderChildren()+""},e.prototype.definitionChange=function(t){var e=t.definitions,n=t.action;"add"===n?this.addDefinitions(e):"remove"===n&&this.removeDefinitions(e)},e.prototype.createDefinition=function(t,e){var n;return"clip"===t?n=Bn:"fill"===t&&(e instanceof un?n=Ln:e instanceof cn&&(n=Vn)),new n(e)},e.prototype.addDefinitions=function(t){for(var e in t)this.addDefinition(e,t[e])},e.prototype.addDefinition=function(t,e){var n=this.element,r=this.definitionMap,i=e.id,o=r[i];if(o)o.count++;else{var a=this.createDefinition(t,e);r[i]={element:a,count:1},this.append(a),n&&a.attachTo(this.element)}},e.prototype.removeDefinitions=function(t){for(var e in t)this.removeDefinition(t[e])},e.prototype.removeDefinition=function(t){var e=this.definitionMap,n=t.id,r=e[n];r&&(r.count--,0===r.count&&(this.remove(this.childNodes.indexOf(r.element),1),delete e[n]))},e}(Nn),Un=function(t){function e(e){t.call(this),this.options=e,this.defs=new zn}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.attachTo=function(t){this.element=t,this.defs.attachTo(t.firstElementChild)},e.prototype.clear=function(){Cn.prototype.clear.call(this)},e.prototype.template=function(){return this.defs.render()+this.renderChildren()},e.prototype.definitionChange=function(t){this.defs.definitionChange(t)},e}(Nn),Hn="rtl",qn=function(t){function e(e,n){t.call(this,e,n),this._root=new Un(Object.assign({rtl:et(e,"direction").direction===Hn},this.options)),Mn(this.element,this._template()),this._rootElement=this.element.firstElementChild,function(t){var e;try{e=t.getScreenCTM?t.getScreenCTM():null}catch(o){}if(e){var n=-e.e%1,r=-e.f%1,i=t.style;0===n&&0===r||(i.left=n+"px",i.top=r+"px")}}(this._rootElement),this._root.attachTo(this._rootElement),tt(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,it(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),t.prototype.destroy.call(this)},e.prototype.translate=function(t){var e=Math.round(t.x)+" "+Math.round(t.y)+" "+this._size.width+" "+this._size.height;this._offset=t,this._rootElement.setAttribute("viewBox",e)},e.prototype.draw=function(e){t.prototype.draw.call(this,e),this._root.load([e])},e.prototype.clear=function(){t.prototype.clear.call(this),this._root.clear()},e.prototype.svg=function(){return""+this._template()},e.prototype.exportVisual=function(){var t=this._visual,e=this._offset;if(e){var n=new Ke;n.children.push(t),n.transform(At().translate(-e.x,-e.y)),t=n}return t},e.prototype._resize=function(){this._offset&&this.translate(this._offset)},e.prototype._template=function(){return""+this._root.render()+""},e}(xn);qn.prototype.type="svg","undefined"!=typeof document&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(xn.support.svg=!0,bn.current.register("svg",qn,10));var Gn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.template=function(){return""+this.renderChildren()+""},e.prototype.optionsChange=function(e){"transform"===e.field&&this.transformChange(e.value),t.prototype.optionsChange.call(this,e)},e}(Nn);kn.Group=Gn;var Wn={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},Kn={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},$n=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){this.attr("d",this.renderData()),this.invalidate()},e.prototype.optionsChange=function(e){switch(e.field){case"fill":e.value?this.allAttr(this.mapFill(e.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:e.value}));break;case"stroke":e.value?this.allAttr(this.mapStroke(e.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(e.value);break;default:var n=Kn[e.field];n&&this.attr(n,e.value)}t.prototype.optionsChange.call(this,e)},e.prototype.content=function(){this.element&&(this.element.textContent=this.srcElement.content())},e.prototype.renderData=function(){return this.printPath(this.srcElement)},e.prototype.printPath=function(t){var e=t.segments,n=e.length;if(n>0){for(var r,i,o=[],a=1;a"},e}(Nn);kn.Path=$n;var Yn=$n,Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderData=function(){return this.printPath(this.srcElement.toPath())},e}(Yn);kn.Arc=Zn;var Xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){var t=this.center();this.attr("cx",t.x),this.attr("cy",t.y),this.attr("r",this.radius()),this.invalidate()},e.prototype.center=function(){return this.srcElement.geometry().center},e.prototype.radius=function(){return this.srcElement.geometry().radius},e.prototype.template=function(){return""},e}(Yn);kn.Circle=Xn;var Qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){var t=this.srcElement.geometry();this.attr("x",t.origin.x),this.attr("y",t.origin.y),this.attr("width",t.size.width),this.attr("height",t.size.height),this.invalidate()},e.prototype.size=function(){return this.srcElement.geometry().size},e.prototype.origin=function(){return this.srcElement.geometry().origin},e.prototype.template=function(){return""},e}(Yn);kn.Rect=Qn;var Jn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){this.allAttr(this.mapPosition()),this.invalidate()},e.prototype.optionsChange=function(e){"src"===e.field&&this.allAttr(this.mapSource()),t.prototype.optionsChange.call(this,e)},e.prototype.mapPosition=function(){var t=this.srcElement.rect(),e=t.topLeft();return[["x",e.x],["y",e.y],["width",t.width()+"px"],["height",t.height()+"px"]]},e.prototype.renderPosition=function(){return En(this.mapPosition())},e.prototype.mapSource=function(t){var e=this.srcElement.src();return t&&(e=d(e)),[["xlink:href",e]]},e.prototype.renderSource=function(){return En(this.mapSource(!0))},e.prototype.template=function(){return""},e}(Yn);kn.Image=Jn;var tr=/&(?:[a-zA-Z]+|#\d+);/g;function er(t){if(!t||"string"!=typeof t||!tr.test(t))return t;var e=er._element;return tr.lastIndex=0,t.replace(tr,function(t){return e.innerHTML=t,e.textContent||e.innerText})}"undefined"!=typeof document&&(er._element=document.createElement("span"));var nr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.geometryChange=function(){var t=this.pos();this.attr("x",t.x),this.attr("y",t.y),this.invalidate()},e.prototype.optionsChange=function(e){"font"===e.field?(this.attr("style",On(this.mapStyle())),this.geometryChange()):"content"===e.field&&t.prototype.content.call(this,this.srcElement.content()),t.prototype.optionsChange.call(this,e)},e.prototype.mapStyle=function(e){var n=t.prototype.mapStyle.call(this,e),r=this.srcElement.options.font;return e&&(r=d(r)),n.push(["font",r],["white-space","pre"]),n},e.prototype.pos=function(){var t=this.srcElement.position(),e=this.srcElement.measure();return t.clone().setY(t.y+e.baseline)},e.prototype.renderContent=function(){var t=this.srcElement.content();return ut(t=d(t=er(t)))},e.prototype.renderTextAnchor=function(){var t;return!(this.options||{}).rtl||w.browser.msie||w.browser.edge||(t="end"),Sn("text-anchor",t)},e.prototype.template=function(){return""+this.renderContent()+""},e}(Yn);kn.Text=nr;var rr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderData=function(){var t=this.srcElement.paths;if(t.length>0){for(var e=[],n=0;n0&&a.load(o,e,n),z(e)?this.insertAt(a,e):this.append(a)}},e.prototype.load=function(t,e,n){this.loadElements(t,e,n),this.invalidate()},e.prototype.setOpacity=function(t){if(this.srcElement){var e=this.srcElement.opacity();z(e)&&this.globalAlpha(t,e)}},e.prototype.globalAlpha=function(t,e){var n=e;n&&t.globalAlpha&&(n*=t.globalAlpha),t.globalAlpha=n},e.prototype.visible=function(){var t=this.srcElement;return!t||t&&!1!==t.options.visible},e}(Cn),sr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderTo=function(t){if(this.visible()){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t);for(var e=this.childNodes,n=0;ne?a():n=setTimeout(a,e-i)};return i.cancel=function(){clearTimeout(n)},i}(function(){s(n)},ur)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this.canvas=null,this.ctx=null},e.prototype.load=function(t,e,n){this.loadElements(t,e,n),this._invalidate()},e.prototype._invalidate=function(){this.ctx&&(this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))},e}(sr);Ge(lr.prototype,"childNodes");var cr=lr,fr=function(t){function e(){t.call(this),this.shapes=[]}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._add=function(t,e){this.shapes.push({bbox:e,shape:t}),t._quadNode=this},e.prototype.pointShapes=function(t){for(var e=this.shapes,n=e.length,r=[],i=0;ie._zIndex?-1:0}var dr=function(t){function e(){t.call(this),this.initRoots()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.initRoots=function(){this.rootMap={},this.root=new fr,this.rootElements=[]},e.prototype.clear=function(){for(var t=this.rootElements,e=0;e0;)(e=t.pop()).addObserver(this),"Group"===e.nodeType?j(t,e.children):this._insertShape(e)},e.prototype._insertShape=function(t){var e=t.bbox();if(e){var n=this.getSectors(e),r=n[0][0],i=n[1][0];if(this.inRoot(n))this.root.insert(t,e);else{var o=this.rootMap;o[r]||(o[r]={}),o[r][i]||(o[r][i]=new pr(new Tt([3e3*r,3e3*i],[3e3,3e3]))),o[r][i].insert(t,e)}}},e.prototype.remove=function(t){if(t.removeObserver(this),"Group"===t.nodeType)for(var e=t.children,n=0;n1||t[1].length>1},e.prototype.getSectors=function(t){for(var e=t.bottomRight(),n=Math.floor(e.x/3e3),r=Math.floor(e.y/3e3),i=[[],[]],o=Math.floor(t.origin.x/3e3);o<=n;o++)i[0].push(o);for(var a=Math.floor(t.origin.y/3e3);a<=r;a++)i[1].push(a);return i},e}(u),gr=function(t){t.bind("mouseenter",this._mouseenter.bind(this)),t.bind("mouseleave",this._mouseleave.bind(this)),this.element=t.element};gr.prototype.clear=function(){this._resetCursor()},gr.prototype.destroy=function(){this._resetCursor(),delete this.element},gr.prototype._mouseenter=function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()},gr.prototype._mouseleave=function(){this._resetCursor()},gr.prototype._shapeCursor=function(t){for(var e=t.element;e&&!z(e.options.cursor);)e=e.parent;if(e)return e.options.cursor},gr.prototype._getCursor=function(){if(this.element)return this.element.style.cursor},gr.prototype._setCursor=function(t){this.element&&(this.element.style.cursor=t,this._current=t)},gr.prototype._resetCursor=function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)};var mr=gr,yr=function(t){function e(e,n){t.call(this,e,n),this.element.innerHTML=this._template(this);var r=this.element.firstElementChild,i=rt(e);r.width=i.width,r.height=i.height,this._rootElement=r,this._root=new cr(r),this._mouseTrackHandler=this._trackMouse.bind(this),tt(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.destroy=function(){t.prototype.destroy.call(this),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),it(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})},e.prototype.draw=function(e){t.prototype.draw.call(this,e),this._root.load([e],void 0,this.options.cors),this._searchTree&&this._searchTree.add([e])},e.prototype.clear=function(){t.prototype.clear.call(this),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()},e.prototype.eventTarget=function(t){if(this._searchTree){var e=this._surfacePoint(t);return this._searchTree.pointShape(e)}},e.prototype.image=function(){var t=this._root,e=this._rootElement,n=[];t.traverse(function(t){t.loading&&n.push(t.loading)});var r,i=V(),o=function(){t._invalidate();try{var n=e.toDataURL();i.resolve(n)}catch(r){i.reject(r)}};return(r=n,Promise.all(r)).then(o,o),i},e.prototype.suspendTracking=function(){t.prototype.suspendTracking.call(this),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)},e.prototype.resumeTracking=function(){if(t.prototype.resumeTracking.call(this),!this._searchTree){this._searchTree=new dr;for(var e=this._root.childNodes,n=[],r=0;r"},e.prototype._enableTracking=function(){this._searchTree=new dr,this._cursor=new mr(this),t.prototype._enableTracking.call(this)},e.prototype._trackMouse=function(t){if(!this._suspendedTracking){var e=this.eventTarget(t);if("click"!==t.type){var n=this._currentShape;n&&n!==e&&this.trigger("mouseleave",{element:n,originalEvent:t,type:"mouseleave"}),e&&n!==e&&this.trigger("mouseenter",{element:e,originalEvent:t,type:"mouseenter"}),this.trigger("mousemove",{element:e,originalEvent:t,type:"mousemove"}),this._currentShape=e}else e&&this.trigger("click",{element:e,originalEvent:t,type:"click"})}},e}(xn);yr.prototype.type="canvas","undefined"!=typeof document&&document.createElement("canvas").getContext&&(xn.support.canvas=!0,bn.current.register("canvas",yr,20));var vr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderTo=function(t){t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),this.renderPoints(t,this.srcElement),this.setLineDash(t),this.setLineCap(t),this.setLineJoin(t),this.setFill(t),this.setStroke(t),t.restore()},e.prototype.setFill=function(t){var e=this.srcElement.options.fill,n=!1;return e&&("Gradient"===e.nodeType?(this.setGradientFill(t,e),n=!0):$(e.color)||(t.fillStyle=e.color,t.save(),this.globalAlpha(t,e.opacity),t.fill(),t.restore(),n=!0)),n},e.prototype.setGradientFill=function(t,e){var n,r=this.srcElement.rawBBox();if(e instanceof un){var i=e.start(),o=e.end();n=t.createLinearGradient(i.x,i.y,o.x,o.y)}else if(e instanceof cn){var a=e.center();n=t.createRadialGradient(a.x,a.y,0,a.x,a.y,e.radius())}!function(t,e){for(var n=0;n0)return t.strokeStyle=e.color,t.lineWidth=J(e.width,1),t.save(),this.globalAlpha(t,e.opacity),t.stroke(),t.restore(),!0},e.prototype.dashType=function(){var t=this.srcElement.options.stroke;if(t&&t.dashType)return t.dashType.toLowerCase()},e.prototype.setLineDash=function(t){var e=this.dashType();if(e&&"solid"!==e){var n=Wn[e];t.setLineDash?t.setLineDash(n):(t.mozDash=n,t.webkitLineDash=n)}},e.prototype.setLineCap=function(t){var e=this.dashType(),n=this.srcElement.options.stroke;e&&"solid"!==e?t.lineCap="butt":n&&n.lineCap&&(t.lineCap=n.lineCap)},e.prototype.setLineJoin=function(t){var e=this.srcElement.options.stroke;e&&e.lineJoin&&(t.lineJoin=e.lineJoin)},e.prototype.renderPoints=function(t,e){or(t,e)},e}(ar);ir.Path=vr;var br=vr,_r=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderPoints=function(t){or(t,this.srcElement.toPath())},e}(br);ir.Arc=_r;var wr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),n=e.center;t.arc(n.x,n.y,e.radius,0,2*Math.PI)},e}(br);ir.Circle=wr;var xr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderPoints=function(t){var e=this.srcElement.geometry(),n=e.origin,r=e.size;t.rect(n.x,n.y,r.width,r.height)},e}(br);ir.Rect=xr;var Cr=function(t){function e(e,n){t.call(this,e),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=V();var r=this.img=new Image;n&&!/^data:/i.test(e.src())&&(r.crossOrigin=n),r.src=e.src(),r.complete?this.onLoad():(r.onload=this.onLoad,r.onerror=this.onError)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderTo=function(t){"resolved"===this.loading.state()&&(t.save(),this.setTransform(t),this.setClip(t),this.drawImage(t),t.restore())},e.prototype.optionsChange=function(e){"src"===e.field?(this.loading=V(),this.img.src=this.srcElement.src()):t.prototype.optionsChange.call(this,e)},e.prototype.onLoad=function(){this.loading.resolve(),this.invalidate()},e.prototype.onError=function(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))},e.prototype.drawImage=function(t){var e=this.srcElement.rect(),n=e.topLeft();t.drawImage(this.img,n.x,n.y,e.width(),e.height())},e}(br);ir.Image=Cr;var Sr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderTo=function(t){var e=this.srcElement,n=e.position(),r=e.measure();t.save(),this.setTransform(t),this.setClip(t),this.setOpacity(t),t.beginPath(),t.font=e.options.font,t.textAlign="left",this.setFill(t)&&t.fillText(e.content(),n.x,n.y+r.baseline),this.setStroke(t)&&(this.setLineDash(t),t.strokeText(e.content(),n.x,n.y+r.baseline)),t.restore()},e}(br);ir.Text=Sr;var Er=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.renderPoints=function(t){for(var e=this.srcElement.paths,n=0;n9),Tr=(Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=0,r=e.length,i=[];n>>2,c=(3&s)<<6|u;i.push(o<<2|a>>>4),64!=s&&i.push(l),64!=u&&i.push(c)}return i},encode:function(t){for(var e=0,n=t.length,r="";e>>4,u=(15&o)<<2|a>>>6,l=63&a;e-n==2?u=l=64:e-n==1&&(l=64),r+=Or.charAt(i>>>2)+Or.charAt(s)+Or.charAt(u)+Or.charAt(l)}return r}});function Dr(t){var e=0,n=0;null==t?t=kr?new Uint8Array(256):[]:n=t.length;var r=kr?function(e){if(e>=t.length){var n=new Uint8Array(Math.max(e+256,2*t.length));n.set(t,0),t=n}}:function(){},i=kr?function(){return new Uint8Array(t.buffer,0,n)}:function(){return t},o=kr?function(i){if("string"==typeof i)return g(i);var o=i.length;r(e+o),t.set(i,e),(e+=o)>n&&(n=e)}:function(t){if("string"==typeof t)return g(t);for(var e=0;en&&(n=e)}function u(){return a()<<8|a()}function l(t){s(t>>8),s(t)}function c(){return 65536*u()+u()}function f(t){l(t>>>16&65535),l(65535&t)}function p(){var t=c();return t>=2147483648?t-4294967296:t}function h(t){f(t<0?t+4294967296:t)}function d(t){return m(t,a)}function g(t){for(var e=0;e=n},readByte:a,writeByte:s,readShort:u,writeShort:l,readLong:c,writeLong:f,readFixed:function(){return c()/65536},writeFixed:function(t){f(Math.round(65536*t))},readShort_:function(){var t=u();return t>=32768?t-65536:t},writeShort_:function(t){l(t<0?t+65536:t)},readLong_:p,writeLong_:h,readFixed_:function(){return p()/65536},writeFixed_:function(t){h(Math.round(65536*t))},read:d,write:o,readString:function(t){return String.fromCharCode.apply(String,d(t))},writeString:g,times:m,get:i,slice:kr?function(e,n){if(t.buffer.slice)return new Uint8Array(t.buffer.slice(e,e+n));var r=new Uint8Array(n);return r.set(new Uint8Array(t.buffer,e,n)),r}:function(e,n){return t.slice(e,e+n)},offset:function(t){return null!=t?(e=t,y):e},skip:function(t){e+=t},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return n},saveExcursion:function(t){var n=e;try{return t()}finally{e=n}},writeBase64:function(t){window.atob?g(window.atob(t)):o(Tr.decode(t))},base64:function(){return Tr.encode(i())}};return y}function Ir(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ar(t){return Object.keys(t).sort(function(t,e){return t-e}).map(parseFloat)}function Mr(t){this.raw=t,this.scalerType=t.readLong(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort();for(var e=this.tables={},n=0;n65535,r=0;r=0?n.push(a):(n.push(Rr.length+r.length),r.push(o))}for(e.writeShort(t.length),i=0;i0;)n[e++]=t.readShort();break;case 12:t.readShort(),r.length=t.readLong(),r.language=t.readLong();for(var m=t.readLong();m-- >0;){e=t.readLong();for(var y=t.readLong(),v=t.readLong();e<=y;)n[e++]=v++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+r.format)}})}return Pr({parse:function(e){var n=this,r=n.offset;e.offset(r),n.codeMap={},n.version=e.readShort();var i=e.readShort();n.tables=e.times(i,function(){return new t(e,r,n.codeMap)})},render:function(t,e){var n=Dr();return n.writeShort(0),n.writeShort(1),n.write(function(t,e){var n=Ar(t),r=[],i=[],o=null,a=null;function s(n){return e[t[n]]}for(var u=0;u=32768){m.push(0),y.push(2*(v.length+f-u));for(var x=b;x<=_;++x)v.push(s(x))}else m.push(w-b),y.push(0)}var C=Dr();return C.writeShort(3),C.writeShort(1),C.writeLong(12),C.writeShort(4),C.writeShort(16+8*f+2*v.length),C.writeShort(0),C.writeShort(p),C.writeShort(h),C.writeShort(d),C.writeShort(g),i.forEach(C.writeShort),C.writeShort(0),r.forEach(C.writeShort),m.forEach(C.writeShort_),y.forEach(C.writeShort),v.forEach(C.writeShort),C.get()}(t,e)),n.get()}})}(),qr=Pr({parse:function(t){t.offset(this.offset),this.version=t.readShort(),this.averageCharWidth=t.readShort_(),this.weightClass=t.readShort(),this.widthClass=t.readShort(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort_(),this.ySubscriptYSize=t.readShort_(),this.ySubscriptXOffset=t.readShort_(),this.ySubscriptYOffset=t.readShort_(),this.ySuperscriptXSize=t.readShort_(),this.ySuperscriptYSize=t.readShort_(),this.ySuperscriptXOffset=t.readShort_(),this.ySuperscriptYOffset=t.readShort_(),this.yStrikeoutSize=t.readShort_(),this.yStrikeoutPosition=t.readShort_(),this.familyClass=t.readShort_(),this.panose=t.times(10,t.readByte),this.charRange=t.times(4,t.readLong),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort_(),this.descent=t.readShort_(),this.lineGap=t.readShort_(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=t.times(2,t.readLong),this.version>1&&(this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()))},render:function(){return this.raw()}}),Gr=1e5;function Wr(t){this.font=t,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=function(){for(var t="",e=String(Gr),n=0;n=55296&&e<=56319&&i=0&&(o=o.replace(/\.?0+$/,"")),"-0"==o&&(o="0"),e.writeString(o)}else/string|boolean/.test(typeof i)?e.writeString(String(i)):"function"==typeof i.get?e.write(i.get()):"object"==typeof i&&(i?n(new Si(i)):e.writeString("null"))}}return n.writeData=function(t){e.write(t)},n.withIndent=function(e){++t,e(n),--t},n.indent=function(){n(Zr,si("",2*t," ")),n.apply(null,arguments)},n.offset=function(){return e.offset()},n.toString=function(){throw new Error("FIX CALLER")},n.get=function(){return e.get()},n.stream=function(){return e},n}function ti(t){if("function"!=typeof t){var e=t;t=function(t,n){return t in e?e[t]:n}}var n=t("paperSize",Qr.a4);if(!n)return{};if("string"==typeof n&&null==(n=Qr[n.toLowerCase()]))throw new Error("Unknown paper size");n[0]=mi(n[0]),n[1]=mi(n[1]),t("landscape",!1)&&(n=[Math.max(n[0],n[1]),Math.min(n[0],n[1])]);var r=t("margin");return r&&(r="string"==typeof r||"number"==typeof r?{left:r=mi(r,0),top:r,right:r,bottom:r}:{left:mi(r.left,0),top:mi(r.top,0),right:mi(r.right,0),bottom:mi(r.bottom,0)},t("addMargin")&&(n[0]+=r.left+r.right,n[1]+=r.top+r.bottom)),{paperSize:n,margin:r}}function ei(t){var e=this,n=Jr(),r=0,i=[];function o(e,n){return t&&null!=t[e]?t[e]:n}e.getOption=o,e.attach=function(t){return i.indexOf(t)<0&&(function(t,e){var n=t.beforeRender,r=t.render;t.beforeRender=function(){},t.render=function(t){t(e," 0 R")},t.renderFull=function(i){t._offset=i.offset(),i(e," 0 obj "),n.call(t,i),r.call(t,i),i(" endobj")}}(t,++r),i.push(t)),t},e.pages=[],e.FONTS={},e.IMAGES={},e.GRAD_COL_FUNCTIONS={},e.GRAD_OPC_FUNCTIONS={},e.GRAD_COL={},e.GRAD_OPC={};var a=e.attach(new Oi),s=e.attach(new ki);if(o("autoPrint")){var u={};u.JavaScript=new Si({Names:[new bi("JS"),e.attach(new Si({S:Ci("JavaScript"),JS:new bi("print(true);")}))]}),a.props.Names=new Si(u)}a.setPages(s);var l=e.attach(new Si({Producer:new bi(o("producer","Kendo UI PDF Generator")),Title:new bi(o("title","")),Author:new bi(o("author","")),Subject:new bi(o("subject","")),Keywords:new bi(o("keywords","")),Creator:new bi(o("creator","Kendo UI PDF Generator")),CreationDate:o("date",new Date)}));e.addPage=function(t){var n=ti(function(e,n){return t&&null!=t[e]?t[e]:n}),r=n.paperSize,i=n.margin,o=r[0],a=r[1];i&&(o-=i.left+i.right,a-=i.top+i.bottom);var u=new Ei(Jr(),null,!0),l={Contents:e.attach(u),Parent:s,MediaBox:[0,0,r[0],r[1]]},c=new Fi(e,l);return c._content=u,s.addPage(e.attach(c)),c.transform(1,0,0,-1,0,r[1]),i&&(c.translate(i.left,i.top),c.rect(0,0,o,a),c.clip()),e.pages.push(c),c},e.render=function(){var t;for(n("%PDF-1.4",Zr,"%\xc2\xc1\xda\xcf\xce",Zr,Zr),t=0;t0;)ni(t[r],i)}),ai=function(t,e){var n=Object.keys(t),r=n.length;if(0===r)return e();function i(){0==--r&&e()}n.forEach(function(e){!function(t,e,n){var r,i,o=ii[t];if(o)n(o);else if(o=new Image,/^data:/i.test(t)||(o.crossOrigin="Anonymous"),kr&&!/^data:/i.test(t)){var a=new XMLHttpRequest;a.onload=function(){i=a.response,s(r=URL.createObjectURL(i))},a.onerror=l,a.open("GET",t,!0),a.responseType="blob",a.send()}else s(t);function s(t){o.src=t,o.complete&&!Yr.msie?c():(o.onload=c,o.onerror=l)}function u(){e||(e={width:o.width,height:o.height});var i=document.createElement("canvas");i.width=e.width,i.height=e.height;var a,s=i.getContext("2d");s.drawImage(o,0,0,e.width,e.height);try{a=s.getImageData(0,0,e.width,e.height)}catch(y){return void l()}finally{r&&URL.revokeObjectURL(r)}for(var u=!1,c=Dr(),f=Dr(),p=a.data,h=0;h=o.width||e.height>=o.height)&&(e=null),!e&&i&&/^image\/jpe?g$/i.test(i.type)){var a=new FileReader;a.onload=function(){try{var e=new Di(Dr(new Uint8Array(this.result)));URL.revokeObjectURL(r),n(ii[t]=e)}catch(i){u()}},a.readAsArrayBuffer(i)}else u()}}(e,t[e],i)})};function si(t,e,n){for(;t.length0&&e.withIndent(function(){for(var n=0;n0&&n%8==0?e.indent(t[n]):e(" ",t[n])}),e(" ]")}function pi(t,e){e("(D:",ui(t.getUTCFullYear(),4),ui(t.getUTCMonth()+1,2),ui(t.getUTCDate(),2),ui(t.getUTCHours(),2),ui(t.getUTCMinutes(),2),ui(t.getUTCSeconds(),2),"Z)")}function hi(t){return t*(72/25.4)}function di(t){return hi(10*t)}function gi(t){return 72*t}function mi(t,e){if("number"==typeof t)return t;var n;if("string"==typeof t&&(n=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(t))){var r=parseFloat(n[1]);if(!isNaN(r))return"pt"==n[2]?r:{mm:hi,cm:di,in:gi}[n[2]](r)}if(null!=e)return e;throw new Error("Can't parse unit: "+t)}function yi(){}function vi(t,e,n){for(var r in n||(n=yi),t.prototype=new n,e)li(e,r)&&(t.prototype[r]=e[r]);return t}yi.prototype.beforeRender=function(){};var bi=vi(function(t){this.value=t},{render:function(t){for(var e="",n=this.value,r=0;r")}},bi),wi=vi(function(t){this.name=t},{render:function(t){t("/"+this.escape())},escape:function(){return this.name.replace(/[^\x21-\x7E]/g,function(t){return"#"+ui(t.charCodeAt(0).toString(16),2)})},toString:function(){return this.name}}),xi={};function Ci(t){return li(xi,t)?xi[t]:xi[t]=new wi(t)}wi.get=Ci;var Si=vi(function(t){this.props=t},{render:function(t){var e=this.props,n=!0;t("<<"),t.withIndent(function(){for(var r in e)li(e,r)&&!/^_/.test(r)&&(n=!1,t.indent(Ci(r)," ",e[r]))}),n||t.indent(),t(">>")}}),Ei=vi(function(t,e,n){if("string"==typeof t){var r=Dr();r.write(t),t=r}this.data=t,this.props=e||{},this.compress=n},{render:function(t){var e=this.data.get(),n=this.props;this.compress&&(n.Filter?n.Filter instanceof Array||(n.Filter=[n.Filter]):n.Filter=[],n.Filter.unshift(Ci("FlateDecode")),e=$r(e)),n.Length=e.length,t(new Si(n)," stream",Zr),t.writeData(e),t(Zr,"endstream")}}),Oi=vi(function(){this.props={Type:Ci("Catalog")}},{setPages:function(t){this.props.Pages=t}},Si),ki=vi(function(){this.props={Type:Ci("Pages"),Kids:[],Count:0}},{addPage:function(t){this.props.Kids.push(t),this.props.Count++}},Si),Ti=[192,193,194,195,197,198,199,201,202,203,205,206,207];function Di(t){var e,n,r,i;if(t.offset(0),65496!=t.readShort())throw new Error("Invalid JPEG image");for(;!t.eof();){if(255!=t.readByte())throw new Error("Invalid JPEG image");var o=t.readByte(),a=t.readShort();if(Ti.indexOf(o)>=0){i=t.readByte(),n=t.readShort(),e=t.readShort(),r=t.readByte();break}t.skip(a-2)}if(null==r)throw new Error("Invalid JPEG image");var s={Type:Ci("XObject"),Subtype:Ci("Image"),Width:e,Height:n,BitsPerComponent:i,Filter:Ci("DCTDecode")};switch(r){case 1:s.ColorSpace=Ci("DeviceGray");break;case 3:s.ColorSpace=Ci("DeviceRGB");break;case 4:s.ColorSpace=Ci("DeviceCMYK"),s.Decode=[1,0,1,0,1,0,1,0]}this.asStream=function(){t.offset(0);var e=new Ei(t,s);return e._resourceName=Ci("I"+ ++Xr),e}}function Ii(t,e,n,r){this.asStream=function(i){var o=new Ei(r,{Type:Ci("XObject"),Subtype:Ci("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:Ci("DeviceGray")},!0),a=new Ei(n,{Type:Ci("XObject"),Subtype:Ci("Image"),Width:t,Height:e,BitsPerComponent:8,ColorSpace:Ci("DeviceRGB"),SMask:i.attach(o)},!0);return a._resourceName=Ci("I"+ ++Xr),a}}var Ai=vi(function(t){this.props={Type:Ci("Font"),Subtype:Ci("Type1"),BaseFont:Ci(t)},this._resourceName=Ci("F"+ ++Xr)},{encodeText:function(t){return new bi(String(t))}},Si),Mi=vi(function(t,e,n){(n=this.props=n||{}).Type=Ci("Font"),n.Subtype=Ci("Type0"),n.Encoding=Ci("Identity-H"),this._pdf=t,this._font=e,this._sub=e.makeSubset(),this._resourceName=Ci("F"+ ++Xr);var r=e.head;this.name=e.psName;var i=this.scale=e.scale;this.bbox=[r.xMin*i,r.yMin*i,r.xMax*i,r.yMax*i],this.italicAngle=e.post.italicAngle,this.ascent=e.ascent*i,this.descent=e.descent*i,this.lineGap=e.lineGap*i,this.capHeight=e.os2.capHeight||this.ascent,this.xHeight=e.os2.xHeight||0,this.stemV=0,this.familyClass=(e.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(e.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32},{encodeText:function(t){return new _i(this._sub.encodeText(String(t)))},getTextWidth:function(t,e){for(var n=0,r=this._font.cmap.codeMap,i=0;i> def"),t.indent("/CMapName /Adobe-Identity-UCS def"),t.indent("/CMapType 2 def"),t.indent("1 begincodespacerange"),t.indent(" <0000>"),t.indent("endcodespacerange");var e=this;t.indent(e.lastChar-e.firstChar+1," beginbfchar"),t.withIndent(function(){for(var n=e.firstChar;n<=e.lastChar;++n){var r=[e.map[n]].map(function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+String.fromCharCode(t)}).join("");t.indent("<",ui(n.toString(16),4),">","<");for(var i=0;i")}}),t.indent("endbfchar"),t.indent("endcmap"),t.indent("CMapName currentdict /CMap defineresource pop"),t.indent("end"),t.indent("end")}});function Ri(t){return t.map(function(t){return ci(t)?Ri(t):"number"==typeof t?(Math.round(1e3*t)/1e3).toFixed(3):t}).join(" ")}function Ni(t,e,n,r,i,o,a){var s=Ri([e,n,r,i,o,a]),u=t.GRAD_COL_FUNCTIONS[s];return u||(u=t.GRAD_COL_FUNCTIONS[s]=t.attach(new Si({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[e,n,r],C1:[i,o,a]}))),u}function ji(t,e,n){var r=Ri([e,n]),i=t.GRAD_OPC_FUNCTIONS[r];return i||(i=t.GRAD_OPC_FUNCTIONS[r]=t.attach(new Si({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[e],C1:[n]}))),i}var Fi=vi(function(t,e){this._pdf=t,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],(e=this.props=e||{}).Type=Ci("Page"),e.ProcSet=[Ci("PDF"),Ci("Text"),Ci("ImageB"),Ci("ImageC"),Ci("ImageI")],e.Resources=new Si({Font:new Si(this._fontResources),ExtGState:new Si(this._gsResources),XObject:new Si(this._xResources),Pattern:new Si(this._patResources),Shading:new Si(this._shResources)}),e.Annots=this._annotations},{_out:function(){this._content.data.apply(null,arguments)},transform:function(t,e,n,r,i,o){var a;(1!==(a=arguments)[0]||0!==a[1]||0!==a[2]||1!==a[3]||0!==a[4]||0!==a[5])&&(this._matrix=function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=e[0],l=e[1],c=e[2],f=e[3];return[n*u+r*c,n*l+r*f,i*u+o*c,i*l+o*f,a*u+s*c+e[4],a*l+s*f+e[5]]}(arguments,this._matrix),this._out(t," ",e," ",n," ",r," ",i," ",o," cm"),this._out(Zr))},translate:function(t,e){this.transform(1,0,0,1,t,e)},scale:function(t,e){this.transform(t,0,0,e,0,0)},rotate:function(t){var e=Math.cos(t),n=Math.sin(t);this.transform(e,n,-n,e,0,0)},beginText:function(){this._textMode=!0,this._out("BT",Zr)},endText:function(){this._textMode=!1,this._out("ET",Zr)},_requireTextMode:function(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")},_requireFont:function(){if(!this._font)throw new Error("No font selected; call page.setFont() first")},setFont:function(t,e){this._requireTextMode(),null==t?t=this._font:t instanceof Mi||(t=this._pdf.getFont(t)),null==e&&(e=this._fontSize),this._fontResources[t._resourceName]=t,this._font=t,this._fontSize=e,this._out(t._resourceName," ",e," Tf",Zr)},setTextLeading:function(t){this._requireTextMode(),this._out(t," TL",Zr)},setTextRenderingMode:function(t){this._requireTextMode(),this._out(t," Tr",Zr)},showText:function(t,e){if(this._requireFont(),t.length>1&&e&&this._font instanceof Mi){var n=this._font.getTextWidth(this._fontSize,t);this._out(e/n*100," Tz ")}this._out(this._font.encodeText(t)," Tj",Zr)},showTextNL:function(t){this._requireFont(),this._out(this._font.encodeText(t)," '",Zr)},addLink:function(t,e){var n=this._toPage({x:e.left,y:e.bottom}),r=this._toPage({x:e.right,y:e.top});this._annotations.push(new Si({Type:Ci("Annot"),Subtype:Ci("Link"),Rect:[n.x,n.y,r.x,r.y],Border:[0,0,0],A:new Si({Type:Ci("Action"),S:Ci("URI"),URI:new bi(t)})}))},setStrokeColor:function(t,e,n){this._out(t," ",e," ",n," RG",Zr)},setOpacity:function(t){this.setFillOpacity(t),this.setStrokeOpacity(t),this._opacity*=t},setStrokeOpacity:function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!0);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Zr)}},setFillColor:function(t,e,n){this._out(t," ",e," ",n," rg",Zr)},setFillOpacity:function(t){if(t<1){var e=this._pdf.getOpacityGS(this._opacity*t,!1);this._gsResources[e._resourceName]=e,this._out(e._resourceName," gs",Zr)}},gradient:function(t,e){this.save(),this.rect(e.left,e.top,e.width,e.height),this.clip(),t.userSpace||this.transform(e.width,0,0,e.height,e.left,e.top);var n,r=function(t,e,n){var r="radial"==e.type,i=function(t,e){var n,r,i,o,a=!1,s=[],u=[],l=[],c=[];for(n=1;n0)&&(null==t.opacity||t.opacity>0))}function Zi(t,e,n,r){var i=t.fill();if(i instanceof an){r?e.clipStroke():e.clip();var o,a,s=i instanceof cn;s?(o={x:i.center().x,y:i.center().y,r:0},a={x:i.center().x,y:i.center().y,r:i.radius()}):(o={x:i.start().x,y:i.start().y},a={x:i.end().x,y:i.end().y});var u=i.stops.elements().map(function(t){var e=t.offset();e=/%$/.test(e)?parseFloat(e)/100:parseFloat(e);var n=so(t.color());return n.a*=t.opacity(),{offset:e,color:n}});u.unshift(u[0]),u.push(u[u.length-1]);var l={userSpace:i.userSpace(),type:s?"radial":"linear",start:o,end:a,stops:u},c=t.rawBBox(),f=c.topLeft(),p=c.getSize();return e.gradient(l,c={left:f.x,top:f.y,width:p.width,height:p.height}),!0}}function Xi(t,e,n){Yi(t.fill())&&Yi(t.stroke())?Zi(t,e,0,!0)||e.fillStroke():Yi(t.fill())?Zi(t,e,0,!1)||e.fill():Yi(t.stroke())?e.stroke():e.nop()}function Qi(t,e,n){var r=t.segments;if(0!==r.length&&!function(e,n){var r=t.segments;if(4==r.length&&t.options.closed){for(var i=[],o=0;o0)){var n=new ei({producer:o("producer"),title:o("title"),author:o("author"),subject:o("subject"),keywords:o("keywords"),creator:o("creator"),date:o("date"),autoPrint:o("autoPrint")});a?t.children.forEach(r):r(t),e(n.render(),n)}function r(t){var e=t.options,r=function(t){var e,n=!1,r=wt.unit(),i=null;do{e=!1,t=u(t)}while(t&&e);return{root:t,bbox:i};function o(t){return e=!0,t}function a(t){return t.visible()&&t.opacity()>0&&(Yi(t.fill())||Yi(t.stroke()))}function s(t){for(var e=[],n=0;n0?t:o(null)},Group:function(e){var n=new Ke(e.options);return n.children=s(e.children),n._pdfLink=e._pdfLink,e===t||0!==n.children.length||e._pdfLink?n:o(null)},Rect:function(t){return a(t)?t:o(null)}},e)})}}(t),i=r.bbox;t=r.root;var a=o("paperSize",o("paperSize","auto"),e),s=!1;if("auto"==a)if(i){var u=i.getSize();a=[u.width,u.height],s=!0;var l=i.getOrigin();(r=new Ke).transform(new wt(1,0,0,1,-l.x,-l.y)),r.append(t),t=r}else a="A4";$i(t,n.addPage({paperSize:a,margin:o("margin",o("margin"),e),addMargin:s,landscape:o("landscape",o("landscape",!1),e)}),n)}}s&&(ii={}),t.traverse(function(t){Ki({Image:function(t){var e=t.src();if(s){var n=t.bbox().size,i=r[e];n={width:Math.ceil(n.width*s/72),height:Math.ceil(n.height*s/72)},i&&(n.width=Math.max(i.width,n.width),n.height=Math.max(i.height,n.height)),r[e]=n}else r[e]=null},Text:function(t){var e=Bi(Vi(t.options.font));n.indexOf(e)<0&&n.push(e)}},t)});var l=2;oi(n,u),ai(r,u)}(t,function(t){e("data:application/pdf;base64,"+t.base64())})}(t,n.resolve),n}var lo=w.browser;function co(t){return Array.prototype.slice.call(t)}var fo="KENDO-PSEUDO-ELEMENT",po={},ho={};ho._root=ho;var go=!("undefined"==typeof window)&&(lo.msie||lo.edge),mo=function(t){function e(e,n,r){t.call(this,e,n.getOrigin(),r),this._pdfRect=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.rect=function(){return this._pdfRect},e.prototype.rawBBox=function(){return this._pdfRect},e}(Ue);function yo(t,e){Object.keys(e).forEach(function(n){t.style[n]=e[n]})}var vo,bo="undefined"!=typeof Element&&Element.prototype&&((vo=Element.prototype).matches?function(t,e){return t.matches(e)}:vo.webkitMatchesSelector?function(t,e){return t.webkitMatchesSelector(e)}:vo.mozMatchesSelector?function(t,e){return t.mozMatchesSelector(e)}:vo.msMatchesSelector?function(t,e){return t.msMatchesSelector(e)}:function(t){return-1!==[].indexOf.call(document.querySelectorAll(t),this)});function _o(t,e){if(t.closest)return t.closest(e);for(;t&&!/^\[object (?:HTML)?Document\]$/.test(String(t));){if(1==t.nodeType&&bo(t,e))return t;t=t.parentNode}}var wo,xo=(wo="undefined"!=typeof window&&window.kendo&&window.kendo.jQuery)?function t(e){var n=e.cloneNode(!1);if(1==e.nodeType){var r,i=wo(e),o=wo(n),a=i.data();for(r in a)o.data(r,a[r]);for(/^canvas$/i.test(e.tagName)?n.getContext("2d").drawImage(e,0,0):/^(?:input|select|textarea|option)$/i.test(e.tagName)&&(n.removeAttribute("id"),n.removeAttribute("name"),n.value=e.value,n.checked=e.checked,n.selected=e.selected),r=e.firstChild;r;r=r.nextSibling)n.appendChild(t(r))}return n}:function(t){var e=function t(e){var n=e.cloneNode(!1);e._kendoExportVisual&&(n._kendoExportVisual=e._kendoExportVisual);for(var r=e.firstChild;r;r=r.nextSibling)n.appendChild(t(r));return n}(t),n=t.querySelectorAll("canvas");n.length&&co(e.querySelectorAll("canvas")).forEach(function(t,e){t.getContext("2d").drawImage(n[e],0,0)});var r=t.querySelectorAll("input, select, textarea, option");return co(e.querySelectorAll("input, select, textarea, option")).forEach(function(t,e){t.removeAttribute("id"),t.removeAttribute("name"),t.value=r[e].value,t.checked=r[e].checked,t.selected=r[e].selected}),e};function Co(t,e){e||(e={});var n=V();if(!t)return n.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw new Error("window.getComputedStyle is missing. You are using an unsupported browser, or running in IE8 compatibility mode. Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");!function t(e,n){if(1==arguments.length)for(var r in e)li(e,r)&&t(r,e[r]);else switch(e=e.toLowerCase(),zi[e]=n,e){case"dejavu sans":zi["sans-serif"]=n;break;case"dejavu sans|bold":zi["sans-serif|bold"]=n;break;case"dejavu sans|italic":zi["sans-serif|italic"]=n;break;case"dejavu sans|bold|italic":zi["sans-serif|bold|italic"]=n;break;case"dejavu serif":zi.serif=n;break;case"dejavu serif|bold":zi["serif|bold"]=n;break;case"dejavu serif|italic":zi["serif|italic"]=n;break;case"dejavu serif|bold|italic":zi["serif|bold|italic"]=n;break;case"dejavu mono":zi.monospace=n;break;case"dejavu mono|bold":zi["monospace|bold"]=n;break;case"dejavu mono|italic":zi["monospace|italic"]=n;break;case"dejavu mono|bold|italic":zi["monospace|bold|italic"]=n}}(Do(t.ownerDocument));var r,i="number"==typeof(r=e.scale||1)?{x:r,y:r}:Array.isArray(r)?{x:r[0],y:r[1]}:{x:r.x,y:r.y};function o(t){var n,r,o=new Ke,a=t.getBoundingClientRect();return Yo(o,[i.x,0,0,i.y,-a.left*i.x,-a.top*i.y]),ho._clipbox=!1,ho._matrix=wt.unit(),ho._stackingContext={element:t,group:o},ho._avoidLinks=!0===e.avoidLinks?"a":e.avoidLinks,r="k-pdf-export",(n=t).classList?n.classList.add(r):n.className+=" "+r,la(t,o),function(t,e){t.classList?t.classList.remove(e):t.className=t.className.split(/\s+/).reduce(function(t,n){return n!=e&&t.push(n),t},[]).join(" ")}(t,"k-pdf-export"),o}return jo(t,function(){var r=e&&e.forcePageBreak,a=e&&e.paperSize&&"auto"!=e.paperSize,s=ti(function(t,n){return"paperSize"==t?a?e[t]:"A4":t in e?e[t]:n}),u=a&&s.paperSize[0],l=a&&s.paperSize[1],c=e.margin&&s.margin,f=Boolean(c);if(r||l){c||(c={left:0,top:0,right:0,bottom:0}),u&&(u/=i.x),l&&(l/=i.y),c.left/=i.x,c.right/=i.x,c.top/=i.y,c.bottom/=i.y;var p=new Ke({pdf:{multiPage:!0,paperSize:a?s.paperSize:"auto",_ignoreMargin:f}});!function(t,e,n,r,i,o,a){var s=function(t){if(null!=t)return"string"==typeof t&&(t=function(){throw new Error("String template not yet supported. Pass a function and use your preferred template engine.")}(t.replace(/^\s+|\s+$/g,""))),"function"==typeof t?function(e){var n=t(e);if(n&&"string"==typeof n){var r=document.createElement("div");r.innerHTML=n,n=r.firstElementChild}return n}:function(){return t.cloneNode(!0)}}(a.template),u=e.ownerDocument,l=[],c=a._destructive?e:xo(e),f=u.createElement("KENDO-PDF-DOCUMENT"),p=0;function h(){("-"!=n||i)&&function t(e){if("TABLE"==e.tagName&&yo(e,{tableLayout:"fixed"}),!d(e)){var r=zo(e),o=parseFloat(Uo(r,"padding-bottom")),a=parseFloat(Uo(r,"border-bottom-width")),s=p;p+=o+a;for(var u=!0,l=e.firstChild;l;l=l.nextSibling)if(1==l.nodeType){if(u=!1,bo(l,n)){g(l);continue}if(!i){t(l);continue}if(!/^(?:static|relative)$/.test(Uo(zo(l),"position")))continue;var c=y(l);1==c?g(l):c&&d(l)?g(l):t(l)}else 3==l.nodeType&&i&&(v(l,u),u=!1);p=s}}(c);var e=m();c.parentNode.insertBefore(e,c),e.appendChild(c),s&&l.forEach(function(t,e){var n=s({element:t,pageNum:e+1,totalPages:l.length});n&&t.appendChild(n)}),jo(l,function(){!function(t,e){var n=0;function r(){--n<=0&&e()}l.forEach(function(t){for(var e=t.querySelectorAll("img"),i=0;i=i-p)&&(t.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(t.tagName))}function g(t){if(1==t.nodeType&&t!==c&&function(t){var e=t.parentNode,n=e.firstChild;if(t===n)return!0;if(t===e.children[0]){if(7==n.nodeType||8==n.nodeType)return!0;if(3==n.nodeType)return!/\S/.test(n.data)}return!1}(t))return g(t.parentNode);var e,n,r,i,o;n=(e=_o(t,"table"))&&e.querySelector("colgroup"),a.repeatHeaders&&(r=e&&e.querySelector("thead"),(i=_o(t,".k-grid.k-widget"))&&i.querySelector(".k-auto-scrollable")&&(o=i.querySelector(".k-grid-header")));var s=m(),l=u.createRange();l.setStartBefore(c),l.setEndBefore(t),s.appendChild(l.extractContents()),c.parentNode.insertBefore(s,c),b(t.parentNode),e&&(e=_o(t,"table"),a.repeatHeaders&&r&&e.insertBefore(r.cloneNode(!0),e.firstChild),n&&e.insertBefore(n.cloneNode(!0),e.firstChild)),a.repeatHeaders&&o&&(i=_o(t,".k-grid.k-widget")).insertBefore(o.cloneNode(!0),i.firstChild)}function m(){var t=u.createElement("KENDO-PDF-PAGE");return yo(t,{display:"block",boxSizing:"content-box",width:r?r+"px":"auto",padding:o.top+"px "+o.right+"px "+o.bottom+"px "+o.left+"px",position:"relative",height:i?i+"px":"auto",overflow:i||r?"hidden":"visible",clear:"both"}),a&&a.pageClassName&&(t.className=a.pageClassName),l.push(t),t}function y(t){var e=t.getBoundingClientRect();if(0===e.width||0===e.height)return 0;var n=c.getBoundingClientRect().top,r=i-p;return e.height>r?3:e.top-n>r?1:e.bottom-n>r?2:0}function v(t,e){if(/\S/.test(t.data)){var n=t.data.length,r=u.createRange();r.selectNodeContents(t);var i=y(r);if(i){var o=t;if(1==i)g(e?t.parentNode:t);else if(function e(n,i,o){return r.setEnd(t,i),n==i||i==o?i:y(r)?e(n,n+i>>1,i):e(i,i+o>>1,o)}(0,n>>1,n),!/\S/.test(r.toString())&&e)g(t.parentNode);else{o=t.splitText(r.endOffset);var a=m();r.setStartBefore(c),a.appendChild(r.extractContents()),c.parentNode.insertBefore(a,c),b(o.parentNode)}v(o)}}}function b(t){var e=_o(t,"li");e&&(e.setAttribute("kendo-no-bullet","1"),b(e.parentNode))}co(c.querySelectorAll("tfoot")).forEach(function(t){t.parentNode.appendChild(t)}),co(c.querySelectorAll("ol")).forEach(function(t){co(t.children).forEach(function(t,e){t.setAttribute("kendo-split-index",e)})}),yo(f,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),r&&(yo(f,{width:r+"px",paddingLeft:o.left+"px",paddingRight:o.right+"px"}),yo(c,{overflow:"hidden"})),e.parentNode.insertBefore(f,e),f.appendChild(c),a.beforePageBreak?setTimeout(function(){a.beforePageBreak(f,h)},15):setTimeout(h,15)}(function(t){if(e.progress){var r=!1,i=0;!function a(){if(io&&(i.push(c(t.substring(o,a))),o=a+r[0].length),a+=r[0].length):a++;return o0&&o(t,u,l,c,f[0])}}}(t,e)}}function i(t){var e=Uo(t.style,"src");if(e)return Oo(e).reduce(function(t,e){var n=ko(e);return n&&t.push(n),t},[]);var n=ko(t.cssText);return n?[n]:[]}function o(t,n,r,i,o){/^data:/i.test(o)||/^[^\/:]+:\/\//.test(o)||/^\//.test(o)||(o=String(t.href).replace(/[^\/]*$/,"")+o),n.forEach(function(t){t=t.replace(/^(['"]?)(.*?)\1$/,"$2"),r&&(t+="|bold"),i&&(t+="|italic"),e[t]=o})}}function Io(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Ao(t,e){var n=ho;for(t="_counter_"+t;n&&!Io(n,t);)n=Object.getPrototypeOf(n);n||(n=ho._root),n[t]=(n[t]||0)+(null==e?1:e)}function Mo(t,e){ho[t="_counter_"+t]=null==e?0:e}function Po(t,e,n){for(var r=0;r0);return e}function Lo(t,e,n){(ho=Object.create(ho))[t.tagName.toLowerCase()]={element:t,style:e};var r=Uo(e,"text-decoration");if(r&&"none"!=r){var i=Uo(e,"color");r.split(/\s+/g).forEach(function(t){ho[t]||(ho[t]=i)})}(function(t){function e(e){return Uo(t,e)}if("none"!=e("transform")||"static"!=e("position")||"auto"!=e("z-index")||e("opacity")<1)return!0})(e)&&(ho._stackingContext={element:t,group:n})}function Vo(){ho=Object.getPrototypeOf(ho)}function Bo(t){if(null!=ho._clipbox){var e=t.bbox(ho._matrix);ho._clipbox=ho._clipbox?Tt.intersect(ho._clipbox,e):e}}function zo(t,e){return window.getComputedStyle(t,e||null)}function Uo(t,e,n){var r=t.getPropertyValue(e);return null!=r&&""!==r||(lo.webkit?r=t.getPropertyValue("-webkit-"+e):lo.mozilla?r=t.getPropertyValue("-moz-"+e):lo.opera?r=t.getPropertyValue("-o-"+e):go&&(r=t.getPropertyValue("-ms-"+e))),arguments.length>2&&(null==r||""===r)?n:r}function Ho(t,e,n,r){t.setProperty(e,n,r),lo.webkit?t.setProperty("-webkit-"+e,n,r):lo.mozilla?t.setProperty("-moz-"+e,n,r):lo.opera?t.setProperty("-o-"+e,n,r):go&&(t.setProperty("-ms-"+e,n,r),t[e="ms"+e.replace(/(^|-)([a-z])/g,function(t,e,n){return e+n.toUpperCase()})]=n)}function qo(t,e){return e="border-"+e,{width:parseFloat(Uo(t,e+"-width")),style:Uo(t,e+"-style"),color:No(Uo(t,e+"-color"),!0)}}function Go(t,e){var n=t.style.cssText,r=e();return t.style.cssText=n,r}function Wo(t,e){var n=Uo(t,"border-"+e+"-radius").split(/\s+/g).map(parseFloat);return 1==n.length&&n.push(n[0]),Qo({x:n[0],y:n[1]})}function Ko(t,e,n){var r,i,o,a,s;return"string"==typeof e?(r=zo(n),i=parseFloat(Uo(r,e.replace("*","top"))),o=parseFloat(Uo(r,e.replace("*","right"))),a=parseFloat(Uo(r,e.replace("*","bottom"))),s=parseFloat(Uo(r,e.replace("*","left")))):"number"==typeof e&&(i=o=a=s=e),{top:t.top+i,right:t.right-o,bottom:t.bottom-a,left:t.left+s,width:t.right-t.left-o-s,height:t.bottom-t.top-a-i}}function $o(t){return 180*t/Math.PI%360}function Yo(t,e){return e=new wt(e[0],e[1],e[2],e[3],e[4],e[5]),t.transform(e),e}function Zo(t,e){t.clip(e)}function Xo(t,e,n,r){for(var i=new Jt([e,n],r).curvePoints(),o=1;o0){var r=t.className;t.className+=" kendo-pdf-hide-pseudo-elements",oa(t,e),t.className=r,n.forEach(function(e){t.removeChild(e)})}else oa(t,e)}else oa(t,e);function i(e,r){var i=zo(t,e),o=i.content;if(Ro(i),o&&"normal"!=o&&"none"!=o&&"0px"!=i.width){var a=t.ownerDocument.createElement(fo);a.style.cssText=ra(i),a.textContent=function(t,e){function n(t,e,n){return n?(n=n.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),function(t){var e=[],n=ho;for(t="_counter_"+t;n;)Io(n,t)&&e.push(n[t]),n=Object.getPrototypeOf(n);return e.reverse()}(t).map(function(t){return na(t,e)}).join(n)):na(function(t){return ho[t="_counter_"+t]}(t)||0,e)}var r,i=Oo(e,/^\s+/),o=[];return i.forEach(function(e){var i;(r=/^\s*(["'])(.*)\1\s*$/.exec(e))?o.push(r[2].replace(/\\([0-9a-f]{4})/gi,function(t,e){return String.fromCharCode(parseInt(e,16))})):(r=/^\s*counter\((.*?)\)\s*$/.exec(e))?(i=Oo(r[1]),o.push(n(i[0],i[1]))):(r=/^\s*counters\((.*?)\)\s*$/.exec(e))?(i=Oo(r[1]),o.push(n(i[0],i[2],i[1]))):(r=/^\s*attr\((.*?)\)\s*$/.exec(e))?o.push(t.getAttribute(r[1])||""):o.push(e)}),o.join("")}(t,o),t.insertBefore(a,r),n.push(a)}}}function oa(t,e){var n=zo(t),r=qo(n,"top"),i=qo(n,"right"),o=qo(n,"bottom"),a=qo(n,"left"),s=Wo(n,"top-left"),u=Wo(n,"top-right"),l=Wo(n,"bottom-left"),c=Wo(n,"bottom-right"),f=Uo(n,"direction"),p=Uo(n,"background-color");p=No(p);var h,d,g=Eo(Uo(n,"background-image")),m=Oo(Uo(n,"background-repeat")),y=Oo(Uo(n,"background-position")),v=Oo(Uo(n,"background-origin")),b=Oo(Uo(n,"background-size"));go&&"ellipsis"==(h=n.textOverflow)&&(d=t.style.textOverflow,t.style.textOverflow="clip"),lo.msie&&lo.version<10&&(y=Oo(t.currentStyle.backgroundPosition));var _,w,x,C=Ko(t.getBoundingClientRect(),"border-*-width",t);!function(){var t=Uo(n,"clip"),r=/^\s*rect\((.*)\)\s*$/.exec(t);if(r){var i=r[1].split(/[ ,]+/g),o="auto"==i[0]?C.top:parseFloat(i[0])+C.top,a="auto"==i[1]?C.right:parseFloat(i[1])+C.left,s="auto"==i[2]?C.bottom:parseFloat(i[2])+C.top,u="auto"==i[3]?C.left:parseFloat(i[3])+C.left,l=new Ke,c=(new je).moveTo(u,o).lineTo(a,o).lineTo(a,s).lineTo(u,s).close();Zo(l,c),e.append(l),e=l,Bo(c)}}();var S=Uo(n,"display");if("table-row"==S)for(_=[],w=0,x=t.children;w0&&"list-item"==S&&!t.getAttribute("kendo-no-bullet")&&function(){var r=Uo(n,"list-style-type");if("none"!=r){var i=Uo(n,"list-style-position");switch(r){case"circle":case"disc":case"square":o(function(t){t.style.fontSize="60%",t.style.lineHeight="200%",t.style.paddingRight="0.5em",t.style.fontFamily="DejaVu Serif",t.innerHTML={disc:"\u25cf",circle:"\u25ef",square:"\u25a0"}[r]});break;case"decimal":case"decimal-leading-zero":o(function(t){a(function(e){++e,"decimal-leading-zero"==r&&e<10&&(e="0"+e),t.innerHTML=e+"."})});break;case"lower-roman":case"upper-roman":o(function(t){a(function(e){e=L(e+1),"upper-roman"==r&&(e=e.toUpperCase()),t.innerHTML=e+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":o(function(t){a(function(e){e=Fo(e),/^upper/i.test(r)&&(e=e.toUpperCase()),t.innerHTML=e+"."})})}}function o(n){Go(t,function(){t.style.position="relative";var r=t.ownerDocument.createElement(fo);r.style.position="absolute",r.style.boxSizing="border-box","outside"==i?(r.style.width="6em",r.style.left="-6.8em",r.style.textAlign="right"):r.style.left="0px",n(r),t.insertBefore(r,t.firstChild),la(r,e),t.removeChild(r)})}function a(e){var n=t.parentNode.children,r=t.getAttribute("kendo-split-index");if(null!=r)return e(0|r,n.length);for(var i=0;i0?t.selectedOptions[0]:t.options[t.selectedIndex]}(e))&&(s.textContent=i.textContent);else s.textContent=e.value;o.insertBefore(s,e),s.scrollLeft=e.scrollLeft,s.scrollTop=e.scrollTop,e.style.display="none",t(s,n),e.style.display="",o.removeChild(s)}(e,n);break;default:for(var r=[],i=[],o=[],a=e.firstChild;a;a=a.nextSibling)switch(a.nodeType){case 3:/\S/.test(a.data)&&ua(e,a,n);break;case 1:var s=zo(a),u=Uo(s,"float");"static"!=Uo(s,"position")?o.push(a):"none"!=u?i.push(a):r.push(a)}Z(r,sa).forEach(function(t){la(t,n)}),Z(i,sa).forEach(function(t){la(t,n)}),Z(o,sa).forEach(function(t){la(t,n)})}}(t,e),go&&"ellipsis"==h&&(t.style.textOverflow=d),e;function O(t,n,r,i,o,a,s,u){if(!(r<=0)){var l,c=new Ke;Yo(c,u),e.append(c),Qo(a),Qo(s),l=new je({fill:{color:t},stroke:null}),c.append(l),l.moveTo(a.x?Math.max(a.x,i):0,0).lineTo(n-(s.x?Math.max(s.x,o):0),0).lineTo(n-Math.max(s.x,o),r).lineTo(Math.max(a.x,i),r).close(),a.x&&f(i,a,[-1,0,0,1,a.x,0]),s.x&&f(o,s,[1,0,0,1,n-s.x,0])}function f(e,n,i){var o=Math.PI/2*e/(e+r),a={x:n.x-e,y:n.y-r},s=new je({fill:{color:t},stroke:null}).moveTo(0,0);Yo(s,i),Xo(s,0,n.y,{startAngle:-90,endAngle:-$o(o),radiusX:n.x,radiusY:n.y}),a.x>0&&a.y>0?(s.lineTo(a.x*Math.cos(o),n.y-a.y*Math.sin(o)),Xo(s,0,n.y,{startAngle:-$o(o),endAngle:-90,radiusX:a.x,radiusY:a.y,anticlockwise:!0})):a.x>0?s.lineTo(a.x,r).lineTo(0,r):s.lineTo(a.x,r).lineTo(a.x,0),c.append(s.close())}}function k(e,n,r,i,o,a,s){var u;if(r&&"none"!=r)if("url"==r.type){if(/^url\(\"data:image\/svg/i.test(r.url))return;var l=po[r.url];l&&l.width>0&&l.height>0&&c(e,n,l.width,l.height,function(t,e){t.append(new qe(r.url,e))})}else{if("linear"!=r.type)return;c(e,n,n.width,n.height,(u=r,function(t,e){var n=e.width(),r=e.height();switch(u.type){case"linear":var i=null!=u.angle?u.angle:Math.PI;switch(u.to){case"top":i=0;break;case"left":i=-Math.PI/2;break;case"bottom":i=Math.PI;break;case"right":i=Math.PI/2;break;case"top left":case"left top":i=-Math.atan2(r,n);break;case"top right":case"right top":i=Math.atan2(r,n);break;case"bottom left":case"left bottom":i=Math.PI+Math.atan2(r,n);break;case"bottom right":case"right bottom":i=Math.PI-Math.atan2(r,n)}u.reverse&&(i-=Math.PI),(i%=2*Math.PI)<0&&(i+=2*Math.PI);var o=Math.abs(n*Math.sin(i))+Math.abs(r*Math.cos(i)),a=Math.atan(n*Math.tan(i)/r),s=Math.sin(a),l=Math.cos(a),c=Math.abs(s)+Math.abs(l),f=c/2*s,p=c/2*l;i>Math.PI/2&&i<=3*Math.PI/2&&(f=-f,p=-p);var h=[],d=0,g=u.stops.map(function(t,e){var n=t.percent;n?n=parseFloat(n)/100:t.length?n=parseFloat(t.length)/o:0===e?n=0:e==u.stops.length-1&&(n=1);var r={color:t.color.toCssRgba(),offset:n};return null!=n?(d=n,h.forEach(function(t,e){t.stop.offset=t.left+(d-t.left)*(e+1)/(h.length+1)}),h=[]):h.push({left:d,stop:r}),r}),m=[.5-f,.5+p],y=[.5+f,.5-p];t.append(je.fromRect(e).stroke(null).fill(new un({start:m,end:y,stops:g,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}))}function c(e,n,r,u,l){var c,f=r/u,p=n;if("content-box"==a?(p=Ko(p,"border-*-width",t),p=Ko(p,"padding-*",t)):"padding-box"==a&&(p=Ko(p,"border-*-width",t)),!/^\s*auto(\s+auto)?\s*$/.test(s))if("contain"==s)c=Math.min(p.width/r,p.height/u),r*=c,u*=c;else if("cover"==s)c=Math.max(p.width/r,p.height/u),r*=c,u*=c;else{var h=s.split(/\s+/g);r=/%$/.test(h[0])?p.width*parseFloat(h[0])/100:parseFloat(h[0]),u=1==h.length||"auto"==h[1]?r/f:/%$/.test(h[1])?p.height*parseFloat(h[1])/100:parseFloat(h[1])}var d=String(o);switch(d){case"bottom":d="50% 100%";break;case"top":d="50% 0";break;case"left":d="0 50%";break;case"right":d="100% 50%";break;case"center":d="50% 50%"}1==(d=d.split(/\s+/)).length&&(d[1]="50%"),d[0]=/%$/.test(d[0])?parseFloat(d[0])/100*(p.width-r):parseFloat(d[0]),d[1]=/%$/.test(d[1])?parseFloat(d[1])/100*(p.height-u):parseFloat(d[1]);var g=new Tt([p.left+d[0],p.top+d[1]],[r,u]);function m(){for(;g.origin.x>n.left;)g.origin.x-=r}function y(){for(;g.origin.y>n.top;)g.origin.y-=u}function v(){for(;g.origin.x=0;)k(n,t,g[i],m[i%m.length],y[i%y.length],v[i%v.length],b[i%b.length])}(n);var _=a.width>0&&(h&&"ltr"==f||d&&"rtl"==f),w=i.width>0&&(d&&"ltr"==f||h&&"rtl"==f);if(0!==r.width||0!==a.width||0!==i.width||0!==o.width){if(r.color==i.color&&r.color==o.color&&r.color==a.color&&r.width==i.width&&r.width==o.width&&r.width==a.width&&_&&w){n=Ko(n,r.width/2);var x=ta(t,n,r.width/2);return x.options.stroke={color:r.color,width:r.width},void e.append(x)}if(0===s.x&&0===u.x&&0===c.x&&0===l.x&&r.width<2&&a.width<2&&i.width<2&&o.width<2)return r.width>0&&e.append(new je({stroke:{width:r.width,color:r.color}}).moveTo(n.left,n.top+r.width/2).lineTo(n.right,n.top+r.width/2)),o.width>0&&e.append(new je({stroke:{width:o.width,color:o.color}}).moveTo(n.left,n.bottom-o.width/2).lineTo(n.right,n.bottom-o.width/2)),_&&e.append(new je({stroke:{width:a.width,color:a.color}}).moveTo(n.left+a.width/2,n.top).lineTo(n.left+a.width/2,n.bottom)),void(w&&e.append(new je({stroke:{width:i.width,color:i.color}}).moveTo(n.right-i.width/2,n.top).lineTo(n.right-i.width/2,n.bottom)));var C=Jo(n,s,u,c,l),S=C.tl,E=C.tr,T=C.br,D=C.bl;O(r.color,n.width,r.width,a.width,i.width,S,E,[1,0,0,1,n.left,n.top]),O(o.color,n.width,o.width,i.width,a.width,T,D,[-1,0,0,-1,n.right,n.bottom]),O(a.color,n.height,a.width,o.width,r.width,I(D),I(S),[0,-1,1,0,n.left,n.bottom]),O(i.color,n.height,i.width,r.width,o.width,I(E),I(T),[0,1,-1,0,n.right,n.top])}}function I(t){return{x:t.y,y:t.x}}}}function aa(t,e,n){var r=function(t){var e=t.getBoundingClientRect();return e=Ko(e,"border-*-width",t),Ko(e,"padding-*",t)}(t),i=new Tt([r.left,r.top],[r.width,r.height]),o=new qe(e,i);Zo(o,ta(t,r,"content")),n.append(o)}function sa(t,e){var n=zo(t),r=zo(e),i=parseFloat(Uo(n,"z-index")),o=parseFloat(Uo(r,"z-index")),a=Uo(n,"position"),s=Uo(r,"position");return isNaN(i)&&isNaN(o)?/static|absolute/.test(a)&&/static|absolute/.test(s)?0:"static"==a?-1:"static"==s?1:0:isNaN(i)?0===o?0:o>0?-1:1:isNaN(o)?0===i?0:i>0?1:-1:parseFloat(i)-parseFloat(o)}function ua(t,e,n){if(null!=(r=ho._clipbox)&&(!r||0!==r.width()&&0!==r.height())){var r,i=zo(t);if(!(parseFloat(Uo(i,"text-indent"))<-500)){var o=e.data,a=0,s=o.search(/\S\s*$/)+1;if(s){var u=Uo(i,"font-size"),l=Uo(i,"line-height"),c=[Uo(i,"font-style"),Uo(i,"font-variant"),Uo(i,"font-weight"),u,Uo(i,"font-family")].join(" ");if(u=parseFloat(u),l=parseFloat(l),0!==u){var f=Uo(i,"color"),p=t.ownerDocument.createRange(),h="justify"==Uo(i,"text-align"),d=Uo(i,"column-count",1),g=Uo(i,"white-space"),m=Uo(i,"text-transform"),y=t.getBoundingClientRect().width/u*5;0===y&&(y=500);for(var v=null,b=ho.underline,_=ho["line-through"],w=ho.overline,x=b||_||w;!S(););return void(x&&(p.selectNode(e),co(p.getClientRects()).forEach(function(t){function e(e,r){if(e){var i=u/12,o=new je({stroke:{width:i,color:e}});o.moveTo(t.left,r-=i).lineTo(t.right,r),n.append(o)}}e(b,t.bottom),e(_,t.bottom-t.height/2.7),e(w,t.top)})))}}}}function C(t){if(go||lo.chrome){for(var e=t.getClientRects(),n={top:1/0,right:-1/0,bottom:-1/0,left:1/0},r=!1,i=0;i=s)return!0;p.setStart(e,a),p.setEnd(e,a+1),t=C(p);var u=!1;if((h||d>1)&&(i=o.substr(a).search(/\s/))>=0){p.setEnd(e,a+i);var b=C(p);b.bottom==t.bottom&&(t=b,u=!0,a+=i)}if(!u){if((i=function n(r,i,o){p.setEnd(e,i);var a=C(p);return a.bottom!=t.bottom&&r>1,i):a.right!=t.right?(t=a,i>1,o):i):i}(a,Math.min(s,a+y),s))==a)return!0;if(a=i,0===(i=p.toString().search(/\s+$/)))return!1;i>0&&(p.setEnd(e,p.startOffset+i),t=C(p))}go&&(t=p.getClientRects()[0]);var _=p.toString();if(/^(?:pre|pre-wrap)$/i.test(g)){if(/\t/.test(_)){var w=0;for(i=r;i=0;){var S=" ".substr(0,8-(w+i)%8);_=_.substr(0,i)+S+_.substr(i+1)}}}else _=_.replace(/\s+/g," ");u||(v=t.bottom),function(t,e){if(go&&!isNaN(l)){var r=To(c),i=(e.top+e.bottom-r)/2;e={top:i,right:e.right,bottom:i+r,left:e.left,height:r,width:e.right-e.left}}switch(m){case"uppercase":t=t.toUpperCase();break;case"lowercase":t=t.toLowerCase();break;case"capitalize":t=t.replace(/(?:^|\s)\S/g,function(t){return t.toUpperCase()})}var o=new mo(t,new Tt([e.left,e.top],[e.width,e.height]),{font:c,fill:{color:f}});n.append(o)}(_,t)}}function la(t,e){var n=zo(t);if(Ro(n),!/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(t.tagName)&&null!=ho._clipbox){var r=parseFloat(Uo(n,"opacity")),i=Uo(n,"visibility"),o=Uo(n,"display");if(0!==r&&"hidden"!=i&&"none"!=o){var a,s=function(t){var e=Uo(t,"transform");if("none"==e)return null;var n=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(e);if(n){var r=Uo(t,"transform-origin");return{matrix:n=n[1].split(/\s*,\s*/g).map(parseFloat),origin:r=r.split(/\s+/g).map(parseFloat)}}}(n),u=Uo(n,"z-index");(s||r<1)&&"auto"==u&&(u=0),a=function(t,e,n){var r;"auto"!=n?(r=ho._stackingContext.group,n=parseFloat(n)):(r=e,n=0);for(var i=r.children,o=0;on);++o);var a=new Ke;if(r.insert(o,a),a._dom_zIndex=n,r!==e&&ho._clipbox){var s=ho._matrix.invert(),u=ho._clipbox.transformCopy(s);Zo(a,je.fromRect(u))}return a}(0,e,u),r<1&&a.opacity(r*a.opacity()),Lo(t,n,a),s?Go(t,function(){Ho(t.style,"transform","none","important"),Ho(t.style,"transition","none","important"),"static"==Uo(n,"position")&&Ho(t.style,"position","relative","important");var e=t.getBoundingClientRect(),r=e.left+s.origin[0],i=e.top+s.origin[1],o=[1,0,0,1,-r,-i];o=ca(o,s.matrix),o=ca(o,[1,0,0,1,r,i]),o=Yo(a,o),ho._matrix=ho._matrix.multiplyCopy(o),ia(t,a)}):ia(t,a),Vo()}}}function ca(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=e[0],l=e[1],c=e[2],f=e[3];return[n*u+r*c,n*l+r*f,i*u+o*c,i*l+o*f,a*u+s*c+e[4],a*l+s*f+e[5]]}n.d(e,"b",function(){return Co}),n.d(e,"c",function(){return uo}),n.d(e,"a",function(){return N}),n.d(e,"d",function(){return P})},AqXg:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("1gzp"),i=n("w3tH"),o=function(){function t(t,e){this.config=t,this.toastyService=e,this._position="",this.toasts=[],this.position=""}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(e){if(e){for(var n=!0,r=0;r=this.config.limit&&this.toasts.shift(),this.toasts.push(t),t.timeout&&this._setTimeout(t)},t.prototype.clear=function(t){var e=this;if(!t)throw new Error("Please provide id of Toast to close");this.toasts.forEach(function(n,i){n.id===t&&(n.onRemove&&Object(r.a)(n.onRemove)&&n.onRemove.call(e,n),e.toasts.splice(i,1))})},t.prototype.clearAll=function(){var t=this;this.toasts.forEach(function(e,n){e.onRemove&&Object(r.a)(e.onRemove)&&e.onRemove.call(t,e)}),this.toasts=[]},t.prototype._setTimeout=function(t){var e=this;window.setTimeout(function(){e.clear(t.id)},t.timeout)},t.POSITIONS=["bottom-right","bottom-left","top-right","top-left","top-center","bottom-center","center-center"],t}()},Aso2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this._http=t}return t.prototype.getAccessProfiles=function(){return this._http.get("profile/getAccessProfiles")},t.prototype.getProfle=function(t){return void 0===t&&(t=0),this._http.get("user/profile/"+t)},t.prototype.filterContract=function(t){return this._http.post("user/filter",{json:t})},t.prototype.getSystemProfiles=function(){return this._http.get("profile")},t.prototype.menu=function(t){return this._http.post("profile/permissions",{json:t})},t.prototype.permissionsByModule=function(t){return this._http.post("profile/permissionsByModule",{json:t,hasOptionId:!0})},t.prototype.validatePermission=function(t){return this._http.post("profile/validatePermission",{json:t,hasOptionId:!0})},t.prototype.validatePermissionBySubModule=function(t){return this._http.post("profile/validatePermissionBySubModule",{json:t,hasOptionId:!0})},t.prototype.getProfilesAtUrl=function(t,e){return this._http.post(t,{json:e})},t.prototype.search=function(t,e){return this._http.post("profile/search/"+t,{json:e})},t.prototype.create=function(t){return this._http.post("profile/store",{json:t})},t.prototype.getById=function(t){return this._http.get("profile/show/"+t)},t.prototype.updateById=function(t,e){return this._http.post("profile/update/"+e,{json:t})},t.prototype.changeStatus=function(t){return this._http.get("profile/changeStatus/"+t)},t.prototype.getSystemPermissions=function(){return this._http.get("profile/system-permissions")},t.prototype.getProfilePermissions=function(){return this._http.get("profile/system-permissions")},t.prototype.setPermissionToProfile=function(t){return this._http.post("profile/setPermissionToProfile",{json:t})},t.prototype.profilePermissions=function(t){return this._http.post("profile/profilePermissions",{json:t})},t}()},AxiF:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),i=n("FFOo"),o=n("b7mW"),a=n("G5J1");function s(t){return function(e){return 0===t?Object(a.b)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new o.a}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.total))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=Ft?n:n[St]}function re(t){return 0!=(4&t.flags)}function ie(t){return 1==(1&t.flags)}function oe(t){return null!==t.template}function ae(t){return Array.isArray(t)&&t.length===Ut}function se(t){return 0!=(128&t[_t])}function ue(t){for(var e=Array.isArray(t)?t:fe(t);e&&!(128&e[_t]);)e=e[wt];return e}function le(t){return ue(t)[Tt]}function ce(t){return t[Ht]}function fe(t){var e=ce(t);return e?Array.isArray(e)?e:e.lView:null}function pe(t){return t!==Kt}function he(t){return 32767&t}function de(t){return t>>16}function ge(t,e){for(var n=de(t),r=e;n>0;)r=r[jt],n--;return r}var me=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H);function ye(t,e){for(var n=0;n0;)e=e[jt],t--;return e}(t,an))[Tt]}function vn(t){var e=We[bt];on(We)?We[_t]&=-2:(ze(We,e.viewHooks,e.viewCheckHooks,sn),We[_t]&=-11,We[_t]|=32,We[Ot]=e.bindingStartIndex),mn(t,null)}var bn=!0;function _n(t){var e=bn;return bn=t,e}var wn=255,xn=0;function Cn(t,e){var n=En(t,e);if(-1!==n)return n;var r=e[bt];r.firstTemplatePass&&(t.injectorIndex=e.length,Sn(r.data,t),Sn(e,null),Sn(r.blueprint,null));var i=On(t,e),o=he(i),a=ge(i,e),s=t.injectorIndex;if(pe(i))for(var u=a[bt].data,l=0;l<8;l++)e[s+l]=a[o+l]|u[o+l];return e[s+Gt]=i,s}function Sn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function En(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+Gt]?-1:t.injectorIndex}function On(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[Et],r=1;n&&-1===n.injectorIndex;)n=(e=e[jt])?e[Et]:null,r++;return n?n.injectorIndex|r<<16:-1}function kn(t,e,n){!function(t,e,n){var r="string"!=typeof n?n[v]:n.charCodeAt(0)||0;null==r&&(r=n[v]=xn++);var i=r&wn,o=1<>16,c=i?s+l:t.directiveEnd,f=r?s:s+l;f=u&&p.type===n)return f}if(i){var h=a[u];if(h&&oe(h)&&h.type===n)return u}return null}function Pn(t,e,n,r){var i,o=e[n];if(null!=(i=o)&&"object"==typeof i&&Object.getPrototypeOf(i)==Yt){var a=o;if(a.resolving)throw new Error("Circular dep for "+Zt(t[n]));var s=_n(a.canSeeViewProviders);a.resolving=!0;var u=void 0;a.injectImpl&&(u=Ie(a.injectImpl));var l=Je(),c=Xe();en(r,e);try{o=e[n]=a.factory(null,t,e,r)}finally{a.injectImpl&&Ie(u),_n(s),a.resolving=!1,en(l,c)}}return o}function Rn(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<=0){var d;Un(d=Qt(r[h]),u=Bn(r,h,d)),n=u;break}}}return n||null}function Bn(t,e,n){return{lView:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}function zn(t){var e,n=ce(t);if(Array.isArray(n)){var r=Gn(n,t);(i=Bn(n,r,(e=ne(r,n))[St])).component=t,Un(t,i),Un(i.native,i)}else{var i;e=ne((i=n).nodeIndex,i.lView)}return e}function Un(t,e){t[Ht]=e}function Hn(t,e){for(var n=t[bt].firstChild;n;){if(te(n,t)===e)return n.index;n=qn(n)}return-1}function qn(t){if(t.child)return t.child;if(t.next)return t.next;for(;t.parent&&!t.parent.next;)t=t.parent;return t.parent&&t.parent.next}function Gn(t,e){var n=t[bt].components;if(n)for(var r=0;r=0)&&null})}}return i.sort(or),i}function or(t,e){return t.name==e.name?0:t.name-1?e[wt][n]:null}return e[wt][t.parent.index]}function Tr(t,e){var n=kr(t,e);return n?n[zt]:null}var Dr=[];function Ir(t,e,n,r,i){for(var o=t[bt].node,a=-1,s=t,u=o.child;u;){var l=null;if(3===u.type){Ar(e,n,r,te(u,s),i);var c=s[u.index];ae(c)&&Ar(e,n,r,c[Bt],i)}else if(0===u.type){var f=s[u.index];Ar(e,n,r,f[Bt],i),r&&(f[zt]=r),f[Vt].length&&(l=(s=f[Vt][0])[bt].node,i=f[Bt])}else if(1===u.type){var p=ve(s),h=p[Et].projection[u.projection];Dr[++a]=u,Dr[++a]=s,h&&(l=(s=p[wt])[bt].data[h.index])}else l=u.child;if(null===l)for(null===u.next&&2&u.flags&&(s=Dr[a--],u=Dr[a--]),l=u.next;!l;){if(null===(u=u.parent||s[bt].node)||u===o)return null;0===u.type&&(i=(s=s[wt])[u.index][Bt]),l=2===u.type&&s[xt]?(s=s[xt])[bt].node:u.next}u=l}}function Ar(t,e,n,r,i){0===t?Cr(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?Cr(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function Mr(t,e){return Cr(e)?e.createText(Zt(t)):e.createTextNode(Zt(t))}function Pr(t,e,n){var r=Tr(t[bt].node,t);r&&Ir(t,e?0:1,t[At],r,n)}function Rr(t,e,n,r,i){var o=e[Vt];r>0&&(o[r-1][xt]=t),r-1&&(t[Rt]=i,t[wt]=n),t[Ct]&&t[Ct].insertView(r),t[_t]|=16}function Nr(t,e,n){var r=t[Vt],i=r[e];return e>0&&(r[e-1][xt]=i[xt]),r.splice(e,1),n||Pr(i,!1),i[Ct]&&i[Ct].removeView(),i[Rt]=-1,i[wt]=null,i[_t]&=-17,i}function jr(t,e,n){var r=t[Vt][n];Nr(t,n,!!e.detached),Lr(r)}function Fr(t){var e=t[bt].childIndex;return-1===e?null:t[e]}function Lr(t){var e=t[At];Cr(e)&&e.destroyNode&&Ir(t,2,e,null),function(t){if(-1===t[bt].childIndex)return Br(t);for(var e=Fr(t);e;){var n=null;if(e.length>=Ft?e[bt].childIndex>-1&&(n=Fr(e)):e[Vt].length&&(n=e[Vt][0]),null==n){for(;e&&!e[xt]&&e!==t;)Br(e),e=Vr(e,t);Br(e||t),n=e&&e[xt]}e=n}}(t),t[_t]|=64}function Vr(t,e){var n;return t.length>=Ft&&(n=t[Et])&&2===n.type?kr(n,t):t[wt]===e?null:t[wt]}function Br(t){if(t.length>=Ft){var e=t;!function(t){var e,n=t[bt];null!=n&&null!=(e=n.destroyHooks)&&Ue(t,e)}(e),(i=(r=e)[bt]&&r[bt].pipeDestroyHooks)&&Ue(r,i),function(t){var e=t[bt].cleanup;if(null!=e){for(var n=t[kt],r=0;r=0?n[a]():n[-a].unsubscribe(),r+=2}else"number"==typeof e[r]?(0,n[e[r]])():e[r].call(n[e[r+1]]);t[kt]=null}}(e);var n=e[Et];n&&3===n.type&&Cr(e[At])&&e[At].destroy()}var r,i}function zr(t,e){if(Ur(t,e)){if(se(e))return qr(e[At],te(t,e));var n=e[Et],r=t.parent;return null!=r&&4===r.type&&(t=Wr(r)),null==t.parent&&2===n.type?Tr(n,e):Er(t,e)}return null}function Ur(t,e){var n,r=t,i=t.parent;return t.parent&&(4===t.parent.type?i=(r=Wr(t)).parent:5===t.parent.type&&(i=(r=Or(r)).parent)),null===i&&(i=e[Et]),i&&2===i.type?null!=(n=kr(i,e))&&null!=n[zt]:null==r.parent||!(3!==r.parent.type||1&r.parent.flags)}function Hr(t,e,n,r){Cr(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function qr(t,e){return Cr(t)?t.parentNode(e):e.parentNode}function Gr(t,e,n){if(void 0===t&&(t=null),null!==t&&Ur(e,n)){var r=n[At],i=Er(e,n),o=e.parent||n[Et];if(2===o.type){var a=kr(o,n),s=a[Vt],u=s.indexOf(n);Hr(r,a[zt],t,Kr(u,s,a[Bt]))}else 4===o.type?Hr(r,zr(e,n),t,i):5===o.type?Hr(r,i,t,te(e.parent,n)):Cr(r)?r.appendChild(i,t):i.appendChild(t);return!0}return!1}function Wr(t){for(;null!=t.parent&&4===t.parent.type;)t=t.parent;return t}function Kr(t,e,n){if(t+1-1&&d>c?"":l[d+1],8&u&&(o=(r=g).length,s=(a=r.indexOf(i=m))+i.length,-1===a||a>0&&" "!==r[a-1]||s=9?e+0:e;n?t[r]|=1:t[r]&=-2}function xi(t,e){return 1==(1&t[e>=9?e+0:e])}function Ci(t,e){return 2==(2&t[e>=9?e+0:e])}function Si(t,e){return 4==(4&t[e>=9?e+0:e])}function Ei(t,e,n){return 63&t|e<<6|n<<20}function Oi(t,e){var n=ki(e);return(2&e?t[3]:t[2])[n]}function ki(t){return t>>6&16383}function Ti(t){var e=t>>20&16383;return e>=9?e:-1}function Di(t){return Ti(t[0])}function Ii(t,e,n){t[e+1]=n}function Ai(t,e,n){t[e+2]=n}function Mi(t,e,n){var r=t[8];if(e){if(!r||0===n)return!0}else if(!r)return!1;return r[n]!==e}function Pi(t,e,n){var r=t[8]||pi(t);return n>0?r[n]=e:(r.splice(n=r[0],0,e,null),r[0]+=2),n}function Ri(t,e,n,r){var i=function(t,e){return n<<16|t}(r);t[e+3]=i}function Ni(t,e){return t[e+3]>>16&65535}function ji(t,e){var n=Ni(t,e);if(n){var r=t[8];if(r)return r[n]}return null}function Fi(t,e,n){t[0===e?e:e+0]=n}function Li(t,e){return t[0===e?e:e+0]}function Vi(t,e){return t[e+2]}function Bi(t,e){return t[e+1]}function zi(t){return 16&t[0]}function Ui(t,e){wi(t,0,e)}function Hi(t,e){e?t[0]|=8:t[0]&=-9}function qi(t,e,n){for(var r=(n||0)+1;r=0&&Fi(t,l,Ei(c=Li(t,l),ki(c),n));var c,f=Ti(u);f>=0&&Fi(t,f,Ei(c=Li(t,f),ki(c),e)),Ai(t,e,Vi(t,n)),Ii(t,e,Bi(t,n)),Fi(t,e,Li(t,n)),Ri(t,e,Ni(t,n),0),Ai(t,n,r),Ii(t,n,i),Fi(t,n,o),Ri(t,n,a,0)}function Wi(t,e,n,r,i,o,a,s){var u=e0){var o=ki(Li(t,i));Fi(t,i,Ei((xi(t,i)?1:0)|(Ci(t,i)?2:0)|(Si(t,i)?4:0),o,r))}}}(t)}function Ki(t,e){return e?!!t:null!==t}function $i(t,e,n,r){var i,o=r&&r(e)?4:0;return n?(o|=2,i=to(t[3],e)):i=to(t[2],e),Ei(o,i=i>0?i+1:0,0)}function Yi(t,e,n){return!(2&t)&&e&&n&&4&t?e.toString()!==n.toString():e!==n}var Zi=function(){function t(t,e,n){this._element=e,this._type=n,this._values={},this._dirty=!1,this._factory=t}return t.prototype.setValue=function(t,e){this._values[t]!==e&&(this._values[t]=e,this._dirty=!0)},t.prototype.buildPlayer=function(t,e){if(this._dirty){var n=this._factory.fn(this._element,this._type,this._values,e,t||null);return this._values={},this._dirty=!1,n}},t}();function Xi(t,e){return 65535&t[e+3]}function Qi(t,e){var n=Ji(t[1],e);return n>0?n/4:0}function Ji(t,e){for(var n=0;ni)for(var a=0===e,s=n.data,u=i;u=0)return-1;r=a/4,i[a+1]=o,i[a+3]=n||null}return r}(t,e,i);if(-1!==a){var s=t[4],u=s[1],l=s[0],c=4*l,f=9+c,p=f+4*u,h=p+c,d=s.length;s.push(r?r.length:0,n?n.length:0);var g=0,m=[];if(r&&r.length)for(var y=0;y=p,A=D>=(I?h:f),M=Li(t,D),P=ki(M),R=Ti(M);Fi(t,D,Ei(M,P,R+=I?A?4*m.length:0:4*T+4*(A?m.length:0)))}for(var N=0;N<4*m.length;N++)t.splice(h,0,null),t.splice(f,0,null),f++,p++,h+=2;for(var j=0;j<4*b.length;j++)t.splice(p,0,null),t.push(null),p++,h++;for(var F=t[3],L=t[2],V=0;V=m.length,z=B?V-m.length:V,U=B?b[z]:m[z],H=void 0,q=void 0;B?(H=h+4*(u+z),q=f+4*(u+z)):(H=p+4*(l+z),q=9+4*(l+z));var G=B?F:L,W=to(G,U);-1===W?(W=G.length+1,G.push(U,!B&&null)):W+=1;var K=$i(t,U,B,i||null);Fi(t,q,Ei(K,W,H)),Ii(t,q,U),Ai(t,q,null),Ri(t,q,0,a),Fi(t,H,Ei(K,W,q)),Ii(t,H,U),Ai(t,H,null),Ri(t,H,0,a)}s[1]=u+b.length,s[0]=l+m.length,Fi(t,0,Ei(0,0,p)|(o?16:0))}}}(i.stylingTemplate,r||null,t,e,n,hi(i))}function Bo(t,e){var n=Je();n.stylingTemplate||(n.stylingTemplate=di(e)),function(t,e,n){var r=t[1];if(-1==Ji(r,n)){r.push(n,-1,!1,null);for(var i=null,o=null,a=-1,s=0;s0&&da(le(n),2)}function Uo(t,e,n,r,i){var o=null;null!==n&&(o=r?Zt(n)+r:n),vi(ui(t+Ft,Xe()),e,o,!1,i)}function Ho(t,e,n,r){var i=n instanceof ii?n:!!n;vi(ui(t+Ft,Xe()),e,i,!0,r)}function qo(t,e,n,r){if(null!=r)return function(t,e,n,r){throw new Error("unimplemented. Should not be needed by ViewEngine compatibility")}();var i=Xe(),o=ee(t,i),a=ui(t+Ft,i);if(hi(o)&&e!==dr){var s=ro(a);Fo(i,o.inputs.class,(s.length?s+" ":"")+e)}else!function(t,e,n,r){n=n||null;var i=Qi(t,null),o=t[5],a=e instanceof ii?new Zi(e,o,1):null,s=n instanceof ii?new Zi(n,o,2):null,u=a?e.value:e,l=s?n.value:n,c=zi(t)||u===dr||u===t[6],f=l===dr||l===t[7];if(!c||!f){t[6]=u,t[7]=l;var p=ot,h=!1,d=!1,g=a?1:0;Mi(t,a,1)&&(Pi(t,a,1),d=!0);var m=s?3:0;Mi(t,s,3)&&(Pi(t,s,3),d=!0),c||("string"==typeof u?(p=u.split(/\s+/),h=!0):p=u?Object.keys(u):ot);for(var y=u||it,v=l?Object.keys(l):ot,b=l||it,_=v.length,w=!1,x=Di(t),C=0,S=v.length+p.length;x=_)&&!f||j&&!c){var E=j?C-_:C,O=j?p[E]:v[E],k=j?!!h||y[O]:b[O],T=j?g:m;if((F=Bi(t,x))===O){var D=Vi(t,x),I=Li(t,x);if(Ri(t,x,T,i),Yi(I,D,k)){Ai(t,x,k),d=d||!!T;var A=Oi(t,I);(null!=D||Yi(I,A,k))&&(wi(t,x,!0),w=!0)}}else{var M=qi(t,O,x);if(M>0){var P=Vi(t,M),R=Li(t,M);Gi(t,x,M),Yi(R,P,k)&&(A=Oi(t,R),Ai(t,x,k),(null!=P||Yi(R,A,k))&&(wi(t,x,!0),d=d||!!T,w=!0))}else d=d||!!T,Wi(t,x,j,O,$i(t,O,j,eo(t,i)),k,i,T),w=!0}}x+=4,C++}for(;x=_)&&!f||j&&!c){E=j?C-_:C;var F=j?p[E]:v[E],L=(D=j?!!h||y[F]:b[F],I=1|$i(t,F,j,N),T=j?g:m,t.length);t.push(I,F,D,0),Ri(t,L,T,i),w=!0}C++}w&&(Ui(t,!0),no(t,i,!0)),d&&Hi(t,!0)}}(a,e,n)}function Go(t,e){var n=Xe(),r=Mr(e,n[At]),i=so(t,3,r,null,null);rn(!1),Gr(r,i,n)}function Wo(t,e){if(e!==dr){var n=Xe(),r=Jt(t,n),i=n[At];Cr(i)?i.setValue(r,Zt(e)):r.textContent=Zt(e)}}function Ko(t,e,n){var r=-(e.index-Ft),i=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function $o(t,e,n,r){var i=Je();Yo(t,i,e,n),i&&i.attrs&&function(t,e,r,o){var a=i.initialInputs;(void 0===a||t>=a.length)&&(a=function(t,e,n){var r=n.initialInputs||(n.initialInputs=[]);r[t]=null;for(var i=n.attrs,o=0;o=o.length||null==o[t])&&(o[t]=Oo(t,null,e,n,i.directiveRegistry,i.pipeRegistry,null)),o[t]}(t,e,n,o),null,4),a[Ct]&&(s[Ct]=a[Ct].createView()),uo(t,s),mn(s,s[bt].node)),a&&(on(s)&&Rr(s,a,r,a[Lt],-1),a[Lt]++),on(s)?3:2}function ua(){var t=Xe(),e=t[Et];on(t)&&(oo(t),t[_t]&=-2),oo(t),vn(t[wt]),tn(e),rn(!1)}function la(t,e){var n=ve(Xe())[Et];if(!n.projection)for(var r=n.projection=new Array(t?t.length+1:1).fill(null),i=r.slice(),o=n.child;null!==o;){var a=t?ni(o,t,e):0,s=o.next;i[a]?i[a].next=o:(r[a]=o,o.next=null),i[a]=o,o=s}}var ca=[];function fa(t,e,n){void 0===e&&(e=0);var r=Xe(),i=so(t,1,null,null,n||null);null===i.projection&&(i.projection=e),rn(!1);for(var o=ve(r),a=o[Et].projection[e],s=o[wt],u=-1;a;){if(1===a.type){var l=ve(s),c=l[Et].projection[a.projection];if(c){ca[++u]=a,ca[++u]=s,a=c,s=l[wt];continue}}else a.flags|=2,Yr(a,i,r,s);null===a.next&&s!==o[wt]&&(s=ca[u--],a=ca[u--]),a=a.next}}function pa(t,e,n){var r=t[bt],i=fn();return t[Pt]?t[Pt][xt]=n:i&&(r.childIndex=e),t[Pt]=n,n}function ha(t){for(;t&&!(128&t[_t]);)t[_t]|=8,t=t[wt];t[_t]|=8,da(t[Tt],1)}function da(t,e){var n,r=0===t.flags;t.flags|=e,r&&t.clean==io&&(t.clean=new Promise(function(t){return n=t}),t.scheduler(function(){if(1&t.flags&&(t.flags&=-2,ga(t)),2&t.flags){t.flags&=-3;var e=t.playerHandler;e&&e.flushPlayers()}t.clean=io,n(null)}))}function ga(t){for(var e=0;e=2&&r[i-2]===e.hostBindings?r[i-1]=r[i-1]+n:r.push(e.hostBindings,n)}(n,Ke,t),function(t,e,n){for(var r=0;r=r.data.length&&(r.data[i]=null),n[i]=e}function Pa(t){return Xt(an,t)}function Ra(t){return Xe()[Nt][t]}function Na(t){return Xt(Xe(),t)}function ja(t,e){return void 0===e&&(e=ke.Default),t=Q(t),Dn(Je(),Xe(),t,e)}function Fa(t){return Tn(Je(),t)}function La(t,e){var n=Xe(),r=n[bt],i=(n[Nt]||(n[Nt]=[])).push(t);if(fn()){var o=r.contentQueries||(r.contentQueries=[]);e!==(r.contentQueries.length?r.contentQueries[r.contentQueries.length-2]:-1)&&o.push(e,i-1)}}var Va=io;function Ba(t){return t?(void 0===t.inputs&&(t.inputs=Lo(t,0)),t.inputs):null}function za(){return Xe()}function Ua(t){return t[kt]||(t[kt]=[])}function Ha(t){return t[bt].cleanup||(t[bt].cleanup=[])}function qa(t,e){var n=Vn(t);if(n){var r=n.native,i=n.lView,o=function(t,e){if(!(e=e||Vn(r)))return null;var n=ui(e.nodeIndex,e.lView);return fi(n)||pi(n)}(0,n),a=Zn(i);ci(o,a,r,e,0,t),da(a,2)}}function Ga(t){var e=Vn(t);if(!e)return[];var n=ui(e.nodeIndex,e.lView),r=n?fi(n):null;return r?function(t){for(var e=[],n=t[0],r=2;r ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):Y(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Cs,"\n ")}function Ts(t,e){return new Error(ks(t,e))}var Ds=new C("The presence of this token marks an injector as being the root injector."),Is={},As={},Ms=[],Ps=void 0;function Rs(){return void 0===Ps&&(Ps=new hs),Ps}function Ns(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Rs(),new js(t,n,e)}var js=function(){function t(t,e,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1;var i=[];Bs([t],function(t){return r.processInjectorType(t,[],i)}),e&&Bs(e,function(n){return r.processProvider(n,t,e)}),this.records.set(ps,Vs(void 0,this)),this.isRootInjector=this.records.has(Ds),this.injectorDefTypes.forEach(function(t){return r.get(t)})}return t.prototype.destroy=function(){this.assertNotDestroyed(),this.destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}},t.prototype.get=function(t,e,n){void 0===e&&(e=fs),void 0===n&&(n=ke.Default),this.assertNotDestroyed();var r,i=De(this);try{if(!(n&ke.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof C)&&w(t);a&&this.injectableDefInScope(a)&&(o=Vs(Fs(t),Is),this.records.set(t,o))}if(void 0!==o)return this.hydrate(t,o)}return(n&ke.Self?Rs():this.parent).get(t,e)}finally{De(i)}},t.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var r=this;if(t=Q(t)){var i=x(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a),u=void 0!==o&&t.providers||Ms;if(void 0!==o&&(i=x(o)),null!=i){if(this.injectorDefTypes.add(a),this.records.set(a,Vs(i.factory,Is)),null!=i.imports&&!s){n.push(a);try{Bs(i.imports,function(t){return r.processInjectorType(t,e,n)})}finally{}}var l=i.providers;if(null!=l&&!s){var c=t;Bs(l,function(t){return r.processProvider(t,c,l)})}var f=t.ngModule;Bs(u,function(t){return r.processProvider(t,f,u)})}}},t.prototype.processProvider=function(t,e,n){var r=Us(t=Q(t))?t:Q(t&&t.provide),i=function(t,e,n){var r=Ls(t,e,n);return zs(t)?Vs(void 0,t.useValue):Vs(r,Is)}(t,e,n);if(Us(t)||!0!==t.multi){var o=this.records.get(r);if(o&&void 0!==o.multi)throw new Error("Mixed multi-provider for "+Y(r))}else{var a=this.records.get(r);if(a){if(void 0===a.multi)throw new Error("Mixed multi-provider for "+r+".")}else(a=Vs(void 0,Is,!0)).factory=function(){return Re(a.multi)},this.records.set(r,a);r=t,a.multi.push(t)}this.records.set(r,i)},t.prototype.hydrate=function(t,e){if(e.value===As)throw new Error("Cannot instantiate cyclic dependency! "+Y(t));var n;return e.value===Is&&(e.value=As,e.value=e.factory()),"object"==typeof e.value&&e.value&&"object"==typeof(n=e.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value},t.prototype.injectableDefInScope=function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||"root"===t.providedIn&&this.isRootInjector:this.injectorDefTypes.has(t.providedIn))},t}();function Fs(t){var e=w(t);if(null===e){var n=x(t);if(null!==n)return n.factory;if(t instanceof C)throw new Error("Token "+Y(t)+" is missing an ngInjectableDef definition.");if(t instanceof Function){var r=t.length;if(r>0){var i=new Array(r).fill("?");throw new Error("Can't resolve all parameters for "+Y(t)+": ("+i.join(", ")+").")}return function(){return new t}}throw new Error("unreachable")}return e.factory}function Ls(t,e,n){var i,o=void 0;if(Us(t))return Fs(Q(t));if(zs(t))o=function(){return Q(t.useValue)};else if((i=t)&&i.useExisting)o=function(){return Me(Q(t.useExisting))};else if(t&&t.useFactory)o=function(){return t.useFactory.apply(t,Object(r.__spread)(Re(t.deps||[])))};else{var a=Q(t&&(t.useClass||t.provide));if(!a){var s="";throw e&&n&&(s=" - only instances of Provider and Type are allowed, got: ["+n.map(function(e){return e==t?"?"+t+"?":"..."}).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+Y(e)+"'"+s)}if(!t.deps)return Fs(a);o=function(){return new(a.bind.apply(a,Object(r.__spread)([void 0],Re(t.deps))))}}return o}function Vs(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function Bs(t,e){t.forEach(function(t){return Array.isArray(t)?Bs(t,e):e(t)})}function zs(t){return t&&"object"==typeof t&&ws in t}function Us(t){return"function"==typeof t}function Hs(t,e,n,r,i){if(t=Q(t),Array.isArray(t))for(var o=0;o>16;if(Us(t)||!t.multi){var h=new $t(u,i,ja),d=Gs(s,e,i?c:c+p,f);-1==d?(kn(Cn(l,a),a,s),e.push(s),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(h),a.push(h)):(n[d]=h,a[d]=h)}else{var g=Gs(s,e,c+p,f),m=Gs(s,e,c,c+p),y=m>=0&&n[m];i&&!y||!i&&!(g>=0&&n[g])?(kn(Cn(l,a),a,s),h=function(t,e,n,r,i){var o=new $t(t,n,ja);return o.multi=[],o.index=e,o.componentProviders=0,qs(o,i,r&&!n),o}(i?Ks:Ws,n.length,i,r,u),!i&&y&&(n[m].providerFactory=h),e.push(s),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(h),a.push(h)):qs(n[i?m:g],u,!i&&r),!i&&r&&y&&n[m].componentProviders++}}}function qs(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Gs(t,e,n,r){for(var i=n;i-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Lr(this._lView)},t.prototype.onDestroy=function(t){var e,n;n=t,Ua(e=this._lView).push(n),e[bt].firstTemplatePass&&Ha(e).push(e[kt].length-1,null)},t.prototype.markForCheck=function(){ha(this._lView)},t.prototype.detach=function(){this._lView[_t]&=-17},t.prototype.reattach=function(){this._lView[_t]|=16},t.prototype.detectChanges=function(){ya(this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t){ln(!0);try{ma(t)}finally{ln(!1)}}(this.context)},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype._lookUpContext=function(){return this._context=this._lView[wt][this._componentIndex]},t}(),cu=function(t){function e(e){var n=t.call(this,e,null,-1)||this;return n._view=e,n}return Object(r.__extends)(e,t),e.prototype.detectChanges=function(){va(this._view)},e.prototype.checkNoChanges=function(){!function(t){ln(!0);try{va(t)}finally{ln(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(lu);function fu(t,e,n){return Js||(Js=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(t)),new Js(te(e,n))}function pu(t,e,n,i){if(tu||(tu=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s._declarationParentView=e,s.elementRef=n,s._tView=r,s._renderer=i,s._queries=o,s._injectorIndex=a,s}return Object(r.__extends)(e,t),e.prototype.createEmbeddedView=function(t,e,n,r,i){var o=function(t,e,n,r,i,o){var a=nn(),s=Je();rn(!0),tn(null);var u=ao(n,t,e,4);return u[jt]=n,i&&(u[Ct]=i.createView()),uo(-1,u),t.firstTemplatePass&&(t.node.injectorIndex=o),rn(a),tn(s),u}(this._tView,t,this._declarationParentView,0,this._queries,this._injectorIndex);e&&Rr(o,e,r,i,n.index),co(o,this._tView,t);var a=new lu(o,t,-1);return a._tViewNode=o[Et],a},e}(t)),0===n.type){var o=i[n.index];return new tu(i,fu(e,n,i),n.tViews,Xe()[At],o[Ct],n.injectorIndex)}return null}function hu(t,e,n){if(ie(t)){var r=t.directiveStart,i=ne(t.index,e);return new lu(i,n,r)}if(3===t.type){var o=ve(e);return new lu(o,o[Tt],-1)}return null}var du=function(){function t(t){this.nativeElement=t}return t.__NG_ELEMENT_ID__=function(){return mu(t)},t}(),gu=function(t){return fu(t,Je(),Xe())},mu=us,yu=function(){return function(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),vu=function(){return function(){}}(),bu=function(){return function(){}}(),_u=function(){return function(){}}(),wu=function(){return function(){}}(),xu=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),Cu=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Eu()},t}(),Su=function(){return function(t){var e=Xe()[At];if(Cr(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}()},Eu=us,Ou=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),ku=function(){return function(){}}(),Tu=function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}(),Du=new Tu("7.2.15"),Iu=function(t){function e(e){var n=t.call(this)||this;return n.ngModule=e,n}return Object(r.__extends)(e,t),e.prototype.resolveComponentFactory=function(t){var e=gt(t);return new Nu(e,this.ngModule)},e}(iu);function Au(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Mu=new C("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return Ja(Me(Pu))}}),Pu=new C("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return me}}),Ru={},Nu=function(t){function e(e,n){var r=t.call(this)||this;return r.componentDef=e,r.ngModule=n,r.componentType=e.type,r.selector=e.selectors[0][0],r.ngContentSelectors=[],r}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return Au(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return Au(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i=void 0===n,o=(r=r||this.ngModule)?function(t,e){return{get:function(n,r){var i=t.get(n,Ru);return i!==Ru||r===Ru?i:e.get(n,r)}}}(t,r.injector):t,a=o.get(wu,Sr),s=o.get(ku,null),u=i?Co(this.selector,a.createRenderer(null,this.componentDef)):To(a,n),l=this.componentDef.onPush?136:132,c=i?Ja():o.get(Mu),f=a.createRenderer(u,this.componentDef);n&&u&&(Cr(f)?f.setAttribute(u,"ng-version",Du.full):u.setAttribute("ng-version",Du.full));var p,h,d=ao(null,Oo(-1,null,1,0,null,null,null),c,l,a,f,s,o),g=mn(d,null);try{a.begin&&a.begin();var m=Xa(u,this.componentDef,d,a,f);if(h=ee(0,d),e)for(var y=0,v=d[bt],b=h.projection=[],_=0;_',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Ju.hasOwnProperty(e)&&!Yu.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(sl(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),ol=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,al=/([^\#-~ |!])/g;function sl(t){return t.replace(/&/g,"&").replace(ol,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(al,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function ul(t,e){var n=null;try{$u=$u||new zu(t);var r=e?String(e):"";n=$u.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=$u.getInertBodyElement(r)}while(r!==o);var a=new il,s=a.sanitizeChildren(ll(n)||n);return Vu()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=ll(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function ll(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var cl={marker:"element"},fl={marker:"comment"},pl="\ufffd",hl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,dl=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,gl=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,ml=/\ufffd(\d+):?\d*\ufffd/gi,yl=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,vl=/\[(\ufffd.+?\ufffd?)\]/g,bl=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,_l=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g;function wl(t){if(!t)return[];var e,n=0,r=[],i=[],o=/[{}]/g;for(o.lastIndex=0;e=o.exec(t);){var a=e.index;if("}"==e[0]){if(r.pop(),0==r.length){var s=t.substring(n,a);hl.test(s)?i.push(xl(s)):s&&i.push(s),n=a+1}}else{if(0==r.length){var u=t.substring(n,a);i.push(u),n=a+1}r.push("{")}}var l=t.substring(n);return""!=l&&i.push(l),i}function xl(t){for(var e=[],n=[],r=1,i=0,o=wl(t=t.replace(hl,function(t,e,n){return r="select"===n?0:1,i=parseInt(e.substr(1),10),""})),a=0;a0&&a!==s&&c.push(a.index<<3|0);for(var f=[],p=[],h=function(t,e){if("number"!=typeof e)return Cl(t);var n=t.indexOf(":"+e+pl)+2+e.toString().length,r=t.search(new RegExp(pl+"\\/\\*\\d+:"+e+pl));return Cl(t.substring(n,r))}(n,r).split(gl),d=0;d>>17,f=void 0;a=Al(o,f=c===t?r[Et]:ee(c,r),a),f.next=null;break;case 0:var p=l>>>3;s.push(p),a=o,(o=ee(p,r))&&(tn(o),3===o.type&&rn(!0));break;case 5:a=o=ee(l>>>3,r),tn(o),rn(!1);break;case 4:Ao(l>>>3,e[++u],e[++u]);break;default:throw new Error('Unable to determine the type of mutate operation for "'+l+'"')}else switch(l){case fl:var h=e[++u],d=i.createComment(h);a=o,o=so(n++,5,d,null,null),Un(d,r),o.activeCaseIndex=null,rn(!1);break;case cl:var g=e[++u];a=o,o=so(n++,3,i.createElement(g),g,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'+l+'"')}}return rn(!1),s}function Nl(t,e){var n=ee(t,e);$r(n,Jt(t,e)||null,e),n.detached=!0;var r=Na(t);if(ae(r)){var i=r;0!==n.type&&$r(n,i[Bt]||null,e),i[zt]=null}}function jl(t,e,n){Il(t,e,n),Pl()}function Fl(t,e){var n=Xe()[bt];n.firstTemplatePass&&null===n.data[t+Ft]&&function(t,e,n){for(var r=Je().index-Ft,i=[],o=0;o>>2,g=void 0,m=void 0;switch(3&h){case 1:Ao(d,e[++p],f,e[++p]);break;case 0:Wo(d,f);break;case 2:if(g=n[e[++p]],null!==(m=ee(d,o)).activeCaseIndex)for(var y=g.remove[m.activeCaseIndex],v=0;v>>3,o);break;case 6:var _=ee(y[v+1]>>>3,o).activeCaseIndex;null!==_&&ye(n[b>>>3].remove[_],y)}}var w=Hl(g,f);m.activeCaseIndex=-1!==w?w:null,Rl(-1,g.create[w],g.expandoStartIndex,o),s=!0;break;case 3:g=n[e[++p]],m=ee(d,o),t(g.update[m.activeCaseIndex],n,r,i,o,s)}}}u+=c}}(r,i,e[Ot]-Vl-1,Ll,e),Ll=0,Vl=0}}var Ul=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});function Hl(t,e){var n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:var r=function(t,n){switch(function(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?Ul.One:Ul.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?Ul.One:Ul.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?Ul.One:Ul.Other;case"ar":return 0===n?Ul.Zero:1===n?Ul.One:2===n?Ul.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?Ul.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?Ul.Many:Ul.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?Ul.One:Ul.Other;case"be":return n%10==1&&n%100!=11?Ul.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?Ul.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?Ul.Many:Ul.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?Ul.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?Ul.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?Ul.Few:0!==n&&n%1e6==0?Ul.Many:Ul.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?Ul.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?Ul.Few:Ul.Other;case"cs":case"sk":return 1===i&&0===o?Ul.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?Ul.Few:0!==o?Ul.Many:Ul.Other;case"cy":return 0===n?Ul.Zero:1===n?Ul.One:2===n?Ul.Two:3===n?Ul.Few:6===n?Ul.Many:Ul.Other;case"da":return 1===n||0!==s&&(0===i||1===i)?Ul.One:Ul.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?Ul.One:0===o&&i%100==2||a%100==2?Ul.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?Ul.Few:Ul.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?Ul.One:Ul.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?Ul.One:Ul.Other;case"ga":return 1===n?Ul.One:2===n?Ul.Two:n===Math.floor(n)&&n>=3&&n<=6?Ul.Few:n===Math.floor(n)&&n>=7&&n<=10?Ul.Many:Ul.Other;case"gd":return 1===n||11===n?Ul.One:2===n||12===n?Ul.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?Ul.Few:Ul.Other;case"gv":return 0===o&&i%10==1?Ul.One:0===o&&i%10==2?Ul.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?Ul.Many:Ul.Other:Ul.Few;case"he":return 1===i&&0===o?Ul.One:2===i&&0===o?Ul.Two:0!==o||n>=0&&n<=10||n%10!=0?Ul.Other:Ul.Many;case"is":return 0===s&&i%10==1&&i%100!=11||0!==s?Ul.One:Ul.Other;case"ksh":return 0===n?Ul.Zero:1===n?Ul.One:Ul.Other;case"kw":case"naq":case"se":case"smn":return 1===n?Ul.One:2===n?Ul.Two:Ul.Other;case"lag":return 0===n?Ul.Zero:0!==i&&1!==i||0===n?Ul.Other:Ul.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?Ul.Few:0!==a?Ul.Many:Ul.Other:Ul.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?Ul.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?Ul.One:Ul.Other;case"mk":return 0===o&&i%10==1||a%10==1?Ul.One:Ul.Other;case"mt":return 1===n?Ul.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?Ul.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?Ul.Many:Ul.Other;case"pl":return 1===i&&0===o?Ul.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?Ul.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?Ul.Many:Ul.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?Ul.One:Ul.Other;case"ro":return 1===i&&0===o?Ul.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?Ul.Few:Ul.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?Ul.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?Ul.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?Ul.Many:Ul.Other;case"shi":return 0===i||1===n?Ul.One:n===Math.floor(n)&&n>=2&&n<=10?Ul.Few:Ul.Other;case"si":return 0===n||1===n||0===i&&1===a?Ul.One:Ul.Other;case"sl":return 0===o&&i%100==1?Ul.One:0===o&&i%100==2?Ul.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?Ul.Few:Ul.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?Ul.One:Ul.Other;default:return Ul.Other}}("en-US",e)){case Ul.Zero:return"zero";case Ul.One:return"one";case Ul.Two:return"two";case Ul.Few:return"few";case Ul.Many:return"many";default:return"other"}}();-1===(n=t.cases.indexOf(r))&&"other"!==r&&(n=t.cases.indexOf("other"));break;case 0:n=t.cases.indexOf("other")}return n}function ql(t,e,n,i){for(var o=[],a=[],s=[],u=[],l=[],c=0;c=0;n--){var r=e[n];if(t===r.name)return r}throw new Error("The pipe '"+t+"' could not be found!")}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.pipeDestroyHooks||(r.pipeDestroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory(null);return Ma(t,o),o}function uc(t,e,n){var r=Na(t);return dc(hc(t)?Ql(e,r.transform,n,r):r.transform(n))}function lc(t,e,n,r){var i=Na(t);return dc(hc(t)?Jl(e,i.transform,n,r,i):i.transform(n,r))}function cc(t,e,n,r,i){var o=Na(t);return dc(hc(t)?tc(e,o.transform,n,r,i,o):o.transform(n,r,i))}function fc(t,e,n,r,i,o){var a=Na(t);return dc(hc(t)?ec(e,a.transform,n,r,i,o,a):a.transform(n,r,i,o))}function pc(t,e,n){var r=Na(t);return dc(hc(t)?ac(e,r.transform,n,r):r.transform.apply(r,n))}function hc(t){return Xe()[bt].data[t+Ft].pure}function dc(t){return lr.isWrapped(t)&&(t=lr.unwrap(t),Xe()[dn()]=dr),t}var gc=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Object(r.__extends)(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,a=function(t){return null},s=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(a=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(a=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=t.prototype.subscribe.call(this,o,a,s);return e instanceof i.a&&e.add(u),u},e}(o.a),mc=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return vc(t,du)},t}(),yc=function(t,e){return pu(t,e,Je(),Xe())},vc=us,bc=function(){function t(t,e,n){this.parent=t,this.shallow=e,this.deep=n}return t.prototype.track=function(t,e,n,r){n?this.deep=Ac(this.deep,t,e,null!=r?r:null):this.shallow=Ac(this.shallow,t,e,null!=r?r:null)},t.prototype.clone=function(){return new t(this,null,this.deep)},t.prototype.container=function(){var e=_c(this.shallow),n=_c(this.deep);return e||n?new t(this,e,n):null},t.prototype.createView=function(){var e=wc(this.shallow),n=wc(this.deep);return e||n?new t(this,e,n):null},t.prototype.insertView=function(t){xc(t,this.shallow),xc(t,this.deep)},t.prototype.addNode=function(t){return Tc(this.deep,t),re(t)?(Tc(this.shallow,t),t.parent&&re(t.parent)&&Tc(this.parent.shallow,t),this.parent):(function(t){return null===t.parent||re(t.parent)}(t)&&Tc(this.shallow,t),this)},t.prototype.removeView=function(){Cc(this.shallow),Cc(this.deep)},t}();function _c(t){for(var e=null;t;){var n=[];t.values.push(n),e={next:e,list:t.list,predicate:t.predicate,values:n,containerValues:null},t=t.next}return e}function wc(t){for(var e=null;t;)e={next:e,list:t.list,predicate:t.predicate,values:[],containerValues:t.values},t=t.next;return e}function xc(t,e){for(;e;)e.containerValues.splice(t,0,e.values),e=e.next}function Cc(t){for(;t;){var e=t.containerValues,n=e.indexOf(t.values);e.splice(n,1)[0].length&&t.list.setDirty(),t=t.next}}function Sc(t,e){var n=t.localNames;if(n)for(var r=0;r-1?Pn(e[bt].data,e,r,t):function(t,e){return 3===t.type||4===t.type?fu(du,t,e):0===t.type?pu(mc,du,t,e):null}(t,e)}function Tc(t,e){for(var n=Xe();t;){var r=t.predicate,i=r.type;if(i){var o=null;i===mc?o=Oc(i,e,n,r.read):null!==(u=Mn(e,n,i,!1,!1))&&(o=kc(e,n,r.read,u)),null!==o&&Dc(t,o)}else for(var a=r.selector,s=0;s0?(t=r.concat(t.slice(n+1)),n=0):n++:(e.push(r),n++)}return e}(t),this.dirty=!1},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}();function Pc(t,e,n,r){var i,o,a,s=new Mc;return(i=bc,o=Xe(),a=o[Ct],qe&&qe!==o[Et]&&!re(qe)&&(a&&(a=o[Ct]=a.clone()),qe.flags|=4),a||(o[Ct]=new i(null,null,null))).track(s,e,n,r),function(t,e,n){var r=Ua(t);r.push(e),t[bt].firstTemplatePass&&Ha(t).push(n,r.length-1)}(Xe(),s,s.destroy),null!=t&&Ma(t,s),s}function Rc(t){return!!t.dirty&&(t.reset(t._valuesTree),t.notifyOnChanges(),!0)}function Nc(t,e){return pu(mc,du,t,e)}var jc="__SANITIZER_TRUSTED_BRAND__";function Fc(t,e){return t instanceof String&&t[jc]===e}function Lc(t){return Hc(t,"Html")}function Vc(t){return Hc(t,"Style")}function Bc(t){return Hc(t,"Script")}function zc(t){return Hc(t,"Url")}function Uc(t){return Hc(t,"ResourceUrl")}function Hc(t,e){var n=new String(t);return n[jc]=e,n}var qc=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Gc=/^url\(([^)]+)\)$/;function Wc(t){if(!(t=String(t).trim()))return"";var e=t.match(Gc);return e&&qu(e[1])===e[1]||t.match(qc)&&function(t){for(var e=!0,n=!0,r=0;r=0;t--){var e=Cf[t],n=e.moduleType,r=e.ngModule;r.declarations&&r.declarations.every(Ef)&&(Cf.splice(t,1),Df(n,r))}}finally{Sf=!1}}}(),void 0!==t.ngSelectorScope){var s=Af(t.ngSelectorScope);If(n,s)}}return n},configurable:!1})}function jf(t,e){var n=null;Object.defineProperty(t,p,{get:function(){if(null===n){var r=Lf(t,e);n=be().compileDirective(tf,"ng://"+(t&&t.name)+"/ngDirectiveDef.js",r)}return n},configurable:!1})}function Ff(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function Lf(t,e){var n=bf().propMetadata(t);return{name:t.name,type:t,typeArgumentCount:0,selector:e.selector,deps:_f(t),host:e.host||it,propMetadata:n,inputs:e.inputs||ot,outputs:e.outputs||ot,queries:Vf(t,n,Bf),lifecycle:{usesOnChanges:void 0!==t.prototype.ngOnChanges},typeSourceSpan:null,usesInheritance:!Ff(t),exportAs:e.exportAs||null,providers:e.providers||null}}function Vf(t,e,n){var r=[],i=function(i){e.hasOwnProperty(i)&&e[i].forEach(function(e){if(n(e)){if(!e.selector)throw new Error("Can't construct a query for the property \""+i+'" of "'+Zt(t)+"\" since the query selector wasn't defined.");r.push(function(t,e){return{propertyName:i,predicate:(n=e.selector,"string"==typeof n?n.split(",").map(function(t){return t.trim()}):Q(n)),descendants:e.descendants,first:e.first,read:e.read?e.read:null};var n}(0,e))}})};for(var o in e)i(o);return r}function Bf(t){var e=t.ngMetadataName;return"ContentChild"===e||"ContentChildren"===e}function zf(t){var e=t.ngMetadataName;return"ViewChild"===e||"ViewChildren"===e}function Uf(t,e){var n=null;Object.defineProperty(t,g,{get:function(){return null===n&&(n=be().compilePipe(tf,"ng://"+Zt(t)+"/ngPipeDef.js",{type:t,name:t.name,deps:_f(t),pipeName:e.name,pure:void 0===e.pure||e.pure})),n},configurable:!1})}var Hf=k("Directive",function(t){return void 0===t&&(t={}),t},void 0,void 0,function(t,e){return ep(t,e)}),qf=k("Component",function(t){return void 0===t&&(t={}),Object(r.__assign)({changeDetection:L.Default},t)},Hf,void 0,function(t,e){return tp(t,e)}),Gf=k("Pipe",function(t){return Object(r.__assign)({pure:!0},t)},void 0,void 0,function(t,e){return np(t,e)}),Wf=function(t){return function(e,n){for(var r=[],i=2;i1?" ("+function(t){for(var e=[],n=0;n-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(function(t){return Y(t.token)}).join(" -> ")+")":""}function kp(t,e,n,r){var i=[e],o=n(i),a=r?function(t,e){var n=o+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[_p]=e,r}(0,r):Error(o);return a.addKey=Tp,a.keys=i,a.injectors=[t],a.constructResolvingMessage=n,a[_p]=r,a}function Tp(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function Dp(t,e){for(var n=[],r=0,i=e.length;r=this._providers.length)throw function(t){return Error("Index "+t+" is out-of-bounds.")}(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw kp(this,t.key,function(t){return"Cannot instantiate cyclic dependency!"+Op(t)});return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Vh=function(){function t(){this._applications=new Map,Uh.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Uh.findTestabilityInTree(this,t,e)},Object(r.__decorate)([Object(r.__metadata)("design:paramtypes",[])],t)}();function Bh(t){Uh=t}var zh,Uh=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}());function Hh(t,e,n){return Promise.resolve(new Yl(n))}var qh=new C("AllowMultipleToken"),Gh=function(){return function(t,e){this.name=t,this.token=e}}();function Wh(t){if(zh&&!zh.destroyed&&!zh.injector.get(qh,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zh=t.get(Xh);var e=t.get(th,null);return e&&e.forEach(function(t){return t()}),zh}function Kh(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new C(r);return function(e){void 0===e&&(e=[]);var o=Zh();if(!o||o.injector.get(qh,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});Wh(ds.create({providers:a,name:r}))}return $h(i)}}function $h(t){var e=Zh();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function Yh(){zh&&!zh.destroyed&&zh.destroy()}function Zh(){return zh&&!zh.destroyed?zh:null}var Xh=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new Fh:("zone.js"===n?void 0:n)||new Ah({enableLongStackTrace:Vu()}),o=[{provide:Ah,useValue:i}];return i.run(function(){var e=ds.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(Ep,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return td(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,i){try{var o=((a=n.injector.get(Yp)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Wp(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(a,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Qh({},e);return function(t,e,n){return t.get(bh).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Jh);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Y(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function Qh(t,e){return Array.isArray(e)?e.reduce(Qh,t):Object(r.__assign)({},t,e)}var Jh=function(){function t(t,e,n,r,i,o){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Vu(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var c=new a.a(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),f=new a.a(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Ah.assertNotInAngularZone(),K(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Ah.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(c,f.pipe(Object(u.a)()))}var e;return e=t,t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Xs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof au?null:this._injector.get(su),o=n.create(ds.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(Lh,null);return a&&o.injector.get(Vh).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Vu()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Th(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;td(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(nh,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),td(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=kh("ApplicationRef#tick()"),t}();function td(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var ed=function(){function t(){this.dirty=!0,this._results=[],this.changes=new gc,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[W()]=function(){return this._results[W()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),nd=function(){return function(){}}(),rd={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},id=function(){function t(t,e){this._compiler=t,this._config=e||rd}return t.prototype.load=function(t){return this._compiler instanceof yh?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=Object(r.__read)(t.split("#"),2),o=i[0],a=i[1];return void 0===a&&(a="default"),n("crnd")(o).then(function(t){return t[a]}).then(function(t){return od(t,o,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(r.__read)(t.split("#"),2),i=e[0],o=e[1],a="NgFactory";return void 0===o&&(o="default",a=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[o+a]}).then(function(t){return od(t,i,o)})},t}();function od(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var ad=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ud(t,du)},t}(),sd=function(t,e){return function(t,e,n,i){var o;eu||(eu=function(t){function n(e,n,r){var i=t.call(this)||this;return i._lContainer=e,i._hostTNode=n,i._hostView=r,i._viewRefs=[],i}return Object(r.__extends)(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return fu(e,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new jn(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var t=On(this._hostTNode,this._hostView),e=ge(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.injectorIndex;)i=i.parent;return i}for(var o=de(t),a=e,s=e[Et];o>1;)s=(a=a[jt])[Et],o--;return s}(t,this._hostView,this._hostTNode);return pe(t)&&null!=n?new jn(n,e):new jn(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this._lContainer[Vt].length;)this.remove(0)},n.prototype.get=function(t){return this._viewRefs[t]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer[Vt].length},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(t,e,n){var r=this._adjustIndex(n),i=t.createEmbeddedView(e||{},this._lContainer,this._hostTNode,this._hostView,r);return i.attachToViewContainerRef(this),this._viewRefs.splice(r,0,i),i},n.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;!i&&null==t.ngModule&&o&&(i=o.get(su,null));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},n.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t._lView,r=this._adjustIndex(e);return Rr(n,this._lContainer,this._hostView,r,this._hostTNode.index),Pr(n,!0,Kr(r,this._lContainer[Vt],this._lContainer[Bt])),t.attachToViewContainerRef(this),this._viewRefs.splice(r,0,t),t},n.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this.indexOf(t);return this.detach(n),this.insert(t,this._adjustIndex(e)),t},n.prototype.indexOf=function(t){return this._viewRefs.indexOf(t)},n.prototype.remove=function(t){var e=this._adjustIndex(t,-1);jr(this._lContainer,this._hostTNode,e),this._viewRefs.splice(e,1)},n.prototype.detach=function(t){var e=this._adjustIndex(t,-1),n=Nr(this._lContainer,e,!!this._hostTNode.detached);return null!=this._viewRefs.splice(e,1)[0]?new lu(n,n[Tt],n[Rt]):null},n.prototype._adjustIndex=function(t,e){return void 0===e&&(e=0),null==t?this._lContainer[Vt].length+e:t},n}(t));var a=i[n.index];if(ae(a))(o=a)[Lt]=-1;else{var s=i[At].createComment("");if(se(i)){var u=i[At],l=te(n,i);Hr(u,qr(u,l),s,function(t,e){return Cr(t)?t.nextSibling(e):e.nextSibling}(u,l))}else Gr(s,n,i);i[n.index]=o=ea(a,n,i,s,!0),pa(i,n.index,o)}return new eu(o,n,i)}(t,e,Je(),Xe())},ud=us,ld=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return fd()},t}(),cd=function(){return hu(Je(),Xe(),null)},fd=function(){for(var t=[],e=0;e-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:c,token:e.token},t._providers[c]=om,t._providers[c]=pm(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{De(o)}}function pm(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var i=n.length;switch(i){case 0:return new e;case 1:return new e(fm(t,n[0]));case 2:return new e(fm(t,n[0]),fm(t,n[1]));case 3:return new e(fm(t,n[0]),fm(t,n[1]),fm(t,n[2]));default:for(var o=new Array(i),a=0;a=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,ym(n,e),cg.dirtyParentQueries(r),gm(r),r}function dm(t,e,n){var r=e?Ig(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);Bg(n,2,i,o,void 0)}function gm(t){Bg(t,3,null,null,void 0)}function mm(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ym(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var vm=new Object;function bm(t,e,n,r,i,o){return new wm(t,e,n,r,i,o)}function _m(t){return t.viewDefFactory}var wm=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=Vg(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=cg.createRootView(t,e||[],n,i,r,vm),s=ag(a,o).instance;return n&&a.renderer.setAttribute(og(a,0).renderElement,"ng-version",Du.full),new xm(a,new Om(a),s)},e}(Xs),xm=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new du(og(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Im(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Zs);function Cm(t,e,n){return new Sm(t,e,n)}var Sm=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new du(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Im(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Dg(t),t=t.parent;return t?new Im(t,e):new Im(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=hm(this._data,t);cg.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Om(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof au||(i=o.get(su));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a=t;return o=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=o.length),(i=a._view).viewContainerParent=this._view,mm(o,r,i),function(t,e){var n=Tg(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),cg.dirtyParentQueries(i),dm(n,r>0?o[r-1]:null,i),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(t._view);return i=e,a=(o=(n=this._data).viewContainer._embeddedViews)[r=s],ym(o,r),null==i&&(i=o.length),mm(o,i,a),cg.dirtyParentQueries(a),gm(a),dm(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=hm(this._data,t);e&&cg.destroyView(e)},t.prototype.detach=function(t){var e=hm(this._data,t);return e?new Om(e):null},t}();function Em(t){return new Om(t)}var Om=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Bg(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Eg(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{cg.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){cg.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),cg.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,gm(this._view),cg.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function km(t,e){return new Tm(t,e)}var Tm=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.__extends)(e,t),e.prototype.createEmbeddedView=function(t){return new Om(cg.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new du(og(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(mc);function Dm(t,e){return new Im(t,e)}var Im=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=ds.THROW_IF_NOT_FOUND),cg.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:mg(t)},e)},t}();function Am(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=og(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return ig(t,n.nodeIndex).renderText;if(20240&n.flags)return ag(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Mm(t){return new Pm(t.renderer)}var Pm=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(r.__read)(Wg(e),2),i=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,i=e.provider;switch(201347067&e.flags){case 512:return Jm(t,e.parent,n,i.value,i.deps);case 1024:return function(t,e,n,i,o){var a=o.length;switch(a){case 0:return i();case 1:return i(ey(t,e,n,o[0]));case 2:return i(ey(t,e,n,o[0]),ey(t,e,n,o[1]));case 3:return i(ey(t,e,n,o[0]),ey(t,e,n,o[1]),ey(t,e,n,o[2]));default:for(var s=Array(a),u=0;u0)l=g,xy(g)||(c=g);else for(;l&&d===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&xy(l)?l.renderParent:l}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||dg,updateRenderer:r||dg,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:h}}function xy(t){return 0!=(1&t.flags)&&null===t.element.name}function Cy(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Sy(t,e,n,r){var i=ky(t.root,t.renderer,t,e,n);return Ty(i,t.component,r),Dy(i),i}function Ey(t,e,n){var r=ky(t,t.renderer,null,null,e);return Ty(r,n,n),Dy(r),r}function Oy(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,ky(t.root,i,t,e.element.componentProvider,n)}function ky(t,e,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Ty(t,e,n){t.component=e,t.context=n}function Dy(t){var e;Mg(t)&&(e=og(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i0&&im(t,e,0,n)&&(h=!0),p>1&&im(t,e,1,r)&&(h=!0),p>2&&im(t,e,2,i)&&(h=!0),p>3&&im(t,e,3,o)&&(h=!0),p>4&&im(t,e,4,a)&&(h=!0),p>5&&im(t,e,5,s)&&(h=!0),p>6&&im(t,e,6,u)&&(h=!0),p>7&&im(t,e,7,l)&&(h=!0),p>8&&im(t,e,8,c)&&(h=!0),p>9&&im(t,e,9,f)&&(h=!0),h}(t,e,n,r,i,o,a,s,u,l,c,f);case 2:return function(t,e,n,r,i,o,a,s,u,l,c,f){var p=!1,h=e.bindings,d=h.length;if(d>0&&Cg(t,e,0,n)&&(p=!0),d>1&&Cg(t,e,1,r)&&(p=!0),d>2&&Cg(t,e,2,i)&&(p=!0),d>3&&Cg(t,e,3,o)&&(p=!0),d>4&&Cg(t,e,4,a)&&(p=!0),d>5&&Cg(t,e,5,s)&&(p=!0),d>6&&Cg(t,e,6,u)&&(p=!0),d>7&&Cg(t,e,7,l)&&(p=!0),d>8&&Cg(t,e,8,c)&&(p=!0),d>9&&Cg(t,e,9,f)&&(p=!0),p){var g=e.text.prefix;d>0&&(g+=_y(n,h[0])),d>1&&(g+=_y(r,h[1])),d>2&&(g+=_y(i,h[2])),d>3&&(g+=_y(o,h[3])),d>4&&(g+=_y(a,h[4])),d>5&&(g+=_y(s,h[5])),d>6&&(g+=_y(u,h[6])),d>7&&(g+=_y(l,h[7])),d>8&&(g+=_y(c,h[8])),d>9&&(g+=_y(f,h[9]));var m=ig(t,e.nodeIndex).renderText;t.renderer.setValue(m,g)}return p}(t,e,n,r,i,o,a,s,u,l,c,f);case 16384:return function(t,e,n,r,i,o,a,s,u,l,c,f){var p=ag(t,e.nodeIndex),h=p.instance,d=!1,g=void 0,m=e.bindings.length;return m>0&&xg(t,e,0,n)&&(d=!0,g=ry(t,p,e,0,n,g)),m>1&&xg(t,e,1,r)&&(d=!0,g=ry(t,p,e,1,r,g)),m>2&&xg(t,e,2,i)&&(d=!0,g=ry(t,p,e,2,i,g)),m>3&&xg(t,e,3,o)&&(d=!0,g=ry(t,p,e,3,o,g)),m>4&&xg(t,e,4,a)&&(d=!0,g=ry(t,p,e,4,a,g)),m>5&&xg(t,e,5,s)&&(d=!0,g=ry(t,p,e,5,s,g)),m>6&&xg(t,e,6,u)&&(d=!0,g=ry(t,p,e,6,u,g)),m>7&&xg(t,e,7,l)&&(d=!0,g=ry(t,p,e,7,l,g)),m>8&&xg(t,e,8,c)&&(d=!0,g=ry(t,p,e,8,c,g)),m>9&&xg(t,e,9,f)&&(d=!0,g=ry(t,p,e,9,f,g)),g&&h.ngOnChanges(g),65536&e.flags&&rg(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,i,o,a,s,u,l,c,f);case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,u,l,c,f){var p=e.bindings,h=!1,d=p.length;if(d>0&&Cg(t,e,0,n)&&(h=!0),d>1&&Cg(t,e,1,r)&&(h=!0),d>2&&Cg(t,e,2,i)&&(h=!0),d>3&&Cg(t,e,3,o)&&(h=!0),d>4&&Cg(t,e,4,a)&&(h=!0),d>5&&Cg(t,e,5,s)&&(h=!0),d>6&&Cg(t,e,6,u)&&(h=!0),d>7&&Cg(t,e,7,l)&&(h=!0),d>8&&Cg(t,e,8,c)&&(h=!0),d>9&&Cg(t,e,9,f)&&(h=!0),h){var g=sg(t,e.nodeIndex),m=void 0;switch(201347067&e.flags){case 32:m=new Array(p.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=i),d>3&&(m[3]=o),d>4&&(m[4]=a),d>5&&(m[5]=s),d>6&&(m[6]=u),d>7&&(m[7]=l),d>8&&(m[8]=c),d>9&&(m[9]=f);break;case 64:m={},d>0&&(m[p[0].name]=n),d>1&&(m[p[1].name]=r),d>2&&(m[p[2].name]=i),d>3&&(m[p[3].name]=o),d>4&&(m[p[4].name]=a),d>5&&(m[p[5].name]=s),d>6&&(m[p[6].name]=u),d>7&&(m[p[7].name]=l),d>8&&(m[p[8].name]=c),d>9&&(m[p[9].name]=f);break;case 128:var y=n;switch(d){case 1:m=y.transform(n);break;case 2:m=y.transform(r);break;case 3:m=y.transform(r,i);break;case 4:m=y.transform(r,i,o);break;case 5:m=y.transform(r,i,o,a);break;case 6:m=y.transform(r,i,o,a,s);break;case 7:m=y.transform(r,i,o,a,s,u);break;case 8:m=y.transform(r,i,o,a,s,u,l);break;case 9:m=y.transform(r,i,o,a,s,u,l,c);break;case 10:m=y.transform(r,i,o,a,s,u,l,c,f)}}g.value=m}return h}(t,e,n,r,i,o,a,s,u,l,c,f);default:throw"unreachable"}}(t,e,i,o,a,s,u,l,c,f,p,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i0&&Sg(t,e,0,n),p>1&&Sg(t,e,1,r),p>2&&Sg(t,e,2,i),p>3&&Sg(t,e,3,o),p>4&&Sg(t,e,4,a),p>5&&Sg(t,e,5,s),p>6&&Sg(t,e,6,u),p>7&&Sg(t,e,7,l),p>8&&Sg(t,e,8,c),p>9&&Sg(t,e,9,f)}(t,e,r,i,o,a,s,u,l,c,f,p):function(t,e,n){for(var r=0;r0){var o=new Set(t.modules);Qy.forEach(function(e,r){if(o.has(w(r).providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:jg(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[mg(r)]=i}})}}(t=t.factory(function(){return dg})),t):t}(r))}var Xy=new Map,Qy=new Map,Jy=new Map;function tv(t){var e;Xy.set(t.token,t),"function"==typeof t.token&&(e=w(t.token))&&"function"==typeof e.providedIn&&Qy.set(t.token,t)}function ev(t,e){var n=Vg(_m(e)),r=Vg(n.nodes[0].element.componentView);Jy.set(t,r)}function nv(){Xy.clear(),Qy.clear(),Jy.clear()}function rv(t){if(0===Xy.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=h++,d[o]=i,Promise.resolve().then(function(){return function(t){var e=d[t];e&&e()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete d[n],e.scheduled=void 0)},e}(g.a),y=n("CS9Q"),v=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(g.a),x=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++re.index?1:-1:t.delay>e.delay?1:-1},e}(g.a),E=n("siIJ"),O=n("FFOo"),k=n("60iU"),T=n("y3By"),D=n("+umK"),I=n("mChF");function A(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var M=n("b7mW"),P=n("3fWJ"),R=n("8g8A"),N=n("awvh");function j(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}j.prototype=Object.create(Error.prototype);var F=j,L=n("67Y/"),V=n("1fDf"),B=n("isby"),z=n("nkY7");function U(t,e,n){if(e){if(!Object(z.a)(e))return function(){for(var r=[],i=0;i=e){r.complete();break}if(r.next(o++),r.closed)break}})}function Ct(t){var e=t.start,n=t.index,r=t.subscriber;n>=t.count?r.complete():(r.next(e),r.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var St=n("XlPw"),Et=n("gI3B");function Ot(t,e){return new r.a(function(n){var r,i;try{r=t()}catch(a){return void n.error(a)}try{i=e(r)}catch(a){return void n.error(a)}var o=(i?Object(tt.a)(i):Q.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}})}var kt=n("IUTb"),Tt=n("MGBS"),Dt=n("zotm"),It=n("En8+");function At(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),jt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return c.__extends(e,t),e.prototype[It.a]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return Object(Dt.a)(this,this.observable,this,e)},e}(Tt.a),Ft=n("i4X3"),Lt=n("iLxQ");n.d(e,"Observable",function(){return r.a}),n.d(e,"ConnectableObservable",function(){return i.a}),n.d(e,"GroupedObservable",function(){return o.a}),n.d(e,"observable",function(){return a.a}),n.d(e,"Subject",function(){return s.a}),n.d(e,"BehaviorSubject",function(){return u.a}),n.d(e,"ReplaySubject",function(){return l.a}),n.d(e,"AsyncSubject",function(){return p}),n.d(e,"asapScheduler",function(){return v}),n.d(e,"asyncScheduler",function(){return b.a}),n.d(e,"queueScheduler",function(){return _.a}),n.d(e,"animationFrameScheduler",function(){return x}),n.d(e,"VirtualTimeScheduler",function(){return C}),n.d(e,"VirtualAction",function(){return S}),n.d(e,"Scheduler",function(){return E.a}),n.d(e,"Subscription",function(){return f.a}),n.d(e,"Subscriber",function(){return O.a}),n.d(e,"Notification",function(){return k.a}),n.d(e,"NotificationKind",function(){return k.b}),n.d(e,"pipe",function(){return T.a}),n.d(e,"noop",function(){return D.a}),n.d(e,"identity",function(){return I.a}),n.d(e,"isObservable",function(){return A}),n.d(e,"ArgumentOutOfRangeError",function(){return M.a}),n.d(e,"EmptyError",function(){return P.a}),n.d(e,"ObjectUnsubscribedError",function(){return R.a}),n.d(e,"UnsubscriptionError",function(){return N.a}),n.d(e,"TimeoutError",function(){return F}),n.d(e,"bindCallback",function(){return U}),n.d(e,"bindNodeCallback",function(){return G}),n.d(e,"combineLatest",function(){return Y.a}),n.d(e,"concat",function(){return Z.a}),n.d(e,"defer",function(){return X.a}),n.d(e,"empty",function(){return Q.b}),n.d(e,"forkJoin",function(){return J.a}),n.d(e,"from",function(){return tt.a}),n.d(e,"fromEvent",function(){return et.a}),n.d(e,"fromEventPattern",function(){return rt}),n.d(e,"generate",function(){return it}),n.d(e,"iif",function(){return at}),n.d(e,"interval",function(){return ut}),n.d(e,"merge",function(){return ct.a}),n.d(e,"never",function(){return pt}),n.d(e,"of",function(){return ht.a}),n.d(e,"onErrorResumeNext",function(){return dt}),n.d(e,"pairs",function(){return gt}),n.d(e,"partition",function(){return _t}),n.d(e,"race",function(){return wt.a}),n.d(e,"range",function(){return xt}),n.d(e,"throwError",function(){return St.a}),n.d(e,"timer",function(){return Et.a}),n.d(e,"using",function(){return Ot}),n.d(e,"zip",function(){return At}),n.d(e,"scheduled",function(){return Ft.a}),n.d(e,"EMPTY",function(){return Q.a}),n.d(e,"NEVER",function(){return ft}),n.d(e,"config",function(){return Lt.a})},"En8+":function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return i});var i=r()},"F/XL":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("nkY7"),i=n("IUTb"),o=n("JF+6");function a(){for(var t=[],e=0;e0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=l.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),p=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return Object(i.__extends)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return l.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(s),h=void 0,d=["en",[["a","p"],["AM","PM"],h],[["AM","PM"],h,h],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],h,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],h,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",h,"{1} 'at' {0}",h],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],g={};function m(t,e,n){"string"!=typeof e&&(n=e,e=t[0]),e=e.toLowerCase().replace(/_/g,"-"),g[e]=t,n&&(g[e][19]=n)}var y={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,0],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",0],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",0],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",0],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",0],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",0],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",0],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,0],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UZS:[void 0,void 0,0],VEF:[void 0,"Bs"],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},v=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),b=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),_=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),w=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),x=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),C=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({}),S=function(t){return t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",t}({});function E(t){return G(t)[0]}function O(t,e,n){var r=G(t),i=H([r[1],r[2]],e);return H(i,n)}function k(t,e,n){var r=G(t),i=H([r[3],r[4]],e);return H(i,n)}function T(t,e,n){var r=G(t),i=H([r[5],r[6]],e);return H(i,n)}function D(t,e){return H(G(t)[7],e)}function I(t){return G(t)[8]}function A(t){return G(t)[9]}function M(t,e){return H(G(t)[10],e)}function P(t,e){return H(G(t)[11],e)}function R(t,e){return H(G(t)[12],e)}function N(t,e){var n=G(t),r=n[13][e];if(void 0===r){if(e===C.CurrencyDecimal)return n[13][C.Decimal];if(e===C.CurrencyGroup)return n[13][C.Group]}return r}function j(t,e){return G(t)[14][e]}function F(t){return G(t)[15]||null}function L(t){return G(t)[16]||null}function V(t){return G(t)[18]}function B(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function z(t){var e=G(t);return B(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?q(t):[q(t[0]),q(t[1])]})}function U(t,e,n){var r=G(t);B(r);var i=H([r[19][0],r[19][1]],e)||[];return H(i,n)||[]}function H(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function q(t){var e=Object(i.__read)(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function G(t){var e=t.toLowerCase().replace(/_/g,"-"),n=g[e];if(n)return n;var r=e.split("-")[0];if(n=g[r])return n;if("en"===r)return d;throw new Error('Missing locale data for the locale "'+t+'".')}function W(t,e,n){void 0===n&&(n="en");var r=function(t){return G(t)[17]}(n)[t]||y[t]||[],i=r[1];return"narrow"===e&&"string"==typeof i?i:r[0]||t}var K=2;function $(t){var e,n=y[t];return n&&(e=n[2]),"number"==typeof e?e:K}var Y=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Z={},X=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Q=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),J=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),tt=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function et(t,e,n,r){var o=function(t){if(ht(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var r=Object(i.__read)(t.split("-").map(function(t){return+t}),3);return new Date(r[0],r[1]-1,r[2])}if(e=t.match(Y))return pt(e)}var o=new Date(t);if(!ht(o))throw new Error('Unable to convert "'+t+'" into a date');return o}(t);e=function t(e,n){var r=E(e);if(Z[r]=Z[r]||{},Z[r][n])return Z[r][n];var i="";switch(n){case"shortDate":i=M(e,x.Short);break;case"mediumDate":i=M(e,x.Medium);break;case"longDate":i=M(e,x.Long);break;case"fullDate":i=M(e,x.Full);break;case"shortTime":i=P(e,x.Short);break;case"mediumTime":i=P(e,x.Medium);break;case"longTime":i=P(e,x.Long);break;case"fullTime":i=P(e,x.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");i=nt(R(e,x.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),u=t(e,"mediumDate");i=nt(R(e,x.Medium),[s,u]);break;case"long":var l=t(e,"longTime"),c=t(e,"longDate");i=nt(R(e,x.Long),[l,c]);break;case"full":var f=t(e,"fullTime"),p=t(e,"fullDate");i=nt(R(e,x.Full),[f,p])}return i&&(Z[r][n]=i),i}(n,e)||e;for(var a,s=[];e;){if(!(a=X.exec(e))){s.push(e);break}var u=(s=s.concat(a.slice(1))).pop();if(!u)break;e=u}var l=o.getTimezoneOffset();r&&(l=ft(r,l),o=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(ft(e,r)-r))}(o,r));var c="";return s.forEach(function(t){var e=function(t){if(ct[t])return ct[t];var e;switch(t){case"G":case"GG":case"GGG":e=ot(tt.Eras,w.Abbreviated);break;case"GGGG":e=ot(tt.Eras,w.Wide);break;case"GGGGG":e=ot(tt.Eras,w.Narrow);break;case"y":e=it(J.FullYear,1,0,!1,!0);break;case"yy":e=it(J.FullYear,2,0,!0,!0);break;case"yyy":e=it(J.FullYear,3,0,!1,!0);break;case"yyyy":e=it(J.FullYear,4,0,!1,!0);break;case"M":case"L":e=it(J.Month,1,1);break;case"MM":case"LL":e=it(J.Month,2,1);break;case"MMM":e=ot(tt.Months,w.Abbreviated);break;case"MMMM":e=ot(tt.Months,w.Wide);break;case"MMMMM":e=ot(tt.Months,w.Narrow);break;case"LLL":e=ot(tt.Months,w.Abbreviated,_.Standalone);break;case"LLLL":e=ot(tt.Months,w.Wide,_.Standalone);break;case"LLLLL":e=ot(tt.Months,w.Narrow,_.Standalone);break;case"w":e=lt(1);break;case"ww":e=lt(2);break;case"W":e=lt(1,!0);break;case"d":e=it(J.Date,1);break;case"dd":e=it(J.Date,2);break;case"E":case"EE":case"EEE":e=ot(tt.Days,w.Abbreviated);break;case"EEEE":e=ot(tt.Days,w.Wide);break;case"EEEEE":e=ot(tt.Days,w.Narrow);break;case"EEEEEE":e=ot(tt.Days,w.Short);break;case"a":case"aa":case"aaa":e=ot(tt.DayPeriods,w.Abbreviated);break;case"aaaa":e=ot(tt.DayPeriods,w.Wide);break;case"aaaaa":e=ot(tt.DayPeriods,w.Narrow);break;case"b":case"bb":case"bbb":e=ot(tt.DayPeriods,w.Abbreviated,_.Standalone,!0);break;case"bbbb":e=ot(tt.DayPeriods,w.Wide,_.Standalone,!0);break;case"bbbbb":e=ot(tt.DayPeriods,w.Narrow,_.Standalone,!0);break;case"B":case"BB":case"BBB":e=ot(tt.DayPeriods,w.Abbreviated,_.Format,!0);break;case"BBBB":e=ot(tt.DayPeriods,w.Wide,_.Format,!0);break;case"BBBBB":e=ot(tt.DayPeriods,w.Narrow,_.Format,!0);break;case"h":e=it(J.Hours,1,-12);break;case"hh":e=it(J.Hours,2,-12);break;case"H":e=it(J.Hours,1);break;case"HH":e=it(J.Hours,2);break;case"m":e=it(J.Minutes,1);break;case"mm":e=it(J.Minutes,2);break;case"s":e=it(J.Seconds,1);break;case"ss":e=it(J.Seconds,2);break;case"S":e=it(J.FractionalSeconds,1);break;case"SS":e=it(J.FractionalSeconds,2);break;case"SSS":e=it(J.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=at(Q.Short);break;case"ZZZZZ":e=at(Q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=at(Q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=at(Q.Long);break;default:return null}return ct[t]=e,e}(t);c+=e?e(o,n,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function nt(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function rt(t,e,n,r,i){void 0===n&&(n="-");var o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var a=String(t);a.length0||u>-n)&&(u+=n),t===J.Hours)0===u&&-12===n&&(u=12);else if(t===J.FractionalSeconds)return s=e,rt(u,3).substr(0,s);var l=N(a,C.MinusSign);return rt(u,e,l,r,i)}}function ot(t,e,n,r){return void 0===n&&(n=_.Format),void 0===r&&(r=!1),function(i,o){return function(t,e,n,r,i,o){switch(n){case tt.Months:return T(e,i,r)[t.getMonth()];case tt.Days:return k(e,i,r)[t.getDay()];case tt.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var u,l=z(e),c=U(e,i,r);if(l.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],i=r.hours;a>=n.hours&&s>=n.minutes&&(a0?Math.floor(i/60):Math.ceil(i/60);switch(t){case Q.Short:return(i>=0?"+":"")+rt(a,2,o)+rt(Math.abs(i%60),2,o);case Q.ShortGMT:return"GMT"+(i>=0?"+":"")+rt(a,1,o);case Q.Long:return"GMT"+(i>=0?"+":"")+rt(a,2,o)+":"+rt(Math.abs(i%60),2,o);case Q.Extended:return 0===r?"Z":(i>=0?"+":"")+rt(a,2,o)+":"+rt(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}var st=0,ut=4;function lt(t,e){return void 0===e&&(e=!1),function(n,r){var i,o,a,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();i=1+Math.floor((l+u)/7)}else{var c=(a=n.getFullYear(),s=new Date(a,st,1).getDay(),new Date(a,0,1+(s<=ut?ut:ut+7)-s)),f=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(ut-o.getDay()))).getTime()-c.getTime();i=1+Math.round(f/6048e5)}return rt(i,t,N(r,C.MinusSign))}}var ct={};function ft(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function pt(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));var a=Number(t[4]||0)-n,s=Number(t[5]||0)-r,u=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,u,l),e}function ht(t){return t instanceof Date&&!isNaN(t.valueOf())}var dt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,gt=22,mt=".",yt="0",vt=";",bt=",",_t="#",wt="\xa4",xt="%";function Ct(t,e,n,r,i,o,a){void 0===a&&(a=!1);var s="",u=!1;if(isFinite(t)){var l=function(e){var n,r,i,o,a,s=Math.abs(t)+"",u=0;for((r=s.indexOf(mt))>-1&&(s=s.replace(mt,"")),(i=s.search(/e/i))>0?(r<0&&(r=i),r+=+s.slice(i+1),s=s.substring(0,i)):r<0&&(r=s.length),i=0;s.charAt(i)===yt;i++);if(i===(a=s.length))n=[0],r=1;else{for(a--;s.charAt(a)===yt;)a--;for(r-=i,n=[],o=0;i<=a;i++,o++)n[o]=Number(s.charAt(i))}return r>gt&&(n=n.splice(0,gt-1),u=r-1,r=1),{digits:n,exponent:u,integerLen:r}}();a&&(l=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));var c=e.minInt,f=e.minFrac,p=e.maxFrac;if(o){var h=o.match(dt);if(null===h)throw new Error(o+" is not a valid digit info");var d=h[1],g=h[3],m=h[5];null!=d&&(c=Tt(d)),null!=g&&(f=Tt(g)),null!=m?p=Tt(m):null!=g&&f>p&&(p=f)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),a=o+t.integerLen,s=r[a];if(a>0){r.splice(Math.max(t.integerLen,a));for(var u=a;u=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[a-1]++;for(;i=p?r.pop():f=!1),e>=10?1:0},0);h&&(r.unshift(h),t.integerLen++)}(l,f,p);var y=l.digits,v=l.integerLen,b=l.exponent,_=[];for(u=y.every(function(t){return!t});v0?_=y.splice(v,y.length):(_=y,y=[0]);var w=[];for(y.length>=e.lgSize&&w.unshift(y.splice(-e.lgSize,y.length).join(""));y.length>e.gSize;)w.unshift(y.splice(-e.gSize,y.length).join(""));y.length&&w.unshift(y.join("")),s=w.join(N(n,r)),_.length&&(s+=N(n,i)+_.join("")),b&&(s+=N(n,C.Exponential)+"+"+b)}else s=N(n,C.Infinity);return t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function St(t,e,n,r,i){var o=kt(j(e,v.Currency),N(e,C.MinusSign));return o.minFrac=$(r),o.maxFrac=o.minFrac,Ct(t,o,e,C.CurrencyGroup,C.CurrencyDecimal,i).replace(wt,n).replace(wt,"")}function Et(t,e,n){return Ct(t,kt(j(e,v.Percent),N(e,C.MinusSign)),e,C.Group,C.Decimal,n,!0).replace(new RegExp(xt,"g"),N(e,C.PercentSign))}function Ot(t,e,n){return Ct(t,kt(j(e,v.Decimal),N(e,C.MinusSign)),e,C.Group,C.Decimal,n)}function kt(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(vt),i=r[0],o=r[1],a=-1!==i.indexOf(mt)?i.split(mt):[i.substring(0,i.lastIndexOf(yt)+1),i.substring(i.lastIndexOf(yt)+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf(_t));for(var l=0;l-1)return i;if(i=n.getPluralCategory(t,r),e.indexOf(i)>-1)return i;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}var Mt=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(i.__extends)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):V(e||this.locale)(t)){case b.Zero:return"zero";case b.One:return"one";case b.Two:return"two";case b.Few:return"few";case b.Many:return"many";default:return"other"}},e}(It);function Pt(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?b.One:b.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?b.One:b.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?b.One:b.Other;case"ar":return 0===n?b.Zero:1===n?b.One:2===n?b.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?b.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?b.Many:b.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?b.One:b.Other;case"be":return n%10==1&&n%100!=11?b.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?b.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?b.Many:b.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?b.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?b.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?b.Few:0!==n&&n%1e6==0?b.Many:b.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||a%10==1&&a%100!=11?b.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?b.Few:b.Other;case"cs":case"sk":return 1===i&&0===o?b.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?b.Few:0!==o?b.Many:b.Other;case"cy":return 0===n?b.Zero:1===n?b.One:2===n?b.Two:3===n?b.Few:6===n?b.Many:b.Other;case"da":return 1===n||0!==s&&(0===i||1===i)?b.One:b.Other;case"dsb":case"hsb":return 0===o&&i%100==1||a%100==1?b.One:0===o&&i%100==2||a%100==2?b.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?b.Few:b.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?b.One:b.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&a%10!=4&&a%10!=6&&a%10!=9?b.One:b.Other;case"ga":return 1===n?b.One:2===n?b.Two:n===Math.floor(n)&&n>=3&&n<=6?b.Few:n===Math.floor(n)&&n>=7&&n<=10?b.Many:b.Other;case"gd":return 1===n||11===n?b.One:2===n||12===n?b.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?b.Few:b.Other;case"gv":return 0===o&&i%10==1?b.One:0===o&&i%10==2?b.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?b.Many:b.Other:b.Few;case"he":return 1===i&&0===o?b.One:2===i&&0===o?b.Two:0!==o||n>=0&&n<=10||n%10!=0?b.Other:b.Many;case"is":return 0===s&&i%10==1&&i%100!=11||0!==s?b.One:b.Other;case"ksh":return 0===n?b.Zero:1===n?b.One:b.Other;case"kw":case"naq":case"se":case"smn":return 1===n?b.One:2===n?b.Two:b.Other;case"lag":return 0===n?b.Zero:0!==i&&1!==i||0===n?b.Other:b.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?b.Few:0!==a?b.Many:b.Other:b.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?b.Zero:n%10==1&&n%100!=11||2===o&&a%10==1&&a%100!=11||2!==o&&a%10==1?b.One:b.Other;case"mk":return 0===o&&i%10==1||a%10==1?b.One:b.Other;case"mt":return 1===n?b.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?b.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?b.Many:b.Other;case"pl":return 1===i&&0===o?b.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?b.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?b.Many:b.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?b.One:b.Other;case"ro":return 1===i&&0===o?b.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?b.Few:b.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?b.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?b.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?b.Many:b.Other;case"shi":return 0===i||1===n?b.One:n===Math.floor(n)&&n>=2&&n<=10?b.Few:b.Other;case"si":return 0===n||1===n||0===i&&1===a?b.One:b.Other;case"sl":return 0===o&&i%100==1?b.One:0===o&&i%100==2?b.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?b.Few:b.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?b.One:b.Other;default:return b.Other}}function Rt(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=Object(i.__values)(t.split(";")),a=o.next();!a.done;a=o.next()){var s=a.value,u=s.indexOf("="),l=Object(i.__read)(-1==u?[s,""]:[s.slice(0,u),s.slice(u+1)],2),c=l[1];if(l[0].trim()===e)return decodeURIComponent(c)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var Nt=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(r["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r["\u0275stringify"])(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),jt=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(r.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(r.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}(),Ft=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Lt=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(r.isDevMode)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Ft(null,e._ngForOf,-1,-1),i),a=new Vt(t,o);n.push(a)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),a=new Vt(t,o),n.push(a))});for(var r=0;r1?"short":"narrow":"long",n}function fe(t){return t.reduce(function(t,e){return Object(i.__assign)({},t,e)},{})}function pe(t){return function(e,n){return ae(e,n,t)}}var he=new Map,de=function(){function t(){}return t.format=function(t,e,n){return function(t,e,n){var r=ee[t];if(r)return r(e,n);var i=t,o=he.get(i);if(!o){o=[];var a=void 0;te.exec(t);for(var s=t;s;)(a=te.exec(s))?s=(o=o.concat(a.slice(1))).pop():(o.push(s),s=null);he.set(i,o)}return o.reduce(function(t,r){var i=ne[r];return t+(i?i(e,n):function(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,t,e)},t}(),ge=function(){function t(t){this._locale=t}var e;return e=t,t.prototype.transform=function(t,n){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;var r;if("string"==typeof t&&(t=t.trim()),me(t))r=t;else if(isNaN(t-parseFloat(t)))if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var o=Object(i.__read)(t.split("-").map(function(t){return parseInt(t,10)}),3);r=new Date(o[0],o[1]-1,o[2])}else r=new Date(t);else r=new Date(parseFloat(t));if(!me(r)){var a=void 0;if("string"!=typeof t||!(a=t.match(Y)))throw Qt(e,t);r=pt(a)}return de.format(r,this._locale,e._ALIASES[n]||n)},t._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},t}();function me(t){return t instanceof Date&&!isNaN(t.valueOf())}function ye(t,e,n,r,i,o,a){if(void 0===o&&(o=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"!=typeof n||isNaN(+n-parseFloat(n))?n:+n))throw Qt(t,n);var s,u,l;if(r!==v.Currency&&(s=1,u=0,l=3),i){var c=i.match(dt);if(null===c)throw new Error(i+" is not a valid digit info for number pipes");null!=c[1]&&(s=Tt(c[1])),null!=c[3]&&(u=Tt(c[3])),null!=c[5]&&(l=Tt(c[5]))}return Jt.format(n,e,r,{minimumIntegerDigits:s,minimumFractionDigits:u,maximumFractionDigits:l,currency:o,currencyAsSymbol:a})}var ve=function(){function t(t){this._locale=t}var e;return e=t,t.prototype.transform=function(t,n){return ye(e,this._locale,t,v.Decimal,n)},t}(),be=function(){function t(t){this._locale=t}var e;return e=t,t.prototype.transform=function(t,n){return ye(e,this._locale,t,v.Percent,n)},t}(),_e=function(){function t(t){this._locale=t}var e;return e=t,t.prototype.transform=function(t,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),ye(e,this._locale,t,v.Currency,i,n,r)},t}(),we=[ve,be,_e,ge],xe=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),Ce=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),Se=new xe,Ee=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var e;return e=t,t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(t){if(Object(r["\u0275isPromise"])(t))return Ce;if(Object(r["\u0275isObservable"])(t))return Se;throw Qt(e,t)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}(),Oe=function(){function t(){}var e;return e=t,t.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw Qt(e,t);return t.toLowerCase()},t}(),ke=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,Te=function(){function t(){}var e;return e=t,t.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw Qt(e,t);return t.replace(ke,function(t){return t[0].toUpperCase()+t.substr(1).toLowerCase()})},t}(),De=function(){function t(){}var e;return e=t,t.prototype.transform=function(t){if(!t)return t;if("string"!=typeof t)throw Qt(e,t);return t.toUpperCase()},t}(),Ie=function(){function t(t){this.locale=t}var e;return e=t,t.prototype.transform=function(t,n,r,i){if(void 0===n&&(n="mediumDate"),null==t||""===t||t!=t)return null;try{return et(t,n,i||this.locale,r)}catch(o){throw Qt(e,o.message)}},t}(),Ae=/#/g,Me=function(){function t(t){this._localization=t}var e;return e=t,t.prototype.transform=function(t,n,r){if(null==t)return"";if("object"!=typeof n||null===n)throw Qt(e,n);return n[At(t,Object.keys(n),this._localization,r)].replace(Ae,t.toString())},t}(),Pe=function(){function t(){}var e;return e=t,t.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw Qt(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""},t}(),Re=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}(),Ne=function(){function t(t){this.differs=t,this.keyValues=[]}return t.prototype.transform=function(t,e){var n=this;if(void 0===e&&(e=je),!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var r=this.differ.diff(t);return r&&(this.keyValues=[],r.forEachItem(function(t){n.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues},t}();function je(t,e){var n=t.key,r=e.key;if(n===r)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(null===n)return 1;if(null===r)return-1;if("string"==typeof n&&"string"==typeof r)return n=2;return function(l){return l.pipe(t?Object(i.a)(function(e,n){return t(e,n,l)}):u.a,Object(o.a)(1),n?Object(a.a)(e):Object(s.a)(function(){return new r.a}))}}},PCNd:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return function(){}}()},Phjn:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("psW0");function i(t,e){return Object(r.a)(t,e,1)}},Qgas:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("dC0D"),i=n("AxiF"),o=n("HJBe"),a=n("y3By");function s(t,e){return arguments.length>=2?function(n){return Object(a.a)(Object(r.a)(t,e),Object(i.a)(1),Object(o.a)(e))(n)}:function(e){return Object(a.a)(Object(r.a)(function(e,n,r){return t(e,n,r+1)}),Object(i.a)(1))(e)}}},S1nX:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("xlPZ"),i=n("yGWI"),o=n("K9Ia");function a(){return new o.a}function s(){return function(t){return Object(i.a)()(Object(r.a)(a)(t))}}},S5bw:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),i=n("K9Ia"),o=n("zo3G"),a=n("pugT"),s=n("mZXl"),u=n("8g8A"),l=n("uMaO"),c=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new f(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?e=a.a.EMPTY:(this.observers.push(t),e=new l.a(this,t)),i&&t.add(t=new s.a(t,i)),n)for(var c=0;ce&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.a),f=function(){return function(t,e){this.time=t,this.value=e}}()},T1DM:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("h9Dq"),i=new(n("CS9Q").a)(r.a)},Txjg:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("Zn8D");function i(){return Object(r.a)(1)}},VCwd:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this.domSanitized=t}return t.prototype.transform=function(t){for(var e=[],n=1;nt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function ft(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function pt(t){return Object(o["\u0275isObservable"])(t)?t:Object(o["\u0275isPromise"])(t)?Object(s.a)(Promise.resolve(t)):Object(a.a)(t)}function ht(t,e,n){return n?function(t,e){return ut(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!yt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!yt(a=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!yt(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!yt(n.segments,a)&&!!n.children[X]&&e(n.children[X],r,s)}(e,n,n.segments)}(t.root,e.root)}var dt=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=J(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return wt.serialize(this)},t}(),gt=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,ft(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return xt(this)},t}(),mt=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=J(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Tt(this)},t}();function yt(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function vt(t,e){var n=[];return ft(t.children,function(t,r){r===X&&(n=n.concat(e(t,r)))}),ft(t.children,function(t,r){r!==X&&(n=n.concat(e(t,r)))}),n}var bt=function(){return function(){}}(),_t=function(){function t(){}return t.prototype.parse=function(t){var e=new Pt(t);return new dt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return xt(e);if(n){var r=e.children[X]?t(e.children[X],!1):"",i=[];return ft(e.children,function(e,n){n!==X&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=vt(e,function(n,r){return r===X?[t(e.children[X],!1)]:[r+":"+t(n,!1)]});return xt(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return St(t)+"="+St(e)}).join("&"):St(t)+"="+St(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),wt=new _t;function xt(t){return t.segments.map(function(t){return Tt(t)}).join("/")}function Ct(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function St(t){return Ct(t).replace(/%3B/gi,";")}function Et(t){return Ct(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function kt(t){return Ot(t.replace(/\+/g,"%20"))}function Tt(t){return""+Et(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Et(t)+"="+Et(e[t])}).join(""));var e}var Dt=/^[^\/()?;=#]+/;function It(t){var e=t.match(Dt);return e?e[0]:""}var At=/^[^=?&#]+/,Mt=/^[^?&#]+/,Pt=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[X]=new gt(t,e)),n},t.prototype.parseSegment=function(){var t=It(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new mt(Ot(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=It(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=It(this.remaining);r&&this.capture(n=r)}t[Ot(e)]=Ot(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(At))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Mt);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=kt(n),a=kt(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=It(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=X);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[X]:new gt([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Rt=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=Nt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=Nt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=jt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return jt(t,this._root).map(function(t){return t.value})},t}();function Nt(t,e){var n,i;if(t===e.value)return e;try{for(var o=Object(r.__values)(e.children),a=o.next();!a.done;a=o.next()){var s=Nt(t,a.value);if(s)return s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}function jt(t,e){var n,i;if(t===e.value)return[e];try{for(var o=Object(r.__values)(e.children),a=o.next();!a.done;a=o.next()){var s=jt(t,a.value);if(s.length)return s.unshift(e),s}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return[]}var Ft=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Lt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Vt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Gt(r,e),r}return Object(r.__extends)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Rt);function Bt(t,e){var n=function(t,e){var n=new Ht([],{},{},"",{},X,e,null,t.root,-1,{});return new qt("",new Ft(n,[]))}(t,e),r=new u.a([new mt("",{})]),i=new u.a({}),o=new u.a({}),a=new u.a({}),s=new u.a(""),l=new zt(r,i,a,s,o,X,e,n.root);return l.snapshot=n.root,new Vt(new Ft(l,[]),n)}var zt=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(g.a)(function(t){return J(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(g.a)(function(t){return J(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Ut(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var o=n[i],a=n[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return function(t){return t.reduce(function(t,e){return{params:Object(r.__assign)({},t.params,e.params),data:Object(r.__assign)({},t.data,e.data),resolve:Object(r.__assign)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var Ht=function(){function t(t,e,n,r,i,o,a,s,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=l,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=J(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=J(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),qt=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Gt(r,n),r}return Object(r.__extends)(e,t),e.prototype.toString=function(){return Wt(this._root)},e}(Rt);function Gt(t,e){e.value._routerState=t,e.children.forEach(function(e){return Gt(t,e)})}function Wt(t){var e=t.children.length>0?" { "+t.children.map(Wt).join(", ")+" } ":"";return""+t.value+e}function Kt(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ut(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ut(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Yt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==ct(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),Qt=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Jt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[X]:""+t}function te(t,e,n){if(t||(t=new gt([],{})),0===t.segments.length&&t.hasChildren())return ee(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=Jt(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!oe(s,u,a))return o;r+=2}else{if(!oe(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new gt([],((r={})[X]=t,r)):t;return new dt(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(g.a)(function(t){return new gt([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(a.a)({});var o=[],s=[],u={};return ft(n,function(n,i){var a,l,c=(a=i,l=n,r.expandSegmentGroup(t,e,l,a)).pipe(Object(g.a)(function(t){return u[i]=t}));i===X?o.push(c):s.push(c)}),a.a.apply(null,o.concat(s)).pipe(Object(m.a)(),Object(y.a)(),Object(g.a)(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,o,s){var u=this;return a.a.apply(void 0,Object(r.__spread)(n)).pipe(Object(g.a)(function(r){return u.expandSegmentAgainstRoute(t,e,n,r,i,o,s).pipe(Object(v.a)(function(t){if(t instanceof ce)return Object(a.a)(null);throw t}))}),Object(m.a)(),Object(b.a)(function(t){return!!t}),Object(v.a)(function(t,n){if(t instanceof c.a||"EmptyError"===t.name){if(u.noLeftoversInUrl(e,i,o))return Object(a.a)(new gt([],{}));throw new ce(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,a){return be(r)!==o?pe(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):pe(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?he(o):this.lineralizeSegments(n,o).pipe(Object(_.a)(function(n){var o=new gt(n,{});return i.expandSegment(t,o,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=me(e,r,i),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return pe(e);var f=this.applyRedirectCommands(u,r.redirectTo,c);return r.redirectTo.startsWith("/")?he(f):this.lineralizeSegments(r,f).pipe(Object(_.a)(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(g.a)(function(t){return n._loadedConfig=t,new gt(i,{})})):Object(a.a)(new gt(i,{}));var s=me(e,n,i),u=s.consumedSegments,l=s.lastChild;if(!s.matched)return pe(e);var c=i.slice(l);return this.getChildConfig(t,n,i).pipe(Object(_.a)(function(t){var n=t.module,i=t.routes,s=function(t,e,n,i){return n.length>0&&function(t,e,n){return i.some(function(n){return ve(t,e,n)&&be(n)!==X})}(t,n)?{segmentGroup:ye(new gt(e,function(t,e){var n,i,o={};o[X]=e;try{for(var a=Object(r.__values)(t),s=a.next();!s.done;s=a.next()){var u=s.value;""===u.path&&be(u)!==X&&(o[be(u)]=new gt([],{}))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}(i,new gt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return i.some(function(n){return ve(t,e,n)})}(t,n)?{segmentGroup:ye(new gt(t.segments,function(t,e,n,i){var o,a,s={};try{for(var u=Object(r.__values)(n),l=u.next();!l.done;l=u.next()){var c=l.value;ve(t,e,c)&&!i[be(c)]&&(s[be(c)]=new gt([],{}))}}catch(f){o={error:f}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}return Object(r.__assign)({},i,s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,c,i),l=s.segmentGroup,f=s.slicedSegments;return 0===f.length&&l.hasChildren()?o.expandChildren(n,i,l).pipe(Object(g.a)(function(t){return new gt(u,t)})):0===i.length&&0===f.length?Object(a.a)(new gt(u,{})):o.expandSegment(n,l,i,f,X,!0).pipe(Object(g.a)(function(t){return new gt(u.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?Object(a.a)(new rt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):function(t,e,n){var r=e.canLoad;return r&&0!==r.length?Object(s.a)(r).pipe(Object(g.a)(function(r){var i,o=t.get(r);if(function(t){return t&&ue(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!ue(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return pt(i)})).pipe(Object(m.a)(),Object(w.a)(function(t){return!0===t})):Object(a.a)(!0)}(t.injector,e,n).pipe(Object(_.a)(function(n){return n?r.configLoader.load(t.injector,e).pipe(Object(g.a)(function(t){return e._loadedConfig=t,t})):function(t){return new l.a(function(e){return e.error(et("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):Object(a.a)(new rt([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(a.a)(n);if(r.numberOfChildren>1||!r.children[X])return de(t.redirectTo);r=r.children[X]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new dt(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return ft(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return ft(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new gt(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,i,o=0;try{for(var a=Object(r.__values)(e),s=a.next();!s.done;s=a.next()){var u=s.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t},t}();function me(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||nt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function ye(t){if(1===t.numberOfChildren&&t.children[X]){var e=t.children[X];return new gt(t.segments.concat(e.segments),e.children)}return t}function ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function be(t){return t.outlet||X}var _e=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),we=function(){return function(t,e){this.component=t,this.route=e}}();function xe(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Ce(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=Lt(e);return t.children.forEach(function(t){!function(t,e,n,r,i){void 0===i&&(i={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!yt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!yt(t.url,e.url)||!ut(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$t(t,e)||!ut(t.queryParams,e.queryParams);case"paramsChange":default:return!$t(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new _e(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Ce(t,e,o.component?s?s.children:null:n,r,i),u&&i.canDeactivateChecks.push(new we(s&&s.outlet&&s.outlet.component||null,a))}else a&&Se(e,s,i),i.canActivateChecks.push(new _e(r)),Ce(t,null,o.component?s?s.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),ft(o,function(t,e){return Se(t,n.getContext(e),i)}),i}function Se(t,e,n){var r=Lt(t),i=t.value;ft(r,function(t,r){Se(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new we(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var Ee=Symbol("INITIAL_VALUE");function Oe(){return Object(x.a)(function(t){return f.a.apply(void 0,Object(r.__spread)(t.map(function(t){return t.pipe(Object(C.a)(1),Object(S.a)(Ee))}))).pipe(Object(E.a)(function(t,e){var n=!1;return e.reduce(function(t,r,i){if(t!==Ee)return t;if(r===Ee&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||le(r))return r}return t},t)},Ee),Object(O.a)(function(t){return t!==Ee}),Object(g.a)(function(t){return le(t)?t:!0===t}),Object(C.a)(1))})}function ke(t,e){return null!==t&&e&&e(new K(t)),Object(a.a)(!0)}function Te(t,e){return null!==t&&e&&e(new G(t)),Object(a.a)(!0)}function De(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(a.a)(!0);var i=r.map(function(r){return Object(p.a)(function(){var i,o=xe(r,e,n);if(function(t){return t&&ue(t.canActivate)}(o))i=pt(o.canActivate(e,t));else{if(!ue(o))throw new Error("Invalid CanActivate guard");i=pt(o(e,t))}return i.pipe(Object(b.a)())})});return Object(a.a)(i).pipe(Oe())}function Ie(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Object(p.a)(function(){var i=e.guards.map(function(i){var o,a=xe(i,e.node,n);if(function(t){return t&&ue(t.canActivateChild)}(a))o=pt(a.canActivateChild(r,t));else{if(!ue(a))throw new Error("Invalid CanActivateChild guard");o=pt(a(r,t))}return o.pipe(Object(b.a)())});return Object(a.a)(i).pipe(Oe())})});return Object(a.a)(i).pipe(Oe())}var Ae=function(){return function(){}}(),Me=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=Ne(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,X),n=new Ht([],Object.freeze({}),Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,{},X,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Ft(n,e),o=new qt(this.url,i);return this.inheritParamsAndData(o._root),Object(a.a)(o)}catch(s){return new l.a(function(t){return t.error(s)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Ut(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=vt(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===X?-1:e.value.outlet===X?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,i){var o,a;try{for(var s=Object(r.__values)(t),u=s.next();!u.done;u=s.next()){var l=u.value;try{return this.processSegmentAgainstRoute(l,e,n,i)}catch(c){if(!(c instanceof Ae))throw c}}}catch(f){o={error:f}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new Ae},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new Ae;if((t.outlet||X)!==i)throw new Ae;var o,a=[],s=[];if("**"===t.path){var u=n.length>0?ct(n).parameters:{};o=new Ht(n,u,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,Le(t),i,t.component,t,Pe(e),Re(e)+n.length,Ve(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ae;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||nt)(n,t,e);if(!i)throw new Ae;var o={};ft(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object(r.__assign)({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,s=n.slice(l.lastChild),o=new Ht(a,l.parameters,Object.freeze(Object(r.__assign)({},this.urlTree.queryParams)),this.urlTree.fragment,Le(t),i,t.component,t,Pe(e),Re(e)+a.length,Ve(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),f=Ne(e,a,s,c,this.relativeLinkResolution),p=f.segmentGroup,h=f.slicedSegments;if(0===h.length&&p.hasChildren()){var d=this.processChildren(c,p);return[new Ft(o,d)]}if(0===c.length&&0===h.length)return[new Ft(o,[])];var g=this.processSegment(c,p,h,X);return[new Ft(o,g)]},t}();function Pe(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Re(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ne(t,e,n,i,o){if(n.length>0&&function(t,e,n){return i.some(function(n){return je(t,e,n)&&Fe(n)!==X})}(t,n)){var a=new gt(e,function(t,e,n,i){var o,a,s={};s[X]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var u=Object(r.__values)(n),l=u.next();!l.done;l=u.next()){var c=l.value;if(""===c.path&&Fe(c)!==X){var f=new gt([],{});f._sourceSegment=t,f._segmentIndexShift=e.length,s[Fe(c)]=f}}}catch(p){o={error:p}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}return s}(t,e,i,new gt(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return i.some(function(n){return je(t,e,n)})}(t,n)){var s=new gt(t.segments,function(t,e,n,i,o,a){var s,u,l={};try{for(var c=Object(r.__values)(i),f=c.next();!f.done;f=c.next()){var p=f.value;if(je(t,n,p)&&!o[Fe(p)]){var h=new gt([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:e.length,l[Fe(p)]=h}}}catch(d){s={error:d}}finally{try{f&&!f.done&&(u=c.return)&&u.call(c)}finally{if(s)throw s.error}}return Object(r.__assign)({},o,l)}(t,e,n,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var u=new gt(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function je(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Fe(t){return t.outlet||X}function Le(t){return t.data||{}}function Ve(t){return t.resolve||{}}function Be(t,e,n,r){var i=xe(t,e,r);return pt(i.resolve?i.resolve(e,n):i(e,n))}function ze(t){return function(e){return e.pipe(Object(x.a)(function(e){var n=t(e);return n?Object(s.a)(n).pipe(Object(g.a)(function(){return e})):Object(s.a)([e])}))}}var Ue=function(){return function(){}}(),He=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),qe=new o.InjectionToken("ROUTES"),Ge=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(g.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new rt(lt(i.injector.get(qe)).map(st),i)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(s.a)(this.loader.load(t)):pt(t()).pipe(Object(_.a)(function(t){return t instanceof o.NgModuleFactory?Object(a.a)(t):Object(s.a)(e.compiler.compileModuleAsync(t))}))},t}(),We=function(){return function(){}}(),Ke=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function $e(t){throw t}function Ye(t,e,n){return e.parse("/")}function Ze(t,e){return Object(a.a)(null)}var Xe=function(){function t(t,e,n,r,i,a,s,l){var c=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new h.a,this.errorHandler=$e,this.malformedUriErrorHandler=Ye,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ze,afterPreactivation:Ze},this.urlHandlingStrategy=new Ke,this.routeReuseStrategy=new He,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(o.NgModuleRef),this.console=i.get(o["\u0275Console"]);var f=i.get(o.NgZone);this.isNgZoneEnabled=f instanceof o.NgZone,this.resetConfig(l),this.currentUrlTree=new dt(new gt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ge(a,s,function(t){return c.triggerEvent(new H(t))},function(t){return c.triggerEvent(new q(t))}),this.routerState=Bt(this.currentUrlTree,this.rootComponentType),this.transitions=new u.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(Object(O.a)(function(t){return 0!==t.id}),Object(g.a)(function(t){return Object(r.__assign)({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Object(x.a)(function(t){var i,o,l,c=!1,f=!1;return Object(a.a)(t).pipe(Object(D.a)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object(r.__assign)({},e.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object(x.a)(function(t){var i,o,s,u,l=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||l)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(x.a)(function(t){var r=e.transitions.getValue();return n.next(new R(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?d.a:[t]}),Object(x.a)(function(t){return Promise.resolve(t)}),(i=e.ngModule.injector,o=e.configLoader,s=e.urlSerializer,u=e.config,function(t){return t.pipe(Object(x.a)(function(t){return function(e,n,r,i,o){return new ge(e,n,r,t.extractedUrl,o).apply()}(i,o,s,0,u).pipe(Object(g.a)(function(e){return Object(r.__assign)({},t,{urlAfterRedirects:e})}))}))}),Object(D.a)(function(t){e.currentNavigation=Object(r.__assign)({},e.currentNavigation,{finalUrl:t.urlAfterRedirects})}),function(t,n,i,o,a){return function(i){return i.pipe(Object(_.a)(function(i){return function(t,e,n,r,i,o){return void 0===i&&(i="emptyOnly"),void 0===o&&(o="legacy"),new Me(t,e,n,r,i,o).recognize()}(t,n,i.urlAfterRedirects,(s=i.urlAfterRedirects,e.serializeUrl(s)),o,a).pipe(Object(g.a)(function(t){return Object(r.__assign)({},i,{targetSnapshot:t})}));var s}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(D.a)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id),e.browserUrlTree=t.urlAfterRedirects)}),Object(D.a)(function(t){var r=new L(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(l&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.extractedUrl,f=t.source,p=t.restoredState,h=t.extras,m=new R(t.id,e.serializeUrl(c),f,p);n.next(m);var y=Bt(c,e.rootComponentType).snapshot;return Object(a.a)(Object(r.__assign)({},t,{targetSnapshot:y,urlAfterRedirects:c,extras:Object(r.__assign)({},h,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),d.a}),ze(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(D.a)(function(t){var n=new V(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(g.a)(function(t){return Object(r.__assign)({},t,{guards:(n=t.targetSnapshot,i=t.currentSnapshot,o=e.rootContexts,a=n._root,Ce(a,i?i._root:null,o,[a.value]))});var n,i,o,a}),function(t,e){return function(n){return n.pipe(Object(_.a)(function(n){var i=n.targetSnapshot,o=n.currentSnapshot,u=n.guards,l=u.canActivateChecks,c=u.canDeactivateChecks;return 0===c.length&&0===l.length?Object(a.a)(Object(r.__assign)({},n,{guardsResult:!0})):function(t,e,n,r){return Object(s.a)(t).pipe(Object(_.a)(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(a.a)(!0);var s=o.map(function(o){var a,s=xe(o,e,i);if(function(t){return t&&ue(t.canDeactivate)}(s))a=pt(s.canDeactivate(t,e,n,r));else{if(!ue(s))throw new Error("Invalid CanDeactivate guard");a=pt(s(t,e,n,r))}return a.pipe(Object(b.a)())});return Object(a.a)(s).pipe(Oe())}(t.component,t.route,n,e,r)}),Object(b.a)(function(t){return!0!==t},!0))}(c,i,o,t).pipe(Object(_.a)(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Object(s.a)(e).pipe(Object(k.a)(function(e){return Object(s.a)([Te(e.route.parent,r),ke(e.route,r),Ie(t,e.path,n),De(t,e.route,n)]).pipe(Object(m.a)(),Object(b.a)(function(t){return!0!==t},!0))}),Object(b.a)(function(t){return!0!==t},!0))}(i,l,t,e):Object(a.a)(n)}),Object(g.a)(function(t){return Object(r.__assign)({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Object(D.a)(function(t){if(le(t.guardsResult)){var n=et('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),Object(D.a)(function(t){var n=new B(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Object(O.a)(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new j(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),ze(function(t){if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(Object(D.a)(function(t){var n=new z(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(Object(_.a)(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?Object(s.a)(o).pipe(Object(k.a)(function(t){return function(t,n,i,o){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Object(a.a)({});if(1===i.length){var o=i[0];return Be(t[o],e,n,r).pipe(Object(g.a)(function(t){var e;return(e={})[o]=t,e}))}var u={};return Object(s.a)(i).pipe(Object(_.a)(function(i){return Be(t[i],e,n,r).pipe(Object(g.a)(function(t){return u[i]=t,t}))})).pipe(Object(y.a)(),Object(g.a)(function(){return u}))}(t._resolve,t,e,o).pipe(Object(g.a)(function(e){return t._resolvedData=e,t.data=Object(r.__assign)({},t.data,Ut(t,i).resolve),null}))}(t.route,0,n,i)}),Object(T.a)(function(t,e){return t}),Object(g.a)(function(e){return t})):Object(a.a)(t)}))}),Object(D.a)(function(t){var n=new U(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,i}),ze(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(g.a)(function(t){var n,i,o,a=(o=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){(c=i.value)._futureSnapshot=n.value;var o=function(e,n,i){return n.children.map(function(n){var o,a;try{for(var s=Object(r.__values)(i.children),u=s.next();!u.done;u=s.next()){var l=u.value;if(e.shouldReuseRoute(l.value.snapshot,n.value))return t(e,n,l)}}catch(c){o={error:c}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,i);return new Ft(c,o)}var a=e.retrieve(n.value);if(a){var s=a.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;rs;){if(u-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new Qt(a,!1,s-u)}()}(a,0,t),u=s.processChildren?ee(s.segmentGroup,s.index,a.commands):te(s.segmentGroup,s.index,a.commands);return Zt(s.segmentGroup,u,e,i,o)}(c,this.currentUrlTree,t,p,f)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),Object(o.isDevMode)()&&this.isNgZoneEnabled&&!o.NgZone.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=le(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;s||(s=t[a]=[]);var l=rt(e)?Zone.root:Zone.current;if(0===s.length)s.push({zone:l,handler:i});else{for(var c=!1,f=0;f-1},e}(R),ft=["alt","control","meta","shift"],pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},ht=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.__extends)(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var i=n.parseEventName(e),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),o="";if(ft.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=s().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),ft.forEach(function(r){r!=n&&(0,pt[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(R),dt=function(){return function(){}}(),gt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.__extends)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case o.SecurityContext.NONE:return e;case o.SecurityContext.HTML:return e instanceof yt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),Object(o["\u0275_sanitizeHtml"])(this._doc,String(e)));case o.SecurityContext.STYLE:return e instanceof vt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),Object(o["\u0275_sanitizeStyle"])(e));case o.SecurityContext.SCRIPT:if(e instanceof bt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case o.SecurityContext.URL:return e instanceof wt||e instanceof _t?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),Object(o["\u0275_sanitizeUrl"])(String(e)));case o.SecurityContext.RESOURCE_URL:if(e instanceof wt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof mt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new yt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new vt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new bt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new _t(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new wt(t)},e}(dt),mt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(mt),vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"Style"},e}(mt),bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"Script"},e}(mt),_t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"URL"},e}(mt),wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(mt),xt=[{provide:o.PLATFORM_ID,useValue:i["\u0275PLATFORM_BROWSER_ID"]},{provide:o.PLATFORM_INITIALIZER,useValue:Et,multi:!0},{provide:i.PlatformLocation,useClass:_,deps:[v]},{provide:v,useFactory:kt,deps:[]}],Ct=[{provide:o.Sanitizer,useExisting:dt},{provide:dt,useClass:gt,deps:[v]}],St=Object(o.createPlatformFactory)(o.platformCore,"browser",xt);function Et(){m.makeCurrent(),S.init()}function Ot(){return new o.ErrorHandler}function kt(){return document}var Tt=[Ct,{provide:o["\u0275APP_ROOT"],useValue:!0},{provide:o.ErrorHandler,useFactory:Ot,deps:[]},{provide:M,useClass:ot,multi:!0,deps:[v,o.NgZone,o.PLATFORM_ID]},{provide:M,useClass:ht,multi:!0,deps:[v]},{provide:M,useClass:ct,multi:!0,deps:[v,st,o["\u0275Console"],[new o.Optional,ut]]},{provide:st,useClass:lt,deps:[]},{provide:G,useClass:G,deps:[P,j,o.APP_ID]},{provide:o.RendererFactory2,useExisting:G},{provide:N,useExisting:j},{provide:j,useClass:j,deps:[v]},{provide:o.Testability,useClass:o.Testability,deps:[o.NgZone]},{provide:P,useClass:P,deps:[M,o.NgZone]},A],Dt=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var e;return e=t,t.withServerTransition=function(t){return{ngModule:e,providers:[{provide:o.APP_ID,useValue:t.appId},{provide:w,useExisting:o.APP_ID},C]}},t}();function It(){return new At(Object(o.inject)(v))}var At=function(){function t(t){this._doc=t,this._dom=s()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t&&this._dom.querySelector(this._doc,"meta["+t+"]")||null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t.ngInjectableDef=Object(o.defineInjectable)({factory:It,token:t,providedIn:"root"}),t}();function Mt(){return new Pt(Object(o.inject)(v))}var Pt=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return s().getTitle(this._doc)},t.prototype.setTitle=function(t){s().setTitle(this._doc,t)},t.ngInjectableDef=Object(o.defineInjectable)({factory:Mt,token:t,providedIn:"root"}),t}(),Rt="undefined"!=typeof window&&window||{},Nt=function(){return function(t,e){this.msPerTick=t,this.numTicks=e}}(),jt=function(){function t(t){this.appRef=t.injector.get(o.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=Rt.console.profile;e&&n&&Rt.console.profile("Change Detection");for(var r=s().performanceNow(),i=0;i<5||s().performanceNow()-r<500;)this.appRef.tick(),i++;var o=s().performanceNow();e&&n&&Rt.console.profileEnd("Change Detection");var a=(o-r)/i;return Rt.console.log("ran "+i+" change detection cycles"),Rt.console.log(a.toFixed(2)+" ms per check"),new Nt(a,i)},t}(),Ft="profiler";function Lt(t){return E(Ft,new jt(t)),t}function Vt(){E(Ft,null)}function Bt(t){var e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return t.replace(/[&"'<>]/g,function(t){return e[t]})}function zt(t){return t}var Ut=function(){function t(){this.store={},this.onSerializeCallbacks={}}var e;return e=t,t.init=function(t){var n=new e;return n.store=t,n},t.prototype.get=function(t,e){return void 0!==this.store[t]?this.store[t]:e},t.prototype.set=function(t,e){this.store[t]=e},t.prototype.remove=function(t){delete this.store[t]},t.prototype.hasKey=function(t){return this.store.hasOwnProperty(t)},t.prototype.onSerialize=function(t,e){this.onSerializeCallbacks[t]=e},t.prototype.toJson=function(){for(var t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(e){console.warn("Exception in onSerialize callback: ",e)}return JSON.stringify(this.store)},t}();function Ht(t,e){var n,r=t.getElementById(e+"-state"),i={};if(r&&r.textContent)try{i=JSON.parse((n={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"},r.textContent.replace(/&[^;]+;/g,function(t){return n[t]})))}catch(o){console.warn("Exception while restoring TransferState for app "+e,o)}return Ut.init(i)}var qt=function(){return function(){}}(),Gt=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&s().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),Wt=new o.Version("7.2.15")},Zn8D:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("psW0"),i=n("mChF");function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Object(r.a)(i.a,t)}},ahDk:function(t,e,n){"use strict";var r=n("Phjn"),i=n("VnD/"),o=n("67Y/"),a=n("mrSG"),s=n("FFOo");function u(t){return function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return a.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(s.a),f=n("p0Sj"),p=n("ny24"),h=n("xMyE");n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return i.a}),n.d(e,"c",function(){return o.a}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return f.a}),n.d(e,"f",function(){return p.a}),n.d(e,"g",function(){return h.a})},awvh:function(t,e,n){"use strict";function r(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}n.d(e,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},b7mW:function(t,e,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.d(e,"a",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},bne5:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("6blF"),i=n("isby"),o=n("2Bdj"),a=n("67Y/");function s(t,e,n,u){return Object(o.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(a.a)(function(t){return Object(i.a)(t)?u.apply(void 0,t):u(t)})):new r.a(function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),a=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var l=e;e.addListener(n,r),a=function(){return l.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,f=e.length;c1?Array.prototype.slice.call(arguments):t)},r,n)})}},buEt:function(t,e,n){"use strict";var r=n("DtyJ");n.d(e,"a",function(){return r.Subject})},crnd:function(t,e,n){var r={"./administrativo/administrativo.module.ngfactory":["uzTw",33],"./aproved/aproved.module.ngfactory":["ubNt",1,4,5,0,27],"./audit/audit.module.ngfactory":["YdIh",1,2,4,6,9,0,28],"./authentication/authentication.module.ngfactory":["uEHW",3,2,0,35],"./ccosto/ccosto.module.ngfactory":["8ohG",0,20],"./clients-other/clients-other.module.ngfactory":["yZaD",1,3,2,4,5,7,0,36],"./companies/companies.module.ngfactory":["ptbi",0,23],"./concepts/concepts.module.ngfactory":["whH5",1,3,2,4,5,0,29],"./concepts/load-massive-concepts/load-massive-concepts.module.ngfactory":["4hnX",3,2,11,0,18],"./contratos/contrato.module.ngfactory":["O3/2",1,3,2,6,9,10,0,24],"./dashboard/dashboard.module.ngfactory":["uP/6",37],"./files/files.module.ngfactory":["tY6B",0,16],"./holdaysCompanies/holdays-companies.module.ngfactory":["QT94",1,3,6,0,30],"./holidayDatelimit/holiday-date-limit.module.ngfactory":["Sl6D",1,3,2,4,5,7,0,39],"./holidays/holidays.module.ngfactory":["PfB8",1,3,2,4,5,7,0,32],"./importar/importar.module.ngfactory":["IrHp",0,21],"./jobs/jobs.module.ngfactory":["nThb",0,22],"./login/login.module.ngfactory":["wU+2",1,3,2,9,0,17],"./my/my.module.ngfactory":["JW3Q",38],"./nomina/nomina.module.ngfactory":["VCYa",34],"./profile/profile.module.ngfactory":["cpdB",1,2,4,5,7,0,31],"./reportes/reportes.module.ngfactory":["k4y3",1,3,2,4,5,11,0,25],"./simple-page/simple-page.module.ngfactory":["QGXw",40],"./survey/survey.module.ngfactory":["0P7V",0,19],"./user/user.module.ngfactory":["nX7e",1,3,6,10,0,41],"./validator/validator.module.ngfactory":["oRi7",0,26]};function i(t){var e=r[t];return e?Promise.all(e.slice(1).map(n.e)).then(function(){return n(e[0])}):Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}i.keys=function(){return Object.keys(r)},i.id="crnd",t.exports=i},cyVl:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){this.spinnerCache=new Set}return t.prototype._register=function(t){this.spinnerCache.add(t)},t.prototype.show=function(t){console.log(this.spinnerCache),this.spinnerCache.forEach(function(t){console.log(t),t.isSpinnerVisible=!0})},t}()},dC0D:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(i.a)},dEwP:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("F/XL"),i=n("Txjg");function o(){for(var t=[],e=0;et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return f(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return f(t.value)?null:d.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(f(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(f(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(m);return 0==e.length?null:function(t){return v(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(m);return 0==e.length?null:function(t){var n=function(t,n){return e.map(function(e){return e(t)})}(t).map(y);return Object(o.a)(n).pipe(Object(s.a)(v))}},t}();function m(t){return null!=t}function y(t){var e=Object(i["\u0275isPromise"])(t)?Object(a.a)(t):t;if(!Object(i["\u0275isObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function v(t){var e=t.reduce(function(t,e){return null!=e?Object(r.__assign)({},t,e):t},{});return 0===Object.keys(e).length?null:e}var b=new i.InjectionToken("NgValueAccessor"),_={provide:b,useExisting:Object(i.forwardRef)(function(){return w}),multi:!0},w=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}(),x={provide:b,useExisting:Object(i.forwardRef)(function(){return S}),multi:!0},C=new i.InjectionToken("CompositionEventMode"),S=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(u["\u0275getDOM"])()?Object(u["\u0275getDOM"])().getUserAgent():"",!/android (\d+)/.test(r.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}();function E(t){return t.validate?function(e){return t.validate(e)}:t}function O(t){return t.validate?function(e){return t.validate(e)}:t}var k={provide:b,useExisting:Object(i.forwardRef)(function(){return T}),multi:!0},T=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}();function D(){throw new Error("unimplemented")}var I=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 Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return D()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return D()},enumerable:!0,configurable:!0}),e}(l),A={provide:b,useExisting:Object(i.forwardRef)(function(){return P}),multi:!0},M=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}(),P=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(I),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}(),R={provide:b,useExisting:Object(i.forwardRef)(function(){return N}),multi:!0},N=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}(),j='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',F='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',L='\n
\n
\n \n
\n
',V=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 "+j)},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 '+F+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+L)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+j)},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 "+F)},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 \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 });')},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.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}(),B={provide:b,useExisting:Object(i.forwardRef)(function(){return U}),multi:!0};function z(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var 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=i["\u0275looseIdentical"]}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=z(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){var e,n;try{for(var i=Object(r.__values)(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var a=o.value;if(this._compareWith(this._optionMap.get(a),t))return a}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),H=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(z(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}(),q={provide:b,useExisting:Object(i.forwardRef)(function(){return W}),multi:!0};function G(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var W=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=i["\u0275looseIdentical"]}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){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},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;o1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function tt(t){return null!=t?g.compose(t.map(E)):null}function et(t){return null!=t?g.composeAsync(t.map(O)):null}function nt(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(i["\u0275looseIdentical"])(e,n.currentValue)}var rt=[w,N,T,U,W,P];function it(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ot(t,e){if(!e)return null;Array.isArray(e)||J(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){var o;e.constructor===S?n=e:(o=e,rt.some(function(t){return o.constructor===t})?(r&&J(t,"More than one built-in value accessor matches form control with"),r=e):(i&&J(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(J(t,"No valid value accessor for form control with"),null)}function at(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function st(t,e,n,r){Object(i.isDevMode)()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(V.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return $(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 tt(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return et(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(c),lt=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),ct={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},ft=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e}(lt),pt=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e}(lt);function ht(t){var e=gt(t)?t.validators:t;return Array.isArray(e)?tt(e):e||null}function dt(t,e){var n=gt(e)?e.asyncValidators:t;return Array.isArray(n)?et(n):n||null}function gt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var mt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=ht(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=dt(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(r.__assign)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(r.__assign)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=y(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof vt?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof bt&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){gt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),yt=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,ht(n),dt(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.__extends)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(mt),vt=function(t){function e(e,n,r){var i=t.call(this,ht(n),dt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.__extends)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{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._reduceChildren({},function(t,e,n){return t[n]=e instanceof yt?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.__values)(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||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}(mt),bt=function(t){function e(e,n,r){var i=t.call(this,ht(n),dt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.__extends)(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()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},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 yt?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(){var t,e;try{for(var n=Object(r.__values)(this.controls),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(mt),_t={provide:c,useExisting:Object(i.forwardRef)(function(){return xt})},wt=Promise.resolve(null),xt=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.EventEmitter,r.form=new vt({},tt(e),et(n)),r}return Object(r.__extends)(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;wt.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Y(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;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),at(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path),r=new vt({});X(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;wt.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;wt.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,it(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}(c),Ct=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+j+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+F+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+L)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+F+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+L)},t.ngFormWarning=function(){console.warn("\n It looks like you're using 'ngForm'.\n\n Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n in Angular v9.\n\n Use 'ng-form' instead.\n\n Before:\n \n\n After:\n \n ")},t}(),St=new i.InjectionToken("NgFormSelectorWarning"),Et=function(){function t(t){(t&&"once"!==t||e._ngFormWarning)&&"always"!==t||(Ct.ngFormWarning(),e._ngFormWarning=!0)}var e;return e=t,t._ngFormWarning=!1,t}(),Ot={provide:c,useExisting:Object(i.forwardRef)(function(){return kt})},kt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}var n;return Object(r.__extends)(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof xt||Ct.modelGroupParentException()},e}(ut),Tt={provide:I,useExisting:Object(i.forwardRef)(function(){return It})},Dt=Promise.resolve(null),It=function(t){function e(e,n,r,o){var a=t.call(this)||this;return a.control=new yt,a._registered=!1,a.update=new i.EventEmitter,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=ot(a,o),a}return Object(r.__extends)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),nt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?$(this.name,this._parent):[this.name]},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 tt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return et(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){Y(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof kt)&&this._parent instanceof ut?Ct.formGroupNameException():this._parent instanceof kt||this._parent instanceof xt||Ct.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ct.missingNameException()},e.prototype._updateValue=function(t){var e=this;Dt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Dt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(I),At=new i.InjectionToken("NgModelWithFormControlWarning"),Mt={provide:I,useExisting:Object(i.forwardRef)(function(){return Pt})},Pt=function(t){function e(e,n,r,o){var a=t.call(this)||this;return a._ngModelWarningConfig=o,a.update=new i.EventEmitter,a._ngModelWarningSent=!1,a._rawValidators=e||[],a._rawAsyncValidators=n||[],a.valueAccessor=ot(a,r),a}var n;return Object(r.__extends)(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){V.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(Y(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),nt(t,this.viewModel)&&(st("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return tt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return et(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e}(I),Rt={provide:c,useExisting:Object(i.forwardRef)(function(){return Nt})},Nt=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 i.EventEmitter,r}return Object(r.__extends)(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 Y(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){at(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);X(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);X(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,it(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 Q(e)}),e.valueAccessor.registerOnTouched(function(){return Q(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&&Y(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=tt(this._validators);this.form.validator=g.compose([this.form.validator,t]);var e=et(this._asyncValidators);this.form.asyncValidator=g.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||V.missingFormException()},e}(c),jt={provide:c,useExisting:Object(i.forwardRef)(function(){return Ft})},Ft=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 Object(r.__extends)(e,t),e.prototype._checkParentType=function(){Bt(this._parent)&&V.groupParentException()},e}(ut),Lt={provide:c,useExisting:Object(i.forwardRef)(function(){return Vt})},Vt=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 Object(r.__extends)(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 $(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return tt(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return et(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Bt(this._parent)&&V.arrayParentException()},e}(c);function Bt(t){return!(t instanceof Ft||t instanceof Nt||t instanceof Vt)}var zt={provide:I,useExisting:Object(i.forwardRef)(function(){return Ut})},Ut=function(t){function e(e,n,r,o,a){var s=t.call(this)||this;return s._ngModelWarningConfig=a,s._added=!1,s.update=new i.EventEmitter,s._ngModelWarningSent=!1,s._parent=e,s._rawValidators=n||[],s._rawAsyncValidators=r||[],s.valueAccessor=ot(s,o),s}var n;return Object(r.__extends)(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){V.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),nt(t,this.viewModel)&&(st("formControlName",n,this,this._ngModelWarningConfig),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 $(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 tt(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return et(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Ft)&&this._parent instanceof ut?V.ngModelGroupException():this._parent instanceof Ft||this._parent instanceof Nt||this._parent instanceof Vt||V.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._ngModelWarningSentOnce=!1,e}(I),Ht={provide:p,useExisting:Object(i.forwardRef)(function(){return Gt}),multi:!0},qt={provide:p,useExisting:Object(i.forwardRef)(function(){return Wt}),multi:!0},Gt=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?g.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.validate=function(t){return this.required?g.requiredTrue(t):null},e}(Gt),Kt={provide:p,useExisting:Object(i.forwardRef)(function(){return $t}),multi:!0},$t=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?g.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),Yt={provide:p,useExisting:Object(i.forwardRef)(function(){return Zt}),multi:!0},Zt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=g.minLength(parseInt(this.minlength,10))},t}(),Xt={provide:p,useExisting:Object(i.forwardRef)(function(){return Qt}),multi:!0},Qt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=g.maxLength(parseInt(this.maxlength,10))},t}(),Jt={provide:p,useExisting:Object(i.forwardRef)(function(){return te}),multi:!0},te=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=g.pattern(this.pattern)},t}(),ee=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new vt(n,{asyncValidators:i,updateOn:o,validators:r})},t.prototype.control=function(t,e,n){return new yt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new bt(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 yt||t instanceof vt||t instanceof bt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),ne=new i.Version("7.2.15"),re=function(){return function(){}}(),ie=[re,H,K,S,T,N,w,U,W,P,ft,pt,Gt,Zt,Qt,te,Wt,$t],oe=[It,kt,xt,Et],ae=[Pt,Nt,Ut,Ft,Vt],se=function(){return function(){}}(),ue=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:St,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}(),le=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:At,useValue:t.warnOnNgModelWithFormControl}]}},t}()},h9Dq:function(t,e,n){"use strict";var r=n("mrSG"),i=function(t){function e(e,n){return t.call(this)||this}return r.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n("pugT").a);n.d(e,"a",function(){return o});var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.__extends(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(i)},i4X3:function(t,e,n){"use strict";var r=n("6blF"),i=n("pugT"),o=n("xTla"),a=n("JF+6"),s=n("En8+"),u=n("/WYv"),l=n("2ePl");function c(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a(function(n){var r=new i.a;return r.add(e.schedule(function(){var i=t[o.a]();r.add(i.subscribe({next:function(t){r.add(e.schedule(function(){return n.next(t)}))},error:function(t){r.add(e.schedule(function(){return n.error(t)}))},complete:function(){r.add(e.schedule(function(){return n.complete()}))}}))})),r})}(t,e);if(Object(u.a)(t))return function(t,e){return new r.a(function(n){var r=new i.a;return r.add(e.schedule(function(){return t.then(function(t){r.add(e.schedule(function(){n.next(t),r.add(e.schedule(function(){return n.complete()}))}))},function(t){r.add(e.schedule(function(){return n.error(t)}))})})),r})}(t,e);if(Object(l.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[s.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,o=new i.a;return o.add(function(){r&&"function"==typeof r.return&&r.return()}),o.add(e.schedule(function(){r=t[s.a](),o.add(e.schedule(function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}}))})),o})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}n.d(e,"a",function(){return c})},iLxQ:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},ihYY:function(t,e,n){"use strict";n.r(e),n.d(e,"AnimationBuilder",function(){return r}),n.d(e,"AnimationFactory",function(){return i}),n.d(e,"AUTO_STYLE",function(){return o}),n.d(e,"animate",function(){return s}),n.d(e,"animateChild",function(){return g}),n.d(e,"animation",function(){return d}),n.d(e,"group",function(){return u}),n.d(e,"keyframes",function(){return p}),n.d(e,"query",function(){return y}),n.d(e,"sequence",function(){return l}),n.d(e,"stagger",function(){return v}),n.d(e,"state",function(){return f}),n.d(e,"style",function(){return c}),n.d(e,"transition",function(){return h}),n.d(e,"trigger",function(){return a}),n.d(e,"useAnimation",function(){return m}),n.d(e,"NoopAnimationPlayer",function(){return _}),n.d(e,"\u0275PRE_STYLE",function(){return x}),n.d(e,"\u0275AnimationGroupPlayer",function(){return w});var r=function(){return function(){}}(),i=function(){return function(){}}(),o="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function u(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function l(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function f(t,e,n){return{type:0,name:t,styles:e,options:n}}function p(t){return{type:5,steps:t}}function h(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function d(t,e){return void 0===e&&(e=null),{type:8,animation:t,options:e}}function g(t){return void 0===t&&(t=null),{type:9,options:t}}function m(t,e){return void 0===e&&(e=null),{type:10,animation:t,options:e}}function y(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}}function v(t,e){return{type:12,timings:t,animation:e}}function b(t){Promise.resolve(null).then(t)}var _=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;b(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),w=function(){function t(t){var e=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var n=0,r=0,i=0,o=this.players.length;0==o?b(function(){return e._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++n==o&&e._onFinish()}),t.onDestroy(function(){++r==o&&e._onDestroy()}),t.onStart(function(){++i==o&&e._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),x="!"},isby:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},lYZG:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("6blF"),i=n("0/uQ"),o=n("G5J1");function a(t){return new r.a(function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)})}},m4GZ:function(t,e){function n(t){this.message=t}(n.prototype=new Error).name="InvalidCharacterError",t.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=e.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}},mChF:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},mZXl:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("mrSG"),i=n("FFOo"),o=n("60iU"),a=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.__extends(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new s(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},e}(i.a),s=function(){return function(t,e){this.notification=t,this.destination=e}}()},miAi:function(t,e,n){"use strict";n.d(e,"c",function(){return h}),n.d(e,"a",function(){return d}),n.d(e,"b",function(){return g});var r=n("mrSG"),i=n("S5bw"),o=n("K9Ia"),a=n("VnD/"),s=n("ny24"),u=n("CcnG"),l={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},c={BD_COLOR:"rgba(51,51,51,0.8)",SPINNER_COLOR:"#fff",SPINNER_TYPE:"ball-scale-multiple"},f="primary",p=function(){return function(t){Object.assign(this,t)}}(),h=function(){function t(){this.spinnerObservable=new i.a(1)}return t.prototype.getSpinner=function(t){return this.spinnerObservable.asObservable().pipe(Object(a.a)(function(e){return e&&e.name===t}))},t.prototype.show=function(t,e){var n=this;return void 0===t&&(t=f),new Promise(function(i,o){e&&Object.keys(e).length?(e.name=t,n.spinnerObservable.next(new p(Object(r.__assign)({},e,{show:!0}))),i(!0)):(n.spinnerObservable.next(new p({name:t,show:!0})),i(!0))})},t.prototype.hide=function(t){var e=this;return void 0===t&&(t=f),new Promise(function(n,r){e.spinnerObservable.next(new p({name:t,show:!1})),n(!0)})},t.ngInjectableDef=Object(u.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),d=function(){function t(t,e){var n=this;this.spinnerService=t,this.changeDetector=e,this.spinner=new p,this.ngUnsubscribe=new o.a,this.setDefaultOptions=function(){n.spinner=new p({name:n.name,bdColor:n.bdColor,size:n.size,color:n.color,type:n.type,fullScreen:n.fullScreen,divArray:n.divArray,divCount:n.divCount,show:n.show})},this.bdColor=c.BD_COLOR,this.size="large",this.color=c.SPINNER_COLOR,this.type=c.SPINNER_TYPE,this.fullScreen=!0,this.name=f,this.divArray=[],this.divCount=0,this.show=!1}return t.prototype.ngOnInit=function(){var t=this;this.setDefaultOptions(),this.spinnerService.getSpinner(this.name).pipe(Object(s.a)(this.ngUnsubscribe)).subscribe(function(e){t.setDefaultOptions(),Object.assign(t.spinner,e),e.show&&t.onInputChange(),t.changeDetector.markForCheck()})},t.prototype.ngOnChanges=function(t){for(var e in t)if(e){var n=t[e];if(n.isFirstChange())return;void 0!==n.currentValue&&n.currentValue!==n.previousValue&&""!==n.currentValue&&(this.spinner[e]=n.currentValue)}},t.prototype.getClass=function(t,e){this.spinner.divCount=l[t],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map(function(t,e){return e});var n="";switch(e.toLowerCase()){case"small":n="la-sm";break;case"medium":n="la-2x";break;case"large":n="la-3x"}return"la-"+t+" "+n},t.prototype.onInputChange=function(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)},t.prototype.ngOnDestroy=function(){this.ngUnsubscribe.unsubscribe()},t}(),g=function(){return function(){}}()},mrSG:function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",function(){return i}),n.d(e,"__assign",function(){return o}),n.d(e,"__rest",function(){return a}),n.d(e,"__decorate",function(){return s}),n.d(e,"__param",function(){return u}),n.d(e,"__metadata",function(){return l}),n.d(e,"__awaiter",function(){return c}),n.d(e,"__generator",function(){return f}),n.d(e,"__exportStar",function(){return p}),n.d(e,"__values",function(){return h}),n.d(e,"__read",function(){return d}),n.d(e,"__spread",function(){return g}),n.d(e,"__await",function(){return m}),n.d(e,"__asyncGenerator",function(){return y}),n.d(e,"__asyncDelegator",function(){return v}),n.d(e,"__asyncValues",function(){return b}),n.d(e,"__makeTemplateObject",function(){return _}),n.d(e,"__importStar",function(){return w}),n.d(e,"__importDefault",function(){return x});var r=function(t,e){return(r=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])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})}function f(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function d(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var t=[],e=0;e1||s(t,e)})})}function s(t,e){try{(n=i[t](e)).value instanceof m?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function v(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:m(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function b(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){!function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,i,(e=t[n](e)).done,e.value)})}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}},nkY7:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",function(){return r})},ny24:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("mrSG"),i=n("MGBS"),o=n("zotm");function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new u(t),r=Object(o.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.a)},p0Sj:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("dEwP"),i=n("nkY7");function o(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},p9xo:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={url:"http://localhost:8000",API_ENDPOINT:"https://test-api.lanomina.net/api/"}},pMnS:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("CcnG"),i=n("ZYCi"),o=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function a(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r["\u0275did"](1,212992,null,0,i.t,[i.b,r.ViewContainerRef,r.ComponentFactoryResolver,[8,null],r.ChangeDetectorRef],null,null)],function(t,e){t(e,1,0)},null)}function s(t){return r["\u0275vid"](0,[(t()(),r["\u0275eld"](0,0,null,null,1,"ng-component",[],null,null,null,a,o)),r["\u0275did"](1,49152,null,0,i.x,[],null,null)],null,null)}var u=r["\u0275ccf"]("ng-component",i.x,s,{},{},[])},psW0:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("mrSG"),i=n("zotm"),o=n("MGBS"),a=n("rPjj"),s=n("67Y/"),u=n("0/uQ");function l(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(l(function(n,r){return Object(u.a)(t(n,r)).pipe(Object(s.a)(function(t,i){return e(n,t,r,i)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}var c=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project,this.concurrent))},t}(),f=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(e,t),e.prototype._next=function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.a)},pugT:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("isby"),i=n("McSo"),o=n("2Bdj"),a=n("awvh"),s=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,i){var o=[];n.forEach(function(t){return o.push.apply(o,Object(r.__spread)(t.split(",")))}),e[t._normalizedNames.get(i)]=o}),e},t.prototype.getAll=function(t){return this.has(t)&&this._headers.get(t.toLowerCase())||null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),p=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,i=t.statusText,o=t.type,a=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=o?o:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),h=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:u.Default,headers:new f})||this}return Object(r.__extends)(e,t),e}(p),d=function(){return function(){}}();function g(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return s.Get;case"POST":return s.Post;case"PUT":return s.Put;case"DELETE":return s.Delete;case"OPTIONS":return s.Options;case"HEAD":return s.Head;case"PATCH":return s.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}var m=function(t){return t>=200&&t<300},y=function(){function t(){}return t.prototype.encodeKey=function(t){return v(t)},t.prototype.encodeValue=function(t){return v(t)},t}();function v(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var b=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new y),this.rawParams=t,this.queryEncoder=e,this.paramsMap=function(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),i=Object(r.__read)(-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],2),o=i[0],a=i[1],s=e.get(o)||[];s.push(a),e.set(o,s)}),e}(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(null!=e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return Object(r.__extends)(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(_),x=/^\)\]\}',?\n/,C=function(){function t(t,e,n){var r=this;this.request=t,this.response=new i.a(function(i){var o=e.build();o.open(s[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(o.withCredentials=t.withCredentials);var a=function(){var e=1223===o.status?204:o.status,r=null;204!==e&&"string"==typeof(r=void 0===o.response?o.responseText:o.response)&&(r=r.replace(x,"")),0===e&&(e=r?200:0);var a,s=f.fromResponseHeaderString(o.getAllResponseHeaders()),u=("responseURL"in(a=o)?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null)||t.url,l=new p({body:r,status:e,headers:s,statusText:o.statusText||"OK",url:u});null!=n&&(l=n.merge(l));var c=new w(l);if(c.ok=m(e),c.ok)return i.next(c),void i.complete();i.error(c)},l=function(t){var e=new p({body:t,type:u.Error,status:o.status,statusText:o.statusText});null!=n&&(e=n.merge(e)),i.error(new w(e))};if(r.setDetectedContentType(t,o),null==t.headers&&(t.headers=new f),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return o.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=o.responseType)switch(t.responseType){case c.ArrayBuffer:o.responseType="arraybuffer";break;case c.Json:o.responseType="json";break;case c.Text:o.responseType="text";break;case c.Blob:o.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return o.addEventListener("load",a),o.addEventListener("error",l),o.send(r.request.getBody()),function(){o.removeEventListener("load",a),o.removeEventListener("error",l),o.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case l.NONE:break;case l.JSON:e.setRequestHeader("content-type","application/json");break;case l.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case l.TEXT:e.setRequestHeader("content-type","text/plain");break;case l.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),S=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Object(o["\u0275getDOM"])().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),E=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new C(t,this._browserXHR,this._baseResponseOptions)},t}(),O=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,i=t.url,o=t.search,a=t.params,s=t.withCredentials,u=t.responseType;this.method=null!=e?g(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(a||o),this.withCredentials=null!=s?s:null,this.responseType=null!=u?u:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new f(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof b?t.clone():"string"==typeof t?new b(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new b;return Object.keys(t).forEach(function(r){var i=t[r];Array.isArray(i)?i.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,i,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),k=function(t){function e(){return t.call(this,{method:s.Get,headers:new f})||this}return Object(r.__extends)(e,t),e}(O),T=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var i,o=e.params||e.search;if(o&&(i="object"!=typeof o||o instanceof b?o.toString():function(t){var e=new b;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}(o).toString()).length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=r+a+i}return n._body=e.body,n.method=g(e.method),n.headers=new f(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return Object(r.__extends)(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return l.JSON;case"application/x-www-form-urlencoded":return l.FORM;case"multipart/form-data":return l.FORM_DATA;case"text/plain":case"text/html":return l.TEXT;case"application/octet-stream":return this._body instanceof P?l.ARRAY_BUFFER:l.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?l.NONE:this._body instanceof b?l.FORM:this._body instanceof A?l.FORM_DATA:this._body instanceof M?l.BLOB:this._body instanceof P?l.ARRAY_BUFFER:this._body&&"object"==typeof this._body?l.JSON:l.TEXT},e.prototype.getBody=function(){switch(this.contentType){case l.JSON:case l.FORM:return this.text();case l.FORM_DATA:return this._body;case l.TEXT:return this.text();case l.BLOB:return this.blob();case l.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(_),D=function(){},I="object"==typeof window?window:D,A=I.FormData||D,M=I.Blob||D,P=I.ArrayBuffer||D;function R(t,e){return t.createConnection(e).response}function N(t,e,n,r){return t.merge(new O(e?{method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType}:{method:n,url:r}))}var j=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=R(this._backend,new T(N(this._defaultOptions,e,s.Get,t)));else{if(!(t instanceof T))throw new Error("First argument must be a url string or Request instance.");n=R(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new T(N(this._defaultOptions,e,s.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new T(N(this._defaultOptions.merge(new O({body:e})),n,s.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new T(N(this._defaultOptions.merge(new O({body:e})),n,s.Put,t)))},t.prototype.delete=function(t,e){return this.request(new T(N(this._defaultOptions,e,s.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new T(N(this._defaultOptions.merge(new O({body:e})),n,s.Patch,t)))},t.prototype.head=function(t,e){return this.request(new T(N(this._defaultOptions,e,s.Head,t)))},t.prototype.options=function(t,e){return this.request(new T(N(this._defaultOptions,e,s.Options,t)))},t}();function F(){return new S}function L(t,e){return new j(t,e)}var V=function(){return function(){}}()},siIJ:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=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=function(){return Date.now()},t}()},"t/Na":function(t,e,n){"use strict";n.d(e,"n",function(){return P}),n.d(e,"q",function(){return L}),n.d(e,"r",function(){return V}),n.d(e,"o",function(){return N}),n.d(e,"p",function(){return j}),n.d(e,"b",function(){return p}),n.d(e,"f",function(){return f}),n.d(e,"c",function(){return k}),n.d(e,"g",function(){return h}),n.d(e,"a",function(){return D}),n.d(e,"d",function(){return U}),n.d(e,"e",function(){return z}),n.d(e,"m",function(){return B}),n.d(e,"h",function(){return m}),n.d(e,"i",function(){return S}),n.d(e,"j",function(){return R}),n.d(e,"l",function(){return M}),n.d(e,"k",function(){return F});var r=n("mrSG"),i=n("CcnG"),o=n("F/XL"),a=n("6blF"),s=n("Phjn"),u=n("VnD/"),l=n("67Y/"),c=n("Ip0R"),f=function(){return function(){}}(),p=function(){return function(){}}(),h=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,Object(r.__spread)(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),d=function(){function t(){}return t.prototype.encodeKey=function(t){return g(t)},t.prototype.encodeValue=function(t){return g(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function g(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var m=function(){function t(t){void 0===t&&(t={});var e,n,i,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new d,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=Object(r.__read)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)},t}();function y(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function b(t){return"undefined"!=typeof FormData&&t instanceof FormData}var _=function(){function t(t,e,n,r){var i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new h),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),C=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=w.ResponseHeader,n}return Object(r.__extends)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(x),S=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=w.Response,n.body=void 0!==e.body?e.body:null,n}return Object(r.__extends)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(x),E=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(r.__extends)(e,t),e}(x);function O(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var k=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof _)r=t;else{var a;a=n.headers instanceof h?n.headers:new h(n.headers);var c=void 0;n.params&&(c=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new _(t,e,void 0!==n.body?n.body:null,{headers:a,params:c,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var f=Object(o.a)(r).pipe(Object(s.a)(function(t){return i.handler.handle(t)}));if(t instanceof _||"events"===n.observe)return f;var p=f.pipe(Object(u.a)(function(t){return t instanceof S}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return p.pipe(Object(l.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return p.pipe(Object(l.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return p.pipe(Object(l.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return p.pipe(Object(l.a)(function(t){return t.body}))}case"response":return p;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,O(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,O(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,O(n,e))},t}(),T=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),D=new i.InjectionToken("HTTP_INTERCEPTORS"),I=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),A=/^\)\]\}',?\n/,M=function(){return function(){}}(),P=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),R=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new a.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new h(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new C({headers:i,status:e,statusText:n,url:o})},l=function(){var e=u(),i=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var f=l;l=l.replace(A,"");try{l=""!==l?JSON.parse(l):null}catch(p){l=f,c&&(c=!1,l={error:p,text:l})}}c?(n.next(new S({body:l,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new E({error:l,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=u().url,i=new E({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},f=!1,p=function(e){f||(n.next(u()),f=!0);var i={type:w.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:w.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",p),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:w.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",p),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},t}(),N=new i.InjectionToken("XSRF_COOKIE_NAME"),j=new i.InjectionToken("XSRF_HEADER_NAME"),F=function(){return function(){}}(),L=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c["\u0275parseCookieValue"])(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),V=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),B=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(D,[]);this.chain=e.reduceRight(function(t,e){return new T(t,e)},this.backend)}return this.chain.handle(t)},t}(),z=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:V,useClass:I}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:N,useValue:t.cookieName}:[],t.headerName?{provide:j,useValue:t.headerName}:[]]}},t}(),U=function(){return function(){}}()},t5A5:function(t,e,n){"use strict";var r=n("AKJO"),i=function(){return document.createElement("a")};function o(t,e){var n=t;if("string"==typeof t){for(var r=t.split(";base64,"),i=r[0],o=atob(r[1]),a=new Uint8Array(o.length),s=0;s0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new c(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()},e}(o.a),c=function(){return function(t,e){this.time=t,this.notification=e}}()},w1EH:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("3fWJ"),i=n("VnD/"),o=n("AxiF"),a=n("tNVB"),s=n("HJBe"),u=n("mChF");function l(t,e){var n=arguments.length>=2;return function(l){return l.pipe(t?Object(i.a)(function(e,n){return t(e,n,l)}):u.a,Object(o.a)(1),n?Object(s.a)(e):Object(a.a)(function(){return new r.a}))}}},w3tH:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"d",function(){return u}),n.d(e,"c",function(){return l});var r=n("1gzp"),i=n("buEt"),o=function(){return function(){this.limit=5,this.showClose=!0,this.position="bottom-right",this.timeout=5e3,this.theme="default"}}(),a=function(t){return t[t.ADD=0]="ADD",t[t.CLEAR=1]="CLEAR",t[t.CLEAR_ALL=2]="CLEAR_ALL",t}({}),s=function(){return function(t,e){this.type=t,this.value=e}}();function u(t){return new l(t)}var l=function(){function t(t){this.config=t,this.uniqueCounter=0,this.eventSource=new i.a,this.events=this.eventSource.asObservable()}return t.prototype.default=function(t){this.add(t,"default")},t.prototype.info=function(t){this.add(t,"info")},t.prototype.success=function(t){this.add(t,"success")},t.prototype.wait=function(t){this.add(t,"wait")},t.prototype.error=function(t){this.add(t,"error")},t.prototype.warning=function(t){this.add(t,"warning")},t.prototype.add=function(e,n){var i;if(!(i=Object(r.c)(e)&&""!==e||Object(r.b)(e)?{title:e.toString()}:e)||!i.title&&!i.msg)throw new Error("ng2-toasty: No toast title or message specified!");n=n||"default",this.uniqueCounter++;var o,u=this._checkConfigItem(this.config,i,"showClose");o=i.theme&&t.THEMES.indexOf(i.theme)>-1?i.theme:this.config.theme;var l={id:this.uniqueCounter,title:i.title,msg:i.msg,showClose:u,type:"toasty-type-"+n,theme:"toasty-theme-"+o,onAdd:i.onAdd&&Object(r.a)(i.onAdd)?i.onAdd:null,onRemove:i.onRemove&&Object(r.a)(i.onRemove)?i.onRemove:null};l.timeout=i.hasOwnProperty("timeout")?i.timeout:this.config.timeout,this.emitEvent(new s(a.ADD,l)),i.onAdd&&Object(r.a)(i.onAdd)&&i.onAdd.call(this,l)},t.prototype.clearAll=function(){this.emitEvent(new s(a.CLEAR_ALL))},t.prototype.clear=function(t){this.emitEvent(new s(a.CLEAR,t))},t.prototype._checkConfigItem=function(t,e,n){return!1!==e[n]&&(!!e[n]||t[n])},t.prototype.emitEvent=function(t){this.eventSource&&this.eventSource.next(t)},t.THEMES=["default","material","bootstrap"],t}()},"wSl+":function(t,e,n){var r;t.exports=function t(e,n,i){function o(s,u){if(!n[s]){if(!e[s]){if(!u&&"function"==typeof r&&r)return r(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};e[s][0].call(c.exports,function(t){return o(e[s][1][t]||t)},c,c.exports,t,e,n,i)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",a=0;a>>6,e[a++]=128|63&n):n<65536?(e[a++]=224|n>>>12,e[a++]=128|n>>>6&63,e[a++]=128|63&n):(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63,e[a++]=128|n>>>6&63,e[a++]=128|63&n);return e},n.buf2binstring=function(t){return u(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,i=e.length;n4)l[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?l[r++]=65533:i<65536?l[r++]=i:(l[r++]=55296|(i-=65536)>>10&1023,l[r++]=56320|1023&i)}return u(l,r)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;n>=0&&128==(192&t[n]);)n--;return n<0?e:0===n?e:n+a[t[n]]>e?n:e}},{"./common":1}],3:[function(t,e,n){"use strict";e.exports=function(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+e[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},{}],4:[function(t,e,n){"use strict";var r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,i){var o=r,a=i+n;t^=-1;for(var s=i;s>>8^o[255&(t^e[s])];return-1^t}},{}],5:[function(t,e,n){"use strict";var r,i=t("../utils/common"),o=t("./trees"),a=t("./adler32"),s=t("./crc32"),u=t("./messages"),l=0,c=4,f=0,p=-2,h=-1,d=1,g=4,m=2,y=8,v=9,b=286,_=30,w=19,x=2*b+1,C=15,S=3,E=258,O=E+S+1,k=42,T=113,D=1,I=2,A=3,M=4;function P(t,e){return t.msg=u[e],e}function R(t){return(t<<1)-(t>4?9:0)}function N(t){for(var e=t.length;--e>=0;)t[e]=0}function j(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(i.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function F(t,e){o._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,j(t.strm)}function L(t,e){t.pending_buf[t.pending++]=e}function V(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function B(t,e){var n,r,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,u=t.strstart>t.w_size-O?t.strstart-(t.w_size-O):0,l=t.window,c=t.w_mask,f=t.prev,p=t.strstart+E,h=l[o+a-1],d=l[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(l[(n=e)+a]===d&&l[n+a-1]===h&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&oa){if(t.match_start=e,a=r,r>=s)break;h=l[o+a-1],d=l[o+a]}}}while((e=f[e&c])>u&&0!=--i);return a<=t.lookahead?a:t.lookahead}function z(t){var e,n,r,o,u,l,c,f,p,h,d=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-O)){i.arraySet(t.window,t.window,d,d,0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=n=t.hash_size;do{r=t.head[--e],t.head[e]=r>=d?r-d:0}while(--n);e=n=d;do{r=t.prev[--e],t.prev[e]=r>=d?r-d:0}while(--n);o+=d}if(0===t.strm.avail_in)break;if(c=t.window,f=t.strstart+t.lookahead,h=void 0,(h=(l=t.strm).avail_in)>(p=o)&&(h=p),n=0===h?0:(l.avail_in-=h,i.arraySet(c,l.input,l.next_in,h,f),1===l.state.wrap?l.adler=a(l.adler,c,h,f):2===l.state.wrap&&(l.adler=s(l.adler,c,h,f)),l.next_in+=h,l.total_in+=h,h),t.lookahead+=n,t.lookahead+t.insert>=S)for(t.ins_h=t.window[u=t.strstart-t.insert],t.ins_h=(t.ins_h<=S&&(t.ins_h=(t.ins_h<=S)if(r=o._tr_tally(t,t.strstart-t.match_start,t.match_length-S),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=S){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=S&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=S-1)),t.prev_length>=S&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-S,r=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-S),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<15&&(s=2,r-=16),o<1||o>v||n!==y||r<8||r>15||e<0||e>9||a<0||a>g)return P(t,p);8===r&&(r=9);var u=new G;return t.state=u,u.strm=t,u.wrap=s,u.gzhead=null,u.w_bits=r,u.w_size=1<t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(z(t),0===t.lookahead&&e===l)return D;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,F(t,!1),0===t.strm.avail_out))return D;if(t.strstart-t.block_start>=t.w_size-O&&(F(t,!1),0===t.strm.avail_out))return D}return t.insert=0,e===c?(F(t,!0),0===t.strm.avail_out?A:M):(t.strstart>t.block_start&&F(t,!1),D)}),new q(4,4,8,4,U),new q(4,5,16,8,U),new q(4,6,32,32,U),new q(4,4,16,16,H),new q(8,16,32,32,H),new q(8,16,128,128,H),new q(8,32,128,256,H),new q(32,128,258,1024,H),new q(32,258,258,4096,H)],n.deflateInit=function(t,e){return $(t,e,y,15,8,0)},n.deflateInit2=$,n.deflateReset=K,n.deflateResetKeep=W,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?p:(t.state.gzhead=e,f):p},n.deflate=function(t,e){var n,i,a,u;if(!t||!t.state||e>5||e<0)return t?P(t,p):p;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||666===i.status&&e!==c)return P(t,0===t.avail_out?-5:p);if(i.strm=t,n=i.last_flush,i.last_flush=e,i.status===k)if(2===i.wrap)t.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,255&i.gzhead.time),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),L(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,255&i.gzhead.extra.length),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=s(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),L(i,3),i.status=T);else{var h=y+(i.w_bits-8<<4)<<8;h|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=T,V(i,h),0!==i.strstart&&(V(i,t.adler>>>16),V(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending!==i.pending_buf_size));)L(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),j(t),a=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindexa&&(t.adler=s(t.adler,i.pending_buf,i.pending-a,a)),0===u&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(t),i.pending+2<=i.pending_buf_size&&(L(i,255&t.adler),L(i,t.adler>>8&255),t.adler=0,i.status=T)):i.status=T),0!==i.pending){if(j(t),0===t.avail_out)return i.last_flush=-1,f}else if(0===t.avail_in&&R(e)<=R(n)&&e!==c)return P(t,-5);if(666===i.status&&0!==t.avail_in)return P(t,-5);if(0!==t.avail_in||0!==i.lookahead||e!==l&&666!==i.status){var d=2===i.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(z(t),0===t.lookahead)){if(e===l)return D;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(F(t,!1),0===t.strm.avail_out))return D}return t.insert=0,e===c?(F(t,!0),0===t.strm.avail_out?A:M):t.last_lit&&(F(t,!1),0===t.strm.avail_out)?D:I}(i,e):3===i.strategy?function(t,e){for(var n,r,i,a,s=t.window;;){if(t.lookahead<=E){if(z(t),t.lookahead<=E&&e===l)return D;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=S&&t.strstart>0&&(r=s[i=t.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=t.strstart+E;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&it.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=S?(n=o._tr_tally(t,1,t.match_length-S),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(F(t,!1),0===t.strm.avail_out))return D}return t.insert=0,e===c?(F(t,!0),0===t.strm.avail_out?A:M):t.last_lit&&(F(t,!1),0===t.strm.avail_out)?D:I}(i,e):r[i.level].func(i,e);if(d!==A&&d!==M||(i.status=666),d===D||d===A)return 0===t.avail_out&&(i.last_flush=-1),f;if(d===I&&(1===e?o._tr_align(i):5!==e&&(o._tr_stored_block(i,0,0,!1),3===e&&(N(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(t),0===t.avail_out))return i.last_flush=-1,f}return e!==c?f:i.wrap<=0?1:(2===i.wrap?(L(i,255&t.adler),L(i,t.adler>>8&255),L(i,t.adler>>16&255),L(i,t.adler>>24&255),L(i,255&t.total_in),L(i,t.total_in>>8&255),L(i,t.total_in>>16&255),L(i,t.total_in>>24&255)):(V(i,t.adler>>>16),V(i,65535&t.adler)),j(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?f:1)},n.deflateEnd=function(t){var e;return t&&t.state?(e=t.state.status)!==k&&69!==e&&73!==e&&91!==e&&103!==e&&e!==T&&666!==e?P(t,p):(t.state=null,e===T?P(t,-3):f):p},n.deflateSetDictionary=function(t,e){var n,r,o,s,u,l,c,h,d=e.length;if(!t||!t.state)return p;if(2===(s=(n=t.state).wrap)||1===s&&n.status!==k||n.lookahead)return p;for(1===s&&(t.adler=a(t.adler,e,d,0)),n.wrap=0,d>=n.w_size&&(0===s&&(N(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,e,d-n.w_size,n.w_size,0),e=h,d=n.w_size),u=t.avail_in,l=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=e,z(n);n.lookahead>=S;){r=n.strstart,o=n.lookahead-(S-1);do{n.ins_h=(n.ins_h<=0;)t[e]=0}var o=0,a=256,s=a+1+29,u=30,l=19,c=2*s+1,f=15,p=16,h=256,d=16,g=17,m=18,y=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],v=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],w=new Array(2*(s+2));i(w);var x=new Array(2*u);i(x);var C=new Array(512);i(C);var S=new Array(256);i(S);var E=new Array(29);i(E);var O,k,T,D=new Array(u);function I(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function A(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function M(t){return t<256?C[t]:C[256+(t>>>7)]}function P(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function R(t,e,n){t.bi_valid>p-n?(t.bi_buf|=e<>p-t.bi_valid,t.bi_valid+=n-p):(t.bi_buf|=e<>>=1,n<<=1}while(--e>0);return n>>>1}function F(t,e,n){var r,i,o=new Array(f+1),a=0;for(r=1;r<=f;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=j(o[s]++,s))}}function L(t){var e;for(e=0;e8?P(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function B(t,e,n,r){var i=2*e,o=2*n;return t[i]>1;n>=1;n--)z(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],z(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,z(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,r,i,o,a,s,u=e.dyn_tree,l=e.max_code,p=e.stat_desc.static_tree,h=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,g=e.stat_desc.extra_base,m=e.stat_desc.max_length,y=0;for(o=0;o<=f;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;nm&&(o=m,y++),u[2*r+1]=o,r>l||(t.bl_count[o]++,a=0,r>=g&&(a=d[r-g]),t.opt_len+=(s=u[2*r])*(o+a),h&&(t.static_len+=s*(p[2*r+1]+a)));if(0!==y){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,y-=2}while(y>0);for(o=m;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>l||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}(t,e),F(o,l,t.bl_count)}function q(t,e,n){var r,i,o=-1,a=e[1],s=0,u=7,l=4;for(0===a&&(u=138,l=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=e[2*(r+1)+1],++s>=7;r0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*_[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),(o=t.static_len+3+7>>>3)<=(i=t.opt_len+3+7>>>3)&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?K(t,e,n,r):4===t.strategy||o===i?(R(t,2+(r?1:0),3),U(t,w,x)):(R(t,4+(r?1:0),3),function(t,e,n,r){var i;for(R(t,e-257,5),R(t,n-1,5),R(t,r-4,4),i=0;i>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(S[n]+a+1)]++,t.dyn_dtree[2*M(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){R(t,2,3),N(t,h,w),function(t){16===t.bi_valid?(P(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":1}],8:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(t,e,n){"use strict";var r=t("./zlib/deflate"),i=t("./utils/common"),o=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),u=Object.prototype.toString,l=0,c=-1,f=0,p=8;function h(t){if(!(this instanceof h))return new h(t);this.options=i.assign({level:c,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(n!==l)throw new Error(a[n]);if(e.header&&r.deflateSetHeader(this.strm,e.header),e.dictionary){var d;if(d="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(n=r.deflateSetDictionary(this.strm,d))!==l)throw new Error(a[n]);this._dict_set=!0}}function d(t,e){var n=new h(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(t,e){var n,a,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,s.input="string"==typeof t?o.string2buf(t):"[object ArrayBuffer]"===u.call(t)?new Uint8Array(t):t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(c),s.next_out=0,s.avail_out=c),1!==(n=r.deflate(s,a))&&n!==l)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||this.onData("string"===this.options.to?o.buf2binstring(i.shrinkBuf(s.output,s.next_out)):i.shrinkBuf(s.output,s.next_out))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):2!==a||(this.onEnd(l),s.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){t===l&&(this.result="string"===this.options.to?this.chunks.join(""):i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=h,n.deflate=d,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,d(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,d(t,e)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")},xMyE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("mrSG"),i=n("FFOo"),o=n("+umK"),a=n("2Bdj");function s(t,e,n){return function(r){return r.lift(new u(t,e,n))}}var u=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))},t}(),l=function(t){function e(e,n,r,i){var s=t.call(this,e)||this;return s._tapNext=o.a,s._tapError=o.a,s._tapComplete=o.a,s._tapError=r||o.a,s._tapComplete=i||o.a,Object(a.a)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||o.a,s._tapError=n.error||o.a,s._tapComplete=n.complete||o.a),s}return r.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(i.a)},xTla:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},xlPZ:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("KhEm");function i(t,e){return function(n){var i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new o(i,e));var a=Object.create(n,r.b);return a.source=n,a.subjectFactory=i,a}}var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}()},y3By:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n("+umK");function i(){for(var t=[],e=0;e1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},zAZS:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("mrSG"),i=n("FFOo");function o(t,e){return function(n){return n.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg,this.source))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.a)},zUnb:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"Util",function(){return ge}),n.d(r,"CorrelationIdHelper",function(){return ye}),n.d(r,"UrlHelper",function(){return me}),n.d(r,"DateTimeUtils",function(){return be}),n.d(r,"ConnectionStringParser",function(){return Ee}),n.d(r,"FieldType",function(){return ue}),n.d(r,"RequestHeaders",function(){return ce}),n.d(r,"DisabledPropertyName",function(){return _e}),n.d(r,"ProcessLegacy",function(){return xe}),n.d(r,"SampleRate",function(){return we}),n.d(r,"HttpMethod",function(){return Ce}),n.d(r,"DEFAULT_BREEZE_ENDPOINT",function(){return Se}),n.d(r,"AIData",function(){return ke}),n.d(r,"AIBase",function(){return Oe}),n.d(r,"Envelope",function(){return Te}),n.d(r,"Event",function(){return Ae}),n.d(r,"Exception",function(){return je}),n.d(r,"Metric",function(){return Ue}),n.d(r,"PageView",function(){return qe}),n.d(r,"PageViewData",function(){return He}),n.d(r,"RemoteDependencyData",function(){return Ge}),n.d(r,"Trace",function(){return We}),n.d(r,"PageViewPerformance",function(){return Ke}),n.d(r,"Data",function(){return $e}),n.d(r,"SeverityLevel",function(){return Ye}),n.d(r,"ConfigurationManager",function(){return Ze}),n.d(r,"ContextTagKeys",function(){return Xe}),n.d(r,"DataSanitizer",function(){return fe}),n.d(r,"TelemetryItemCreator",function(){return Qe}),n.d(r,"CtxTagKeys",function(){return tn}),n.d(r,"Extensions",function(){return Je}),n.d(r,"DistributedTracingModes",function(){return le}),n.d(r,"PropertiesPluginIdentifier",function(){return en}),n.d(r,"BreezeChannelIdentifier",function(){return nn}),n.d(r,"AnalyticsPluginIdentifier",function(){return rn});var i=n("CcnG"),o={production:!0,appInsights:{instrumentationKey:"c447c20e-3a26-40ac-b65c-b2fbeb689b37"}},a=function(){return function(){}}(),s="function",u="object",l="undefined",c="prototype";function f(){return typeof globalThis!==l&&globalThis?globalThis:typeof self!==l&&self?self:typeof window!==l&&window?window:typeof global!==l&&global?global:null}function p(t){var e=Object.create;if(e)return e(t);if(null==t)return{};var n=typeof t;if(n!==u&&n!==s)throw new TypeError("Object prototype may only be an Object:"+t);function r(){}return r[c]=t,new r}var h,d,g=function(t,e){return(g=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])})(t,e)},m=f()||{};d=function(t,e){function n(){this.constructor=t}g(t,e),t[c]=null===e?p(e):(n[c]=e[c],new n)},(h=m).__assign=h.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0?i:r-Math.abs(i),0);o=3)r=arguments[2];else{for(;o=0;n--)if(t[n]===e)return!0;return!1}function wt(t,e){return ht(t,it)?t.name||e||lt:((t||{})[rt]||{}).name||e||lt}var xt=function(t,e,n){ht(t,it)||bt("theClass is an invalid class definition.");var r=t[it];(function(t,n){for(var r=yt(e);r&&!mt(r);){if(r===t)return!0;r=yt(r)}return!1})(r)||bt("["+wt(t)+"] is not in class heirarchy of ["+wt(e)+"]");var i=null;ht(r,ut)?i=r[ut]:(i="_dynCls$"+wt(t,"_")+"$"+pt,pt++,r[ut]=i);var o=function(t){var e={};for(var n in t)!e[n]&&vt(t,n,!1)&&(e[n]=t[n]);return e}(e);n(e,function(t,e,n){function r(t,e){return function(){return e.apply(t,arguments)}}var i={};for(var o in n)i[o]=r(e,n[o]);for(var a=yt(t),s=[];a&&!mt(a)&&!_t(s,a);){for(var o in a)!i[o]&&vt(a,o,!ft)&&(i[o]=r(e,a[o]));s.push(a),a=yt(a)}return i}(r,e,o)),function(t,e,n,r){function i(t,e){var n=function(){if(this&&ht(t,ut)){var r=((this[at]||{})[t[ut]]||{})[e];if(r)return r.apply(this,arguments);bt("Missing ["+e+"] "+ot)}var i=t[e];return i===n&&(i=yt(t)[e]),dt(i)||bt("["+e+"] is not a "+ot),i.apply(this,arguments)};return n[st]=1,n}if(!gt(t)){var o=n[at]=n[at]||{},a=o[e]=o[e]||{};for(var s in n)vt(n,s,!1)&&n[s]!==r[s]&&(a[s]=n[s],delete n[s],(!ht(t,s)||t[s]&&!t[s][st])&&(t[s]=i(t,s)))}}(r,i,e,o)},Ct="AI (Internal): ",St="AI: ",Et="AITR_";function Ot(t){return t?'"'+t.replace(/\"/g,"")+'"':""}var kt=function(){function t(t,e,n,r){void 0===n&&(n=!1),this.messageId=t,this.message=(n?St:Ct)+t;var i="";F()&&(i=L().stringify(r));var o=(e?" message:"+Ot(e):"")+(r?" props:"+Ot(i):"");this.message+=o}return t.dataType="MessageData",t}(),Tt=function(){function t(e){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};xt(t,this,function(t){var i=Q.isNullOrUndefined,o=Q.isUndefined,a=Q.isFunction;function s(t,n){var r=e[t];return i(r)?n:r}i(e)&&(e={}),t.consoleLoggingLevel=function(){return s("loggingLevelConsole",0)},t.telemetryLoggingLevel=function(){return s("loggingLevelTelemetry",1)},t.maxInternalMessageLimit=function(){return s("maxMessageLimit",25)},t.enableDebugExceptions=function(){return s("enableDebugExceptions",!1)},t.throwInternal=function(e,n,i,a,s){void 0===s&&(s=!1);var u=new kt(n,i,s,a);if(t.enableDebugExceptions())throw u;if(!o(u)&&u&&!o(u.message)){if(s){var l=+u.messageId;!r[l]&&t.consoleLoggingLevel()>=et.WARNING&&(t.warnToConsole(u.message),r[l]=!0)}else t.consoleLoggingLevel()>=et.WARNING&&t.warnToConsole(u.message);t.logInternalMessage(e,u)}},t.warnToConsole=function(t){var e=typeof console!==y?console:D(E);if(e){var n="log";e.warn&&(n="warn"),a(e[n])&&e[n](t)}},t.resetInternalMessageCount=function(){n=0,r={}},t.logInternalMessage=function(e,i){if(!(n>=t.maxInternalMessageLimit())){var o=!0,a=Et+i.messageId;if(r[a]?o=!1:r[a]=!0,o&&(e<=t.telemetryLoggingLevel()&&(t.queue.push(i),n++),n===t.maxInternalMessageLimit())){var s="Internal events throttle limit per PageView reached for this app.",u=new kt(nt.MessageLimitPerPVExceeded,s,!1);t.queue.push(u),t.warnToConsole(s)}}}})}return t.prototype.enableDebugExceptions=function(){return!1},t.prototype.consoleLoggingLevel=function(){return 0},t.prototype.telemetryLoggingLevel=function(){return 1},t.prototype.maxInternalMessageLimit=function(){return 25},t.prototype.throwInternal=function(t,e,n,r,i){void 0===i&&(i=!1)},t.prototype.warnToConsole=function(t){},t.prototype.resetInternalMessageCount=function(){},t.prototype.logInternalMessage=function(t,e){},t}(),Dt="ctx",It=function(){function t(e,n,r){var i,o=this,a=!1;o.start=Q.dateNow(),o.name=e,o.isAsync=r,o.isChildEvt=function(){return!1},Q.isFunction(n)&&(a=Q.objDefineAccessors(o,"payload",function(){return!i&&Q.isFunction(n)&&(i=n(),n=null),i})),o.getCtx=function(e){return e?e===t.ParentContextKey||e===t.ChildrenContextKey?o[e]:(o[Dt]||{})[e]:null},o.setCtx=function(e,n){e&&(e===t.ParentContextKey?(o[e]||(o.isChildEvt=function(){return!0}),o[e]=n):e===t.ChildrenContextKey?o[e]=n:(o[Dt]=o[Dt]||{})[e]=n)},o.complete=function(){var e=0,r=o.getCtx(t.ChildrenContextKey);if(Q.isArray(r))for(var i=0;i0)for(var r=null,i=0;i0?n[0]:null}var Lt=function(){return function t(e,n,r,i){var o=this,a=null;null!==i&&(e&&Q.isFunction(e.getPlugin)?a=function(t,e,n){var r=[],i=!n;if(t)for(;t;){var o=t.getPlugin();(i||o===n)&&(i=!0,r.push(o)),t=t.getNext()}return i||r.push(n),Ft(r,e)}(e,o,i||e.getPlugin()):i?a=function(t,e,n){var r=t,i=!1;return n&&t&&(r=[],Q.arrForEach(t,function(t){(i||t===n)&&(i=!0,r.push(t))})),n&&!i&&(r||(r=[]),r.push(n)),Ft(r,e)}(e,o,i):Q.isUndefined(i)&&(a=Ft(e,o))),o.core=function(){return r},o.diagLog=function(){var t=(r||{}).logger;return t||(t=new Tt(n||{})),t},o.getCfg=function(){return n},o.getExtCfg=function(t,e){var r;if(void 0===e&&(e={}),n){var i=n.extensionConfig;i&&t&&(r=i[t])}return r||e},o.getConfig=function(t,e,r){var i;void 0===r&&(r=!1);var a=o.getExtCfg(t,null);return a&&!jt(a[e])?i=a[e]:n&&!jt(n[e])&&(i=n[e]),jt(i)?r:i},o.hasNext=function(){return null!=a},o.getNext=function(){return a},o.setNext=function(t){a=t},o.processNext=function(t){var e=a;e&&(a=e.getNext(),e.processTelemetry(t,o))},o.createNew=function(e,i){return void 0===e&&(e=null),new t(e||a,n,r,i)}}}(),Vt=Q.isFunction,Bt="getPlugin",zt=function(){function t(){var t=this,e=!1,n=null,r=null;t.core=null,t.diagLog=function(e){return t._getTelCtx(e).diagLog()},t.isInitialized=function(){return e},t.setInitialized=function(t){e=t},t.setNextPlugin=function(t){r=t},t.processNext=function(t,e){e?e.processNext(t):r&&Vt(r.processTelemetry)&&r.processTelemetry(t,null)},t._getTelCtx=function(e){void 0===e&&(e=null);var i=e;return i||(i=(n||new Lt(null,{},t.core)).createNew(null,r&&r[Bt]?r[Bt]:r)),i},t._baseTelInit=function(i,o,a,s){i&&(i.extensionConfig=i.extensionConfig||[]),!s&&o&&(s=o.getProcessTelContext().getNext());var u=r;r&&r[Bt]&&(u=r[Bt]()),t.core=o,n=new Lt(s,i,o,u),e=!0}}return t.prototype.initialize=function(t,e,n,r){this._baseTelInit(t,e,n,r)},t}(),Ut=Q.isFunction,Ht="processTelemetry",qt="priority",Gt="setNextPlugin",Wt="isInitialized";function Kt(t,e){for(var n=[],r=null,i=t.getNext();i;){var o=i.getPlugin();o&&(r&&Ut(r[Gt])&&Ut(o[Ht])&&r[Gt](o),Ut(o[Wt])&&o[Wt]()||n.push(o),r=o,i=i.getNext())}Q.arrForEach(n,function(n){n.initialize(t.getCfg(),t.core(),e,t.getNext())})}function $t(t){return t.sort(function(t,e){var n=0,r=Ut(e[Ht]);return Ut(t[Ht])?n=r?t[qt]-e[qt]:1:r&&(n=-1),n})}var Yt=500,Zt="Channel has invalid priority",Xt=Q.objDefineAccessors,Qt=function(t){function e(){var n=t.call(this)||this;n.identifier="ChannelControllerPlugin",n.priority=Yt;var r,i=Q.arrForEach;function o(t){t&&t.length>0&&(function(t){i(t,function(t){if(t.priority0&&n._getTelCtx(e).createNew(r).processNext(t)})},t.getChannelControls=function(){return r},t.initialize=function(n,a,s){t.isInitialized()||(e.initialize(n,a,s),n.isCookieUseDisabled&&Q.disableCookies(),function(t,e){if(r=[],t&&i(t,function(t){return o(t)}),e){var n=[];i(e,function(t){t.priority>Yt&&n.push(t)}),o(n)}}((n||{}).channels,s),i(r,function(t){return Kt(new Lt(t,n,a),s)}))}}),n}return __extends(e,t),e.prototype.processTelemetry=function(t,e){},e.prototype.getChannelControls=function(){return null},e.prototype.initialize=function(t,e,n){},e._staticInit=(Xt(e.prototype,"ChannelControls",e.prototype.getChannelControls),void Xt(e.prototype,"channelQueue",e.prototype.getChannelControls)),e}(zt),Jt="Extensions must provide callback to initialize",te=Q.arrForEach,ee=Q.isNullOrUndefined,ne="_notificationManager",re=function(){function t(){var e,n,r,i,o=!1;xt(t,this,function(t){t._extensions=new Array,n=new Qt,e=[],t.isInitialized=function(){return o},t.initialize=function(e,i,a,s){if(t.isInitialized())throw Error("Core should not be initialized more than once");if(!e||ee(e.instrumentationKey))throw Error("Please provide instrumentation key");r=s,t[ne]=s,t.config=e||{},e.extensions=ee(e.extensions)?[]:e.extensions,(e.extensionConfig=ee(e.extensionConfig)?{}:e.extensionConfig).NotificationManager=s,a||(a=Q.objCreate({throwInternal:function(t,e,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(t){},resetInternalMessageCount:function(){}})),t.logger=a;var u=[];u.push.apply(u,i.concat(e.extensions)),u=$t(u);var l=[],c=[],f={};if(te(u,function(t){if(ee(t)||ee(t.initialize))throw Error(Jt);var e=t.priority,r=t.identifier;t&&e&&(ee(f[e])?f[e]=r:a.warnToConsole("Two extensions have same priority #"+e+" - "+f[e]+", "+r)),!e||e0&&(te(e,function(e){t.getProcessTelContext().processNext(e)}),e=[])}})}return t.prototype.initialize=function(t,e,n,r){},t.prototype.getTransmissionControls=function(){return null},t.prototype.track=function(t){},t.prototype.getProcessTelContext=function(){return null},t.prototype.getNotifyMgr=function(){return null},t.prototype.getPerfMgr=function(){return null},t.prototype.setPerfMgr=function(t){},t.prototype.eventCnt=function(){return 0},t.prototype.releaseQueue=function(){},t}(),ie={Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5},oe=function(){function t(e){this.listeners=[];var n=Q.arrForEach,r=!!(e||{}).perfEvtsSendAll;xt(t,this,function(t){t.addNotificationListener=function(e){t.listeners.push(e)},t.removeNotificationListener=function(e){for(var n=Q.arrIndexOf(t.listeners,e);n>-1;)t.listeners.splice(n,1),n=Q.arrIndexOf(t.listeners,e)},t.eventsSent=function(e){n(t.listeners,function(t){t&&t.eventsSent&&setTimeout(function(){return t.eventsSent(e)},0)})},t.eventsDiscarded=function(e,r){n(t.listeners,function(t){t&&t.eventsDiscarded&&setTimeout(function(){return t.eventsDiscarded(e,r)},0)})},t.eventsSendRequest=function(e,r){n(t.listeners,function(t){if(t&&t.eventsSendRequest)if(r)setTimeout(function(){return t.eventsSendRequest(e,r)},0);else try{t.eventsSendRequest(e,r)}catch(n){}})},t.perfEvent=function(e){e&&(!r&&e.isChildEvt()||n(t.listeners,function(t){if(t&&t.perfEvent)if(e.isAsync)setTimeout(function(){return t.perfEvent(e)},0);else try{t.perfEvent(e)}catch(n){}}))}})}return t.prototype.addNotificationListener=function(t){},t.prototype.removeNotificationListener=function(t){},t.prototype.eventsSent=function(t){},t.prototype.eventsDiscarded=function(t,e){},t.prototype.eventsSendRequest=function(t,e){},t}(),ae=function(t){function e(){var n=t.call(this)||this;return xt(e,n,function(t,e){function n(e){var n=t.getNotifyMgr();n&&n.eventsDiscarded([e],ie.InvalidEvent)}t.initialize=function(t,n,r,i){e.initialize(t,n,r||new Tt(t),i||new oe(t))},t.track=function(r){Pt(t.getPerfMgr(),function(){return"AppInsightsCore:track"},function(){if(null===r)throw n(r),Error("Invalid telemetry item");!function(t){if(Q.isNullOrUndefined(t.name))throw n(t),Error("telemetry name required")}(r),e.track(r)},function(){return{item:r}},!r.sync)},t.addNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.addNotificationListener(e)},t.removeNotificationListener=function(e){var n=t.getNotifyMgr();n&&n.removeNotificationListener(e)},t.pollInternalLogs=function(e){var n=t.config.diagnosticLogInterval;return n&&n>0||(n=1e4),setInterval(function(){var n=t.logger?t.logger.queue:[];Q.arrForEach(n,function(n){var r={name:e||"InternalMessageId: "+n.messageId,iKey:t.config.instrumentationKey,time:Q.toISOString(new Date),baseType:kt.dataType,baseData:{message:n.message}};t.track(r)}),n.length=0},n)}}),n}return __extends(e,t),e.prototype.initialize=function(t,e,n,r){},e.prototype.track=function(t){},e.prototype.addNotificationListener=function(t){},e.prototype.removeNotificationListener=function(t){},e.prototype.pollInternalLogs=function(t){return 0},e}(re),se=function(t){return t[t.LocalStorage=0]="LocalStorage",t[t.SessionStorage=1]="SessionStorage",t}({}),ue=function(t){return t[t.Default=0]="Default",t[t.Required=1]="Required",t[t.Array=2]="Array",t[t.Hidden=4]="Hidden",t}({}),le=function(t){return t[t.AI=0]="AI",t[t.AI_AND_W3C=1]="AI_AND_W3C",t[t.W3C=2]="W3C",t}({}),ce=function(){function t(){}return t.requestContextHeader="Request-Context",t.requestContextTargetKey="appId",t.requestContextAppIdFormat="appId=cid-v1:",t.requestIdHeader="Request-Id",t.traceParentHeader="traceparent",t.sdkContextHeader="Sdk-Context",t.sdkContextHeaderAppIdRequest="appId",t.requestContextHeaderLowerCase="request-context",t}(),fe=function(){function t(){}return t.sanitizeKeyAndAddUniqueness=function(e,n,r){var i=n.length,o=t.sanitizeKey(e,n);if(o.length!==i){for(var a=0,s=o;void 0!==r[s];)a++,s=o.substring(0,t.MAX_NAME_LENGTH-3)+t.padNumber(a);o=s}return o},t.sanitizeKey=function(e,n){var r;return n&&(n=t.trim(n.toString())).length>t.MAX_NAME_LENGTH&&(r=n.substring(0,t.MAX_NAME_LENGTH),e.throwInternal(et.WARNING,nt.NameTooLong,"name is too long. It has been truncated to "+t.MAX_NAME_LENGTH+" characters.",{name:n},!0)),r||n},t.sanitizeString=function(e,n,r){var i;return void 0===r&&(r=t.MAX_STRING_LENGTH),n&&(r=r||t.MAX_STRING_LENGTH,(n=t.trim(n)).toString().length>r&&(i=n.toString().substring(0,r),e.throwInternal(et.WARNING,nt.StringValueTooLong,"string value is too long. It has been truncated to "+r+" characters.",{value:n},!0))),i||n},t.sanitizeUrl=function(e,n){return t.sanitizeInput(e,n,t.MAX_URL_LENGTH,nt.UrlTooLong)},t.sanitizeMessage=function(e,n){var r;return n&&n.length>t.MAX_MESSAGE_LENGTH&&(r=n.substring(0,t.MAX_MESSAGE_LENGTH),e.throwInternal(et.WARNING,nt.MessageTruncated,"message is too long, it has been truncated to "+t.MAX_MESSAGE_LENGTH+" characters.",{message:n},!0)),r||n},t.sanitizeException=function(e,n){var r;return n&&n.length>t.MAX_EXCEPTION_LENGTH&&(r=n.substring(0,t.MAX_EXCEPTION_LENGTH),e.throwInternal(et.WARNING,nt.ExceptionTruncated,"exception is too long, it has been truncated to "+t.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},!0)),r||n},t.sanitizeProperties=function(e,n){if(n){var r={};for(var i in n){var o=n[i];if(Q.isObject(o)&&F())try{o=L().stringify(o)}catch(a){e.throwInternal(et.WARNING,nt.CannotSerializeObjectNonSerializable,"custom property is not valid",{exception:a},!0)}o=t.sanitizeString(e,o,t.MAX_PROPERTY_LENGTH),r[i=t.sanitizeKeyAndAddUniqueness(e,i,r)]=o}n=r}return n},t.sanitizeMeasurements=function(e,n){if(n){var r={};for(var i in n){var o=n[i];r[i=t.sanitizeKeyAndAddUniqueness(e,i,r)]=o}n=r}return n},t.sanitizeId=function(e,n){return n?t.sanitizeInput(e,n,t.MAX_ID_LENGTH,nt.IdTooLong).toString():n},t.sanitizeInput=function(e,n,r,i){var o;return n&&(n=t.trim(n)).length>r&&(o=n.substring(0,r),e.throwInternal(et.WARNING,i,"input is too long, it has been truncated to "+r+" characters.",{data:n},!0)),o||n},t.padNumber=function(t){var e="00"+t;return e.substr(e.length-3)},t.trim=function(t){return Q.isString(t)?t.replace(/^\s+|\s+$/g,""):t},t.MAX_NAME_LENGTH=150,t.MAX_ID_LENGTH=128,t.MAX_PROPERTY_LENGTH=8192,t.MAX_STRING_LENGTH=1024,t.MAX_URL_LENGTH=2048,t.MAX_MESSAGE_LENGTH=32768,t.MAX_EXCEPTION_LENGTH=32768,t}(),pe=R(),he=Q.isString,de=null,ge=function(){function t(){}return t.createDomEvent=function(t){var e=null;if(Q.isFunction(Event))e=new Event(t);else{var n=P();n&&n.createEvent&&(e=n.createEvent("Event")).initEvent(t,!0,!0)}return e},t.disableStorage=function(){t._canUseLocalStorage=!1,t._canUseSessionStorage=!1},t._getLocalStorageObject=function(){return t.canUseLocalStorage()?t._getVerifiedStorageObject(se.LocalStorage):null},t._getVerifiedStorageObject=function(t){var e,n,r=null;try{if(Q.isNullOrUndefined(T()))return null;n=new Date,(r=D(t===se.LocalStorage?"localStorage":"sessionStorage")).setItem(n.toString(),n.toString()),e=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),e&&(r=null)}catch(i){r=null}return r},t.isInternalApplicationInsightsEndpoint=function(e){return-1!==t._internalEndpoints.indexOf(e.toLowerCase())},t.canUseLocalStorage=function(){return void 0===t._canUseLocalStorage&&(t._canUseLocalStorage=!!t._getVerifiedStorageObject(se.LocalStorage)),t._canUseLocalStorage},t.getStorage=function(e,n){var r=t._getLocalStorageObject();if(null!==r)try{return r.getItem(n)}catch(i){t._canUseLocalStorage=!1,e.throwInternal(et.WARNING,nt.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+t.getExceptionName(i),{exception:t.dump(i)})}return null},t.setStorage=function(e,n,r){var i=t._getLocalStorageObject();if(null!==i)try{return i.setItem(n,r),!0}catch(o){t._canUseLocalStorage=!1,e.throwInternal(et.WARNING,nt.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+t.getExceptionName(o),{exception:t.dump(o)})}return!1},t.removeStorage=function(e,n){var r=t._getLocalStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(i){t._canUseLocalStorage=!1,e.throwInternal(et.WARNING,nt.BrowserFailedRemovalFromLocalStorage,"Browser failed removal of local storage item. "+t.getExceptionName(i),{exception:t.dump(i)})}return!1},t._getSessionStorageObject=function(){return t.canUseSessionStorage()?t._getVerifiedStorageObject(se.SessionStorage):null},t.canUseSessionStorage=function(){return void 0===t._canUseSessionStorage&&(t._canUseSessionStorage=!!t._getVerifiedStorageObject(se.SessionStorage)),t._canUseSessionStorage},t.getSessionStorageKeys=function(){var e=[];if(t.canUseSessionStorage())for(var n in D("sessionStorage"))e.push(n);return e},t.getSessionStorage=function(e,n){var r=t._getSessionStorageObject();if(null!==r)try{return r.getItem(n)}catch(i){t._canUseSessionStorage=!1,e.throwInternal(et.WARNING,nt.BrowserCannotReadSessionStorage,"Browser failed read of session storage. "+t.getExceptionName(i),{exception:t.dump(i)})}return null},t.setSessionStorage=function(e,n,r){var i=t._getSessionStorageObject();if(null!==i)try{return i.setItem(n,r),!0}catch(o){t._canUseSessionStorage=!1,e.throwInternal(et.WARNING,nt.BrowserCannotWriteSessionStorage,"Browser failed write to session storage. "+t.getExceptionName(o),{exception:t.dump(o)})}return!1},t.removeSessionStorage=function(e,n){var r=t._getSessionStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(i){t._canUseSessionStorage=!1,e.throwInternal(et.WARNING,nt.BrowserFailedRemovalFromSessionStorage,"Browser failed removal of session storage item. "+t.getExceptionName(i),{exception:t.dump(i)})}return!1},t.disableCookies=function(){Q.disableCookies()},t.canUseCookies=function(e){if(void 0===Q._canUseCookies){Q._canUseCookies=!1;try{Q._canUseCookies=void 0!==t.document.cookie}catch(n){e.throwInternal(et.WARNING,nt.CannotAccessCookie,"Cannot access document.cookie - "+t.getExceptionName(n),{exception:t.dump(n)})}}return Q._canUseCookies},t.disallowsSameSiteNone=function(t){return!!he(t)&&(-1!==t.indexOf("CPU iPhone OS 12")||-1!==t.indexOf("iPad; CPU OS 12")||-1!==t.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==t.indexOf("Version/")&&-1!==t.indexOf("Safari")||-1!==t.indexOf("Macintosh; Intel Mac OS X 10_14")&&"AppleWebKit/605.1.15 (KHTML, like Gecko)"===(e=t).substring((r=(n=e.length)-"AppleWebKit/605.1.15 (KHTML, like Gecko)".length)>=0?r:0,n)||-1!==t.indexOf("Chrome/5")||-1!==t.indexOf("Chrome/6")||-1!==t.indexOf("UnrealEngine")&&-1===t.indexOf("Chrome")||-1!==t.indexOf("UCBrowser/12")||-1!==t.indexOf("UCBrowser/11"));var e,n,r},t.setCookie=function(e,n,r,i){if(t.canUseCookies(e)){var o="",a="";i&&(o=";domain="+i);var s=N();s&&"https:"===s.protocol&&(a=";secure",null===de&&(de=t.disallowsSameSiteNone((R()||{}).userAgent)),de||(r+=";SameSite=None")),t.document.cookie=n+"="+r+o+";path=/"+a}},t.stringToBoolOrDefault=function(t,e){return void 0===e&&(e=!1),null==t?e:"true"===t.toString().toLowerCase()},t.getCookie=function(e,n){if(t.canUseCookies(e)){var r="";if(n&&n.length)for(var i=n+"=",o=t.document.cookie.split(";"),a=0;a0;)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e%64),e=Math.floor(e/64);return t},t.random32=function(){return 4294967296*Math.random()|0},t.generateW3CId=function(){for(var e,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",i=0;i<4;i++)r+=n[15&(e=t.random32())]+n[e>>4&15]+n[e>>8&15]+n[e>>12&15]+n[e>>16&15]+n[e>>20&15]+n[e>>24&15]+n[e>>28&15];var o=n[8+4*Math.random()|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+o+r.substr(16,3)+r.substr(19,12)},t.getIEVersion=function(t){void 0===t&&(t=null);var e=t?t.toLowerCase():pe?(pe.userAgent||"").toLowerCase():"";if(-1!==e.indexOf("msie"))return parseInt(e.split("msie")[1]);if(e.indexOf("trident/")){var n=parseInt(e.split("trident/")[1]);if(n)return n+4}return null},t.msToTimeSpan=function(t){(isNaN(t)||t<0)&&(t=0);var e=""+(t=Math.round(t))%1e3,n=""+Math.floor(t/1e3)%60,r=""+Math.floor(t/6e4)%60,i=""+Math.floor(t/36e5)%24,o=Math.floor(t/864e5);return(o>0?o+".":"")+(i=i.length<2?"0"+i:i)+":"+(r=r.length<2?"0"+r:r)+":"+(n=n.length<2?"0"+n:n)+"."+(1===e.length?"00"+e:2===e.length?"0"+e:e)},t.isCrossOriginError=function(t,e,n,r,i){return("Script error."===t||"Script error"===t)&&!i},t.dump=function(t){var e=Object[b].toString.call(t),n="";return"[object Error]"===e?n="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'":F()&&(n=L().stringify(t)),e+n},t.getExceptionName=function(t){return"[object Error]"===Object[b].toString.call(t)?t.name:""},t.addEventHandler=function(t,e){return tt.Attach(A(),t,e)},t.IsBeaconApiSupported=function(){return"sendBeacon"in pe&&pe.sendBeacon},t.getExtension=function(t,e){for(var n=null,r=0;!n&&r=r.length&&(n=0),t._htmlAnchorIdx=n,i},t.getAbsoluteUrl=function(e){var n,r=t.parseUrl(e);return r&&(n=r.href),n},t.getPathName=function(e){var n,r=t.parseUrl(e);return r&&(n=r.pathname),n},t.getCompleteUrl=function(t,e){return t?t.toUpperCase()+" "+e:e},t.parseHost=function(e,n){var r=t.parseFullHost(e,n);if(r){var i=r.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=i&&i.length>3&&he(i[2])&&i[2].length>0)return i[2]+(i[3]||"")}return r},t.parseFullHost=function(t,e){var n=null;if(t){var r=t.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&r.length>2&&he(r[2])&&r[2].length>0&&(n=r[2]||"",e&&r.length>2)){var i=(r[1]||"").toLowerCase(),o=r[3]||"";"http"===i&&":80"===o?o="":"https"===i&&":443"===o&&(o=""),n+=o}}return n},t.document=P()||{},t._htmlAnchorIdx=0,t._htmlAnchorElement=[null,null,null,null,null],t}(),ye=function(){function t(){}return t.canIncludeCorrelationHeader=function(t,e,n){if(!e||t&&t.disableCorrelationHeaders)return!1;if(t&&t.correlationHeaderExcludePatterns)for(var r=0;r0},t.getCorrelationContext=function(e){if(e){var n=t.getCorrelationContextValue(e,ce.requestContextTargetKey);if(n&&n!==t.correlationIdPrefix)return n}},t.getCorrelationContextValue=function(t,e){if(t)for(var n=t.split(","),r=0;r0){var s=me.parseUrl(e);if(i=s.host,!o)if(null!=s.pathname){var u=0===s.pathname.length?"/":s.pathname;"/"!==u.charAt(0)&&(u="/"+u),a=s.pathname,o=fe.sanitizeString(t,n?n+" "+u:u)}else o=fe.sanitizeString(t,e)}else i=r,o=r;return{target:i,name:o,data:a}},t}(),be=function(){function t(){}return t.Now=function(){var t=j();return t&&t.now&&t.timing?t.now()+t.timing.navigationStart:(new Date).getTime()},t.GetDuration=function(t,e){var n=null;return 0===t||0===e||Q.isNullOrUndefined(t)||Q.isNullOrUndefined(e)||(n=e-t),n},t}(),_e="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",we="sampleRate",xe="ProcessLegacy",Ce="http.method",Se="https://dc.services.visualstudio.com",Ee=function(){function t(){}return t.parse=function(e){if(!e)return{};var n=e.split(t._FIELDS_SEPARATOR),r=Q.arrReduce(n,function(e,n){var r=n.split(t._FIELD_KEY_VALUE_SEPARATOR);return 2===r.length&&(e[r[0].toLowerCase()]=r[1]),e},{});return Q.objKeys(r).length>0&&(r.endpointsuffix&&(r.ingestionendpoint=r.ingestionendpoint||"https://"+(r.location?r.location+".":"")+"dc."+r.endpointsuffix),r.ingestionendpoint=r.ingestionendpoint||Se),r},t._FIELDS_SEPARATOR=";",t._FIELD_KEY_VALUE_SEPARATOR="=",t}(),Oe=function(){return function(){}}(),ke=function(t){function e(){return t.call(this)||this}return __extends(e,t),e}(Oe),Te=function(t){function e(e,n,r){var i=t.call(this)||this;return i.name=fe.sanitizeString(e,r)||ge.NotSpecified,i.data=n,i.time=Q.toISOString(new Date),i.aiDataContract={time:ue.Required,iKey:ue.Required,name:ue.Required,sampleRate:function(){return 100===i.sampleRate?ue.Hidden:ue.Required},tags:ue.Required,data:ue.Required},i}return __extends(e,t),e}(function(){return function(){this.ver=1,this.sampleRate=100,this.tags={}}}()),De=function(){return function(){}}(),Ie=function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}return __extends(e,t),e}(De),Ae=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.aiDataContract={ver:ue.Required,name:ue.Required,properties:ue.Default,measurements:ue.Default},o.name=fe.sanitizeString(e,n)||ge.NotSpecified,o.properties=fe.sanitizeProperties(e,r),o.measurements=fe.sanitizeMeasurements(e,i),o}return __extends(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(Ie),Me=function(){return function(){}}(),Pe=function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.exceptions=[],e.properties={},e.measurements={},e}return __extends(e,t),e}(De),Re=function(){return function(){this.hasFullStack=!0,this.parsedStack=[]}}(),Ne="error",je=function(t){function e(e,n,r,i,o,a){var s,u=t.call(this)||this;return u.aiDataContract={ver:ue.Required,exceptions:ue.Required,severityLevel:ue.Default,properties:ue.Default,measurements:ue.Default},"ver"in(s=n)&&"exceptions"in s&&"properties"in s?(u.exceptions=n.exceptions,u.properties=n.properties,u.measurements=n.measurements,n.severityLevel&&(u.severityLevel=n.severityLevel),n.id&&(u.id=n.id),n.problemGroup&&(u.problemGroup=n.problemGroup),u.ver=2,Q.isNullOrUndefined(n.isManual)||(u.isManual=n.isManual)):(u.exceptions=[new Fe(e,n)],u.properties=fe.sanitizeProperties(e,r)||{},u.measurements=fe.sanitizeMeasurements(e,i),o&&(u.severityLevel=o),a&&(u.id=a)),u}return __extends(e,t),e.CreateFromInterface=function(t,n,r,i){var o=n.exceptions&&Q.arrMap(n.exceptions,function(e){return Fe.CreateFromInterface(t,e)});return new e(t,__assign({},n,{exceptions:o}),r,i)},e.prototype.toInterface=function(){var t=this,e=t.exceptions,n=t.properties,r=t.measurements,i=t.severityLevel,o=t.problemGroup,a=t.id,s=t.isManual;return{ver:"4.0",exceptions:e instanceof Array&&Q.arrMap(e,function(t){return t.toInterface()})||void 0,severityLevel:i,properties:n,measurements:r,problemGroup:o,id:a,isManual:s}},e.CreateSimpleException=function(t,e,n,r,i,o){return{exceptions:[{hasFullStack:!0,message:t,stack:i,typeName:e}]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e}(Pe),Fe=function(t){function e(n,r){var i,o=t.call(this)||this;if(o.aiDataContract={id:ue.Default,outerId:ue.Default,typeName:ue.Required,message:ue.Required,hasFullStack:ue.Default,stack:ue.Default,parsedStack:ue.Array},"hasFullStack"in(i=r)&&"typeName"in i)o.typeName=r.typeName,o.message=r.message,o.stack=r.stack,o.parsedStack=r.parsedStack,o.hasFullStack=r.hasFullStack;else{var a=r;ge.isError(a)||(a=a[Ne]||a.evt||a),o.typeName=fe.sanitizeString(n,function(t){var e="";if(t&&!(e=t.typeName||t.name||""))try{var n=/function (.{1,})\(/.exec(t.constructor.toString());e=n&&n.length>1?n[1]:""}catch(r){}return e}(a))||ge.NotSpecified,o.message=fe.sanitizeMessage(n,r.message)||ge.NotSpecified;var s=r.stack;o.parsedStack=e.parseStack(s),o.stack=fe.sanitizeException(n,s),o.hasFullStack=ge.isArray(o.parsedStack)&&o.parsedStack.length>0}return o}return __extends(e,t),e.prototype.toInterface=function(){var t=this.parsedStack instanceof Array&&Q.arrMap(this.parsedStack,function(t){return t.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:t||void 0}},e.CreateFromInterface=function(t,n){var r=n.parsedStack instanceof Array&&Q.arrMap(n.parsedStack,function(t){return Le.CreateFromInterface(t)})||n.parsedStack;return new e(t,__assign({},n,{parsedStack:r}))},e.parseStack=function(t){var e;if(Q.isString(t)){var n=t.split("\n");e=[];for(var r=0,i=0,o=0;o<=n.length;o++)if(Le.regex.test(n[o])){var a=new Le(n[o],r++);i+=a.sizeInBytes,e.push(a)}if(i>32768)for(var s=0,u=e.length-1,l=0,c=s,f=u;s32768){e.splice(c,f-c+1);break}c=s,f=u,s++,u--}}return e},e}(Re),Le=function(t){function e(n,r){var i=t.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:ue.Required,method:ue.Required,assembly:ue.Default,fileName:ue.Default,line:ue.Default},"string"==typeof n){var o=n;i.level=r,i.method="",i.assembly=ge.trim(o),i.fileName="",i.line=0;var a=o.match(e.regex);a&&a.length>=5&&(i.method=ge.trim(a[2])||i.method,i.fileName=ge.trim(a[4]),i.line=parseInt(a[5])||0)}else i.level=n.level,i.method=n.method,i.assembly=n.assembly,i.fileName=n.fileName,i.line=n.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=e.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}return __extends(e,t),e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},e.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(Me),Ve=function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.metrics=[],e.properties={},e.measurements={},e}return __extends(e,t),e}(De),Be=function(t){return t[t.Measurement=0]="Measurement",t[t.Aggregation=1]="Aggregation",t}({}),ze=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.aiDataContract={name:ue.Required,kind:ue.Default,value:ue.Required,count:ue.Default,min:ue.Default,max:ue.Default,stdDev:ue.Default},e}return __extends(e,t),e}(function(){return function(){this.kind=Be.Measurement}}()),Ue=function(t){function e(e,n,r,i,o,a,s,u){var l=t.call(this)||this;l.aiDataContract={ver:ue.Required,metrics:ue.Required,properties:ue.Default};var c=new ze;return c.count=i>0?i:void 0,c.max=isNaN(a)||null===a?void 0:a,c.min=isNaN(o)||null===o?void 0:o,c.name=fe.sanitizeString(e,n)||ge.NotSpecified,c.value=r,l.metrics=[c],l.properties=fe.sanitizeProperties(e,s),l.measurements=fe.sanitizeMeasurements(e,u),l}return __extends(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(Ve),He=function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}return __extends(e,t),e}(Ie),qe=function(t){function e(e,n,r,i,o,a,s){var u=t.call(this)||this;return u.aiDataContract={ver:ue.Required,name:ue.Default,url:ue.Default,duration:ue.Default,properties:ue.Default,measurements:ue.Default,id:ue.Default},u.id=fe.sanitizeId(e,s),u.url=fe.sanitizeUrl(e,r),u.name=fe.sanitizeString(e,n)||ge.NotSpecified,isNaN(i)||(u.duration=ge.msToTimeSpan(i)),u.properties=fe.sanitizeProperties(e,o),u.measurements=fe.sanitizeMeasurements(e,a),u}return __extends(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(He),Ge=function(t){function e(e,n,r,i,o,a,s,u,l,c,f,p){void 0===l&&(l="Ajax");var h=t.call(this)||this;h.aiDataContract={id:ue.Required,ver:ue.Required,name:ue.Default,resultCode:ue.Default,duration:ue.Default,success:ue.Default,data:ue.Default,target:ue.Default,type:ue.Default,properties:ue.Default,measurements:ue.Default,kind:ue.Default,value:ue.Default,count:ue.Default,min:ue.Default,max:ue.Default,stdDev:ue.Default,dependencyKind:ue.Default,dependencySource:ue.Default,commandName:ue.Default,dependencyTypeName:ue.Default},h.id=n,h.duration=ge.msToTimeSpan(o),h.success=a,h.resultCode=s+"",h.type=fe.sanitizeString(e,l);var d=ve.ParseDependencyPath(e,r,u,i);return h.data=fe.sanitizeUrl(e,i)||d.data,h.target=fe.sanitizeString(e,d.target),c&&(h.target=h.target+" | "+c),h.name=fe.sanitizeString(e,d.name),h.properties=fe.sanitizeProperties(e,f),h.measurements=fe.sanitizeMeasurements(e,p),h}return __extends(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.success=!0,e.properties={},e.measurements={},e}return __extends(e,t),e}(De)),We=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a.aiDataContract={ver:ue.Required,message:ue.Required,severityLevel:ue.Default,properties:ue.Default},a.message=fe.sanitizeMessage(e,n=n||ge.NotSpecified),a.properties=fe.sanitizeProperties(e,i),a.measurements=fe.sanitizeMeasurements(e,o),r&&(a.severityLevel=r),a}return __extends(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}return __extends(e,t),e}(De)),Ke=function(t){function e(e,n,r,i,o,a,s){var u=t.call(this)||this;return u.aiDataContract={ver:ue.Required,name:ue.Default,url:ue.Default,duration:ue.Default,perfTotal:ue.Default,networkConnect:ue.Default,sentRequest:ue.Default,receivedResponse:ue.Default,domProcessing:ue.Default,properties:ue.Default,measurements:ue.Default},u.url=fe.sanitizeUrl(e,r),u.name=fe.sanitizeString(e,n)||ge.NotSpecified,u.properties=fe.sanitizeProperties(e,o),u.measurements=fe.sanitizeMeasurements(e,a),s&&(u.domProcessing=s.domProcessing,u.duration=s.duration,u.networkConnect=s.networkConnect,u.perfTotal=s.perfTotal,u.receivedResponse=s.receivedResponse,u.sentRequest=s.sentRequest),u}return __extends(e,t),e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(function(t){function e(){var e=t.call(this)||this;return e.ver=2,e.properties={},e.measurements={},e}return __extends(e,t),e}(He)),$e=function(t){function e(e,n){var r=t.call(this)||this;return r.aiDataContract={baseType:ue.Required,baseData:ue.Required},r.baseType=e,r.baseData=n,r}return __extends(e,t),e}(ke),Ye=function(t){return t[t.Verbose=0]="Verbose",t[t.Information=1]="Information",t[t.Warning=2]="Warning",t[t.Error=3]="Error",t[t.Critical=4]="Critical",t}({}),Ze=function(){function t(){}return t.getConfig=function(t,e,n,r){var i;return void 0===r&&(r=!1),i=n&&t.extensionConfig&&t.extensionConfig[n]&&!Q.isNullOrUndefined(t.extensionConfig[n][e])?t.extensionConfig[n][e]:t[e],Q.isNullOrUndefined(i)?r:i},t}(),Xe=function(){return function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalSnippet="ai.internal.snippet",this.internalSdkSrc="ai.internal.sdkSrc"}}(),Qe=function(){function t(){}return t.create=function(t,e,n,r,i,o){if(n=fe.sanitizeString(r,n)||ge.NotSpecified,Q.isNullOrUndefined(t)||Q.isNullOrUndefined(e)||Q.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:Q.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:e,baseData:t};if(!Q.isNullOrUndefined(i))for(var s in i)i.hasOwnProperty(s)&&(a.data[s]=i[s]);return a},t}(),Je=function(){function t(){}return t.UserExt="user",t.DeviceExt="device",t.TraceExt="trace",t.WebExt="web",t.AppExt="app",t.OSExt="os",t.SessionExt="ses",t.SDKExt="sdk",t}(),tn=new Xe,en="AppInsightsPropertiesPlugin",nn="AppInsightsChannelPlugin",rn="ApplicationInsightsAnalytics",on=function(){return function t(e,n,r,i){xt(t,this,function(t){var o,a=Q.arrForEach,s=Q.isNullOrUndefined,u=null,l=[],c=!1;function f(){r&&a(r.getTransmissionControls(),function(t){a(t,function(t){return t.flush(!0)})})}r&&(o=r.logger),t.trackPageView=function(t,r){var p=t.name;if(s(p)||"string"!=typeof p){var h=P();p=t.name=h&&h.title||""}var d=t.uri;if(s(d)||"string"!=typeof d){var g=N();d=t.uri=g&&g.href||""}if(!i.isPerformanceTimingSupported())return e.sendPageViewInternal(t,r),f(),void o.throwInternal(et.WARNING,nt.NavigationTimingNotSupported,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var m,y,v=!1,b=i.getPerformanceTiming().navigationStart;m=be.GetDuration(b,+new Date),i.shouldCollectDuration(m)||(m=void 0),s(r)||s(r.duration)||(y=r.duration),!n&&isNaN(y)||(isNaN(y)&&(r||(r={}),r.duration=m),e.sendPageViewInternal(t,r),f(),v=!0),r||(r={}),l.push(function(){var n=!1;try{if(i.isPerformanceTimingDataReady()){n=!0;var a={name:p,uri:d};i.populatePageViewPerformanceEvent(a),a.isValid||v?(v||(r.duration=a.durationMs,e.sendPageViewInternal(t,r)),c||(e.sendPageViewPerformanceInternal(a,r),c=!0)):(r.duration=m,e.sendPageViewInternal(t,r))}else be.GetDuration(b,+new Date)>6e4&&(n=!0,v||(r.duration=6e4,e.sendPageViewInternal(t,r)))}catch(s){o.throwInternal(et.CRITICAL,nt.TrackPVFailedCalc,"trackPageView failed on page load calculation: "+ge.getExceptionName(s),{exception:ge.dump(s)})}return n}),u||(u=setInterval(function(){var t=l.slice(0),e=!1;l=[],a(t,function(t){t()?e=!0:l.push(t)}),0===l.length&&(clearInterval(u),u=null),e&&f()},100))}})}}(),an=function(){function t(t,e){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=e,this._logger=t}return t.prototype.trackPreviousPageVisit=function(t,e){try{var n=this.restartPageVisitTimer(t,e);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(r){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ge.dump(r))}},t.prototype.restartPageVisitTimer=function(t,e){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(t,e),n}catch(r){return this._logger.warnToConsole("Call to restart failed: "+ge.dump(r)),null}},t.prototype.startPageVisitTimer=function(t,e){try{if(ge.canUseSessionStorage()){if(null!=ge.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new sn(t,e),r=L().stringify(n);ge.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,r)}}catch(i){this._logger.warnToConsole("Call to start failed: "+ge.dump(i))}},t.prototype.stopPageVisitTimer=function(){try{if(ge.canUseSessionStorage()){var t=Q.dateNow(),e=ge.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(e&&F()){var n=L().parse(e);return n.pageVisitTime=t-n.pageVisitStartTime,ge.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(r){return this._logger.warnToConsole("Stop page visit timer failed: "+ge.dump(r)),null}},t}(),sn=function(){return function(t,e){this.pageVisitStartTime=Q.dateNow(),this.pageName=t,this.pageUrl=e}}(),un=function(){function t(t){this.MAX_DURATION_ALLOWED=36e5,t&&(this._logger=t.logger)}return t.prototype.populatePageViewPerformanceEvent=function(t){t.isValid=!1;var e=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(e||n){if(e)var r=e.duration,i=be.GetDuration(e.startTime,e.connectEnd),o=be.GetDuration(e.requestStart,e.responseStart),a=be.GetDuration(e.responseStart,e.responseEnd),s=be.GetDuration(e.responseEnd,e.loadEventEnd);else r=be.GetDuration(n.navigationStart,n.loadEventEnd),i=be.GetDuration(n.navigationStart,n.connectEnd),o=be.GetDuration(n.requestStart,n.responseStart),a=be.GetDuration(n.responseStart,n.responseEnd),s=be.GetDuration(n.responseEnd,n.loadEventEnd);0===r?this._logger.throwInternal(et.WARNING,nt.ErrorPVCalc,"error calculating page view performance.",{total:r,network:i,request:o,response:a,dom:s}):this.shouldCollectDuration(r,i,o,a,s)?r0},t.prototype.isPerformanceTimingSupported=function(){var t=j();return t&&t.timing},t.prototype.isPerformanceTimingDataReady=function(){var t=j(),e=t?t.timing:0;return e&&e.domainLookupStart>0&&e.navigationStart>0&&e.responseStart>0&&e.requestStart>0&&e.loadEventEnd>0&&e.responseEnd>0&&e.connectEnd>0&&e.domLoading>0},t.prototype.shouldCollectDuration=function(){for(var t=[],e=0;e=this.MAX_DURATION_ALLOWED)return!1;return!0},t}();function ln(t,e){t&&t.dispatchEvent&&e&&t.dispatchEvent(e)}var cn=function(t){function e(){var e=t.call(this)||this;e.identifier=rn,e.priority=180,e.autoRoutePVDelay=500,e._trackAjaxAttempts=0;var n=N();return e._prevUri=n&&n.href||"",e}return __extends(e,t),e.getDefaultConfig=function(t){return t||(t={}),t.sessionRenewalMs=18e5,t.sessionExpirationMs=864e5,t.disableExceptionTracking=ge.stringToBoolOrDefault(t.disableExceptionTracking),t.autoTrackPageVisitTime=ge.stringToBoolOrDefault(t.autoTrackPageVisitTime),t.overridePageViewDuration=ge.stringToBoolOrDefault(t.overridePageViewDuration),t.enableUnhandledPromiseRejectionTracking=ge.stringToBoolOrDefault(t.enableUnhandledPromiseRejectionTracking),(isNaN(t.samplingPercentage)||t.samplingPercentage<=0||t.samplingPercentage>=100)&&(t.samplingPercentage=100),t.isCookieUseDisabled=ge.stringToBoolOrDefault(t.isCookieUseDisabled),t.isStorageUseDisabled=ge.stringToBoolOrDefault(t.isStorageUseDisabled),t.isBrowserLinkTrackingEnabled=ge.stringToBoolOrDefault(t.isBrowserLinkTrackingEnabled),t.enableAutoRouteTracking=ge.stringToBoolOrDefault(t.enableAutoRouteTracking),t.namePrefix=t.namePrefix||"",t},e.prototype.processTelemetry=function(t,e){var n=this;Pt(this.core,function(){return n.identifier+":processTelemetry"},function(){var r=!1,i=n._telemetryInitializers.length;e=n._getTelCtx(e);for(var o=0;o=0)return!1}return!0})}},e.prototype._addTelemetryInitializer=function(t){this._telemetryInitializers.push(t)},e.prototype._sendCORSException=function(t){var e=Qe.create({message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:t,lineNumber:0,columnNumber:0,error:void 0},je.dataType,je.envelopeType,this.diagLog(),{url:t});this.core.track(e)},e.Version="2.5.8",e}(zt),fn=function(){function t(t,e){this._name=e,this._events={},this._logger=t}return t.prototype.start=function(t){void 0!==this._events[t]&&this._logger.throwInternal(et.WARNING,nt.StartCalledMoreThanOnce,"start was called more than once for this event without calling stop.",{name:this._name,key:t},!0),this._events[t]=+new Date},t.prototype.stop=function(t,e,n,r){var i=this._events[t];if(isNaN(i))this._logger.throwInternal(et.WARNING,nt.StopCalledWithoutStart,"stop was called without a corresponding start.",{name:this._name,key:t},!0);else{var o=+new Date,a=be.GetDuration(i,o);this.action(t,e,a,n,r)}delete this._events[t],this._events[t]=void 0},t}(),pn=function(){return function t(e){var n=[];xt(t,this,function(t){t.enqueue=function(t){n.push(t)},t.count=function(){return n.length},t.clear=function(){n.length=0},t.getItems=function(){return n.slice(0)},t.batchPayloads=function(t){return t&&t.length>0?e.emitLineDelimitedJson()?t.join("\n"):"["+t.join(",")+"]":null},t.markAsSent=function(e){t.clear()},t.clearSent=function(t){}})}}(),hn=function(){function t(e,n){var r,i=!1;xt(t,this,function(o){var a=l(t.BUFFER_KEY),s=l(t.SENT_BUFFER_KEY);function u(t,e){var n=[];return Q.arrForEach(e,function(e){Q.isFunction(e)||-1!==Q.arrIndexOf(t,e)||n.push(e)}),n}function l(t){var r=t;try{r=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+r:r;var i=ge.getSessionStorage(e,r);if(i){var o=L().parse(i);if(Q.isString(o)&&(o=L().parse(o)),o&&ge.isArray(o))return o}}catch(a){e.throwInternal(et.CRITICAL,nt.FailedToRestoreStorageBuffer," storage key: "+r+", "+ge.getExceptionName(a),{exception:ge.dump(a)})}return[]}function c(t,r){var i=t;try{i=n.namePrefix&&n.namePrefix()?n.namePrefix()+"_"+i:i;var o=JSON.stringify(r);ge.setSessionStorage(e,i,o)}catch(a){ge.setSessionStorage(e,i,JSON.stringify([])),e.throwInternal(et.WARNING,nt.FailedToSetStorageBuffer," storage key: "+i+", "+ge.getExceptionName(a)+". Buffer cleared",{exception:ge.dump(a)})}}(r=a.concat(s)).length>t.MAX_BUFFER_SIZE&&(r.length=t.MAX_BUFFER_SIZE),c(t.SENT_BUFFER_KEY,[]),c(t.BUFFER_KEY,r),o.enqueue=function(n){r.length>=t.MAX_BUFFER_SIZE?i||(e.throwInternal(et.WARNING,nt.SessionStorageBufferFull,"Maximum buffer size reached: "+r.length,!0),i=!0):(r.push(n),c(t.BUFFER_KEY,r))},o.count=function(){return r.length},o.clear=function(){r=[],c(t.BUFFER_KEY,[]),c(t.SENT_BUFFER_KEY,[]),i=!1},o.getItems=function(){return r.slice(0)},o.batchPayloads=function(t){return t&&t.length>0?n.emitLineDelimitedJson()?t.join("\n"):"["+t.join(",")+"]":null},o.markAsSent=function(n){r=u(n,r),c(t.BUFFER_KEY,r);var i=l(t.SENT_BUFFER_KEY);i instanceof Array&&n instanceof Array&&((i=i.concat(n)).length>t.MAX_BUFFER_SIZE&&(e.throwInternal(et.CRITICAL,nt.SessionStorageBufferFull,"Sent buffer reached its maximum size: "+i.length,!0),i.length=t.MAX_BUFFER_SIZE),c(t.SENT_BUFFER_KEY,i))},o.clearSent=function(e){var n=l(t.SENT_BUFFER_KEY);n=u(e,n),c(t.SENT_BUFFER_KEY,n)}})}return t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(),dn=Q.arrForEach,gn=Q.objKeys,mn=Q.isNullOrUndefined;function yn(t,e,n){return t&&n?(t[e]=n,t[e]):null}var vn=function(){function t(){}return t.extractPropsAndMeasurements=function(t,e,n){mn(t)||dn(gn(t),function(r){var i=t[r];Q.isNumber(i)?n[r]=i:Q.isString(i)?e[r]=i:F()&&(e[r]=L().stringify(i))})},t.createEnvelope=function(e,n,r,i){var o=new Te(e,i,n);yn(o,"sampleRate",r[we]),(r.baseData||{}).startTime&&(o.time=Q.toISOString(r.baseData.startTime)),o.iKey=r.iKey;var a=r.iKey.replace(/-/g,"");return o.name=o.name.replace("{0}",a),t.extractPartAExtensions(r,o),r.tags=r.tags||[],o},t.extractPartAExtensions=function(e,n){var r=n.tags=n.tags||{},i=e.ext=e.ext||{},o=e.tags=e.tags||[],a=i.user;a&&(yn(r,tn.userAuthUserId,a.authId),yn(r,tn.userId,a.id||a.localId));var s=i.app;s&&yn(r,tn.sessionId,s.sesId);var u=i.device;u&&(yn(r,tn.deviceId,u.id||u.localId),yn(r,tn.deviceType,u.deviceClass),yn(r,tn.deviceIp,u.ip),yn(r,tn.deviceModel,u.model),yn(r,tn.deviceType,u.deviceType));var l=e.ext.web;if(l){yn(r,tn.deviceLanguage,l.browserLang),yn(r,tn.deviceBrowserVersion,l.browserVer),yn(r,tn.deviceBrowser,l.browser);var c=n.data=n.data||{},f=c.baseData=c.baseData||{},p=f.properties=f.properties||{};yn(p,"domain",l.domain),yn(p,"isManual",l.isManual?"true":null),yn(p,"screenRes",l.screenRes),yn(p,"userConsent",l.userConsent?"true":null)}var h=i.os;h&&yn(r,tn.deviceOS,h.name);var d=i.trace;d&&(yn(r,tn.operationParentId,d.parentID),yn(r,tn.operationName,d.name),yn(r,tn.operationId,d.traceID));for(var g={},m=function(t){var e=o[t];dn(gn(e),function(t){g[t]=e[t]}),o.splice(t,1)},y=o.length-1;y>=0;y--)m(y);dn(gn(o),function(t){g[t]=o[t]}),n.tags=__assign({},r,g),n.tags[tn.internalSdkVersion]||(n.tags[tn.internalSdkVersion]="javascript:"+t.Version)},t.prototype.Init=function(t,e){this._logger=t,mn(e.baseData)&&this._logger.throwInternal(et.CRITICAL,nt.TelemetryEnvelopeInvalid,"telemetryItem.baseData cannot be null.")},t.Version="2.5.8",t}(),bn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.Create=function(e,n){t.prototype.Init.call(this,e,n);var r=n.baseData.measurements||{},i=n.baseData.properties||{};vn.extractPropsAndMeasurements(n.data,i,r);var o=n.baseData;if(mn(o))return e.warnToConsole("Invalid input for dependency data"),null;var a=new Ge(e,o.id,o.target,o.name,o.duration,o.success,o.responseCode,o.properties&&o.properties[Ce]?o.properties[Ce]:"GET",o.type,o.correlationContext,i,r),s=new $e(Ge.dataType,a);return vn.createEnvelope(e,Ge.envelopeType,n,s)},e.DependencyEnvelopeCreator=new e,e}(vn),_n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.Create=function(e,n){t.prototype.Init.call(this,e,n);var r={},i={};n.baseType!==Ae.dataType&&(r.baseTypeSource=n.baseType),n.baseType===Ae.dataType?(r=n.baseData.properties||{},i=n.baseData.measurements||{}):n.baseData&&vn.extractPropsAndMeasurements(n.baseData,r,i),vn.extractPropsAndMeasurements(n.data,r,i);var o=new Ae(e,n.baseData.name,r,i),a=new $e(Ae.dataType,o);return vn.createEnvelope(e,Ae.envelopeType,n,a)},e.EventEnvelopeCreator=new e,e}(vn),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.Create=function(e,n){t.prototype.Init.call(this,e,n);var r=n.baseData.measurements||{},i=n.baseData.properties||{};vn.extractPropsAndMeasurements(n.data,i,r);var o=je.CreateFromInterface(e,n.baseData,i,r),a=new $e(je.dataType,o);return vn.createEnvelope(e,je.envelopeType,n,a)},e.ExceptionEnvelopeCreator=new e,e}(vn),xn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.Create=function(e,n){t.prototype.Init.call(this,e,n);var r=n.baseData,i=r.properties||{},o=r.measurements||{};vn.extractPropsAndMeasurements(n.data,i,o);var a=new Ue(e,r.name,r.average,r.sampleCount,r.min,r.max,i,o),s=new $e(Ue.dataType,a);return vn.createEnvelope(e,Ue.envelopeType,n,s)},e.MetricEnvelopeCreator=new e,e}(vn),Cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.Create=function(e,n){t.prototype.Init.call(this,e,n);var r,i=n.baseData;mn(i)||mn(i.properties)||mn(i.properties.duration)?mn(n.data)||mn(n.data.duration)||(r=n.data.duration,delete n.data.duration):(r=i.properties.duration,delete i.properties.duration);var o,a=n.baseData;((n.ext||{}).trace||{}).traceID&&(o=n.ext.trace.traceID);var s=a.id||o,u=a.name,l=a.uri,c=a.properties||{},f=a.measurements||{};if(mn(a.refUri)||(c.refUri=a.refUri),mn(a.pageType)||(c.pageType=a.pageType),mn(a.isLoggedIn)||(c.isLoggedIn=a.isLoggedIn.toString()),!mn(a.properties)){var p=a.properties;dn(gn(p),function(t){c[t]=p[t]})}vn.extractPropsAndMeasurements(n.data,c,f);var h=new qe(e,u,l,r,c,f,s),d=new $e(qe.dataType,h);return vn.createEnvelope(e,qe.envelopeType,n,d)},e.PageViewEnvelopeCreator=new e,e}(vn),Sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.Create=function(e,n){t.prototype.Init.call(this,e,n);var r=n.baseData,i=r.name,o=r.uri||r.url,a=r.properties||{},s=r.measurements||{};vn.extractPropsAndMeasurements(n.data,a,s);var u=new Ke(e,i,o,void 0,a,s,r),l=new $e(Ke.dataType,u);return vn.createEnvelope(e,Ke.envelopeType,n,l)},e.PageViewPerformanceEnvelopeCreator=new e,e}(vn),En=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return __extends(e,t),e.prototype.Create=function(e,n){t.prototype.Init.call(this,e,n);var r=n.baseData.message,i=n.baseData.severityLevel,o=n.baseData.properties||{},a=n.baseData.measurements||{};vn.extractPropsAndMeasurements(n.data,o,a);var s=new We(e,r,i,o,a),u=new $e(We.dataType,s);return vn.createEnvelope(e,We.envelopeType,n,u)},e.TraceEnvelopeCreator=new e,e}(vn),On=function(){return function t(e){xt(t,this,function(t){function n(t,o){var a={};if(!t)return e.throwInternal(et.CRITICAL,nt.CannotSerializeObject,"cannot serialize object because it is null or undefined",{name:o},!0),a;if(t.__aiCircularRefCheck)return e.throwInternal(et.WARNING,nt.CircularReferenceDetected,"Circular reference detected while serializing object",{name:o},!0),a;if(!t.aiDataContract){if("measurements"===o)a=i(t,"number",o);else if("properties"===o)a=i(t,"string",o);else if("tags"===o)a=i(t,"string",o);else if(ge.isArray(t))a=r(t,o);else{e.throwInternal(et.WARNING,nt.CannotSerializeObjectNonSerializable,"Attempting to serialize an object which does not implement ISerializable",{name:o},!0);try{L().stringify(t),a=t}catch(g){e.throwInternal(et.CRITICAL,nt.CannotSerializeObject,g&&Q.isFunction(g.toString)?g.toString():"Error serializing object",null,!0)}}return a}for(var s in t.__aiCircularRefCheck=!0,t.aiDataContract){var u=t.aiDataContract[s],l=Q.isFunction(u)?u()&ue.Required:u&ue.Required,c=Q.isFunction(u)?u()&ue.Hidden:u&ue.Hidden,f=u&ue.Array,p=void 0!==t[s],h=Q.isObject(t[s])&&null!==t[s];if(!l||p||f){if(!c){var d;void 0!==(d=h?f?r(t[s],s):n(t[s],s):t[s])&&(a[s]=d)}}else e.throwInternal(et.CRITICAL,nt.MissingRequiredFieldSpecification,"Missing required field specification. The field is required but not present on source",{field:s,name:o})}return delete t.__aiCircularRefCheck,a}function r(t,r){var i;if(t)if(ge.isArray(t)){i=[];for(var o=0;o100||t<0)&&(this._logger.throwInternal(et.WARNING,nt.SampleRateOutOfRange,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),this.sampleRate=100),this.sampleRate=t,this.samplingScoreGenerator=new Dn}return t.prototype.isSampledIn=function(t){var e=this.sampleRate;return null==e||e>=100||t.baseType===Ue.dataType||this.samplingScoreGenerator.getSamplingScore(t)=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(r){t.diagLog().throwInternal(et.CRITICAL,nt.InvalidBackendResponse,"Cannot parse the response. "+ge.getExceptionName(r),{response:e})}return null}function p(e,i){if(void 0===i&&(i=1),e&&0!==e.length){t._buffer.clearSent(e),n++;for(var o=0,a=e;ot._senderConfig.maxBatchSizeInBytes()&&t.triggerSend(!0,null,10),t._buffer.enqueue(s),h()}catch(c){r.diagLog().throwInternal(et.WARNING,nt.FailedAddingTelemetryToBuffer,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+ge.getExceptionName(c),{exception:ge.dump(c)})}t.processNext(n,r)},t._xhrReadyStateChange=function(e,r,i){if(4===e.readyState){var o=null;t._appId||(o=f(An(e)||e.response))&&o.appId&&(t._appId=o.appId),(e.status<200||e.status>=300)&&0!==e.status?!t._senderConfig.isRetryDisabled()&&d(e.status)?(p(r),t.diagLog().throwInternal(et.WARNING,nt.TransmissionFailed,". Response code "+e.status+". Will retry to send "+r.length+" items.")):t._onError(r,g(e)):kn.isOffline()?t._senderConfig.isRetryDisabled()||(p(r,10),t.diagLog().throwInternal(et.WARNING,nt.TransmissionFailed,". Offline - Response Code: "+e.status+". Offline status: "+kn.isOffline()+". Will retry to send "+r.length+" items.")):206===e.status?(o||(o=f(An(e)||e.response)),o&&!t._senderConfig.isRetryDisabled()?t._onPartialSuccess(r,o):t._onError(r,g(e))):(n=0,t._onSuccess(r,i))}},t.triggerSend=function(e,n,o){void 0===e&&(e=!0);try{if(t._senderConfig.disableTelemetry())t._buffer.clear();else{if(t._buffer.count()>0){var s=t._buffer.getItems();!function(e,n){var r=t.core.getNotifyMgr?t.core.getNotifyMgr():t.core._notificationManager;if(r&&r.eventsSendRequest)try{r.eventsSendRequest(e,n)}catch(i){t.diagLog().throwInternal(et.CRITICAL,nt.NotificationException,"send request notification failed: "+ge.getExceptionName(i),{exception:ge.dump(i)})}}(o||0,e),n?n.call(a,s,e):t._sender(s,e)}new Date}clearTimeout(i),i=null,r=null}catch(l){var u=ge.getIEVersion();(!u||u>9)&&t.diagLog().throwInternal(et.CRITICAL,nt.TransmissionFailed,"Telemetry transmission failed, some telemetry will be lost: "+ge.getExceptionName(l),{exception:ge.dump(l)})}},t._onError=function(e,n,r){t.diagLog().throwInternal(et.WARNING,nt.OnError,"Failed to send telemetry.",{message:n}),t._buffer.clearSent(e)},t._onPartialSuccess=function(e,n){for(var r=[],i=[],o=0,a=n.errors.reverse();o0&&t._onSuccess(e,n.itemsAccepted),r.length>0&&t._onError(r,g(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),i.length>0&&(p(i),t.diagLog().throwInternal(et.WARNING,nt.TransmissionFailed,"Partial success. Delivered: "+e.length+", Failed: "+r.length+". Will retry to send "+i.length+" our of "+n.itemsReceived+" items"))},t._onSuccess=function(e,n){t._buffer.clearSent(e)},t._xdrOnLoad=function(e,r){var i=An(e);if(!e||i+""!="200"&&""!==i){var o=f(i);o&&o.itemsReceived&&o.itemsReceived>o.itemsAccepted&&!t._senderConfig.isRetryDisabled()?t._onPartialSuccess(r,o):t._onError(r,y(e))}else n=0,t._onSuccess(r,0)}}),a}return __extends(e,t),e.constructEnvelope=function(t,e,n){var r;switch((r=e===t.iKey||Q.isNullOrUndefined(e)?t:__assign({},t,{iKey:e})).baseType){case Ae.dataType:return _n.EventEnvelopeCreator.Create(n,r);case We.dataType:return En.TraceEnvelopeCreator.Create(n,r);case qe.dataType:return Cn.PageViewEnvelopeCreator.Create(n,r);case Ke.dataType:return Sn.PageViewPerformanceEnvelopeCreator.Create(n,r);case je.dataType:return wn.ExceptionEnvelopeCreator.Create(n,r);case Ue.dataType:return xn.MetricEnvelopeCreator.Create(n,r);case Ge.dataType:return bn.DependencyEnvelopeCreator.Create(n,r);default:return _n.EventEnvelopeCreator.Create(n,r)}},e._getDefaultAppInsightsChannelConfig=function(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){},namePrefix:function(){},samplingPercentage:function(){return 100}}},e._getEmptyAppInsightsChannelConfig=function(){return{endpointUrl:void 0,emitLineDelimitedJson:void 0,maxBatchInterval:void 0,maxBatchSizeInBytes:void 0,disableTelemetry:void 0,enableSessionStorageBuffer:void 0,isRetryDisabled:void 0,isBeaconApiDisabled:void 0,onunloadDisableBeacon:void 0,instrumentationKey:void 0,namePrefix:void 0,samplingPercentage:void 0}},e}(zt),Pn=function(){return function(){}}(),Rn=function(){function t(e,n){var r=this;this._logger=Q.isNullOrUndefined(n)?new Tt:n,e||(e={}),"function"!=typeof e.sessionExpirationMs&&(e.sessionExpirationMs=function(){return t.acquisitionSpan}),"function"!=typeof e.sessionRenewalMs&&(e.sessionRenewalMs=function(){return t.renewalSpan}),this.config=e,this._storageNamePrefix=function(){return r.config.namePrefix&&r.config.namePrefix()?t.cookieNameConst+r.config.namePrefix():t.cookieNameConst},this.automaticSession=new Pn}return t.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var e=be.Now(),n=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),r=0!==this.config.sessionExpirationMs()&&e-this.automaticSession.renewalDate>this.config.sessionRenewalMs();n||r?this.renew():(!this.cookieUpdatedTimestamp||e-this.cookieUpdatedTimestamp>t.cookieUpdateInterval)&&(this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},t.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},t.prototype.initializeAutomaticSession=function(){var t=ge.getCookie(this._logger,this._storageNamePrefix());if(t&&"function"==typeof t.split)this.initializeAutomaticSessionWithData(t);else{var e=ge.getStorage(this._logger,this._storageNamePrefix());e&&this.initializeAutomaticSessionWithData(e)}this.automaticSession.id||this.renew()},t.prototype.initializeAutomaticSessionWithData=function(t){var e=t.split("|");e.length>0&&(this.automaticSession.id=e[0]);try{e.length>1&&(this.automaticSession.acquisitionDate=+new Date(+e[1]),this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0),e.length>2&&(this.automaticSession.renewalDate=+new Date(+e[2]),this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0)}catch(n){this._logger.throwInternal(et.CRITICAL,nt.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+ge.getExceptionName(n),{exception:ge.dump(n)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(et.WARNING,nt.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")},t.prototype.renew=function(){var t=be.Now();this.automaticSession.id=ge.newId(),this.automaticSession.acquisitionDate=t,this.automaticSession.renewalDate=t,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),ge.canUseLocalStorage()||this._logger.throwInternal(et.WARNING,nt.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")},t.prototype.setCookie=function(t,e,n){var r=e+this.config.sessionExpirationMs(),i=n+this.config.sessionRenewalMs(),o=new Date,a=[t,e,n];o.setTime(r0&&(this.id=i[0])}if(this.config=e,!this.id){this.id=ge.newId();var o=new Date,a=Q.toISOString(o);this.accountAcquisitionDate=a,this.isNewUser=!0,o.setTime(o.getTime()+31536e6);var s=[this.id,a],u=this.config.cookieDomain?this.config.cookieDomain():void 0;ge.setCookie(this._logger,t.userCookieName,s.join(t.cookieSeparator)+";expires="+o.toUTCString(),u);var l=e.namePrefix&&e.namePrefix()?e.namePrefix()+"ai_session":"ai_session";ge.removeStorage(this._logger,l)}this.accountId=e.accountId?e.accountId():void 0;var c=ge.getCookie(this._logger,t.authUserCookieName);if(c){var f=(c=decodeURI(c)).split(t.cookieSeparator);f[0]&&(this.authenticatedId=f[0]),f.length>1&&f[1]&&(this.accountId=f[1])}}return t.prototype.setAuthenticatedUserContext=function(e,n,r){if(void 0===r&&(r=!1),!this.validateUserInput(e)||n&&!this.validateUserInput(n))this._logger.throwInternal(et.WARNING,nt.SetAuthContextFailedAccountName,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=e;var i=this.authenticatedId;n&&(this.accountId=n,i=[this.authenticatedId,this.accountId].join(t.cookieSeparator)),r&&ge.setCookie(this._logger,t.authUserCookieName,encodeURI(i),this.config.cookieDomain())}},t.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,ge.deleteCookie(this._logger,t.authUserCookieName)},t.prototype.validateUserInput=function(t){return!("string"!=typeof t||!t||t.match(/,|;|=| |\|/))},t.cookieSeparator="|",t.userCookieName="ai_user",t.authUserCookieName="ai_authUser",t}(),Vn=function(){return function(){}}(),Bn=function(){return function(t,e,n,r){this.traceID=t||ge.generateW3CId(),this.parentID=e,this.name=n;var i=N();!n&&i&&i.pathname&&(this.name=i.pathname),this.name=fe.sanitizeString(r,this.name)}}(),zn=function(){function t(t,e){this.application=new Nn,this.internal=new Fn(e),I()&&(this.sessionManager=new Rn(e,t),this.device=new jn,this.location=new Vn,this.user=new Ln(e,t),this.telemetryTrace=new Bn(void 0,void 0,void 0,t),this.session=new Pn),this.appId=function(){return null}}return t.prototype.applySessionContext=function(t,e){var n=this.session,r=this.sessionManager,i=n||r&&r.automaticSession;i&&Q.isString(i.id)&&(t.ext.app.sesId=i.id),n&&(t.ext.app.sesId=Q.isString(n.id)?n.id:r.automaticSession.id)},t.prototype.applyOperatingSystemContxt=function(t,e){var n=this.os;n&&n.name&&(t.ext.os=n)},t.prototype.applyApplicationContext=function(t,e){var n=this.application;n&&(Q.isString(n.ver)&&(t.tags[tn.applicationVersion]=n.ver),Q.isString(n.build)&&(t.tags[tn.applicationBuild]=n.build))},t.prototype.applyDeviceContext=function(t,e){var n=this.device;n&&(Q.isString(n.id)&&(t.ext.device.localId=n.id),Q.isString(n.ip)&&(t.ext.device.ip=n.ip),Q.isString(n.model)&&(t.ext.device.model=n.model),Q.isString(n.deviceClass)&&(t.ext.device.deviceClass=n.deviceClass))},t.prototype.applyInternalContext=function(t,e){var n=this.internal;n&&(Q.isString(n.agentVersion)&&(t.tags[tn.internalAgentVersion]=n.agentVersion),Q.isString(n.sdkVersion)&&(t.tags[tn.internalSdkVersion]=n.sdkVersion),t.baseType!==kt.dataType&&t.baseType!==qe.dataType||(Q.isString(n.snippetVer)&&(t.tags[tn.internalSnippet]=n.snippetVer),Q.isString(n.sdkSrc)&&(t.tags[tn.internalSdkSrc]=n.sdkSrc)))},t.prototype.applyLocationContext=function(t,e){var n=this.location;n&&Q.isString(n.ip)&&(t.tags[tn.locationIp]=n.ip)},t.prototype.applyOperationContext=function(t,e){var n=this.telemetryTrace;if(n){var r=t.ext.trace||{traceID:void 0,parentID:void 0};Q.isString(n.traceID)&&(r.traceID=n.traceID),Q.isString(n.name)&&(r.name=n.name),Q.isString(n.parentID)&&(r.parentID=n.parentID),t.ext.trace=r}},t.prototype.applyWebContext=function(t,e){var n=this.web;n&&(t.ext.web=t.ext.web||{},t.ext.web=n)},t.prototype.applyUserContext=function(t,e){var n=this.user;n&&(t.tags||(t.tags=[]),Q.isString(n.accountId)&&(t.tags[tn.userAccountId]=n.accountId),Q.isString(n.id)&&(t.ext.user.id=n.id),Q.isString(n.authenticatedId)&&(t.ext.user.authId=n.authenticatedId))},t.prototype.cleanUp=function(t,e){t.ext[Je.DeviceExt]&&0===Q.objKeys(t.ext[Je.DeviceExt]).length&&delete t.ext[Je.DeviceExt],t.ext[Je.UserExt]&&0===Q.objKeys(t.ext[Je.UserExt]).length&&delete t.ext[Je.UserExt],t.ext[Je.WebExt]&&0===Q.objKeys(t.ext[Je.WebExt]).length&&delete t.ext[Je.WebExt],t.ext[Je.OSExt]&&0===Q.objKeys(t.ext[Je.OSExt]).length&&delete t.ext[Je.OSExt],t.ext[Je.AppExt]&&0===Q.objKeys(t.ext[Je.AppExt]).length&&delete t.ext[Je.AppExt],t.ext[Je.TraceExt]&&0===Q.objKeys(t.ext[Je.TraceExt]).length&&delete t.ext[Je.TraceExt]},t}(),Un=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.priority=110,e.identifier=en,e}return __extends(e,t),e.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){}}},e.prototype.initialize=function(n,r,i,o){var a=this;t.prototype.initialize.call(this,n,r,i,o);var s=this._getTelCtx(),u=this.identifier,l=e.getDefaultConfig();this._extensionConfig=this._extensionConfig||e.getDefaultConfig();var c=function(t){f._extensionConfig[t]=function(){return s.getConfig(u,t,l[t]())}},f=this;for(var p in l)c(p);this.context=new zn(r.logger,this._extensionConfig),this._breezeChannel=ge.getExtension(i,nn),this.context.appId=function(){return a._breezeChannel?a._breezeChannel._appId:null}},e.prototype.processTelemetry=function(t,e){if(Q.isNullOrUndefined(t));else{if(e=this._getTelCtx(e),t.name===qe.envelopeType&&e.diagLog().resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(t,e),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var n=new kt(nt.SendBrowserInfoOnUserInit,(R()||{}).userAgent||"");e.diagLog().logInternalMessage(et.CRITICAL,n)}this.processNext(t,e)}},e.prototype._processTelemetryInternal=function(t,e){t.tags||(t.tags=[]),t.ext||(t.ext={});var n=t.ext;n[Je.DeviceExt]=n[Je.DeviceExt]||{},n[Je.WebExt]=n[Je.WebExt]||{},n[Je.UserExt]=n[Je.UserExt]||{},n[Je.OSExt]=n[Je.OSExt]||{},n[Je.AppExt]=n[Je.AppExt]||{},n[Je.TraceExt]=n[Je.TraceExt]||{};var r=this.context;r.applySessionContext(t,e),r.applyApplicationContext(t,e),r.applyDeviceContext(t,e),r.applyOperationContext(t,e),r.applyUserContext(t,e),r.applyOperatingSystemContxt(t,e),r.applyWebContext(t,e),r.applyLocationContext(t,e),r.applyInternalContext(t,e),r.cleanUp(t,e)},e}(zt),Hn="_aiHooks",qn=["req","rsp","hkErr","fnErr"],Gn="__proto__",Wn="constructor";function Kn(t,e){if(t)for(var n=0;n=0&&i<=2&&Kn(t,function(t,o){var a=t.cbks,s=a[qn[i]];if(s){e.ctx=function(){return r[o]=r[o]||{}};try{s.apply(e.inst,n)}catch(c){var u=e.err;try{var l=a[qn[2]];l&&(e.err=c,l.apply(e.inst,n))}catch(f){}finally{e.err=u}}}})}var Yn=Object.getPrototypeOf;function Zn(t,e,n,r){if(void 0===r&&(r=!0),t&&e&&n){var i=function t(e,n,r){var i=null;return e&&(Q.hasOwnProperty(e,n)?i=e:r&&(i=t(function(t){if(t){if(Yn)return Yn(t);var e=t[Gn]||t[b]||t[Wn];if(e)return e}return null}(e),n,!1))),i}(t,e,r);if(i){var o=i[e];if(typeof o===_){var a=o[Hn];if(!a){var s=(l=a={i:0,n:e,f:o,h:[]},function(){var t=arguments,e=l.h,n={name:l.n,inst:this,ctx:null,set:function(e,r){(t=o([],t))[e]=r,i=o([n],t)}},r=[],i=o([n],t);function o(t,e){return Kn(e,function(e){t.push(e)}),t}$n(e,n,i,r,0);var a=l.f;try{n.rslt=a.apply(this,t)}catch(s){throw n.err=s,$n(e,n,i,r,3),s}return $n(e,n,i,r,1),n.rslt});s[Hn]=a,i[e]=s}var u={id:a.i,cbks:n,rm:function(){var t=this.id;Kn(a.h,function(e,n){if(e.id===t)return a.h.splice(n,1),1})}};return a.i++,a.h.push(u),u}}}var l;return null}var Xn=Q.objKeys,Qn=Q.arrForEach;function Jn(t,e,n){var r=0,i=t[e],o=t[n];return i&&o&&(r=be.GetDuration(i,o)),r}function tr(t,e,n,r,i){var o=0,a=Jn(n,r,i);return a&&(o=er(t,e,ge.msToTimeSpan(a))),o}function er(t,e,n){var r=0;return t&&e&&n&&((t.ajaxPerf=t.ajaxPerf||{})[e]=n,r=1),r}var nr=function(){return function(){this.openDone=!1,this.setRequestHeaderDone=!1,this.sendDone=!1,this.abortDone=!1,this.stateChangeAttached=!1}}(),rr=function(){return function t(e,n,r){var i=r;this.perfMark=null,this.completed=!1,this.requestHeadersSize=null,this.requestHeaders=null,this.responseReceivingDuration=null,this.callbackDuration=null,this.ajaxTotalDuration=null,this.aborted=0,this.pageUrl=null,this.requestUrl=null,this.requestSize=0,this.method=null,this.status=null,this.requestSentTime=null,this.responseStartedTime=null,this.responseFinishedTime=null,this.callbackFinishedTime=null,this.endTime=null,this.xhrMonitoringState=new nr,this.clientFailure=0,this.traceID=e,this.spanID=n,xt(t,this,function(t){t.getAbsoluteUrl=function(){return t.requestUrl?me.getAbsoluteUrl(t.requestUrl):null},t.getPathName=function(){return t.requestUrl?fe.sanitizeUrl(i,me.getCompleteUrl(t.method,t.requestUrl)):null},t.CreateTrackItem=function(e,n,r){if(t.ajaxTotalDuration=Math.round(1e3*be.GetDuration(t.requestSentTime,t.responseFinishedTime))/1e3,t.ajaxTotalDuration<0)return null;var i,o=((i={id:"|"+t.traceID+"."+t.spanID,target:t.getAbsoluteUrl(),name:t.getPathName(),type:e,duration:t.ajaxTotalDuration,success:+t.status>=200&&+t.status<400,responseCode:+t.status,method:t.method}).properties={HttpMethod:t.method},i);if(function(t,e){var n=t.perfTiming,r=e.properties||{},i=0,o=Q.isString,a="redirect",s=a+"Start",u=a="End";if(n){i|=tr(r,a,n,s,u),i|=tr(r,"domainLookup",n,"domainLookupStart","domainLookupEnd"),i|=tr(r,"connect",n,"connectStart","connectEnd"),i|=tr(r,"request",n,"requestStart","requestEnd"),i|=tr(r,"response",n,"responseStart","responseEnd"),i|=tr(r,"networkConnect",n,"startTime","connectEnd"),i|=tr(r,"sentRequest",n,"requestStart","responseEnd");var l=n.duration;l||(l=Jn(n,"startTime","responseEnd")||0),i|=er(r,"duration",l),i|=er(r,"perfTotal",l);var c=n.serverTiming;if(c){var f={};Qn(c,function(t,e){var n=function(t){var e=t,n=/([^\w\d_$])/g;return n.test(t)&&(e=t.replace(n,"_")),e}(t.name||""+e),r=f[n]||{};Qn(Xn(t),function(e){var n=t[e];("name"!==e&&o(n)||Q.isNumber(n))&&(r[e]&&(n=r[e]+";"+n),!n&&o(n)||(r[e]=n))}),f[n]=r}),i|=er(r,"serverTiming",f)}i|=er(r,"transferSize",n.transferSize),i|=er(r,"encodedBodySize",n.encodedBodySize),i|=er(r,"decodedBodySize",n.decodedBodySize)}else t.perfMark&&(i|=er(r,"missing",t.perfAttempts));i&&(e.properties=r)}(t,o),n&&Xn(t.requestHeaders).length>0&&(o.properties=o.properties||{},o.properties.requestHeaders=t.requestHeaders),r){var a=r();if(a){var s=a.correlationContext;if(s&&(o.correlationContext=s),a.headerMap&&Xn(a.headerMap).length>0&&(o.properties=o.properties||{},o.properties.responseHeaders=a.headerMap),t.status>=400){var u=a.type;o.properties=o.properties||{},""!==u&&"text"!==u||(o.properties.responseText=a.responseText?a.statusText+" - "+a.responseText:a.statusText),"json"===u&&(o.properties.responseText=a.response?a.statusText+" - "+JSON.stringify(a.response):a.statusText)}}}return o}})}}(),ir=function(){function t(e,n){this.traceFlag=t.DEFAULT_TRACE_FLAG,this.version=t.DEFAULT_VERSION,this.traceId=e&&t.isValidTraceId(e)?e:ge.generateW3CId(),this.spanId=n&&t.isValidSpanId(n)?n:ge.generateW3CId().substr(0,16)}return t.isValidTraceId=function(t){return t.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==t},t.isValidSpanId=function(t){return t.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==t},t.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},t.DEFAULT_TRACE_FLAG="01",t.DEFAULT_VERSION="00",t}(),or="ai.ajxmn.",ar="diagLog",sr="ajaxData",ur="throwInternal",lr="fetch",cr=Q.isNullOrUndefined,fr=Q.arrForEach,pr=Q.objKeys,hr=0;function dr(t){var e="";try{cr(t)||cr(t[sr])||cr(t[sr].requestUrl)||(e+="(url: '"+t[sr].requestUrl+"')")}catch(n){}return e}function gr(t,e,n,r,i){t[ar]()[ur](et.CRITICAL,e,n,r,i)}function mr(t,e,n,r,i){t[ar]()[ur](et.WARNING,e,n,r,i)}function yr(t,e,n){return function(r){gr(t,e,n,{ajaxDiagnosticsMessage:dr(r.inst),exception:ge.dump(r.err)})}}function vr(t,e){return t&&e?t.indexOf(e):-1}var br=function(t){function e(){var n=t.call(this)||this;n.identifier=e.identifier,n.priority=120;var r,i,o,a,s="trackDependencyDataInternal",u=N(),l=!1,c=!1,f=u&&u.host&&u.host.toLowerCase(),p=e.getEmptyConfig(),h=!1,d=0,g=!1,m=0,v=!1,_=[],w={};return xt(e,n,function(t,n){function u(t,e,n){_.push(function(t,e,n){return t?Zn(t[b],e,n,!1):null}(t,e,n))}function x(t,e,n){var r=!1,i=((Q.isString(e)?e:(e||{}).url||"")||"").toLowerCase(),o=vr(i,"?"),a=vr(i,"#");return(-1===o||-1!==a&&a=0;h--){var d=p[h];if(d){if("resource"===d.entryType)d.initiatorType!==t||-1===vr(d.name,u)&&-1===vr(u,d.name)||(f=d);else if("mark"===d.entryType&&d.name===i.name){e.perfTiming=f;break}if(d.startTime=a||!1===e.async?(i&&Q.isFunction(o.clearMarks)&&o.clearMarks(i.name),e.perfAttempts=l,n()):setTimeout(c,s)}catch(g){r(g)}}()}function D(e){var n="";try{cr(e)||(n+="string"==typeof e?"(url: '"+e+"')":"(url: '"+e.url+"')")}catch(r){gr(t,nt.FailedMonitorAjaxOpen,"Failed to grab failed fetch diagnostics message",{exception:ge.dump(r)})}return n}function I(e,n,r,i,o,a){function u(e,n,i){var o=i||{};o.fetchDiagnosticsMessage=D(r),n&&(o.exception=ge.dump(n)),mr(t,e,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",o)}i&&(i.responseFinishedTime=be.Now(),i.status=n,k("fetch",i,function(){var e=i.CreateTrackItem("Fetch",h,o);e?t[s](e):u(nt.FailedMonitorAjaxDur,null,{requestSentTime:i.requestSentTime,responseFinishedTime:i.responseFinishedTime})},function(t){u(nt.FailedMonitorAjaxGetCorrelationHeader,t,null)}))}function A(e){if(e&&e.headers)try{var n=e.headers.get(ce.requestContextHeader);return ye.getCorrelationContext(n)}catch(r){mr(t,nt.FailedMonitorAjaxGetCorrelationHeader,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:D(e),exception:ge.dump(r)})}}t.initialize=function(f,d,w,D){if(!t.isInitialized()){n.initialize(f,d,w,D);var M=t._getTelCtx(),P=e.getDefaultConfig();fr(pr(P),function(t){p[t]=M.getConfig(e.identifier,t,P[t])});var R=p.distributedTracingMode;if(h=p.enableRequestHeaderTracking,m=p.maxAjaxCallsPerView,v=p.enableResponseHeaderTracking,o=R===le.AI||R===le.AI_AND_W3C,i=R===le.AI_AND_W3C||R===le.W3C,g=p.enableAjaxPerfTracking){var N=f.instrumentationKey||"unkwn";a=N.length>5?or+N.substring(N.length-5)+".":or+N+"."}if(!1===p.disableAjaxTracking&&function(t){var e=!1;if(typeof XMLHttpRequest!==y&&!cr(XMLHttpRequest)){var n=XMLHttpRequest[b];e=!(cr(n)||cr(n.open)||cr(n.send)||cr(n.abort))}var r=ge.getIEVersion();if(r&&r<9&&(e=!1),e)try{(new XMLHttpRequest)[sr]={};var i=XMLHttpRequest[b].open;XMLHttpRequest[b].open=i}catch(o){e=!1,gr(t,nt.FailedMonitorAjaxOpen,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:ge.dump(o)})}return e}(t)&&!c&&(u(XMLHttpRequest,"open",{req:function(e,n,i,o){var a=e.inst,u=a[sr];x(a,i)||!C(a,!0)||u&&u.xhrMonitoringState.openDone||function(e,n,i,o){var a=r&&r.telemetryTrace&&r.telemetryTrace.traceID||ge.generateW3CId(),u=ge.generateW3CId().substr(0,16),l=new rr(a,u,t[ar]());l.method=n,l.requestUrl=i,l.xhrMonitoringState.openDone=!0,l.requestHeaders={},l.async=o,e[sr]=l,function(e){e[sr].xhrMonitoringState.stateChangeAttached=tt.Attach(e,"readystatechange",function(){try{e&&4===e.readyState&&C(e)&&function(e){var n=e[sr];function r(n,r){var i=r||{};i.ajaxDiagnosticsMessage=dr(e),n&&(i.exception=ge.dump(n)),mr(t,nt.FailedMonitorAjaxDur,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",i)}n.responseFinishedTime=be.Now(),n.status=e.status,k("xmlhttprequest",n,function(){try{var i=n.CreateTrackItem("Ajax",h,function(){var t={statusText:e.statusText,headerMap:null,correlationContext:E(e),type:e.responseType,responseText:S(e),response:e.response};if(v){var n=e.getAllResponseHeaders();if(n){var r=Q.strTrim(n).split(/[\r\n]+/),i={};fr(r,function(t){var e=t.split(": "),n=e.shift(),r=e.join(": ");i[n]=r}),t.headerMap=i}}return t});i?t[s](i):r(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{e[sr]=null}catch(o){}}},function(t){r(t,null)})}(e)}catch(r){var n=ge.dump(r);n&&-1!==vr(n.toLowerCase(),"c00c023f")||gr(t,nt.FailedMonitorAjaxRSC,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:dr(e),exception:n})}})}(e)}(a,n,i,o)},hkErr:yr(t,nt.FailedMonitorAjaxOpen,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.")}),u(XMLHttpRequest,"send",{req:function(e,n){var r=e.inst,i=r[sr];C(r)&&!i.xhrMonitoringState.sendDone&&(O("xhr",i),i.requestSentTime=be.Now(),r=t.includeCorrelationHeaders(i,void 0,void 0,r),i.xhrMonitoringState.sendDone=!0)},hkErr:yr(t,nt.FailedMonitorAjaxSend,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.")}),u(XMLHttpRequest,"abort",{req:function(t){var e=t.inst,n=e[sr];C(e)&&!n.xhrMonitoringState.abortDone&&(n.aborted=1,n.xhrMonitoringState.abortDone=!0)},hkErr:yr(t,nt.FailedMonitorAjaxAbort,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.")}),h&&u(XMLHttpRequest,"setRequestHeader",{req:function(t,e,n){var r=t.inst;C(r)&&(r[sr].requestHeaders[e]=n)},hkErr:yr(t,nt.FailedMonitorAjaxSetRequestHeader,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.")}),c=!0),function(){var e,n=!(e=T())||cr(e.Request)||cr(e.Request[b])||cr(e[lr])?null:e[lr];if(n){var i=T(),o=n.polyfill;!1===p.disableFetchTracking?(_.push(Zn(i,lr,{req:function(e,n,i){var a;if(l&&!x(null,n,i)&&(!o||!c)){var s=e.ctx();a=function(e,n){var i=r&&r.telemetryTrace&&r.telemetryTrace.traceID||ge.generateW3CId(),o=ge.generateW3CId().substr(0,16),a=new rr(i,o,t[ar]());a.requestSentTime=be.Now(),a.requestUrl=e instanceof Request?e?e.url:"":e;var s="GET";n&&n.method?s=n.method:e&&e instanceof Request&&(s=e.method),a.method=s;var u={};return h&&new Headers((n?n.headers:0)||e instanceof Request&&e.headers||{}).forEach(function(t,e){u[e]=t}),a.requestHeaders=u,O("fetch",a),a}(n,i);var u=t.includeCorrelationHeaders(a,n,i);u!==i&&e.set(1,u),s.data=a}},rsp:function(t,e){var n=t.ctx().data;n&&(t.rslt=t.rslt.then(function(t){return I(0,(t||{}).status,t,n,function(){var e={statusText:t.statusText,headerMap:null,correlationContext:A(t)};if(v){var n={};t.headers.forEach(function(t,e){n[e]=t}),e.headerMap=n}return e}),t}).catch(function(t){throw I(0,0,e,n,null),t}))},hkErr:yr(t,nt.FailedMonitorAjaxOpen,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.")})),l=!0):o&&_.push(Zn(i,lr,{req:function(t,e,n){x(null,e,n)}})),o&&(i[lr].polyfill=o)}}(),w.length>0&&w){for(var j=void 0,F=0;!j&&F0)throw new Error("Extensions not allowed in legacy mode");return Pt(n.core,function(){return"AISKU.loadAppInsights"},function(){var r=[],i=new Mn;r.push(i),r.push(n.properties),r.push(n.dependencies),r.push(n.appInsights),n.core.initialize(n.config,r),n.context=n.properties.context,function(e){if(e){var r="";for(var i in Q.isNullOrUndefined(n._snippetVersion)||(r+=n._snippetVersion),t&&(r+=".lg"),n.context&&n.context.internal&&(n.context.internal.snippetVer=r||"-"),n)Q.isString(i)&&!Q.isFunction(n[i])&&"_"!==i.substring(0,1)&&(e[i]=n[i])}}(n.snippet),n.emptyQueue(),n.pollInternalLogs(),n.addHousekeepingBeforeUnload(e)}),n},t.prototype.updateSnippetDefinitions=function(t){for(var e in this)Q.isString(e)&&(t[e]=this[e])},t.prototype.emptyQueue=function(){try{if(ge.isArray(this.snippet.queue)){for(var t=this.snippet.queue.length,e=0;e0?this.config.diagnosticLogInterval:1e4},t}(),wr=function(){function t(){this.appInsights=new _r({config:{instrumentationKey:o.appInsights.instrumentationKey,enableAutoRouteTracking:!0}}),this.appInsights.loadAppInsights()}return t.prototype.logPageView=function(t,e){this.appInsights.trackPageView({name:t,uri:e})},t.prototype.logEvent=function(t,e){this.appInsights.trackEvent({name:t},e)},t.prototype.logMetric=function(t,e,n){this.appInsights.trackMetric({name:t,average:e},n)},t.prototype.logException=function(t,e){console.error("Exception encountered"),console.error(t),this.appInsights.trackException({exception:t,severityLevel:e})},t.prototype.logTrace=function(t,e){this.appInsights.trackTrace({message:t},e)},t}(),xr=function(){return function(t){this.myMonitoringService=t,this.title="app"}}(),Cr=n("9AJC"),Sr=n("pMnS"),Er=n("ZYCi"),Or=n("Ip0R"),kr=n("mrSG"),Tr={width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,transition:.3,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px",scrollTo:0,autoScrollToBottom:!1,maxHeightBeforeEnable:void 0},Dr=function(){function t(t,e){var n=this;this._minBarHeight=30,this._releaseScroll=!1,this.trackPanelHeightChanged=function(){n._previousHeight=n._me.scrollHeight,n._changesTracker=window.setInterval(function(){n._previousHeight!==n._me.scrollHeight&&(n._previousHeight=n._me.scrollHeight,n.init(),n._options.autoScrollToBottom&&(n._renderer.setStyle(n._bar,"top",n._me.offsetHeight-n._bar.offsetHeight+"px"),n.scrollContent(0,!0)))},1e3)},this._renderer=t.createRenderer(null,null),this._me=e.nativeElement,this._options=kr.__assign({},Tr),this.showBar=this.showBar.bind(this),this.hideBar=this.hideBar.bind(this),this.onWheel=this.onWheel.bind(this),this.barMouseMove=this.barMouseMove.bind(this),this.barMouseUp=this.barMouseUp.bind(this),this.barMouseDown=this.barMouseDown.bind(this),this.railMouseDown=this.railMouseDown.bind(this)}return t.prototype.ngOnInit=function(){this.init()},t.prototype.ngOnDestroy=function(){this._changesTracker&&clearInterval(this._changesTracker),window.removeEventListener?(window.removeEventListener("DOMMouseScroll",this.onWheel),window.removeEventListener("mousewheel",this.onWheel)):document.removeEventListener("mousewheel",this.onWheel),document.removeEventListener("mousemove",this.barMouseMove,!1),document.removeEventListener("mouseup",this.barMouseUp,!1)},t.prototype.onResize=function(){this.init()},Object.defineProperty(t.prototype,"width",{set:function(t){this._options.width=t||Tr.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{set:function(t){this._options.height=t||Tr.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{set:function(t){this._options.size=t||Tr.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{set:function(t){this._options.color=t||Tr.color},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"position",{set:function(t){this._options.position=t||Tr.position},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"distance",{set:function(t){this._options.distance=t||Tr.distance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{set:function(t){this._options.start=t||Tr.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{set:function(t){this._options.opacity=t||Tr.opacity},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transition",{set:function(t){this._options.transition=t||Tr.transition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alwaysVisible",{set:function(t){this._options.alwaysVisible=t||Tr.alwaysVisible},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableFadeOut",{set:function(t){this._options.disableFadeOut=t||Tr.disableFadeOut},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"railVisible",{set:function(t){this._options.railVisible=t||Tr.railVisible},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"railColor",{set:function(t){this._options.railColor=t||Tr.railColor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"railOpacity",{set:function(t){this._options.railOpacity=t||Tr.railOpacity},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"railClass",{set:function(t){this._options.railClass=t||Tr.railClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"barClass",{set:function(t){this._options.barClass=t||Tr.barClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapperClass",{set:function(t){this._options.wrapperClass=t||Tr.wrapperClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowPageScroll",{set:function(t){this._options.allowPageScroll=t||Tr.allowPageScroll},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wheelStep",{set:function(t){this._options.wheelStep=t||Tr.wheelStep},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchScrollStep",{set:function(t){this._options.touchScrollStep=t||Tr.touchScrollStep},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderRadius",{set:function(t){this._options.borderRadius=t||Tr.borderRadius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"railBorderRadius",{set:function(t){this._options.railBorderRadius=t||Tr.railBorderRadius},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollTo",{set:function(t){this._options.scrollTo=t||Tr.scrollTo},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoScrollToBottom",{set:function(t){this._options.autoScrollToBottom=t||Tr.autoScrollToBottom},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxHeightBeforeEnable",{set:function(t){this._options.maxHeightBeforeEnable=t||Tr.maxHeightBeforeEnable},enumerable:!0,configurable:!0}),t.prototype.init=function(){this._bar&&this._rail?this.refresh():this.setup()},t.prototype.hasParentClass=function(t,e){return!!t&&(!!t.classList.contains(this._options.wrapperClass)||this.hasParentClass(t.parentElement,e))},t.prototype.onWheel=function(t){if(this._isOverPanel){var e=0;t.deltaY&&(e=-t.deltaY/120),t.detail&&(e=t.detail/3),this.hasParentClass(t.target||t.currentTarget||t.relatedTarget,this._options.wrapperClass)&&this.scrollContent(e,!0)}},t.prototype.attachWheel=function(t){window.addEventListener?(t.addEventListener("DOMMouseScroll",this.onWheel,!1),t.addEventListener("mousewheel",this.onWheel,!1)):document.addEventListener("mousewheel",this.onWheel,!1)},t.prototype.showBar=function(){this.getBarHeight(),clearTimeout(this._queueHide||0),this._releaseScroll=this._percentScroll===~~this._percentScroll&&this._options.allowPageScroll,this._lastScroll=this._percentScroll,this._barHeight>=this._me.offsetHeight?this._releaseScroll=!0:(this._renderer.setStyle(this._bar,"opacity",this._options.opacity.toString()),this._renderer.setStyle(this._rail,"opacity",this._options.railOpacity.toString()))},t.prototype.hideBar=function(){var t=this;this._options.alwaysVisible||this._options.disableFadeOut&&this._isOverPanel||this._isOverBar||this._isDragg||(this._queueHide=window.setTimeout(function(){t._renderer.setStyle(t._bar,"opacity","0"),t._renderer.setStyle(t._rail,"opacity","0")},1e3))},t.prototype.scrollContent=function(t,e,n){void 0===n&&(n=!1),this._releaseScroll=!1;var r=t,i=this._me.offsetHeight-this._bar.offsetHeight;if(e&&(r=parseInt(this._bar.style.top,10)+t*this._options.wheelStep/100*this._bar.offsetHeight,r=Math.min(Math.max(r,0),i),r=t>0?Math.ceil(r):Math.floor(r),this._renderer.setStyle(this._bar,"top",r+"px")),this._percentScroll=parseInt(this._bar.style.top,10)/(this._me.offsetHeight-this._bar.offsetHeight),r=this._percentScroll*(this._me.scrollHeight-this._me.offsetHeight),n){var o=(r=t)/this._me.scrollHeight*this._me.offsetHeight;o=Math.min(Math.max(o,0),i),this._renderer.setStyle(this._bar,"top",o+"px")}this._me.scrollTop=r,this.showBar(),this.hideBar()},t.prototype.getBarHeight=function(){this._barHeight=Math.max(this._me.offsetHeight/(0===this._me.scrollHeight?1:this._me.scrollHeight)*this._me.offsetHeight,this._minBarHeight),this._renderer.setStyle(this._bar,"height",this._barHeight+"px"),this._renderer.setStyle(this._bar,"display",this._barHeight===this._me.offsetHeight?"none":"block")},t.prototype.refresh=function(){if(this.getBarHeight(),"height"in this._options&&"auto"===this._options.height){this._renderer.setStyle(this._me.parentElement,"height","auto"),this._renderer.setStyle(this._me,"height","auto");var t=this._me.parentElement.clientHeight;this._renderer.setStyle(this._me.parentElement,"height",t+"px"),this._renderer.setStyle(this._me,"height",t+"px")}else if("height"in this._options){var e=this._options.height;this._renderer.setStyle(this._me.parentElement,"height",e),this._renderer.setStyle(this._me,"height",e)}},t.prototype.railMouseDown=function(t){var e=this._rail.getBoundingClientRect(),n=e.top+window.scrollY,r=t.pageY-n-this._barHeight/2,i=this._me.scrollHeight*(r/e.height);this._renderer.setStyle(this._bar,"top",(r>=0?r:0)+"px"),this.scrollContent(i,!1,!0)},t.prototype.barMouseMove=function(t){var e=this._startBarTop+t.pageY-this._barMouseDownPageY;this._renderer.setStyle(this._bar,"top",(e>=0?e:0)+"px");var n=this._bar.getClientRects()[0];n&&this.scrollContent(0,n.top>0)},t.prototype.barMouseUp=function(){this._isDragg=!1;var t=document.body;this._renderer.setStyle(t,"-webkit-user-select","initial"),this._renderer.setStyle(t,"-moz-user-select","initial"),this._renderer.setStyle(t,"-ms-user-select","initial"),this._renderer.setStyle(t,"user-select","initial"),this.hideBar(),document.removeEventListener("mousemove",this.barMouseMove,!1),document.removeEventListener("mouseup",this.barMouseUp,!1)},t.prototype.barMouseDown=function(t){this._isDragg=!0;var e=document.body;return this._renderer.setStyle(e,"-webkit-user-select","none"),this._renderer.setStyle(e,"-moz-user-select","none"),this._renderer.setStyle(e,"-ms-user-select","none"),this._renderer.setStyle(e,"user-select","none"),this._barMouseDownPageY=t.pageY,this._startBarTop=parseFloat(this._bar.style.top),document.addEventListener("mousemove",this.barMouseMove,!1),document.addEventListener("mouseup",this.barMouseUp,!1),!1},t.prototype.setup=function(){var t=this;if(this.trackPanelHeightChanged(),!(this._options.maxHeightBeforeEnable&&this._me.scrollHeight<=this._options.maxHeightBeforeEnable)){var e=document.createElement("div");this._renderer.addClass(e,this._options.wrapperClass),this._renderer.setStyle(e,"position","relative"),this._renderer.setStyle(e,"overflow","hidden"),this._renderer.setStyle(e,"width",this._options.width),this._renderer.setStyle(e,"height",this._options.height),this._renderer.setStyle(this._me,"overflow","hidden"),this._renderer.setStyle(this._me,"width",this._options.width),this._renderer.setStyle(this._me,"height",this._options.height),this._rail=document.createElement("div"),this._renderer.addClass(this._rail,this._options.railClass),this._renderer.setStyle(this._rail,"width",this._options.size),this._renderer.setStyle(this._rail,"height","100%"),this._renderer.setStyle(this._rail,"position","absolute"),this._renderer.setStyle(this._rail,"top","0"),this._renderer.setStyle(this._rail,"display",this._options.railVisible?"block":"none"),this._renderer.setStyle(this._rail,"border-radius",this._options.railBorderRadius),this._renderer.setStyle(this._rail,"background",this._options.railColor),this._renderer.setStyle(this._rail,"opacity",this._options.railOpacity.toString()),this._renderer.setStyle(this._rail,"transition","opacity "+this._options.transition+"s"),this._renderer.setStyle(this._rail,"z-index","90"),this._bar=document.createElement("div"),this._renderer.addClass(this._bar,this._options.barClass),this._renderer.setStyle(this._bar,"background",this._options.color),this._renderer.setStyle(this._bar,"width",this._options.size),this._renderer.setStyle(this._bar,"position","absolute"),this._renderer.setStyle(this._bar,"top","0"),this._renderer.setStyle(this._bar,"opacity",this._options.opacity.toString()),this._renderer.setStyle(this._bar,"transition","opacity "+this._options.transition+"s"),this._renderer.setStyle(this._bar,"display",this._options.alwaysVisible?"block":"none"),this._renderer.setStyle(this._bar,"border-radius",this._options.borderRadius),this._renderer.setStyle(this._bar,"webkit-border-radius",this._options.borderRadius),this._renderer.setStyle(this._bar,"moz-border-radius",this._options.borderRadius),this._renderer.setStyle(this._bar,"z-index","99"),"right"===this._options.position?(this._renderer.setStyle(this._rail,"right",this._options.distance),this._renderer.setStyle(this._bar,"right",this._options.distance)):(this._renderer.setStyle(this._rail,"left",this._options.distance),this._renderer.setStyle(this._bar,"left",this._options.distance)),this._me.parentElement.insertBefore(e,this._me),e.appendChild(this._me),this._options.scrollTo>0&&this.scrollContent(this._options.scrollTo,!1,!0),this._me.parentElement.appendChild(this._bar),this._me.parentElement.appendChild(this._rail),this._bar.addEventListener("mousedown",this.barMouseDown,!1),this._rail.addEventListener("mouseenter",this.showBar,!1),this._rail.addEventListener("mouseleave",this.hideBar,!1),this._rail.addEventListener("mousedown",this.railMouseDown,!1),this._bar.addEventListener("mouseenter",function(){return t._isOverBar=!0},!1),this._bar.addEventListener("mouseleave",function(){return t._isOverBar=!1},!1),this._me.addEventListener("mouseenter",function(){t._isOverPanel=!0,t.showBar(),t.hideBar()},!1),this._me.addEventListener("mouseleave",function(){t._isOverPanel=!1,t.hideBar()},!1),this._me.addEventListener("touchstart",function(e){e.touches.length&&(t._touchDif=e.touches[0].pageY)},!1),this._me.addEventListener("touchmove",function(e){t._releaseScroll||e.preventDefault(),e.touches.length&&(t.scrollContent((t._touchDif-e.touches[0].pageY)/t._options.touchScrollStep,!0),t._touchDif=e.touches[0].pageY)},!1),this.getBarHeight(),this.hideBar(),"bottom"===this._options.start&&(this._renderer.setStyle(this._bar,"top",this._me.offsetHeight-this._bar.offsetHeight+"px"),this.scrollContent(0,!0)),this.attachWheel(window)}},t}(),Ir=function(){return function(t,e,n){var r=this;this.router=t,this.route=e,this.titleService=n,this.router.events.filter(function(t){return t instanceof Er.e}).subscribe(function(t){var e=r.route.root,n="";do{var i=e.children;e=null,i.forEach(function(t){"primary"===t.outlet&&(n=t.snapshot.data.breadcrumb,e=t)})}while(e);r.titleService.setTitle("Lanomina.net | "+n)})}}(),Ar=n("ZYjt"),Mr=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Pr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,0,"span",[],null,null,null,null,null))],null,null)}var Rr=function(){return function(t,e,n){var r=this;this.router=t,this.route=e,this.titleService=n,this.router.events.filter(function(t){return t instanceof Er.e}).subscribe(function(t){r.breadcrumbs=[];var e=r.route.root,n="";do{var i=e.children;e=null,i.forEach(function(t){if("primary"===t.outlet){if(n+="/"+t.snapshot.url.map(function(t){return t.path}).join("/"),void 0!==t.snapshot.data.breadcrumb){var i=!0;void 0!==t.snapshot.data.status&&(i=t.snapshot.data.status),r.breadcrumbs.push({label:t.snapshot.data.breadcrumb,status:i,url:n})}e=t}})}while(e)})}}(),Nr=i["\u0275crt"]({encapsulation:0,styles:[[".not-active[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.breadcrumb-item[_ngcontent-%COMP%]{float:left}"]],data:{}});function jr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,1,0,e.parent.context.$implicit.label)})}function Fr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,jr)),i["\u0275did"](2,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,e.context.last)},null)}function Lr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,4,"li",[["class","breadcrumb-item"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](2,278528,null,0,Or.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),i["\u0275did"](3,671744,null,0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{routerLink:[0,"routerLink"]},null),(t()(),i["\u0275ted"](4,null,["",""]))],function(t,e){t(e,2,0,!1===e.context.$implicit.status?"not-active":""),t(e,3,0,e.context.$implicit.url)},function(t,e){t(e,1,0,i["\u0275nov"](e,3).target,i["\u0275nov"](e,3).href),t(e,4,0,e.context.$implicit.label)})}function Vr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","page-header"]],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,2,"div",[["class","page-header-title"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Fr)),i["\u0275did"](3,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](4,0,null,null,7,"div",[["class","page-header-breadcrumb"]],null,null,null,null,null)),(t()(),i["\u0275eld"](5,0,null,null,6,"ul",[["class","breadcrumb-title"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,3,"li",[["class","breadcrumb-item"]],null,null,null,null,null)),(t()(),i["\u0275eld"](7,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,8).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](8,671744,null,0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{routerLink:[0,"routerLink"]},null),(t()(),i["\u0275eld"](9,0,null,null,0,"i",[["class","icofont icofont-home"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Lr)),i["\u0275did"](11,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,3,0,n.breadcrumbs),t(e,8,0,"/"),t(e,11,0,n.breadcrumbs)},function(t,e){t(e,7,0,i["\u0275nov"](e,8).target,i["\u0275nov"](e,8).href)})}var Br=n("386E"),zr=n("cyVl"),Ur=n("CZqF"),Hr=n("qfBg"),qr=n("t/Na"),Gr=n("Aso2"),Wr=(n("O5R2"),n("ADQ8")),Kr=function(){function t(t,e,n,r){this.menuItems=t,this._userService=e,this._router=n,this._profileService=r,this.deviceType="desktop",this.verticalNavType="expanded",this.verticalEffect="shrink",this.isCollapsedMobile="no-block",this.isCollapsedSideBar="no-block",this.toggleOn=!0;var i=window.screen.height-150;if(this.innerHeight=i+"px",this.windowWidth=window.innerWidth,this.setMenuAttributs(this.windowWidth),this.htmlButton='
',this.htmlButton+='",this.htmlButton+="
",this.identity=this._userService.getIdentity(),null==this.identity)if(-1!==this._router.url.indexOf("user/approve/")){var o=this._router.url.split("user/approve/")[1];window.location.href="/authentication/loginapprove/"+o}else this._router.navigate(["/login"]);this.menuData=[]}return t.prototype.ngOnInit=function(){this.getMenu()},t.prototype.getMenu=function(){var t=this,e=this._userService.getIdentity();this._profileService.menu({profile:e.profile_id}).subscribe(function(e){if(t.status=e.status,"success"==t.status){t.menu=e.data.module;for(var n=0;n=768&&this.windowWidth<=1024?e=!1:"mobile"===this.deviceType&&this.windowWidth<768&&(e=!1),e&&this.setMenuAttributs(this.windowWidth)},t.prototype.setMenuAttributs=function(t){t>=768&&t<=1024?(this.deviceType="tablet",this.verticalNavType="collapsed",this.verticalEffect="push"):t<768?(this.deviceType="mobile",this.verticalNavType="offcanvas",this.verticalEffect="overlay"):(this.deviceType="desktop",this.verticalNavType="expanded",this.verticalEffect="shrink")},t.prototype.toggleOpened=function(){this.windowWidth<768?(this.toggleOn="offcanvas"===this.verticalNavType||this.toggleOn,this.verticalNavType="expanded"===this.verticalNavType?"offcanvas":"expanded"):this.verticalNavType="expanded"===this.verticalNavType?"collapsed":"expanded"},t.prototype.toggleOpenedSidebar=function(){this.isCollapsedSideBar="yes-block"===this.isCollapsedSideBar?"no-block":"yes-block"},t.prototype.onMobileMenu=function(){this.isCollapsedMobile="yes-block"===this.isCollapsedMobile?"no-block":"yes-block"},t}(),$r=i["\u0275crt"]({encapsulation:2,styles:[["aside.pcoded-slider.ng-sidebar{top:56px}.scroll-window,.slimscroll-wrapper{width:100%!important}.userlist-box.show{display:-webkit-box}.userlist-box.hide{display:none}"]],data:{animation:[{type:7,name:"mobileMenuTop",definitions:[{type:0,name:"no-block, void",styles:{type:6,styles:{overflow:"hidden",height:"0px"},offset:null},options:void 0},{type:0,name:"yes-block",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"no-block <=> yes-block",animation:[{type:4,styles:null,timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function Yr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,4,"a",[["href","javascript:"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](2,671744,null,0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](3,1),(t()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","ti-reload"]],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,[" Cambio de contrase\xf1a "]))],function(t,e){var n=t(e,3,0,"/user/changePassword");t(e,2,0,n)},function(t,e){t(e,1,0,i["\u0275nov"](e,2).target,i["\u0275nov"](e,2).href)})}function Zr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,i["\u0275inlineInterpolate"](1,"pcoded-badge label label-",e.context.$implicit.type,"")),t(e,1,0,e.context.$implicit.value)})}function Xr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,12,"li",[["appAccordionLink",""]],null,null,null,null,null)),i["\u0275did"](1,1720320,null,2,Er.q,[Er.o,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,1,{links:1}),i["\u0275qud"](603979776,2,{linksWithHrefs:1}),i["\u0275pad"](4,1),(t()(),i["\u0275eld"](5,0,null,null,7,"a",[["appAccordionToggle",""]],[[8,"href",4],[8,"target",0]],null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,1,"span",[["class","pcoded-micon"]],null,null,null,null,null)),(t()(),i["\u0275eld"](7,0,null,null,0,"i",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275eld"](8,0,null,null,1,"span",[["class","pcoded-mtext"]],null,null,null,null,null)),(t()(),i["\u0275ted"](9,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,Zr)),i["\u0275did"](11,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](12,0,null,null,0,"span",[["class","pcoded-mcaret"]],null,null,null,null,null))],function(t,e){var n=t(e,4,0,"active");t(e,1,0,n),t(e,11,0,e.parent.context.$implicit.badge)},function(t,e){t(e,5,0,i["\u0275inlineInterpolate"](1,"",e.parent.context.$implicit.external,""),i["\u0275inlineInterpolate"](1,"",e.parent.context.$implicit.target?"_blank":"_self","")),t(e,7,0,i["\u0275inlineInterpolate"](1,"",e.parent.context.$implicit.icon,"")),t(e,9,0,e.parent.context.$implicit.name)})}function Qr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,i["\u0275inlineInterpolate"](1,"pcoded-badge label label-",e.context.$implicit.type,"")),t(e,1,0,e.context.$implicit.value)})}function Jr(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,9,"a",[["appAccordionToggle",""]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](1,671744,[[4,4]],0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{target:[0,"target"],routerLink:[1,"routerLink"]},null),i["\u0275pad"](2,3),(t()(),i["\u0275eld"](3,0,null,null,1,"span",[["class","pcoded-micon"]],null,null,null,null,null)),(t()(),i["\u0275eld"](4,0,null,null,0,"i",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275eld"](5,0,null,null,1,"span",[["class","pcoded-mtext"]],null,null,null,null,null)),(t()(),i["\u0275ted"](6,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,Qr)),i["\u0275did"](8,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](9,0,null,null,0,"span",[["class","pcoded-mcaret"]],null,null,null,null,null))],function(t,e){var n=i["\u0275inlineInterpolate"](1,"",e.parent.parent.context.$implicit.target?"_blank":"_self",""),r=t(e,2,0,"/",e.parent.parent.context.$implicit.main_state,e.parent.parent.context.$implicit.state);t(e,1,0,n,r),t(e,8,0,e.parent.parent.context.$implicit.badge)},function(t,e){t(e,0,0,i["\u0275nov"](e,1).target,i["\u0275nov"](e,1).href),t(e,4,0,i["\u0275inlineInterpolate"](1,"",e.parent.parent.context.$implicit.icon,"")),t(e,6,0,e.parent.parent.context.$implicit.name)})}function ti(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,i["\u0275inlineInterpolate"](1,"pcoded-badge label label-",e.context.$implicit.type,"")),t(e,1,0,e.context.$implicit.value)})}function ei(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,9,"a",[["appAccordionToggle",""]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,1).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](1,671744,[[4,4]],0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{target:[0,"target"],routerLink:[1,"routerLink"]},null),i["\u0275pad"](2,2),(t()(),i["\u0275eld"](3,0,null,null,1,"span",[["class","pcoded-micon"]],null,null,null,null,null)),(t()(),i["\u0275eld"](4,0,null,null,0,"i",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275eld"](5,0,null,null,1,"span",[["class","pcoded-mtext"]],null,null,null,null,null)),(t()(),i["\u0275ted"](6,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,ti)),i["\u0275did"](8,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](9,0,null,null,0,"span",[["class","pcoded-mcaret"]],null,null,null,null,null))],function(t,e){var n=i["\u0275inlineInterpolate"](1,"",e.parent.parent.context.$implicit.target?"_blank":"_self",""),r=t(e,2,0,"/",e.parent.parent.context.$implicit.state);t(e,1,0,n,r),t(e,8,0,e.parent.parent.context.$implicit.badge)},function(t,e){t(e,0,0,i["\u0275nov"](e,1).target,i["\u0275nov"](e,1).href),t(e,4,0,i["\u0275inlineInterpolate"](1,"",e.parent.parent.context.$implicit.icon,"")),t(e,6,0,e.parent.parent.context.$implicit.name)})}function ni(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,7,"li",[["appAccordionLink",""]],null,null,null,null,null)),i["\u0275did"](1,1720320,null,2,Er.q,[Er.o,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,3,{links:1}),i["\u0275qud"](603979776,4,{linksWithHrefs:1}),i["\u0275pad"](4,1),(t()(),i["\u0275and"](16777216,null,null,1,null,Jr)),i["\u0275did"](6,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),i["\u0275and"](0,[["mainContent",2]],null,0,null,ei))],function(t,e){var n=t(e,4,0,"active");t(e,1,0,n),t(e,6,0,e.parent.context.$implicit.main_state,i["\u0275nov"](e,7))},null)}function ri(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,i["\u0275inlineInterpolate"](1,"pcoded-badge label label-",e.context.$implicit.type,"")),t(e,1,0,e.context.$implicit.value)})}function ii(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,i["\u0275inlineInterpolate"](1,"pcoded-badge label label-",e.context.$implicit.type,"")),t(e,1,0,e.context.$implicit.value)})}function oi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,14,"li",[],null,null,null,null,null)),i["\u0275did"](1,1720320,null,2,Er.q,[Er.o,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,9,{links:1}),i["\u0275qud"](603979776,10,{linksWithHrefs:1}),i["\u0275pad"](4,1),(t()(),i["\u0275eld"](5,0,null,null,9,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,6).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](6,671744,[[10,4],[6,4]],0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{target:[0,"target"],routerLink:[1,"routerLink"]},null),i["\u0275pad"](7,3),(t()(),i["\u0275eld"](8,0,null,null,1,"span",[["class","pcoded-micon"]],null,null,null,null,null)),(t()(),i["\u0275eld"](9,0,null,null,0,"i",[["class","ti-angle-right"]],null,null,null,null,null)),(t()(),i["\u0275eld"](10,0,null,null,1,"span",[["class","pcoded-mtext"]],null,null,null,null,null)),(t()(),i["\u0275ted"](11,null,[""," "])),(t()(),i["\u0275and"](16777216,null,null,1,null,ii)),i["\u0275did"](13,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](14,0,null,null,0,"span",[["class","pcoded-mcaret"]],null,null,null,null,null))],function(t,e){var n=t(e,4,0,"active");t(e,1,0,n);var r=i["\u0275inlineInterpolate"](1,"",e.parent.context.$implicit.target?"_blank":"_self",""),o=t(e,7,0,"/",e.parent.parent.parent.context.$implicit.state,e.parent.context.$implicit.state);t(e,6,0,r,o),t(e,13,0,e.parent.context.$implicit.badge)},function(t,e){t(e,5,0,i["\u0275nov"](e,6).target,i["\u0275nov"](e,6).href),t(e,11,0,e.parent.context.$implicit.name)})}function ai(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,i["\u0275inlineInterpolate"](1,"pcoded-badge label label-",e.context.$implicit.type,"")),t(e,1,0,e.context.$implicit.value)})}function si(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"span",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275ted"](1,null,["",""]))],null,function(t,e){t(e,0,0,i["\u0275inlineInterpolate"](1,"pcoded-badge label label-",e.context.$implicit.type,"")),t(e,1,0,e.context.$implicit.value)})}function ui(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,14,"li",[],null,null,null,null,null)),i["\u0275did"](1,1720320,null,2,Er.q,[Er.o,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,13,{links:1}),i["\u0275qud"](603979776,14,{linksWithHrefs:1}),i["\u0275pad"](4,1),(t()(),i["\u0275eld"](5,0,null,null,9,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,6).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](6,671744,[[14,4],[12,4],[6,4]],0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{target:[0,"target"],routerLink:[1,"routerLink"]},null),i["\u0275pad"](7,4),(t()(),i["\u0275eld"](8,0,null,null,1,"span",[["class","pcoded-micon"]],null,null,null,null,null)),(t()(),i["\u0275eld"](9,0,null,null,0,"i",[["class","ti-angle-right"]],null,null,null,null,null)),(t()(),i["\u0275eld"](10,0,null,null,1,"span",[["class","pcoded-mtext"]],null,null,null,null,null)),(t()(),i["\u0275ted"](11,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,si)),i["\u0275did"](13,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](14,0,null,null,0,"span",[["class","pcoded-mcaret"]],null,null,null,null,null))],function(t,e){var n=t(e,4,0,"active");t(e,1,0,n);var r=i["\u0275inlineInterpolate"](1,"",e.context.$implicit.target?"_blank":"_self",""),o=t(e,7,0,"/",e.parent.parent.parent.parent.context.$implicit.state,e.parent.parent.context.$implicit.state,e.context.$implicit.state);t(e,6,0,r,o),t(e,13,0,e.context.$implicit.badge)},function(t,e){t(e,5,0,i["\u0275nov"](e,6).target,i["\u0275nov"](e,6).href),t(e,11,0,e.context.$implicit.name)})}function li(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,15,"li",[["appAccordionLink",""],["class","pcoded-hasmenu"],["dropdown-icon","style3"],["subitem-icon","style6"]],null,null,null,null,null)),i["\u0275did"](1,1720320,null,2,Er.q,[Er.o,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,11,{links:1}),i["\u0275qud"](603979776,12,{linksWithHrefs:1}),i["\u0275pad"](4,1),(t()(),i["\u0275eld"](5,0,null,null,7,"a",[["appAccordionToggle",""],["href","javascript:;"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,1,"span",[["class","pcoded-micon"]],null,null,null,null,null)),(t()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","ti-direction-alt"]],null,null,null,null,null)),(t()(),i["\u0275eld"](8,0,null,null,1,"span",[["class","pcoded-mtext"]],null,null,null,null,null)),(t()(),i["\u0275ted"](9,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,ai)),i["\u0275did"](11,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](12,0,null,null,0,"span",[["class","pcoded-mcaret"]],null,null,null,null,null)),(t()(),i["\u0275eld"](13,0,null,null,2,"ul",[["class","pcoded-submenu"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,ui)),i["\u0275did"](15,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=t(e,4,0,"active");t(e,1,0,n),t(e,11,0,e.parent.context.$implicit.badge),t(e,15,0,e.parent.context.$implicit.children)},function(t,e){t(e,9,0,e.parent.context.$implicit.name)})}function ci(t){return i["\u0275vid"](0,[(t()(),i["\u0275and"](16777216,null,null,1,null,oi)),i["\u0275did"](1,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,li)),i["\u0275did"](3,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](0,null,null,0))],function(t,e){t(e,1,0,"sub"!==e.context.$implicit.type),t(e,3,0,"sub"===e.context.$implicit.type)},null)}function fi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,19,"li",[["appAccordionLink",""],["class","pcoded-hasmenu"],["dropdown-icon","style3"],["subitem-icon","style6"]],null,null,null,null,null)),i["\u0275did"](1,1720320,null,2,Er.q,[Er.o,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,5,{links:1}),i["\u0275qud"](603979776,6,{linksWithHrefs:1}),i["\u0275pad"](4,1),(t()(),i["\u0275eld"](5,0,null,null,11,"a",[["appAccordionToggle",""],["href","javascript:;"]],null,null,null,null,null)),i["\u0275did"](6,1720320,null,2,Er.q,[Er.o,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,7,{links:1}),i["\u0275qud"](603979776,8,{linksWithHrefs:1}),i["\u0275pad"](9,1),(t()(),i["\u0275eld"](10,0,null,null,1,"span",[["class","pcoded-micon"]],null,null,null,null,null)),(t()(),i["\u0275eld"](11,0,null,null,0,"i",[],[[8,"className",0]],null,null,null,null)),(t()(),i["\u0275eld"](12,0,null,null,1,"span",[["class","pcoded-mtext"]],null,null,null,null,null)),(t()(),i["\u0275ted"](13,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,ri)),i["\u0275did"](15,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275eld"](16,0,null,null,0,"span",[["class","pcoded-mcaret"]],null,null,null,null,null)),(t()(),i["\u0275eld"](17,0,null,null,2,"ul",[["class","pcoded-submenu"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,ci)),i["\u0275did"](19,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=t(e,4,0,"active");t(e,1,0,n);var r=t(e,9,0,"active");t(e,6,0,r),t(e,15,0,e.parent.context.$implicit.badge),t(e,19,0,e.parent.context.$implicit.children)},function(t,e){t(e,11,0,i["\u0275inlineInterpolate"](1,"",e.parent.context.$implicit.icon,"")),t(e,13,0,e.parent.context.$implicit.name)})}function pi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,6,"ul",[["class","pcoded-item pcoded-left-item"],["item-border","none"],["item-border-style","solid"],["subitem-border","solid"]],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,Xr)),i["\u0275did"](2,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,ni)),i["\u0275did"](4,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275and"](16777216,null,null,1,null,fi)),i["\u0275did"](6,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,2,0,"external"===e.context.$implicit.type),t(e,4,0,"link"===e.context.$implicit.type),t(e,6,0,"sub"===e.context.$implicit.type)},null)}function hi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,5,"div",[],null,null,null,null,null)),(t()(),i["\u0275eld"](1,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,1,"div",[["class","pcoded-navigatio-lavel"],["menu-title-theme","theme5"]],null,null,null,null,null)),(t()(),i["\u0275ted"](3,null,["",""])),(t()(),i["\u0275and"](16777216,null,null,1,null,pi)),i["\u0275did"](5,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,5,0,e.context.$implicit.main)},function(t,e){t(e,3,0,e.context.$implicit.label)})}function di(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,hi)),i["\u0275did"](2,278528,null,0,Or.NgForOf,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(t()(),i["\u0275and"](0,null,null,0))],function(t,e){t(e,2,0,e.component.menuData)},null)}function gi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,94,"div",[["class","pcoded iscollapsed"],["id","pcoded"],["theme-layout","vertical"],["vertical-layout","wide"],["vertical-placement","left"],["vnavigation-view","view1"]],[[1,"pcoded-device-type",0],[1,"vertical-nav-type",0],[1,"vertical-effect",0]],[["window","resize"]],function(t,e,n){var r=!0;return"window:resize"===e&&(r=!1!==t.component.onResize(n)&&r),r},null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"div",[["class","pcoded-overlay-box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,92,"div",[["class","pcoded-container navbar-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](3,0,null,null,47,"nav",[["class","navbar header-navbar pcoded-header"],["header-theme","theme4"]],null,null,null,null,null)),(t()(),i["\u0275eld"](4,0,null,null,46,"div",[["class","navbar-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](5,0,null,null,8,"div",[["class","navbar-logo"],["navbar-theme","theme5"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,1,"a",[["class","mobile-menu"],["href","javascript:;"],["id","mobile-collapse"]],null,null,null,null,null)),(t()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","ti-menu"]],null,null,null,null,null)),(t()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](9,671744,null,0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(t()(),i["\u0275ted"](-1,null,[" Lanomina.net "])),(t()(),i["\u0275eld"](12,0,null,null,1,"a",[["class","mobile-options"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.onMobileMenu()&&r),r},null,null)),(t()(),i["\u0275eld"](13,0,null,null,0,"i",[["class","ti-more"]],null,null,null,null,null)),(t()(),i["\u0275eld"](14,0,null,null,36,"div",[["class","navbar-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](15,0,null,null,35,"div",[],null,null,null,null,null)),(t()(),i["\u0275eld"](16,0,null,null,7,"ul",[["class","nav-left"]],null,null,null,null,null)),(t()(),i["\u0275eld"](17,0,null,null,3,"li",[],null,null,null,null,null)),(t()(),i["\u0275eld"](18,0,null,null,2,"div",[["class","sidebar_toggle"]],null,null,null,null,null)),(t()(),i["\u0275eld"](19,0,null,null,1,"a",[["href","javascript:;"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggleOpened()&&r),r},null,null)),(t()(),i["\u0275eld"](20,0,null,null,0,"i",[["class","ti-menu f-18"]],null,null,null,null,null)),(t()(),i["\u0275eld"](21,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),i["\u0275eld"](22,0,null,null,1,"a",[["appToggleFullscreen",""],["href","javascript:;"]],null,null,null,null,null)),(t()(),i["\u0275eld"](23,0,null,null,0,"i",[["class","ti-fullscreen"]],null,null,null,null,null)),(t()(),i["\u0275eld"](24,0,null,null,26,"ul",[["class","nav-right"]],[[24,"@mobileMenuTop",0]],null,null,null,null)),i["\u0275did"](25,278528,null,0,Or.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),i["\u0275eld"](26,0,null,null,24,"li",[["class","user-profile header-notification"]],null,null,null,null,null)),(t()(),i["\u0275eld"](27,0,null,null,4,"a",[],null,null,null,null,null)),(t()(),i["\u0275eld"](28,0,null,null,0,"img",[["alt","User-Profile-Image"],["class","img-40 user-img img-circle"],["id","profileImgLi"]],[[8,"src",4]],null,null,null,null)),(t()(),i["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),i["\u0275ted"](30,null,["",""])),(t()(),i["\u0275eld"](31,0,null,null,0,"i",[["class","ti-angle-down"]],null,null,null,null,null)),(t()(),i["\u0275eld"](32,0,null,null,18,"ul",[["class","show-notification profile-notification"]],null,null,null,null,null)),(t()(),i["\u0275eld"](33,0,null,null,3,"li",[],null,null,null,null,null)),(t()(),i["\u0275eld"](34,0,null,null,2,"a",[["href","javascript:"]],null,null,null,null,null)),(t()(),i["\u0275eld"](35,0,null,null,0,"i",[["class","ti-settings"]],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,[" Configuraci\xf3n "])),(t()(),i["\u0275and"](16777216,null,null,1,null,Yr)),i["\u0275did"](38,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](39,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i["\u0275eld"](40,0,null,null,4,"a",[["href","javascript:"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,41).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](41,671744,null,0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](42,1),(t()(),i["\u0275eld"](43,0,null,null,0,"i",[["class","ti-user"]],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,[" Perfil "])),(t()(),i["\u0275eld"](45,0,null,null,5,"li",[],null,null,null,null,null)),(t()(),i["\u0275eld"](46,0,null,null,4,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,47).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](47,671744,null,0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](48,1),(t()(),i["\u0275eld"](49,0,null,null,0,"i",[["class","ti-layout-sidebar-left"]],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,[" Salir "])),(t()(),i["\u0275eld"](51,0,null,null,43,"div",[["class","pcoded-main-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](52,0,null,null,42,"div",[["class","pcoded-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](53,0,null,null,27,"nav",[["active-item-style","style0"],["active-item-theme","theme5"],["class"," pcoded-navbar"],["id","main_navbar"],["navbar-theme","theme1"],["pcoded-navbar-position","absolute"],["sub-item-theme","theme2"]],null,null,null,null,null)),(t()(),i["\u0275eld"](54,0,null,null,2,"div",[["class","sidebar_toggle"]],null,null,null,null,null)),(t()(),i["\u0275eld"](55,0,null,null,1,"a",[["href","javascript:;"]],null,null,null,null,null)),(t()(),i["\u0275eld"](56,0,null,null,0,"i",[["class","icon-close icons"]],null,null,null,null,null)),(t()(),i["\u0275eld"](57,0,null,null,23,"div",[["class","pcoded-inner-navbar main-menu"],["color","#fff"],["height","100%"],["opacity","0.3"],["size","4px"],["slimScroll",""],["width","100%"]],null,[["window","resize"]],function(t,e,n){var r=!0;return"window:resize"===e&&(r=!1!==i["\u0275nov"](t,58).onResize(n)&&r),r},null,null)),i["\u0275did"](58,212992,null,0,Dr,[i.RendererFactory2,i.ElementRef],{width:[0,"width"],height:[1,"height"],size:[2,"size"],color:[3,"color"],opacity:[4,"opacity"]},null),(t()(),i["\u0275eld"](59,0,null,null,18,"div",[["class",""]],null,null,null,null,null)),(t()(),i["\u0275eld"](60,0,null,null,7,"div",[["class","main-menu-header"]],null,null,null,null,null)),(t()(),i["\u0275eld"](61,0,null,null,0,"img",[["alt","User-Profile-Image"],["class","img-40 user-img img-circle"],["id","profileImgHeader"]],[[8,"src",4]],null,null,null,null)),(t()(),i["\u0275eld"](62,0,null,null,5,"div",[["class","user-details"]],null,null,null,null,null)),(t()(),i["\u0275eld"](63,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),i["\u0275ted"](64,null,["",""])),(t()(),i["\u0275eld"](65,0,null,null,2,"span",[["id","more-details"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggleOpenedSidebar()&&r),r},null,null)),(t()(),i["\u0275ted"](-1,null,["Periodo: "])),(t()(),i["\u0275eld"](67,0,null,null,0,"i",[["class","ti-angle-down"]],null,null,null,null,null)),(t()(),i["\u0275eld"](68,0,null,null,9,"div",[["class","main-menu-content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](69,0,null,null,8,"ul",[],null,null,null,null,null)),(t()(),i["\u0275eld"](70,0,null,null,7,"li",[["class","more-details"]],[[24,"@mobileMenuTop",0]],null,null,null,null)),i["\u0275did"](71,278528,null,0,Or.NgClass,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),i["\u0275eld"](72,0,null,null,2,"a",[["href","javascript:"]],null,null,null,null,null)),(t()(),i["\u0275eld"](73,0,null,null,0,"i",[["class","ti-user"]],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["Mi Perfil"])),(t()(),i["\u0275eld"](75,0,null,null,2,"a",[["href","javascript:"]],null,null,null,null,null)),(t()(),i["\u0275eld"](76,0,null,null,0,"i",[["class","ti-layout-sidebar-left"]],null,null,null,null,null)),(t()(),i["\u0275ted"](-1,null,["Salir"])),(t()(),i["\u0275eld"](78,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),i["\u0275and"](16777216,null,null,1,null,di)),i["\u0275did"](80,16384,null,0,Or.NgIf,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(t()(),i["\u0275eld"](81,0,null,null,13,"div",[["class","pcoded-content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](82,0,null,null,12,"div",[["class","pcoded-inner-content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](83,0,null,null,11,"div",[["class","main-body"]],null,null,null,null,null)),(t()(),i["\u0275eld"](84,0,null,null,10,"div",[["class","page-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](85,0,null,null,1,"app-title",[],null,null,null,Pr,Mr)),i["\u0275did"](86,49152,null,0,Ir,[Er.o,Er.a,Ar.Title],null,null),(t()(),i["\u0275eld"](87,0,null,null,1,"app-breadcrumbs",[],null,null,null,Vr,Nr)),i["\u0275did"](88,49152,null,0,Rr,[Er.o,Er.a,Ar.Title],null,null),(t()(),i["\u0275eld"](89,0,null,null,5,"div",[["class","page-body"]],null,null,null,null,null)),(t()(),i["\u0275eld"](90,16777216,null,null,4,"router-outlet",[],null,null,null,null,null)),i["\u0275did"](91,212992,null,0,Er.t,[Er.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,null),(t()(),i["\u0275eld"](92,0,null,null,2,"spinner",[],null,null,null,Br.b,Br.a)),i["\u0275prd"](512,null,zr.a,zr.a,[]),i["\u0275did"](94,180224,null,0,Ur.a,[Er.o,Or.DOCUMENT,zr.a],null,null)],function(t,e){var n=e.component,r=t(e,10,0,"/");t(e,9,0,r),t(e,25,0,"nav-right",n.isCollapsedMobile),t(e,38,0,null==n.identity.adfs_domain);var i=t(e,42,0,"/user/profile");t(e,41,0,i);var o=t(e,48,0,"/authentication/login/1");t(e,47,0,o),t(e,58,0,"100%","100%","4px","#fff","0.3"),t(e,71,0,"more-details",n.isCollapsedSideBar),t(e,80,0,(3==n.identity.first_login||0==n.identity.hasContract)&&!n.identity.nextRdct),t(e,91,0)},function(t,e){var n=e.component;t(e,0,0,n.deviceType,n.verticalNavType,n.verticalEffect),t(e,8,0,i["\u0275nov"](e,9).target,i["\u0275nov"](e,9).href),t(e,24,0,n.isCollapsedMobile),t(e,28,0,i["\u0275inlineInterpolate"](1,"",""!=n.identity.photo&&null!=n.identity.photo?n.identity.photo:"assets/images/avatar-7.png","")),t(e,30,0,n.identity.name+" "+n.identity.lastname),t(e,40,0,i["\u0275nov"](e,41).target,i["\u0275nov"](e,41).href),t(e,46,0,i["\u0275nov"](e,47).target,i["\u0275nov"](e,47).href),t(e,61,0,i["\u0275inlineInterpolate"](1,"",""!=n.identity.photo&&null!=n.identity.photo?n.identity.photo:"assets/images/avatar-7.png","")),t(e,64,0,n.identity.name+" "+n.identity.lastname),t(e,70,0,n.isCollapsedSideBar)})}function mi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,3,"app-layout",[],null,null,null,gi,$r)),i["\u0275prd"](512,null,Hr.a,Hr.a,[qr.c]),i["\u0275prd"](512,null,Gr.a,Gr.a,[qr.c]),i["\u0275did"](3,114688,null,0,Kr,[Wr.a,Hr.a,Er.o,Gr.a],null,null)],function(t,e){t(e,3,0)},null)}var yi=i["\u0275ccf"]("app-layout",Kr,mi,{},{},[]),vi=function(){function t(t,e){this.menuItems=t,this._userService=e,this.deviceType="desktop",this.verticalNavType="expanded",this.verticalEffect="shrink",this.isCollapsedMobile="no-block",this.isCollapsedSideBar="no-block",this.toggleOn=!0;var n=window.screen.height-150;this.innerHeight=n+"px",this.windowWidth=window.innerWidth,this.setMenuAttributs(this.windowWidth),this.htmlButton='
',this.htmlButton+='",this.htmlButton+="
",this.identity=this._userService.getIdentity()}return t.prototype.ngOnInit=function(){},t.prototype.onClickedOutside=function(t){this.windowWidth<768&&this.toggleOn&&"offcanvas"!==this.verticalNavType&&(this.toggleOn=!0,this.verticalNavType="offcanvas")},t.prototype.onResize=function(t){this.innerHeight=t.target.innerHeight+"px",this.windowWidth=t.target.innerWidth;var e=!0;"tablet"===this.deviceType&&this.windowWidth>=768&&this.windowWidth<=1024?e=!1:"mobile"===this.deviceType&&this.windowWidth<768&&(e=!1),e&&this.setMenuAttributs(this.windowWidth)},t.prototype.setMenuAttributs=function(t){t>=768&&t<=1024?(this.deviceType="tablet",this.verticalNavType="collapsed",this.verticalEffect="push"):t<768?(this.deviceType="mobile",this.verticalNavType="offcanvas",this.verticalEffect="overlay"):(this.deviceType="desktop",this.verticalNavType="expanded",this.verticalEffect="shrink")},t.prototype.toggleOpened=function(){this.windowWidth<768?(this.toggleOn="offcanvas"===this.verticalNavType||this.toggleOn,this.verticalNavType="expanded"===this.verticalNavType?"offcanvas":"expanded"):this.verticalNavType="expanded"===this.verticalNavType?"collapsed":"expanded"},t.prototype.toggleOpenedSidebar=function(){this.isCollapsedSideBar="yes-block"===this.isCollapsedSideBar?"no-block":"yes-block"},t.prototype.onMobileMenu=function(){this.isCollapsedMobile="yes-block"===this.isCollapsedMobile?"no-block":"yes-block"},t}(),bi=i["\u0275crt"]({encapsulation:2,styles:[["aside.pcoded-slider.ng-sidebar{top:56px}.scroll-window,.slimscroll-wrapper{width:100%!important}.userlist-box.show{display:-webkit-box}.userlist-box.hide{display:none}"]],data:{animation:[{type:7,name:"mobileMenuTop",definitions:[{type:0,name:"no-block, void",styles:{type:6,styles:{overflow:"hidden",height:"0px"},offset:null},options:void 0},{type:0,name:"yes-block",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"no-block <=> yes-block",animation:[{type:4,styles:null,timings:"400ms ease-in-out"}],options:null}],options:{}}]}});function _i(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,29,"div",[["class","pcoded iscollapsed"],["id","pcoded"],["theme-layout","vertical"],["vertical-layout","wide"],["vertical-placement","left"],["vnavigation-view","view1"]],[[1,"pcoded-device-type",0],[1,"vertical-nav-type",0],[1,"vertical-effect",0]],[["window","resize"]],function(t,e,n){var r=!0;return"window:resize"===e&&(r=!1!==t.component.onResize(n)&&r),r},null,null)),(t()(),i["\u0275eld"](1,0,null,null,0,"div",[["class","pcoded-overlay-box"]],null,null,null,null,null)),(t()(),i["\u0275eld"](2,0,null,null,27,"div",[["class","pcoded-container navbar-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](3,0,null,null,10,"nav",[["class","navbar header-navbar pcoded-header"],["header-theme","theme4"]],null,null,null,null,null)),(t()(),i["\u0275eld"](4,0,null,null,9,"div",[["class","navbar-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](5,0,null,null,8,"div",[["class","navbar-logo"],["navbar-theme","theme5"]],null,null,null,null,null)),(t()(),i["\u0275eld"](6,0,null,null,1,"a",[["class","mobile-menu"],["href","javascript:;"],["id","mobile-collapse"]],null,null,null,null,null)),(t()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","ti-menu"]],null,null,null,null,null)),(t()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==i["\u0275nov"](t,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),i["\u0275did"](9,671744,null,0,Er.r,[Er.o,Er.a,Or.LocationStrategy],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(t()(),i["\u0275ted"](-1,null,[" Lanomina.net "])),(t()(),i["\u0275eld"](12,0,null,null,1,"a",[["class","mobile-options"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.onMobileMenu()&&r),r},null,null)),(t()(),i["\u0275eld"](13,0,null,null,0,"i",[["class","ti-more"]],null,null,null,null,null)),(t()(),i["\u0275eld"](14,0,null,null,15,"div",[["class","pcoded-main-container"]],null,null,null,null,null)),(t()(),i["\u0275eld"](15,0,null,null,14,"div",[["class","pcoded-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](16,0,null,null,13,"div",[],null,null,null,null,null)),(t()(),i["\u0275eld"](17,0,null,null,12,"div",[["class","pcoded-inner-content"]],null,null,null,null,null)),(t()(),i["\u0275eld"](18,0,null,null,11,"div",[["class","main-body"]],null,null,null,null,null)),(t()(),i["\u0275eld"](19,0,null,null,10,"div",[["class","page-wrapper"]],null,null,null,null,null)),(t()(),i["\u0275eld"](20,0,null,null,1,"app-title",[],null,null,null,Pr,Mr)),i["\u0275did"](21,49152,null,0,Ir,[Er.o,Er.a,Ar.Title],null,null),(t()(),i["\u0275eld"](22,0,null,null,1,"app-breadcrumbs",[],null,null,null,Vr,Nr)),i["\u0275did"](23,49152,null,0,Rr,[Er.o,Er.a,Ar.Title],null,null),(t()(),i["\u0275eld"](24,0,null,null,5,"div",[["class","page-body"]],null,null,null,null,null)),(t()(),i["\u0275eld"](25,16777216,null,null,4,"router-outlet",[],null,null,null,null,null)),i["\u0275did"](26,212992,null,0,Er.t,[Er.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,null),(t()(),i["\u0275eld"](27,0,null,null,2,"spinner",[],null,null,null,Br.b,Br.a)),i["\u0275prd"](512,null,zr.a,zr.a,[]),i["\u0275did"](29,180224,null,0,Ur.a,[Er.o,Or.DOCUMENT,zr.a],null,null)],function(t,e){var n=t(e,10,0,"/");t(e,9,0,n),t(e,26,0)},function(t,e){var n=e.component;t(e,0,0,n.deviceType,n.verticalNavType,n.verticalEffect),t(e,8,0,i["\u0275nov"](e,9).target,i["\u0275nov"](e,9).href)})}function wi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,2,"app-validator-layout",[],null,null,null,_i,bi)),i["\u0275prd"](512,null,Hr.a,Hr.a,[qr.c]),i["\u0275did"](2,114688,null,0,vi,[Wr.a,Hr.a],null,null)],function(t,e){t(e,2,0)},null)}var xi=i["\u0275ccf"]("app-validator-layout",vi,wi,{},{},[]),Ci=function(){return function(){}}(),Si=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Ei(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),i["\u0275did"](1,212992,null,0,Er.t,[Er.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,null)],function(t,e){t(e,1,0)},null)}function Oi(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"app-layout",[],null,null,null,Ei,Si)),i["\u0275did"](1,49152,null,0,Ci,[],null,null)],null,null)}var ki=i["\u0275ccf"]("app-layout",Ci,Oi,{},{},[]),Ti=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Di(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,16777216,null,null,4,"router-outlet",[],null,null,null,null,null)),i["\u0275did"](1,212992,null,0,Er.t,[Er.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,null),(t()(),i["\u0275eld"](2,0,null,null,2,"spinner",[],null,null,null,Br.b,Br.a)),i["\u0275prd"](512,null,zr.a,zr.a,[]),i["\u0275did"](4,180224,null,0,Ur.a,[Er.o,Or.DOCUMENT,zr.a],null,null)],function(t,e){t(e,1,0)},null)}function Ii(t){return i["\u0275vid"](0,[(t()(),i["\u0275eld"](0,0,null,null,1,"app-root",[],null,null,null,Di,Ti)),i["\u0275did"](1,49152,null,0,xr,[wr],null,null)],null,null)}var Ai=i["\u0275ccf"]("app-root",xr,Ii,{},{},[]),Mi=n("ihYY");function Pi(){return"undefined"!=typeof process}function Ri(t){switch(t.length){case 0:return new Mi.NoopAnimationPlayer;case 1:return t[0];default:return new Mi["\u0275AnimationGroupPlayer"](t)}}function Ni(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var a=[],s=[],u=-1,l=null;if(r.forEach(function(t){var n=t.offset,r=n==u,c=r&&l||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case Mi["\u0275PRE_STYLE"]:s=i[n];break;case Mi.AUTO_STYLE:s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}c[r]=s}),r||s.push(c),l=c,u=n}),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function ji(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&Fi(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&Fi(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&Fi(n,"destroy",t))})}}function Fi(t,e,n){var r=n.totalTime,i=Li(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function Li(t,e,n,r,i,o,a){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function Vi(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function Bi(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var zi=function(t,e){return!1},Ui=function(t,e){return!1},Hi=function(t,e,n){return[]},qi=Pi();if(qi||"undefined"!=typeof Element){if(zi=function(t,e){return t.contains(e)},qi||Element.prototype.matches)Ui=function(t,e){return t.matches(e)};else{var Gi=Element.prototype,Wi=Gi.matchesSelector||Gi.mozMatchesSelector||Gi.msMatchesSelector||Gi.oMatchesSelector||Gi.webkitMatchesSelector;Wi&&(Ui=function(t,e){return Wi.apply(t,[e])})}Hi=function(t,e,n){var r=[];if(n)r.push.apply(r,Object(kr.__spread)(t.querySelectorAll(e)));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var Ki=null,$i=!1;function Yi(t){Ki||(Ki=("undefined"!=typeof document?document.body:null)||{},$i=!!Ki.style&&"WebkitAppearance"in Ki.style);var e=!0;return Ki.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in Ki.style)&&$i&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Ki.style),e}var Zi=Ui,Xi=zi,Qi=Hi;function Ji(t){var e={};return Object.keys(t).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}var to=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return Yi(t)},t.prototype.matchesElement=function(t,e){return Zi(t,e)},t.prototype.containsElement=function(t,e){return Xi(t,e)},t.prototype.query=function(t,e,n){return Qi(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o,a){return void 0===o&&(o=[]),new Mi.NoopAnimationPlayer(n,r)},t}(),eo=function(){function t(){}return t.NOOP=new to,t}(),no=1e3;function ro(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:io(parseFloat(e[1]),e[2])}function io(t,e){switch(e){case"s":return t*no;default:return t}}function oo(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=io(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=io(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else r=t;if(!n){var l=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function ao(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function so(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else ao(t,n);return n}function uo(t,e,n){return n?e+":"+n+";":""}function lo(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(ko(o,s)),"<"!=a[0]||o==So&&s==So||e.push(ko(s,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:Po(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return xo(n,t,e)}),options:Po(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=xo(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:Po(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Ro(oo(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=Ro(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Ro((n=n||oo(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Object(Mi.style)({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Object(Mi.style)(s)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Mi.AUTO_STYLE?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(Mo(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,u,l=e.collectedStyles[e.currentQuerySelector],c=l[r],f=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+i+'ms"'),f=!1),o=c.startTime),f&&(l[r]={startTime:o,endTime:i}),e.options&&(a=e.errors,s=e.options.params||{},(u=go(t[r])).length&&u.forEach(function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,u=0,l=t.steps.map(function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Mo(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Mo(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),s=s||c<0||c>1,a=a||c0&&i0?i==p?1:f*i:o[i],s=a*g;e.currentTime=h+d.delay+s,d.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:xo(this,po(t.animation),e),options:Po(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:Po(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Po(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=Object(kr.__read)(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(To,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=i[0],a=i[1];e.currentQuerySelector=n.length?n+" "+o:o,Vi(e.collectedStyles,e.currentQuerySelector,{});var s=xo(this,po(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:Po(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:oo(t.timings,e.errors,!0);return{type:12,animation:xo(this,po(t.animation),e),timings:n,options:null}},t}(),Ao=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function Mo(t){return!Array.isArray(t)&&"object"==typeof t}function Po(t){var e;return t?(t=ao(t)).params&&(t.params=(e=t.params)?ao(e):null):t={},t}function Ro(t,e,n){return{duration:t,delay:e,easing:n}}function No(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var jo=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,Object(kr.__spread)(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Fo=new RegExp(":enter","g"),Lo=new RegExp(":leave","g");function Vo(t,e,n,r,i,o,a,s,u,l){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===l&&(l=[]),(new Bo).buildKeyframes(t,e,n,r,i,o,a,s,u,l)}var Bo=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,u,l){void 0===l&&(l=[]),u=u||new jo;var c=new Uo(t,e,u,r,i,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),xo(this,n,c);var f=c.timelines.filter(function(t){return t.containsAnimation()});if(f.length&&Object.keys(a).length){var p=f[f.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,c.errors,s)}return f.length?f.map(function(t){return t.buildKeyframes()}):[No(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?ro(n.duration):null,o=null!=n.delay?ro(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),xo(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=zo);var a=ro(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return xo(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?ro(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),xo(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return oo(e.params?mo(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?ro(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=zo);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(u=s.currentTimeline),xo(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;xo(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)},t}(),zo={},Uo=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=zo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new Ho(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=ro(r.duration)),null!=r.delay&&(i.delay=ro(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=mo(o[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=zo,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new qo(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Fo,"."+this._enterClassName)).replace(Lo,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,Object(kr.__spread)(s))}return i||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),Ho=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Mi.AUTO_STYLE,e._currentKeyframe[t]=Mi.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=Mi.AUTO_STYLE}):so(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=mo(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:Mi.AUTO_STYLE),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=so(o,!0);Object.keys(s).forEach(function(t){var r=s[t];r==Mi["\u0275PRE_STYLE"]?e.add(t):r==Mi.AUTO_STYLE&&n.add(t)}),r||(s.offset=a/t.duration),i.push(s)});var o=e.size?yo(e.values()):[],a=n.size?yo(n.values()):[];if(r){var s=i[0],u=ao(s);s.offset=0,u.offset=1,i=[s,u]}return No(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},t}(),qo=function(t){function e(e,n,r,i,o,a,s){void 0===s&&(s=!1);var u=t.call(this,e,n,a.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=i,u.postStyleProps=o,u._stretchStartingKeyframe=s,u.timings={duration:a.duration,delay:a.delay,easing:a.easing},u}return Object(kr.__extends)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,u=so(t[0],!1);u.offset=0,o.push(u);var l=so(t[0],!1);l.offset=Go(s),o.push(l);for(var c=t.length-1,f=1;f<=c;f++){var p=so(t[f],!1);p.offset=Go((n+p.offset*r)/a),o.push(p)}r=a,n=0,i="",t=o}return No(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(Ho);function Go(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var Wo=function(){return function(){}}(),Ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(kr.__extends)(e,t),e.prototype.normalizePropertyName=function(t,e){return bo(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if($o[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(Wo),$o=Yo("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","));function Yo(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}function Zo(t,e,n,r,i,o,a,s,u,l,c,f,p){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:f,errors:p}}var Xo={},Qo=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,o,a,s,u,l){var c=[],f=this.ast.options&&this.ast.options.params||Xo,p=this.buildStyles(n,a&&a.params||Xo,c),h=s&&s.params||Xo,d=this.buildStyles(r,h,c),g=new Set,m=new Map,y=new Map,v="void"===r,b={params:Object(kr.__assign)({},f,h)},_=l?[]:Vo(t,e,this.ast.animation,i,o,p,d,b,u,c),w=0;if(_.forEach(function(t){w=Math.max(t.duration+t.delay,w)}),c.length)return Zo(e,this._triggerName,n,r,v,p,d,[],[],m,y,w,c);_.forEach(function(t){var n=t.element,r=Vi(m,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=Vi(y,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&g.add(n)});var x=yo(g.values());return Zo(e,this._triggerName,n,r,v,p,d,_,x,m,y,w)},t}(),Jo=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=ao(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=mo(o,r,e)),n[t]=o})}}),n},t}(),ta=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new Jo(t.style,t.options&&t.options.params||{})}),ea(this.states,"true","1"),ea(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Qo(t,e,n.states))}),this.fallbackTransition=new Qo(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,r){return this.transitionFactories.find(function(i){return i.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function ea(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var na=new jo,ra=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=Do(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=Ni(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[t],s=new Map;if(a?(i=Vo(this._driver,e,a,"ng-enter","ng-leave",{},{},n,na,o)).forEach(function(t){var e=Vi(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,Mi.AUTO_STYLE)})});var u=Ri(i.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=Li(e,"","","");return ji(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),ia=[],oa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},aa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},sa="__ng_removed",ua=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=ao(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),la=new ua("void"),ca=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,va(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=Vi(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var u=Vi(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(va(t,"ng-trigger"),va(t,"ng-trigger-"+e),u[e]=la),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new pa(this.id,e,t),s=this._engine.statesByElement.get(t);s||(va(t,"ng-trigger"),va(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new ua(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=la),"void"===l.value||u.value!==l.value){var c=Vi(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var f=o.matchTransition(u.value,l.value,t,l.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:u,toState:l,player:a,isFallbackTransition:p}),p||(va(t,"ng-animate-queued"),a.onStart(function(){ba(t,"ng-animate-queued")})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),va(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),ba(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(ha(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[sa]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return ha(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return Ri(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[sa];if(n&&n.setForRemoval){if(t[sa]=oa,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(t){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(x.push(e),n.collectedEnterElements.length){var c=o[sa];if(c&&c.setForMove)return void e.destroy()}var p=!f||!n.driver.containsElement(f,o),h=_.get(o),g=d.get(o),m=n._buildInstruction(t,r,g,h,p);if(m.errors&&m.errors.length)C.push(m);else{if(p)return e.onStart(function(){return fo(o,m.fromStyles)}),e.onDestroy(function(){return co(o,m.toStyles)}),void i.push(e);if(t.isFallbackTransition)return e.onStart(function(){return fo(o,m.fromStyles)}),e.onDestroy(function(){return co(o,m.toStyles)}),void i.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),r.append(o,m.timelines),a.push({instruction:m,player:e,element:o}),m.queriedElements.forEach(function(t){return Vi(s,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),m.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(C.length){var E=[];C.forEach(function(t){E.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return E.push("- "+t+"\n")})}),x.forEach(function(t){return t.destroy()}),this.reportError(E)}var O=new Map,k=new Map;a.forEach(function(t){var e=t.element;r.has(e)&&(k.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),i.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Vi(O,e,[]).push(t),t.destroy()})});var T=m.filter(function(t){return wa(t,u,l)}),D=new Map;ga(D,this.driver,v,l,Mi.AUTO_STYLE).forEach(function(t){wa(t,u,l)&&T.push(t)});var I=new Map;h.forEach(function(t,e){ga(I,n.driver,new Set(t),u,Mi["\u0275PRE_STYLE"])}),T.forEach(function(t){var e=D.get(t),n=I.get(t);D.set(t,Object(kr.__assign)({},e,n))});var A=[],M=[],P={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(r.has(e)){if(c.has(e))return a.onDestroy(function(){return co(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void i.push(a);var u=P;if(k.size>1){for(var l=e,f=[];l=l.parentNode;){var p=k.get(l);if(p){u=p;break}f.push(l)}f.forEach(function(t){return k.set(t,u)})}var h=n._buildAnimation(a.namespaceId,s,O,o,I,D);if(a.setRealPlayer(h),u===P)A.push(a);else{var d=n.playersByElement.get(u);d&&d.length&&(a.parentPlayer=Ri(d)),i.push(a)}}else fo(e,s.fromStyles),a.onDestroy(function(){return co(e,s.toStyles)}),M.push(a),c.has(e)&&i.push(a)}),M.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=Ri(e);t.setRealPlayer(n)}}),i.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var R=0;R0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Mi.NoopAnimationPlayer(t.duration,t.delay)},t}(),pa=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Mi.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return ji(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){Vi(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function ha(t){return t&&1===t.nodeType}function da(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function ga(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(da(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[sa]=aa,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return da(t,o[s++])}),a}function ma(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:r.has(a)?1:t(a),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var ya="$$classes";function va(t,e){if(t.classList)t.classList.add(e);else{var n=t[ya];n||(n=t[ya]={}),n[e]=!0}}function ba(t,e){if(t.classList)t.classList.remove(e);else{var n=t[ya];n&&delete n[e]}}function _a(t,e,n){Ri(n).onDone(function(){return t.processLeaveNode(e)})}function wa(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var xa=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new fa(t,e,n),this._timelineEngine=new ra(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],u=Do(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new ta(t,e)}(r,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=Object(kr.__read)(Bi(n),2);this._timelineEngine.command(i[0],e,i[1],r)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=Object(kr.__read)(Bi(n),2);return this._timelineEngine.listen(o[0],e,o[1],i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function Ca(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=Ea(e[0]),e.length>1&&(r=Ea(e[e.length-1]))):e&&(n=Ea(e)),n||r?new Sa(t,n,r):null}var Sa=function(){function t(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;var i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}return t.prototype.start=function(){this._state<1&&(this._startStyles&&co(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&(co(this._element,this._initialStyles),this._endStyles&&(co(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(fo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(fo(this._element,this._endStyles),this._endStyles=null),co(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function Ea(t){for(var e=null,n=Object.keys(t),r=0;r=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Pa(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=Ma(n=Na(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),Ra(t,"",n.join(","))))},t}();function Ia(t,e,n){Ra(t,"PlayState",n,Aa(t,e))}function Aa(t,e){var n=Na(t,"");return n.indexOf(",")>0?Ma(n.split(","),e):Ma([n],e)}function Ma(t,e){for(var n=0;n=0)return n;return-1}function Pa(t,e,n){n?t.removeEventListener(Ta,e):t.addEventListener(Ta,e)}function Ra(t,e,n,r){var i=ka+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function Na(t,e){return t.style[ka+e]}var ja="linear",Fa=function(){function t(t,e,n,r,i,o,a,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||ja,this.totalTime=r+i,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new Da(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:Co(t.element,r))})}this.currentSnapshot=e},t}(),La=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=Ji(n),r}return Object(kr.__extends)(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(Mi.NoopAnimationPlayer),Va=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Yi(t)},t.prototype.matchesElement=function(t,e){return Zi(t,e)},t.prototype.containsElement=function(t,e){return Xi(t,e)},t.prototype.query=function(t,e,n){return Qi(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map(function(t){return Ji(t)});var r="@keyframes "+e+" {\n",i="";n.forEach(function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter(function(t){return t instanceof Fa}),u={};_o(n,r)&&s.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=wo(t,e,u));if(0==n)return new La(t,l);var c="gen_css_kf_"+this._count++,f=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(f);var p=Ca(t,e),h=new Fa(t,e,c,n,r,i,l,p);return h.onDestroy(function(){var t;(t=f).parentNode.removeChild(t)}),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Ba=function(){function t(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Co(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),za=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ua().toString()),this._cssKeyframesDriver=new Va}return t.prototype.validateStyleProperty=function(t){return Yi(t)},t.prototype.matchesElement=function(t,e){return Zi(t,e)},t.prototype.containsElement=function(t,e){return Xi(t,e)},t.prototype.query=function(t,e,n){return Qi(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,i,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},l=o.filter(function(t){return t instanceof Ba});_o(n,r)&&l.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var c=Ca(t,e=wo(t,e=e.map(function(t){return so(t,!1)}),u));return new Ba(t,e,s,c)},t}();function Ua(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Ha=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}}),r}return Object(kr.__extends)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(Mi.sequence)(t):t;return Wa(this._renderer,null,e,"register",[n]),new qa(e,this._renderer)},e}(Mi.AnimationBuilder),qa=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return Object(kr.__extends)(e,t),e.prototype.create=function(t,e){return new Ga(this._id,t,e||{},this._renderer)},e}(Mi.AnimationFactory),Ga=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t=1;o--){var a=r[o];a!==e.variant&&a!==e.script||r.splice(o,1)}var s=r.length;if(s>1)return r[s-1].toUpperCase()}(t.name,n),t.territory=e,e}function Ns(t,e){void 0===e&&(e=Ps);var n=_s(e).calendar.dateFields;if(!n)throw ys.NoDateFieldNames.error();var r=n[t.type]||{};return r[t.nameType]||r.wide}function js(t,e){var n,r=e.type,i=e.nameType,o=e.standAlone,a=e.lower,s=bs(t),u=(a?"lower-":Ms)+i,l=s.calendar[r][o?"stand-alone":"format"],c=l[u];return!c&&a&&(c=l[u]=(n=l[i],Array.isArray(n)?function(t){for(var e=[],n=0;n=u){for(var h=p,d=[];h>-1;){var g=c.substring(h-u,h);g&&d.push(g),h-=u;var m=s.shift();if(0===(u=void 0!==m?m:u)){(g=c.substring(0,h))&&d.push(g);break}}c=d.reverse().join(o.group),f=t.substring(0,e)+c+t.substring(l)}return f}function iu(t){return t===xs||t===Cs}function ou(t,e,n){void 0===e&&(e=2),void 0===n&&(n=!1);var r=e-String(t).length,i=t;if(r>0){var o=new Array(r+1).join("0");i=n?t+o:o+t}return i}var au=20;function su(t,e){var n=t,r=e||0;return n=n.toString().split("e"),n=(n=Math.round(Number(n[0]+"e"+(n[1]?Number(n[1])+r:r)))).toString().split("e"),(n=Number(n[0]+"e"+(n[1]?Number(n[1])-r:-r))).toFixed(Math.min(r,au))}var uu=3,lu=0,cu=/0+$/;var fu="__??__",pu="#",hu="0",du=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,gu=/(\.(?:[0-9]*[1-9])?)0+$/g,mu=/\.$/,yu=/\,/g;function vu(t,e,n){return-1===t&&-1!==e?e:-1!==t&&-1===e?t:n?Math.min(t,e):Math.max(t,e)}var bu=/^(n|c|p|e|a)(\d*)$/i;function _u(t){return ps(t)?function(t){var e=bu.exec(t);if(e){var n={style:ws},r=e[1].toLowerCase();return"c"===r?n.style=xs:"a"===r?n.style=Cs:"p"===r?n.style=Ss:"e"===r&&(n.style=Es),e[2]&&(n.minimumFractionDigits=n.maximumFractionDigits=parseInt(e[2],10)),n}}(t):t}function wu(t,e,n){if(void 0===e&&(e=Ts),void 0===n&&(n=Ps),null==t)return Ms;if(!isFinite(t))return String(t);var r=_s(n),i=_u(e);return i?function(t,e,n){var r=n.numbers.symbols,i=e.style,o=iu(i);if(i===Es)return(void 0!==e.minimumFractionDigits?t.toExponential(e.minimumFractionDigits):t.toExponential()).replace(As,r.decimal);var a,s=t;o&&(e.value=s,a=nu(n,e)),i===Ss&&(s*=100,a=r.percentSign);var u=function(t){var e,n=t.minimumFractionDigits,r=t.maximumFractionDigits,i=t.style,o=iu(i);return o&&(e=function(e){var n=Hs,r=Hs,i=((vs.supplemental.currencyData||{}).fractions||{})[t.currency];return i&&i._digits&&(r=n=parseInt(i._digits,10)),{minimumFractionDigits:n,maximumFractionDigits:r}}()),void 0===n&&(n=o?e.minimumFractionDigits:0),void 0===r&&(r=i===Ss?Math.max(n,lu):o?Math.max(n,e.maximumFractionDigits):Math.max(n,uu)),{minimumFractionDigits:n,maximumFractionDigits:r}}(e),l=u.minimumFractionDigits,c=(s=su(s,u.maximumFractionDigits))<0,f=s.split(As),p=f[0],h=ou(f[1]?f[1].replace(cu,Ms):Ms,l,!0);c&&(p=p.substring(1)),e.minimumIntegerDigits&&(p=ou(p,e.minimumIntegerDigits));var d,g=!1!==e.useGrouping?ru(p,0,p.length,e,n):p;if(h&&(g+=r.decimal+h),o&&"name"===e.currencyDisplay)d=function(e,n){var r=e.numbers.currency,i=1!==t?r["unitPattern-count-other"]:r["unitPattern-count-one"];return t<0&&(i=i.replace(Ts,"-"+Ts)),i}(n);else{var m=e.patterns;d=c?m[1]||"-"+m[0]:m[0]}return d!==Ts||c?function(t,e,n){for(var r=Ms,i=0,o=e.length;i-1||e.indexOf('"')>-1||e.indexOf("\\")>-1){var n=t.literals=[];t.format=e.replace(du,function(t){var e=t.charAt(0).replace("\\",Ms),r=t.slice(1).replace(e,Ms);return n.push(r),fu})}}(r),function(t,e){var n=t.format;-1!==n.indexOf(ks)&&(t.style=Ss,t.symbol=e.numbers.symbols.percentSign,t.number*=100),-1!==n.indexOf(Os)&&(t.style=xs,t.symbol=nu(e))}(r,n),function(t){t.hasGroup=t.format.indexOf(Is)>-1,t.hasGroup&&(t.format=t.format.replace(yu,Ms))}(r),function(t){var e,n,r,i=t.number,o=t.format,a=o.indexOf(As);if(-1!==a){var s=o.lastIndexOf(hu)-a,u=o.lastIndexOf(pu)-a,l=s>-1,c=u>-1,f=i.toString().split("e"),p=(f=(f=f[1]?su(i,Math.abs(f[1])):f[0]).split(As)[1]||Ms).length,h=-1;l||c?l&&s>u?p=s:u>s&&(c&&p>u?p=u:l&&p-1&&(i=su(i,p),h>-1&&(e=i,r=0===(n=h)?gu:new RegExp("(\\.[0-9]{"+n+"}[1-9]*)0+$","g"),i=e.replace(r,"$1").replace(mu,Ms)))}else i=su(i);t.negative&&-1*i>=0&&(t.negative=!1),t.number=i,t.decimalIndex=a}(r),function(t){var e=t.format,n=e.indexOf(pu),r=e.indexOf(hu),i=vu(n,r,!0),o=vu(n=e.lastIndexOf(pu),r=e.lastIndexOf(hu));i===e.length&&(o=i),t.start=i,t.end=o,t.lastZeroIndex=r}(r),function(t,e){var n=t.number;return-1!==t.start&&(n=function(t,e){var n=t;if(e)for(var r=e.length,i=0;i-1&&(c+=h,y=a),a===y){c+=(d?e.numbers.symbols.decimal:Ms)+d,y+=r-a+1;continue}v===hu?(c+=v,m=v):v===pu&&(c+=m)}return l&&(c=ru(c,n+(i&&!u?1:0),Math.max(r,g+n),e.numbers.decimal,e)),r>=n&&(c+=o.substring(r+1)),c}(t,e),t.style,t.symbol),t.literals)),n}(r,n))}(t,e,r)}function xu(t){return"number"==typeof t}var Cu=/[eE][\-+]?[0-9]+/,Su=/\u00A0/g;function Eu(t,e){if(e.length>1){var n=(e[1]||Ms).replace(Os,Ms).split(Ts);if(t.indexOf(n[0])>-1&&t.indexOf(n[1])>-1)return t.replace(n[0],Ms).replace(n[1],Ms)}}function Ou(t,e,n){if(void 0===e&&(e=Ps),void 0===n&&(n={}),!t&&0!==t)return null;if(xu(t))return t;var r,i=_s(e),o=i.numbers.symbols,a=t.toString();if(Cu.test(a))return a=parseFloat(a.replace(o.decimal,As)),isNaN(a)?null:a;var s=a.indexOf("-");if(s>0)return null;var u=s>-1,l=function(t,e,n){var r,i=_u(n)||{},o=iu(i.style),a=t,s=i.currency||Ys(e,o);if(s){var u=function(t,n,r){void 0===r&&(r=!0);var i=Ks(e,n,r);if(i){if(!i.displays){var o=[n];for(var a in i)o.push(i[a]);o.sort($s),i.displays=o}return i.displays}}(0,s,o);if(u)for(var l=0;l-1)&&(a=a.replace(o.percentSign,Ms),r=!0),a=a.replace("-",Ms).replace(Su," ").split(o.group.replace(Su," ")).join(Ms).replace(o.decimal,As),a=parseFloat(a),isNaN(a)?a=null:u&&(a*=-1),a&&r&&(a/=100),a}var ku=/\{(\d+)}/g;function Tu(t){var e=arguments;return t.replace(ku,function(t,n){return e[parseInt(n,10)+1]})}var Du=120,Iu=20,Au=[2,1,5,3,4],Mu={};Mu[(-2).toString()]=8,Mu[(-1).toString()]=6,Mu[2..toString()]=6,Mu[1..toString()]=3;var Pu={numeric:1,"2-digit":2,short:3,long:4,narrow:5},Ru=/[hHmsSzZoOvVxX]/,Nu=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function(t){return t.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],ju={e:"c",E:"c",M:"L",Q:"q"},Fu={},Lu={};function Vu(t){return Fu[t]||(Fu[t]=new RegExp(t+"+")),Fu[t]}function Bu(t){for(var e=[],n=t.charAt(0),r=n,i=1;io&&(o=l,n=s,r=e[a])}r=r.replace("v","z");for(var d=0;d0){var o=t.substr(0,i),a=t.substr(i);r=Tu(e.calendar.dateTimeFormats.short,n[a]||zu(Bu(a),n),n[o]||zu(Bu(o),n))}else r=zu(Bu(t),n);return function(t,e,n){Lu[n]||(Lu[n]={}),Lu[n][t]=e}(t,r,e.name),r}(i,e))}return n||(n=r.patterns.d),n}function Hu(t){var e;return t<=3?e="abbreviated":4===t?e="wide":5===t?e="narrow":6===t&&(e="short"),e}function qu(t,e,n,r,i){return js(t,{type:e,nameType:Hu(n),standAlone:r,lower:i})}function Gu(t){return"function"==typeof t}function Wu(t){return Boolean(t)&&Gu(t.getTime)&&Gu(t.getMonth)}var Ku={G:"era",y:"year",q:"quarter",Q:"quarter",M:"month",L:"month",d:"day",E:"weekday",c:"weekday",e:"weekday",h:"hour",H:"hour",k:"hour",K:"hour",m:"minute",s:"second",a:"dayperiod",x:"zone",X:"zone",z:"zone",Z:"zone"},$u=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function Yu(t,e,n,r){return e<=2?ou(t+1,e):qu(n,"months",e,r)[t]}function Zu(t,e,n,r){var i=Math.floor(t.getMonth()/3);return e<3?i+1:qu(n,"quarters",e,r)[i]}function Xu(t,e,n){var r=n.shortHours,i=n.optionalMinutes,o=n.separator,a=n.localizedName,s=n.zZeroOffset,u=t.getTimezoneOffset()/60;if(0===u&&s)return"Z";var l=u<=0?"+":"-",c=Math.abs(u).toString().split("."),f=c[1]||0,p=l+(r?c[0]:ou(c[0],2));return!f&&i||(p+=(o?":":Ms)+ou(f,2)),a&&(p=Tu(0===u?e.calendar.gmtZeroFormat:e.calendar.gmtFormat,p)),p}function Qu(t,e,n,r){var i,o;return e<3?((i=t.getDay())<(o=tu(n))?7-o+i:i-o)+1:qu(n,"days",e,r)[t.getDay()]}var Ju={};function tl(t,e,n){if(void 0===n&&(n=Ps),!Wu(t))return null==t?Ms:t;var r=_s(n);return Uu(e,r).replace($u,function(e){var n=e.length;return e.includes("'")||e.includes('"')?e.slice(1,n-1):Ju[e[0]](t,n,r)})}function el(t,e,n){var r=t.getTimezoneOffset(),i=new Date(t.getTime()+6e4*(e-n)),o=i.getTimezoneOffset();return new Date(i.getTime()+6e4*(o-r))}Ju.d=function(t,e){return ou(t.getDate(),e)},Ju.E=function(t,e,n){return qu(n,"days",e)[t.getDay()]},Ju.M=function(t,e,n){return Yu(t.getMonth(),e,n,!1)},Ju.L=function(t,e,n){return Yu(t.getMonth(),e,n,!0)},Ju.y=function(t,e){var n=t.getFullYear();return 2===e&&(n%=100),ou(n,e)},Ju.h=function(t,e){return ou(t.getHours()%12||12,e)},Ju.H=function(t,e){return ou(t.getHours(),e)},Ju.k=function(t,e){return ou(t.getHours()||24,e)},Ju.K=function(t,e){return ou(t.getHours()%12,e)},Ju.m=function(t,e){return ou(t.getMinutes(),e)},Ju.s=function(t,e){return ou(t.getSeconds(),e)},Ju.S=function(t,e){return 0!==t.getMilliseconds()?String(t.getMilliseconds()/1e3).split(".")[1].substr(0,e):ou(Ms,e)},Ju.a=function(t,e,n){return qu(n,"dayPeriods",e)[t.getHours()<12?"am":"pm"]},Ju.z=function(t,e,n){return Xu(t,n,{shortHours:e<4,optionalMinutes:e<4,separator:!0,localizedName:!0})},Ju.Z=function(t,e,n){return Xu(t,n,{separator:e>3,localizedName:4===e,zZeroOffset:5===e})},Ju.x=function(t,e,n){return Xu(t,n,{optionalMinutes:1===e,separator:3===e||5===e})},Ju.X=function(t,e,n){return Xu(t,n,{optionalMinutes:1===e,separator:3===e||5===e,zZeroOffset:!0})},Ju.G=function(t,e,n){var r=t.getFullYear()>=0?1:0;return qu(n,"eras",e)[r]},Ju.e=Qu,Ju.c=function(t,e,n){return Qu(t,e,n,!0)},Ju.q=function(t,e,n){return Zu(t,e,n,!0)},Ju.Q=Zu;var nl=/([+|\-]\d{1,2})(:?)(\d{2})?/,rl=/^\/Date\((.*?)\)\/$/,il=/[+-]\d*/,ol={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},al=/\d+/,sl="{0}",ul=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],ll=["G","g","F","Y","y","M","m","D","d","y","T","t"];function cl(t,e,n){return!(t>=e&&t<=n)}function fl(t,e){for(var n=e.format,r=e.idx,i=0;n[r]===t;)i++,r++;return i>0&&(r-=1),e.idx=r,i}function pl(t,e){var n=t?ol[t]||new RegExp("^\\d{1,"+t+"}"):al,r=e.value.substr(e.valueIdx,t).match(n);return r?(e.valueIdx+=(r=r[0]).length,parseInt(r,10)):null}function hl(t,e,n){for(var r,i,o,a=0,s=t.length,u=0,l=0;au&&(u=i,l=a);return u?(e.valueIdx+=u,l+1):null}function dl(t){var e=!1;return t.value.charAt(t.valueIdx)===t.format[t.idx]&&(t.valueIdx++,e=!0),e}function gl(t,e,n){var r=n.shortHours,i=n.noSeparator,o=n.optionalMinutes,a=n.localizedName,s=n.zLiteral;if(t.UTC=!0,s&&"Z"===t.value.charAt(t.valueIdx))return t.valueIdx++,!1;if(a&&!hl(function(t){var e=t.gmtFormat,n=t.gmtZeroFormat;if(!e)throw ys.NoGMTInfo.error();return[e.replace(sl,Ms).toLowerCase(),n.replace(sl,Ms).toLowerCase()]}(e.calendar),t,!0))return!0;var u=nl.exec(t.value.substr(t.valueIdx,6));if(!u)return!a;var l=u[1],c=u[3],f=parseInt(l,10),p=u[2],h=parseInt(c,10);return!!(isNaN(f)||!r&&3!==l.length||!o&&isNaN(h)||i&&p)||(isNaN(h)&&(h=null),!!(cl(f,-12,13)||h&&cl(h,0,59))||(t.valueIdx+=u[0].length,t.hoursOffset=f,void(t.minutesOffset=h)))}function ml(t,e,n){var r=fl(t,e),i=qu(n,"months",r,"L"===t,!0),o=r<3?pl(2,e):hl(i,e,!0);if(null===o||cl(o,1,12))return!0;e.month=o-1}function yl(t,e,n){var r=fl(t,e),i=qu(n,"days",r,"c"===t,!0),o=r<3?pl(1,e):hl(i,e,!0);if(!o&&0!==o||cl(o,1,7))return!0}var vl={};function bl(t,e,n){for(var r=Uu(e,n).split(Ms),i={format:r,idx:0,value:t,valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},o=r.length,a=!1;i.idx2029&&(n-=100)}t.year=n},vl.h=function(t){fl("h",t);var e=pl(2,t);if(12===e&&(e=0),null===e||cl(e,0,11))return!0;t.hours=e},vl.K=function(t){fl("K",t);var e=pl(2,t);if(null===e||cl(e,0,11))return!0;t.hours=e},vl.a=function(t,e){var n=qu(e,"dayPeriods",fl("a",t),!1,!0),r=hl([n.pm],t,!0);if(!r&&!hl([n.am],t,!0))return!0;t.pmHour=r},vl.H=function(t){fl("H",t);var e=pl(2,t);if(null===e||cl(e,0,23))return!0;t.hours=e},vl.k=function(t){fl("k",t);var e=pl(2,t);if(null===e||cl(e,1,24))return!0;t.hours=24===e?0:e},vl.m=function(t){fl("m",t);var e=pl(2,t);if(null===e||cl(e,0,59))return!0;t.minutes=e},vl.s=function(t){fl("s",t);var e=pl(2,t);if(null===e||cl(e,0,59))return!0;t.seconds=e},vl.S=function(t){var e=fl("S",t),n=t.value.substr(t.valueIdx,e),r=null;if(isNaN(parseInt(n,10))||(r=su(r=parseFloat("0."+n,10),3),r*=1e3,t.valueIdx+=e),null===r||cl(r,0,999))return!0;t.milliseconds=r},vl.z=function(t,e){var n=fl("z",t)<4,r=gl(t,e,{shortHours:n,optionalMinutes:n,localizedName:!0});if(r)return r},vl.Z=function(t,e){var n=fl("Z",t),r=gl(t,e,{noSeparator:n<4,zLiteral:5===n,localizedName:4===n});if(r)return r},vl.x=function(t,e){var n=fl("x",t),r=gl(t,e,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n});if(r)return r},vl.X=function(t,e){var n=fl("X",t),r=gl(t,e,{noSeparator:3!==n&&5!==n,optionalMinutes:1===n,zLiteral:!0});if(r)return r},vl.G=function(t,e){var n=qu(e,"eras",fl("G",t),!1,!0);if(null===hl([n[0],n[1]],t,!0))return!0},vl.e=function(t,e){return yl("e",t,e)},vl.c=function(t,e){return yl("c",t,e)};var wl={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},xl="literal";function Cl(t,e){var n=t[t.length-1];n&&n.type===xl?n.pattern+=e:t.push({type:xl,pattern:e})}function Sl(t){return"h"===t||"K"===t}function El(t,e){void 0===e&&(e=Ps);for(var n=Uu(t,_s(e)),r=[],i=$u.lastIndex=0,o=$u.exec(n);o;){var a=o[0];if(i=f&&(l.names={type:c.type,nameType:Hu(p),standAlone:c.standAlone===s})}r.push(l)}i=$u.lastIndex,o=$u.exec(n)}return it?t:n0;)e[n]=arguments[n+1];return Object.assign.apply(Object,[{},t].concat(e))},ac={calculateFixedTrackSize:function(t){return(t.max-t.min)/t.smallStep*t.fixedTickWidth},calculateValueFromTick:function(t,e){var n=e.min+t*e.smallStep;return e.vertical||e.reverse?Math.abs(n-e.max):n},calculateValueFromTrack:function(t,e,n){var r,i;if(n.vertical){var o=t.bottom;r=t.top-o,i=e.pageY-o}else{var a=t.left;r=t.right-a,i=e.pageX-a}return tc(n,i,r)},calculateTrackSize:function(t,e,n){return void 0===n&&(n=!0),t-(n?2*parseFloat(e,10):0)},calculateTicksCount:function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=1),Jl(t,e,n)+1},calculateTickSizes:function(t,e,n,r){for(var i=Math.floor((n-e)/r)+1,o=t/(n-e),a=[],s=0,u=0,l=0;lr?e-(n-r)+"px":e+(r-n)+"px"},sc.prototype.positionHandle=function(t){var e=this.props,n=e.max,r=e.min,i=e.reverse,o=e.vertical?"bottom":"left",a=this.trackWidth(),s=ac.trimValue(n,r,this.props.value);this.handlePosition=ac.calculateHandlePosition({min:r,max:n,reverse:i,value:s,trackWidth:a,handleWidth:t.offsetWidth}),t.style[o]=this.handlePosition+"px"},sc.prototype.positionSelection=function(t,e){var n=this.props,r=n.reverse,i=n.vertical?"height":"width",o=Math.floor(t.offsetWidth/2),a=this.handlePosition+o;r&&(a=this.trackWidth()-a),e.style[i]=a+"px"},sc.prototype.adjustPadding=function(t){var e=this.tickSizes.reduce(function(t,e){return t+e},0),n=this.trackWidth()-e;if(0!==n){var r=n+this.elementOffset(this.track);t.style.paddingTop=r+"px"}},sc.prototype.elementOffset=function(t){var e=this.props.vertical,n=getComputedStyle(t);return parseInt(e?n.bottom:n.left,10)},sc.prototype.elementSize=function(t){return this.props.vertical?t.clientHeight:t.clientWidth};var uc=function(t,e){void 0===t&&(t=0),this.handle={transform:"translateX("+t+"px)",transition:e}},lc=function(){},cc=function(t,e){var n=this;void 0===t&&(t=lc),void 0===e&&(e=lc),this.handlePosition=0,this.wrapperOffset=0,this.handleOffset=0,this.handleMargin=4,this.updateView=t,this.onChange=e,this.change=function(t){n.checked=t,n.updateView(n.updateModel(t?n.constrain:0)),n.onChange(t)},this.limit=function(t){return t>n.constrain?n.constrain:t<0?0:t},this.addAnimation=function(t){return t.transition=!0===t.transition?"all 200ms ease-out":"none",t},this.onPress=function(t){n.lastPressX=n.originalPressX=t.pageX},this.onRelease=function(t){var e=Math.abs(n.originalPressX-t.pageX);n.change(e<5?!n.checked:n.handlePosition>n.constrain/2)},this.onDrag=function(t){var e=t.pageX,r=n.coords,i=r.left,o=r.right;if(e>i&&eo&&n.updateView(n.updateModel(n.reverse?0:n.constrain)),e1||e._ignoreMouse||(wc(document,"mousemove",e._mousemove),wc(document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){xc(document,"mousemove",e._mousemove),xc(document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(wc(document,"pointermove",e._pointermove),wc(document,"pointerup",e._pointerup),wc(document,"pointercancel",e._pointerup),wc(document,"contextmenu",Sc),e._touchAction=t.target.style.touchAction,t.target.style.touchAction="none",e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(xc(document,"pointermove",e._pointermove),xc(document,"pointerup",e._pointerup),xc(document,"pointercancel",e._pointerup),xc(document,"contextmenu",Sc),t.target.style.touchAction=e._touchAction,e._releaseHandler(t))}};kc.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},kc.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},kc.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?wc(t,"pointerdown",this._pointerdown):(wc(t,"mousedown",this._mousedown),this._mouseOnly||(wc(t,"touchstart",this._touchstart),wc(t,"touchmove",this._touchmove),wc(t,"touchend",this._touchend)))},kc.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return xc(t,"pointerdown",this._pointerdown),xc(document,"pointermove",this._pointermove),xc(document,"pointerup",this._pointerup),xc(document,"contextmenu",Sc),void xc(document,"pointercancel",this._pointerup);xc(t,"mousedown",this._mousedown),this._mouseOnly||(xc(t,"touchstart",this._touchstart),xc(t,"touchmove",this._touchmove),xc(t,"touchend",this._touchend))},kc.prototype._usePointers=function(){return!this._mouseOnly&&kc.supportPointerEvent()},kc.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},kc.default=kc,n("AKJO");var Tc=function(){return function(){}}(),Dc=function(){return function(){}}(),Ic=n("t5A5"),Ac=i["\u0275cmf"](a,[xr],function(t){return i["\u0275mod"]([i["\u0275mpd"](512,i.ComponentFactoryResolver,i["\u0275CodegenComponentFactoryResolver"],[[8,[Cr.a,Cr.b,Cr.h,Cr.i,Cr.e,Cr.f,Cr.g,Sr.a,yi,xi,ki,Ai]],[3,i.ComponentFactoryResolver],i.NgModuleRef]),i["\u0275mpd"](5120,i.LOCALE_ID,i["\u0275angular_packages_core_core_s"],[[3,i.LOCALE_ID]]),i["\u0275mpd"](4608,Or.NgLocalization,Or.NgLocaleLocalization,[i.LOCALE_ID,[2,Or["\u0275angular_packages_common_common_a"]]]),i["\u0275mpd"](5120,i.APP_ID,i["\u0275angular_packages_core_core_h"],[]),i["\u0275mpd"](5120,i.IterableDiffers,i["\u0275angular_packages_core_core_q"],[]),i["\u0275mpd"](5120,i.KeyValueDiffers,i["\u0275angular_packages_core_core_r"],[]),i["\u0275mpd"](4608,Ar.DomSanitizer,Ar["\u0275DomSanitizerImpl"],[Or.DOCUMENT]),i["\u0275mpd"](6144,i.Sanitizer,null,[Ar.DomSanitizer]),i["\u0275mpd"](4608,Ar.HAMMER_GESTURE_CONFIG,Ar.HammerGestureConfig,[]),i["\u0275mpd"](5120,Ar.EVENT_MANAGER_PLUGINS,function(t,e,n,r,i,o,a,s){return[new Ar["\u0275DomEventsPlugin"](t,e,n),new Ar["\u0275KeyEventsPlugin"](r),new Ar["\u0275HammerGesturesPlugin"](i,o,a,s)]},[Or.DOCUMENT,i.NgZone,i.PLATFORM_ID,Or.DOCUMENT,Or.DOCUMENT,Ar.HAMMER_GESTURE_CONFIG,i["\u0275Console"],[2,Ar.HAMMER_LOADER]]),i["\u0275mpd"](4608,Ar.EventManager,Ar.EventManager,[Ar.EVENT_MANAGER_PLUGINS,i.NgZone]),i["\u0275mpd"](135680,Ar["\u0275DomSharedStylesHost"],Ar["\u0275DomSharedStylesHost"],[Or.DOCUMENT]),i["\u0275mpd"](4608,Ar["\u0275DomRendererFactory2"],Ar["\u0275DomRendererFactory2"],[Ar.EventManager,Ar["\u0275DomSharedStylesHost"],i.APP_ID]),i["\u0275mpd"](5120,eo,Xa,[]),i["\u0275mpd"](5120,Wo,Qa,[]),i["\u0275mpd"](4608,xa,Za,[Or.DOCUMENT,eo,Wo]),i["\u0275mpd"](5120,i.RendererFactory2,Ja,[Ar["\u0275DomRendererFactory2"],xa,i.NgZone]),i["\u0275mpd"](6144,Ar["\u0275SharedStylesHost"],null,[Ar["\u0275DomSharedStylesHost"]]),i["\u0275mpd"](4608,i.Testability,i.Testability,[i.NgZone]),i["\u0275mpd"](4608,Mi.AnimationBuilder,Ha,[i.RendererFactory2,Ar.DOCUMENT]),i["\u0275mpd"](4608,ns["\u0275angular_packages_forms_forms_j"],ns["\u0275angular_packages_forms_forms_j"],[]),i["\u0275mpd"](4608,rs.t,rs.t,[i.ComponentFactoryResolver,i.Injector,rs.hb,rs.u]),i["\u0275mpd"](4608,is.a,is.a,[]),i["\u0275mpd"](5120,is.c,is.d,[is.a]),i["\u0275mpd"](4608,Wr.a,Wr.a,[]),i["\u0275mpd"](4608,os.c,os.c,[]),i["\u0275mpd"](4608,os.h,os.b,[]),i["\u0275mpd"](5120,os.j,os.k,[]),i["\u0275mpd"](4608,os.i,os.i,[os.c,os.h,os.j]),i["\u0275mpd"](4608,os.g,os.a,[]),i["\u0275mpd"](5120,os.e,os.l,[os.i,os.g]),i["\u0275mpd"](4608,qr.k,qr.q,[Or.DOCUMENT,i.PLATFORM_ID,qr.o]),i["\u0275mpd"](4608,qr.r,qr.r,[qr.k,qr.p]),i["\u0275mpd"](5120,qr.a,function(t,e){return[t,new fs(e)]},[qr.r,Er.o]),i["\u0275mpd"](4608,qr.n,qr.n,[]),i["\u0275mpd"](6144,qr.l,null,[qr.n]),i["\u0275mpd"](4608,qr.j,qr.j,[qr.l]),i["\u0275mpd"](6144,qr.b,null,[qr.j]),i["\u0275mpd"](4608,qr.f,qr.m,[qr.b,i.Injector]),i["\u0275mpd"](4608,qr.c,qr.c,[qr.f]),i["\u0275mpd"](4608,Dl,Gl,[i.LOCALE_ID]),i["\u0275mpd"](4608,ns.FormBuilder,ns.FormBuilder,[]),i["\u0275mpd"](5120,Er.a,Er.D,[Er.o]),i["\u0275mpd"](4608,Er.h,Er.h,[]),i["\u0275mpd"](6144,Er.j,null,[Er.h]),i["\u0275mpd"](135680,Er.u,Er.u,[Er.o,i.NgModuleFactoryLoader,i.Compiler,i.Injector,Er.j]),i["\u0275mpd"](4608,Er.i,Er.i,[]),i["\u0275mpd"](5120,Er.H,Er.A,[Er.o,Or.ViewportScroller,Er.k]),i["\u0275mpd"](5120,Er.l,Er.G,[Er.E]),i["\u0275mpd"](5120,i.APP_BOOTSTRAP_LISTENER,function(t){return[t]},[Er.l]),i["\u0275mpd"](4608,Kl.a,Kl.a,[$l.c]),i["\u0275mpd"](1073742336,Or.CommonModule,Or.CommonModule,[]),i["\u0275mpd"](512,wr,wr,[]),i["\u0275mpd"](512,i.ErrorHandler,Yl,[wr]),i["\u0275mpd"](1024,i.NgProbeToken,function(){return[Er.z()]},[]),i["\u0275mpd"](512,Er.E,Er.E,[i.Injector]),i["\u0275mpd"](1024,i.APP_INITIALIZER,function(t,e){return[Ar["\u0275angular_packages_platform_browser_platform_browser_j"](t),Er.F(e)]},[[2,i.NgProbeToken],Er.E]),i["\u0275mpd"](512,i.ApplicationInitStatus,i.ApplicationInitStatus,[[2,i.APP_INITIALIZER]]),i["\u0275mpd"](131584,i.ApplicationRef,i.ApplicationRef,[i.NgZone,i["\u0275Console"],i.Injector,i.ErrorHandler,i.ComponentFactoryResolver,i.ApplicationInitStatus]),i["\u0275mpd"](1073742336,i.ApplicationModule,i.ApplicationModule,[i.ApplicationRef]),i["\u0275mpd"](1073742336,Ar.BrowserModule,Ar.BrowserModule,[[3,Ar.BrowserModule]]),i["\u0275mpd"](1073742336,es,es,[]),i["\u0275mpd"](1073742336,ns["\u0275angular_packages_forms_forms_bc"],ns["\u0275angular_packages_forms_forms_bc"],[]),i["\u0275mpd"](1073742336,ns.FormsModule,ns.FormsModule,[]),i["\u0275mpd"](1073742336,rs.c,rs.c,[]),i["\u0275mpd"](1073742336,rs.f,rs.f,[]),i["\u0275mpd"](1073742336,rs.g,rs.g,[]),i["\u0275mpd"](1073742336,rs.k,rs.k,[]),i["\u0275mpd"](1073742336,rs.l,rs.l,[]),i["\u0275mpd"](1073742336,rs.q,rs.q,[]),i["\u0275mpd"](1073742336,rs.r,rs.r,[]),i["\u0275mpd"](1073742336,rs.v,rs.v,[]),i["\u0275mpd"](1073742336,rs.z,rs.z,[]),i["\u0275mpd"](1073742336,rs.C,rs.C,[]),i["\u0275mpd"](1073742336,rs.F,rs.F,[]),i["\u0275mpd"](1073742336,rs.I,rs.I,[]),i["\u0275mpd"](1073742336,rs.N,rs.N,[]),i["\u0275mpd"](1073742336,rs.R,rs.R,[]),i["\u0275mpd"](1073742336,rs.U,rs.U,[]),i["\u0275mpd"](1073742336,rs.V,rs.V,[]),i["\u0275mpd"](1073742336,rs.w,rs.w,[]),i["\u0275mpd"](1073742336,Zl.a,Zl.a,[]),i["\u0275mpd"](1073742336,Xl.a,Xl.a,[]),i["\u0275mpd"](1073742336,Ql.a,Ql.a,[]),i["\u0275mpd"](1024,Er.y,Er.B,[[3,Er.o]]),i["\u0275mpd"](512,Er.w,Er.c,[]),i["\u0275mpd"](512,Er.b,Er.b,[]),i["\u0275mpd"](512,Or.LocationStrategy,Or.PathLocationStrategy,[Or.PlatformLocation,[2,Or.APP_BASE_HREF]]),i["\u0275mpd"](512,Or.Location,Or.Location,[Or.LocationStrategy]),i["\u0275mpd"](512,i.Compiler,i.Compiler,[]),i["\u0275mpd"](512,i.NgModuleFactoryLoader,i.SystemJsNgModuleLoader,[i.Compiler,[2,i.SystemJsNgModuleLoaderConfig]]),i["\u0275mpd"](1024,Er.m,function(){return[[{path:"",redirectTo:"/authentication/login",pathMatch:"full"},{path:"",component:Kr,children:[{path:"simple-page",loadChildren:"./simple-page/simple-page.module#SimplePageModule"}]},{path:"",component:Kr,children:[{path:"admin",loadChildren:"./administrativo/administrativo.module#AdministrativoModule"}]},{path:"",component:Kr,children:[{path:"user",loadChildren:"./user/user.module#UserModule"}]},{path:"",component:Kr,children:[{path:"companies",loadChildren:"./companies/companies.module#CompaniesModule"}]},{path:"",component:Kr,children:[{path:"holdaysCompanies",loadChildren:"./holdaysCompanies/holdays-companies.module#HoldaysCompaniesModule"}]},{path:"",component:Kr,children:[{path:"holidayDatelimit",loadChildren:"./holidayDatelimit/holiday-date-limit.module#HolidayDateLimitModule"}]},{path:"",component:Kr,children:[{path:"holidaysCountry",loadChildren:"./holidays/holidays.module#HolidaysModule"}]},{path:"",component:Kr,children:[{path:"concepts",loadChildren:"./concepts/concepts.module#ConceptstModule"}]},{path:"",component:Kr,children:[{path:"other-clients",loadChildren:"./clients-other/clients-other.module#ClientsOtherModule"}]},{path:"",component:Kr,children:[{path:"massive-concepts",loadChildren:"./concepts/load-massive-concepts/load-massive-concepts.module#LoadMassiveConceptsModule"}]},{path:"",component:Kr,children:[{path:"Audit",loadChildren:"./audit/audit.module#AuditModule"}]},{path:"",component:Kr,children:[{path:"files",loadChildren:"./files/files.module#FilesModule"}]},{path:"",component:vi,children:[{path:"validator",loadChildren:"./validator/validator.module#ValidatorModule"}]},{path:"",component:Kr,children:[{path:"dashboard",loadChildren:"./dashboard/dashboard.module#DashboardModule"}]},{path:"",component:Ci,children:[{path:"authentication",loadChildren:"./authentication/authentication.module#AuthenticationModule"}]},{path:"**",redirectTo:"/authentication/login",pathMatch:"full"}]]},[]),i["\u0275mpd"](256,Er.k,{},[]),i["\u0275mpd"](1024,Er.o,Er.C,[i.ApplicationRef,Er.w,Er.b,Or.Location,i.Injector,i.NgModuleFactoryLoader,i.Compiler,Er.m,Er.k,[2,Er.v],[2,Er.n]]),i["\u0275mpd"](1073742336,Er.s,Er.s,[[2,Er.y],[2,Er.o]]),i["\u0275mpd"](1073742336,os.f,os.f,[]),i["\u0275mpd"](1073742336,qr.e,qr.e,[]),i["\u0275mpd"](1073742336,qr.d,qr.d,[]),i["\u0275mpd"](1073742336,Wl,Wl,[]),i["\u0275mpd"](1073742336,Tc,Tc,[]),i["\u0275mpd"](1073742336,Dc,Dc,[]),i["\u0275mpd"](1073742336,Ic.b,Ic.b,[]),i["\u0275mpd"](1073742336,ns.ReactiveFormsModule,ns.ReactiveFormsModule,[]),i["\u0275mpd"](1073742336,$l.b,$l.b,[]),i["\u0275mpd"](1073742336,a,a,[]),i["\u0275mpd"](256,i["\u0275APP_ROOT"],!0,[]),i["\u0275mpd"](256,ts,"BrowserAnimations",[]),i["\u0275mpd"](256,qr.o,"XSRF-TOKEN",[]),i["\u0275mpd"](256,qr.p,"X-XSRF-TOKEN",[])])});o.production&&Object(i.enableProdMode)(),Ar.platformBrowser().bootstrapModuleFactory(Ac).catch(function(t){return console.log(t)})},zVCm:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("CcnG"),i=function(){function t(){this.closeToastEvent=new r.EventEmitter}return t.prototype.close=function(t){t.preventDefault(),this.closeToastEvent.next(this.toast)},t}()},zo3G:function(t,e,n){"use strict";var r=n("mrSG"),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.__extends(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n("h9Dq").a),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(n("CS9Q").a);n.d(e,"a",function(){return a});var a=new o(i)},zotm:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("rPjj"),i=n("Fxb1"),o=n("6blF");function a(t,e,n,a,s){if(void 0===s&&(s=new r.a(t,n,a)),!s.closed)return e instanceof o.a?e.subscribe(s):Object(i.a)(e)(s)}}},[[0,8]]]);