(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{"+5jU":function(t,e,n){var r=n("HMbd");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},"+6+2":function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setMinutes(0,0,0),e}},"+924":function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var r=n("9AQC");function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function s(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var i=t[r];try{n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e){return!!Object(r.l)(t)&&(Object(r.k)(e)?e.test(t):"string"==typeof e&&-1!==t.indexOf(e))}},"+A1k":function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s}));var r=n("RQwI");function i(){return!Object(r.a)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function o(t,e){return t.require(e)}function s(e){var n;try{n=o(t,e)}catch(i){}try{var r=o(t,"process").cwd;n=o(t,r()+"/node_modules/"+e)}catch(i){}return n}}).call(this,n("3UD+")(t))},"+W7E":function(t,e,n){"use strict";var r=n("Q1FS"),i=n("mbIT"),o=n("pshJ"),s=n("q3Kh");e.fromEventPattern=function t(e,n,a){return a?t(e,n).pipe(s.map((function(t){return i.isArray(t)?a.apply(void 0,t):a(t)}))):new r.Observable((function(t){var r,i=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.next(1===e.length?e[0]:e)};try{r=e(i)}catch(s){return void t.error(s)}if(o.isFunction(n))return function(){return n(i,r)}}))}},"+Zhm":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("xHZb"),s=n("zB/H"),a=n("AFwO"),c=n("Mxlh"),l=n("FiyT");e.ReplaySubject=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(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){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.isStopped||(this._events.push(new u(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 c.ObjectUnsubscribedError;if(this.isStopped||this.hasError?e=s.Subscription.EMPTY:(this.observers.push(t),e=new l.SubjectSubscription(this,t)),i&&t.add(t=new a.ObserveOnSubscriber(t,i)),n)for(var u=0;u<o&&!t.closed;u++)t.next(r[u]);else for(u=0;u<o&&!t.closed;u++)t.next(r[u].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.Subject);var u=function(){return function(t,e){this.time=t,this.value=e}}()},"+dQi":function(t,e,n){!function(t){"use strict";t.defineMode("javascript",(function(e,n){var r,i,o=e.indentUnit,s=n.statementIndent,a=n.jsonld,c=n.json||a,l=!1!==n.trackScope,u=n.typescript,h=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),i=t("keyword d"),o=t("operator"),s={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:o,typeof:o,instanceof:o,true:s,false:s,null:s,undefined:s,NaN:s,Infinity:s,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(t,e,n){return r=t,i=n,e}function g(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,i=!1;if(a&&"@"==t.peek()&&t.match(p))return e.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(e.tokenize=g),m("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&t.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&t.eat(">"))return m("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return t.eat("*")?(e.tokenize=b,b(t,e)):t.eat("/")?(t.skipToEnd(),m("comment","comment")):Jt(t,e,1)?(function(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(t.eat("="),m("operator","operator",t.current()));if("`"==r)return e.tokenize=v,v(t,e);if("#"==r&&"!"==t.peek())return t.skipToEnd(),m("meta","meta");if("#"==r&&t.eatWhile(h))return m("variable","property");if("<"==r&&t.match("!--")||"-"==r&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),m("comment","comment");if(f.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-|&?]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),"?"==r&&t.eat(".")?m("."):m("operator","operator",t.current());if(h.test(r)){t.eatWhile(h);var i=t.current();if("."!=e.lastType){if(d.propertyIsEnumerable(i)){var o=d[i];return m(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function b(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=g;break}r="*"==n}return m("comment","comment")}function v(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",t.current())}function y(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var i=0,o=!1,s=n-1;s>=0;--s){var a=t.string.charAt(s),c="([{}])".indexOf(a);if(c>=0&&c<3){if(!i){++s;break}if(0==--i){"("==a&&(o=!0);break}}else if(c>=3&&c<6)++i;else if(h.test(a))o=!0;else if(/["'\/`]/.test(a))for(;;--s){if(0==s)return;if(t.string.charAt(s-1)==a&&"\\"!=t.string.charAt(s-2)){s--;break}}else if(o&&!i){++s;break}}o&&!i&&(e.fatArrowAt=s)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function S(t,e){if(!l)return!1;for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}function x(t,e,n,r,i){var o=t.cc;for(C.state=t,C.stream=i,C.marked=null,C.cc=o,C.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():c?B:V)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&S(t,r)?"variable-2":e}}var C={state:null,column:null,marked:null,cc:null};function O(){for(var t=arguments.length-1;t>=0;t--)C.cc.push(arguments[t])}function T(){return O.apply(null,arguments),!0}function E(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function k(t){var e=C.state;if(C.marked="def",l){if(e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=function t(e,n){if(n){if(n.block){var r=t(e,n.prev);return r?r==n.prev?n:new D(r,n.vars,!0):null}return E(e,n.vars)?n:new D(n.prev,new j(e,n.vars),!1)}return null}(t,e.context);if(null!=r)return void(e.context=r)}else if(!E(t,e.localVars))return void(e.localVars=new j(t,e.localVars));n.globalVars&&!E(t,e.globalVars)&&(e.globalVars=new j(t,e.globalVars))}}function A(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function D(t,e,n){this.prev=t,this.vars=e,this.block=n}function j(t,e){this.name=t,this.next=e}var I=new j("this",new j("arguments",null));function P(){C.state.context=new D(C.state.context,C.state.localVars,!1),C.state.localVars=I}function M(){C.state.context=new D(C.state.context,C.state.localVars,!0),C.state.localVars=null}function N(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function F(t,e){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,C.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function R(){var t=C.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function L(t){return function e(n){return n==t?T():";"==t||"}"==n||")"==n||"]"==n?O():T(e)}}function V(t,e){return"var"==t?T(F("vardef",e),xt,L(";"),R):"keyword a"==t?T(F("form"),z,V,R):"keyword b"==t?T(F("form"),V,R):"keyword d"==t?C.stream.match(/^\s*$/,!1)?T():T(F("stat"),U,L(";"),R):"debugger"==t?T(L(";")):"{"==t?T(F("}"),M,at,R,N):";"==t?T():"if"==t?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==R&&C.state.cc.pop()(),T(F("form"),z,V,R,At)):"function"==t?T(Pt):"for"==t?T(F("form"),M,Dt,V,N,R):"class"==t||u&&"interface"==e?(C.marked="keyword",T(F("form","class"==t?t:e),Lt,R)):"variable"==t?u&&"declare"==e?(C.marked="keyword",T(V)):u&&("module"==e||"enum"==e||"type"==e)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==e?T(Yt):"type"==e?T(Nt,L("operator"),dt,L(";")):T(F("form"),Ct,L("{"),F("}"),at,R,R)):u&&"namespace"==e?(C.marked="keyword",T(F("form"),B,V,R)):u&&"abstract"==e?(C.marked="keyword",T(V)):T(F("stat"),tt):"switch"==t?T(F("form"),z,L("{"),F("}","switch"),M,at,R,R,N):"case"==t?T(B,L(":")):"default"==t?T(L(":")):"catch"==t?T(F("form"),P,H,V,R,N):"export"==t?T(F("stat"),Gt,R):"import"==t?T(F("stat"),Wt,R):"async"==t?T(V):"@"==e?T(B,V):O(F("stat"),B,L(";"),R)}function H(t){if("("==t)return T(Ft,L(")"))}function B(t,e){return W(t,e,!1)}function G(t,e){return W(t,e,!0)}function z(t){return"("!=t?O():T(F(")"),U,L(")"),R)}function W(t,e,n){if(C.state.fatArrowAt==C.stream.start){var r=n?Q:Y;if("("==t)return T(P,F(")"),ot(Ft,")"),R,L("=>"),r,N);if("variable"==t)return O(P,Ct,L("=>"),r,N)}var i=n?X:q;return _.hasOwnProperty(t)?T(i):"function"==t?T(Pt,i):"class"==t||u&&"interface"==e?(C.marked="keyword",T(F("form"),Rt,R)):"keyword c"==t||"async"==t?T(n?G:B):"("==t?T(F(")"),U,L(")"),R,i):"operator"==t||"spread"==t?T(n?G:B):"["==t?T(F("]"),Kt,R,i):"{"==t?st(nt,"}",null,i):"quasi"==t?O($,i):"new"==t?T(function(t){return function(e){return"."==e?T(t?Z:J):"variable"==e&&u?T(_t,t?X:q):O(t?G:B)}}(n)):T()}function U(t){return t.match(/[;\}\)\],]/)?O():O(B)}function q(t,e){return","==t?T(U):X(t,e,!1)}function X(t,e,n){var r=0==n?q:X,i=0==n?B:G;return"=>"==t?T(P,n?Q:Y,N):"operator"==t?/\+\+|--/.test(e)||u&&"!"==e?T(r):u&&"<"==e&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(F(">"),ot(dt,">"),R,r):"?"==e?T(B,L(":"),i):T(i):"quasi"==t?O($,r):";"!=t?"("==t?st(G,")","call",r):"."==t?T(et,r):"["==t?T(F("]"),U,L("]"),R,r):u&&"as"==e?(C.marked="keyword",T(dt,r)):"regexp"==t?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),T(i)):void 0:void 0}function $(t,e){return"quasi"!=t?O():"${"!=e.slice(e.length-2)?T($):T(U,K)}function K(t){if("}"==t)return C.marked="string-2",C.state.tokenize=v,T($)}function Y(t){return y(C.stream,C.state),O("{"==t?V:B)}function Q(t){return y(C.stream,C.state),O("{"==t?V:G)}function J(t,e){if("target"==e)return C.marked="keyword",T(q)}function Z(t,e){if("target"==e)return C.marked="keyword",T(X)}function tt(t){return":"==t?T(R,V):O(q,L(";"),R)}function et(t){if("variable"==t)return C.marked="property",T()}function nt(t,e){return"async"==t?(C.marked="property",T(nt)):"variable"==t||"keyword"==C.style?(C.marked="property","get"==e||"set"==e?T(rt):(u&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),T(it))):"number"==t||"string"==t?(C.marked=a?"property":C.style+" property",T(it)):"jsonld-keyword"==t?T(it):u&&A(e)?(C.marked="keyword",T(nt)):"["==t?T(B,ct,L("]"),it):"spread"==t?T(G,it):"*"==e?(C.marked="keyword",T(nt)):":"==t?O(it):void 0;var n}function rt(t){return"variable"!=t?O(it):(C.marked="property",T(Pt))}function it(t){return":"==t?T(G):"("==t?O(Pt):void 0}function ot(t,e,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var s=C.state.lexical;return"call"==s.info&&(s.pos=(s.pos||0)+1),T((function(n,r){return n==e||r==e?O():O(t)}),r)}return i==e||o==e?T():n&&n.indexOf(";")>-1?O(t):T(L(e))}return function(n,i){return n==e||i==e?T():O(t,r)}}function st(t,e,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return T(F(e,n),ot(t,e),R)}function at(t){return"}"==t?T():O(V,at)}function ct(t,e){if(u){if(":"==t)return T(dt);if("?"==e)return T(ct)}}function lt(t,e){if(u&&(":"==t||"in"==e))return T(dt)}function ut(t){if(u&&":"==t)return C.stream.match(/^\s*\w+\s+is\b/,!1)?T(B,ht,dt):T(dt)}function ht(t,e){if("is"==e)return C.marked="keyword",T()}function dt(t,e){return"keyof"==e||"typeof"==e||"infer"==e||"readonly"==e?(C.marked="keyword",T("typeof"==e?G:dt)):"variable"==t||"void"==e?(C.marked="type",T(yt)):"|"==e||"&"==e?T(dt):"string"==t||"number"==t||"atom"==t?T(yt):"["==t?T(F("]"),ot(dt,"]",","),R,yt):"{"==t?T(F("}"),pt,R,yt):"("==t?T(ot(vt,")"),ft,yt):"<"==t?T(ot(dt,">"),dt):"quasi"==t?O(gt,yt):void 0}function ft(t){if("=>"==t)return T(dt)}function pt(t){return t.match(/[\}\)\]]/)?T():","==t||";"==t?T(pt):O(mt,pt)}function mt(t,e){return"variable"==t||"keyword"==C.style?(C.marked="property",T(mt)):"?"==e||"number"==t||"string"==t?T(mt):":"==t?T(dt):"["==t?T(L("variable"),lt,L("]"),mt):"("==t?O(Mt,mt):t.match(/[;\}\)\],]/)?void 0:T()}function gt(t,e){return"quasi"!=t?O():"${"!=e.slice(e.length-2)?T(gt):T(dt,bt)}function bt(t){if("}"==t)return C.marked="string-2",C.state.tokenize=v,T(gt)}function vt(t,e){return"variable"==t&&C.stream.match(/^\s*[?:]/,!1)||"?"==e?T(vt):":"==t?T(dt):"spread"==t?T(vt):O(dt)}function yt(t,e){return"<"==e?T(F(">"),ot(dt,">"),R,yt):"|"==e||"."==t||"&"==e?T(dt):"["==t?T(dt,L("]"),yt):"extends"==e||"implements"==e?(C.marked="keyword",T(dt)):"?"==e?T(dt,L(":"),dt):void 0}function _t(t,e){if("<"==e)return T(F(">"),ot(dt,">"),R,yt)}function wt(){return O(dt,St)}function St(t,e){if("="==e)return T(dt)}function xt(t,e){return"enum"==e?(C.marked="keyword",T(Yt)):O(Ct,ct,Et,kt)}function Ct(t,e){return u&&A(e)?(C.marked="keyword",T(Ct)):"variable"==t?(k(e),T()):"spread"==t?T(Ct):"["==t?st(Tt,"]"):"{"==t?st(Ot,"}"):void 0}function Ot(t,e){return"variable"!=t||C.stream.match(/^\s*:/,!1)?("variable"==t&&(C.marked="property"),"spread"==t?T(Ct):"}"==t?O():"["==t?T(B,L("]"),L(":"),Ot):T(L(":"),Ct,Et)):(k(e),T(Et))}function Tt(){return O(Ct,Et)}function Et(t,e){if("="==e)return T(G)}function kt(t){if(","==t)return T(xt)}function At(t,e){if("keyword b"==t&&"else"==e)return T(F("form","else"),V,R)}function Dt(t,e){return"await"==e?T(Dt):"("==t?T(F(")"),jt,R):void 0}function jt(t){return"var"==t?T(xt,It):"variable"==t?T(It):O(It)}function It(t,e){return")"==t?T():";"==t?T(It):"in"==e||"of"==e?(C.marked="keyword",T(B,It)):O(B,It)}function Pt(t,e){return"*"==e?(C.marked="keyword",T(Pt)):"variable"==t?(k(e),T(Pt)):"("==t?T(P,F(")"),ot(Ft,")"),R,ut,V,N):u&&"<"==e?T(F(">"),ot(wt,">"),R,Pt):void 0}function Mt(t,e){return"*"==e?(C.marked="keyword",T(Mt)):"variable"==t?(k(e),T(Mt)):"("==t?T(P,F(")"),ot(Ft,")"),R,ut,N):u&&"<"==e?T(F(">"),ot(wt,">"),R,Mt):void 0}function Nt(t,e){return"keyword"==t||"variable"==t?(C.marked="type",T(Nt)):"<"==e?T(F(">"),ot(wt,">"),R):void 0}function Ft(t,e){return"@"==e&&T(B,Ft),"spread"==t?T(Ft):u&&A(e)?(C.marked="keyword",T(Ft)):u&&"this"==t?T(ct,Et):O(Ct,ct,Et)}function Rt(t,e){return"variable"==t?Lt(t,e):Vt(t,e)}function Lt(t,e){if("variable"==t)return k(e),T(Vt)}function Vt(t,e){return"<"==e?T(F(">"),ot(wt,">"),R,Vt):"extends"==e||"implements"==e||u&&","==t?("implements"==e&&(C.marked="keyword"),T(u?dt:B,Vt)):"{"==t?T(F("}"),Ht,R):void 0}function Ht(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||u&&A(e))&&C.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",T(Ht)):"variable"==t||"keyword"==C.style?(C.marked="property",T(Bt,Ht)):"number"==t||"string"==t?T(Bt,Ht):"["==t?T(B,ct,L("]"),Bt,Ht):"*"==e?(C.marked="keyword",T(Ht)):u&&"("==t?O(Mt,Ht):";"==t||","==t?T(Ht):"}"==t?T():"@"==e?T(B,Ht):void 0}function Bt(t,e){if("!"==e)return T(Bt);if("?"==e)return T(Bt);if(":"==t)return T(dt,Et);if("="==e)return T(G);var n=C.state.lexical.prev;return O(n&&"interface"==n.info?Mt:Pt)}function Gt(t,e){return"*"==e?(C.marked="keyword",T($t,L(";"))):"default"==e?(C.marked="keyword",T(B,L(";"))):"{"==t?T(ot(zt,"}"),$t,L(";")):O(V)}function zt(t,e){return"as"==e?(C.marked="keyword",T(L("variable"))):"variable"==t?O(G,zt):void 0}function Wt(t){return"string"==t?T():"("==t?O(B):"."==t?O(q):O(Ut,qt,$t)}function Ut(t,e){return"{"==t?st(Ut,"}"):("variable"==t&&k(e),"*"==e&&(C.marked="keyword"),T(Xt))}function qt(t){if(","==t)return T(Ut,qt)}function Xt(t,e){if("as"==e)return C.marked="keyword",T(Ut)}function $t(t,e){if("from"==e)return C.marked="keyword",T(B)}function Kt(t){return"]"==t?T():O(ot(G,"]"))}function Yt(){return O(F("form"),Ct,L("{"),F("}"),ot(Qt,"}"),R,R)}function Qt(){return O(Ct,Et)}function Jt(t,e,n){return e.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return P.lex=M.lex=!0,N.lex=!0,R.lex=!0,{startState:function(t){var e={tokenize:g,lastType:"sof",cc:[],lexical:new w((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new D(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),y(t,e)),e.tokenize!=b&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",x(e,n,r,i,t))},indent:function(e,r){if(e.tokenize==b||e.tokenize==v)return t.Pass;if(e.tokenize!=g)return 0;var i,a=r&&r.charAt(0),c=e.lexical;if(!/^\s*else\b/.test(r))for(var l=e.cc.length-1;l>=0;--l){var u=e.cc[l];if(u==R)c=c.prev;else if(u!=At&&u!=N)break}for(;("stat"==c.type||"form"==c.type)&&("}"==a||(i=e.cc[e.cc.length-1])&&(i==q||i==X)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;s&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var h=c.type,d=a==h;return"vardef"==h?c.indented+("operator"==e.lastType||","==e.lastType?c.info.length+1:0):"form"==h&&"{"==a?c.indented:"form"==h?c.indented+o:"stat"==h?c.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||f.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?s||o:0):"switch"!=c.info||d||0==n.doubleIndentSwitch?c.align?c.column+(d?0:1):c.indented+(d?0:o):c.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:a,jsonMode:c,expressionAllowed:Jt,skipExpression:function(e){x(e,"atom","atom","true",new t.StringStream("",2,null))}}})),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n("VrN/"))},"+f+M":function(t,e,n){var r=n("iWRJ");t.exports=function(t,e){return r(t)-r(e)}},"+nIA":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("ofXK"),i=n("fXoL");let o=(()=>{class t{}return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[],imports:[[r.c]]}),t})()},"+nbD":function(t,e,n){var r=n("yNUO"),i=n("iUbB"),o=n("hLnY");t.exports=function(t,e){var n=r(t),s=Number(e),a=o(n);return i(n,s-a)}},"+rOU":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return c}));var r=n("fXoL"),i=n("ofXK");function o(){throw Error("Host already has a portal attached")}class s{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&o(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class a extends s{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class c extends s{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class l extends s{constructor(t){super(),this.element=t instanceof r.ElementRef?t.nativeElement:t}}class u{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&o(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof c?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(this._attachedPortal=t,this.attachDomPortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class h extends u{constructor(t,e,n,r,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.detectChanges(),n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let d=(()=>{class t extends c{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.ViewContainerRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[r["\u0275\u0275InheritDefinitionFeature"]]}),t})(),f=(()=>{class t extends u{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new r.EventEmitter,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),r=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ComponentFactoryResolver),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](i.e))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r["\u0275\u0275InheritDefinitionFeature"]]}),t})(),p=(()=>{class t extends f{}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[r["\u0275\u0275ProvidersFeature"]([{provide:f,useExisting:t}]),r["\u0275\u0275InheritDefinitionFeature"]]}),t})();const m=r["\u0275\u0275getInheritedFactory"](p);let g=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})()},"+vT+":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.audit=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=i.innerSubscribe(e,new i.SimpleInnerSubscriber(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.SimpleOuterSubscriber)},"+zZ+":function(t,e,n){var r=n("uPm0"),i=n("yNUO");t.exports=function(t,e){var n=i(t),o=i(e);return 4*(n.getFullYear()-o.getFullYear())+(r(n)-r(o))}},"/I2W":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("Fr4G"),i=n("fXoL"),o=n("jhN1");let s=(()=>{class t{constructor(t,e){this._userService=t,this._sanitizer=e}updateDigistoreURL(t,e,n){let r;switch(t=t.replace("+","%2B"),this._userService.portal_lang_code){case"de":r="416282";break;case"mk":case"hu":case"en":r="356923";break;case"cz":case"sk":r="438159"}return this._sanitizer.bypassSecurityTrustResourceUrl(`https://www.digistore24.com/product/${r}?email=${t}&first_name=${e}&last_name=${n}`)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.a),i["\u0275\u0275inject"](o.b))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},"/JYr":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("q3Kh"),o=n("gTqA"),s=n("wjEo");e.exhaustMap=function t(e,n){return n?function(r){return r.pipe(t((function(t,r){return o.from(e(t,r)).pipe(i.map((function(e,i){return n(t,e,r,i)})))})))}:function(t){return t.lift(new a(e))}};var a=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new s.SimpleInnerSubscriber(this),n=this.destination;n.add(e);var r=s.innerSubscribe(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(s.SimpleOuterSubscriber)},"/LN1":function(t,e,n){var r=n("ZmXw");t.exports=function(t,e){var n=Number(e);return r(t,12*n)}},"/Tkk":function(t,e,n){var r=n("CXhC");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}},"/d8p":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("EY2u");function o(t=-1){return e=>0===t?Object(i.b)():e.lift(new s(t<0?-1:t-1,e))}class s{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new a(t,this.count,this.source))}}class a extends r.a{constructor(t,e,n){super(t),this.count=e,this.source=n}complete(){if(!this.isStopped){const{source:t,count:e}=this;if(0===e)return super.complete();e>-1&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}}}},"/uUt":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))}}class s extends r.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}},0:function(t,e,n){t.exports=n("zUnb")},"02Lk":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t,e){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.keySelector=t,this.flushes=e}call(t,e){return e.subscribe(new s(t,this.keySelector,this.flushes))}}class s extends r.b{constructor(t,e,n){super(t),this.keySelector=e,this.values=new Set,n&&this.add(Object(r.c)(n,new r.a(this)))}notifyNext(){this.values.clear()}notifyError(t){this._error(t)}_next(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)}_useKeySelector(t){let e;const{destination:n}=this;try{e=this.keySelector(t)}catch(r){return void n.error(r)}this._finalizeNext(e,t)}_finalizeNext(t,e){const{values:n}=this;n.has(t)||(n.add(t),this.destination.next(e))}}},"04ZW":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("DH7j"),o=n("n6bG"),s=n("lJxs");function a(t,e,n){return n?a(t,e).pipe(Object(s.a)(t=>Object(i.a)(t)?n(...t):n(t))):new r.a(n=>{const r=(...t)=>n.next(1===t.length?t[0]:t);let i;try{i=t(r)}catch(s){return void n.error(s)}if(Object(o.a)(e))return()=>e(r,i)})}},"05l1":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("jtHE"),i=n("oB13");function o(t,e,n,o){n&&"function"!=typeof n&&(o=n);const s="function"==typeof n?n:void 0,a=new r.a(t,e,o);return t=>Object(i.a)(()=>a,s)(t)}},"067Y":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("1pIY"),s=n("FWf1"),a=n("p0+S"),c=n("nzqU");e.windowTime=function(t){var e=o.async,n=null,r=Number.POSITIVE_INFINITY;return c.isScheduler(arguments[3])&&(e=arguments[3]),c.isScheduler(arguments[2])?e=arguments[2]:a.isNumeric(arguments[2])&&(r=Number(arguments[2])),c.isScheduler(arguments[1])?e=arguments[1]:a.isNumeric(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new l(t,n,r,e))}};var l=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(i.Subject),h=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();if(null!==r&&r>=0){var c={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(p,n,{subscriber:s,window:a,context:null})),s.add(o.schedule(f,r,c))}else s.add(o.schedule(d,n,{subscriber:s,window:a,windowTimeSpan:n}));return s}return r(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new u;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(s.Subscriber);function d(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function f(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s={action:this,subscription:null};s.subscription=r.schedule(p,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function p(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}},"0AqG":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("LRne"),i=n("24nb"),o=n("MCLT"),s=n("Fr4G"),a=n("yrbL"),c=n("dNeE"),l=n("AytR"),u=n("ywEm"),h=n("fXoL"),d=n("tk/3");let f=(()=>{class t{constructor(t,e,n,r){this._entityService=t,this._userService=e,this._http=n,this._ssr=r,this.today=null,this._ssr.isBrowser&&this.setCurrentTimestamp()}getCustomerInfo(){return this._entityService.getEntityInfo("portal_member",{columns:["**"],limit:1,offset:0,filter_by:[{attribute:"id",operator:"=",value:this._userService.client.portal_member.id}],search_by:[]}).pipe(Object(a.map)(t=>t[0]))}getOrders(t=null){let e={columns:["*"],limit:1e3,filter_by:[]};return void 0===t&&null===t||(t.portal_member_id&&Object(o.isNumber)(t.customer)&&(t.portal_member_id=[t.portal_member_id]),e.filter_by.push({attribute:"portal_member_id",operator:"in",value:t.portal_member_id})),this._entityService.getEntity("content_creator",e)}getSingleCustomerOrders(t){let e={columns:["*"],limit:1e3,order_by:[{column:"occurred_at",ascending:!0}]};return t&&(e.filter_by=[{attribute:"ownerships.course_id",operator:"=",value:t}]),this._entityService.getEntity("order",e)}setLessonProgress(t,e=3){return Object(r.a)(this.getLessonProgress(t).subscribe(t=>{}))}updateLessonView(t){let e;return Object(r.a)(this.getLessonProgress(t).subscribe(t=>(e=t[0],null===e.started_at&&(e.started_at=(new Date).getTime()),e.view_count=e.view_count+1,this._entityService.updateEntity("customer_lesson_progress",e).subscribe(t=>{}))))}setStartDate(t,e,n){let i;return Object(r.a)(this.getLessonProgress(t).subscribe(t=>(i=t[0],e&&(i.started_at=e),n&&(i.lesson_progress_id=n),i.view_count=i.view_count+1,this._entityService.updateEntity("customer_lesson_progress",i).subscribe(t=>{}))))}setCompleteDate(t,e,n){let i;return Object(r.a)(this.getLessonProgress(t).subscribe(t=>(i=t[0],e&&(i.completed_at=e),n&&(i.lesson_progress_id=n),this._entityService.updateEntity("customer_lesson_progress",i).subscribe(t=>{}))))}calculateCourseProgress(t,e){let n=0,r=0;t.modules.sort(this.entityCompareByOrder);for(let i=0;i<t.modules.length;i++){let o=t.modules[i],s=o.lessons.length,a=0;o.lessons.sort(this.entityCompareByOrder);for(let n=0;n<o.lessons.length;n++){let r=o.lessons[n];r.progress_stage=e[t.modules[i].lessons[n].id],r.linkable=!0,3===e[r.id]?a++:t.next_lesson_id||(t.next_lesson_id=r.id),t.last_lesson_id=r.id}t.modules[i].lesson_count=s,t.modules[i].lesson_count_completed=a,t.modules[i].lesson_progress=Math.round(100*a/s),n+=s,r+=a}return t.lesson_count=n,t.lesson_count_completed=r,t.lesson_progress=Math.round(100*r/n),isNaN(t.lesson_progress)&&(t.lesson_progress=0),t}fillCourseLessonCount(t){let e=0;for(let n=0;n<t.modules.length;n++){let r=t.modules[n].lessons.length;t.modules[n].lesson_count=r,e+=r}return t.lesson_count=e,t}entityCompareByOrder(t,e){return t.order<e.order?-1:t.order>e.order?1:0}getAllLessonProgressData(t=this._userService.portal_member_id){return this._entityService.getEntityInfo("customer_lesson_progress",{columns:["*"],limit:1e4,offset:0,filter_by:[{attribute:"portal_member_id",operator:"=",value:t}],search_by:[]})}getLessonProgress(t){return this._entityService.getEntityInfo("customer_lesson_progress",{columns:["**"],limit:1,offset:0,filter_by:[{attribute:"lesson_id",operator:"=",value:t},{attribute:"portal_member_id",operator:"=",value:this._userService.portal_member_id}],search_by:[]})}getSettingsDesignOnLogin(){return this._http.get(l.a.apiUrl+"/settings/design?token=no").pipe(Object(a.map)(t=>t),Object(a.catchError)(t=>Object(c.throwError)(t.message||"Server error (getListByTypeID - create)")))}getSettingsOnLogin(){return this._http.get(l.a.apiUrl+"/settings/login?token=no").pipe(Object(a.map)(t=>t),Object(a.catchError)(t=>Object(c.throwError)(t.message||"Server error (getListByTypeID - create)")))}getCurrentTimestamp(){return this._http.get(l.a.apiUrl+"/current_timestamp/get").pipe(Object(a.map)(t=>t),Object(a.catchError)(t=>Object(c.throwError)(t.message||"Server error (getListByTypeID - create)")))}setCurrentTimestamp(){this.getCurrentTimestamp().subscribe(t=>{this.today=t.result})}}return t.\u0275fac=function(e){return new(e||t)(h["\u0275\u0275inject"](i.a),h["\u0275\u0275inject"](s.a),h["\u0275\u0275inject"](d.b),h["\u0275\u0275inject"](u.a))},t.\u0275prov=h["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},"0BvR":function(t,e,n){"use strict";var r=n("1pIY"),i=n("+vT+"),o=n("eJ3O");e.auditTime=function(t,e){return void 0===e&&(e=r.async),i.audit((function(){return o.timer(t,e)}))}},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return c}));var r=n("7+OI"),i=n("LRne"),o=n("XNiG"),s=n("fXoL");class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return Object(r.a)(this._data)?this._data:Object(i.a)(this._data)}disconnect(){}}class u{constructor(t=!1,e,n=!0){this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.b,e&&e.length&&(t?e.forEach(t=>this._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){if(t.length>1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")}}let h=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s["\u0275\u0275defineInjectable"])({factory:function(){return new t},token:t,providedIn:"root"}),t})()},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("bHdf");function i(){return Object(r.a)(1)}},"0Pi8":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("GyhO"),i=n("LRne");function o(...t){return e=>Object(r.a)(e,Object(i.a)(...t))}},"0alx":function(t,e,n){"use strict";var r=n("VKeD");e.isIterable=function(t){return t&&"function"==typeof t[r.iterator]}},"0u2M":function(t,e,n){var r=n("54Wo");t.exports=function(t,e){var n=r(t,e)/36e5;return n>0?Math.floor(n):Math.ceil(n)}},"0z0v":function(t,e,n){"use strict";e.EmptyError=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},"128B":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("Kqap"),i=n("BFxc"),o=n("xbPD"),s=n("mCNh");function a(t,e){return arguments.length>=2?function(n){return Object(s.a)(Object(r.a)(t,e),Object(i.a)(1),Object(o.a)(e))(n)}:function(e){return Object(s.a)(Object(r.a)((e,n,r)=>t(e,n,r+1)),Object(i.a)(1))(e)}}},"1CCG":function(t,e,n){var r=n("CXhC");t.exports=function(t,e){var n=r(t),i=r(e),o=n.getTime()-6e4*n.getTimezoneOffset(),s=i.getTime()-6e4*i.getTimezoneOffset();return Math.round((o-s)/864e5)}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new s(t),i=Object(r.c)(this.notifier,new r.a(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class s extends r.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1HMO":function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=Number(e);return n.setMilliseconds(i),n}},"1K6H":function(t,e,n){var r=n("9d03");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},"1S6i":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("2Vo4"),i=n("fXoL");let o=(()=>{class t{constructor(){this._showAlert=new r.a({}),this.$showAlert=this._showAlert.asObservable(),this._setAuthorize=new r.a(null),this.$checkAuthority=this._setAuthorize.asObservable(),this._updateUserProfile=new r.a(null),this.$updateUserProfile=this._updateUserProfile.asObservable(),this._previewStart=new r.a({mode:!1,url:"/customer"}),this.$previewStart=this._previewStart.asObservable(),this._previewEnd=new r.a(!1),this.$previewEnd=this._previewEnd.asObservable(),this._mediaFolderOpenedId=new r.a(null),this.$mediaFolderOpenedId=this._mediaFolderOpenedId.asObservable(),this._updatePage=new r.a(!1),this.$updatePage=this._updatePage.asObservable(),this._videoUpload=new r.a(!1),this.$videoUpload=this._videoUpload.asObservable()}showAlert(t){this._showAlert.next(t)}setAuthorize(t){this._setAuthorize.next(t)}updateUserProfile(t){this._updateUserProfile.next(t)}previewStart(t){this._previewStart.next(t)}previewEnd(t){this._previewEnd.next(t)}setMediaFolderId(t){this._mediaFolderOpenedId.next(t)}updatePage(t){this._updatePage.next(t)}videoUpload(t){this._videoUpload.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},"1VEF":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.skipUntil=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.notifier))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var o=new i.SimpleInnerSubscriber(r);r.add(o),r.innerSubscription=o;var s=i.innerSubscribe(n,o);return s!==o&&(r.add(s),r.innerSubscription=s),r}return r(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.SimpleOuterSubscriber)},"1Wj6":function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(r||(r={}))},"1Ykd":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("D0XW");function o(t,e=i.a){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.period=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.period,this.scheduler))}}class a extends r.a{constructor(t,e,n){super(t),this.period=e,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(c,e,{subscriber:this,period:e}))}_next(t){this.lastValue=t,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function c(t){let{subscriber:e,period:n}=t;e.notifyNext(),this.schedule(t,n)}},"1Z+e":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(i.Subscriber)},"1eCo":function(t,e,n){!function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(r,i){var o,s,a=r.indentUnit,c={},l=i.htmlMode?e:n;for(var u in l)c[u]=l[u];for(var u in i)c[u]=i[u];function h(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(f("atom","]]>")):null:t.match("--")?n(f("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=t(e+1),r.tokenize(n,r);if(">"==i){if(1==e){r.tokenize=h;break}return r.tokenize=t(e-1),r.tokenize(n,r)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=f("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=d,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function d(t,e){var n,r,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=h,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){e.tokenize=h,e.state=v,e.tagName=e.tagStart=null;var s=e.tokenize(t,e);return s?s+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(n=i,(r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=d;break}return"string"}).isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=h;break}n.next()}return t}}function p(t){return t&&t.toLowerCase()}function m(t,e,n){this.prev=t.context,this.tagName=e||"",this.indent=t.indented,this.startOfLine=n,(c.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function g(t){t.context&&(t.context=t.context.prev)}function b(t,e){for(var n;;){if(!t.context)return;if(!c.contextGrabbers.hasOwnProperty(p(n=t.context.tagName))||!c.contextGrabbers[p(n)].hasOwnProperty(p(e)))return;g(t)}}function v(t,e,n){return"openTag"==t?(n.tagStart=e.column(),y):"closeTag"==t?_:v}function y(t,e,n){return"word"==t?(n.tagName=e.current(),s="tag",x):c.allowMissingTagName&&"endTag"==t?(s="tag bracket",x(t,0,n)):(s="error",y)}function _(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&c.implicitlyClosed.hasOwnProperty(p(n.context.tagName))&&g(n),n.context&&n.context.tagName==r||!1===c.matchClosing?(s="tag",w):(s="tag error",S)}return c.allowMissingTagName&&"endTag"==t?(s="tag bracket",w(t,0,n)):(s="error",S)}function w(t,e,n){return"endTag"!=t?(s="error",w):(g(n),v)}function S(t,e,n){return s="error",w(t,0,n)}function x(t,e,n){if("word"==t)return s="attribute",C;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||c.autoSelfClosers.hasOwnProperty(p(r))?b(n,r):(b(n,r),n.context=new m(n,r,i==n.indented)),v}return s="error",x}function C(t,e,n){return"equals"==t?O:(c.allowMissing||(s="error"),x(t,0,n))}function O(t,e,n){return"string"==t?T:"word"==t&&c.allowUnquoted?(s="string",x):(s="error",x(t,0,n))}function T(t,e,n){return"string"==t?T:x(t,0,n)}return h.isInText=!0,{startState:function(t){var e={tokenize:h,state:v,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(s=null,e.state=e.state(o||n,t,e),s&&(n="error"==s?n+" error":s)),n},indent:function(e,n,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+a;if(i&&i.noIndent)return t.Pass;if(e.tokenize!=d&&e.tokenize!=h)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==c.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+a*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!c.implicitlyClosed.hasOwnProperty(p(i.tagName)))break;i=i.prev}else if(o)for(;i;){var s=c.contextGrabbers[p(i.tagName)];if(!s||!s.hasOwnProperty(p(o[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+a:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(t){t.state==O&&(t.state=x)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)e.push(n.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n("VrN/"))},"1gqn":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},"1pIY":function(t,e,n){"use strict";var r=n("2tF/");e.asyncScheduler=new(n("NTcF").AsyncScheduler)(r.AsyncAction),e.async=e.asyncScheduler},"1uah":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n("yCtX"),i=n("DH7j"),o=n("7o/Q"),s=n("Lhse"),a=n("zx2A");function c(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),Object(r.a)(t,void 0).lift(new l(e))}class l{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new u(t,this.resultSelector))}}class u extends o.a{constructor(t,e,n=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;Object(i.a)(t)?e.push(new d(t)):e.push("function"==typeof t[s.a]?new h(t[s.a]()):new f(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;n<e;n++){let e=t[n];e.stillUnsubscribed?this.destination.add(e.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const t=this.iterators,e=t.length,n=this.destination;for(let o=0;o<e;o++){let e=t[o];if("function"==typeof e.hasValue&&!e.hasValue())return}let r=!1;const i=[];for(let o=0;o<e;o++){let e=t[o],s=e.next();if(e.hasCompleted()&&(r=!0),s.done)return void n.complete();i.push(s.value)}this.resultSelector?this._tryresultSelector(i):n.next(i),r&&n.complete()}_tryresultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class h{constructor(t){this.iterator=t,this.nextResult=t.next()}hasValue(){return!0}next(){const t=this.nextResult;return this.nextResult=this.iterator.next(),t}hasCompleted(){const t=this.nextResult;return Boolean(t&&t.done)}}class d{constructor(t){this.array=t,this.index=0,this.length=0,this.length=t.length}[s.a](){return this}next(t){const e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class f extends a.b{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[s.a](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return Object(a.c)(this.observable,new a.a(this))}}},"1vin":function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}},"24nb":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("t4T2"),i=(n("4YUa"),n("fXoL"));let o=(()=>{class t{constructor(t){this._coreEntityService=t}getWithNoAuth(t){return this._coreEntityService.getWithNoAuth(t)}getWithToken(t){return this._coreEntityService.getWithToken(t)}postWithNoAuth(t,e){return this._coreEntityService.postWithNoAuth(t,e)}get(t,e,n){return this._coreEntityService.get(t,e,n)}getEntity(t,e,n){return this._coreEntityService.getEntity(t,e,n)}getPortalEntity(t,e,n){return this._coreEntityService.getPortalEntity(t,e,n)}getAppRequest(t,e){return this._coreEntityService.getAppRequest(t,e)}getEntityInfoWithNoAuth(t,e,n){return this._coreEntityService.getEntityInfoWithNoAuth(t,e,n)}getEntityInfo(t,e,n){return this._coreEntityService.getEntityInfo(t,e,n)}getImageUrl(t){return this._coreEntityService.getImageUrl(t)}getPaidStatus(t,e,n){return this._coreEntityService.getPaidStatus(t,e,n)}getCustomerCourseAndModulesProgress(t,e){return this._coreEntityService.getCustomerCourseAndModulesProgress(t,e)}getLessonAndModulesAccess(t,e,n){return this._coreEntityService.getLessonAndModulesAccess(t,e,n)}getCoursesModulesAndLessonsCount(t){return this._coreEntityService.getCoursesModulesAndLessonsCount(t)}getVideoAnimatedPreview(t){return this._coreEntityService.getVideoAnimatedPreview(t)}getGetherEntity(t,e){return this._coreEntityService.getGetherEntity(t,e)}getherEntityRequest(t,e){return this._coreEntityService.getherEntityRequest(t,e)}countEntity(t,e,n){return this._coreEntityService.countEntity(t,e,n)}countPortalEntity(t,e,n){return this._coreEntityService.countPortalEntity(t,e,n)}deleteEntity(t,e,n){let r=[];return Array.isArray(e)?r=e:r.push(e),this._coreEntityService.deleteEntity(t,r,n)}oneClickImport(t,e){return this._coreEntityService.oneClickImport(t,e)}delete(t,e,n){return this._coreEntityService.delete(t,e,n)}deleteCAccount(t,e){return this._coreEntityService.deleteCAccount(t,e)}addEntity(t,e,n){return this._coreEntityService.addEntity(t,e,n)}resetEntity(t,e,n){return this._coreEntityService.resetEntity(t,e,n)}addPortalEntity(t,e,n){return this._coreEntityService.addPortalEntity(t,e,n)}update(t,e,n){return this._coreEntityService.update(t,e,n)}updateEntity(t,e,n){return this._coreEntityService.updateEntity(t,e,n)}updatePortalEntity(t,e,n){return this._coreEntityService.updatePortalEntity(t,e,n)}upsertEntity(t,e,n){return this._coreEntityService.upsertEntity(t,e,n)}login(t,e){return this._coreEntityService.login(t,e)}loginAsCC(t,e){return this._coreEntityService.loginAsCC(t,e)}logout(){return this._coreEntityService.logout()}changePassword(t,e){return this._coreEntityService.changePassword(t,e)}registerSingle(t,e){return this._coreEntityService.registerSingle(t,e)}registerDouble(t,e){return this._coreEntityService.registerDouble(t,e)}registerActivate(t){return this._coreEntityService.registerActivate(t)}prolongate(t,e){return this._coreEntityService.prolongate(t,e)}checkDomain(t,e,n){return this._coreEntityService.checkDomain(t,e,n)}saveCustomDomain(t,e,n){return this._coreEntityService.saveCustomDomain(t,e,n)}sendHelpMail(t,e,n){return this._coreEntityService.sendHelpMail(t,e,n)}addCourseToLibrary(t,e,n){return this._coreEntityService.addToCourseLibrary(t,e,n)}addFreeCourseToCustomer(t,e){return this._coreEntityService.addFreeCourseToCustomer(t,e)}addFreeCourseToCustomerWithDoubleOptin(t,e){return this._coreEntityService.addFreeCourseToCustomerWithDoubleOptin(t,e)}createOrderByCC(t,e){return this._coreEntityService.createOrderByCC(t,e)}generatePassword(t,e){return this._coreEntityService.generatePassword(t,e)}copyToTheEntity(t,e,n){return this._coreEntityService.copyToTheEntity(t,e,n)}setAccessToUser(t,e){return this._coreEntityService.setAccessToUser(t,e)}setCourseActivity(t,e){return this._coreEntityService.setCourseActivity(t,e)}cloneCMLEntity(t,e,n,r=!0){return this._coreEntityService.cloneCMLEntity(t,e,n,r)}toggleUpdateMessage(t,e){return this._coreEntityService.toggleUpdateMessage(t,e)}registerTrialPortal(t){return this._coreEntityService.registerTrialPortal(t)}activateUser(t){return this._coreEntityService.activateUser(t)}switchNewDesignState(t){return this._coreEntityService.switchNewDesignState(t)}createLead(t,e){return this._coreEntityService.createLead(t,e)}createActivation(t,e){return this._coreEntityService.createActivation(t,e)}activateLead(t,e){return this._coreEntityService.activateLead(t,e)}abstractAuthorizedPostRequest(t,e,n){return this._coreEntityService.abstractAuthorizedPostRequest(t,e,n)}setSmtpSettings(t,e){return this._coreEntityService.setSmtpSettings(t,e)}addApiKey(t,e){return this._coreEntityService.addApiKey(t,e)}generateCopecartCredentials(t){return this._coreEntityService.generateCopecartCredentials(t)}generateFapiCredentials(t){return this._coreEntityService.generateFapiCredentials(t)}generateZapierApiKey(t){return this._coreEntityService.generateZapierApiKey(t)}emailTest(t,e,n){return this._coreEntityService.emailTest(t,e,n)}acceptAffiliate(t,e){return this._coreEntityService.acceptAffiliate(t,e)}importWhiteLabelCourse(t,e){return this._coreEntityService.importWhiteLabelCourse(t,e)}importWhiteLabelLanding(t,e){return this._coreEntityService.importWhiteLabelLanding(t,e)}checkEmailsTemplates(t,e){return this._coreEntityService.checkEmailsTemplates(t,e)}startNewQuizPass(t){return this._coreEntityService.startNewQuizPass(t)}getQuizVerionByTimestamp(t){return this._coreEntityService.getQuizVerionByTimestamp(t)}getQuizAccessByCourseIds(t,e){return this._coreEntityService.getQuizAccessByCourseIds(t,e)}getExistQuizPassing(t){return this._coreEntityService.getExistQuizPassing(t)}getQuizQuestion(t){return this._coreEntityService.getQuizQuestion(t)}getQuizResults(t){return this._coreEntityService.getQuizResults(t)}saveQuizAnswers(t,e){return this._coreEntityService.saveQuizAnswers(t,e)}getQuizAssesments(t){return this._coreEntityService.getQuizAssesments(t)}getCommunityTypes(){return this._coreEntityService.getCommunityTypes()}getCommunitySettings(){return this._coreEntityService.getCommunitySettings()}getCommunityDisplayNameSettings(){return this._coreEntityService.getCommunityDisplayNameSettings()}updateCommunitySettings(t){return this._coreEntityService.updateCommunitySettings(t)}updateBindedCourseList(t,e){return this._coreEntityService.updateBindedCourseList(t,e)}updateTrialUserTime(t,e){return this._coreEntityService.updateTrialUserTime(t,e)}contentCreatorVerify(t){return this._coreEntityService.contentCreatorVerify(t)}resendVerificationEmail(t){return this._coreEntityService.resendVerificationEmail(t)}rootVerifyContentCreator(t){return this._coreEntityService.rootVerifyContentCreator(t)}recalculateCourseAccess(t){return this._coreEntityService.recalculateCourseAccess(t)}setVideoStaticPreview(t,e){return this._coreEntityService.setVideoStaticPreview(t,e)}resetVideoStaticPreview(t,e){return this._coreEntityService.resetVideoStaticPreview(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.a))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},"2E8i":function(t,e,n){"use strict";e.NEVER=new(n("Q1FS").Observable)(n("w5QO").noop),e.never=function(){return e.NEVER}},"2KeD":function(t,e,n){"use strict";var r=n("Q1FS"),i=n("zB/H"),o=n("zfKp");e.scheduleObservable=function(t,e){return new r.Observable((function(n){var r=new i.Subscription;return r.add(e.schedule((function(){var i=t[o.observable]();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}))}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Sgo":function(t,e,n){"use strict";var r=n("1pIY"),i=n("q3Kh");e.timestamp=function(t){return void 0===t&&(t=r.async),i.map((function(e){return new o(e,t.now())}))};var o=function(){return function(t,e){this.value=t,this.timestamp=e}}();e.Timestamp=o},"2TOE":function(t,e){!function(t){t.ng=t.ng||{},t.ng.common=t.ng.common||{},t.ng.common.locales=t.ng.common.locales||{};const e=void 0;t.ng.common.locales.en=["en",[["a","p"],["AM","PM"],e],[["AM","PM"],e,e],[["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"]],e,[["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"]],e,[["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}",e,"{1} 'at' {0}",e],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5},[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],e],[["midnight","noon","morning","afternoon","evening","night"],e,e],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]}("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window)},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("XNiG"),i=n("9ppp");class o extends r.b{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(t){super.next(this._value=t)}}},"2XXS":function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}},"2bdC":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("6hSO"),i=n("8LbN"),o=n("i6wd"),s=n("FGHR");function a(){Object(r.a)("error",c),Object(r.a)("unhandledrejection",c)}function c(){var t=Object(s.a)();t&&(o.a&&i.c.log("[Tracing] Transaction: internal_error -> Global error occured"),t.setStatus("internal_error"))}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"2hO6":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("Y4kR"),o=n("cSoz");e.withLatestFrom=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new s(t,n))}};var s=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.observables,this.project))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var s=n.length;i.values=new Array(s);for(var a=0;a<s;a++)i.toRespond.push(a);for(a=0;a<s;a++)i.add(o.subscribeToResult(i,n[a],void 0,a));return i}return r(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,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.OuterSubscriber)},"2qMH":function(t,e,n){"use strict";var r=n("Q1FS"),i=n("zB/H");e.scheduleArray=function(t,e){return new r.Observable((function(n){var r=new i.Subscription,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},"2tF/":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.AsyncAction=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(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}(n("Dz+M").Action)},"3/+b":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.debounce=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=i.innerSubscribe(e,new i.SimpleInnerSubscriber(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.SimpleOuterSubscriber)},"32Ea":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new s(t,this.predicate))}}class s extends r.a{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(e){this.destination.error(e)}}}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("D0XW"),i=n("mlxB"),o=n("7o/Q"),s=n("WMd4");function a(t,e=r.a){const n=Object(i.a)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(n,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends o.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,i=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(s.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},"3JgX":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("fXoL");let i=(()=>{class t{constructor(){this.classes="h-100"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["app-notfound"]],hostVars:2,hostBindings:function(t,e){2&t&&r["\u0275\u0275classMap"](e.classes)},decls:19,vars:0,consts:[["id","NotFoundPage",1,"container","h-100"],[1,"row","h-100"],[1,"col-12","my-auto","text-center"],[1,"d-flex","align-items-center","justify-content-center"],[1,"d-inline-block","display-1","fw-bold","me-5","text-primary"],[1,"d-inline-block"],[1,"eye-animation__left","position-relative","d-inline-block"],[1,"eye-animation__right","position-relative","d-inline-block"],["width","200px","height","354px","viewBox","0 0 355 354","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Page-1","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","mentortools","fill","#1963EA","fill-rule","nonzero"],["d","M259.485319,180.517217 C263.185319,160.117217 245.285319,142.317217 224.985319,146.017217 C212.985319,148.217217 203.285319,157.817217 201.185319,169.817217 C197.485319,190.217217 215.385319,208.017217 235.685319,204.317217 C247.685319,202.217217 257.285319,192.617217 259.485319,180.517217 Z M134.185319,146.017217 C113.785319,142.317217 95.985319,160.217217 99.685319,180.517217 C101.885319,192.517217 111.485319,202.217217 123.485319,204.317217 C143.885319,208.017217 161.685319,190.117217 157.985319,169.817217 C155.885319,157.817217 146.285319,148.217217 134.185319,146.017217 Z M349.885319,136.717217 C368.785319,223.817217 323.985319,302.817217 252.885319,336.317217 C245.485319,317.617217 232.385319,302.417217 215.785319,292.917217 L215.785319,252.317217 L285.385319,252.317217 C295.185319,252.317217 303.085319,244.417217 303.085319,234.617217 L303.085319,205.317217 L317.885319,205.317217 L317.885319,148.717217 L303.085319,148.717217 L303.085319,118.017217 C303.085319,108.217217 295.185319,100.317217 285.385319,100.317217 L207.285319,100.317217 L207.285319,88.617217 L184.285319,88.617217 L184.285319,75.617217 C192.985319,73.017217 199.285319,64.617217 198.285319,55.017217 C197.485319,46.617217 191.085319,39.517217 182.785319,37.917217 C170.585319,35.417217 159.485319,45.117217 159.485319,56.917217 C159.485319,65.717217 165.485319,73.117217 173.585319,75.617217 L173.585319,88.717217 L150.585319,88.717217 L150.585319,100.417217 L72.685319,100.417217 C62.885319,100.417217 54.985319,108.317217 54.985319,118.117217 L54.985319,148.717217 L40.185319,148.717217 L40.185319,205.217217 L54.985319,205.217217 L54.985319,234.517217 C54.985319,244.317217 62.885319,252.217217 72.685319,252.217217 L139.485319,252.217217 L139.485319,292.817217 C122.885319,302.317217 109.785319,317.517217 102.385319,336.217217 C81.585319,357.017217 48.385319,354.917217 29.585319,351.717217 C23.585319,350.617217 21.085319,343.617217 24.685319,339.017217 C47.285319,311.117217 36.685319,283.217217 36.685319,283.217217 C14.385319,253.617217 0.985319,216.517217 0.985319,176.617217 C0.985319,66.517217 101.785319,-20.082783 216.085319,4.117217 C282.785319,18.117217 335.385319,70.117217 349.885319,136.717217 Z","id","Shape"]],template:function(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275elementStart"](3,"h4"),r["\u0275\u0275text"](4,"Page not found"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"div",3),r["\u0275\u0275elementStart"](6,"h1",4),r["\u0275\u0275text"](7,"404"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"figure",5),r["\u0275\u0275element"](9,"span",6),r["\u0275\u0275element"](10,"span",7),r["\u0275\u0275namespaceSVG"](),r["\u0275\u0275elementStart"](11,"svg",8),r["\u0275\u0275elementStart"](12,"title"),r["\u0275\u0275text"](13,"Mentortools"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](14,"desc"),r["\u0275\u0275text"](15,"Created with Sketch."),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](16,"g",9),r["\u0275\u0275elementStart"](17,"g",10),r["\u0275\u0275element"](18,"path",11),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())},styles:['#NotFoundPage[_ngcontent-%COMP%]   .display-1[_ngcontent-%COMP%]{font-size:6rem;font-weight:300;line-height:1.2}#NotFoundPage[_ngcontent-%COMP%]   .eye-animation__left[_ngcontent-%COMP%]{left:72px}#NotFoundPage[_ngcontent-%COMP%]   .eye-animation__left[_ngcontent-%COMP%], #NotFoundPage[_ngcontent-%COMP%]   .eye-animation__right[_ngcontent-%COMP%]{height:9px;transform-origin:200% center;-webkit-animation:rotate 1s linear infinite;animation:rotate 4s linear infinite}#NotFoundPage[_ngcontent-%COMP%]   .eye-animation__right[_ngcontent-%COMP%]{left:130px}#NotFoundPage[_ngcontent-%COMP%]   .eye-animation__left[_ngcontent-%COMP%]:before, #NotFoundPage[_ngcontent-%COMP%]   .eye-animation__right[_ngcontent-%COMP%]:after{content:"";position:absolute;height:15px;width:15px;background:#fff;border-radius:50%;animation:rotate 3s linear infinite reverse}@-webkit-keyframes rotate{to{transform:rotate(-1turn)}}@keyframes rotate{to{transform:rotate(-1turn)}}']}),t})()},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("quSY");class i extends r.a{constructor(t,e){super()}schedule(t,e=0){return this}}class o extends i{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const 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}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let 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}_unsubscribe(){const 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}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return Ut})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return $t})),n.d(e,"e",(function(){return bt})),n.d(e,"f",(function(){return Lt})),n.d(e,"g",(function(){return ne})),n.d(e,"h",(function(){return mt})),n.d(e,"i",(function(){return It})),n.d(e,"j",(function(){return Bt})),n.d(e,"k",(function(){return gt})),n.d(e,"l",(function(){return Mt})),n.d(e,"m",(function(){return Ft})),n.d(e,"n",(function(){return re})),n.d(e,"o",(function(){return Jt})),n.d(e,"p",(function(){return Yt})),n.d(e,"q",(function(){return x})),n.d(e,"r",(function(){return c})),n.d(e,"s",(function(){return v})),n.d(e,"t",(function(){return _})),n.d(e,"u",(function(){return w})),n.d(e,"v",(function(){return _t})),n.d(e,"w",(function(){return kt})),n.d(e,"x",(function(){return Ot})),n.d(e,"y",(function(){return q})),n.d(e,"z",(function(){return P})),n.d(e,"A",(function(){return te})),n.d(e,"B",(function(){return F})),n.d(e,"C",(function(){return L})),n.d(e,"D",(function(){return ie})),n.d(e,"E",(function(){return Wt})),n.d(e,"F",(function(){return U})),n.d(e,"G",(function(){return K})),n.d(e,"H",(function(){return T})),n.d(e,"I",(function(){return Y})),n.d(e,"J",(function(){return At}));var r=n("fXoL"),i=n("ofXK"),o=n("cp0P"),s=n("Cfvw"),a=n("lJxs");const c=new r.InjectionToken("NgValueAccessor"),l={provide:c,useExisting:Object(r.forwardRef)(()=>u),multi:!0};let u=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[r["\u0275\u0275ProvidersFeature"]([l])]}),t})();const h={provide:c,useExisting:Object(r.forwardRef)(()=>f),multi:!0},d=new r.InjectionToken("CompositionEventMode");let f=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(i.R)()?Object(i.R)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](d,8))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[r["\u0275\u0275ProvidersFeature"]([h])]}),t})(),p=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t}),t})(),m=(()=>{class t extends p{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),t})();const g=r["\u0275\u0275getInheritedFactory"](m);function b(){throw new Error("unimplemented")}class v extends p{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return b()}get asyncValidator(){return b()}}class y{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let _=(()=>{class t extends y{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](v,2))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r["\u0275\u0275classProp"]("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),t})(),w=(()=>{class t extends y{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](m,2))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r["\u0275\u0275classProp"]("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),t})();function S(t){return null==t||0===t.length}const x=new r.InjectionToken("NgValidators"),C=new r.InjectionToken("NgAsyncValidators"),O=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class T{static min(t){return e=>{if(S(e.value)||S(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(S(e.value)||S(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return S(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return S(t.value)||O.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(S(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return T.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(S(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(E);return 0==e.length?null:function(t){return A(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(E);return 0==e.length?null:function(t){const n=function(t,e){return e.map(e=>e(t))}(t,e).map(k);return Object(o.a)(n).pipe(Object(a.a)(A))}}}function E(t){return null!=t}function k(t){const e=Object(r["\u0275isPromise"])(t)?Object(s.a)(t):t;if(!Object(r["\u0275isObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function A(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function D(t){return t.validate?e=>t.validate(e):t}function j(t){return t.validate?e=>t.validate(e):t}const I={provide:c,useExisting:Object(r.forwardRef)(()=>P),multi:!0};let P=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r["\u0275\u0275ProvidersFeature"]([I])]}),t})();const M={provide:c,useExisting:Object(r.forwardRef)(()=>F),multi:!0};let N=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(v),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](N),r["\u0275\u0275directiveInject"](r.Injector))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r["\u0275\u0275ProvidersFeature"]([M])]}),t})();const R={provide:c,useExisting:Object(r.forwardRef)(()=>L),multi:!0};let L=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r["\u0275\u0275ProvidersFeature"]([R])]}),t})();const V='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',H='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',B='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';class G{static controlParentException(){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      "+V)}static ngModelGroupException(){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        ${H}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${B}`)}static missingFormException(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+V)}static groupParentException(){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      "+H)}static arrayParentException(){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    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}static disabledAttrWarning(){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    ")}static ngModelWarning(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    `)}}const z={provide:c,useExisting:Object(r.forwardRef)(()=>U),multi:!0};function W(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let U=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=r["\u0275looseIdentical"]}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=W(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([z])]}),t})(),q=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(W(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](U,9))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const X={provide:c,useExisting:Object(r.forwardRef)(()=>K),multi:!0};function $(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let K=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=r["\u0275looseIdentical"]}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),i=this._getOptionValue(r.value);n.push(i)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([X])]}),t})(),Y=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue($(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue($(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](K,9))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function Q(t,e){return[...e.path,t]}function J(t,e){t||nt(e,"Cannot find control with"),e.valueAccessor||nt(e,"No value accessor for form control with"),t.validator=T.compose([t.validator,e.validator]),t.asyncValidator=T.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Z(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Z(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Z(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tt(t,e){null==t&&nt(e,"Cannot find control with"),t.validator=T.compose([t.validator,e.validator]),t.asyncValidator=T.composeAsync([t.asyncValidator,e.asyncValidator])}function et(t){return nt(t,"There is no FormControl instance attached to form control element with")}function nt(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function rt(t){return null!=t?T.compose(t.map(D)):null}function it(t){return null!=t?T.composeAsync(t.map(j)):null}function ot(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object(r["\u0275looseIdentical"])(e,n.currentValue)}const st=[u,L,P,U,K,F];function at(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ct(t,e){if(!e)return null;Array.isArray(e)||nt(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return e.forEach(e=>{var o;e.constructor===f?n=e:(o=e,st.some(t=>o.constructor===t)?(r&&nt(t,"More than one built-in value accessor matches form control with"),r=e):(i&&nt(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(nt(t,"No valid value accessor for form control with"),null)}function lt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function ut(t,e,n,i){Object(r.isDevMode)()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(G.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function ht(t){const e=ft(t)?t.validators:t;return Array.isArray(e)?rt(e):e||null}function dt(t,e){const n=ft(e)?e.asyncValidators:t;return Array.isArray(n)?it(n):n||null}function ft(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class pt{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=ht(t)}setAsyncValidators(t){this.asyncValidator=dt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(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)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=k(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof gt?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof bt&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ft(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class mt extends pt{constructor(t=null,e,n){super(ht(e),dt(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(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}}class gt extends pt{constructor(t,e,n){super(ht(e),dt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof mt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,r)=>{e=e||this.contains(r)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class bt extends pt{constructor(t,e,n){super(ht(e),dt(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof mt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(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)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const vt={provide:m,useExisting:Object(r.forwardRef)(()=>_t)},yt=(()=>Promise.resolve(null))();let _t=(()=>{class t extends m{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.EventEmitter,this.form=new gt({},rt(t),it(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){yt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),J(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){yt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),lt(this._directives,t)})}addFormGroup(t){yt.then(()=>{const e=this._findContainer(t.path),n=new gt({});tt(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){yt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){yt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,at(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](x,10),r["\u0275\u0275directiveInject"](C,10))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([vt]),r["\u0275\u0275InheritDefinitionFeature"]]}),t})(),wt=(()=>{class t extends m{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return rt(this._validators)}get asyncValidator(){return it(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return St(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),t})();const St=r["\u0275\u0275getInheritedFactory"](wt);class xt{static modelParentException(){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      ${V}\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    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  `)}static formGroupNameException(){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      ${H}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${B}`)}static missingNameException(){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: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){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      ${H}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${B}`)}}const Ct={provide:m,useExisting:Object(r.forwardRef)(()=>Ot)};let Ot=(()=>{class t extends wt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof _t||xt.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](m,5),r["\u0275\u0275directiveInject"](x,10),r["\u0275\u0275directiveInject"](C,10))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r["\u0275\u0275ProvidersFeature"]([Ct]),r["\u0275\u0275InheritDefinitionFeature"]]}),t})();const Tt={provide:v,useExisting:Object(r.forwardRef)(()=>kt)},Et=(()=>Promise.resolve(null))();let kt=(()=>{class t extends v{constructor(t,e,n,i){super(),this.control=new mt,this._registered=!1,this.update=new r.EventEmitter,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=ct(this,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),ot(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Q(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return rt(this._rawValidators)}get asyncValidator(){return it(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){J(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Ot)&&this._parent instanceof wt?xt.formGroupNameException():this._parent instanceof Ot||this._parent instanceof _t||xt.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||xt.missingNameException()}_updateValue(t){Et.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Et.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](m,9),r["\u0275\u0275directiveInject"](x,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](c,10))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r["\u0275\u0275ProvidersFeature"]([Tt]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),t})(),At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Dt=new r.InjectionToken("NgModelWithFormControlWarning"),jt={provide:v,useExisting:Object(r.forwardRef)(()=>It)};let It=(()=>{class t extends v{constructor(t,e,n,i){super(),this._ngModelWarningConfig=i,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=ct(this,n)}set isDisabled(t){G.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(J(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),ot(e,this.viewModel)&&(ut("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return rt(this._rawValidators)}get asyncValidator(){return it(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](x,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](c,10),r["\u0275\u0275directiveInject"](Dt,8))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([jt]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),t._ngModelWarningSentOnce=!1,t})();const Pt={provide:m,useExisting:Object(r.forwardRef)(()=>Mt)};let Mt=(()=>{class t extends m{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.EventEmitter}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return J(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){lt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,at(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>et(e)),e.valueAccessor.registerOnTouched(()=>et(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&J(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=rt(this._validators);this.form.validator=T.compose([this.form.validator,t]);const e=it(this._asyncValidators);this.form.asyncValidator=T.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||G.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](x,10),r["\u0275\u0275directiveInject"](C,10))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Pt]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),t})();const Nt={provide:m,useExisting:Object(r.forwardRef)(()=>Ft)};let Ft=(()=>{class t extends wt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){Vt(this._parent)&&G.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](m,13),r["\u0275\u0275directiveInject"](x,10),r["\u0275\u0275directiveInject"](C,10))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([Nt]),r["\u0275\u0275InheritDefinitionFeature"]]}),t})();const Rt={provide:m,useExisting:Object(r.forwardRef)(()=>Lt)};let Lt=(()=>{class t extends m{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return rt(this._validators)}get asyncValidator(){return it(this._asyncValidators)}_checkParentType(){Vt(this._parent)&&G.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](m,13),r["\u0275\u0275directiveInject"](x,10),r["\u0275\u0275directiveInject"](C,10))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r["\u0275\u0275ProvidersFeature"]([Rt]),r["\u0275\u0275InheritDefinitionFeature"]]}),t})();function Vt(t){return!(t instanceof Ft||t instanceof Mt||t instanceof Lt)}const Ht={provide:v,useExisting:Object(r.forwardRef)(()=>Bt)};let Bt=(()=>{class t extends v{constructor(t,e,n,i,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=ct(this,i)}set isDisabled(t){G.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),ot(e,this.viewModel)&&(ut("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Q(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return rt(this._rawValidators)}get asyncValidator(){return it(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Ft)&&this._parent instanceof wt?G.ngModelGroupException():this._parent instanceof Ft||this._parent instanceof Mt||this._parent instanceof Lt||G.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](m,13),r["\u0275\u0275directiveInject"](x,10),r["\u0275\u0275directiveInject"](C,10),r["\u0275\u0275directiveInject"](c,10),r["\u0275\u0275directiveInject"](Dt,8))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r["\u0275\u0275ProvidersFeature"]([Ht]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),t._ngModelWarningSentOnce=!1,t})();const Gt={provide:x,useExisting:Object(r.forwardRef)(()=>Wt),multi:!0},zt={provide:x,useExisting:Object(r.forwardRef)(()=>Ut),multi:!0};let Wt=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?T.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&r["\u0275\u0275attribute"]("required",e.required?"":null)},inputs:{required:"required"},features:[r["\u0275\u0275ProvidersFeature"]([Gt])]}),t})(),Ut=(()=>{class t extends Wt{validate(t){return this.required?T.requiredTrue(t):null}}return t.\u0275fac=function(e){return qt(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r["\u0275\u0275attribute"]("required",e.required?"":null)},features:[r["\u0275\u0275ProvidersFeature"]([zt]),r["\u0275\u0275InheritDefinitionFeature"]]}),t})();const qt=r["\u0275\u0275getInheritedFactory"](Ut),Xt={provide:x,useExisting:Object(r.forwardRef)(()=>$t),multi:!0};let $t=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?T.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[r["\u0275\u0275ProvidersFeature"]([Xt])]}),t})();const Kt={provide:x,useExisting:Object(r.forwardRef)(()=>Yt),multi:!0};let Yt=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=T.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r["\u0275\u0275attribute"]("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[r["\u0275\u0275ProvidersFeature"]([Kt]),r["\u0275\u0275NgOnChangesFeature"]]}),t})();const Qt={provide:x,useExisting:Object(r.forwardRef)(()=>Jt),multi:!0};let Jt=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=T.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r["\u0275\u0275attribute"]("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r["\u0275\u0275ProvidersFeature"]([Qt]),r["\u0275\u0275NgOnChangesFeature"]]}),t})();const Zt={provide:x,useExisting:Object(r.forwardRef)(()=>te),multi:!0};let te=(()=>{class t{ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=T.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&r["\u0275\u0275attribute"]("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[r["\u0275\u0275ProvidersFeature"]([Zt]),r["\u0275\u0275NgOnChangesFeature"]]}),t})(),ee=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})(),ne=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let 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 gt(n,{asyncValidators:i,updateOn:o,validators:r})}control(t,e,n){return new mt(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new bt(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof mt||t instanceof gt||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)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),re=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[N],imports:[ee]}),t})(),ie=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[ne,N],imports:[ee]}),t})()},"3UD+":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"3UWI":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("D0XW"),i=n("tnsW"),o=n("PqYM");function s(t,e=r.a){return Object(i.a)(()=>Object(o.a)(t,e))}},"3d+l":function(t,e,n){var r=n("rMQs");t.exports=function(t){return r(t)?366:365}},"3hPP":function(t,e,n){var r=n("iWRJ"),i=n("tMf1");t.exports=function(t){var e=r(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var o=i(n);return o.setDate(o.getDate()-1),o}},"3jIQ":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("yrbL"),i=n("tk/3"),o=n("AytR"),s=n("fXoL");let a=(()=>{class t{constructor(t){this._http=t,this.defaultHttpOptions={headers:new i.f({"Content-Type":"application/json"})}}post(t,e={},n){return this._http.post(t,e,n||this.defaultHttpOptions).pipe(Object(r.map)(t=>{if(t.done)return t.result;throw new Error(t.error)}))}get(t,e){return this._http.get(t,e).pipe(Object(r.map)(t=>{if(t.done)return t.result;throw new Error(t.error)}))}fullGet(t,e){return this._http.get(t,e)}entityApiPost(t,e,n){return this.post(`${o.a.apiUrl}/${t}`,e,n||this.defaultHttpOptions)}entityApiGet(t){return this.get(`${o.a.apiUrl}/${t}`)}exportApiPost(t,e,n){return this.post(`${o.a.exportApiUrl}/${t}`,e,n||this.defaultHttpOptions)}exportApiGet(t){return this.get(`${o.a.exportApiUrl}/${t}`)}exportApiFullGet(t,e){return this.fullGet(`${o.a.exportApiUrl}/${t}`,e)}communityApiPost(t,e,n){return this.post(`${o.a.communityApi.url}/${o.a.communityApi.version}/${t}`,e,n)}communityApiGet(t){return this.get(`${o.a.communityApi.url}/${o.a.communityApi.version}/${t}`)}notificationsApiPost(t,e,n){return this.post(`${o.a.notificationApi.url}/${o.a.notificationApi.version}/${t}`,e,n)}notificationsApiGet(t,e){return this.get(`${o.a.notificationApi.url}/${o.a.notificationApi.version}/${t}`)}integrationApiPost(t,e,n){return this.post(`${o.a.integrationApi.url}/${o.a.integrationApi.version}/${t}`,e,n)}openAIApiPost(t,e,n){return this.post(`${o.a.openAIApi.url}/${o.a.openAIApi.version}/${t}`,e,n)}senderApiPost(t,e,n){return this.post(`${o.a.senderApi.url}/${o.a.senderApi.version}/${t}`,e,n)}authApiPost(t,e,n){return this.post(`${o.a.authApi.url}/${t}`,e,n)}landingApiPost(t,e,n){return this.post(`${o.a.landingApi.url}/${o.a.landingApi.version}/${t}`,e,n)}importApiPost(t,e,n){return this.post(`${o.a.importApiUrl}/${t}`,e,n)}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](i.b))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},"3n9G":function(t,e,n){"use strict";var r=n("1pIY"),i=n("zk/k"),o=n("Vf9T"),s=n("vLqr");e.timeout=function(t,e){return void 0===e&&(e=r.async),o.timeoutWith(t,s.throwError(new i.TimeoutError),e)}},"3zVU":function(t,e,n){var r=n("J6Hf");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},"44p1":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("zB/H");e.finalize=function(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 a(t,this.callback))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new o.Subscription(n)),r}return r(e,t),e}(i.Subscriber)},"4A3s":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){return function(t){return t.lift(new o)}}class o{call(t,e){return e.subscribe(new s(t))}}class s extends r.a{_next(t){}}},"4B4X":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("24nb"),i=n("VfN6"),o=n("Fr4G"),s=n("fXoL");let a=(()=>{let t=class{constructor(t,e){this._entityService=t,this._userService=e}getStaticInfo(){localStorage.getItem("staticData")?(this.staticData=JSON.parse(localStorage.getItem("staticData")),this.setStartupData()):this._entityService.get("portal/constants/get").pipe(Object(i.b)(this)).subscribe(t=>{t&&(this.staticData=t,localStorage.setItem("staticData",JSON.stringify(this.staticData)),this.setStartupData())})}get StaticData(){return this.staticData}setStartupData(){this._userService.setRoles(this.staticData.role),this._userService.setStatuses(this.staticData.user_status),this.staticData.portal_type&&this._userService.setPortalTypes(this.staticData.portal_type)}};return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](r.a),s["\u0275\u0275inject"](o.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([Object(i.a)()],t),t})()},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4O5X":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("HDdC"),i=n("NHP+"),o=n("lJxs"),s=n("8Qeq"),a=n("z+Ro"),c=n("DH7j");function l(t,e,n){if(e){if(!Object(a.a)(e))return(...r)=>l(t,n)(...r).pipe(Object(o.a)(t=>Object(c.a)(t)?e(...t):e(t)));n=e}return function(...e){const o={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new r.a(r=>{const{context:a}=o;let{subject:c}=o;if(n)return n.schedule(u,0,{params:o,subscriber:r,context:a});if(!c){c=o.subject=new i.a;const n=(...t)=>{const e=t.shift();e?c.error(e):(c.next(t.length<=1?t[0]:t),c.complete())};try{t.apply(a,[...e,n])}catch(l){Object(s.a)(c)?c.error(l):console.warn(l)}}return c.subscribe(r)})}}function u(t){const{params:e,subscriber:n,context:r}=t,{callbackFunc:o,args:s,scheduler:a}=e;let c=e.subject;if(!c){c=e.subject=new i.a;const t=(...t)=>{const e=t.shift();this.add(e?a.schedule(d,0,{err:e,subject:c}):a.schedule(h,0,{value:t.length<=1?t[0]:t,subject:c}))};try{o.apply(r,[...s,t])}catch(l){this.add(a.schedule(d,0,{err:l,subject:c}))}}this.add(c.subscribe(n))}function h(t){const{value:e,subject:n}=t;n.next(e),n.complete()}function d(t){const{err:e,subject:n}=t;n.error(e)}},"4Ssk":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"c",(function(){return u}));var r=n("NDfa"),i=n("z+RT"),o=n("8LbN");function s(){if(!("fetch"in Object(i.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function a(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function c(){if(!s())return!1;var t=Object(i.a)();if(a(t.fetch))return!0;var e=!1,n=t.document;if(n&&"function"==typeof n.createElement)try{var c=n.createElement("iframe");c.hidden=!0,n.head.appendChild(c),c.contentWindow&&c.contentWindow.fetch&&(e=a(c.contentWindow.fetch)),n.head.removeChild(c)}catch(l){r.a&&o.c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",l)}return e}function l(){if(!s())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}function u(){var t=Object(i.a)(),e=t.chrome;return!(e&&e.app&&e.app.runtime||!("history"in t)||!t.history.pushState||!t.history.replaceState)}},"4Toj":function(t,e,n){var r=n("54Wo");t.exports=function(t,e){var n=r(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}},"4YUa":function(t,e){},"4coB":function(t,e,n){var r=n("eoPS");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},"4f8F":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("DH7j"),i=n("Nv8m");function o(...t){return function(e){return 1===t.length&&Object(r.a)(t[0])&&(t=t[0]),e.lift.call(Object(i.a)(e,...t))}}},"4hIw":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("D0XW"),i=n("Kqap"),o=n("NXyV"),s=n("lJxs");function a(t=r.a){return e=>Object(o.a)(()=>e.pipe(Object(i.a)(({current:e},n)=>({value:n,current:t.now(),last:e}),{current:t.now(),value:void 0,last:void 0}),Object(s.a)(({current:t,last:e,value:n})=>new c(n,t-e))))}class c{constructor(t,e){this.value=t,this.interval=e}}},"4ik+":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.filter=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i.Subscriber)},"4mvG":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.refCount=function(){return function(t){return t.lift(new o(t))}};var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)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.Subscriber)},"4v8u":function(t,e,n){var r=n("iUbB");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},"4xzy":function(t,e,n){"use strict";var r=n("P+eR");e.subscribeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new i(t,e))}};var i=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new r.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},"5+tZ":function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function s(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?o=>o.pipe(s((n,o)=>Object(i.a)(t(n,o)).pipe(Object(r.a)((t,r)=>e(n,t,o,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}class c extends o.b{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new o.a(this),n=this.destination;n.add(e);const r=Object(o.c)(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}const l=s},"51Bx":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t,e,n=Number.POSITIVE_INFINITY){return r=>r.lift(new o(t,e,n))}class o{constructor(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}call(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.concurrent))}}class s extends r.b{constructor(t,e,n,r){super(t),this.accumulator=e,this.acc=n,this.concurrent=r,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){if(this.active<this.concurrent){const n=this.index++,r=this.destination;let i;try{const{accumulator:e}=this;i=e(this.acc,t,n)}catch(e){return r.error(e)}this.active++,this._innerSub(i)}else this.buffer.push(t)}_innerSub(t){const e=new r.a(this),n=this.destination;n.add(e);const i=Object(r.c)(t,e);i!==e&&n.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()}notifyNext(t){const{destination:e}=this;this.acc=t,this.hasValue=!0,e.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())}}},"54Wo":function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()-i.getTime()}},"5Qfn":function(t,e,n){"use strict";var r=n("b/k1"),i=n("aJGj");e.iif=function(t,e,n){return void 0===e&&(e=i.EMPTY),void 0===n&&(n=i.EMPTY),r.defer((function(){return t()?e:n}))}},"5R0t":function(t,e){t.exports=function(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r-1),i.setHours(23,59,59,999),i}},"5eHb":function(t,e,n){"use strict";n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return k})),n.d(e,"d",(function(){return O}));var r=n("fXoL"),i=n("R0Ic"),o=n("XNiG"),s=n("jhN1"),a=n("ofXK");const c=["toast-component",""];function l(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",5),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"]().remove()})),r["\u0275\u0275elementStart"](1,"span",6),r["\u0275\u0275text"](2,"\xd7"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}}function u(t,e){if(1&t&&(r["\u0275\u0275elementContainerStart"](0),r["\u0275\u0275text"](1),r["\u0275\u0275elementContainerEnd"]()),2&t){const t=r["\u0275\u0275nextContext"](2);r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("[",t.duplicatesCount+1,"]")}}function h(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275text"](1),r["\u0275\u0275template"](2,u,2,1,"ng-container",4),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275classMap"](t.options.titleClass),r["\u0275\u0275attribute"]("aria-label",t.title),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",t.title," "),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.duplicatesCount)}}function d(t,e){if(1&t&&r["\u0275\u0275element"](0,"div",7),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275classMap"](t.options.messageClass),r["\u0275\u0275property"]("innerHTML",t.message,r["\u0275\u0275sanitizeHtml"])}}function f(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",8),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275classMap"](t.options.messageClass),r["\u0275\u0275attribute"]("aria-label",t.message),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",t.message," ")}}function p(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275element"](1,"div",9),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275styleProp"]("width",t.width+"%")}}class m{constructor(t,e,n,r,i,s){this.toastId=t,this.config=e,this.message=n,this.title=r,this.toastType=i,this.toastRef=s,this._onTap=new o.b,this._onAction=new o.b,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t)}onAction(){return this._onAction.asObservable()}}const g={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing"},b=new r.InjectionToken("ToastConfig");class v{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;if(t)return this._attachedHost=void 0,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class y extends class{attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let r;return r=n.create(t.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let _=(()=>{class t{constructor(t){this._document=t}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._document.createElement("div");t.classList.add("overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](a.e))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(a.e))},token:t,providedIn:"root"}),t})();class w{constructor(t){this._portalHost=t}attach(t,e=!0){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}let S=(()=>{class t{constructor(t,e,n,r){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._document=r,this._paneElements=new Map}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t="",e){return this._paneElements.get(e)||this._paneElements.set(e,{}),this._paneElements.get(e)[t]||(this._paneElements.get(e)[t]=this._createPaneElement(t,e)),this._paneElements.get(e)[t]}_createPaneElement(t,e){const n=this._document.createElement("div");return n.id="toast-container",n.classList.add(t),n.classList.add("toast-container"),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new y(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new w(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](_),r["\u0275\u0275inject"](r.ComponentFactoryResolver),r["\u0275\u0275inject"](r.ApplicationRef),r["\u0275\u0275inject"](a.e))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(_),Object(r["\u0275\u0275inject"])(r.ComponentFactoryResolver),Object(r["\u0275\u0275inject"])(r.ApplicationRef),Object(r["\u0275\u0275inject"])(a.e))},token:t,providedIn:"root"}),t})();class x{constructor(t){this._overlayRef=t,this.duplicatesCount=0,this._afterClosed=new o.b,this._activate=new o.b,this._manualClose=new o.b,this._resetTimeout=new o.b,this._countDuplicate=new o.b}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(t,e){t&&this._resetTimeout.next(),e&&this._countDuplicate.next(++this.duplicatesCount)}}class C{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e,n){return t===m?this._toastPackage:this._parentInjector.get(t,e,n)}}let O=(()=>{class t{constructor(t,e,n,r,i){this.overlay=e,this._injector=n,this.sanitizer=r,this.ngZone=i,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},t.default),t.config),t.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},t.default.iconClasses),t.config.iconClasses))}show(t,e,n={},r=""){return this._preBuildNotification(r,t,e,this.applyConfig(n))}success(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",t,e,this.applyConfig(n))}error(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",t,e,this.applyConfig(n))}info(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",t,e,this.applyConfig(n))}warning(t,e,n={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",t,e,this.applyConfig(n))}clear(t){for(const e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const t=this.toasts[this.currentlyActive].toastRef;t.isInactive()||(this.currentlyActive=this.currentlyActive+1,t.activate())}return!0}findDuplicate(t="",e="",n,r){const{includeTitleDuplicates:i}=this.toastrConfig;for(const o of this.toasts){const s=i&&o.title===t;if((!i||s)&&o.message===e)return o.toastRef.onDuplicate(n,r),o}return null}applyConfig(t={}){return Object.assign(Object.assign({},this.toastrConfig),t)}_findToast(t){for(let e=0;e<this.toasts.length;e++)if(this.toasts[e].toastId===t)return{index:e,activeToast:this.toasts[e]};return null}_preBuildNotification(t,e,n,r){return r.onActivateTick?this.ngZone.run(()=>this._buildNotification(t,e,n,r)):this._buildNotification(t,e,n,r)}_buildNotification(t,e,n,i){if(!i.toastComponent)throw new Error("toastComponent required");const o=this.findDuplicate(n,e,this.toastrConfig.resetTimeoutOnDuplicate&&i.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&n||e)&&this.toastrConfig.preventDuplicates&&null!==o)return o;this.previousToastMessage=e;let s=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(s=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const a=this.overlay.create(i.positionClass,this.overlayContainer);this.index=this.index+1;let c=e;e&&i.enableHtml&&(c=this.sanitizer.sanitize(r.SecurityContext.HTML,e));const l=new x(a),u=new m(this.index,i,c,n,t,l),h=new C(u,this._injector),d=new v(i.toastComponent,h),f=a.attach(d,this.toastrConfig.newestOnTop);l.componentInstance=f.instance;const p={toastId:this.index,title:n||"",message:e||"",toastRef:l,onShown:l.afterActivate(),onHidden:l.afterClosed(),onTap:u.onTap(),onAction:u.onAction(),portal:f};return s||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{p.toastRef.activate()})),this.toasts.push(p),p}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](b),r["\u0275\u0275inject"](S),r["\u0275\u0275inject"](r.Injector),r["\u0275\u0275inject"](s.b),r["\u0275\u0275inject"](r.NgZone))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(b),Object(r["\u0275\u0275inject"])(S),Object(r["\u0275\u0275inject"])(r.INJECTOR),Object(r["\u0275\u0275inject"])(s.b),Object(r["\u0275\u0275inject"])(r.NgZone))},token:t,providedIn:"root"}),t})(),T=(()=>{class t{constructor(t,e,n){this.toastrService=t,this.toastPackage=e,this.ngZone=n,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=e.message,this.title=e.title,this.options=e.config,this.originalTimeout=e.config.timeOut,this.toastClasses=`${e.toastType} ${e.config.toastClass}`,this.sub=e.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=e.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=e.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=e.toastRef.countDuplicate().subscribe(t=>{this.duplicatesCount=t})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0!==this.options.disableTimeOut&&"extendedTimeOut"!==this.options.disableTimeOut&&0!==this.options.extendedTimeOut&&"removed"!==this.state.value&&(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(t),e)):this.timeout=setTimeout(()=>t(),e)}outsideInterval(t,e){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(t),e)):this.intervalId=setInterval(()=>t(),e)}runInsideAngular(t){this.ngZone?this.ngZone.run(()=>t()):t()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](O),r["\u0275\u0275directiveInject"](m),r["\u0275\u0275directiveInject"](r.NgZone))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("click",(function(){return e.tapToast()}))("mouseenter",(function(){return e.stickAround()}))("mouseleave",(function(){return e.delayedHideToast()})),2&t&&(r["\u0275\u0275updateSyntheticHostBinding"]("@flyInOut",e.state),r["\u0275\u0275classMap"](e.toastClasses),r["\u0275\u0275styleProp"]("display",e.displayStyle))},attrs:c,decls:5,vars:5,consts:[["class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(t,e){1&t&&(r["\u0275\u0275template"](0,l,3,0,"button",0),r["\u0275\u0275template"](1,h,3,5,"div",1),r["\u0275\u0275template"](2,d,1,3,"div",2),r["\u0275\u0275template"](3,f,2,4,"div",3),r["\u0275\u0275template"](4,p,2,2,"div",4)),2&t&&(r["\u0275\u0275property"]("ngIf",e.options.closeButton),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.title),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.message&&e.options.enableHtml),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.message&&!e.options.enableHtml),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.options.progressBar))},directives:[a.u],encapsulation:2,data:{animation:[Object(i.n)("flyInOut",[Object(i.k)("inactive",Object(i.l)({opacity:0})),Object(i.k)("active",Object(i.l)({opacity:1})),Object(i.k)("removed",Object(i.l)({opacity:0})),Object(i.m)("inactive => active",Object(i.e)("{{ easeTime }}ms {{ easing }}")),Object(i.m)("active => removed",Object(i.e)("{{ easeTime }}ms {{ easing }}"))])]}}),t})();const E=Object.assign(Object.assign({},g),{toastComponent:T});let k=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:b,useValue:{default:E,config:e}}]}}}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[a.c]]}),t})()},"5g99":function(t,e,n){"use strict";n.d(e,"a",(function(){return je})),n.d(e,"b",(function(){return Pe})),n.d(e,"c",(function(){return Oe})),n.d(e,"d",(function(){return oe})),n.d(e,"e",(function(){return ie})),n.d(e,"f",(function(){return ue})),n.d(e,"g",(function(){return he})),n.d(e,"h",(function(){return pe}));var r=n("fXoL"),i=n("ofXK"),o=/\s+/,s=new(function(){function t(){}return t.prototype.getAllStyles=function(t){return window.getComputedStyle(t)},t.prototype.getStyle=function(t,e){return this.getAllStyles(t)[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.offsetParent=function(t){for(var e=t.offsetParent||document.documentElement;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement},t.prototype.position=function(t,e){var n;void 0===e&&(e=!0);var r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n={top:(n=t.getBoundingClientRect()).top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{var i=this.offsetParent(t);n=this.offset(t,!1),i!==document.documentElement&&(r=this.offset(i,!1)),r.top+=i.clientTop,r.left+=i.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},t.prototype.offset=function(t,e){void 0===e&&(e=!0);var n=t.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft,o={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+i,right:n.right+i};return e&&(o.height=Math.round(o.height),o.width=Math.round(o.width),o.top=Math.round(o.top),o.bottom=Math.round(o.bottom),o.left=Math.round(o.left),o.right=Math.round(o.right)),o},t.prototype.positionElements=function(t,e,n,r){var i=n.split("-"),o=i[0],s=void 0===o?"top":o,a=i[1],c=void 0===a?"center":a,l=r?this.offset(t,!1):this.position(t,!1),u=this.getAllStyles(e),h=parseFloat(u.marginTop),d=parseFloat(u.marginBottom),f=parseFloat(u.marginLeft),p=parseFloat(u.marginRight),m=0,g=0;switch(s){case"top":m=l.top-(e.offsetHeight+h+d);break;case"bottom":m=l.top+l.height;break;case"left":g=l.left-(e.offsetWidth+f+p);break;case"right":g=l.left+l.width}switch(c){case"top":m=l.top;break;case"bottom":m=l.top+l.height-e.offsetHeight;break;case"left":g=l.left;break;case"right":g=l.left+l.width-e.offsetWidth;break;case"center":"top"===s||"bottom"===s?g=l.left+l.width/2-e.offsetWidth/2:m=l.top+l.height/2-e.offsetHeight/2}e.style.transform="translate("+Math.round(g)+"px, "+Math.round(m)+"px)";var b=e.getBoundingClientRect(),v=document.documentElement,y=window.innerHeight||v.clientHeight,_=window.innerWidth||v.clientWidth;return b.left>=0&&b.top>=0&&b.right<=_&&b.bottom<=y},t}()),a=n("XNiG"),c=n("LRne"),l=n("PqYM"),u=n("HDdC"),h=n("1G5W"),d=function(){return(d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},f=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r},p=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}({}),m=[p.SUNDAY,p.SATURDAY];function g(t,e){var n=e.startDate,r=e.excluded,i=e.precision;if(r.length<1)return 0;for(var o=t.getDay,s=t.addDays,a=(0,t.addSeconds)(n,e.seconds-1),c=o(n),l=o(a),u=0,h=n,d=function(){var e=o(h);r.some((function(t){return t===e}))&&(u+=function(t,e){var n=e.day,r=e.dayEnd,i=e.startDate,o=e.endDate,s=t.differenceInSeconds,a=t.startOfDay;if("minutes"===e.precision){if(n===e.dayStart)return s((0,t.endOfDay)(i),i)+1;if(n===r)return s(o,a(o))+1}return 86400}(t,{dayStart:c,dayEnd:l,day:e,precision:i,startDate:n,endDate:a})),h=s(h,1)};h<a;)d();return u}function b(t,e){var n=e.periodStart,r=e.periodEnd;return e.events.filter((function(e){return function(t,e){var n=e.event,r=e.periodStart,i=e.periodEnd,o=t.isSameSecond,s=n.start,a=n.end||n.start;return s>r&&s<i||a>r&&a<i||s<r&&a>i||!(!o(s,r)&&!o(s,i))||!(!o(a,r)&&!o(a,i))}(t,{event:e,periodStart:n,periodEnd:r})}))}function v(t,e){var n=e.date,r=e.weekendDays,i=void 0===r?m:r,o=t.isSameDay,s=t.getDay,a=(0,t.startOfDay)(new Date),c=s(n);return{date:n,day:c,isPast:n<a,isToday:o(n,a),isFuture:n>a,isWeekend:i.indexOf(c)>-1}}function y(t,e){for(var n=e.excluded,r=void 0===n?[]:n,i=e.weekendDays,o=e.viewStart,s=void 0===o?t.startOfWeek(e.viewDate,{weekStartsOn:e.weekStartsOn}):o,a=e.viewEnd,c=void 0===a?t.addDays(s,7):a,l=t.addDays,u=t.getDay,h=[],d=s;d<c;)r.some((function(t){return u(d)===t}))||h.push(v(t,{date:d,weekendDays:i})),d=l(d,1);return h}function _(t,e){var n=e.events,r=void 0===n?[]:n,i=e.excluded,o=void 0===i?[]:i,s=e.precision,a=void 0===s?"days":s,c=e.absolutePositionedEvents,l=void 0!==c&&c,u=e.viewStart,h=e.viewEnd;u=t.startOfDay(u),h=t.endOfDay(h);var p=t.differenceInSeconds,m=t.differenceInDays,b=function(t,e){for(var n=e.date2,r=e.excluded,i=e.date1,o=0;i<n;)-1===r.indexOf(t.getDay(i))&&o++,i=t.addDays(i,1);return o}(t,{date1:u,date2:h,excluded:o}),v=m(h,u)+1,y=r.filter((function(t){return t.allDay})).map((function(e){var n=function(t,e){var n=e.event,r=e.startOfWeek,i=e.excluded,o=e.precision,s=t.differenceInDays,a=t.startOfDay,c=t.differenceInSeconds;if(n.start<r)return 0;var l=0;switch(o){case"days":l=86400*s(a(n.start),r);break;case"minutes":l=c(n.start,r)}return l-=g(t,{startDate:r,seconds:l,excluded:i,precision:o}),Math.abs(l/86400)}(t,{event:e,startOfWeek:u,excluded:o,precision:a});return{event:e,offset:n,span:function(t,e){var n=e.event,r=e.offset,i=e.excluded,o=e.precision,s=e.totalDaysInView,a=t.differenceInSeconds,c=t.addDays,l=t.endOfDay,u=t.differenceInDays,h=86400,d=(0,t.max)([n.start,e.startOfWeekDate]);if(n.end)switch(o){case"minutes":h=a(n.end,d);break;default:h=86400*u(c(l(n.end),1),d)}var f=86400*r,p=86400*s;return f+h>p&&(h=p-f),(h-=g(t,{startDate:d,seconds:h,excluded:i,precision:o}))/86400}(t,{event:e,offset:n,startOfWeekDate:u,excluded:o,precision:a,totalDaysInView:v})}})).filter((function(t){return t.offset<b})).filter((function(t){return t.span>0})).map((function(t){return{event:t.event,offset:t.offset,span:t.span,startsBeforeWeek:t.event.start<u,endsAfterWeek:(t.event.end||t.event.start)>h}})).sort((function(t,e){var n=p(t.event.start,e.event.start);return 0===n?p(e.event.end||e.event.start,t.event.end||t.event.start):n})),_=[],w=[];return y.forEach((function(t,e){if(-1===w.indexOf(t)){w.push(t);var n=t.span+t.offset,r=y.slice(e+1).filter((function(t){if(t.offset>=n&&n+t.span<=v&&-1===w.indexOf(t)){var e=t.offset-n;return l||(t.offset=e),n+=t.span+e,w.push(t),!0}})),i=f([t],r),o=i.filter((function(t){return t.event.id})).map((function(t){return t.event.id})).join("-");_.push(d({row:i},o?{id:o}:{}))}})),_}function w(t,e){var n=e.events,r=e.viewDate,i=e.hourSegments,o=e.hourDuration,s=e.dayStart,a=e.dayEnd,c=e.weekStartsOn,l=e.excluded,u=e.weekendDays,h=e.segmentHeight,f=e.viewStart,p=e.viewEnd,m=e.minimumEventHeight,g=function(t,e){var n=e.viewDate,r=e.hourSegments,i=e.hourDuration,o=e.dayStart,s=e.dayEnd,a=t.setMinutes,c=t.setHours,l=t.startOfDay,u=t.startOfMinute,h=t.endOfDay,d=t.addMinutes,f=t.addDays,p=[],m=a(c(l(n),x(o.hour)),C(o.minute)),g=a(c(u(h(n)),x(s.hour)),C(s.minute)),b=(i||60)/r,v=l(n),y=h(n),_=function(t){return t};v.getTimezoneOffset()!==y.getTimezoneOffset()&&(v=f(v,1),m=f(m,1),g=f(g,1),_=function(t){return f(t,-1)});for(var w=i?1440/i:60,S=0;S<w;S++){for(var O=[],T=0;T<r;T++){var E=d(d(m,S*(i||60)),T*b);E>=m&&E<g&&O.push({date:_(E),displayDate:E,isStart:0===T})}O.length>0&&p.push({segments:O})}return p}(t,{viewDate:r,hourSegments:i,hourDuration:o,dayStart:s,dayEnd:a}),v=y(t,{viewDate:r,weekStartsOn:c,excluded:l,weekendDays:u,viewStart:f,viewEnd:p}),_=t.setHours,w=t.setMinutes,O=t.getHours,T=t.getMinutes;return v.map((function(e){var r=function(t,e){var n=e.events,r=e.viewDate,i=e.hourSegments,o=e.dayStart,s=e.dayEnd,a=e.eventWidth,c=e.segmentHeight,l=e.hourDuration,u=e.minimumEventHeight,h=t.setMinutes,d=t.setHours,f=t.startOfDay,p=t.startOfMinute,m=t.endOfDay,g=t.differenceInMinutes,v=h(d(f(r),x(o.hour)),C(o.minute)),y=h(d(p(m(r)),x(s.hour)),C(s.minute));y.setSeconds(59,999);var _=[],w=b(t,{events:n.filter((function(t){return!t.allDay})),periodStart:v,periodEnd:y}),O=w.sort((function(t,e){return t.start.valueOf()-e.start.valueOf()})).map((function(t){var e=t.start,n=t.end||e,r=e<v,o=n>y,s=i*c/(l||60),h=0;if(e>v){var d=e.getTimezoneOffset(),f=v.getTimezoneOffset()-d;h+=g(e,v)+f}h*=s,h=Math.floor(h);var p=r?v:e,m=o?y:n,b=p.getTimezoneOffset()-m.getTimezoneOffset(),w=g(m,p)+b;t.end?w*=s:w=c,u&&w<u&&(w=u),w=Math.floor(w);for(var x=S(_,h,h+w),C=0;x.some((function(t){return t.left===C}));)C+=a;var O={event:t,height:w,width:a,top:h,left:C,startsBeforeDay:r,endsAfterDay:o};return _.push(O),O})),T=Math.max.apply(Math,O.map((function(t){return t.left+t.width})));return{events:O,width:T,allDayEvents:b(t,{events:n.filter((function(t){return t.allDay})),periodStart:f(v),periodEnd:m(y)}),period:{events:w,start:v,end:y}}}(t,{events:n,viewDate:e.date,hourSegments:i,dayStart:s,dayEnd:a,segmentHeight:h,eventWidth:1,hourDuration:o,minimumEventHeight:m}),c=g.map((function(t){var n=t.segments.map((function(t){var n=w(_(e.date,O(t.date)),T(t.date));return d(d({},t),{date:n})}));return d(d({},t),{segments:n})})),l=r.events.map((function(t){var e=100/function t(e,n){var r=Math.max.apply(Math,n.map((function(t){return t.left+1}))),i=e.filter((function(t){return t.left>=r})).filter((function(t){return S(n,t.top,t.top+t.height).length>0}));return i.length>0?t(e,i):r}(r.events,S(r.events,t.top,t.top+t.height));return d(d({},t),{left:t.left*e,width:e})}));return{hours:c,date:e.date,events:l.map((function(t){var e=S(l.filter((function(e){return e.left>t.left})),t.top,t.top+t.height);return e.length>0?d(d({},t),{width:Math.min.apply(Math,e.map((function(t){return t.left})))-t.left}):t}))}}))}function S(t,e,n){return t.filter((function(t){var r=t.top,i=t.top+t.height;return e<i&&i<n||e<r&&r<n||r<=e&&n<=i}))}function x(t){return Math.max(Math.min(23,t),0)}function C(t){return Math.max(Math.min(59,t),0)}var O=function(t){return t.NotArray="Events must be an array",t.StartPropertyMissing="Event is missing the `start` property",t.StartPropertyNotDate="Event `start` property should be a javascript date object. Do `new Date(event.start)` to fix it.",t.EndPropertyNotDate="Event `end` property should be a javascript date object. Do `new Date(event.end)` to fix it.",t.EndsBeforeStart="Event `start` property occurs after the `end`",t}({}),T=n("jtHE"),E=n("VRyK"),k=n("itXk"),A=n("xgIS");function D(t,e){var n,r;return r=e,"function"==typeof(t=void 0===(n=t)?void 0===r?n:r:n)?function(){for(var e=arguments,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=e[i];return!!t.apply(this,r)}:t?function(){return!0}:function(){return!1}}var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},I=function(t){return null!=t&&"object"===(void 0===t?"undefined":j(t))&&1===t.nodeType&&"object"===j(t.style)&&"object"===j(t.ownerDocument)};function P(t,e){if(e=L(e,!0),!I(e))return-1;for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}function M(t,e){return-1!==P(t,e)}function N(t,e){for(var n=0;n<e.length;n++)M(t,e[n])||t.push(e[n]);return e}function F(t){for(var e=arguments,n=[],r=arguments.length-1;r-- >0;)n[r]=e[r+1];return N(t,n=n.map(L))}function R(t){for(var e=arguments,n=[],r=arguments.length-1;r-- >0;)n[r]=e[r+1];return n.map(L).reduce((function(e,n){var r=P(t,n);return-1!==r?e.concat(t.splice(r,1)):e}),[])}function L(t,e){if("string"==typeof t)try{return document.querySelector(t)}catch(n){throw n}if(!I(t)&&!e)throw new TypeError(t+" is not a DOM element.");return t}function V(t){if(t===window)return function(){var t={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},t);var e={};return Object.defineProperties(e,t),e}();try{var e=t.getBoundingClientRect();return void 0===e.x&&(e.x=e.left,e.y=e.top),e}catch(n){throw new TypeError("Can't call getBoundingClientRect on "+t)}}var H,B=void 0;"function"!=typeof Object.create?(H=function(){},B=function(t,e){if(t!==Object(t)&&null!==t)throw TypeError("Argument must be an object, or null");H.prototype=t||{};var n=new H;return H.prototype=null,void 0!==e&&Object.defineProperties(n,e),null===t&&(n.__proto__=null),n}):B=Object.create;var G=B,z=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function W(t,e){e=e||{};for(var n=G(t),r=0;r<z.length;r++)void 0!==e[z[r]]&&(n[z[r]]=e[z[r]]);return n}function U(t,e){console.log("data ",e),t.data=e||{},t.dispatched="mousemove"}var q=["webkit","moz","ms","o"],X=function(){if("undefined"==typeof window)return function(){};for(var t=0,e=q.length;t<e&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[q[t]+"RequestAnimationFrame"];if(!window.requestAnimationFrame){var n=0;window.requestAnimationFrame=function(t){var e=(new Date).getTime(),r=Math.max(0,16-e-n),i=window.setTimeout((function(){return t(e+r)}),r);return n=e+r,i}}return window.requestAnimationFrame.bind(window)}(),$=function(){if("undefined"==typeof window)return function(){};for(var t=0,e=q.length;t<e&&!window.cancelAnimationFrame;++t)window.cancelAnimationFrame=window[q[t]+"CancelAnimationFrame"]||window[q[t]+"CancelRequestAnimationFrame"];return window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){window.clearTimeout(t)}),window.cancelAnimationFrame.bind(window)}();function K(t,e){void 0===e&&(e={});var n=this,r=4,i=!1;if("object"!=typeof e.margin){var o=e.margin||-1;this.margin={left:o,right:o,top:o,bottom:o}}else this.margin=e.margin;this.scrollWhenOutside=e.scrollWhenOutside||!1;var s,a={},c=function(t,e){var n=D((e=e||{}).allowUpdate,!0);return function(e){if(e=e||window.event,t.target=e.target||e.srcElement||e.originalTarget,t.element=this,t.type=e.type,n(e)){if(e.targetTouches)t.x=e.targetTouches[0].clientX,t.y=e.targetTouches[0].clientY,t.pageX=e.targetTouches[0].pageX,t.pageY=e.targetTouches[0].pageY,t.screenX=e.targetTouches[0].screenX,t.screenY=e.targetTouches[0].screenY;else{if(null===e.pageX&&null!==e.clientX){var r=e.target&&e.target.ownerDocument||document,i=r.documentElement,o=r.body;t.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}else t.pageX=e.pageX,t.pageY=e.pageY;t.x=e.clientX,t.y=e.clientY,t.screenX=e.screenX,t.screenY=e.screenY}t.clientX=t.x,t.clientY=t.y}}}(a),l=(s={screenX:0,screenY:0,clientX:0,clientY:0,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,button:0,buttons:1,relatedTarget:null,region:null},{destroy:function(){s=null},dispatch:MouseEvent?function(t,e,n){var r=new MouseEvent("mousemove",W(s,e));return U(r,n),t.dispatchEvent(r)}:"function"==typeof document.createEvent?function(t,e,n){var r=W(s,e),i=document.createEvent("MouseEvents");return i.initMouseEvent("mousemove",!0,!0,window,0,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget),U(i,n),t.dispatchEvent(i)}:"function"==typeof document.createEventObject?function(t,e,n){var r=document.createEventObject(),i=W(s,e);for(var o in i)r[o]=i[o];return U(r,n),t.dispatchEvent(r)}:void 0}),u=!1;window.addEventListener("mousemove",c,!1),window.addEventListener("touchmove",c,!1),isNaN(e.maxSpeed)||(r=e.maxSpeed),"object"!=typeof r&&(r={left:r,right:r,top:r,bottom:r}),this.autoScroll=D(e.autoScroll),this.syncMove=D(e.syncMove,!1),this.destroy=function(e){window.removeEventListener("mousemove",c,!1),window.removeEventListener("touchmove",c,!1),window.removeEventListener("mousedown",b,!1),window.removeEventListener("touchstart",b,!1),window.removeEventListener("mouseup",v,!1),window.removeEventListener("touchend",v,!1),window.removeEventListener("pointerup",v,!1),window.removeEventListener("mouseleave",_,!1),window.removeEventListener("mousemove",S,!1),window.removeEventListener("touchmove",S,!1),window.removeEventListener("scroll",g,!0),t=[],e&&y()},this.add=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return F.apply(void 0,[t].concat(e)),this},this.remove=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return R.apply(void 0,[t].concat(e))};var h,d,f=null;"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]),d=t,t=[],d.forEach((function(t){t===window?f=window:n.add(t)})),Object.defineProperties(this,{down:{get:function(){return u}},maxSpeed:{get:function(){return r}},point:{get:function(){return a}},scrolling:{get:function(){return i}}});var p,m=null;function g(e){for(var n=0;n<t.length;n++)if(t[n]===e.target){i=!0;break}i&&X((function(){return i=!1}))}function b(){u=!0}function v(){u=!1,y()}function y(){$(p),$(h)}function _(){u=!1}function w(){for(var e=null,n=0;n<t.length;n++)Y(a,t[n])&&(e=t[n]);return e}function S(e){if(n.autoScroll()&&!e.dispatched){var r=e.target,i=document.body;m&&!Y(a,m)&&(n.scrollWhenOutside||(m=null)),r&&r.parentNode===i?r=w():(r=function(e){if(!e)return null;if(m===e)return e;if(M(t,e))return e;for(;e=e.parentNode;)if(M(t,e))return e;return null}(r))||(r=w()),r&&r!==m&&(m=r),f&&($(h),h=X(x)),m&&($(p),p=X(C))}}function x(){O(f),$(h),h=X(x)}function C(){m&&(O(m),$(p),p=X(C))}function O(t){var e,r,i=V(t);e=a.x<i.left+n.margin.left?Math.floor(Math.max(-1,(a.x-i.left)/n.margin.left-1)*n.maxSpeed.left):a.x>i.right-n.margin.right?Math.ceil(Math.min(1,(a.x-i.right)/n.margin.right+1)*n.maxSpeed.right):0,r=a.y<i.top+n.margin.top?Math.floor(Math.max(-1,(a.y-i.top)/n.margin.top-1)*n.maxSpeed.top):a.y>i.bottom-n.margin.bottom?Math.ceil(Math.min(1,(a.y-i.bottom)/n.margin.bottom+1)*n.maxSpeed.bottom):0,n.syncMove()&&l.dispatch(t,{pageX:a.pageX+e,pageY:a.pageY+r,clientX:a.x+e,clientY:a.y+r}),setTimeout((function(){r&&function(t,e){t===window?window.scrollTo(t.pageXOffset,t.pageYOffset+e):t.scrollTop+=e}(t,r),e&&function(t,e){t===window?window.scrollTo(t.pageXOffset+e,t.pageYOffset):t.scrollLeft+=e}(t,e)}))}window.addEventListener("mousedown",b,!1),window.addEventListener("touchstart",b,!1),window.addEventListener("mouseup",v,!1),window.addEventListener("touchend",v,!1),window.addEventListener("pointerup",v,!1),window.addEventListener("mousemove",S,!1),window.addEventListener("touchmove",S,!1),window.addEventListener("mouseleave",_,!1),window.addEventListener("scroll",g,!0)}function Y(t,e,n){return n?t.y>n.top&&t.y<n.bottom&&t.x>n.left&&t.x<n.right:function(t,e){var n=V(e);return t.y>n.top&&t.y<n.bottom&&t.x>n.left&&t.x<n.right}(t,e)}var Q=n("pLZG"),J=n("5+tZ"),Z=n("JX91"),tt=n("lJxs"),et=n("w1tV"),nt=n("IzEk"),rt=n("BFxc"),it=n("HrJb"),ot=n("Zy1z"),st=n("/uUt");let at=(()=>{class t{constructor(){this.currentDrag=new a.b}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(r.defineInjectable)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),ct=(()=>{class t{constructor(t){this.elementRef=t,this.activeLongPressDrag=!1,this.longPressConfig={duration:300,delta:30}}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mwlDraggableScrollContainer",""]],inputs:{activeLongPressDrag:"activeLongPressDrag",longPressConfig:"longPressConfig"}}),t})();function lt(t,e,n){n&&n.split(" ").forEach(n=>t.addClass(e.nativeElement,n))}function ut(t,e,n){n&&n.split(" ").forEach(n=>t.removeClass(e.nativeElement,n))}let ht=(()=>{class t{constructor(t,e,n,i,o,s,c){this.element=t,this.renderer=e,this.draggableHelper=n,this.zone=i,this.vcr=o,this.scrollContainer=s,this.document=c,this.dragAxis={x:!0,y:!0},this.dragSnapGrid={},this.ghostDragEnabled=!0,this.showOriginalElementWhileDragging=!1,this.dragCursor="",this.autoScroll={margin:20},this.dragPointerDown=new r.EventEmitter,this.dragStart=new r.EventEmitter,this.ghostElementCreated=new r.EventEmitter,this.dragging=new r.EventEmitter,this.dragEnd=new r.EventEmitter,this.pointerDown$=new a.b,this.pointerMove$=new a.b,this.pointerUp$=new a.b,this.eventListenerSubscriptions={},this.destroy$=new a.b,this.timeLongPress={timerBegin:0,timerEnd:0}}ngOnInit(){this.checkEventListeners();const t=this.pointerDown$.pipe(Object(Q.a)(()=>this.canDrag()),Object(J.b)(t=>{t.event.stopPropagation&&!this.scrollContainer&&t.event.stopPropagation();const e=this.renderer.createElement("style");this.renderer.setAttribute(e,"type","text/css"),this.renderer.appendChild(e,this.renderer.createText("\n          body * {\n           -moz-user-select: none;\n           -ms-user-select: none;\n           -webkit-user-select: none;\n           user-select: none;\n          }\n        ")),requestAnimationFrame(()=>{this.document.head.appendChild(e)});const n=this.getScrollPosition(),r=new u.a(t=>this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",e=>t.next(e))).pipe(Object(Z.a)(n),Object(tt.a)(()=>this.getScrollPosition())),i=new a.b,o=new T.a;this.zone.run(()=>{this.dragPointerDown.next({x:0,y:0})});const s=Object(E.a)(this.pointerUp$,this.pointerDown$,o,this.destroy$).pipe(Object(et.a)()),c=Object(k.b)([this.pointerMove$,r]).pipe(Object(tt.a)(([e,n])=>({currentDrag$:i,transformX:e.clientX-t.clientX,transformY:e.clientY-t.clientY,clientX:e.clientX,clientY:e.clientY,scrollLeft:n.left,scrollTop:n.top,target:e.event.target})),Object(tt.a)(t=>(this.dragSnapGrid.x&&(t.transformX=Math.round(t.transformX/this.dragSnapGrid.x)*this.dragSnapGrid.x),this.dragSnapGrid.y&&(t.transformY=Math.round(t.transformY/this.dragSnapGrid.y)*this.dragSnapGrid.y),t)),Object(tt.a)(t=>(this.dragAxis.x||(t.transformX=0),this.dragAxis.y||(t.transformY=0),t)),Object(tt.a)(t=>Object.assign({},t,{x:t.transformX+(t.scrollLeft-n.left),y:t.transformY+(t.scrollTop-n.top)})),Object(Q.a)(({x:t,y:e,transformX:n,transformY:r})=>!this.validateDrag||this.validateDrag({x:t,y:e,transform:{x:n,y:r}})),Object(h.a)(s),Object(et.a)()),l=c.pipe(Object(nt.a)(1),Object(et.a)()),d=c.pipe(Object(rt.a)(1),Object(et.a)());return l.subscribe(({clientX:t,clientY:e,x:n,y:r})=>{if(this.zone.run(()=>{this.dragStart.next({cancelDrag$:o})}),this.scroller=new K([this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.defaultView],Object.assign({},this.autoScroll,{autoScroll:()=>!0})),lt(this.renderer,this.element,this.dragActiveClass),this.ghostDragEnabled){const i=this.element.nativeElement.getBoundingClientRect(),o=this.element.nativeElement.cloneNode(!0);if(this.showOriginalElementWhileDragging||this.renderer.setStyle(this.element.nativeElement,"visibility","hidden"),this.ghostElementAppendTo?this.ghostElementAppendTo.appendChild(o):this.element.nativeElement.parentNode.insertBefore(o,this.element.nativeElement.nextSibling),this.ghostElement=o,this.document.body.style.cursor=this.dragCursor,this.setElementStyles(o,{position:"fixed",top:i.top+"px",left:i.left+"px",width:i.width+"px",height:i.height+"px",cursor:this.dragCursor,margin:"0",willChange:"transform",pointerEvents:"none"}),this.ghostElementTemplate){const t=this.vcr.createEmbeddedView(this.ghostElementTemplate);o.innerHTML="",t.rootNodes.filter(t=>t instanceof Node).forEach(t=>{o.appendChild(t)}),d.subscribe(()=>{this.vcr.remove(this.vcr.indexOf(t))})}this.zone.run(()=>{this.ghostElementCreated.emit({clientX:t-n,clientY:e-r,element:o})}),d.subscribe(()=>{o.parentElement.removeChild(o),this.ghostElement=null,this.renderer.setStyle(this.element.nativeElement,"visibility","")})}this.draggableHelper.currentDrag.next(i)}),d.pipe(Object(J.b)(t=>{const e=o.pipe(Object(it.a)(),Object(nt.a)(1),Object(tt.a)(e=>Object.assign({},t,{dragCancelled:e>0})));return o.complete(),e})).subscribe(({x:t,y:e,dragCancelled:n})=>{this.scroller.destroy(),this.zone.run(()=>{this.dragEnd.next({x:t,y:e,dragCancelled:n})}),ut(this.renderer,this.element,this.dragActiveClass),i.complete()}),Object(E.a)(s,d).pipe(Object(nt.a)(1)).subscribe(()=>{requestAnimationFrame(()=>{this.document.head.removeChild(e)})}),c}),Object(et.a)());Object(E.a)(t.pipe(Object(nt.a)(1),Object(tt.a)(t=>[,t])),t.pipe(Object(ot.a)())).pipe(Object(Q.a)(([t,e])=>!t||t.x!==e.x||t.y!==e.y),Object(tt.a)(([t,e])=>e)).subscribe(({x:t,y:e,currentDrag$:n,clientX:r,clientY:i,transformX:o,transformY:s,target:a})=>{this.zone.run(()=>{this.dragging.next({x:t,y:e})}),requestAnimationFrame(()=>{if(this.ghostElement){const t=`translate3d(${o}px, ${s}px, 0px)`;this.setElementStyles(this.ghostElement,{transform:t,"-webkit-transform":t,"-ms-transform":t,"-moz-transform":t,"-o-transform":t})}}),n.next({clientX:r,clientY:i,dropData:this.dropData,target:a})})}ngOnChanges(t){t.dragAxis&&this.checkEventListeners()}ngOnDestroy(){this.unsubscribeEventListeners(),this.pointerDown$.complete(),this.pointerMove$.complete(),this.pointerUp$.complete(),this.destroy$.next()}checkEventListeners(){const t=this.canDrag(),e=Object.keys(this.eventListenerSubscriptions).length>0;t&&!e?this.zone.runOutsideAngular(()=>{this.eventListenerSubscriptions.mousedown=this.renderer.listen(this.element.nativeElement,"mousedown",t=>{this.onMouseDown(t)}),this.eventListenerSubscriptions.mouseup=this.renderer.listen("document","mouseup",t=>{this.onMouseUp(t)}),this.eventListenerSubscriptions.touchstart=this.renderer.listen(this.element.nativeElement,"touchstart",t=>{this.onTouchStart(t)}),this.eventListenerSubscriptions.touchend=this.renderer.listen("document","touchend",t=>{this.onTouchEnd(t)}),this.eventListenerSubscriptions.touchcancel=this.renderer.listen("document","touchcancel",t=>{this.onTouchEnd(t)}),this.eventListenerSubscriptions.mouseenter=this.renderer.listen(this.element.nativeElement,"mouseenter",()=>{this.onMouseEnter()}),this.eventListenerSubscriptions.mouseleave=this.renderer.listen(this.element.nativeElement,"mouseleave",()=>{this.onMouseLeave()})}):!t&&e&&this.unsubscribeEventListeners()}onMouseDown(t){0===t.button&&(this.eventListenerSubscriptions.mousemove||(this.eventListenerSubscriptions.mousemove=this.renderer.listen("document","mousemove",t=>{this.pointerMove$.next({event:t,clientX:t.clientX,clientY:t.clientY})})),this.pointerDown$.next({event:t,clientX:t.clientX,clientY:t.clientY}))}onMouseUp(t){0===t.button&&(this.eventListenerSubscriptions.mousemove&&(this.eventListenerSubscriptions.mousemove(),delete this.eventListenerSubscriptions.mousemove),this.pointerUp$.next({event:t,clientX:t.clientX,clientY:t.clientY}))}onTouchStart(t){let e,n,r;if((this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&(this.timeLongPress.timerBegin=Date.now(),n=!1,r=this.hasScrollbar(),e=this.getScrollPosition()),!this.eventListenerSubscriptions.touchmove){const i=Object(A.a)(this.document,"contextmenu").subscribe(t=>{t.preventDefault()}),o=Object(A.a)(this.document,"touchmove",{passive:!1}).subscribe(i=>{(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&!n&&r&&(n=this.shouldBeginDrag(t,i,e)),(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&r&&!n||(i.preventDefault(),this.pointerMove$.next({event:i,clientX:i.targetTouches[0].clientX,clientY:i.targetTouches[0].clientY}))});this.eventListenerSubscriptions.touchmove=()=>{i.unsubscribe(),o.unsubscribe()}}this.pointerDown$.next({event:t,clientX:t.touches[0].clientX,clientY:t.touches[0].clientY})}onTouchEnd(t){this.eventListenerSubscriptions.touchmove&&(this.eventListenerSubscriptions.touchmove(),delete this.eventListenerSubscriptions.touchmove,(this.scrollContainer&&this.scrollContainer.activeLongPressDrag||this.touchStartLongPress)&&this.enableScroll()),this.pointerUp$.next({event:t,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY})}onMouseEnter(){this.setCursor(this.dragCursor)}onMouseLeave(){this.setCursor("")}canDrag(){return this.dragAxis.x||this.dragAxis.y}setCursor(t){this.eventListenerSubscriptions.mousemove||this.renderer.setStyle(this.element.nativeElement,"cursor",t)}unsubscribeEventListeners(){Object.keys(this.eventListenerSubscriptions).forEach(t=>{this.eventListenerSubscriptions[t](),delete this.eventListenerSubscriptions[t]})}setElementStyles(t,e){Object.keys(e).forEach(n=>{this.renderer.setStyle(t,n,e[n])})}getScrollElement(){return this.scrollContainer?this.scrollContainer.elementRef.nativeElement:this.document.body}getScrollPosition(){return this.scrollContainer?{top:this.scrollContainer.elementRef.nativeElement.scrollTop,left:this.scrollContainer.elementRef.nativeElement.scrollLeft}:{top:window.pageYOffset||this.document.documentElement.scrollTop,left:window.pageXOffset||this.document.documentElement.scrollLeft}}shouldBeginDrag(t,e,n){const r=this.getScrollPosition(),i=Math.abs(r.top-n.top),o=Math.abs(r.left-n.left),s=Math.abs(e.targetTouches[0].clientX-t.touches[0].clientX)-o,a=Math.abs(e.targetTouches[0].clientY-t.touches[0].clientY)-i,c=this.touchStartLongPress?this.touchStartLongPress:{delta:this.scrollContainer.longPressConfig.delta,delay:this.scrollContainer.longPressConfig.duration};return(s+a>c.delta||i>0||o>0)&&(this.timeLongPress.timerBegin=Date.now()),this.timeLongPress.timerEnd=Date.now(),this.timeLongPress.timerEnd-this.timeLongPress.timerBegin>=c.delay&&(this.disableScroll(),!0)}enableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow",""),this.renderer.setStyle(this.document.body,"overflow","")}disableScroll(){this.scrollContainer&&this.renderer.setStyle(this.scrollContainer.elementRef.nativeElement,"overflow","hidden"),this.renderer.setStyle(this.document.body,"overflow","hidden")}hasScrollbar(){const t=this.getScrollElement();return t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](at),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](ct,8),r["\u0275\u0275directiveInject"](i.e))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mwlDraggable",""]],inputs:{dragAxis:"dragAxis",dragSnapGrid:"dragSnapGrid",ghostDragEnabled:"ghostDragEnabled",showOriginalElementWhileDragging:"showOriginalElementWhileDragging",dragCursor:"dragCursor",autoScroll:"autoScroll",dropData:"dropData",validateDrag:"validateDrag",dragActiveClass:"dragActiveClass",ghostElementAppendTo:"ghostElementAppendTo",ghostElementTemplate:"ghostElementTemplate",touchStartLongPress:"touchStartLongPress"},outputs:{dragPointerDown:"dragPointerDown",dragStart:"dragStart",ghostElementCreated:"ghostElementCreated",dragging:"dragging",dragEnd:"dragEnd"},features:[r["\u0275\u0275NgOnChangesFeature"]]}),t})();function dt(t,e,n){return t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}let ft=(()=>{class t{constructor(t,e,n,i,o){this.element=t,this.draggableHelper=e,this.zone=n,this.renderer=i,this.scrollContainer=o,this.dragEnter=new r.EventEmitter,this.dragLeave=new r.EventEmitter,this.dragOver=new r.EventEmitter,this.drop=new r.EventEmitter}ngOnInit(){this.currentDragSubscription=this.draggableHelper.currentDrag.subscribe(t=>{lt(this.renderer,this.element,this.dragActiveClass);const e={updateCache:!0},n=this.renderer.listen(this.scrollContainer?this.scrollContainer.elementRef.nativeElement:"window","scroll",()=>{e.updateCache=!0});let r;const i=t.pipe(Object(tt.a)(({clientX:t,clientY:n,dropData:i,target:o})=>{r=i,e.updateCache&&(e.rect=this.element.nativeElement.getBoundingClientRect(),this.scrollContainer&&(e.scrollContainerRect=this.scrollContainer.elementRef.nativeElement.getBoundingClientRect()),e.updateCache=!1);const s=dt(t,n,e.rect),a=!this.validateDrop||this.validateDrop({clientX:t,clientY:n,target:o});return e.scrollContainerRect?s&&a&&dt(t,n,e.scrollContainerRect):s&&a})),o=i.pipe(Object(st.a)());let s;o.pipe(Object(Q.a)(t=>t)).subscribe(()=>{s=!0,lt(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragEnter.next({dropData:r})})}),i.pipe(Object(Q.a)(t=>t)).subscribe(()=>{this.zone.run(()=>{this.dragOver.next({dropData:r})})}),o.pipe(Object(ot.a)(),Object(Q.a)(([t,e])=>t&&!e)).subscribe(()=>{s=!1,ut(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.dragLeave.next({dropData:r})})}),t.subscribe({complete:()=>{n(),ut(this.renderer,this.element,this.dragActiveClass),s&&(ut(this.renderer,this.element,this.dragOverClass),this.zone.run(()=>{this.drop.next({dropData:r})}))}})})}ngOnDestroy(){this.currentDragSubscription&&this.currentDragSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](at),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](ct,8))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mwlDroppable",""]],inputs:{dragOverClass:"dragOverClass",dragActiveClass:"dragActiveClass",validateDrop:"validateDrop"},outputs:{dragEnter:"dragEnter",dragLeave:"dragLeave",dragOver:"dragOver",drop:"drop"}}),t})(),pt=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})();var mt=n("R0Ic");const gt=function(t){return{action:t}};function bt(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"a",5),r["\u0275\u0275listener"]("mwlClick",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit,o=r["\u0275\u0275nextContext"](2).event;return i.onClick({event:o,sourceEvent:n})}))("mwlKeydownEnter",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit,o=r["\u0275\u0275nextContext"](2).event;return i.onClick({event:o,sourceEvent:n})})),r["\u0275\u0275pipe"](1,"calendarA11y"),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit;r["\u0275\u0275property"]("ngClass",t.cssClass)("innerHtml",t.label,r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275attribute"]("aria-label",r["\u0275\u0275pipeBind2"](1,3,r["\u0275\u0275pureFunction1"](6,gt,t),"actionButtonLabel"))}}function vt(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"span",3),r["\u0275\u0275template"](1,bt,2,8,"a",4),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"](),e=t.event,n=t.trackByActionId;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.actions)("ngForTrackBy",n)}}function yt(t,e){1&t&&r["\u0275\u0275template"](0,vt,2,2,"span",2),2&t&&r["\u0275\u0275property"]("ngIf",e.event.actions)}function _t(t,e){}const wt=function(t,e){return{event:t,trackByActionId:e}},St=function(){return{}};function xt(t,e){if(1&t&&(r["\u0275\u0275element"](0,"span",2),r["\u0275\u0275pipe"](1,"calendarEventTitle"),r["\u0275\u0275pipe"](2,"calendarA11y")),2&t){const t=e.event;r["\u0275\u0275property"]("innerHTML",r["\u0275\u0275pipeBind3"](1,2,t.title,e.view,t),r["\u0275\u0275sanitizeHtml"]),r["\u0275\u0275attribute"]("aria-hidden",r["\u0275\u0275pipeBind2"](2,6,r["\u0275\u0275pureFunction0"](9,St),"hideEventTitle"))}}function Ct(t,e){}const Ot=function(t,e){return{event:t,view:e}};function Tt(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275element"](1,"div",3),r["\u0275\u0275element"](2,"div",4),r["\u0275\u0275elementEnd"]()),2&t){const t=e.contents;r["\u0275\u0275property"]("ngClass","cal-tooltip-"+e.placement),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("innerHtml",t,r["\u0275\u0275sanitizeHtml"])}}function Et(t,e){}const kt=function(t,e,n){return{contents:t,placement:e,event:n}},At=function(t){return{backgroundColor:t}};function Dt(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"mwl-calendar-month-cell",7),r["\u0275\u0275listener"]("mwlClick",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"](2).dayClicked.emit({day:i,sourceEvent:n})}))("mwlKeydownEnter",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"](2).dayClicked.emit({day:i,sourceEvent:n})}))("highlightDay",(function(e){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"](2).toggleDayHighlight(e.event,!0)}))("unhighlightDay",(function(e){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"](2).toggleDayHighlight(e.event,!1)}))("drop",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"](2).eventDropped(i,n.dropData.event,n.dropData.draggedFrom)}))("eventClicked",(function(e){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"](2).eventClicked.emit({event:e.event,sourceEvent:e.sourceEvent})})),r["\u0275\u0275pipe"](1,"calendarA11y"),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,n=r["\u0275\u0275nextContext"](2);r["\u0275\u0275property"]("ngClass",null==t?null:t.cssClass)("day",t)("openDay",n.openDay)("locale",n.locale)("tooltipPlacement",n.tooltipPlacement)("tooltipAppendToBody",n.tooltipAppendToBody)("tooltipTemplate",n.tooltipTemplate)("tooltipDelay",n.tooltipDelay)("customTemplate",n.cellTemplate)("ngStyle",r["\u0275\u0275pureFunction1"](15,At,t.backgroundColor))("clickListenerDisabled",0===n.dayClicked.observers.length),r["\u0275\u0275attribute"]("tabindex",r["\u0275\u0275pipeBind2"](1,12,r["\u0275\u0275pureFunction0"](17,St),"monthCellTabIndex"))}}function jt(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div"),r["\u0275\u0275elementStart"](1,"div",4),r["\u0275\u0275template"](2,Dt,2,18,"mwl-calendar-month-cell",5),r["\u0275\u0275pipe"](3,"slice"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"mwl-calendar-open-day-events",6),r["\u0275\u0275listener"]("eventClicked",(function(e){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"]().eventClicked.emit({event:e.event,sourceEvent:e.sourceEvent})}))("drop",(function(e){r["\u0275\u0275restoreView"](t);const n=r["\u0275\u0275nextContext"]();return n.eventDropped(n.openDay,e.dropData.event,e.dropData.draggedFrom)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,n=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",r["\u0275\u0275pipeBind3"](3,9,n.view.days,t,t+n.view.totalDaysVisibleInWeek))("ngForTrackBy",n.trackByDate),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("locale",n.locale)("isOpen",n.openRowIndex===t)("events",null==n.openDay?null:n.openDay.events)("date",null==n.openDay?null:n.openDay.date)("customTemplate",n.openDayEventsTemplate)("eventTitleTemplate",n.eventTitleTemplate)("eventActionsTemplate",n.eventActionsTemplate)}}function It(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",4),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"](2).columnHeaderClicked.emit({isoDayNumber:i.day,sourceEvent:n})})),r["\u0275\u0275text"](1),r["\u0275\u0275pipe"](2,"calendarDate"),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,n=r["\u0275\u0275nextContext"]().locale;r["\u0275\u0275classProp"]("cal-past",t.isPast)("cal-today",t.isToday)("cal-future",t.isFuture)("cal-weekend",t.isWeekend),r["\u0275\u0275property"]("ngClass",t.cssClass),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"](" ",r["\u0275\u0275pipeBind3"](2,10,t.date,"monthViewColumnHeader",n)," ")}}function Pt(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275template"](1,It,3,14,"div",3),r["\u0275\u0275elementEnd"]()),2&t){const t=e.days,n=e.trackByWeekDayHeaderDate;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",t)("ngForTrackBy",n)}}function Mt(t,e){}const Nt=function(t,e,n){return{days:t,locale:e,trackByWeekDayHeaderDate:n}};function Ft(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"span",7),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]().day;r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t.badgeTotal)}}const Rt=function(t,e){return{event:t,draggedFrom:e}},Lt=function(t,e){return{x:t,y:e}},Vt=function(){return{delay:300,delta:30}};function Ht(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",10),r["\u0275\u0275listener"]("mouseenter",(function(){r["\u0275\u0275restoreView"](t);const n=e.$implicit;return r["\u0275\u0275nextContext"](2).highlightDay.emit({event:n})}))("mouseleave",(function(){r["\u0275\u0275restoreView"](t);const n=e.$implicit;return r["\u0275\u0275nextContext"](2).unhighlightDay.emit({event:n})}))("mwlClick",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"](2).eventClicked.emit({event:i,sourceEvent:n})})),r["\u0275\u0275pipe"](1,"calendarEventTitle"),r["\u0275\u0275pipe"](2,"calendarA11y"),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,n=r["\u0275\u0275nextContext"](2),i=n.tooltipPlacement,o=n.tooltipTemplate,s=n.tooltipAppendToBody,a=n.tooltipDelay,c=n.day,l=n.validateDrag;r["\u0275\u0275classProp"]("cal-draggable",t.draggable),r["\u0275\u0275property"]("ngStyle",r["\u0275\u0275pureFunction1"](22,At,null==t.color?null:t.color.primary))("ngClass",null==t?null:t.cssClass)("mwlCalendarTooltip",r["\u0275\u0275pipeBind3"](1,15,t.title,"monthTooltip",t))("tooltipPlacement",i)("tooltipEvent",t)("tooltipTemplate",o)("tooltipAppendToBody",s)("tooltipDelay",a)("dropData",r["\u0275\u0275pureFunction2"](24,Rt,t,c))("dragAxis",r["\u0275\u0275pureFunction2"](27,Lt,t.draggable,t.draggable))("validateDrag",l)("touchStartLongPress",r["\u0275\u0275pureFunction0"](30,Vt)),r["\u0275\u0275attribute"]("aria-hidden",r["\u0275\u0275pipeBind2"](2,19,r["\u0275\u0275pureFunction0"](31,St),"hideMonthCellEvents"))}}function Bt(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",8),r["\u0275\u0275template"](1,Ht,3,32,"div",9),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"](),e=t.day,n=t.trackByEventId;r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.events)("ngForTrackBy",n)}}const Gt=function(t,e){return{day:t,locale:e}};function zt(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",2),r["\u0275\u0275pipe"](1,"calendarA11y"),r["\u0275\u0275elementStart"](2,"span",3),r["\u0275\u0275template"](3,Ft,2,1,"span",4),r["\u0275\u0275elementStart"](4,"span",5),r["\u0275\u0275text"](5),r["\u0275\u0275pipe"](6,"calendarDate"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](7,Bt,2,2,"div",6)),2&t){const t=e.day,n=e.locale;r["\u0275\u0275attribute"]("aria-label",r["\u0275\u0275pipeBind2"](1,4,r["\u0275\u0275pureFunction2"](11,Gt,t,n),"monthCell")),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("ngIf",t.badgeTotal>0),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](r["\u0275\u0275pipeBind3"](6,7,t.date,"monthViewDayNumber",n)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",t.events.length>0)}}function Wt(t,e){}const Ut=function(t,e,n,r,i,o,s,a,c,l,u,h){return{day:t,openDay:e,locale:n,tooltipPlacement:r,highlightDay:i,unhighlightDay:o,eventClicked:s,tooltipTemplate:a,tooltipAppendToBody:c,tooltipDelay:l,trackByEventId:u,validateDrag:h}},qt=function(t){return{event:t}},Xt=function(t,e){return{event:t,locale:e}};function $t(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",7),r["\u0275\u0275element"](1,"span",8),r["\u0275\u0275text"](2," "),r["\u0275\u0275elementStart"](3,"mwl-calendar-event-title",9),r["\u0275\u0275listener"]("mwlClick",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"](2).eventClicked.emit({event:i,sourceEvent:n})}))("mwlKeydownEnter",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"](2).eventClicked.emit({event:i,sourceEvent:n})})),r["\u0275\u0275pipe"](4,"calendarA11y"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275text"](5," "),r["\u0275\u0275element"](6,"mwl-calendar-event-actions",10),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,n=r["\u0275\u0275nextContext"](2).validateDrag,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275classProp"]("cal-draggable",t.draggable),r["\u0275\u0275property"]("ngClass",null==t?null:t.cssClass)("dropData",r["\u0275\u0275pureFunction1"](16,qt,t))("dragAxis",r["\u0275\u0275pureFunction2"](18,Lt,t.draggable,t.draggable))("validateDrag",n)("touchStartLongPress",r["\u0275\u0275pureFunction0"](21,Vt)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngStyle",r["\u0275\u0275pureFunction1"](22,At,null==t.color?null:t.color.primary)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("event",t)("customTemplate",i.eventTitleTemplate),r["\u0275\u0275attribute"]("aria-label",r["\u0275\u0275pipeBind2"](4,13,r["\u0275\u0275pureFunction2"](24,Xt,t,i.locale),"eventDescription")),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("event",t)("customTemplate",i.eventActionsTemplate)}}const Kt=function(t,e){return{date:t,locale:e}};function Yt(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",3),r["\u0275\u0275element"](1,"span",4),r["\u0275\u0275pipe"](2,"calendarA11y"),r["\u0275\u0275element"](3,"span",5),r["\u0275\u0275pipe"](4,"calendarA11y"),r["\u0275\u0275template"](5,$t,7,27,"div",6),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"](),e=t.events,n=t.trackByEventId,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("@collapse",void 0),r["\u0275\u0275advance"](1),r["\u0275\u0275attribute"]("aria-label",r["\u0275\u0275pipeBind2"](2,5,r["\u0275\u0275pureFunction2"](11,Kt,i.date,i.locale),"openDayEventsAlert")),r["\u0275\u0275advance"](2),r["\u0275\u0275attribute"]("aria-label",r["\u0275\u0275pipeBind2"](4,8,r["\u0275\u0275pureFunction2"](14,Kt,i.date,i.locale),"openDayEventsLandmark")),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",e)("ngForTrackBy",n)}}function Qt(t,e){1&t&&r["\u0275\u0275template"](0,Yt,6,17,"div",2),2&t&&r["\u0275\u0275property"]("ngIf",e.isOpen)}function Jt(t,e){}const Zt=function(t,e,n,r,i){return{events:t,eventClicked:e,isOpen:n,trackByEventId:r,validateDrag:i}};let te=(()=>{let t=class{constructor(){this.trackByActionId=(t,e)=>e.id?e.id:e}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mwl-calendar-event-actions"]],inputs:{event:"event",customTemplate:"customTemplate"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-event-actions",4,"ngIf"],[1,"cal-event-actions"],["class","cal-event-action","href","javascript:;","tabindex","0","role","button",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter",4,"ngFor","ngForOf","ngForTrackBy"],["href","javascript:;","tabindex","0","role","button",1,"cal-event-action",3,"ngClass","innerHtml","mwlClick","mwlKeydownEnter"]],template:function(t,e){if(1&t&&(r["\u0275\u0275template"](0,yt,1,1,"ng-template",null,0,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275template"](2,_t,0,0,"ng-template",1)),2&t){const t=r["\u0275\u0275reference"](1);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",r["\u0275\u0275pureFunction2"](2,wt,e.event,e.trackByActionId))}},directives:function(){return[i.B,i.u,i.t,i.r,be,ve]},pipes:function(){return[we]},encapsulation:2}),t})(),ee=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mwl-calendar-event-title"]],inputs:{event:"event",customTemplate:"customTemplate",view:"view"},decls:3,vars:5,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-event-title",3,"innerHTML"]],template:function(t,e){if(1&t&&(r["\u0275\u0275template"](0,xt,3,10,"ng-template",null,0,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275template"](2,Ct,0,0,"ng-template",1)),2&t){const t=r["\u0275\u0275reference"](1);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",r["\u0275\u0275pureFunction2"](2,Ot,e.event,e.view))}},directives:function(){return[i.B]},pipes:function(){return[ge,we]},encapsulation:2}),t})(),ne=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mwl-calendar-tooltip-window"]],inputs:{contents:"contents",placement:"placement",event:"event",customTemplate:"customTemplate"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-tooltip",3,"ngClass"],[1,"cal-tooltip-arrow"],[1,"cal-tooltip-inner",3,"innerHtml"]],template:function(t,e){if(1&t&&(r["\u0275\u0275template"](0,Tt,3,2,"ng-template",null,0,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275template"](2,Et,0,0,"ng-template",1)),2&t){const t=r["\u0275\u0275reference"](1);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",r["\u0275\u0275pureFunction3"](2,kt,e.contents,e.placement,e.event))}},directives:[i.B,i.r],encapsulation:2}),t})(),re=(()=>{let t=class{constructor(t,e,n,r,i,o){this.elementRef=t,this.injector=e,this.renderer=n,this.viewContainerRef=i,this.document=o,this.placement="auto",this.delay=null,this.cancelTooltipDelay$=new a.b,this.tooltipFactory=r.resolveComponentFactory(ne)}ngOnChanges(t){this.tooltipRef&&(t.contents||t.customTemplate||t.event)&&(this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.tooltipRef.changeDetectorRef.markForCheck(),this.contents||this.hide())}ngOnDestroy(){this.hide()}onMouseOver(){(null===this.delay?Object(c.a)("now"):Object(l.a)(this.delay)).pipe(Object(h.a)(this.cancelTooltipDelay$)).subscribe(()=>{this.show()})}onMouseOut(){this.hide()}show(){!this.tooltipRef&&this.contents&&(this.tooltipRef=this.viewContainerRef.createComponent(this.tooltipFactory,0,this.injector,[]),this.tooltipRef.instance.contents=this.contents,this.tooltipRef.instance.customTemplate=this.customTemplate,this.tooltipRef.instance.event=this.event,this.appendToBody&&this.document.body.appendChild(this.tooltipRef.location.nativeElement),requestAnimationFrame(()=>{this.positionTooltip()}))}hide(){this.tooltipRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.tooltipRef.hostView)),this.tooltipRef=null),this.cancelTooltipDelay$.next()}positionTooltip(t=[]){this.tooltipRef&&(this.tooltipRef.changeDetectorRef.detectChanges(),this.tooltipRef.instance.placement=function(t,e,n,r,i){var a=Array.isArray(n)?n:n.split(o),c=function(t){t.split("-");return[]},l=a.findIndex((function(t){return"auto"===t}));l>=0&&["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"].forEach((function(t){null==a.find((function(e){return-1!==e.search("^"+t)}))&&a.splice(l++,1,t)}));var u,h=e.style;h.position="absolute",h.top="0",h.left="0",h["will-change"]="transform";for(var d=!1,f=0,p=a;f<p.length;f++)if(c(u=p[f]),s.positionElements(t,e,u,r)){d=!0;break}return d||(c(u=a[0]),s.positionElements(t,e,u,r)),u}(this.elementRef.nativeElement,this.tooltipRef.location.nativeElement.children[0],this.placement,this.appendToBody),-1===t.indexOf(this.tooltipRef.instance.placement)&&this.positionTooltip([...t,this.tooltipRef.instance.placement]))}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Injector),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ComponentFactoryResolver),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](i.e))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mwlCalendarTooltip",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("mouseenter",(function(){return e.onMouseOver()}))("mouseleave",(function(){return e.onMouseOut()}))},inputs:{placement:["tooltipPlacement","placement"],delay:["tooltipDelay","delay"],contents:["mwlCalendarTooltip","contents"],customTemplate:["tooltipTemplate","customTemplate"],event:["tooltipEvent","event"],appendToBody:["tooltipAppendToBody","appendToBody"]},features:[r["\u0275\u0275NgOnChangesFeature"]]}),t})();class ie{}var oe=function(t){return t.Month="month",t.Week="week",t.Day="day",t}({});const se=(t,e)=>e.id?e.id:e,ae=(t,e)=>e.date.toISOString();function ce(t,e,n,r){let i=0,o=0;const s=n<0?t.subDays:t.addDays;let a=e;for(;o<=Math.abs(n);){a=s(e,i);const n=t.getDay(a);-1===r.indexOf(n)&&o++,i++}return a}function le({x:t,y:e}){return Math.abs(t)>1||Math.abs(e)>1}let ue=(()=>{let t=class{constructor(t){this.dateAdapter=t,this.excludeDays=[],this.viewDateChange=new r.EventEmitter}onClick(){const t={day:this.dateAdapter.subDays,week:this.dateAdapter.subWeeks,month:this.dateAdapter.subMonths}[this.view];this.viewDateChange.emit(this.view===oe.Day?ce(this.dateAdapter,this.viewDate,-1,this.excludeDays):this.view===oe.Week&&this.daysInWeek?ce(this.dateAdapter,this.viewDate,-this.daysInWeek,this.excludeDays):t(this.viewDate,1))}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](ie))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mwlCalendarPreviousView",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("click",(function(){return e.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),t})(),he=(()=>{let t=class{constructor(t){this.dateAdapter=t,this.excludeDays=[],this.viewDateChange=new r.EventEmitter}onClick(){const t={day:this.dateAdapter.addDays,week:this.dateAdapter.addWeeks,month:this.dateAdapter.addMonths}[this.view];this.viewDateChange.emit("day"===this.view?ce(this.dateAdapter,this.viewDate,1,this.excludeDays):"week"===this.view&&this.daysInWeek?ce(this.dateAdapter,this.viewDate,this.daysInWeek,this.excludeDays):t(this.viewDate,1))}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](ie))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mwlCalendarNextView",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("click",(function(){return e.onClick()}))},inputs:{excludeDays:"excludeDays",view:"view",viewDate:"viewDate",daysInWeek:"daysInWeek"},outputs:{viewDateChange:"viewDateChange"}}),t})(),de=(()=>{let t=class{constructor(t){this.dateAdapter=t}monthViewColumnHeader({date:t,locale:e}){return Object(i.K)(t,"EEEE",e)}monthViewDayNumber({date:t,locale:e}){return Object(i.K)(t,"d",e)}monthViewTitle({date:t,locale:e}){return Object(i.K)(t,"LLLL y",e)}weekViewColumnHeader({date:t,locale:e}){return Object(i.K)(t,"EEEE",e)}weekViewColumnSubHeader({date:t,locale:e}){return Object(i.K)(t,"MMM d",e)}weekViewTitle({date:t,locale:e,weekStartsOn:n,excludeDays:r,daysInWeek:o}){const{viewStart:s,viewEnd:a}=function(t,e,n,r=[],i){let o=i?t.startOfDay(e):t.startOfWeek(e,{weekStartsOn:n});const s=t.endOfWeek(e,{weekStartsOn:n});for(;r.indexOf(t.getDay(o))>-1&&o<s;)o=t.addDays(o,1);if(i)return{viewStart:o,viewEnd:t.endOfDay(ce(t,o,i-1,r))};{let e=s;for(;r.indexOf(t.getDay(e))>-1&&e>o;)e=t.subDays(e,1);return{viewStart:o,viewEnd:e}}}(this.dateAdapter,t,n,r,o),c=(t,n)=>Object(i.K)(t,"MMM d"+(n?", yyyy":""),e);return`${c(s,s.getUTCFullYear()!==a.getUTCFullYear())} - ${c(a,!0)}`}weekViewHour({date:t,locale:e}){return Object(i.K)(t,"h a",e)}dayViewHour({date:t,locale:e}){return Object(i.K)(t,"h a",e)}dayViewTitle({date:t,locale:e}){return Object(i.K)(t,"EEEE, MMMM d, y",e)}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](ie))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),fe=(()=>{let t=class extends de{};return t.\u0275fac=function(e){return Me(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),pe=(()=>{let t=class{constructor(t,e){this.dateFormatter=t,this.locale=e}transform(t,e,n=this.locale,r=0,i=[],o){if(void 0===this.dateFormatter[e]){const t=Object.getOwnPropertyNames(Object.getPrototypeOf(fe.prototype)).filter(t=>"constructor"!==t);throw new Error(`${e} is not a valid date formatter. Can only be one of ${t.join(", ")}`)}return this.dateFormatter[e]({date:t,locale:n,weekStartsOn:r,excludeDays:i,daysInWeek:o})}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](fe),r["\u0275\u0275directiveInject"](r.LOCALE_ID))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"calendarDate",type:t,pure:!0}),t})();class me{month(t,e){return t.title}monthTooltip(t,e){return t.title}week(t,e){return t.title}weekTooltip(t,e){return t.title}day(t,e){return t.title}dayTooltip(t,e){return t.title}}let ge=(()=>{let t=class{constructor(t){this.calendarEventTitle=t}transform(t,e,n){return this.calendarEventTitle[e](n,t)}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](me))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"calendarEventTitle",type:t,pure:!0}),t})(),be=(()=>{let t=class{constructor(t,e,n){this.renderer=t,this.elm=e,this.document=n,this.clickListenerDisabled=!1,this.click=new r.EventEmitter,this.destroy$=new a.b}ngOnInit(){this.clickListenerDisabled||this.listen().pipe(Object(h.a)(this.destroy$)).subscribe(t=>{t.stopPropagation(),this.click.emit(t)})}ngOnDestroy(){this.destroy$.next()}listen(){return new u.a(t=>this.renderer.listen(this.elm.nativeElement,"click",e=>{t.next(e)}))}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](i.e))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mwlClick",""]],inputs:{clickListenerDisabled:"clickListenerDisabled"},outputs:{click:"mwlClick"}}),t})(),ve=(()=>{let t=class{constructor(t,e,n){this.host=t,this.ngZone=e,this.renderer=n,this.keydown=new r.EventEmitter,this.keydownListener=null}ngOnInit(){this.ngZone.runOutsideAngular(()=>{this.keydownListener=this.renderer.listen(this.host.nativeElement,"keydown",t=>{13!==t.keyCode&&13!==t.which&&"Enter"!==t.key||(t.preventDefault(),t.stopPropagation(),this.ngZone.run(()=>{this.keydown.emit(t)}))})})}ngOnDestroy(){null!==this.keydownListener&&(this.keydownListener(),this.keydownListener=null)}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](r.Renderer2))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mwlKeydownEnter",""]],outputs:{keydown:"mwlKeydownEnter"}}),t})(),ye=(()=>{let t=class{constructor(t){this.dateAdapter=t}getMonthView(t){return function(t,e){var n=e.events,r=void 0===n?[]:n,i=e.viewDate,o=e.weekStartsOn,s=e.excluded,a=void 0===s?[]:s,c=e.viewStart,l=void 0===c?t.startOfMonth(i):c,u=e.viewEnd,h=void 0===u?t.endOfMonth(i):u,d=e.weekendDays;r||(r=[]);for(var p,m=t.endOfWeek,g=t.differenceInDays,y=t.startOfDay,_=t.addHours,w=t.endOfDay,S=t.isSameMonth,x=t.getDay,C=(0,t.startOfWeek)(l,{weekStartsOn:o}),O=m(h,{weekStartsOn:o}),T=b(t,{events:r,periodStart:C,periodEnd:O}),E=[],k=function(e){var n;if(p?(n=y(_(p,24)),p.getTime()===n.getTime()&&(n=y(_(p,25))),p=n):n=p=C,!a.some((function(t){return x(n)===t}))){var r=v(t,{date:n,weekendDays:d}),o=b(t,{events:T,periodStart:y(n),periodEnd:w(n)});r.inMonth=S(n,i),r.events=o,r.badgeTotal=o.length,E.push(r)}},A=0;A<g(O,C)+1;A++)k();var D=[],j=7-a.length;if(j<7)for(A=0;A<E.length;A+=j){var I=E.slice(A,A+j);I.some((function(t){return l<=t.date&&t.date<h}))&&(D=f(D,I))}else D=E;var P=Math.floor(D.length/j),M=[];for(A=0;A<P;A++)M.push(A*j);return{rowOffsets:M,totalDaysVisibleInWeek:j,days:D,period:{start:D[0].date,end:w(D[D.length-1].date),events:T}}}(this.dateAdapter,t)}getWeekViewHeader(t){return y(this.dateAdapter,t)}getWeekView(t){return function(t,e){var n=e.events,r=void 0===n?[]:n,i=e.viewDate,o=e.weekStartsOn,s=e.excluded,a=void 0===s?[]:s,c=e.precision,l=void 0===c?"days":c,u=e.absolutePositionedEvents,h=void 0!==u&&u,d=e.hourSegments,f=e.hourDuration,p=e.dayStart,m=e.dayEnd,g=e.weekendDays,v=e.segmentHeight,S=e.minimumEventHeight,x=e.viewStart,C=void 0===x?t.startOfWeek(i,{weekStartsOn:o}):x,O=e.viewEnd,T=void 0===O?t.endOfWeek(i,{weekStartsOn:o}):O;r||(r=[]);var E=t.endOfDay,k=b(t,{events:r,periodStart:C=(0,t.startOfDay)(C),periodEnd:T=E(T)}),A=y(t,{viewDate:i,weekStartsOn:o,excluded:a,weekendDays:g,viewStart:C,viewEnd:T});return{allDayEventRows:_(t,{events:k,excluded:a,precision:l,absolutePositionedEvents:h,viewStart:C,viewEnd:T}),period:{events:k,start:A[0].date,end:E(A[A.length-1].date)},hourColumns:w(t,{events:r,viewDate:i,hourSegments:d,hourDuration:f,dayStart:p,dayEnd:m,weekStartsOn:o,excluded:a,weekendDays:g,segmentHeight:v,viewStart:C,viewEnd:T,minimumEventHeight:S})}}(this.dateAdapter,t)}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](ie))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),_e=(()=>{let t=class{constructor(t){this.i18nPlural=t}monthCell({day:t,locale:e}){return t.badgeTotal>0?`\n        ${Object(i.K)(t.date,"EEEE MMMM d",e)},\n        ${this.i18nPlural.transform(t.badgeTotal,{"=0":"No events","=1":"One event",other:"# events"})},\n         click to expand\n      `:""+Object(i.K)(t.date,"EEEE MMMM d",e)}openDayEventsLandmark({date:t,locale:e}){return`\n      Beginning of expanded view for ${Object(i.K)(t,"EEEE MMMM dd",e)}\n    `}openDayEventsAlert({date:t,locale:e}){return Object(i.K)(t,"EEEE MMMM dd",e)+" expanded"}eventDescription({event:t,locale:e}){if(!0===t.allDay)return this.allDayEventDescription({event:t,locale:e});const n=`\n      ${Object(i.K)(t.start,"EEEE MMMM dd",e)},\n      ${t.title}, from ${Object(i.K)(t.start,"hh:mm a",e)}\n    `;return t.end?n+" to "+Object(i.K)(t.end,"hh:mm a",e):n}allDayEventDescription({event:t,locale:e}){const n=`\n      ${t.title}, event spans multiple days:\n      start time ${Object(i.K)(t.start,"MMMM dd hh:mm a",e)}\n    `;return t.end?n+", stop time "+Object(i.K)(t.end,"MMMM d hh:mm a",e):n+", no stop time"}actionButtonLabel({action:t}){return t.a11yLabel}monthCellTabIndex(){return 0}hideMonthCellEvents(){return!0}hideEventTitle(){return!0}hideWeekHourSegment(){return!0}hideDayHourSegment(){return!0}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](i.j))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),we=(()=>{let t=class{constructor(t,e){this.calendarA11y=t,this.locale=e}transform(t,e){if(t.locale=t.locale||this.locale,void 0===this.calendarA11y[e]){const t=Object.getOwnPropertyNames(Object.getPrototypeOf(_e.prototype)).filter(t=>"constructor"!==t);throw new Error(`${e} is not a valid a11y method. Can only be one of ${t.join(", ")}`)}return this.calendarA11y[e](t)}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](_e),r["\u0275\u0275directiveInject"](r.LOCALE_ID))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"calendarA11y",type:t,pure:!0}),t})();var Se,xe=function(t){return t.Drag="drag",t.Drop="drop",t.Resize="resize",t}({});let Ce=(()=>{let t=Se=class{static forRoot(t,e={}){return{ngModule:Se,providers:[t,e.eventTitleFormatter||me,e.dateFormatter||fe,e.utils||ye,e.a11y||_e]}}};return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[i.j],imports:[[i.c]]}),t})(),Oe=(()=>{let t=class{constructor(t,e,n,i){this.cdr=t,this.utils=e,this.dateAdapter=i,this.events=[],this.excludeDays=[],this.activeDayIsOpen=!1,this.tooltipPlacement="auto",this.tooltipAppendToBody=!0,this.tooltipDelay=null,this.beforeViewRender=new r.EventEmitter,this.dayClicked=new r.EventEmitter,this.eventClicked=new r.EventEmitter,this.columnHeaderClicked=new r.EventEmitter,this.eventTimesChanged=new r.EventEmitter,this.trackByRowOffset=(t,e)=>this.view.days.slice(e,this.view.totalDaysVisibleInWeek).map(t=>t.date.toISOString()).join("-"),this.trackByDate=(t,e)=>e.date.toISOString(),this.locale=n}ngOnInit(){this.refresh&&(this.refreshSubscription=this.refresh.subscribe(()=>{this.refreshAll(),this.cdr.markForCheck()}))}ngOnChanges(t){const e=t.viewDate||t.excludeDays||t.weekendDays,n=t.viewDate||t.events||t.excludeDays||t.weekendDays;e&&this.refreshHeader(),t.events&&function(t,e){function n(t,n){e(t,n),!1}Array.isArray(t)?t.forEach((function(t){t.start?t.start instanceof Date||n(O.StartPropertyNotDate,t):n(O.StartPropertyMissing,t),t.end&&(t.end instanceof Date||n(O.EndPropertyNotDate,t),t.start>t.end&&n(O.EndsBeforeStart,t))})):e(O.NotArray,t)}(this.events,(...t)=>console.warn("angular-calendar",...t)),n&&this.refreshBody(),(e||n)&&this.emitBeforeViewRender(),(t.activeDayIsOpen||t.viewDate||t.events||t.excludeDays||t.activeDay)&&this.checkActiveDayIsOpen()}ngOnDestroy(){this.refreshSubscription&&this.refreshSubscription.unsubscribe()}toggleDayHighlight(t,e){this.view.days.forEach(n=>{e&&n.events.indexOf(t)>-1?n.backgroundColor=t.color&&t.color.secondary||"#D1E8FF":delete n.backgroundColor})}eventDropped(t,e,n){if(t!==n){const n=this.dateAdapter.getYear(t.date),r=this.dateAdapter.getMonth(t.date),i=this.dateAdapter.getDate(t.date),o=this.dateAdapter.setDate(this.dateAdapter.setMonth(this.dateAdapter.setYear(e.start,n),r),i);let s;if(e.end){const t=this.dateAdapter.differenceInSeconds(o,e.start);s=this.dateAdapter.addSeconds(e.end,t)}this.eventTimesChanged.emit({event:e,newStart:o,newEnd:s,day:t,type:xe.Drop})}}refreshHeader(){this.columnHeaders=this.utils.getWeekViewHeader({viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}refreshBody(){this.view=this.utils.getMonthView({events:this.events,viewDate:this.viewDate,weekStartsOn:this.weekStartsOn,excluded:this.excludeDays,weekendDays:this.weekendDays})}checkActiveDayIsOpen(){if(!0===this.activeDayIsOpen){const t=this.activeDay||this.viewDate;this.openDay=this.view.days.find(e=>this.dateAdapter.isSameDay(e.date,t));const e=this.view.days.indexOf(this.openDay);this.openRowIndex=Math.floor(e/this.view.totalDaysVisibleInWeek)*this.view.totalDaysVisibleInWeek}else this.openRowIndex=null,this.openDay=null}refreshAll(){this.refreshHeader(),this.refreshBody(),this.emitBeforeViewRender(),this.checkActiveDayIsOpen()}emitBeforeViewRender(){this.columnHeaders&&this.view&&this.beforeViewRender.emit({header:this.columnHeaders,body:this.view.days,period:this.view.period})}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](ye),r["\u0275\u0275directiveInject"](r.LOCALE_ID),r["\u0275\u0275directiveInject"](ie))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mwl-calendar-month-view"]],inputs:{events:"events",excludeDays:"excludeDays",activeDayIsOpen:"activeDayIsOpen",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",tooltipDelay:"tooltipDelay",locale:"locale",viewDate:"viewDate",activeDay:"activeDay",refresh:"refresh",tooltipTemplate:"tooltipTemplate",weekStartsOn:"weekStartsOn",headerTemplate:"headerTemplate",cellTemplate:"cellTemplate",openDayEventsTemplate:"openDayEventsTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",weekendDays:"weekendDays"},outputs:{beforeViewRender:"beforeViewRender",dayClicked:"dayClicked",eventClicked:"eventClicked",columnHeaderClicked:"columnHeaderClicked",eventTimesChanged:"eventTimesChanged"},features:[r["\u0275\u0275NgOnChangesFeature"]],decls:4,vars:5,consts:[["role","grid",1,"cal-month-view"],[3,"days","locale","customTemplate","columnHeaderClicked"],[1,"cal-days"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","row",1,"cal-cell-row"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDroppable","","dragOverClass","cal-drag-over",3,"locale","isOpen","events","date","customTemplate","eventTitleTemplate","eventActionsTemplate","eventClicked","drop"],["role","gridcell","mwlDroppable","","dragOverClass","cal-drag-over",3,"ngClass","day","openDay","locale","tooltipPlacement","tooltipAppendToBody","tooltipTemplate","tooltipDelay","customTemplate","ngStyle","clickListenerDisabled","mwlClick","mwlKeydownEnter","highlightDay","unhighlightDay","drop","eventClicked"]],template:function(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275elementStart"](1,"mwl-calendar-month-view-header",1),r["\u0275\u0275listener"]("columnHeaderClicked",(function(t){return e.columnHeaderClicked.emit(t)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](2,"div",2),r["\u0275\u0275template"](3,jt,5,13,"div",3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&t&&(r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("days",e.columnHeaders)("locale",e.locale)("customTemplate",e.headerTemplate),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngForOf",e.view.rowOffsets)("ngForTrackBy",e.trackByRowOffset))},directives:function(){return[Te,i.t,Ae,ft,Ee,i.r,i.x,be,ve]},pipes:function(){return[i.F,we]},encapsulation:2}),t})(),Te=(()=>{let t=class{constructor(){this.columnHeaderClicked=new r.EventEmitter,this.trackByWeekDayHeaderDate=ae}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mwl-calendar-month-view-header"]],inputs:{days:"days",locale:"locale",customTemplate:"customTemplate"},outputs:{columnHeaderClicked:"columnHeaderClicked"},decls:3,vars:6,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","row",1,"cal-cell-row","cal-header"],["class","cal-cell","tabindex","0","role","columnheader",3,"cal-past","cal-today","cal-future","cal-weekend","ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","0","role","columnheader",1,"cal-cell",3,"ngClass","click"]],template:function(t,e){if(1&t&&(r["\u0275\u0275template"](0,Pt,2,2,"ng-template",null,0,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275template"](2,Mt,0,0,"ng-template",1)),2&t){const t=r["\u0275\u0275reference"](1);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",r["\u0275\u0275pureFunction3"](2,Nt,e.days,e.locale,e.trackByWeekDayHeaderDate))}},directives:[i.B,i.t,i.r],pipes:[pe],encapsulation:2}),t})(),Ee=(()=>{let t=class{constructor(){this.highlightDay=new r.EventEmitter,this.unhighlightDay=new r.EventEmitter,this.eventClicked=new r.EventEmitter,this.trackByEventId=se,this.validateDrag=le}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mwl-calendar-month-cell"]],hostAttrs:[1,"cal-cell","cal-day-cell"],hostVars:18,hostBindings:function(t,e){2&t&&r["\u0275\u0275classProp"]("cal-past",e.day.isPast)("cal-today",e.day.isToday)("cal-future",e.day.isFuture)("cal-weekend",e.day.isWeekend)("cal-in-month",e.day.inMonth)("cal-out-month",!e.day.inMonth)("cal-has-events",e.day.events.length>0)("cal-open",e.day===e.openDay)("cal-event-highlight",!!e.day.backgroundColor)},inputs:{day:"day",openDay:"openDay",locale:"locale",tooltipPlacement:"tooltipPlacement",tooltipAppendToBody:"tooltipAppendToBody",customTemplate:"customTemplate",tooltipTemplate:"tooltipTemplate",tooltipDelay:"tooltipDelay"},outputs:{highlightDay:"highlightDay",unhighlightDay:"unhighlightDay",eventClicked:"eventClicked"},decls:3,vars:15,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"cal-cell-top"],["aria-hidden","true"],["class","cal-day-badge",4,"ngIf"],[1,"cal-day-number"],["class","cal-events",4,"ngIf"],[1,"cal-day-badge"],[1,"cal-events"],["class","cal-event","mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",1,"cal-event",3,"ngStyle","ngClass","mwlCalendarTooltip","tooltipPlacement","tooltipEvent","tooltipTemplate","tooltipAppendToBody","tooltipDelay","dropData","dragAxis","validateDrag","touchStartLongPress","mouseenter","mouseleave","mwlClick"]],template:function(t,e){if(1&t&&(r["\u0275\u0275template"](0,zt,8,14,"ng-template",null,0,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275template"](2,Wt,0,0,"ng-template",1)),2&t){const t=r["\u0275\u0275reference"](1);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",r["\u0275\u0275pureFunctionV"](2,Ut,[e.day,e.openDay,e.locale,e.tooltipPlacement,e.highlightDay,e.unhighlightDay,e.eventClicked,e.tooltipTemplate,e.tooltipAppendToBody,e.tooltipDelay,e.trackByEventId,e.validateDrag]))}},directives:[i.B,i.u,i.t,ht,i.x,i.r,re,be],pipes:[we,pe,ge],encapsulation:2}),t})();const ke=Object(mt.n)("collapse",[Object(mt.k)("void",Object(mt.l)({height:0,overflow:"hidden","padding-top":0,"padding-bottom":0})),Object(mt.k)("*",Object(mt.l)({height:"*",overflow:"hidden","padding-top":"*","padding-bottom":"*"})),Object(mt.m)("* => void",Object(mt.e)("150ms ease-out")),Object(mt.m)("void => *",Object(mt.e)("150ms ease-in"))]);let Ae=(()=>{let t=class{constructor(){this.isOpen=!1,this.eventClicked=new r.EventEmitter,this.trackByEventId=se,this.validateDrag=le}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mwl-calendar-open-day-events"]],inputs:{isOpen:"isOpen",locale:"locale",events:"events",customTemplate:"customTemplate",eventTitleTemplate:"eventTitleTemplate",eventActionsTemplate:"eventActionsTemplate",date:"date"},outputs:{eventClicked:"eventClicked"},decls:3,vars:8,consts:[["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","cal-open-day-events","role","application",4,"ngIf"],["role","application",1,"cal-open-day-events"],["tabindex","-1","role","alert"],["tabindex","0","role","landmark"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","cal-draggable","dropData","dragAxis","validateDrag","touchStartLongPress",4,"ngFor","ngForOf","ngForTrackBy"],["mwlDraggable","","dragActiveClass","cal-drag-active",3,"ngClass","dropData","dragAxis","validateDrag","touchStartLongPress"],[1,"cal-event",3,"ngStyle"],["view","month","tabindex","0",3,"event","customTemplate","mwlClick","mwlKeydownEnter"],[3,"event","customTemplate"]],template:function(t,e){if(1&t&&(r["\u0275\u0275template"](0,Qt,1,1,"ng-template",null,0,r["\u0275\u0275templateRefExtractor"]),r["\u0275\u0275template"](2,Jt,0,0,"ng-template",1)),2&t){const t=r["\u0275\u0275reference"](1);r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngTemplateOutlet",e.customTemplate||t)("ngTemplateOutletContext",r["\u0275\u0275pureFunction5"](2,Zt,e.events,e.eventClicked,e.isOpen,e.trackByEventId,e.validateDrag))}},directives:[i.B,i.u,i.t,ht,i.r,i.x,ee,be,ve,te],pipes:[we],encapsulation:2,data:{animation:[ke]}}),t})(),De=(()=>{let t=class{};return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[i.c,pt,Ce],pt]}),t})(),je=(()=>{let t=class{};return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[i.c,Ce]]}),t})();var Ie;let Pe=(()=>{let t=Ie=class{static forRoot(t,e={}){return{ngModule:Ie,providers:[t,e.eventTitleFormatter||me,e.dateFormatter||fe,e.utils||ye,e.a11y||_e]}}};return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[Ce,De,je],Ce,De,je]}),t})();const Me=r["\u0275\u0275getInheritedFactory"](fe)},"5iAy":function(t,e,n){var r=n("xq5I");t.exports=function(t){return r(new Date,t)}},"5yfJ":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var r=n("HDdC"),i=n("KqfI");const o=new r.a(i.a);function s(){return o}},"5z3u":function(t,e,n){var r=n("yNUO"),i=n("gfz1");t.exports=function(t,e){var n=r(t),o=Number(e),s=i(n)-o;return n.setDate(n.getDate()-7*s),n}},"6DAA":function(t,e,n){var r=n("kOWh");t.exports=function(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],a=["am","pm"],c=["a.m.","p.m."],l={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return i[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?s[1]:s[0]},a:function(t){return t.getHours()/12>=1?a[1]:a[0]},aa:function(t){return t.getHours()/12>=1?c[1]:c[0]}};return["M","D","DDD","d","Q","W"].forEach((function(t){l[t+"o"]=function(e,n){return function(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}(n[t](e))}})),{formatters:l,formattingTokensRegExp:r(l)}}},"6PXS":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"f",(function(){return u})),n.d(e,"h",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"d",(function(){return m})),n.d(e,"c",(function(){return g}));var r=n("mrSG"),i=n("vFt6"),o=n("9AQC"),s=n("+924");function a(t,e,n){if(e in t){var r=t[e],i=n(r);if("function"==typeof i)try{l(i,r)}catch(o){}t[e]=i}}function c(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function l(t,e){t.prototype=e.prototype=e.prototype||{},c(t,"__sentry_original__",e)}function u(t){return t.__sentry_original__}function h(t){return Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&")}function d(t){var e=t;if(Object(o.d)(t))e=Object(r.a)({message:t.message,name:t.name,stack:t.stack},p(t));else if(Object(o.f)(t)){var n=t;e=Object(r.a)({type:n.type,target:f(n.target),currentTarget:f(n.currentTarget)},p(n)),"undefined"!=typeof CustomEvent&&Object(o.g)(t,CustomEvent)&&(e.detail=n.detail)}return e}function f(t){try{return Object(o.c)(t)?Object(i.b)(t):Object.prototype.toString.call(t)}catch(e){return"<unknown>"}}function p(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function m(t,e){void 0===e&&(e=40);var n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(s.d)(n[0],e);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>e))return r===n.length?i:Object(s.d)(i,e)}return""}function g(t){var e,n;if(Object(o.i)(t)){var i={};try{for(var s=Object(r.h)(Object.keys(t)),a=s.next();!a.done;a=s.next()){var c=a.value;void 0!==t[c]&&(i[c]=g(t[c]))}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return i}return Array.isArray(t)?t.map(g):t}},"6WtA":function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setSeconds(0,0),e}},"6aLS":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("q3Kh"),o=n("gTqA"),s=n("wjEo");e.switchMap=function t(e,n){return"function"==typeof n?function(r){return r.pipe(t((function(t,r){return o.from(e(t,r)).pipe(i.map((function(e,i){return n(t,e,r,i)})))})))}:function(t){return t.lift(new a(e))}};var a=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r(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)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new s.SimpleInnerSubscriber(this),r=this.destination;r.add(n),this.innerSubscription=s.innerSubscribe(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(s.SimpleOuterSubscriber)},"6eB1":function(t,e,n){"use strict";var r=n("Q1FS"),i=n("nzqU"),o=n("QtHX"),s=n("zzsZ");e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,a=null,c=t[t.length-1];return i.isScheduler(c)?(a=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop()),null===a&&1===t.length&&t[0]instanceof r.Observable?t[0]:o.mergeAll(n)(s.fromArray(t,a))}},"6eBy":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new s(t,this.durationSelector))}}class s extends r.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){try{const e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(e){this.destination.error(e)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,e){let n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=Object(r.c)(e,new r.a(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=void 0,e.unsubscribe(),this.remove(e)),this.value=void 0,this.hasValue=!1,super._next(t)}}}},"6hSO":function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r,i,o,s=n("mrSG"),a=n("NDfa"),c=n("z+RT"),l=n("9AQC"),u=n("8LbN"),h=n("6PXS"),d=n("pRiV"),f=n("4Ssk"),p=Object(c.a)(),m={},g={};function b(t,e){m[t]=m[t]||[],m[t].push(e),function(t){if(!g[t])switch(g[t]=!0,t){case"console":"console"in p&&u.a.forEach((function(t){t in p.console&&Object(h.e)(p.console,t,(function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];v("console",{args:n,level:t}),e&&e.apply(p.console,n)}}))}));break;case"dom":!function(){if("document"in p){var t=v.bind(null,"dom"),e=w(t,!0);p.document.addEventListener("click",e,!1),p.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((function(e){var n=p[e]&&p[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(h.e)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=o[n]=o[n]||{refCount:0};if(!s.handler){var a=w(t);s.handler=a,e.call(this,n,a,i)}s.refCount+=1}catch(c){}return e.call(this,n,r,i)}})),Object(h.e)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[e];o&&(o.refCount-=1,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(s){}return t.call(this,e,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in p){var t=XMLHttpRequest.prototype;Object(h.e)(t,"open",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=e[1],o=r.__sentry_xhr__={method:Object(l.l)(e[0])?e[0].toUpperCase():e[0],url:e[1]};Object(l.l)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var s=function(){if(4===r.readyState){try{o.status_code=r.status}catch(t){}v("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Object(h.e)(r,"onreadystatechange",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return s(),t.apply(r,e)}})):r.addEventListener("readystatechange",s),t.apply(r,e)}})),Object(h.e)(t,"send",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.__sentry_xhr__&&void 0!==e[0]&&(this.__sentry_xhr__.body=e[0]),v("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}}();break;case"fetch":Object(f.d)()&&Object(h.e)(p,"fetch",(function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r={args:e,fetchData:{method:y(e),url:_(e)},startTimestamp:Date.now()};return v("fetch",Object(s.a)({},r)),t.apply(p,e).then((function(t){return v("fetch",Object(s.a)(Object(s.a)({},r),{endTimestamp:Date.now(),response:t})),t}),(function(t){throw v("fetch",Object(s.a)(Object(s.a)({},r),{endTimestamp:Date.now(),error:t})),t}))}}));break;case"history":!function(){if(Object(f.c)()){var t=p.onpopstate;p.onpopstate=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=p.location.href,o=r;if(r=i,v("history",{from:o,to:i}),t)try{return t.apply(this,e)}catch(s){}},Object(h.e)(p.history,"pushState",e),Object(h.e)(p.history,"replaceState",e)}function e(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.length>2?e[2]:void 0;if(i){var o=r,s=String(i);r=s,v("history",{from:o,to:s})}return t.apply(this,e)}}}();break;case"error":S=p.onerror,p.onerror=function(t,e,n,r,i){return v("error",{column:r,error:i,line:n,msg:t,url:e}),!!S&&S.apply(this,arguments)};break;case"unhandledrejection":x=p.onunhandledrejection,p.onunhandledrejection=function(t){return v("unhandledrejection",t),!x||x.apply(this,arguments)};break;default:a.a&&u.c.warn("unknown instrumentation type:",t)}}(t)}function v(t,e){var n,r;if(t&&m[t])try{for(var i=Object(s.h)(m[t]||[]),o=i.next();!o.done;o=i.next()){var c=o.value;try{c(e)}catch(l){a.a&&u.c.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Object(d.b)(c)+"\nError:",l)}}}catch(h){n={error:h}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function y(t){return void 0===t&&(t=[]),"Request"in p&&Object(l.g)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function _(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in p&&Object(l.g)(t[0],Request)?t[0].url:String(t[0])}function w(t,e){return void 0===e&&(e=!1),function(n){if(n&&o!==n&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(n){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===i||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(n){}return!1}(o,n))&&(t({event:n,name:r,global:e}),o=n),clearTimeout(i),i=p.setTimeout((function(){i=void 0}),1e3)}}}var S=null,x=null},"6qA3":function(t,e,n){"use strict";var r=n("OAkW"),i=n("Z5tI"),o=n("poJ0"),s=n("ozli"),a=n("yRPT"),c=n("90cg"),l=n("GMZp"),u=n("VKeD"),h=n("zfKp");e.subscribeTo=function(t){if(t&&"function"==typeof t[h.observable])return s.subscribeToObservable(t);if(a.isArrayLike(t))return r.subscribeToArray(t);if(c.isPromise(t))return i.subscribeToPromise(t);if(t&&"function"==typeof t[u.iterator])return o.subscribeToIterable(t);var e=l.isObject(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},"6qX0":function(t,e,n){var r=n("yNUO");t.exports=function(t,e,n,i){var o=r(t).getTime(),s=r(e).getTime(),a=r(n).getTime(),c=r(i).getTime();if(o>s||a>c)throw new Error("The start of the range cannot be after the end of the range");return o<c&&a<s}},"7+OI":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC");function i(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"76/Q":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("IKal"),s=n("aJGj");e.takeLast=function(t){return function(e){return 0===t?s.empty():e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}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.ring=new Array,r.count=0,r}return r(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(i.Subscriber)},"7B8A":function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t).getTime(),i=Number(e);return new Date(n+i)}},"7HRe":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("HDdC"),i=n("quSY"),o=n("kJWO"),s=n("jZKg"),a=n("Lhse"),c=n("c2HN"),l=n("I55L");function u(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>{const i=t[o.a]();r.add(i.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(Object(l.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[a.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[a.a](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=o.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},"7Hc7":function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return f}));let r=1;const i=(()=>Promise.resolve())(),o={};function s(t){return t in o&&(delete o[t],!0)}const a={setImmediate(t){const e=r++;return o[e]=!0,i.then(()=>s(e)&&t()),e},clearImmediate(t){s(t)}};var c=n("3N8a");class l extends c.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=a.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(a.clearImmediate(e),t.scheduled=void 0)}}var u=n("IjjT");class h extends u.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r<i&&(t=e.shift()));if(this.active=!1,n){for(;++r<i&&(t=e.shift());)t.unsubscribe();throw n}}}const d=new h(l),f=d},"7K7o":function(t,e,n){"use strict";var r=n("Ceu0");e.multicast=function(t,e){return function(n){var o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new i(o,e));var s=Object.create(n,r.connectableObservableDescriptor);return s.source=n,s.subjectFactory=o,s}};var i=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}();e.MulticastOperator=i},"7KIa":function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}},"7RJT":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("Mxlh");e.BehaviorSubject=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r(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.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject)},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("n6bG"),i=n("gRHU"),o=n("quSY"),s=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends o.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.a;break;case 1:if(!t){this.destination=i.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[s.a](){return this}static create(t,e,n){const r=new l(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,n,o){let s;super(),this._parentSubscriber=t;let a=this;Object(r.a)(e)?s=e:e&&(s=e.next,n=e.error,o=e.complete,e!==i.a&&(a=Object.create(e),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"7pFD":function(t,e,n){var r=n("O8cK");t.exports=function(t,e){var n=r(t,e)/7;return n>0?Math.floor(n):Math.ceil(n)}},"7s76":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("VfN6"),i=n("2Vo4"),o=n("24nb"),s=n("fXoL");let a=(()=>{let t=class{constructor(t){this._entityService=t,this._updateCommunityAcivationSetting=new i.a(null),this.$updateCommunityAcivationSetting=this._updateCommunityAcivationSetting.asObservable(),this._nameSettingsMap=new Map}get namesSettings(){return this._namesSettings}get communitySettings(){return this._communitySettings}get nameSettingsMap(){return this._nameSettingsMap}getSettings(){this._entityService.getCommunitySettings().pipe(Object(r.b)(this)).subscribe(t=>{this._communitySettings=t[0],this.updateCommunityAcivationSetting(this._communitySettings.is_active),this._namesSettings=this._communitySettings.element_settings,this._namesSettings.length>0&&this.createNameSettingsMap()})}createNameSettingsMap(){this._namesSettings.forEach(t=>{this._nameSettingsMap.set(t.type_id,t)})}updateCommunityAcivationSetting(t){this._updateCommunityAcivationSetting.next(t)}};return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](o.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([Object(r.a)()],t),t})()},"7wxJ":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("itXk");function i(t){return e=>e.lift(new r.a(t))}},"8EBN":function(t,e,n){!function(t){"use strict";t.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e<t.modeInfo.length;e++){var n=t.modeInfo[e];n.mimes&&(n.mime=n.mimes[0])}t.findModeByMIME=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.mime==e)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==e)return r}return/\+xml$/.test(e)?t.findModeByMIME("application/xml"):/\+json$/.test(e)?t.findModeByMIME("application/json"):void 0},t.findModeByExtension=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==e)return r}},t.findModeByFileName=function(e){for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.file&&r.file.test(e))return r}var i=e.lastIndexOf("."),o=i>-1&&e.substring(i+1,e.length);if(o)return t.findModeByExtension(o)},t.findModeByName=function(e){e=e.toLowerCase();for(var n=0;n<t.modeInfo.length;n++){var r=t.modeInfo[n];if(r.name.toLowerCase()==e)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==e)return r}}}(n("VrN/"))},"8LU1":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return o}));var r=n("fXoL");function i(t){return null!=t&&""+t!="false"}function o(t,e=0){return s(t)?Number(t):e}function s(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof r.ElementRef?t.nativeElement:t}},"8LbN":function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return r}));var r,i=n("mrSG"),o=n("NDfa"),s=n("z+RT"),a=Object(s.a)(),c=["debug","info","warn","error","log","assert"];function l(t){var e=Object(s.a)();if(!("console"in e))return t();var n=e.console,r={};c.forEach((function(t){var i=n[t]&&n[t].__sentry_original__;t in e.console&&i&&(r[t]=n[t],n[t]=i)}));try{return t()}finally{Object.keys(r).forEach((function(t){n[t]=r[t]}))}}function u(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return c.forEach(o.a?function(n){e[n]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t&&l((function(){var t;(t=a.console)[n].apply(t,Object(i.g)(["Sentry Logger ["+n+"]:"],e))}))}}:function(t){e[t]=function(){}}),e}r=o.a?Object(s.b)("logger",u):u()},"8Qeq":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof r.a?n:null}return!0}},"8b5+":function(t,e,n){"use strict";var r=n("zL8a");e.concatMapTo=function(t,e){return r.concatMap((function(){return t}),e)}},"8yT3":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(t){var e=t.match(r);if(e){var n=void 0;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}}},"9/Zf":function(t,e,n){"use strict";n.d(e,"g",(function(){return s})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"c",(function(){return f}));var r=n("mrSG"),i=n("z+RT"),o=n("6PXS");function s(){var t=Object(i.a)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function a(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);return e?{host:e[4],path:e[5],protocol:e[2],relative:e[5]+(e[6]||"")+(e[8]||"")}:{}}function c(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function l(t){var e=t.message,n=t.event_id;if(e)return e;var r=c(t);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(t,e,n){var r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function h(t,e){var n=c(t);if(n){var i=n.mechanism;if(n.mechanism=Object(r.a)(Object(r.a)(Object(r.a)({},{type:"generic",handled:!0}),i),e),e&&"data"in e){var o=Object(r.a)(Object(r.a)({},i&&i.data),e.data);n.mechanism.data=o}}}function d(t){return t.split(/[\?#]/,1)[0]}function f(t){if(t&&t.__sentry_captured__)return!0;try{Object(o.a)(t,"__sentry_captured__",!0)}catch(e){}return!1}n("+924")},"90cg":function(t,e,n){"use strict";e.isPromise=function(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}},"9AGB":function(t,e,n){"use strict";var r=n("yoF8");function i(t){return 0===t.length?r.identity:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(t)},e.pipeFromArray=i},"9AQC":function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"j",(function(){return u})),n.d(e,"i",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"k",(function(){return p})),n.d(e,"n",(function(){return m})),n.d(e,"m",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"g",(function(){return v}));var r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return v(t,Error)}}function o(t,e){return r.call(t)==="[object "+e+"]"}function s(t){return o(t,"ErrorEvent")}function a(t){return o(t,"DOMError")}function c(t){return o(t,"DOMException")}function l(t){return o(t,"String")}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function h(t){return o(t,"Object")}function d(t){return"undefined"!=typeof Event&&v(t,Event)}function f(t){return"undefined"!=typeof Element&&v(t,Element)}function p(t){return o(t,"RegExp")}function m(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function g(t){return h(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function b(t){return"number"==typeof t&&t!=t}function v(t,e){try{return t instanceof e}catch(n){return!1}}},"9M8c":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e=null){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?a:s}call(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))}}class s extends r.a{constructor(t,e){super(t),this.bufferSize=e,this.buffer=[]}_next(t){const e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])}_complete(){const t=this.buffer;t.length>0&&this.destination.next(t),super._complete()}}class a extends r.a{constructor(t,e,n){super(t),this.bufferSize=e,this.startBufferEvery=n,this.buffers=[],this.count=0}_next(t){const{bufferSize:e,startBufferEvery:n,buffers:r,count:i}=this;this.count++,i%n==0&&r.push([]);for(let o=r.length;o--;){const n=r[o];n.push(t),n.length===e&&(r.splice(o,1),this.destination.next(n))}}_complete(){const{buffers:t,destination:e}=this;for(;t.length>0;){let n=t.shift();n.length>0&&e.next(n)}super._complete()}}},"9WSG":function(t,e,n){var r=n("6WtA");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}},"9WoD":function(t,e,n){var r=n("yNUO");t.exports=function(t,e,n){var i=r(t).getTime(),o=r(e).getTime(),s=r(n).getTime();if(o>s)throw new Error("The start of the range cannot be after the end of the range");return i>=o&&i<=s}},"9YtQ":function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return v}));var r=n("fXoL"),i=n("ofXK");const o={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:"Unknown"},s={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n      MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n        P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n        CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},a={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n        SHV-E230S|SHW-M180K|SHW-M180L|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n        SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|\n        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n        SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n        \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n        PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n        SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n        TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n        Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n        TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n        TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n        P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n        Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},c={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:"Unknown",HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone"},l=Object.assign(Object.assign(Object.assign({},s),a),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/}),u={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,iOS:/(iPhone OS\s*[0-9_]+)/},h={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},d=(t,e)=>(t[e]=u[e],t),f=Object.keys(u).reduce(d,{}),p=(t,e)=>(t[o[e]]=h[e],t),m=Object.keys(h).reduce(p,{});var g=Object.freeze({__proto__:null,BROWSERS:o,MOBILES_RE:s,TABLETS_RE:a,DEVICES:c,OS:{WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:"Unknown"},OS_VERSIONS:{WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",UNKNOWN:"unknown"},OS_RE:{WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:l,OS_VERSIONS_RE_MAP:u,BROWSER_VERSIONS_RE_MAP:h,OS_VERSIONS_RE:f,BROWSER_VERSIONS_RE:m,"\u02750":d,"\u02751":p});class b{constructor(){}test(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.test(t):e&&Array.isArray(e.and)?e.and.every(e=>this.test(t,e)):e&&Array.isArray(e.or)?e.or.some(e=>this.test(t,e)):!(!e||!e.not||this.test(t,e.not))}exec(t,e){return"string"==typeof e&&(e=new RegExp(e)),e instanceof RegExp?e.exec(t):e&&Array.isArray(e)?e.reduce((e,n)=>e||this.exec(t,n),null):null}}let v=(()=>{class t{constructor(t){this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new b,Object(i.O)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(t=this.userAgent){t!==this.userAgent&&(this.userAgent=t);const e=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(e.forEach(e=>{this[e.prop]=Object.keys(g[e.const]).reduce((n,r)=>"device"===g[e.const][r]&&Object(i.O)(this.platformId)&&(this.reTree.test(this.userAgent,a.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(n[g[e.const][r]]="iPad",Object):(n[g[e.const][r]]=this.reTree.test(t,g[e.const+"_RE"][r]),n),{})}),e.forEach(t=>{this[t.prop]=Object.keys(g[t.const]).map(e=>g[t.const][e]).reduce((e,n)=>"device"===t.prop&&e===g[t.const].ANDROID?this[t.prop][n]?n:e:e===g[t.const].UNKNOWN&&this[t.prop][n]?n:e,g[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==o.UNKNOWN){const e=this.reTree.exec(t,m[this.browser]);e&&(this.browser_version=e[1])}}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version}}isMobile(t=this.userAgent){return!this.isTablet(t)&&!!Object.keys(s).find(e=>this.reTree.test(t,s[e]))}isTablet(t=this.userAgent){return!(!Object(i.O)(this.platformId)||!(this.reTree.test(this.userAgent,a.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(a).find(e=>!!this.reTree.test(t,a[e]))}isDesktop(t=this.userAgent){const e=[c.PS4,c.CHROME_BOOK,c.UNKNOWN];return(this.device!==c.UNKNOWN||!this.isMobile(t)&&!this.isTablet(t))&&e.indexOf(this.device)>-1}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](r.PLATFORM_ID))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(r.PLATFORM_ID))},token:t,providedIn:"root"}),t})(),y=(()=>{class t{static forRoot(){return{ngModule:t,providers:[v]}}}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})()},"9d03":function(t,e,n){var r=n("ZmXw");t.exports=function(t,e){var n=Number(e);return r(t,3*n)}},"9g69":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("Fr4G"),i=n("24nb"),o=n("ywEm"),s=n("fXoL"),a=n("tyNb");let c=(()=>{class t{constructor(t,e,n,r){this._router=t,this._userService=e,this._entityService=n,this._ssr=r}canActivate(t,e){if(this._ssr.isBrowser)return new Promise(t=>{this._entityService.prolongate().subscribe(e=>{const n=this._userService.getRole();"customer"!==n&&"hidden_customer"!==n&&"demo_hidden_customer"!==n||(this._router.navigate(["/customer"]),t(!1)),t(!0)},e=>{this._userService.deleteClient(),this._router.navigate(["/login"]),t(!1)})})}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](a.e),s["\u0275\u0275inject"](r.a),s["\u0275\u0275inject"](i.a),s["\u0275\u0275inject"](o.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},"9ihq":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("4I5i"),i=n("pLZG"),o=n("XDbj"),s=n("xbPD"),a=n("IzEk");function c(t,e){if(t<0)throw new r.a;const n=arguments.length>=2;return c=>c.pipe(Object(i.a)((e,n)=>n===t),Object(a.a)(1),n?Object(s.a)(e):Object(o.a)(()=>new r.a))}},"9m1m":function(t,e,n){var r=n("JtXv");t.exports=function(t){return r(new Date,t)}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},A3iJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("F97/"),i=n("pLZG");function o(t,e){return n=>[Object(i.a)(t,e)(n),Object(i.a)(Object(r.a)(t,e))(n)]}},AFwO:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("xKqS");e.observeOn=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=s;var 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(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 c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete()),this.unsubscribe()},e}(i.Subscriber);e.ObserveOnSubscriber=a;var c=function(){return function(t,e){this.notification=t,this.destination=e}}();e.ObserveOnMessage=c},AVfB:function(t,e,n){var r=n("Zipn");t.exports=function(t){return r(new Date,t)}},AYHy:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("Q1FS"),s=n("Y4kR"),a=n("cSoz");e.delayWhen=function(t,e){return e?function(n){return new u(n,e).lift(new c(t))}:function(e){return e.lift(new c(t))}};var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delayDurationSelector))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=a.subscribeToResult(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(s.OuterSubscriber),u=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new h(t,this.source))},e}(o.Observable),h=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(i.Subscriber)},Ac7s:function(t,e){},AmbE:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("zzsZ"),o=n("mbIT"),s=n("FWf1"),a=n("VKeD"),c=n("wjEo");e.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),i.fromArray(t,void 0).lift(new l(n))};var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.resultSelector))},t}();e.ZipOperator=l;var u=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return r(e,t),e.prototype._next=function(t){var e=this.iterators;o.isArray(t)?e.push(new d(t)):e.push("function"==typeof t[a.iterator]?new h(t[a.iterator]()):new f(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++)if("function"==typeof(s=t[r]).hasValue&&!s.hasValue())return;var i=!1,o=[];for(r=0;r<e;r++){var s,a=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),a.done)return void n.complete();o.push(a.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(s.Subscriber);e.ZipSubscriber=u;var h=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),d=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[a.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),f=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 r(e,t),e.prototype[a.iterator]=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){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return c.innerSubscribe(this.observable,new c.SimpleInnerSubscriber(this))},e}(c.SimpleOuterSubscriber)},Ams3:function(t,e){!function(t){t.ng=t.ng||{},t.ng.common=t.ng.common||{},t.ng.common.locales=t.ng.common.locales||{};const e=void 0;t.ng.common.locales.de=["de",[["AM","PM"],e,e],e,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],e,e],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",e,"{1} 'um' {0}",e],[",",".",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","Euro",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],CUC:[e,"Cub$"],DEM:["DM"],FKP:[e,"Fl\xa3"],GNF:[e,"F.G."],KMF:[e,"FC"],RON:[e,"L"],RWF:[e,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[e,"K"]},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5},[[["Mitternacht","morgens","vorm.","mittags","nachm.","abends","nachts"],e,["Mitternacht","morgens","vormittags","mittags","nachmittags","abends","nachts"]],[["Mitternacht","Morgen","Vorm.","Mittag","Nachm.","Abend","Nacht"],e,["Mitternacht","Morgen","Vormittag","Mittag","Nachmittag","Abend","Nacht"]],["00:00",["05:00","10:00"],["10:00","12:00"],["12:00","13:00"],["13:00","18:00"],["18:00","24:00"],["00:00","05:00"]]]]}("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window)},AytR:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={type:"production",production:!0,apiUrl:"https://"+window.location.hostname+"/entity_api",uploadApiUrl:"https://app.upload.mentortools.com/entity_api",exportApiUrl:"https://"+window.location.hostname+"/export_api",importApiUrl:"https://"+window.location.hostname+"/import_api",notificationWssUrl:"app.mentortools.com",usplashKey:"Kw35vNwPguv4nN9rPwW7ivpTvotfnjr-bGH_yyXJJCI",fileApiUrl:"https://app.mentortools.com/entity_api",communityApi:{version:"v1",url:"https://"+window.location.hostname+"/community_api"},notificationApi:{version:"v1",url:"https://"+window.location.hostname+"/notifications_api"},integrationApi:{version:"v1",url:"https://"+window.location.hostname+"/integration_api"},openAIApi:{version:"v1",url:"https://"+window.location.hostname+"/openai_connector_api"},senderApi:{version:"v1",url:"https://"+window.location.hostname+"/email_server_api"},authApi:{version:"v1",url:"https://"+window.location.hostname+"/entity_api/auth"},landingApi:{version:"v1",url:"https://"+window.location.hostname+"/landing_page_api"},calendarApi:{version:"v1",url:"https://"+window.location.hostname+"/calendar_api"},availableLanguages:["en","de","sk"]}},"B/hR":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.distinctUntilChanged=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compare,this.keySelector))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(i.Subscriber)},BFxc:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function s(t){return function(e){return 0===t?Object(o.b)():e.lift(new a(t))}}class a{constructor(t){if(this.total=t,this.total<0)throw new i.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends r.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=e++%n;t.next(r[i])}}t.complete()}}},BmJ7:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("zB/H"),s=n("Y4kR"),a=n("cSoz");e.windowToggle=function(t,e){return function(n){return n.lift(new c(t,e))}};var c=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.openings,this.closingSelector))},t}(),l=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=a.subscribeToResult(i,n,n)),i}return r(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,s){if(t===this.openings){var c=void 0;try{c=(0,this.closingSelector)(e)}catch(f){return this.error(f)}var l=new i.Subject,u=new o.Subscription,h={window:l,subscription:u};this.contexts.push(h);var d=a.subscribeToResult(this,c,h);d.closed?this.closeWindow(this.contexts.length-1):(d.context=h,u.add(d)),this.destination.next(l)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(s.OuterSubscriber)},BzqX:function(t,e){!function(t){t.ng=t.ng||{},t.ng.common=t.ng.common||{},t.ng.common.locales=t.ng.common.locales||{};const e=void 0;t.ng.common.locales.sk=["sk",[["AM","PM"],e,e],e,[["n","p","u","s","\u0161","p","s"],["ne","po","ut","st","\u0161t","pi","so"],["nede\u013ea","pondelok","utorok","streda","\u0161tvrtok","piatok","sobota"],["ne","po","ut","st","\u0161t","pi","so"]],e,[["j","f","m","a","m","j","j","a","s","o","n","d"],["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],["janu\xe1ra","febru\xe1ra","marca","apr\xedla","m\xe1ja","j\xfana","j\xfala","augusta","septembra","okt\xf3bra","novembra","decembra"]],[["j","f","m","a","m","j","j","a","s","o","n","d"],["jan","feb","mar","apr","m\xe1j","j\xfan","j\xfal","aug","sep","okt","nov","dec"],["janu\xe1r","febru\xe1r","marec","apr\xedl","m\xe1j","j\xfan","j\xfal","august","september","okt\xf3ber","november","december"]],[["pred Kr.","po Kr."],e,["pred Kristom","po Kristovi"]],1,[6,0],["d. M. y",e,"d. MMMM y","EEEE d. MMMM y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}","{1}, {0}",e,e],[",","\xa0",";","%","+","-","e","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{AUD:[e,"$"],BRL:[e,"R$"],CAD:[e,"$"],CNY:[e,"\xa5"],GBP:[e,"\xa3"],HKD:[e,"$"],ILS:["NIS","\u20aa"],INR:[e,"\u20b9"],JPY:[e,"\xa5"],KRW:[e,"\u20a9"],NZD:[e,"$"],TWD:[e,"NT$"],USD:[e,"$"],VND:[e,"\u20ab"],XXX:[]},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:e===Math.floor(e)&&e>=2&&e<=4&&0===n?3:0!==n?4:5},[[["o poln.","nap.","r\xe1no","dop.","pop.","ve\u010d.","v n."],["o poln.","napol.","r\xe1no","dopol.","popol.","ve\u010der","v noci"],["o polnoci","napoludnie","r\xe1no","dopoludnia","popoludn\xed","ve\u010der","v noci"]],[["poln.","pol.","r\xe1no","dop.","pop.","ve\u010d.","noc"],["poln.","pol.","r\xe1no","dopol.","popol.","ve\u010der","noc"],["polnoc","poludnie","r\xe1no","dopoludnie","popoludnie","ve\u010der","noc"]],["00:00","12:00",["04:00","09:00"],["09:00","12:00"],["12:00","18:00"],["18:00","22:00"],["22:00","04:00"]]]]}("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window)},C20g:function(t,e,n){"use strict";e.not=function(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}},C82C:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("zB/H"),o=n("cSoz"),s=n("Y4kR");e.bufferToggle=function(t,e){return function(n){return n.lift(new a(t,e))}};var a=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add(o.subscribeToResult(i,n)),i}return r(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(n){this._error(n)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.subscription;this.destination.next(t.buffer),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new i.Subscription,r={buffer:[],subscription:n};e.push(r);var s=o.subscribeToResult(this,t,r);!s||s.closed?this.closeBuffer(r):(s.context=r,this.add(s),n.add(s))},e}(s.OuterSubscriber)},CIkO:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("1pIY"),o=n("p0+S");function s(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}e.interval=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=i.async),(!o.isNumeric(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=i.async),new r.Observable((function(n){return n.add(e.schedule(s,t,{subscriber:n,counter:0,period:t})),n}))}},CXhC:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setHours(0,0,0,0),e}},CdcT:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("1pIY"),s=n("EOBV");e.throttleTime=function(t,e,n){return void 0===e&&(e=o.async),void 0===n&&(n=s.defaultThrottleConfig),function(r){return r.lift(new a(t,e,n.leading,n.trailing))}};var a=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),c=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return r(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(l,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(i.Subscriber);function l(t){t.subscriber.clearThrottle()}},Ceu0:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("Q1FS"),s=n("zB/H"),a=n("4mvG"),c=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.Subscription.EMPTY)),t},e.prototype.refCount=function(){return a.refCount()(this)},e}(o.Observable);e.ConnectableObservable=c,e.connectableObservableDescriptor=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}();var l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber)},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("SeVD"),o=n("7HRe");function s(t,e){return e?Object(o.a)(t,e):t instanceof r.a?t:new r.a(Object(i.a)(t))}},Cpvd:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return g})),n.d(e,"a",(function(){return b}));var r=n("mrSG"),i=n("lW6c"),o=n("8LbN"),s=n("9AQC"),a=n("+A1k"),c=n("2bdC"),l=n("i6wd"),u=n("MBYv"),h=n("EldZ"),d=n("FGHR");function f(){var t=this.getScope();if(t){var e=t.getSpan();if(e)return{"sentry-trace":e.toTraceparent()}}return{}}function p(t,e,n){return Object(d.b)(e)?void 0!==t.sampled?(t.setMetadata({transactionSampling:{method:"explicitly_set"}}),t):("function"==typeof e.tracesSampler?(i=e.tracesSampler(n),t.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(i)}})):void 0!==n.parentSampled?(i=n.parentSampled,t.setMetadata({transactionSampling:{method:"inheritance"}})):(i=e.tracesSampleRate,t.setMetadata({transactionSampling:{method:"client_rate",rate:Number(i)}})),r=i,(Object(s.h)(r)||"number"!=typeof r&&"boolean"!=typeof r?(l.a&&o.c.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(r)+" of type "+JSON.stringify(typeof r)+"."),0):!(r<0||r>1)||(l.a&&o.c.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+r+"."),0))?i?(t.sampled=Math.random()<i,t.sampled?(l.a&&o.c.log("[Tracing] starting "+t.op+" transaction - "+t.name),t):(l.a&&o.c.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(i)+")"),t)):(l.a&&o.c.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(l.a&&o.c.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)):(t.sampled=!1,t);var r,i}function m(t,e){var n=this.getClient(),i=n&&n.getOptions()||{},o=new h.a(t,this);return(o=p(o,i,Object(r.a)({parentSampled:t.parentSampled,transactionContext:t},e))).sampled&&o.initSpanRecorder(i._experiments&&i._experiments.maxSpans),o}function g(t,e,n,i,o){var s=t.getClient(),a=s&&s.getOptions()||{},c=new u.b(e,t,n,i);return(c=p(c,a,Object(r.a)({parentSampled:e.parentSampled,transactionContext:e},o))).sampled&&c.initSpanRecorder(a._experiments&&a._experiments.maxSpans),c}function b(){var e;(e=Object(i.c)()).__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=m),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=f)),Object(a.b)()&&function(){var e=Object(i.c)();if(e.__SENTRY__){var n={mongodb:function(){return new(Object(a.a)(t,"./integrations/node/mongo").Mongo)},mongoose:function(){return new(Object(a.a)(t,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new(Object(a.a)(t,"./integrations/node/mysql").Mysql)},pg:function(){return new(Object(a.a)(t,"./integrations/node/postgres").Postgres)}},o=Object.keys(n).filter((function(t){return!!Object(a.c)(t)})).map((function(t){try{return n[t]()}catch(e){return}})).filter((function(t){return t}));o.length>0&&(e.__SENTRY__.integrations=Object(r.g)(e.__SENTRY__.integrations||[],o))}}(),Object(c.a)()}}).call(this,n("3UD+")(t))},CqXF:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.value=t}call(t,e){return e.subscribe(new s(t,this.value))}}class s extends r.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}},D0XW:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n("3N8a");const i=new(n("IjjT").a)(r.a),o=i},DDzh:function(t,e,n){"use strict";var r=n("q3Kh");function i(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}e.pluck=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return r.map(i(t,n))(e)}}},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},DT56:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t).getTime(),i=r(e).getTime();return n<i?-1:n>i?1:0}},DXMP:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.ignoreElements=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype._next=function(t){},e}(i.Subscriber)},Dxa7:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("IKal"),s=n("aJGj");e.take=function(t){return function(e){return 0===t?s.empty():e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}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 r(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.Subscriber)},"Dz+M":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.Action=function(t){function e(e,n){return t.call(this)||this}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n("zB/H").Subscription)},EBtg:function(t,e,n){"use strict";var r=n("2KeD"),i=n("n73p"),o=n("2qMH"),s=n("LJ/p"),a=n("HZF8"),c=n("90cg"),l=n("yRPT"),u=n("0alx");e.scheduled=function(t,e){if(null!=t){if(a.isInteropObservable(t))return r.scheduleObservable(t,e);if(c.isPromise(t))return i.schedulePromise(t,e);if(l.isArrayLike(t))return o.scheduleArray(t,e);if(u.isIterable(t)||"string"==typeof t)return s.scheduleIterable(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},EMgV:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getFullYear()}},EOBV:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=function(t,n){return void 0===n&&(n=e.defaultThrottleConfig),function(e){return e.lift(new o(t,!!n.leading,!!n.trailing))}};var o=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector,this.leading,this.trailing))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._sendValue;this._hasValue&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=i.innerSubscribe(e,new i.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(e){return this.destination.error(e),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.SimpleOuterSubscriber)},EQ5u:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var r=n("XNiG"),i=n("HDdC"),o=(n("7o/Q"),n("quSY")),s=n("x+ZX");class a extends i.a{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new o.a,t.add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return Object(s.a)()(this)}}const c=(()=>{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class l extends r.c{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n("HDdC");const i=new r.a(t=>t.complete());function o(t){return t?function(t){return new r.a(e=>t.schedule(()=>e.complete()))}(t):i}},EdHE:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("0z0v");e.single=function(t){return function(e){return e.lift(new s(t,e))}};var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new o.EmptyError)},e}(i.Subscriber)},Egam:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return S}));var r=n("fXoL"),i=n("3Pt+"),o=n("ofXK");function s(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"span"),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate"](t._placeholder)}}function a(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"span",15),r["\u0275\u0275elementStart"](1,"span",16),r["\u0275\u0275elementStart"](2,"span"),r["\u0275\u0275text"](3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](4,"a",17),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"]().onItemClick(n,i)})),r["\u0275\u0275text"](5,"x"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,n=e.index,i=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("hidden",n>i._settings.itemsShowLimit-1),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate1"]("",t.text,"\xa0")}}function c(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"span",18),r["\u0275\u0275text"](1),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("+",t.itemShowRemaining(),"")}}function l(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"li",19),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"]().toggleSelectAll()})),r["\u0275\u0275element"](1,"input",20),r["\u0275\u0275elementStart"](2,"div"),r["\u0275\u0275text"](3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("checked",t.isAllItemsSelected())("disabled",t.disabled||t.isLimitSelectionReached()),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](t.isAllItemsSelected()?t._settings.unSelectAllText:t._settings.selectAllText)}}function u(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"li",21),r["\u0275\u0275elementStart"](1,"input",22),r["\u0275\u0275listener"]("ngModelChange",(function(e){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"]().filter.text=e}))("ngModelChange",(function(e){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"]().onFilterTextChange(e)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("readOnly",t.disabled)("placeholder",t._settings.searchPlaceholderText)("ngModel",t.filter.text)}}function h(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"li",23),r["\u0275\u0275listener"]("click",(function(n){r["\u0275\u0275restoreView"](t);const i=e.$implicit;return r["\u0275\u0275nextContext"]().onItemClick(n,i)})),r["\u0275\u0275element"](1,"input",24),r["\u0275\u0275elementStart"](2,"div"),r["\u0275\u0275text"](3),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit,n=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("checked",n.isSelected(t))("disabled",n.disabled||n.isLimitSelectionReached()&&!n.isSelected(t)||t.isDisabled),r["\u0275\u0275attribute"]("aria-label",t.text),r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](t.text)}}function d(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"li",25),r["\u0275\u0275elementStart"](1,"h5"),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](t._settings.noFilteredDataAvailablePlaceholderText)}}function f(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"li",26),r["\u0275\u0275elementStart"](1,"h5"),r["\u0275\u0275text"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275advance"](2),r["\u0275\u0275textInterpolate"](t._settings.noDataAvailablePlaceholderText)}}const p=function(t){return{"dropdown-multiselect--active":t}};class m{constructor(t){"string"!=typeof t&&"number"!=typeof t||(this.id=this.text=t,this.isDisabled=!1),"object"==typeof t&&(this.id=t.id,this.text=t.text,this.isDisabled=t.isDisabled)}}let g=(()=>{let t=class{transform(t,e){return t&&e?t.filter(t=>this.applyFilter(t,e)):t}applyFilter(t,e){return"string"==typeof t.text&&"string"==typeof e.text?!(e.text&&t.text&&-1===t.text.toLowerCase().indexOf(e.text.toLowerCase())):!(e.text&&t.text&&-1===t.text.toString().toLowerCase().indexOf(e.text.toString().toLowerCase()))}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"multiSelectFilter",type:t,pure:!1}),t})();const b={provide:i.r,useExisting:Object(r.forwardRef)(()=>y),multi:!0},v=()=>{};let y=(()=>{let t=class{constructor(t,e){this.listFilterPipe=t,this.cdr=e,this._data=[],this.selectedItems=[],this.isDropdownOpen=!0,this._placeholder="Select",this._sourceDataType=null,this._sourceDataFields=[],this.filter=new m(this.data),this.defaultSettings={singleSelection:!1,idField:"id",textField:"text",disabledField:"isDisabled",enableCheckAll:!0,selectAllText:"Select All",unSelectAllText:"UnSelect All",allowSearchFilter:!1,limitSelection:-1,clearSearchFilter:!0,maxHeight:197,itemsShowLimit:999999999999,searchPlaceholderText:"Search",noDataAvailablePlaceholderText:"No data available",noFilteredDataAvailablePlaceholderText:"No filtered data available",closeDropDownOnSelection:!1,showSelectedItemsAtTop:!1,defaultOpen:!1,allowRemoteDataSearch:!1},this.disabled=!1,this.onFilterChange=new r.EventEmitter,this.onDropDownClose=new r.EventEmitter,this.onSelect=new r.EventEmitter,this.onDeSelect=new r.EventEmitter,this.onSelectAll=new r.EventEmitter,this.onDeSelectAll=new r.EventEmitter,this.onTouchedCallback=v,this.onChangeCallback=v}set placeholder(t){this._placeholder=t||"Select"}set settings(t){this._settings=t?Object.assign(this.defaultSettings,t):Object.assign(this.defaultSettings)}set data(t){if(t){const e=t[0];this._sourceDataType=typeof e,this._sourceDataFields=this.getFields(e),this._data=t.map(t=>new m("string"==typeof t||"number"==typeof t?t:{id:t[this._settings.idField],text:t[this._settings.textField],isDisabled:t[this._settings.disabledField]}))}else this._data=[]}onFilterTextChange(t){this.onFilterChange.emit(t)}onItemClick(t,e){if(this.disabled||e.isDisabled)return!1;const n=this.isSelected(e),r=-1===this._settings.limitSelection||this._settings.limitSelection>0&&this.selectedItems.length<this._settings.limitSelection;n?this.removeSelected(e):r&&this.addSelected(e),this._settings.singleSelection&&this._settings.closeDropDownOnSelection&&this.closeDropdown()}writeValue(t){if(null!=t&&t.length>0)if(this._settings.singleSelection)try{if(t.length>=1){const e=t[0];this.selectedItems=[new m("string"==typeof e||"number"==typeof e?e:{id:e[this._settings.idField],text:e[this._settings.textField],isDisabled:e[this._settings.disabledField]})]}}catch(e){}else{const e=t.map(t=>new m("string"==typeof t||"number"==typeof t?t:{id:t[this._settings.idField],text:t[this._settings.textField],isDisabled:t[this._settings.disabledField]}));this.selectedItems=this._settings.limitSelection>0?e.splice(0,this._settings.limitSelection):e}else this.selectedItems=[];this.onChangeCallback(t),this.cdr.markForCheck()}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}onTouched(){this.onTouchedCallback()}trackByFn(t,e){return e.id}isSelected(t){let e=!1;return this.selectedItems.forEach(n=>{t.id===n.id&&(e=!0)}),e}isLimitSelectionReached(){return this._settings.limitSelection===this.selectedItems.length}isAllItemsSelected(){let t=this.listFilterPipe.transform(this._data,this.filter);const e=t.filter(t=>t.isDisabled).length;return!((!this.data||0===this.data.length)&&this._settings.allowRemoteDataSearch)&&t.length===this.selectedItems.length+e}showButton(){return!(this._settings.singleSelection||this._settings.limitSelection>0)}itemShowRemaining(){return this.selectedItems.length-this._settings.itemsShowLimit}addSelected(t){this._settings.singleSelection?(this.selectedItems=[],this.selectedItems.push(t)):this.selectedItems.push(t),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onSelect.emit(this.emittedValue(t))}removeSelected(t){this.selectedItems.forEach(e=>{t.id===e.id&&this.selectedItems.splice(this.selectedItems.indexOf(e),1)}),this.onChangeCallback(this.emittedValue(this.selectedItems)),this.onDeSelect.emit(this.emittedValue(t))}emittedValue(t){const e=[];if(Array.isArray(t))t.map(t=>{e.push(this.objectify(t))});else if(t)return this.objectify(t);return e}objectify(t){if("object"===this._sourceDataType){const e={};return e[this._settings.idField]=t.id,e[this._settings.textField]=t.text,this._sourceDataFields.includes(this._settings.disabledField)&&(e[this._settings.disabledField]=t.isDisabled),e}return"number"===this._sourceDataType?Number(t.id):t.text}toggleDropdown(t){t.preventDefault(),this.disabled&&this._settings.singleSelection||(this._settings.defaultOpen=!this._settings.defaultOpen,this._settings.defaultOpen||this.onDropDownClose.emit())}closeDropdown(){this._settings.defaultOpen=!1,this._settings.clearSearchFilter&&(this.filter.text=""),this.onDropDownClose.emit()}toggleSelectAll(){if(this.disabled)return!1;this.isAllItemsSelected()?(this.selectedItems=[],this.onDeSelectAll.emit(this.emittedValue(this.selectedItems))):(this.selectedItems=this.listFilterPipe.transform(this._data,this.filter).filter(t=>!t.isDisabled).slice(),this.onSelectAll.emit(this.emittedValue(this.selectedItems))),this.onChangeCallback(this.emittedValue(this.selectedItems))}getFields(t){const e=[];if("object"!=typeof t)return e;for(const n in t)e.push(n);return e}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](g),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["ng-multiselect-dropdown"]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("blur",(function(){return e.onTouched()}))},inputs:{disabled:"disabled",placeholder:"placeholder",settings:"settings",data:"data"},outputs:{onFilterChange:"onFilterChange",onDropDownClose:"onDropDownClose",onSelect:"onSelect",onDeSelect:"onDeSelect",onSelectAll:"onSelectAll",onDeSelectAll:"onDeSelectAll"},features:[r["\u0275\u0275ProvidersFeature"]([b])],decls:18,vars:23,consts:[["tabindex","0",1,"multiselect-dropdown",3,"blur","clickOutside"],["tabindex","-1",1,"dropdown-btn",3,"click"],[4,"ngIf"],["class","selected-item-container",4,"ngFor","ngForOf","ngForTrackBy"],[2,"float","right !important","padding-right","4px",3,"ngClass"],["style","padding-right: 15px;",4,"ngIf"],[1,"dropdown-multiselect__caret"],[1,"dropdown-list",3,"hidden"],[1,"item1"],["class","multiselect-item-checkbox","style","border-bottom: 1px solid #ccc;padding:10px",3,"click",4,"ngIf"],["class","filter-textbox",4,"ngIf"],[1,"item2"],["class","multiselect-item-checkbox",3,"click",4,"ngFor","ngForOf"],["class","no-filtered-data",4,"ngIf"],["class","no-data",4,"ngIf"],[1,"selected-item-container"],[1,"selected-item",3,"hidden"],[2,"padding-left","2px","color","white",3,"click"],[2,"padding-right","15px"],[1,"multiselect-item-checkbox",2,"border-bottom","1px solid #ccc","padding","10px",3,"click"],["type","checkbox","aria-label","multiselect-select-all",3,"checked","disabled"],[1,"filter-textbox"],["type","text","aria-label","multiselect-search",3,"readOnly","placeholder","ngModel","ngModelChange"],[1,"multiselect-item-checkbox",3,"click"],["type","checkbox",3,"checked","disabled"],[1,"no-filtered-data"],[1,"no-data"]],template:function(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275listener"]("blur",(function(){return e.onTouched()}))("clickOutside",(function(){return e.closeDropdown()})),r["\u0275\u0275elementStart"](1,"div"),r["\u0275\u0275elementStart"](2,"span",1),r["\u0275\u0275listener"]("click",(function(t){return e.toggleDropdown(t)})),r["\u0275\u0275template"](3,s,2,1,"span",2),r["\u0275\u0275template"](4,a,6,2,"span",3),r["\u0275\u0275elementStart"](5,"span",4),r["\u0275\u0275template"](6,c,2,1,"span",5),r["\u0275\u0275element"](7,"span",6),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](8,"div",7),r["\u0275\u0275elementStart"](9,"ul",8),r["\u0275\u0275template"](10,l,4,3,"li",9),r["\u0275\u0275template"](11,u,2,3,"li",10),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](12,"ul",11),r["\u0275\u0275template"](13,h,4,4,"li",12),r["\u0275\u0275pipe"](14,"multiSelectFilter"),r["\u0275\u0275template"](15,d,3,1,"li",13),r["\u0275\u0275pipe"](16,"multiSelectFilter"),r["\u0275\u0275template"](17,f,3,1,"li",14),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()),2&t&&(r["\u0275\u0275advance"](1),r["\u0275\u0275classProp"]("disabled",e.disabled),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",0==e.selectedItems.length),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",e.selectedItems)("ngForTrackBy",e.trackByFn),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](21,p,e._settings.defaultOpen)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.itemShowRemaining()>0),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("hidden",!e._settings.defaultOpen),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",(e._data.length>0||e._settings.allowRemoteDataSearch)&&!e._settings.singleSelection&&e._settings.enableCheckAll&&-1===e._settings.limitSelection),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",(e._data.length>0||e._settings.allowRemoteDataSearch)&&e._settings.allowSearchFilter),r["\u0275\u0275advance"](1),r["\u0275\u0275styleProp"]("max-height",e._settings.maxHeight+"px"),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",r["\u0275\u0275pipeBind2"](14,15,e._data,e.filter)),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",0!=e._data.length&&0==r["\u0275\u0275pipeBind2"](16,18,e._data,e.filter).length&&!e._settings.allowRemoteDataSearch),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",0==e._data.length&&!e._settings.allowRemoteDataSearch))},directives:function(){return[_,o.u,o.t,o.r,i.c,i.t,i.w]},pipes:function(){return[g]},styles:['.multiselect-dropdown[_ngcontent-%COMP%]{position:relative;width:100%;font-size:inherit;font-family:inherit}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]{display:inline-block;border:1px solid #adadad;width:100%;padding:6px 12px;margin-bottom:0;font-weight:400;line-height:1.52857143;text-align:left;vertical-align:middle;cursor:pointer;background-image:none;border-radius:4px}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]{display:flex;float:left}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]{border:1px solid #337ab7;margin-right:4px;background:#337ab7;padding:0 5px;color:#fff;border-radius:2px;float:left;max-width:100px}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item-container[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .selected-item[_ngcontent-%COMP%]:hover{box-shadow:1px 1px #959595}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]{line-height:16px;display:block;position:absolute;box-sizing:border-box;width:40px;height:38px;right:1px;top:0;padding:4px 8px;margin:0;text-decoration:none;text-align:center;cursor:pointer;transition:transform .2s}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-style:solid;border-width:8px 8px 0;border-color:#999 transparent;content:""}.multiselect-dropdown[_ngcontent-%COMP%]   .dropdown-btn[_ngcontent-%COMP%]   .dropdown-multiselect--active[_ngcontent-%COMP%]   .dropdown-multiselect__caret[_ngcontent-%COMP%]{transform:rotateZ(180deg)}.multiselect-dropdown[_ngcontent-%COMP%]   .disabled[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{background-color:#eceeef}.dropdown-list[_ngcontent-%COMP%]{position:absolute;padding-top:6px;width:100%;z-index:9999;border:1px solid #ccc;border-radius:3px;background:#fff;margin-top:10px;box-shadow:0 1px 5px #959595}.dropdown-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0;list-style:none;overflow:auto;margin:0}.dropdown-list[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:6px 10px;cursor:pointer;text-align:left}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;position:relative;padding:10px}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0;width:100%;padding:0 0 0 26px}.dropdown-list[_ngcontent-%COMP%]   .filter-textbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:0}.multiselect-item-checkbox[_ngcontent-%COMP%]:hover{background-color:#e4e3e3}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:focus + div[_ngcontent-%COMP%]:before, .multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:hover + div[_ngcontent-%COMP%]:before{border-color:#337ab7;background-color:#f2f2f2}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:active + div[_ngcontent-%COMP%]:before{transition-duration:0s}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{position:relative;padding-left:2em;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;margin:0;color:#000}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:before{box-sizing:content-box;content:"";color:#337ab7;position:absolute;top:50%;left:0;width:14px;height:14px;margin-top:-9px;border:2px solid #337ab7;text-align:center;transition:.4s}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%] + div[_ngcontent-%COMP%]:after{box-sizing:content-box;content:"";position:absolute;transform:scale(0);transform-origin:50%;transition:transform .2s ease-out;background-color:transparent;top:50%;left:4px;width:8px;height:3px;margin-top:-4px;border-style:solid;border-color:#fff;border-width:0 0 3px 3px;-o-border-image:none;border-image:none;transform:rotate(-45deg) scale(0)}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled + div[_ngcontent-%COMP%]:before{border-color:#ccc}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:focus + div[_ngcontent-%COMP%]:before   .multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:hover + div[_ngcontent-%COMP%]:before{background-color:inherit}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:disabled:checked + div[_ngcontent-%COMP%]:before{background-color:#ccc}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:after{content:"";transition:transform .2s ease-out;transform:rotate(-45deg) scale(1)}.multiselect-item-checkbox[_ngcontent-%COMP%]   input[type=checkbox][_ngcontent-%COMP%]:checked + div[_ngcontent-%COMP%]:before{-webkit-animation:.2s ease-in borderscale;animation:.2s ease-in borderscale;background:#337ab7}@-webkit-keyframes borderscale{50%{box-shadow:0 0 0 2px #337ab7}}@keyframes borderscale{50%{box-shadow:0 0 0 2px #337ab7}}'],changeDetection:0}),t})(),_=(()=>{let t=class{constructor(t){this._elementRef=t,this.clickOutside=new r.EventEmitter}onClick(t,e){e&&(this._elementRef.nativeElement.contains(e)||this.clickOutside.emit(t))}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","clickOutside",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("click",(function(t){return e.onClick(t,t.target)}),!1,r["\u0275\u0275resolveDocument"])},outputs:{clickOutside:"clickOutside"}}),t})();var w;let S=(()=>{let t=w=class{static forRoot(){return{ngModule:w}}};return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[g],imports:[[o.c,i.n]]}),t})()},"Ejl/":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("XNiG"),i=n("24nb"),o=n("Fr4G"),s=n("3jIQ"),a=(n("Ac7s"),n("fXoL"));let c=(()=>{class t{constructor(t,e,n){this._entityService=t,this._userService=e,this._httpService=n,this._changeNewDesignState=new r.b,this.changeNewDesignState$=this._changeNewDesignState.asObservable(),this._themesCodeMap=new Map}changeNewDesignState(t){this._changeNewDesignState.next(t)}saveNewDesignStateChange(t){return this._entityService.switchNewDesignState(t)}setThemeParameters(t){Object.keys(t).forEach(e=>{document.documentElement.style.setProperty("--"+e,t[e])})}setActiveTheme(t){this._activeTheme=t}getActiveTheme(){return this._activeTheme}setThemesCodeMap(t){t.forEach(t=>{this._themesCodeMap.set(t.id,t.title)})}getThemesCodeMap(){return this._themesCodeMap}post(t,e){const n={token:this._userService.token};e=Object.assign(Object.assign({},e),n);const r=JSON.stringify(e);return this._httpService.entityApiPost(t,r)}getInfo(t,e){var n,r;let i;if(e)i=e;else{let t;t=(null===(n=this._userService.client)||void 0===n?void 0:n.portal.id)?this._userService.client.portal.id:null===(r=this._userService.portal)||void 0===r?void 0:r.id,i={filter_by:[{attribute:"portal_id",value:t}]}}return this.post(`entity/${t}/info`,i)}getList(t,e){return this.post(`entity/${t}/list`,e)}update(t,e,n){const r={values:Object.assign(Object.assign({},e),{id:n})};return this.post(`entity/${t}/update`,r)}updateContentBlock(t,e,n){return this.post(`entity/${t}/update`,{values:e,portal_id:n})}activeContentBlock(t,e,n){return this.post(t+"/activate",{content_block_id:n,portal_id:e})}activateTheme(t){var e;let n;return n=(null===(e=this._userService.client)||void 0===e?void 0:e.portal.id)?this._userService.client.portal.id:this._userService.portal.id,this.post("portal/design/activate",{portal_id:n,design_id:t})}}return t.\u0275fac=function(e){return new(e||t)(a["\u0275\u0275inject"](i.a),a["\u0275\u0275inject"](o.a),a["\u0275\u0275inject"](s.a))},t.\u0275prov=a["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},EldZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("mrSG"),i=n("lW6c"),o=n("9AQC"),s=n("8LbN"),a=n("6PXS"),c=n("i6wd"),l=n("SYqL"),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r._measurements={},r._hub=Object(i.b)(),Object(o.g)(n,i.a)&&(r._hub=n),r.name=e.name||"",r.metadata=e.metadata||{},r._trimEnd=e.trimEnd,r.transaction=r,r}return Object(r.d)(e,t),e.prototype.setName=function(t){this.name=t},e.prototype.initSpanRecorder=function(t){void 0===t&&(t=1e3),this.spanRecorder||(this.spanRecorder=new l.b(t)),this.spanRecorder.add(this)},e.prototype.setMeasurements=function(t){this._measurements=Object(r.a)({},t)},e.prototype.setMetadata=function(t){this.metadata=Object(r.a)(Object(r.a)({},this.metadata),t)},e.prototype.finish=function(e){var n=this;if(void 0===this.endTimestamp){if(this.name||(c.a&&s.c.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),t.prototype.finish.call(this,e),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(t){return t!==n&&t.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(t,e){return t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t})).endTimestamp);var i={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(c.a&&s.c.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),c.a&&s.c.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(i)}c.a&&s.c.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var o=this._hub.getClient(),a=o&&o.getTransport&&o.getTransport();a&&a.recordLostEvent&&a.recordLostEvent("sample_rate","transaction")}},e.prototype.toContext=function(){var e=t.prototype.toContext.call(this);return Object(a.c)(Object(r.a)(Object(r.a)({},e),{name:this.name,trimEnd:this._trimEnd}))},e.prototype.updateWithContext=function(e){var n;return t.prototype.updateWithContext.call(this,e),this.name=null!=(n=e.name)?n:"",this._trimEnd=e.trimEnd,this},e}(l.a)},Ev1t:function(t,e,n){var r=n("ZmXw");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},EzyC:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("1pIY");e.sampleTime=function(t,e){return void 0===e&&(e=o.async),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.period,this.scheduler))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(c,n,{subscriber:i,period:n})),i}return r(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(i.Subscriber);function c(t){var e=t.period;t.subscriber.notifyNext(),this.schedule(t,e)}},F1k1:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("wjEo");e.retryWhen=function(t){return function(e){return e.lift(new s(t,e))}};var s=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.notifier,this.source))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,s=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new i.Subject;try{r=(0,this.notifier)(n)}catch(a){return t.prototype.error.call(this,a)}s=o.innerSubscribe(r,new o.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=s,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(o.SimpleOuterSubscriber)},F809:function(t,e,n){var r=n("yNUO"),i=n("sunR"),o=n("DT56");t.exports=function(t,e){var n=r(t),s=r(e),a=o(n,s),c=Math.abs(i(n,s));return n.setMonth(n.getMonth()-a*c),a*(c-(o(n,s)===-a))}},"F97/":function(t,e,n){"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.d(e,"a",(function(){return r}))},FAJc:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("Fr4G"),i=n("3jIQ"),o=n("lcII"),s=n("AytR"),a=n("fXoL");let c=(()=>{class t{constructor(t,e){this._userService=t,this._httpService=e}getWithToken(t,e=!1,n=""){let r=`${t}?token=${this._userService.token}${n}`;return e&&(r+="&ngsw-bypass=true"),this._httpService.notificationsApiGet(r)}set(t,e){let n=Object.assign({token:this._userService.token},e);const r=JSON.stringify(n);return this._httpService.notificationsApiPost(t,r)}markAsRead(t,e){let n=Object.assign({token:this._userService.token},e);const r=JSON.stringify(n);return this._httpService.notificationsApiPost(t,r)}getNotificationsInApp(){const t=`wss:${s.a.notificationWssUrl}/notifications_api/v1/notifications/monitor?token=${this._userService.token}`;return Object(o.a)(t)}getEmailContent(t,e){return this._httpService.notificationsApiGet(`template/get?component_name=notifications-default-customer-email-templates&template_code=${t}&language=${e}`)}}return t.\u0275fac=function(e){return new(e||t)(a["\u0275\u0275inject"](r.a),a["\u0275\u0275inject"](i.a))},t.\u0275prov=a["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},FCKb:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("nzqU"),o=n("mbIT"),s=n("Y4kR"),a=n("cSoz"),c=n("zzsZ"),l={};e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return i.isScheduler(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0]),c.fromArray(t,r).lift(new u(n))};var u=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}();e.CombineLatestOperator=u;var h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r(e,t),e.prototype._next=function(t){this.values.push(l),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++)this.add(a.subscribeToResult(this,t[n],void 0,n))}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=this.toRespond?r[n]===l?--this.toRespond:this.toRespond:0;r[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(s.OuterSubscriber);e.CombineLatestSubscriber=h},FD9M:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("quSY"),i=n("ZUHj"),o=n("l7GE");function s(t,e){return function(n){return n.lift(new a(t,e))}}class a{constructor(t,e){this.openings=t,this.closingSelector=e}call(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))}}class c extends o.a{constructor(t,e,n){super(t),this.closingSelector=n,this.contexts=[],this.add(Object(i.a)(this,e))}_next(t){const e=this.contexts,n=e.length;for(let r=0;r<n;r++)e[r].buffer.push(t)}_error(t){const e=this.contexts;for(;e.length>0;){const t=e.shift();t.subscription.unsubscribe(),t.buffer=null,t.subscription=null}this.contexts=null,super._error(t)}_complete(){const t=this.contexts;for(;t.length>0;){const e=t.shift();this.destination.next(e.buffer),e.subscription.unsubscribe(),e.buffer=null,e.subscription=null}this.contexts=null,super._complete()}notifyNext(t,e){t?this.closeBuffer(t):this.openBuffer(e)}notifyComplete(t){this.closeBuffer(t.context)}openBuffer(t){try{const e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(e){this._error(e)}}closeBuffer(t){const e=this.contexts;if(e&&t){const{buffer:n,subscription:r}=t;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}}trySubscribe(t){const e=this.contexts,n=new r.a,o={buffer:[],subscription:n};e.push(o);const s=Object(i.a)(this,t,o);!s||s.closed?this.closeBuffer(o):(s.context=o,this.add(s),n.add(s))}}},FF6D:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setMilliseconds(999),e}},FGHR:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return a}));var r=n("lW6c");function i(t){var e=Object(r.b)().getClient(),n=t||e&&e.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function o(t){var e=(t||Object(r.b)()).getScope();return e&&e.getTransaction()}function s(t){return t/1e3}function a(t){return 1e3*t}},FHQ3:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("gTqA"),o=n("aJGj");e.using=function(t,e){return new r.Observable((function(n){var r,s;try{r=t()}catch(c){return void n.error(c)}try{s=e(r)}catch(c){return void n.error(c)}var a=(s?i.from(s):o.EMPTY).subscribe(n);return function(){a.unsubscribe(),r&&r.unsubscribe()}}))}},FKr1:function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return G})),n.d(e,"d",(function(){return dt})),n.d(e,"e",(function(){return at})),n.d(e,"f",(function(){return K})),n.d(e,"g",(function(){return S})),n.d(e,"h",(function(){return B})),n.d(e,"i",(function(){return rt})),n.d(e,"j",(function(){return ct})),n.d(e,"k",(function(){return ht})),n.d(e,"l",(function(){return Y})),n.d(e,"m",(function(){return Q})),n.d(e,"n",(function(){return $})),n.d(e,"o",(function(){return lt})),n.d(e,"p",(function(){return ut})),n.d(e,"q",(function(){return C})),n.d(e,"r",(function(){return O})),n.d(e,"s",(function(){return x})),n.d(e,"t",(function(){return E})),n.d(e,"u",(function(){return k})),n.d(e,"v",(function(){return T}));var r=n("fXoL"),i=n("u47x"),o=n("cH1L");const s=new r.Version("9.2.4");var a=n("ofXK"),c=n("8LU1"),l=n("XNiG"),u=n("HDdC"),h=n("nLfN"),d=(n("jhN1"),n("JX91"),n("R1ws")),f=n("FtGj");const p=["*",[["mat-option"],["ng-container"]]],m=["*","mat-option, ng-container"];function g(t,e){if(1&t&&r["\u0275\u0275element"](0,"mat-pseudo-checkbox",3),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const b=["*"];let v=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),y=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const _=new r.Version("9.2.4"),w=new r.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let S=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(r.isDevMode)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const r=getComputedStyle(n);r&&"none"!==r.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&_.full!==s.full&&console.warn("The Angular Material version ("+_.full+") does not match the Angular CDK version ("+s.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)(r["\u0275\u0275inject"](i.h),r["\u0275\u0275inject"](w,8),r["\u0275\u0275inject"](a.e,8))},imports:[[o.a],o.a]}),t})();function x(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}}}function C(t,e){return class extends t{constructor(...t){super(...t),this.color=e}get color(){return this._color}set color(t){const n=t||e;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)}}}function O(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(c.c)(t)}}}function T(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?t:e}}}function E(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.b}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function k(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new u.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){if(this._isInitialized)throw Error("This directive has already been marked as initialized and should not be called twice.");this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const A=new r.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(r.inject)(r.LOCALE_ID)}});class D{constructor(){this._localeChanges=new l.b}get localeChanges(){return this._localeChanges}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),r=this.isValid(e);return n&&r?!this.compareDate(t,e):n==r}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const j=new r.InjectionToken("mat-date-formats");let I;try{I="undefined"!=typeof Intl}catch(ft){I=!1}const P={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},M=R(31,t=>String(t+1)),N={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},F=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function R(t,e){const n=Array(t);for(let r=0;r<t;r++)n[r]=e(r);return n}let L=(()=>{class t extends D{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return R(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return P[t]}getDateNames(){if(I){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return R(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return M}getDayOfWeekNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return R(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return N[t]}getYearName(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){if(e<0||e>11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(n<1)throw Error(`Invalid date "${n}". Date has to be greater than 0.`);let r=this._createDateWithOverflow(t,e,n);if(r.getMonth()!=e)throw Error(`Invalid date "${n}" for month with index "${e}".`);return r}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(I){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(F.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const r=new Date(t,e,n);return t>=0&&t<100&&r.setFullYear(this.getYear(r)-1900),r}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](A,8),r["\u0275\u0275inject"](h.a))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[{provide:D,useClass:L}],imports:[[h.b]]}),t})();const H={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let B=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[{provide:j,useValue:H}],imports:[[V]]}),t})(),G=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t},token:t,providedIn:"root"}),t})();class z{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const W={enterDuration:450,exitDuration:400},U=Object(h.f)({passive:!0}),q=["mousedown","touchstart"],X=["mouseup","mouseleave","touchend","touchcancel"];class ${constructor(t,e,n,r){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Object(c.e)(n))}fadeInRipple(t,e,n={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},W),n.animation);n.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);const o=n.radius||function(t,e,n){const r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}(t,e,r),s=t-r.left,a=e-r.top,c=i.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-o+"px",l.style.top=a-o+"px",l.style.height=2*o+"px",l.style.width=2*o+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const u=new z(this,l,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},c),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,r=Object.assign(Object.assign({},W),t.config.animation);n.style.transitionDuration=r.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(c.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(q))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(X),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(i.j)(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,U)})})}_removeTriggerEvents(){this._triggerElement&&(q.forEach(t=>{this._triggerElement.removeEventListener(t,this,U)}),this._pointerUpEventsRegistered&&X.forEach(t=>{this._triggerElement.removeEventListener(t,this,U)}))}}const K=new r.InjectionToken("mat-ripple-global-options");let Y=(()=>{class t{constructor(t,e,n,r,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new $(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](h.a),r["\u0275\u0275directiveInject"](K,8),r["\u0275\u0275directiveInject"](d.a,8))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&r["\u0275\u0275classProp"]("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),Q=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[S,h.b],S]}),t})(),J=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](d.a,8))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&r["\u0275\u0275classProp"]("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),Z=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})();class tt{}const et=x(tt);let nt=0,rt=(()=>{class t extends et{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+nt++}}return t.\u0275fac=function(e){return it(e||t)},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mat-optgroup"]],hostAttrs:["role","group",1,"mat-optgroup"],hostVars:4,hostBindings:function(t,e){2&t&&(r["\u0275\u0275attribute"]("aria-disabled",e.disabled.toString())("aria-labelledby",e._labelId),r["\u0275\u0275classProp"]("mat-optgroup-disabled",e.disabled))},inputs:{disabled:"disabled",label:"label"},exportAs:["matOptgroup"],features:[r["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:m,decls:4,vars:2,consts:[[1,"mat-optgroup-label",3,"id"]],template:function(t,e){1&t&&(r["\u0275\u0275projectionDef"](p),r["\u0275\u0275elementStart"](0,"label",0),r["\u0275\u0275text"](1),r["\u0275\u0275projection"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275projection"](3,1)),2&t&&(r["\u0275\u0275property"]("id",e._labelId),r["\u0275\u0275advance"](1),r["\u0275\u0275textInterpolate1"]("",e.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();const it=r["\u0275\u0275getInheritedFactory"](rt);let ot=0;class st{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const at=new r.InjectionToken("MAT_OPTION_PARENT_COMPONENT");let ct=(()=>{class t{constructor(t,e,n,i){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=i,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ot++,this.onSelectionChange=new r.EventEmitter,this._stateChanges=new l.b}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==f.d&&t.keyCode!==f.l||Object(f.q)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new st(this,t))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef),r["\u0275\u0275directiveInject"](at,8),r["\u0275\u0275directiveInject"](rt,8))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(r["\u0275\u0275hostProperty"]("id",e.id),r["\u0275\u0275attribute"]("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),r["\u0275\u0275classProp"]("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:b,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(r["\u0275\u0275projectionDef"](),r["\u0275\u0275template"](0,g,1,2,"mat-pseudo-checkbox",0),r["\u0275\u0275elementStart"](1,"span",1),r["\u0275\u0275projection"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275element"](3,"div",2)),2&t&&(r["\u0275\u0275property"]("ngIf",e.multiple),r["\u0275\u0275advance"](3),r["\u0275\u0275property"]("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.u,Y,J],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function lt(t,e,n){if(n.length){let r=e.toArray(),i=n.toArray(),o=0;for(let e=0;e<t+1;e++)r[e].group&&r[e].group===i[o]&&o++;return o}return 0}function ut(t,e,n,r){const i=t*e;return i<n?i:i+e>n+r?Math.max(0,i-r+e):n}let ht=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[Q,a.c,Z]]}),t})();const dt=new r.InjectionToken("mat-label-global-options")},FQpF:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t,e=Number.POSITIVE_INFINITY,n){return e=(e||0)<1?Number.POSITIVE_INFINITY:e,r=>r.lift(new o(t,e,n))}class o{constructor(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}call(t,e){return e.subscribe(new s(t,this.project,this.concurrent,this.scheduler))}}class s extends r.b{constructor(t,e,n,r){super(t),this.project=e,this.concurrent=n,this.scheduler=r,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}static dispatch(t){const{subscriber:e,result:n,value:r,index:i}=t;e.subscribeToProjection(n,r,i)}_next(t){const e=this.destination;if(e.closed)return void this._complete();const n=this.index++;if(this.active<this.concurrent){e.next(t);try{const{project:e}=this,r=e(t,n);this.scheduler?this.destination.add(this.scheduler.schedule(s.dispatch,0,{subscriber:this,result:r,value:t,index:n})):this.subscribeToProjection(r,t,n)}catch(r){e.error(r)}}else this.buffer.push(t)}subscribeToProjection(t,e,n){this.active++,this.destination.add(Object(r.c)(t,new r.a(this)))}_complete(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this._next(t)}notifyComplete(){const t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()}}},FWf1:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("pshJ"),o=n("GiSu"),s=n("zB/H"),a=n("p//D"),c=n("n3uD"),l=n("MkmW"),u=function(t){function e(n,r,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.empty;break;case 1:if(!n){s.destination=o.empty;break}if("object"==typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,n,r,i)}return s}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.Subscription);e.Subscriber=u;var h=function(t){function e(e,n,r,s){var a,c=t.call(this)||this;c._parentSubscriber=e;var l=c;return i.isFunction(n)?a=n:n&&(a=n.next,r=n.error,s=n.complete,n!==o.empty&&(l=Object.create(n),i.isFunction(l.unsubscribe)&&c.add(l.unsubscribe.bind(l)),l.unsubscribe=c.unsubscribe.bind(c))),c._context=l,c._next=a,c._error=r,c._complete=s,c}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):l.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;l.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),c.config.useDeprecatedSynchronousErrorHandling)throw n;l.hostReportError(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return c.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(l.hostReportError(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u);e.SafeSubscriber=h},FYWq:function(t,e,n){"use strict";var r=n("FCKb");e.combineAll=function(t){return function(e){return e.lift(new r.CombineLatestOperator(t))}}},FYuM:function(t,e,n){var r=n("yNUO"),i=n("OBTA");t.exports=function(t,e){var n=r(t),o=Number(e)-(Math.floor(n.getMonth()/3)+1);return i(n,n.getMonth()+3*o)}},FZB8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("128B");function i(t){const e="function"==typeof t?(e,n)=>t(e,n)<0?e:n:(t,e)=>t<e?t:e;return Object(r.a)(e)}},Fa1C:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("wjEo");e.window=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new a(t),r=e.subscribe(n);return r.closed||n.add(o.innerSubscribe(this.windowBoundaries,new o.SimpleInnerSubscriber(n))),r},t}(),a=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new i.Subject,e.next(n.window),n}return r(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new i.Subject;e.next(n)},e}(o.SimpleOuterSubscriber)},Fh4B:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.distinct=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.keySelector,this.flushes))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add(i.innerSubscribe(r,new i.SimpleInnerSubscriber(o))),o}return r(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(r){return void n.error(r)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.SimpleOuterSubscriber);e.DistinctSubscriber=s},FiyT:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.SubjectSubscription=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n("zB/H").Subscription)},Fr4G:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return h}));var r=n("AytR"),i=n("2Vo4"),o=n("ywEm"),s=n("jgNO"),a=n("fXoL"),c=n("b6Qw"),l=n("sYmb"),u=function(t){return t[t.single=1]="single",t[t.double=2]="double",t}({});let h=(()=>{class t{constructor(t,e,n){this._cookieService=t,this._serverSideRenderingService=e,this._translateService=n,this.CLIENT=null,this.PORTAL=null,this.roles=[],this.portalTypes=[],this.statuses=[],this.trialPortalTime=new i.a(null),this.activatedUser=new i.a(null),this.isNewDesignEnabled=void 0,this.isOldDesignAllowed=!1}getRole(){var t;return null===(t=this.roles.filter(t=>{var e;return t.id===(null===(e=this.client)||void 0===e?void 0:e.portal_member.role_id)})[0])||void 0===t?void 0:t.name}getPortalId(){return this.client.portal.id}getRoleById(t){return this.roles.filter(e=>e.id===t)[0].name}getStatusById(t){return this.statuses.filter(e=>e.id===t)[0].name}getPortalType(){var t;return null===(t=this.portalTypes.filter(t=>{var e;return t.id===(null===(e=this.client)||void 0===e?void 0:e.portal.type_id)})[0])||void 0===t?void 0:t.name}getPortalInfo(){return this.fullPortal}getUserName(t,e,n,r=!1){let i="";if(e&&r&&(i=this._translateService.instant("COMMUNITY_PAGE.anonymous_account")),!e||!r)switch(n){case"first_and_last_name":i=(null==t?void 0:t.first_name)||(null==t?void 0:t.last_name)?(null==t?void 0:t.first_name)+" "+(null==t?void 0:t.last_name):this._translateService.instant("COMMON.community.community_member");break;case"only_first_name":i=(null==t?void 0:t.first_name)?null==t?void 0:t.first_name:this._translateService.instant("COMMON.community.community_member");break;case"custom_name":i=(null==t?void 0:t.nickname)?null==t?void 0:t.nickname:(null==t?void 0:t.first_name)||(null==t?void 0:t.last_name)?(null==t?void 0:t.first_name)+" "+(null==t?void 0:t.last_name):this._translateService.instant("COMMON.community.community_member")}return i}get client(){if(this._serverSideRenderingService.isBrowser)return this.CLIENT?this.CLIENT:localStorage.getItem("client")?JSON.parse(localStorage.getItem("client")):null}get portal(){if(this._serverSideRenderingService.isBrowser)return this.PORTAL?this.PORTAL:localStorage.getItem("client")?JSON.parse(localStorage.getItem("client")).portal:null}get getGdprAcceptation(){if(this._serverSideRenderingService.isBrowser)return JSON.parse(localStorage.getItem("gdpr_acceptation"))?JSON.parse(localStorage.getItem("gdpr_acceptation")):null}get token(){if(this._serverSideRenderingService.isBrowser){if(window.location.search.substr(1).length>0){let t=window.location.search.substr(1).split("=");if(t.length>0&&"hash"===t[0])return t[1].split("&")[0];if(t.length>0&&"hilfe"===t[0])return t[1].split("&")[0]}return this.CLIENT?this.CLIENT.token:localStorage.getItem("client")?JSON.parse(localStorage.getItem("client")).token:null}}get portal_member_id(){if(this._serverSideRenderingService.isBrowser)return this.CLIENT?this.CLIENT.portal_member.id:localStorage.getItem("client")?JSON.parse(localStorage.getItem("client")).portal_member.id:null}get portal_id(){if(this._serverSideRenderingService.isBrowser)return this.CLIENT?this.CLIENT.portal.id:localStorage.getItem("client")?JSON.parse(localStorage.getItem("client")).portal.id:null}get portal_lang_code(){if(this.client)return 1===this.client.portal.language_id?"en":2===this.client.portal.language_id?"de":3===this.client.portal.language_id?"sk":4===this.client.portal.language_id?"hu":5===this.client.portal.language_id?"mk":6===this.client.portal.language_id?"cz":void 0}getTrialPortalTime(){return this.trialPortalTime}setTrialPortalTime(t){this.trialPortalTime.next(t)}setClient(t,e=!0){this.CLIENT=t,e&&localStorage.setItem("client",JSON.stringify(t)),this.setCookie(t),this.setPortal(t.portal),s.a.setIsMobileApp()}setPortal(t){var e,n,r,i,o,s,a;this.fullPortal=t[0],this.PORTAL=0===(null===(e=t)||void 0===e?void 0:e.length)?null:t[0]?t[0]:t,void 0===(null===(n=this.PORTAL)||void 0===n?void 0:n.is_new_design_enabled)&&void 0===(null==t?void 0:t.is_new_design_enabled)||(this.isNewDesignEnabled=(null===(r=this.PORTAL)||void 0===r?void 0:r.is_new_design_enabled)?null===(i=this.PORTAL)||void 0===i?void 0:i.is_new_design_enabled:null==t?void 0:t.is_new_design_enabled),void 0===(null===(o=this.PORTAL)||void 0===o?void 0:o.is_old_design_supported)&&void 0===(null==t?void 0:t.is_old_design_supported)||(this.isOldDesignAllowed=(null===(s=this.PORTAL)||void 0===s?void 0:s.is_old_design_supported)?null===(a=this.PORTAL)||void 0===a?void 0:a.is_old_design_supported:null==t?void 0:t.is_old_design_supported)}setCookie(t){if("customer"===this.getRole()&&this.deleteCookie(),"content_creator"===this.getRole()){const e=new Date(Date.now()+864e5);r.a.production?(this._cookieService.set("abo_hash",t.token,e,"/","mentortools.com",!0),this._cookieService.set("abo_domain",""+t.portal.domain,e,"/","mentortools.com",!0)):(this._cookieService.set("abo_hash",t.token,e,"/","abobot.loc"),this._cookieService.set("abo_domain",t.portal.domain+".loc:4200",e,"/","abobot.loc"))}}setGdprAcceptation(t,e,n,r){this.gdprAcceptation={is_accept:t,accepted_at_epoch:e,is_marketing:n,is_statistics:r},localStorage.setItem("gdpr_acceptation",JSON.stringify(this.gdprAcceptation))}setRoles(t){this.roles=t}setStatuses(t){this.statuses=t}setPortalTypes(t){this.portalTypes=t}deleteClient(){"content_creator"===this.getRole()&&this.deleteCookie(),this.CLIENT=null,this._serverSideRenderingService.isBrowser&&(sessionStorage.removeItem("inactiveCCAlertWasClosed"),localStorage.removeItem("client"),localStorage.removeItem("openIntercom"),localStorage.removeItem("last_route"))}deleteCookie(){this._cookieService.deleteAll("/",r.a.production?"mentortools.com":"abobot.loc")}}return t.\u0275fac=function(e){return new(e||t)(a["\u0275\u0275inject"](c.a),a["\u0275\u0275inject"](o.a),a["\u0275\u0275inject"](l.e))},t.\u0275prov=a["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},FsO2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("fXoL");let i=(()=>{class t{isVimeoLink(t){return!!t&&-1!==t.indexOf("vimeo.com")}isYouTubeLink(t){return!!t&&-1!==t.indexOf("youtube.com")}getYouTubeThumbnail(t){return`https://img.youtube.com/vi/${t.split("/embed/")[1]}/mqdefault.jpg`}getVimeoThumbnail(t){return`https://vumbnail.com/${t.split("/video/")[1].split("?")[0]}.jpg`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},FtGj:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return g})),n.d(e,"i",(function(){return c})),n.d(e,"j",(function(){return a})),n.d(e,"k",(function(){return f})),n.d(e,"l",(function(){return s})),n.d(e,"m",(function(){return r})),n.d(e,"n",(function(){return d})),n.d(e,"o",(function(){return v})),n.d(e,"p",(function(){return m})),n.d(e,"q",(function(){return y}));const r=9,i=13,o=27,s=32,a=33,c=34,l=35,u=36,h=37,d=38,f=39,p=40,m=48,g=57,b=65,v=90;function y(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},"G6+r":function(t,e,n){var r=n("x84W");t.exports=function(t,e,n){var i=r(t,n),o=r(e,n);return i.getTime()===o.getTime()}},"GAJ/":function(t,e,n){"use strict";var r=n("Q1FS"),i=n("gTqA"),o=n("mbIT"),s=n("aJGj");e.onErrorResumeNext=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(0===e.length)return s.EMPTY;var a=e[0],c=e.slice(1);return 1===e.length&&o.isArray(a)?t.apply(void 0,a):new r.Observable((function(e){var n=function(){return e.add(t.apply(void 0,c).subscribe(e))};return i.from(a).subscribe({next:function(t){e.next(t)},error:n,complete:n})}))}},GJmQ:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e=!1){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.inclusive))}}class s extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}},GLf8:function(t,e,n){var r=n("crfB");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},GMZp:function(t,e,n){"use strict";e.isObject=function(t){return null!==t&&"object"==typeof t}},GU7r:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return h}));var r=n("8LU1"),i=n("fXoL"),o=n("HDdC"),s=n("XNiG"),a=n("Kj3r");let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(r.e)(t);return new o.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new s.b,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](c))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(c))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new i.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(r.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(r.f)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](l),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.NgZone))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[c]}),t})()},Gi4w:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){return n=>n.lift(new o(t,e,n))}class o{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg,this.source))}}class s extends r.a{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let 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)}_complete(){this.notifyComplete(!0)}}},GiSu:function(t,e,n){"use strict";var r=n("n3uD"),i=n("MkmW");e.empty={closed:!0,next:function(t){},error:function(t){if(r.config.useDeprecatedSynchronousErrorHandling)throw t;i.hostReportError(t)},complete:function(){}}},GoQk:function(t,e,n){var r=n("yNUO");t.exports=function(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return r(t)})),n=Math.min.apply(null,e);return new Date(n)}},Gqsl:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("XNiG"),i=n("zx2A");function o(t){return e=>e.lift(new s(t))}class s{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new a(t,this.notifier,e))}}class a extends i.b{constructor(t,e,n){super(t),this.notifier=e,this.source=n,this.sourceIsBeingSubscribedTo=!0}notifyNext(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)}notifyComplete(){if(!1===this.sourceIsBeingSubscribedTo)return super.complete()}complete(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return super.complete();this._unsubscribeAndRecycle(),this.notifications.next(void 0)}}_unsubscribe(){const{notifications:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}_unsubscribeAndRecycle(){const{_unsubscribe:t}=this;return this._unsubscribe=null,super._unsubscribeAndRecycle(),this._unsubscribe=t,this}subscribeToRetries(){let t;this.notifications=new r.b;try{const{notifier:e}=this;t=e(this.notifications)}catch(e){return super.complete()}this.retries=t,this.retriesSubscription=Object(i.c)(t,new i.a(this))}}},GroS:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("fXoL"),i=n("5eHb"),o=n("sYmb");let s=(()=>{class t{constructor(t,e){this._toastr=t,this._translate=e,this._translate.onLangChange.subscribe(()=>{this._translate.get("ALERTS").subscribe(t=>{this.alertMessages=t})})}showSuccess(t,e,n){let r;n&&(r=n),this._toastr.success(this.alertMessages.messages.success[t],this.alertMessages.entitys[e],r)}showError(t,e){this._toastr.error(this.alertMessages.messages.error[t],this.alertMessages.entitys[e])}showCustomError(t,e){this._toastr.error(t,this.alertMessages.entitys[e])}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](i.d),r["\u0275\u0275inject"](o.e))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},GvSz:function(t,e,n){"use strict";var r=n("+Zhm"),i=n("7K7o");e.publishReplay=function(t,e,n,o){n&&"function"!=typeof n&&(o=n);var s="function"==typeof n?n:void 0,a=new r.ReplaySubject(t,e,o);return function(t){return i.multicast((function(){return a}),s)(t)}}},GyhO:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("LRne"),i=n("0EUg");function o(...t){return Object(i.a)()(Object(r.a)(...t))}},H0e8:function(t,e,n){"use strict";var r=n("O+eH");e.animationFrameScheduler=new(n("QY7M").AnimationFrameScheduler)(r.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler},H2PQ:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.QueueScheduler=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(n("NTcF").AsyncScheduler)},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("8Qeq"),i=n("7o/Q"),o=n("2QA8"),s=n("gRHU"),a=n("kJWO"),c=n("mCNh"),l=n("2fFW");let u=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,a=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(s.a)}(t,e,n);if(a.add(r?r.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(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)}}forEach(t,e){return new(e=h(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[a.a](){return this}pipe(...t){return 0===t.length?this:Object(c.b)(t)(this)}toPromise(t){return new(t=h(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},HFgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("VfN6"),i=n("pLZG");const o={name:"custom",properties:{}},s={name:"business-classic",properties:{"--headline-font-family":"'Roboto Slab', serif","--subheadline-font-family":"'Roboto Slab', serif","--paragraph-font-family":"'Jaldi', sans-serif","--shadow-color":"rgba(52,152,219,0.2)","--link-font-color":"#3498db","--main-bg-color":"#F0F3F4","--headline-font-color":"#3498db","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"bold","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"bold","--paragraph-font-color":"#4A4A4A","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#3498db","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"bold","--top-banner-subheadline-font-color":"#333333","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"normal","--top-banner-paragraph-font-color":"#333333","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/business-classic/business-classic-background-header.jpg)","--top-banner-bg-color":"rgba(255,255,255,0.84)","--nav-bg-color":"#FFFFFF","--nav-font-color":"#3498db","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"bold","--card-bg-color":"#ffffff","--card-font-color":"#333333","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#4a4a4a","--additional-bg-color":"#3498db","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"bold","--btn-primary-main-color":"#3498db","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#7b7b7b","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#55efc4","--btn-success-additional-color":"#ffffff","--video-border":"#3498db","--badge-font-color":"#3498db","--badge-bg-color":"#ffffff","--footer-banner-img-url":"url(./assets/images/themes/business-classic/business-classic-background-footer.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/business-classic/business-classic-additional-img.jpg","--footer-banner-bg-color":"rgba(255, 255, 255, 0)","--footer-headline-font-color":"#4A4A4A","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"bold","--footer-paragraph-font-color":"#4A4A4A","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"bold","--img-logo-login":"./assets/images/themes/business-classic/business-classic-logo-blue.png","--img-logo-dashboard":"./assets/images/themes/business-classic/business-classic-logo-blue.png","--img-favicon":"./assets/images/themes/business-classic/business-classic-favicon.webp","--img-login-desktop":"./assets/images/themes/business-classic/business-classic-login-bg.jpg","--img-login-mobile":"./assets/images/themes/business-classic/business-classic-login-mobile.jpg","--img-user-avatar":"./assets/images/themes/business-classic/business-classic-user-avatar.jpg","--img-shoutout-box":"./assets/images/themes/business-classic/calm-relaxing-shoutout.png","--img-cml-wrp":"./assets/images/themes/business-classic/business-classic-cml.jpg"}},a=[{name:"main",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"rgba(168, 175, 196, 0.50)","--link-font-color":"#387efc","--main-bg-color":"#F0F3F4","--headline-font-color":"#4A4A4A","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#4A4A4A","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#4A4A4A","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#4A4A4A","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#4A4A4A","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"","--top-banner-bg-color":"#F0F3F4","--nav-bg-color":"#FFFFFF","--nav-font-color":"#4A4A4A","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"700","--card-bg-color":"#FFFFFF","--card-font-color":"#4A4A4A","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#1863EA","--additional-bg-color":"#1863EA","--snippet-border":"1px solid #dee2e6","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"500","--btn-primary-main-color":"#1863EA","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#4A4A4A","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#1863EA","--badge-font-color":"#4A4A4A","--badge-bg-color":"#FFFFFF","--footer-banner-img-url":"","--footer-banner-additional-img-url":"","--footer-banner-bg-color":"#4A4A4A","--footer-headline-font-color":"#4A4A4A","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#4A4A4A","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"dark-mint",properties:{"--headline-font-family":"'Heebo', sans-serif","--subheadline-font-family":"'Heebo', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"rgba(0, 0, 0, 0.25)","--link-font-color":"#55e2d8","--main-bg-color":"#212529","--headline-font-color":"#55e2d8","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#FFFFFF","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#FFFFFF","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#FFFFFF","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#55e2d8","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#FFFFFF","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"","--top-banner-bg-color":"","--nav-bg-color":"#3d4146","--nav-font-color":"#ffffff","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"normal","--card-bg-color":"#3d4146","--card-font-color":"#dedede","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#55e2d8","--additional-bg-color":"#45A29E","--snippet-border":"1px solid #535558","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"normal","--btn-primary-main-color":"#43bcb8","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#b8b8b8","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#45A29E","--badge-font-color":"#ffffff","--badge-bg-color":"#45A29E","--footer-banner-img-url":"","--footer-banner-additional-img-url":"","--footer-banner-bg-color":"","--footer-headline-font-color":"#55e2d8","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"light-red",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"#756060c4","--link-font-color":"#e74c3c","--main-bg-color":"#E3E3E3","--headline-font-color":"#e74c3c","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#4A4A4A","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#4A4A4A","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#4A4A4A","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#4A4A4A","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"","--top-banner-bg-color":"","--nav-bg-color":"#F6F6F8","--nav-font-color":"#4A4A4A","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"normal","--card-bg-color":"#F6F6F8","--card-font-color":"#4A4A4A","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#6e7379","--additional-bg-color":"#e74c3c","--snippet-border":"","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"normal","--btn-primary-main-color":"#e74c3c","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#5a5a5a","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#C60021","--badge-font-color":"#ffffff","--badge-bg-color":"#e74c3c","--footer-banner-img-url":"","--footer-banner-additional-img-url":"","--footer-banner-bg-color":"","--footer-headline-font-color":"#e74c3c","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#4A4A4A","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"progressive-light",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Serif', sans-serif","--shadow-color":"#727479c4","--link-font-color":"#2196f3","--main-bg-color":"#ffffff","--headline-font-color":"#173052","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#091a31","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#4A4A4A","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#173052","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#091a31","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"","--top-banner-bg-color":"","--nav-bg-color":"#f9f9f9","--nav-font-color":"#4A4A4A","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"normal","--card-bg-color":"#f9f9f9","--card-font-color":"#4A4A4A","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#2196f3","--additional-bg-color":"#2196f3","--snippet-border":"","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"normal","--btn-primary-main-color":"#2196f3","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#5a5a5a","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#2196f3","--badge-font-color":"#ffffff","--badge-bg-color":"#2196f3","--footer-banner-img-url":"","--footer-banner-additional-img-url":"","--footer-banner-bg-color":"","--footer-headline-font-color":"#173052","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#091a31","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"light",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"rgba(2 34 9 0.24)","--link-font-color":"#1863EA","--main-bg-color":"#ffffff","--headline-font-color":"#4A4A4A","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#4A4A4A","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#4A4A4A","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#4A4A4A","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#4A4A4A","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"","--top-banner-bg-color":"#ffffff","--nav-bg-color":"#F0F3F4","--nav-font-color":"#4A4A4A","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"700","--card-bg-color":"#F0F3F4","--card-font-color":"#4A4A4A","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#1863EA","--additional-bg-color":"#28ac29","--snippet-border":"","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"500","--btn-primary-main-color":"#28ac29","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#5a5a5a","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#28ac29","--badge-font-color":"#4A4A4A","--badge-bg-color":"#F0F3F4","--footer-banner-img-url":"","--footer-banner-additional-img-url":"","--footer-banner-bg-color":"#4A4A4A","--footer-headline-font-color":"#4A4A4A","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#4A4A4A","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-jakob",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"rgba(84, 98, 140, 0.5)","--link-font-color":"#8a6700","--main-bg-color":"#F5F7F9","--headline-font-color":"#ecc00b","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#ecc00b","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#05368E","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#05368E","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#05368E","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#05368E","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-jakob-header.jpg)","--top-banner-bg-color":"#b3b3b3","--nav-bg-color":"#05368E","--nav-font-color":"#FFFFFF","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"700","--card-bg-color":"#05368E","--card-font-color":"#FFFFFF","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#FFCC00","--additional-bg-color":"#FFCC00","--snippet-border":"1px solid #082b6f","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#FFCC00","--btn-primary-additional-color":"#007bff","--btn-secondary-main-color":"#afafaf","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#FFCC00","--badge-font-color":"#ffffff","--badge-bg-color":"#05368E","--footer-banner-img-url":"url(./assets/images/themes/vip_yellow_blue_footer.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-jakob-prefooter-img.png","--footer-banner-bg-color":"#969696","--footer-headline-font-color":"#05368e","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-david",properties:{"--headline-font-family":"'Bebas Neue', display","--subheadline-font-family":"'Bebas Neue', display","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"rgba(29, 23, 13, 0.55)","--link-font-color":"#a58e66","--main-bg-color":"#F5F7F9","--headline-font-color":"#d8af64","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"500","--subheadline-font-color":"#d8af64","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"500","--paragraph-font-color":"#000000","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#FFFFFF","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"500","--top-banner-subheadline-font-color":"#FFFFFF","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"500","--top-banner-paragraph-font-color":"#FFFFFF","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-david-header.jpg)","--top-banner-bg-color":"#00000000","--nav-bg-color":"#212529","--nav-font-color":"#ffffff","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"normal","--card-bg-color":"#212529","--card-font-color":"#d8af64","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#ffffff","--additional-bg-color":"#d8af64","--snippet-border":"1px solid #d8af641f","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"normal","--btn-primary-main-color":"#d8af64","--btn-primary-additional-color":"#291f0d","--btn-secondary-main-color":"#afafaf","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#d8af64","--badge-font-color":"#000000","--badge-bg-color":"#d8af64","--footer-banner-img-url":"url(./assets/images/themes/bg-vip-prefooter-david.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-david-prefooter-img.png","--footer-banner-bg-color":"#969696","--footer-headline-font-color":"#d8af64","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-fitness",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"#00071d6b","--link-font-color":"#00378F","--main-bg-color":"#D6E6FF","--headline-font-color":"#001029","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#ffffff","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#001029","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#FFFFFF","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#FFFFFF","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#ffffff","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-fitness-header.jpg)","--top-banner-bg-color":"#00378fbf","--nav-bg-color":"#3381FF","--nav-font-color":"#ffffff","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"700","--card-bg-color":"#3381FF","--card-font-color":"#FFFFFF","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#001029","--additional-bg-color":"#00378F","--snippet-border":"1px solid #b1b8dc","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"normal","--btn-primary-main-color":"#00378F","--btn-primary-additional-color":"#FFFFFF","--btn-secondary-main-color":"#cbcbcb","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#00378F","--badge-font-color":"#FFFFFF","--badge-bg-color":"#1a378f","--footer-banner-img-url":"url(./assets/images/themes/bg-vip-prefooter-fitness.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-fitness-prefooter-img.png","--footer-banner-bg-color":"#10219a57","--footer-headline-font-color":"#ffde5c","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-baier",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"#9e7e835c","--link-font-color":"#096e72","--main-bg-color":"#F3F1EB","--headline-font-color":"#212529","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#212529","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#000000","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#f2dfe2","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#f2dfe2","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#f2dfe2","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-baier-header.jpg)","--top-banner-bg-color":"#352c2d","--nav-bg-color":"#f2dfe2","--nav-font-color":"#03989e","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"700","--card-bg-color":"#f2dfe2","--card-font-color":"#000000","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#22999e","--additional-bg-color":"#03989e","--snippet-border":"1px solid #eac3c9","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"normal","--btn-primary-main-color":"#03989e","--btn-primary-additional-color":"#FFFFFF","--btn-secondary-main-color":"#4f4f4f","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#03989e","--badge-font-color":"#212529","--badge-bg-color":"#f2dfe2","--footer-banner-img-url":"url(./assets/images/themes/bg-vip-prefooter-baier.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-baier-prefooter-img.png","--footer-banner-bg-color":"#daccd2","--footer-headline-font-color":"#212529","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#03989e","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-energy",properties:{"--headline-font-family":"'Lora,Georgia,Times New Roman', serif","--subheadline-font-family":"'Raleway', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"#171717ba","--link-font-color":"#987323","--main-bg-color":"#dee6e8","--headline-font-color":"#E5BF6C","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#987322","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#000000","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#ffffff","--top-banner-headline-font-style":"italic","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#E5BF6C","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#ffffff","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-baier-header.jpg)","--top-banner-bg-color":"#040404bf","--nav-bg-color":"#000000","--nav-font-color":"#ffffff","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"700","--card-bg-color":"#000000","--card-font-color":"#E5BF6C","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#ffffff","--additional-bg-color":"#E5BF6C","--snippet-border":"1px solid #382e1c","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#E5BF6C","--btn-primary-additional-color":"#000000","--btn-secondary-main-color":"#939393","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#d8af64","--badge-font-color":"#987322","--badge-bg-color":"#000000","--footer-banner-img-url":"url(./assets/images/themes/bg-vip-prefooter-baier.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-baier-prefooter-img.png","--footer-banner-bg-color":"#0c0c0c","--footer-headline-font-color":"#E5BF6C","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-jiufit",properties:{"--headline-font-family":"'Oswald', sans-serif","--subheadline-font-family":"'Oswald', sans-serif","--paragraph-font-family":"'Old Standard TT', sans-serif","--shadow-color":"#1a203191","--link-font-color":"#ff5e00","--main-bg-color":"#fff9f2","--headline-font-color":"#ff5e00","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#ffffff","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#000000","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#ffffff","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#ffffff","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#ffffff","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-jiufit-header.jpg)","--top-banner-bg-color":"#040404bf","--nav-bg-color":"#000080","--nav-font-color":"#ffffff","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"700","--card-bg-color":"#000080","--card-font-color":"#FFFFFF","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#ff5e00","--additional-bg-color":"#ff5e00","--snippet-border":"1px solid #35328a","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#ff5e00","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#b9b9b9","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#ff5e00","--badge-font-color":"#ffffff","--badge-bg-color":"#000080","--footer-banner-img-url":"linear-gradient(134deg,navy,#ff7d00,navy)","--footer-banner-additional-img-url":"./assets/images/themes/vip-jiufit-prefooter-img.png","--footer-banner-bg-color":"","--footer-headline-font-color":"#ffffff","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-dietrich",properties:{"--headline-font-family":"'Oswald', sans-serif","--subheadline-font-family":"'Oswald', sans-serif","--paragraph-font-family":"'Old Standard TT', sans-serif","--shadow-color":"#2b325445","--link-font-color":"#d5031c","--main-bg-color":"#f2f2f2","--headline-font-color":"#d5031c","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"700","--subheadline-font-color":"#454545","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"700","--paragraph-font-color":"#454545","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#454545","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"700","--top-banner-subheadline-font-color":"#454545","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"700","--top-banner-paragraph-font-color":"#454545","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-dietrich-header.jpg)","--top-banner-bg-color":"#ffffffd6","--nav-bg-color":"#ffffff","--nav-font-color":"#252525","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"700","--card-bg-color":"#ffffff","--card-font-color":"#666666","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#d5031c","--additional-bg-color":"#d5031c","--snippet-border":"1px solid #f9dee1","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#d5031c","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#757575","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#d5031c","--badge-font-color":"#454545","--badge-bg-color":"#ffffff","--footer-banner-img-url":"","--footer-banner-additional-img-url":"./assets/images/themes/vip-dietrich-prefooter-img.png","--footer-banner-bg-color":"#0e0e0e","--footer-headline-font-color":"#919191","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#454545","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-kientzl",properties:{"--headline-font-family":"'Oswald', sans-serif","--subheadline-font-family":"'Oswald', sans-serif","--paragraph-font-family":"'Old Standard TT', sans-serif","--shadow-color":"#2b325445","--link-font-color":"#000000","--main-bg-color":"#ffffff","--headline-font-color":"#7f6c4c","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"100","--subheadline-font-color":"#7f6c4c","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"500","--paragraph-font-color":"#7f6c4c","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#43351e","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"100","--top-banner-subheadline-font-color":"#43351e","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"100","--top-banner-paragraph-font-color":"#000000","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-kientzl-header.jpg)","--top-banner-bg-color":"rgb(226 204 175)","--nav-bg-color":"#ccac7a","--nav-font-color":"#464544","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"400","--card-bg-color":"#ffffff","--card-font-color":"#666666","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#7f6c4c","--additional-bg-color":"#E5BF6C","--snippet-border":"1px solid #E5BF6C","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#7f6c4c","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#919191","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#7f6c4c","--badge-font-color":"#454545","--badge-bg-color":"#ffffff","--footer-banner-img-url":"","--footer-banner-additional-img-url":"./assets/images/themes/vip-kientzl-prefooter-img.png","--footer-banner-bg-color":"#AB9978","--footer-headline-font-color":"#ffffff","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"normal","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-kogler",properties:{"--headline-font-family":"'Oswald', sans-serif","--subheadline-font-family":"'Oswald', sans-serif","--paragraph-font-family":"'Old Standard TT', sans-serif","--shadow-color":"#5c49177d","--link-font-color":"#000000","--main-bg-color":"#ffffff","--headline-font-color":"#1d1d1d","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"600","--subheadline-font-color":"#1d1d1d","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"600","--paragraph-font-color":"#000000","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#D7AE40","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"600","--top-banner-subheadline-font-color":"#ffffff","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"600","--top-banner-paragraph-font-color":"#ffffff","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-kogler-header.jpg)","--top-banner-bg-color":"#1C1C1C","--nav-bg-color":"#D7AE40","--nav-font-color":"#464544","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"400","--card-bg-color":"#f0f0f0","--card-font-color":"#1C1C1C","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#D7AE40","--additional-bg-color":"#E5BF6C","--snippet-border":"1px solid #1C1C1C","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#1C1C1C","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#636363","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#1C1C1C","--badge-font-color":"#454545","--badge-bg-color":"#ffffff","--footer-banner-img-url":"url(./assets/images/themes/bg-vip-prefooter-kogler.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-kogler-prefooter-img.png","--footer-banner-bg-color":"#272727","--footer-headline-font-color":"#ffffff","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"normal","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-kogler-kurse",properties:{"--headline-font-family":"'Oswald', sans-serif","--subheadline-font-family":"'Oswald', sans-serif","--paragraph-font-family":"'Old Standard TT', sans-serif","--shadow-color":"#43496f73","--link-font-color":"#000000","--main-bg-color":"#ffffff","--headline-font-color":"#123462","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"600","--subheadline-font-color":"#123462","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"600","--paragraph-font-color":"#123462","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#123462","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"600","--top-banner-subheadline-font-color":"#123462","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"600","--top-banner-paragraph-font-color":"#123462","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-kogler-header.jpg)","--top-banner-bg-color":"#f0f0f0","--nav-bg-color":"#D7AE40","--nav-font-color":"#464544","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"400","--card-bg-color":"#f0f0f0","--card-font-color":"#123462","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#214c85","--additional-bg-color":"#E5BF6C","--snippet-border":"1px solid #123462","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#123462","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#515151","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#123462","--badge-font-color":"#454545","--badge-bg-color":"#ffffff","--footer-banner-img-url":"url(./assets/images/themes/bg-vip-prefooter-kogler.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-kogler-prefooter-img.png","--footer-banner-bg-color":"#033e8e","--footer-headline-font-color":"#ffffff","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"normal","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-lobermeyer",properties:{"--headline-font-family":"'Oswald', sans-serif","--subheadline-font-family":"'Oswald', sans-serif","--paragraph-font-family":"'Old Standard TT', sans-serif","--shadow-color":"#43496f73","--link-font-color":"#123462","--main-bg-color":"#ffffff","--headline-font-color":"#123462","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"600","--subheadline-font-color":"#123462","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"600","--paragraph-font-color":"#123462","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#ffffff","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"600","--top-banner-subheadline-font-color":"#ffffff","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"600","--top-banner-paragraph-font-color":"#ffffff","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-lobermeyer-header.jpg)","--top-banner-bg-color":"#0e275ec9","--nav-bg-color":"#ed5101","--nav-font-color":"#0e265e","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"400","--card-bg-color":"#ffffff","--card-font-color":"#0e265e","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#ed5101","--additional-bg-color":"#ed5101","--snippet-border":"1px solid #ed5101","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#0e265e","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#515151","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#0e265e","--badge-font-color":"#454545","--badge-bg-color":"#ffffff","--footer-banner-img-url":"url(./assets/images/themes/bg-vip-prefooter-lobermeyer.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-lobermeyer-prefooter-img.png","--footer-banner-bg-color":"#071025","--footer-headline-font-color":"#ffffff","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"normal","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},{name:"vip-daniela",properties:{"--headline-font-family":"'Oswald', sans-serif","--subheadline-font-family":"'Oswald', sans-serif","--paragraph-font-family":"'Old Standard TT', sans-serif","--shadow-color":"#2b325445","--link-font-color":"#972983","--main-bg-color":"#fffbfe","--headline-font-color":"#333333","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"300","--subheadline-font-color":"#333333","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"500","--paragraph-font-color":"#333333","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"500","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#454545","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"300","--top-banner-subheadline-font-color":"#454545","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"300","--top-banner-paragraph-font-color":"#454545","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/vip-daniela-header.jpg)","--top-banner-bg-color":"#ffffffd6","--nav-bg-color":"#ffffff","--nav-font-color":"#454545","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"500","--card-bg-color":"#ffffff","--card-font-color":"#454545","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#972983","--additional-bg-color":"#25a63f","--snippet-border":"1px solid #ffe0f9","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"700","--btn-primary-main-color":"#972983","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#6e6d6d","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#972983","--badge-font-color":"#454545","--badge-bg-color":"#ffffff","--footer-banner-img-url":"url(./assets/images/themes/bg-vip-prefooter-daniela.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/vip-daniela-prefooter-img.png","--footer-banner-bg-color":"#ffffffc7","--footer-headline-font-color":"#919191","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"700","--footer-paragraph-font-color":"#454545","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal"}},s,{name:"business-elegant",properties:{"--headline-font-family":"'PT Sans', serif","--subheadline-font-family":"'PT Sans', serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"rgba(168,175, 196, 0.5)","--link-font-color":"#000000","--main-bg-color":"#F0F3F4","--headline-font-color":"#d6a500","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"bold","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"bold","--paragraph-font-color":"#4A4A4A","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#d6a500","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"bold","--top-banner-subheadline-font-color":"#4A4A4A","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"bold","--top-banner-paragraph-font-color":"#4A4A4A","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/business-elegant/business-elegant-background-header.jpg)","--top-banner-bg-color":"rgba(255,255,255,0.76)","--nav-bg-color":"#1c2120","--nav-font-color":"#d6a500","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"bold","--card-bg-color":"#ffffff","--card-font-color":"#4A4A4A","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#d6a500","--additional-bg-color":"#d6a500","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"bold","--btn-primary-main-color":"#d6a500","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#4A4A4A","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#000000","--badge-font-color":"#4A4A4A","--badge-bg-color":"#ffffff","--footer-banner-img-url":"url(./assets/images/themes/business-elegant/business-elegant-footer-background.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/business-elegant/business-elegant-footer-image.png","--footer-banner-bg-color":"rgba(255,255,255,0.79)","--footer-headline-font-color":"#d6a500","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"bold","--footer-paragraph-font-color":"#4A4A4A","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal","--img-logo-login":"./assets/images/themes/business-elegant/business-elegant-logo-yellow.png","--img-logo-dashboard":"./assets/images/themes/business-elegant/business-elegant-logo-yellow.png","--img-favicon":"./assets/images/themes/calm-relaxing/calm-relaxing-favicon.webp","--img-login-desktop":"./assets/images/themes/business-elegant/business-elegant-login.jpg","--img-login-mobile":"./assets/images/themes/business-elegant/business-elegant-login-mobile.jpg","--img-user-avatar":"./assets/images/themes/business-elegant/business-elegant-user-avatar.png","--img-shoutout-box":"./assets/images/themes/business-elegant/calm-relaxing-shoutout.png","--img-cml-wrp":"./assets/images/themes/business-elegant/business-elegant-cml.jpg"}},{name:"nature-energy",properties:{"--headline-font-family":"'Quicksand', sans-serif","--subheadline-font-family":"'Quicksand', sans-serif","--paragraph-font-family":"'Quicksand', sans-serif","--shadow-color":"rgba(104,104,104,0.44)","--link-font-color":"#27ae60","--main-bg-color":"#e8e8e8","--headline-font-color":"#27ae60","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"bold","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"bold","--paragraph-font-color":"#333333","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#27ae60","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"bold","--top-banner-subheadline-font-color":"#27ae60","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"bold","--top-banner-paragraph-font-color":"#1e1e1e","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/nature-energy/nature-background-header.jpg)","--top-banner-bg-color":"rgba(236,255,227,0.65)","--nav-bg-color":"#2ecc71","--nav-font-color":"#ffffff","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"bold","--card-bg-color":"#ffffff","--card-font-color":"#1e1e1e","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#27ae60","--additional-bg-color":"#27ae60","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"bold","--btn-primary-main-color":"#2ecc71","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#2ecc71","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#e0fcec","--btn-success-additional-color":"#2ecc71","--video-border":"#2ecc71","--badge-font-color":"#4A4A4A","--badge-bg-color":"#ffffff","--footer-banner-img-url":"url(./assets/images/themes/nature-energy/nature-footer-bg.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/nature-energy/nature-footer.png","--footer-banner-bg-color":"rgba(236,255,227,0.65)","--footer-headline-font-color":"#4A4A4A","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"bold","--footer-paragraph-font-color":"#4A4A4A","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"bold","--img-logo-login":"./assets/images/themes/nature-energy/nature-img-logo-green.png","--img-logo-dashboard":"./assets/images/themes/nature-energy/nature-img-logo-white.png","--img-favicon":"./assets/images/themes/nature-energy/nature-login-img.jpg","--img-login-desktop":"./assets/images/themes/nature-energy/nature-energy-login.jpg","--img-login-mobile":"../assets/images/themes/nature-energy/nature-login-img.jpg","--img-user-avatar":"./assets/images/themes/nature-energy/nature-login-img.jpg","--img-shoutout-box":"./assets/images/themes/nature-energy/nature-shoutout.png","--img-cml-wrp":"./assets/images/themes/nature-energy/nature-footer-bg.jpg"}},{name:"calm-relaxing",properties:{"--headline-font-family":"'Dosis', sans-serif","--subheadline-font-family":"'Dosis', sans-serif","--paragraph-font-family":"'Jaldi', sans-serif","--shadow-color":"rgba(255,255,255,0)","--link-font-color":"#000000","--main-bg-color":"#fffbed","--headline-font-color":"#936d27","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"bold","--subheadline-font-color":"#936d27","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"bold","--paragraph-font-color":"#936d27","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#936d27","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"bold","--top-banner-subheadline-font-color":"#936d27","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"normal","--top-banner-paragraph-font-color":"#936d27","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/calm-relaxing/calm-relaxing-background-header.jpeg)","--top-banner-bg-color":"#ede7d1","--nav-bg-color":"#ffeaa7","--nav-font-color":"#936d27","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"bold","--card-bg-color":"#ffeaa7","--card-font-color":"#4A4A4A","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#936d27","--additional-bg-color":"#e49e1d","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"bold","--btn-primary-main-color":"#fdcb6e","--btn-primary-additional-color":"#936d27","--btn-secondary-main-color":"#936d27","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"rgba(147,109,39,0)","--btn-success-additional-color":"#2ecc71","--video-border":"#936d27","--badge-font-color":"#ffffff","--badge-bg-color":"#e49e1d","--footer-banner-img-url":"url(./assets/images/themes/calm-relaxing/calm-relaxing-footer-background.jpeg)","--footer-banner-additional-img-url":"./assets/images/themes/calm-relaxing/calm-relaxing-footer-additional-img.jpg","--footer-banner-bg-color":"#fff5d5","--footer-headline-font-color":"#936d27","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"bold","--footer-paragraph-font-color":"#936d27","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal","--img-logo-login":"./assets/images/themes/calm-relaxing/calm-relaxing-logo.png","--img-logo-dashboard":"./assets/images/themes/calm-relaxing/calm-relaxing-logo.png","--img-favicon":"./assets/images/themes/calm-relaxing/calm-relaxing-favicon.webp","--img-login-desktop":"./assets/images/themes/calm-relaxing/calm-relaxing-login-bg.jpg","--img-login-mobile":"./assets/images/themes/calm-relaxing/calm-relaxing-login-mobile.webp","--img-user-avatar":"./assets/images/themes/calm-relaxing/calm-relaxing-user-avatar.png","--img-shoutout-box":"./assets/images/themes/calm-relaxing/calm-relaxing-shoutout.png","--img-cml-wrp":"./assets/images/themes/calm-relaxing/calm-relaxing-cml.jpg"}},{name:"calm-relaxing-2",properties:{"--headline-font-family":"'Quicksand', serif","--subheadline-font-family":"'Quicksand', serif","--paragraph-font-family":"'Montserrat', sans-serif","--shadow-color":"rgba(168,175, 196, 0.5)","--link-font-color":"#387efc","--main-bg-color":"#f6ffff","--headline-font-color":"#0b7575","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"bold","--subheadline-font-color":"#00cec9","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"bold","--paragraph-font-color":"#0b7575","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#0b7575","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"bold","--top-banner-subheadline-font-color":"#000000","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"normal","--top-banner-paragraph-font-color":"#000000","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/themes/calm-relaxing-2/calm-relaxing-2-header-background.jpg)","--top-banner-bg-color":"rgba(218,241,241,0.94)","--nav-bg-color":"#0b7575","--nav-font-color":"#ffffff","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"normal","--card-bg-color":"#ffffff","--card-font-color":"#00cec9","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"bold","--additional-color":"#00cec9","--additional-bg-color":"#81ecec","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"normal","--btn-primary-main-color":"#81ecec","--btn-primary-additional-color":"#0b7575","--btn-secondary-main-color":"#0b7575","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"rgba(255,255,255,0)","--btn-success-additional-color":"#00b894","--video-border":"#81ecec","--badge-font-color":"#00cec9","--badge-bg-color":"#FFFFFF","--footer-banner-img-url":"url(./assets/images/themes/calm-relaxing-2/calm-relaxing-2-footer-background.jpeg)","--footer-banner-additional-img-url":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-footer.png","--footer-banner-bg-color":"#81ecec","--footer-headline-font-color":"#00cec9","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"bold","--footer-paragraph-font-color":"#000000","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal","--img-logo-login":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-logo-white.png","--img-logo-dashboard":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-logo-white.png","--img-favicon":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-favicon.webp","--img-login-desktop":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-login.webp","--img-login-mobile":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-login-mobile.webp","--img-user-avatar":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-avatar.png","--img-shoutout-box":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-shoutout.png","--img-cml-wrp":"./assets/images/themes/calm-relaxing-2/calm-relaxing-2-cml.jpg"}},{name:"high-energy",properties:{"--headline-font-family":"'Crete Round', serif","--subheadline-font-family":"'Crete Round', serif","--paragraph-font-family":"'Open Sans', sans-serif","--shadow-color":"rgba(168,175, 196, 0.5)","--link-font-color":"#000000","--main-bg-color":"#F0F3F4","--headline-font-color":"#e74c3c","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"normal","--subheadline-font-color":"#ff1616","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"normal","--paragraph-font-color":"#4A4A4A","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"auto","--top-banner-headline-font-color":"#000000","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"bold","--top-banner-subheadline-font-color":"#ff1616","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"normal","--top-banner-paragraph-font-color":"#000000","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"bold","--top-banner-img-url":"url(./assets/images/themes/high-energy/high-energy-background-header.jpg)","--top-banner-bg-color":"rgba(255,255,255,0.66)","--nav-bg-color":"#FFFFFF","--nav-font-color":"#ff1616","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"bold","--card-bg-color":"#ffffff","--card-font-color":"#ff1616","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#ff1616","--additional-bg-color":"#ff1616","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"bold","--btn-primary-main-color":"#ff1616","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#ff1616","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#2ecc71","--btn-success-additional-color":"#ffffff","--video-border":"#ff1616","--badge-font-color":"#ffffff","--badge-bg-color":"#ff1616","--footer-banner-img-url":"url(./assets/images/themes/high-energy/high-energy-background-footer.jpg)","--footer-banner-additional-img-url":"./assets/images/themes/high-energy/high-energy-footer-img.jpg","--footer-banner-bg-color":"rgba(228,201,198,0.05)","--footer-headline-font-color":"#ffffff","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"bold","--footer-paragraph-font-color":"#ffffff","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal","--img-logo-login":"./assets/images/themes/high-energy/high-energy-logo-red.png","--img-logo-dashboard":"./assets/images/themes/high-energy/high-energy-logo-big-red.webp","--img-favicon":"./assets/images/themes/high-energy/high-energy-favicon.png","--img-login-desktop":"./assets/images/themes/high-energy/high-energy-login-bg.png","--img-login-mobile":"./assets/images/themes/high-energy/high-energy-login-mobile.webp","--img-user-avatar":"./assets/images/themes/high-energy/high-energy-user-avatar.png","--img-shoutout-box":"./assets/images/themes/high-energy/high-energy-shoutout.webp","--img-cml-wrp":"./assets/images/themes/high-energy/high-energy-cml.jpg"}}];var c=n("24nb"),l=n("mo97"),u=n("yiUc"),h=n("fXoL"),d=n("sYmb");let f=(()=>{let t=class{constructor(t,e,n,r){this._translateService=t,this._entityService=e,this._fileManagerService=n,this._settingsService=r,this._active=s,this._designTemplatesMap={},this._designTemplateTypesMap={},this._currentTheme=Object.assign({},{name:"default-theme",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"rgba(168,175, 196, 0.50)","--link-font-color":"#387efc","--main-bg-color":"#F0F3F4","--headline-font-color":"#4A4A4A","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"bold","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"bold","--paragraph-font-color":"#4A4A4A","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"360px","--top-banner-headline-font-color":"#4A4A4A","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"bold","--top-banner-subheadline-font-color":"#4A4A4A","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"bold","--top-banner-paragraph-font-color":"#4A4A4A","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/custom-design/header-banner.png)","--top-banner-img-id":"","--top-banner-bg-color":"rgba(255, 255, 255, 0)","--nav-bg-color":"#FFFFFF","--nav-font-color":"#4A4A4A","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"bold","--card-bg-color":"#FFFFFF","--card-font-color":"#4A4A4A","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#1863EA","--additional-bg-color":"#1863EA","--snippet-border":"","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"bold","--btn-primary-main-color":"#1863EA","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#4A4A4A","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#1863EA","--badge-font-color":"#4A4A4A","--badge-bg-color":"#FFFFFF","--footer-display":!0,"--footer-display-image":!0,"--footer-banner-img-url":"url(./assets/images/custom-design/footer-banner.png)","--footer-banner-img-id":"","--footer-banner-additional-img-url":"./assets/images/custom-design/additional-footer-img.png","--footer-banner-additional-img-id":"","--footer-banner-bg-color":"rgba(255, 255, 255, 0)","--footer-headline-font-color":"#4A4A4A","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"bold","--footer-paragraph-font-color":"#4A4A4A","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal","--footer-headline-content":"","--footer-paragraph-content":"","--img-logo-login":"","--img-logo-dashboard":"","--img-favicon":"","--img-login-desktop":"","--img-login-mobile":"","--img-user-avatar":"","--img-shoutout-box":"","--img-cml-wrp":""}})}activateTheme(t,e){let n=JSON.parse(JSON.stringify(s));if("custom"===t)n.name="custom",n.properties=Object.assign(n.properties,e);else for(let r=0;r<a.length;r++)if(a[r].name===t){n=a[r];break}this.setActiveTheme(n)}setActiveTheme(t){this._active=t,Object.keys(this._active.properties).forEach(t=>{document.documentElement.style.setProperty(t,this._active.properties[t])})}modifyCurrentTheme(t,e){this._currentTheme.properties["--footer-headline-content"]=t,this._currentTheme.properties["--footer-paragraph-content"]=e}set designTemplatesMap(t){this._designTemplatesMap=t}set designTemplateTypesMap(t){this._designTemplateTypesMap=t}get designTemplatesMap(){return this._designTemplatesMap}get designTemplateTypesMap(){return this._designTemplateTypesMap}get themeMap(){return this._active}get defaultTheme(){return this._currentTheme=Object.assign({},{name:"default-theme",properties:{"--headline-font-family":"'PT Sans', sans-serif","--subheadline-font-family":"'PT Sans', sans-serif","--paragraph-font-family":"'PT Sans', sans-serif","--shadow-color":"rgba(168,175, 196, 0.50)","--link-font-color":"#387efc","--main-bg-color":"#F0F3F4","--headline-font-color":"#4A4A4A","--headline-font-style":"normal","--headline-font-decoration":"none","--headline-font-weight":"bold","--subheadline-font-color":"#4A4A4A","--subheadline-font-style":"normal","--subheadline-font-decoration":"none","--subheadline-font-weight":"bold","--paragraph-font-color":"#4A4A4A","--paragraph-font-style":"normal","--paragraph-font-decoration":"none","--paragraph-font-weight":"normal","--top-banner-container-min-height":"360px","--top-banner-headline-font-color":"#4A4A4A","--top-banner-headline-font-style":"normal","--top-banner-headline-font-decoration":"none","--top-banner-headline-font-weight":"bold","--top-banner-subheadline-font-color":"#4A4A4A","--top-banner-subheadline-font-style":"normal","--top-banner-subheadline-font-decoration":"none","--top-banner-subheadline-font-weight":"bold","--top-banner-paragraph-font-color":"#4A4A4A","--top-banner-paragraph-font-style":"normal","--top-banner-paragraph-font-decoration":"none","--top-banner-paragraph-font-weight":"normal","--top-banner-img-url":"url(./assets/images/custom-design/header-banner.png)","--top-banner-img-id":"","--top-banner-bg-color":"rgba(255, 255, 255, 0)","--nav-bg-color":"#FFFFFF","--nav-font-color":"#4A4A4A","--nav-font-style":"normal","--nav-font-decoration":"none","--nav-font-weight":"bold","--card-bg-color":"#FFFFFF","--card-font-color":"#4A4A4A","--card-font-style":"normal","--card-font-decoration":"none","--card-font-weight":"normal","--additional-color":"#1863EA","--additional-bg-color":"#1863EA","--snippet-border":"","--btn-font-style":"normal","--btn-font-decoration":"none","--btn-font-weight":"bold","--btn-primary-main-color":"#1863EA","--btn-primary-additional-color":"#ffffff","--btn-secondary-main-color":"#4A4A4A","--btn-secondary-additional-color":"#ffffff","--btn-success-main-color":"#14af1d","--btn-success-additional-color":"#ffffff","--video-border":"#1863EA","--badge-font-color":"#4A4A4A","--badge-bg-color":"#FFFFFF","--footer-display":!0,"--footer-display-image":!0,"--footer-banner-img-url":"url(./assets/images/custom-design/footer-banner.png)","--footer-banner-img-id":"","--footer-banner-additional-img-url":"./assets/images/custom-design/additional-footer-img.png","--footer-banner-additional-img-id":"","--footer-banner-bg-color":"rgba(255, 255, 255, 0)","--footer-headline-font-color":"#4A4A4A","--footer-headline-font-style":"normal","--footer-headline-font-decoration":"none","--footer-headline-font-weight":"bold","--footer-paragraph-font-color":"#4A4A4A","--footer-paragraph-font-style":"normal","--footer-paragraph-font-decoration":"none","--footer-paragraph-font-weight":"normal","--footer-headline-content":"","--footer-paragraph-content":"","--img-logo-login":"","--img-logo-dashboard":"","--img-favicon":"","--img-login-desktop":"","--img-login-mobile":"","--img-user-avatar":"","--img-shoutout-box":"","--img-cml-wrp":""}}),this._translateService.get("CUSTOM_DESIGN").subscribe(t=>this.modifyCurrentTheme(t.title_footer_default,t.text_footer_default)),this._currentTheme}findActiveTheme(){this._settingsService.loadedDataEmitter.pipe(Object(i.a)(t=>null!==t)).subscribe(t=>{var e,n;const r=null===(n=this.designTemplatesMap[null===(e=null==t?void 0:t.portal_to_content_design_template_id)||void 0===e?void 0:e.content_design_template_id])||void 0===n?void 0:n.code;"custom"===r&&(this._active=o);for(let i=0;i<a.length;i++)if(a[i].name===r){this._active=a[i];break}})}setLoginRegForgotImgStyles(t,e){let n="",r="",i="/assets/images/background@2x.png",o="/assets/images/background@2x.png",s="/assets/images/mentortools_logo_white.svg";if(t){this.findActiveTheme();let a=this.themeMap.properties["--img-login-desktop"],c=this.themeMap.properties["--img-login-mobile"],l=this.themeMap.properties["--img-logo-login"];a&&(i=a),c&&(o=c),l&&(s=l),n=e?t.wallpaper_login_and_registration_mobile?this._fileManagerService.getImageSrc(t.wallpaper_login_and_registration_mobile):o:t.wallpaper_login_page?this._fileManagerService.getImageSrc(t.wallpaper_login_page):i,r=t.big_logo?this._fileManagerService.getImageSrc(t.big_logo):s}else n="/assets/images/background@2x.png",r="/assets/images/mentortools_logo_white.svg";return[n,r]}};return t.\u0275fac=function(e){return new(e||t)(h["\u0275\u0275inject"](d.e),h["\u0275\u0275inject"](c.a),h["\u0275\u0275inject"](l.a),h["\u0275\u0275inject"](u.a))},t.\u0275prov=h["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([Object(r.a)()],t),t})()},HMbd:function(t,e,n){var r=n("7B8A");t.exports=function(t,e){var n=Number(e);return r(t,36e5*n)}},HR75:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return s}));var r=n("9AQC");function i(t){return new s((function(e){e(t)}))}function o(t){return new s((function(e,n){n(t)}))}var s=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,n){0===e._state&&(Object(r.n)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)}))}};try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return t.prototype.then=function(e,n){var r=this;return new t((function(t,i){r._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(r){i(r)}else t(n)},function(e){if(n)try{t(n(e))}catch(r){i(r)}else i(e)}]),r._executeHandlers()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var i,o;return n.then((function(t){o=!1,i=t,e&&e()}),(function(t){o=!0,i=t,e&&e()})).then((function(){o?r(i):t(i)}))}))},t}()},HZF8:function(t,e,n){"use strict";var r=n("zfKp");e.isInteropObservable=function(t){return t&&"function"==typeof t[r.observable]}},Hgmd:function(t,e){!function(t){t.ng=t.ng||{},t.ng.common=t.ng.common||{},t.ng.common.locales=t.ng.common.locales||{};const e=void 0;t.ng.common.locales.cs=["cs",[["dop.","odp."],e,e],e,[["N","P","\xda","S","\u010c","P","S"],["ne","po","\xfat","st","\u010dt","p\xe1","so"],["ned\u011ble","pond\u011bl\xed","\xfater\xfd","st\u0159eda","\u010dtvrtek","p\xe1tek","sobota"],["ne","po","\xfat","st","\u010dt","p\xe1","so"]],e,[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","\xfano","b\u0159e","dub","kv\u011b","\u010dvn","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],["ledna","\xfanora","b\u0159ezna","dubna","kv\u011btna","\u010dervna","\u010dervence","srpna","z\xe1\u0159\xed","\u0159\xedjna","listopadu","prosince"]],[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","\xfano","b\u0159e","dub","kv\u011b","\u010dvn","\u010dvc","srp","z\xe1\u0159","\u0159\xedj","lis","pro"],["leden","\xfanor","b\u0159ezen","duben","kv\u011bten","\u010derven","\u010dervenec","srpen","z\xe1\u0159\xed","\u0159\xedjen","listopad","prosinec"]],[["p\u0159.n.l.","n.l."],["p\u0159. n. l.","n. l."],["p\u0159ed na\u0161\xedm letopo\u010dtem","na\u0161eho letopo\u010dtu"]],1,[6,0],["dd.MM.yy","d. M. y","d. MMMM y","EEEE d. MMMM y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}",e,e,e],[",","\xa0",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"CZK","K\u010d","\u010desk\xe1 koruna",{AUD:["AU$","$"],CSK:["K\u010ds"],CZK:["K\u010d"],ILS:[e,"\u20aa"],INR:[e,"\u20b9"],JPY:["JP\xa5","\xa5"],RON:[e,"L"],TWD:["NT$"],USD:["US$","$"],VND:[e,"\u20ab"],XEU:["ECU"],XXX:[]},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:e===Math.floor(e)&&e>=2&&e<=4&&0===n?3:0!==n?4:5},[[["p\u016fl.","pol.","r.","d.","o.","v.","n."],["p\u016fln.","pol.","r.","dop.","odp.","ve\u010d.","v n."],["p\u016flnoc","poledne","r\xe1no","dopoledne","odpoledne","ve\u010der","v noci"]],[["p\u016fl.","pol.","r\xe1no","dop.","odp.","ve\u010d.","noc"],["p\u016flnoc","poledne","r\xe1no","dopoledne","odpoledne","ve\u010der","noc"],e],["00:00","12:00",["04:00","09:00"],["09:00","12:00"],["12:00","18:00"],["18:00","22:00"],["22:00","04:00"]]]]}("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window)},Hkhx:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("Cfvw"),o=n("DH7j"),s=n("EY2u");function a(...t){if(0===t.length)return s.a;const[e,...n]=t;return 1===t.length&&Object(o.a)(e)?a(...e):new r.a(t=>{const r=()=>t.add(a(...n).subscribe(t));return Object(i.a)(e).subscribe({next(e){t.next(e)},error:r,complete:r})})}},HmDv:function(t,e,n){"use strict";var r=n("0z0v"),i=n("4ik+"),o=n("76/Q"),s=n("W96K"),a=n("1Z+e"),c=n("yoF8");e.last=function(t,e){var n=arguments.length>=2;return function(l){return l.pipe(t?i.filter((function(e,n){return t(e,n,l)})):c.identity,o.takeLast(1),n?a.defaultIfEmpty(e):s.throwIfEmpty((function(){return new r.EmptyError})))}}},HrJb:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t){return e=>e.lift(new o(t,e))}class o{constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.source))}}class s extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.source=n,this.count=0,this.index=0}_next(t){this.predicate?this._tryPredicate(t):this.count++}_tryPredicate(t){let e;try{e=this.predicate(t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e&&this.count++}_complete(){this.destination.next(this.count),this.destination.complete()}}},HzbE:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.buffer=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.closingNotifier))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(i.innerSubscribe(n,new i.SimpleInnerSubscriber(r))),r}return r(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.SimpleOuterSubscriber)},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},I65S:function(t,e,n){"use strict";var r=n("nzqU"),i=n("zzsZ"),o=n("2qMH");e.of=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return r.isScheduler(n)?(t.pop(),o.scheduleArray(t,n)):i.fromArray(t)}},IAdc:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("128B");function i(t,e,n){return 0===n?[e]:(t.push(e),t)}function o(){return Object(r.a)(i,[])}},ICFB:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("eYLY"),o=n("q3Kh"),s=n("yx2s"),a=n("mbIT"),c=n("nzqU");function l(t){var e=this,n=t.args,r=t.subscriber,o=t.params,s=o.callbackFunc,a=o.context,c=o.scheduler,l=o.subject;if(!l){l=o.subject=new i.AsyncSubject;try{s.apply(a,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(c.schedule(u,0,{value:r,subject:l}))}]))}catch(h){l.error(h)}}this.add(l.subscribe(r))}function u(t){var e=t.subject;e.next(t.value),e.complete()}e.bindCallback=function t(e,n,u){if(n){if(!c.isScheduler(n))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t(e,u).apply(void 0,r).pipe(o.map((function(t){return a.isArray(t)?n.apply(void 0,t):n(t)})))};u=n}return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o,a=this,c={context:a,subject:o,callbackFunc:e,scheduler:u};return new r.Observable((function(n){if(u)return u.schedule(l,0,{args:t,subscriber:n,params:c});if(!o){o=new i.AsyncSubject;try{e.apply(a,t.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(r){s.canReportError(o)?o.error(r):console.warn(r)}}return o.subscribe(n)}))}}},IEvo:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.QueueAction=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r(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("2tF/").AsyncAction)},IKMM:function(t,e,n){"use strict";var r=n("I65S"),i=n("c4Wt");e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.concatAll()(r.of.apply(void 0,t))}},IKal:function(t,e,n){"use strict";e.ArgumentOutOfRangeError=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},ILER:function(t,e,n){var r=n("CXhC");t.exports=function(t){var e=new Date;return e.setDate(e.getDate()+1),r(t).getTime()===r(e).getTime()}},IW2O:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.takeUntil=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new s(t),r=i.innerSubscribe(this.notifier,new i.SimpleInnerSubscriber(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.SimpleOuterSubscriber)},IjjT:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("Y/cZ");class i extends r.a{constructor(t,e=r.a.now){super(t,()=>i.delegate&&i.delegate!==this?i.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IpkJ:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setMilliseconds(0),e}},IxzM:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getSeconds()}},Iy3P:function(t,e,n){"use strict";var r=n("Q1FS");function i(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)))}e.range=function(t,e,n){return void 0===t&&(t=0),new r.Observable((function(r){void 0===e&&(e=t,t=0);var o=0,s=t;if(n)return n.schedule(i,0,{index:o,count:e,start:t,subscriber:r});for(;;){if(o++>=e){r.complete();break}if(r.next(s++),r.closed)break}}))},e.dispatch=i},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function s(t){return e=>0===t?Object(o.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new i.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends r.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},J6Hf:function(t,e,n){var r=n("iWRJ"),i=n("lwZq");t.exports=function(t,e){var n=Number(e);return i(t,r(t)+n)}},JIr8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t){return function(e){const n=new o(t),r=e.lift(n);return n.caught=r}}class o{constructor(t){this.selector=t}call(t,e){return e.subscribe(new s(t,this.selector,this.caught))}}class s extends r.b{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new r.a(this);this.add(i);const o=Object(r.c)(n,i);o!==i&&this.add(o)}}}},JQcg:function(t,e,n){var r=n("yNUO");t.exports=function(t){return 1===r(t).getDay()}},JX91:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("GyhO"),i=n("z+Ro");function o(...t){const e=t[t.length-1];return Object(i.a)(e)?(t.pop(),n=>Object(r.a)(t,n,e)):e=>Object(r.a)(t,e)}},JmF6:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("1uah");function i(t){return e=>e.lift(new r.a(t))}},JtXv:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=r(e);return n.getFullYear()===i.getFullYear()}},JxoX:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setMinutes(59,59,999),e}},K1fy:function(t,e,n){var r=n("yNUO");t.exports=function(t){return 0===r(t).getDay()}},K2QT:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("Fr4G"),i=n("24nb"),o=n("GroS"),s=n("ywEm"),a=n("fXoL"),c=n("tyNb"),l=n("ofXK");let u=(()=>{class t{constructor(t,e,n,r,i,o){this._router=t,this._userService=e,this._entityService=n,this._alertService=r,this._location=i,this._ssr=o}canActivate(t,e){if(this._ssr.isBrowser)return new Promise(t=>{-1===e.url.indexOf("free-course")?this._entityService.prolongate().subscribe(e=>{if(this._userService.setClient(e),this._userService.setTrialPortalTime(e.portal.trial_end_time),window.location.search.substr(1).length>0){let t=window.location.search.substr(1).split("=");t.length>0&&"hash"===t[0]&&this._location.replaceState("/admin"),t.length>0&&"hilfe"===t[0]&&(localStorage.setItem("openIntercom","true"),this._location.replaceState("/admin"))}t(!0)},e=>{window.location.search.includes("lesson_public")&&setTimeout(()=>{this._alertService.showError("unautorazed_lesson_access","lesson")},500),this._userService.deleteClient(),this._router.navigateByUrl("/login"+window.location.search),t(!1)}):t(!0)})}}return t.\u0275fac=function(e){return new(e||t)(a["\u0275\u0275inject"](c.e),a["\u0275\u0275inject"](r.a),a["\u0275\u0275inject"](i.a),a["\u0275\u0275inject"](o.a),a["\u0275\u0275inject"](l.o),a["\u0275\u0275inject"](s.a))},t.\u0275prov=a["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},K2dx:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getTime()>(new Date).getTime()}},K7De:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("cBqT");function i(t,e){return n=>n.lift(new r.a(t,n,!0,e))}},KKCa:function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},KY39:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("2Vo4"),i=n("XNiG"),o=n("Fr4G"),s=n("3jIQ"),a=n("fXoL");let c=(()=>{class t{constructor(t,e){this._userService=t,this._httpService=e,this.isLoadingTopic=!1,this.isLoadingCommunity=!1,this.updateFeedView=new r.a({title:"",event:"",id:0}),this._deleteEntity=new i.b,this.$deleteEntity=this._deleteEntity.asObservable(),this._moveEntity=new i.b,this.$moveEntity=this._moveEntity.asObservable()}get(t){return this._httpService.communityApiGet(t)}getWithToken(t,e=!1){let n=t+"?token="+this._userService.token;return e&&(n+="&ngsw-bypass=true"),this._httpService.communityApiGet(n)}set(t,e){let n=Object.assign({token:this._userService.token},e);const r=JSON.stringify(n);return this._httpService.communityApiPost(t,r)}post(t,e){let n={token:this._userService.token};e=Object.assign(Object.assign({},e),n);const r=JSON.stringify(e);return this._httpService.communityApiPost(t,r)}getInfo(t,e){return this.post(t+"/info",{id:e})}getMyPosts(t,e){return this.post(t+"/my/get",e)}getRefCode(t,e){return this.post(t+"/get",{community_id:e})}getList(t,e){return this.post(t+"/list",e)}getRange(t,e){return this.post(t+"/range",e)}getCount(t,e){return this.post(t+"/count",e)}getLikedUserList(t,e){return this.post(t+"/like/get",e)}getTopicActivityList(t){return this.post("topic/activity/list",t)}getAccessTypeList(t){return this.post("community/access_types",t)}add(t,e,n){let r=Object.assign({values:e},n);return this.post(t+"/add",r)}postNow(t){return this.post("/thread/publish",{id:t})}report(t,e){let n=Object.assign({token:this._userService.token},e);return this.post(t+"/report",n)}update(t,e,n){return this.post(t+"/update",{id:n,values:e})}updateEntity(t,e,n){return this.post(t+"/update",{token:this._userService.token,values_to_update:e})}delete(t,e){return this.post(t+"/delete",{id:e})}archiveCommunity(t){return this.post("community/archive",{id:t})}unarchiveCommunity(t){return this.post("community/unarchive",{id:t})}like(t,e,n){return this.post(t+"/like/"+(n?"delete":"add"),{id:e})}deleteEntity(t){this._deleteEntity.next(t)}moveEntity(t){this._moveEntity.next(t)}moveThread(t){const{thread_id:e,topic_id:n}=t;return this.post("thread/move",{thread_id:e,topic_id:n})}}return t.\u0275fac=function(e){return new(e||t)(a["\u0275\u0275inject"](o.a),a["\u0275\u0275inject"](s.a))},t.\u0275prov=a["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},KZTq:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h}));var r=n("fXoL"),i=n("ofXK"),o=n("jtHE"),s=n("z6cu");const a={target:null,action:"click",duration:650,easing:"easeInOutQuad",offset:0,offsetMap:new Map},c={easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t,easeOutElastic:t=>Math.pow(2,-10*t)*Math.sin((t-1/4)*(2*Math.PI)/1)+1};function l(t){return t===window}class u{constructor(t,e,n,r,i,s){this.container=t,this.listenerTarget=e,this.isWindow=n,this.to=r,this.options=i,this.isBrowser=s,this.loop=()=>{this.timeLapsed+=this.tick,this.percentage=this.timeLapsed/this.options.duration,this.percentage=this.percentage>1?1:this.percentage,this.position=this.startPosition+(this.startPosition-this.to<=0?1:-1)*this.distance*c[this.options.easing](this.percentage),null!==this.lastPosition&&this.position===this.lastPosition?this.stop():(this.source$.next(this.position),this.isWindow?this.listenerTarget.scrollTo(0,Math.floor(this.position)):this.container.scrollTop=Math.floor(this.position),this.lastPosition=this.position)},this.tick=16,this.interval=null,this.lastPosition=null,this.timeLapsed=0,this.windowScrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,this.startPosition=this.container?this.isWindow?this.windowScrollTop:this.container.scrollTop:this.windowScrollTop,this.container&&!this.isWindow&&(this.to=this.to-this.container.getBoundingClientRect().top+this.startPosition);const a=this.startPosition-this.to;this.distance=this.container?Math.abs(this.startPosition-this.to):this.to,this.mappedOffset=this.options.offset,this.isBrowser&&this.options.offsetMap.forEach((t,e)=>this.mappedOffset=window.innerWidth>e?t:this.mappedOffset),this.distance+=this.mappedOffset*(a<=0?1:-1),this.source$=new o.a}start(){return clearInterval(this.interval),this.interval=setInterval(this.loop,this.tick),this.source$.asObservable()}stop(){clearInterval(this.interval),this.interval=null,this.source$.complete()}}let h=(()=>{let t=class{constructor(t,e){this.document=t,this.platformId=e,this.interruptiveEvents=["mousewheel","DOMMouseScroll","touchstart"]}scrollTo(t){return Object(i.O)(this.platformId)?this.start(t):(new o.a).asObservable()}start(t){const e=Object.assign(Object.assign({},a),t);this.animation&&this.animation.stop();const n=this.getNode(e.target);if(e.target&&!n)return Object(s.a)("Unable to find Target Element");const r=this.getContainer(e,n);if(e.container&&!r)return Object(s.a)("Unable to find Container Element");const o=this.getListenerTarget(r)||window;let c=r?r.getBoundingClientRect().top:0;n&&(c=l(o)?window.scrollY+n.getBoundingClientRect().top:n.getBoundingClientRect().top),this.animation=new u(r,o,l(o),c,e,Object(i.O)(this.platformId));const h=()=>this.animation.stop();this.addInterruptiveEventListeners(o,h);const d=this.animation.start();return this.subscribeToAnimation(d,o,h),d}subscribeToAnimation(t,e,n){const r=t.subscribe(()=>{},()=>{},()=>{this.removeInterruptiveEventListeners(this.interruptiveEvents,e,n),r.unsubscribe()})}getContainer(t,e){let n=null;return t.container?n=this.getNode(t.container,!0):e&&(n=this.getFirstScrollableParent(e)),n}addInterruptiveEventListeners(t,e){t||(t=window),this.interruptiveEvents.forEach(n=>t.addEventListener(n,e,!!this.supportPassive()&&{passive:!0}))}supportPassive(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>{t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(e){}return t}removeInterruptiveEventListeners(t,e,n){e||(e=window),t.forEach(t=>e.removeEventListener(t,n))}getFirstScrollableParent(t){let e=window.getComputedStyle(t);const n=/(auto|scroll|overlay)/;if("fixed"===e.position)return null;let r=t;for(;r.parentElement;)if(r=r.parentElement,e=window.getComputedStyle(r),"absolute"!==e.position&&"hidden"!==e.overflow&&"hidden"!==e.overflowY&&(n.test(e.overflow+e.overflowY)||"BODY"===r.tagName))return r;return null}getNode(t,e=!1){let n;var i;return"string"==typeof(i=t)||i instanceof String?n=!e||"body"!==t&&"BODY"!==t?this.document.getElementById(function(t){return"#"===t.substring(0,1)?t.substring(1):t}(t)):this.document.body:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}(t)?n=this.document.getElementById(String(t)):function(t){return t instanceof r.ElementRef}(t)?n=t.nativeElement:function(t){return t instanceof HTMLElement}(t)&&(n=t),n}getListenerTarget(t){return t?this.isDocumentBody(t)?window:t:null}isDocumentBody(t){return"BODY"===t.tagName.toUpperCase()}};return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](i.e),r["\u0275\u0275inject"](r.PLATFORM_ID))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();var d;let f=(()=>{let t=d=class{static forRoot(){return{ngModule:d,providers:[h]}}};return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})()},Kj3r:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("D0XW");function o(t,e=i.a){return n=>n.lift(new s(t,e))}class s{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends r.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function c(t){t.debouncedNext()}},KjyA:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n("mrSG"),i=n("9AQC"),o=n("kdvv"),s=n("HR75"),a=n("z+RT"),c=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=Object(r.g)(e._breadcrumbs),n._tags=Object(r.a)({},e._tags),n._extra=Object(r.a)({},e._extra),n._contexts=Object(r.a)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=Object(r.g)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=Object(r.a)(Object(r.a)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=Object(r.a)(Object(r.a)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=Object(r.a)(Object(r.a)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=Object(r.a)(Object(r.a)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=Object(r.a)(Object(r.a)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=Object(r.a)(Object(r.a)({},this._tags),e._tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),e._extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):Object(i.i)(e)&&(e=e,this._tags=Object(r.a)(Object(r.a)({},this._tags),e.tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),e.extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;var i=Object(r.a)({timestamp:Object(o.b)()},t);return this._breadcrumbs=Object(r.g)(this._breadcrumbs,[i]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=Object(r.a)(Object(r.a)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(r.a)(Object(r.a)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(r.a)(Object(r.a)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=Object(r.a)({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=Object(r.a)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=Object(r.g)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Object(r.g)(l(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=Object(r.a)(Object(r.a)({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,n,o){var a=this;return void 0===o&&(o=0),new s.a((function(s,c){var l=t[o];if(null===e||"function"!=typeof l)s(e);else{var u=l(Object(r.a)({},e),n);Object(i.n)(u)?u.then((function(e){return a._notifyEventProcessors(t,e,n,o+1).then(s)})).then(null,c):a._notifyEventProcessors(t,u,n,o+1).then(s).then(null,c)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function l(){return Object(a.b)("globalEventProcessors",(function(){return[]}))}function u(t){l().push(t)}},KoBQ:function(t,e,n){var r=n("mqoM");t.exports=function(t){return r(new Date,t)}},Kpyc:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=r(e);return n.getFullYear()-i.getFullYear()}},Kqap:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(t,e,n))}}class o{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))}}class s extends r.a{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},"L/99":function(t,e,n){var r=n("RJeW");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}},L486:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=Number(e);return n.setFullYear(i),n}},LBXl:function(t,e,n){"use strict";e.UnsubscriptionError=function(){function t(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}return t.prototype=Object.create(Error.prototype),t}()},"LJ/p":function(t,e,n){"use strict";var r=n("Q1FS"),i=n("zB/H"),o=n("VKeD");e.scheduleIterable=function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.Observable((function(n){var r,s=new i.Subscription;return s.add((function(){r&&"function"==typeof r.return&&r.return()})),s.add(e.schedule((function(){r=t[o.iterator](),s.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())}})))}))),s}))}},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("z+Ro"),i=n("yCtX"),o=n("jZKg");function s(...t){let e=t[t.length-1];return Object(r.a)(e)?(t.pop(),Object(o.a)(t,e)):Object(i.a)(t)}},LSME:function(t,e,n){var r=n("G6+r");t.exports=function(t,e){return r(new Date,t,e)}},LZbM:function(t,e){t.exports=function(){var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(e,n,r){var i;return r=r||{},i="string"==typeof t[e]?t[e]:1===n?t[e].one:t[e].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+i:i+" ago":i}}}},Lhse:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return i}));const i=r()},Ljqs:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("mbIT"),o=n("q3Kh"),s=n("GMZp"),a=n("gTqA");function c(t,e){return new r.Observable((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,s=0,c=function(c){var l=a.from(t[c]),u=!1;n.add(l.subscribe({next:function(t){u||(u=!0,s++),i[c]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&u||(s===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},l=0;l<r;l++)c(l);else n.complete()}))}e.forkJoin=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if(i.isArray(n))return c(n,null);if(s.isObject(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return c(r.map((function(t){return n[t]})),r)}}if("function"==typeof t[t.length-1]){var a=t.pop();return c(t=1===t.length&&i.isArray(t[0])?t[0]:t,null).pipe(o.map((function(t){return a.apply(void 0,t)})))}return c(t,null)}},LxoM:function(t,e,n){var r=n("x84W");t.exports=function(t,e,n){var i=r(t,n),o=r(e,n),s=i.getTime()-6e4*i.getTimezoneOffset(),a=o.getTime()-6e4*o.getTimezoneOffset();return Math.round((s-a)/6048e5)}},M7V4:function(t,e,n){"use strict";n.d(e,"b",(function(){return S})),n.d(e,"a",(function(){return w}));var r=n("fXoL"),i=n("mrSG"),o=n("ofXK"),s=n("tk/3");const a=["input"],c=function(t){return{"img-ul-disabled":t}};function l(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"label",7),r["\u0275\u0275element"](1,"span",8),r["\u0275\u0275elementStart"](2,"input",9,10),r["\u0275\u0275listener"]("change",(function(){r["\u0275\u0275restoreView"](t);const e=r["\u0275\u0275reference"](3);return r["\u0275\u0275nextContext"]().onFileChange(e.files)})),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]()}if(2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngStyle",null==t.style?null:t.style.selectButton)("ngClass",r["\u0275\u0275pureFunction1"](5,c,t.disabled)),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerText",t.buttonCaption),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("disabled",t.disabled)("accept",t.supportedExtensions)}}function u(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"button",11),r["\u0275\u0275listener"]("click",(function(){return r["\u0275\u0275restoreView"](t),r["\u0275\u0275nextContext"]().deleteAll()})),r["\u0275\u0275elementEnd"]()}if(2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("disabled",t.disabled)("ngStyle",null==t.style?null:t.style.clearButton)("innerText",t.clearButtonCaption)}}function h(t,e){if(1&t&&r["\u0275\u0275element"](0,"p",12),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("innerText",t.fileTooLargeMessage)}}function d(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"div",18),r["\u0275\u0275element"](1,"div",19),r["\u0275\u0275elementEnd"]())}function f(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",20),r["\u0275\u0275listener"]("click",(function(){r["\u0275\u0275restoreView"](t);const e=r["\u0275\u0275nextContext"]().$implicit;return r["\u0275\u0275nextContext"](2).deleteFile(e)})),r["\u0275\u0275element"](1,"span",21),r["\u0275\u0275elementEnd"]()}if(2&t){const t=r["\u0275\u0275nextContext"](3);r["\u0275\u0275property"]("ngClass",r["\u0275\u0275pureFunction1"](1,c,t.disabled))}}const p=function(t){return{"background-image":t}};function m(t,e){if(1&t){const t=r["\u0275\u0275getCurrentView"]();r["\u0275\u0275elementStart"](0,"div",15),r["\u0275\u0275listener"]("click",(function(){r["\u0275\u0275restoreView"](t);const n=e.$implicit;return r["\u0275\u0275nextContext"](2).previewFileClicked(n)})),r["\u0275\u0275template"](1,d,2,0,"div",16),r["\u0275\u0275template"](2,f,2,3,"div",17),r["\u0275\u0275elementEnd"]()}if(2&t){const t=e.$implicit;r["\u0275\u0275property"]("ngStyle",r["\u0275\u0275pureFunction1"](3,p,"url("+t.src+")")),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",t.pending),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",!t.pending)}}function g(t,e){if(1&t&&(r["\u0275\u0275elementStart"](0,"div",13),r["\u0275\u0275template"](1,m,3,5,"div",14),r["\u0275\u0275elementEnd"]()),2&t){const t=r["\u0275\u0275nextContext"]();r["\u0275\u0275property"]("ngStyle",null==t.style?null:t.style.previewPanel),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngForOf",t.files)}}const b=function(t){return{"img-ul-file-is-over":t}};let v=(()=>{class t{constructor(){this.fileOver=new r.EventEmitter,this.fileDrop=new r.EventEmitter}static getDataTransfer(t){return t.dataTransfer?t.dataTransfer:t.originalEvent.dataTransfer}static hasFiles(t){return!!t&&(t.indexOf?-1!==t.indexOf("Files"):!!t.contains&&t.contains("Files"))}static matchRule(t,e){return new RegExp("^"+t.split("*").join(".*")+"$").test(e)}onDrop(e){const n=t.getDataTransfer(e);if(!t.hasFiles(n.types))return;e.preventDefault();const r=this.filterFiles(n.files);e.preventDefault(),this.fileOver.emit(!1),this.fileDrop.emit(r)}onDragLeave(t){this.fileOver.emit(!1)}onDragOver(e){const n=t.getDataTransfer(e);t.hasFiles(n.types)&&(n.dropEffect="copy",e.preventDefault(),this.fileOver.emit(!0))}filterFiles(e){if(!this.accept||0===this.accept.length)return e;const n=[];for(let r=0;r<e.length;r++)for(let i=0;i<this.accept.length;i++)if(t.matchRule(this.accept[i],e[r].type)){n.push(e[r]);break}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","fileDrop",""]],hostBindings:function(t,e){1&t&&r["\u0275\u0275listener"]("drop",(function(t){return e.onDrop(t)}))("dragleave",(function(t){return e.onDragLeave(t)}))("dragover",(function(t){return e.onDragOver(t)}))},inputs:{accept:"accept"},outputs:{fileOver:"fileOver",fileDrop:"fileDrop"}}),t})(),y=(()=>{class t{constructor(t){this.http=t}uploadImage(t,e,n,r="image",i,o){if(!t||""===t)throw new Error("Url is not set! Please set it before doing queries");const s=new FormData;if(i)for(const a of Object.keys(i))s.append(a,i[a]);return s.append(r,e),this.http.post(t,s,{withCredentials:o,headers:n,observe:"response"})}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](s.b))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class _{constructor(t,e){this.src=t,this.file=e,this.pending=!1}}let w=(()=>{class t{constructor(t){this.imageService=t,this.files=[],this.fileCounter=0,this.fileOver=!1,this.showFileTooLargeMessage=!1,this.beforeUpload=t=>t,this.buttonCaption="Select Images",this.disabled=!1,this.cssClass="img-ul",this.clearButtonCaption="Clear",this.dropBoxMessage="Drop your images here!",this.max=100,this.preview=!0,this.withCredentials=!1,this.uploadedFiles=[],this.removed=new r.EventEmitter,this.uploadStateChanged=new r.EventEmitter,this.uploadFinished=new r.EventEmitter,this.previewClicked=new r.EventEmitter,this.pendingFilesCounter=0,this.onFileOver=t=>this.fileOver=t}ngOnInit(){this.fileTooLargeMessage||(this.fileTooLargeMessage="An image was too large and was not uploaded."+(this.maxFileSize?" The maximum file size is "+this.maxFileSize/1024+"KiB.":"")),this.supportedExtensions=this.supportedExtensions?this.supportedExtensions.map(t=>"image/"+t):["image/*"]}deleteAll(){this.files.forEach(t=>this.removed.emit(t)),this.files=[],this.fileCounter=0,this.inputElement&&(this.inputElement.nativeElement.value="")}deleteFile(t){const e=this.files.indexOf(t);this.files.splice(e,1),this.fileCounter--,this.inputElement&&(this.inputElement.nativeElement.value=""),this.removed.emit(t)}previewFileClicked(t){this.previewClicked.emit(t)}ngOnChanges(t){t.uploadedFiles&&t.uploadedFiles.currentValue.length>0&&this.processUploadedFiles()}onFileChange(t){if(this.disabled)return;const e=this.max-this.fileCounter,n=t.length>e?e:t.length;this.url&&0!==n&&this.uploadStateChanged.emit(!0),this.fileCounter+=n,this.showFileTooLargeMessage=!1,this.uploadFiles(t,n)}onResponse(t,e){e.serverResponse={status:t.status,response:t},e.pending=!1,this.uploadFinished.emit(e),0==--this.pendingFilesCounter&&this.uploadStateChanged.emit(!1)}processUploadedFiles(){for(let t=0;t<this.uploadedFiles.length;t++){const e=this.uploadedFiles[t];let n,r,i;e instanceof Object?(i=e.url,n=e.blob?e.blob:new Blob([e]),r=new File([n],e.fileName)):(i=e,n=new Blob([i]),r=new File([n],i)),this.files.push(new _(i,r))}}uploadFiles(t,e){return Object(i.b)(this,void 0,void 0,(function*(){for(let n=0;n<e;n++){const e=t[n];if(this.maxFileSize&&e.size>this.maxFileSize){this.fileCounter--,this.inputElement.nativeElement.value="",this.showFileTooLargeMessage=!0,this.uploadStateChanged.emit(!1);continue}const r=yield this.beforeUpload({file:e,url:this.url,abort:!1});if(r.abort){this.fileCounter--,this.inputElement.nativeElement.value="";continue}document.createElement("img").src=window.URL.createObjectURL(r.file);const i=new FileReader;i.addEventListener("load",t=>{const e=new _(t.target.result,r.file);this.files.push(e),this.uploadSingleFile(e,r.url,r.formData)},!1),i.readAsDataURL(r.file)}}))}uploadSingleFile(t,e=this.url,n){e?(this.pendingFilesCounter++,t.pending=!0,this.imageService.uploadImage(e,t.file,this.headers,this.partName,n,this.withCredentials).subscribe(e=>this.onResponse(e,t),e=>{this.onResponse(e,t),this.deleteFile(t)})):this.uploadFinished.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](y))},t.\u0275cmp=r["\u0275\u0275defineComponent"]({type:t,selectors:[["image-upload"]],viewQuery:function(t,e){var n;1&t&&r["\u0275\u0275viewQuery"](a,!0),2&t&&r["\u0275\u0275queryRefresh"](n=r["\u0275\u0275loadQuery"]())&&(e.inputElement=n.first)},inputs:{beforeUpload:"beforeUpload",buttonCaption:"buttonCaption",disabled:"disabled",cssClass:["class","cssClass"],clearButtonCaption:"clearButtonCaption",dropBoxMessage:"dropBoxMessage",max:"max",preview:"preview",withCredentials:"withCredentials",uploadedFiles:"uploadedFiles",fileTooLargeMessage:"fileTooLargeMessage",supportedExtensions:["extensions","supportedExtensions"],headers:"headers",maxFileSize:"maxFileSize",partName:"partName",style:"style",url:"url"},outputs:{removed:"removed",uploadStateChanged:"uploadStateChanged",uploadFinished:"uploadFinished",previewClicked:"previewClicked"},features:[r["\u0275\u0275NgOnChangesFeature"]],decls:7,vars:11,consts:[["fileDrop","",3,"accept","ngClass","ngStyle","fileOver","fileDrop"],[1,"img-ul-file-upload","img-ul-hr-inline-group"],["class","img-ul-upload img-ul-button",3,"ngStyle","ngClass",4,"ngIf"],["class","img-ul-clear img-ul-button",3,"disabled","ngStyle","innerText","click",4,"ngIf"],[1,"img-ul-drag-box-msg",3,"innerText"],["class","img-ul-file-too-large",3,"innerText",4,"ngIf"],["class","img-ul-container img-ul-hr-inline-group",3,"ngStyle",4,"ngIf"],[1,"img-ul-upload","img-ul-button",3,"ngStyle","ngClass"],[3,"innerText"],["type","file","multiple","",3,"disabled","accept","change"],["input",""],[1,"img-ul-clear","img-ul-button",3,"disabled","ngStyle","innerText","click"],[1,"img-ul-file-too-large",3,"innerText"],[1,"img-ul-container","img-ul-hr-inline-group",3,"ngStyle"],["class","img-ul-image",3,"ngStyle","click",4,"ngFor","ngForOf"],[1,"img-ul-image",3,"ngStyle","click"],["class","img-ul-loading-overlay",4,"ngIf"],["class","img-ul-x-mark",3,"ngClass","click",4,"ngIf"],[1,"img-ul-loading-overlay"],[1,"img-ul-spinning-circle"],[1,"img-ul-x-mark",3,"ngClass","click"],[1,"img-ul-close"]],template:function(t,e){1&t&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275listener"]("fileOver",(function(t){return e.onFileOver(t)}))("fileDrop",(function(t){return e.onFileChange(t)})),r["\u0275\u0275elementStart"](1,"div",1),r["\u0275\u0275template"](2,l,4,7,"label",2),r["\u0275\u0275template"](3,u,1,3,"button",3),r["\u0275\u0275element"](4,"div",4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275template"](5,h,1,1,"p",5),r["\u0275\u0275template"](6,g,2,2,"div",6),r["\u0275\u0275elementEnd"]()),2&t&&(r["\u0275\u0275property"]("accept",e.supportedExtensions)("ngClass",e.cssClass)("ngClass",r["\u0275\u0275pureFunction1"](9,b,e.fileOver))("ngStyle",null==e.style?null:e.style.layout),r["\u0275\u0275advance"](2),r["\u0275\u0275property"]("ngIf",e.fileCounter!=e.max),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.fileCounter>0),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("innerText",e.dropBoxMessage),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.showFileTooLargeMessage),r["\u0275\u0275advance"](1),r["\u0275\u0275property"]("ngIf",e.preview))},directives:[v,o.r,o.x,o.u,o.t],styles:[".img-ul[_ngcontent-%COMP%]{--active-color:#3C9;--common-radius:3px;background-color:#f8f8f8;border-radius:var(--common-radius);border:1px dashed #d0d0d0;font-family:sans-serif;position:relative;color:#9b9b9b}.img-ul-file-is-over[_ngcontent-%COMP%]{border:var(--active-color) solid}.img-ul-hr-inline-group[_ngcontent-%COMP%]:after{clear:both;content:\"\";display:table}.img-ul-file-upload[_ngcontent-%COMP%]{padding:16px}.img-ul-drag-box-msg[_ngcontent-%COMP%]{display:inline-block;font-weight:600;margin-left:12px;padding-top:14px}label.img-ul-button[_ngcontent-%COMP%]   input[type=file][_ngcontent-%COMP%]{display:none;position:fixed;top:-99999px}.img-ul-clear[_ngcontent-%COMP%]{background-color:red}.img-ul-clear[_ngcontent-%COMP%]:disabled{background-color:#ff6464;cursor:default}.img-ul-upload[_ngcontent-%COMP%]{background-color:var(--active-color)}.img-ul-button[_ngcontent-%COMP%]{-moz-box-shadow:2px 2px 4px 0 rgba(148,148,148,.6);-webkit-box-shadow:2px 2px 4px 0 rgba(148,148,148,.6);border:none;box-shadow:2px 2px 4px 0 rgba(148,148,148,.6);color:#fff;cursor:pointer;display:inline-block;float:left;font-size:1.25em;font-weight:500;padding:10px;text-transform:uppercase}.img-ul-button[_ngcontent-%COMP%]:active   span[_ngcontent-%COMP%]{display:block;position:relative;top:1px}.img-ul-container[_ngcontent-%COMP%]{background-color:#fdfdfd;padding:0 10px}.img-ul-image[_ngcontent-%COMP%]{background:center center/contain no-repeat;display:inline-block;float:left;height:86px;margin:6px;position:relative;width:86px}.img-ul-x-mark[_ngcontent-%COMP%]{background-color:#000;border-radius:2px;color:#fff;cursor:pointer;float:right;height:20px;margin:2px;opacity:.7;text-align:center;width:20px}.img-ul-close[_ngcontent-%COMP%]{height:20px;opacity:.7;padding-right:3px;position:relative;width:20px}.img-ul-x-mark[_ngcontent-%COMP%]:hover   .img-ul-close[_ngcontent-%COMP%]{opacity:1}.img-ul-close[_ngcontent-%COMP%]:after, .img-ul-close[_ngcontent-%COMP%]:before{background-color:#fff;border-radius:2px;content:'';height:15px;position:absolute;top:0;width:2px}.img-ul-close[_ngcontent-%COMP%]:before{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.img-ul-close[_ngcontent-%COMP%]:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.img-ul-x-mark.img-ul-disabled[_ngcontent-%COMP%]{display:none}.img-ul-loading-overlay[_ngcontent-%COMP%]{background-color:#000;bottom:0;left:0;opacity:.7;position:absolute;right:0;top:0}.img-ul-spinning-circle[_ngcontent-%COMP%]{height:30px;width:30px;margin:auto;position:absolute;top:0;left:0;bottom:0;right:0;border-radius:50%;border:3px solid rgba(255,255,255,0);border-top:3px solid #fff;border-right:3px solid #fff;-webkit-animation:2s cubic-bezier(.085,.625,.855,.36) infinite spinner;animation:2s cubic-bezier(.085,.625,.855,.36) infinite spinner}.img-ul-file-too-large[_ngcontent-%COMP%]{color:red;padding:0 15px}.img-ul-upload.img-ul-disabled[_ngcontent-%COMP%]{background-color:#86e9c9;cursor:default}.img-ul-upload.img-ul-disabled[_ngcontent-%COMP%]:active   span[_ngcontent-%COMP%]{top:0}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"]}),t})(),S=(()=>{class t{static forRoot(){return{ngModule:t,providers:[y]}}}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[o.c]]}),t})()},M9IT:function(t,e,n){"use strict";n.d(e,"a",(function(){return tt})),n.d(e,"b",(function(){return K})),n.d(e,"c",(function(){return et}));var r=n("ofXK"),i=n("fXoL"),o=n("bTqV"),s=n("d3UM"),a=n("rDax"),c=n("u47x"),l=n("FKr1"),u=n("vxfF"),h=n("8LU1"),d=n("FtGj"),f=n("nLfN"),p=n("XNiG"),m=n("itXk"),g=n("GyhO"),b=n("HDdC"),v=n("IzEk"),y=n("zP0r"),_=n("Kj3r"),w=n("lJxs"),S=n("JX91"),x=n("1G5W");const C=new Set;let O,T=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):E}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!C.has(t))try{O||(O=document.createElement("style"),O.setAttribute("type","text/css"),document.head.appendChild(O)),O.sheet&&(O.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),C.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](f.a))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(f.a))},token:t,providedIn:"root"}),t})();function E(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let k=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new p.b}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return A(Object(h.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=A(Object(h.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(m.b)(e);return n=Object(g.a)(n.pipe(Object(v.a)(1)),n.pipe(Object(y.a)(1),Object(_.a)(0))),n.pipe(Object(w.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(t=>{e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new b.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(S.a)(e),Object(w.a)(e=>({query:t,matches:e.matches})),Object(x.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](T),i["\u0275\u0275inject"](i.NgZone))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(T),Object(i["\u0275\u0275inject"])(i.NgZone))},token:t,providedIn:"root"}),t})();function A(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}var D=n("+rOU"),j=n("R0Ic"),I=n("cH1L");const P={tooltipState:Object(j.n)("state",[Object(j.k)("initial, void, hidden",Object(j.l)({opacity:0,transform:"scale(0)"})),Object(j.k)("visible",Object(j.l)({transform:"scale(1)"})),Object(j.m)("* => visible",Object(j.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(j.h)([Object(j.l)({opacity:0,transform:"scale(0)",offset:0}),Object(j.l)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(j.l)({opacity:1,transform:"scale(1)",offset:1})]))),Object(j.m)("* => hidden",Object(j.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(j.l)({opacity:0})))])},M=Object(f.f)({passive:!0});function N(t){return Error(`Tooltip position "${t}" is invalid.`)}const F=new i.InjectionToken("mat-tooltip-scroll-strategy"),R={provide:F,deps:[a.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},L=new i.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let V=(()=>{class t{constructor(t,e,n,r,i,o,s,a,c,l,u,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=i,this._platform=o,this._ariaDescriber=s,this._focusMonitor=a,this._dir=l,this._defaultOptions=u,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=new Map,this._destroyed=new p.b,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===d.e&&!Object(d.q)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),a.monitor(e).pipe(Object(x.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&i.run(()=>this.show()):i.run(()=>this.hide(0))}),i.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(h.c)(t),this._disabled&&this.hide(0)}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngOnInit(){this._setupPointerEvents()}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach((e,n)=>{t.removeEventListener(n,e,M)}),this._passiveListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new D.d(H,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(x.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(x.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(x.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;if("above"==e||"below"==e)n={originX:"center",originY:"above"==e?"top":"bottom"};else if("before"==e||"left"==e&&t||"right"==e&&!t)n={originX:"start",originY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw N(e);n={originX:"end",originY:"center"}}const{x:r,y:i}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:r,originY:i}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;if("above"==e)n={overlayX:"center",overlayY:"bottom"};else if("below"==e)n={overlayX:"center",overlayY:"top"};else if("before"==e||"left"==e&&t||"right"==e&&!t)n={overlayX:"end",overlayY:"center"};else{if(!("after"==e||"right"==e&&t||"left"==e&&!t))throw N(e);n={overlayX:"start",overlayY:"center"}}const{x:r,y:i}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:r,overlayY:i}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(v.a)(1),Object(x.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEvents(){if(this._platform.IOS||this._platform.ANDROID){if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};this._passiveListeners.set("touchend",t).set("touchcancel",t).set("touchstart",()=>{clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)})}}else this._passiveListeners.set("mouseenter",()=>this.show()).set("mouseleave",()=>this.hide());this._passiveListeners.forEach((t,e)=>{this._elementRef.nativeElement.addEventListener(e,t,M)})}_disableNativeGesturesIfNecessary(){const t=this._elementRef.nativeElement,e=t.style,n=this.touchGestures;"off"!==n&&(("on"===n||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),"on"!==n&&t.draggable||(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent")}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](a.c),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](u.c),i["\u0275\u0275directiveInject"](i.ViewContainerRef),i["\u0275\u0275directiveInject"](i.NgZone),i["\u0275\u0275directiveInject"](f.a),i["\u0275\u0275directiveInject"](c.c),i["\u0275\u0275directiveInject"](c.f),i["\u0275\u0275directiveInject"](F),i["\u0275\u0275directiveInject"](I.c,8),i["\u0275\u0275directiveInject"](L,8),i["\u0275\u0275directiveInject"](i.ElementRef))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["","matTooltip",""]],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),H=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new p.b,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide.asObservable()}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](k))},t.\u0275cmp=i["\u0275\u0275defineComponent"]({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&i["\u0275\u0275listener"]("click",(function(){return e._handleBodyInteraction()}),!1,i["\u0275\u0275resolveBody"]),2&t&&i["\u0275\u0275styleProp"]("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275listener"]("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),i["\u0275\u0275pipe"](1,"async"),i["\u0275\u0275text"](2),i["\u0275\u0275elementEnd"]()),2&t){var n;const t=null==(n=i["\u0275\u0275pipeBind1"](1,5,e._isHandset))?null:n.matches;i["\u0275\u0275classProp"]("mat-tooltip-handset",t),i["\u0275\u0275property"]("ngClass",e.tooltipClass)("@state",e._visibility),i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate"](e.message)}},directives:[r.r],pipes:[r.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[P.tooltipState]},changeDetection:0}),t})(),B=(()=>{class t{}return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[R],imports:[[c.a,r.c,a.f,l.g],l.g,u.b]}),t})();var G=n("kmnG");function z(t,e){if(1&t&&(i["\u0275\u0275elementStart"](0,"mat-option",19),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&t){const t=e.$implicit;i["\u0275\u0275property"]("value",t),i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate1"](" ",t," ")}}function W(t,e){if(1&t){const t=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"mat-form-field",16),i["\u0275\u0275elementStart"](1,"mat-select",17),i["\u0275\u0275listener"]("selectionChange",(function(e){return i["\u0275\u0275restoreView"](t),i["\u0275\u0275nextContext"](2)._changePageSize(e.value)})),i["\u0275\u0275template"](2,z,2,2,"mat-option",18),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&t){const t=i["\u0275\u0275nextContext"](2);i["\u0275\u0275property"]("color",t.color),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngForOf",t._displayedPageSizeOptions)}}function U(t,e){if(1&t&&(i["\u0275\u0275elementStart"](0,"div",20),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&t){const t=i["\u0275\u0275nextContext"](2);i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](t.pageSize)}}function q(t,e){if(1&t&&(i["\u0275\u0275elementStart"](0,"div",12),i["\u0275\u0275elementStart"](1,"div",13),i["\u0275\u0275text"](2),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](3,W,3,5,"mat-form-field",14),i["\u0275\u0275template"](4,U,2,1,"div",15),i["\u0275\u0275elementEnd"]()),2&t){const t=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](2),i["\u0275\u0275textInterpolate1"](" ",t._intl.itemsPerPageLabel," "),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t._displayedPageSizeOptions.length>1),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t._displayedPageSizeOptions.length<=1)}}function X(t,e){if(1&t){const t=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",21),i["\u0275\u0275listener"]("click",(function(){return i["\u0275\u0275restoreView"](t),i["\u0275\u0275nextContext"]().firstPage()})),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](1,"svg",7),i["\u0275\u0275element"](2,"path",22),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&t){const t=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i["\u0275\u0275attribute"]("aria-label",t._intl.firstPageLabel)}}function $(t,e){if(1&t){const t=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275elementStart"](0,"button",23),i["\u0275\u0275listener"]("click",(function(){return i["\u0275\u0275restoreView"](t),i["\u0275\u0275nextContext"]().lastPage()})),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](1,"svg",7),i["\u0275\u0275element"](2,"path",24),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&t){const t=i["\u0275\u0275nextContext"]();i["\u0275\u0275property"]("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i["\u0275\u0275attribute"]("aria-label",t._intl.lastPageLabel)}}let K=(()=>{class t{constructor(){this.changes=new p.b,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return"0 of "+n;const r=t*e;return`${r+1} \u2013 ${r<(n=Math.max(n,0))?Math.min(r+e,n):r+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Y={provide:K,deps:[[new i.Optional,new i.SkipSelf,K]],useFactory:function(t){return t||new K}},Q=new i.InjectionToken("MAT_PAGINATOR_DEFAULT_OPTIONS");class J{}const Z=Object(l.s)(Object(l.u)(J));let tt=(()=>{class t extends Z{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.EventEmitter,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:r,showFirstLastButtons:i}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=r&&(this._hidePageSize=r),null!=i&&(this._showFirstLastButtons=i)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Object(h.f)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Object(h.f)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Object(h.f)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Object(h.f)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Object(h.c)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Object(h.c)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndex<t&&0!=this.pageSize}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){const e=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._initialized&&(this.pageSize||(this._pageSize=0!=this.pageSizeOptions.length?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1===this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,e)=>t-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](K),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef),i["\u0275\u0275directiveInject"](Q,8))},t.\u0275cmp=i["\u0275\u0275defineComponent"]({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[i["\u0275\u0275InheritDefinitionFeature"]],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(i["\u0275\u0275elementStart"](0,"div",0),i["\u0275\u0275elementStart"](1,"div",1),i["\u0275\u0275template"](2,q,5,3,"div",2),i["\u0275\u0275elementStart"](3,"div",3),i["\u0275\u0275elementStart"](4,"div",4),i["\u0275\u0275text"](5),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](6,X,3,5,"button",5),i["\u0275\u0275elementStart"](7,"button",6),i["\u0275\u0275listener"]("click",(function(){return e.previousPage()})),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](8,"svg",7),i["\u0275\u0275element"](9,"path",8),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275namespaceHTML"](),i["\u0275\u0275elementStart"](10,"button",9),i["\u0275\u0275listener"]("click",(function(){return e.nextPage()})),i["\u0275\u0275namespaceSVG"](),i["\u0275\u0275elementStart"](11,"svg",7),i["\u0275\u0275element"](12,"path",10),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](13,$,3,5,"button",11),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&t&&(i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",!e.hidePageSize),i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate1"](" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",e.showFirstLastButtons),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i["\u0275\u0275attribute"]("aria-label",e._intl.previousPageLabel),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i["\u0275\u0275attribute"]("aria-label",e._intl.nextPageLabel),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngIf",e.showFirstLastButtons))},directives:[r.u,o.b,V,G.c,s.a,r.t,l.j],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),et=(()=>{class t{}return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[Y],imports:[[r.c,o.c,s.b,B]]}),t})()},MBYv:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return d}));var r=n("mrSG"),i=n("kdvv"),o=n("8LbN"),s=n("WWQz"),a=n("i6wd"),c=n("SYqL"),l=n("EldZ"),u=1e3,h=function(t){function e(e,n,r,i){void 0===r&&(r="");var o=t.call(this,i)||this;return o._pushActivity=e,o._popActivity=n,o.transactionSpanId=r,o}return Object(r.d)(e,t),e.prototype.add=function(e){var n=this;e.spanId!==this.transactionSpanId&&(e.finish=function(t){e.endTimestamp="number"==typeof t?t:Object(i.d)(),n._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),t.prototype.add.call(this,e)},e}(c.b),d=function(t){function e(e,n,r,i){void 0===r&&(r=u),void 0===i&&(i=!1);var s=t.call(this,e,n)||this;return s._idleHub=n,s._idleTimeout=r,s._onScope=i,s.activities={},s._heartbeatCounter=0,s._finished=!1,s._beforeFinishCallbacks=[],n&&i&&(f(n),a.a&&o.c.log("Setting idle transaction on scope. Span ID: "+s.spanId),n.configureScope((function(t){return t.setSpan(s)}))),s._initTimeout=setTimeout((function(){s._finished||s.finish()}),s._idleTimeout),s}return Object(r.d)(e,t),e.prototype.finish=function(e){var n,s,c=this;if(void 0===e&&(e=Object(i.d)()),this._finished=!0,this.activities={},this.spanRecorder){a.a&&o.c.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op);try{for(var l=Object(r.h)(this._beforeFinishCallbacks),u=l.next();!u.done;u=l.next())(0,u.value)(this,e)}catch(h){n={error:h}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(t){if(t.spanId===c.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),a.a&&o.c.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||a.a&&o.c.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),a.a&&o.c.log("[Tracing] flushing IdleTransaction")}else a.a&&o.c.log("[Tracing] No active IdleTransaction");return this._onScope&&f(this._idleHub),t.prototype.finish.call(this,e)},e.prototype.registerBeforeFinishCallback=function(t){this._beforeFinishCallbacks.push(t)},e.prototype.initSpanRecorder=function(t){var e=this;this.spanRecorder||(this.spanRecorder=new h((function(t){e._finished||e._pushActivity(t)}),(function(t){e._finished||e._popActivity(t)}),this.spanId,t),a.a&&o.c.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)},e.prototype._pushActivity=function(t){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),a.a&&o.c.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,a.a&&o.c.log("[Tracing] new activities count",Object.keys(this.activities).length)},e.prototype._popActivity=function(t){var e=this;if(this.activities[t]&&(a.a&&o.c.log("[Tracing] popActivity "+t),delete this.activities[t],a.a&&o.c.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=Object(i.d)()+n/1e3;setTimeout((function(){e._finished||(e.setTag(s.a,s.b[1]),e.finish(r))}),n)}},e.prototype._beat=function(){if(!this._finished){var t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(a.a&&o.c.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag(s.a,s.b[0]),this.finish()):this._pingHeartbeat()}},e.prototype._pingHeartbeat=function(){var t=this;a.a&&o.c.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){t._beat()}),5e3)},e}(l.a);function f(t){if(t){var e=t.getScope();e&&e.getTransaction()&&e.setSpan(void 0)}}},MCLT:function(t,e,n){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},i=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(a(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(t).replace(i,(function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),c=r[n];n<o;c=r[++n])m(c)||!_(c)?s+=" "+c:s+=" "+a(c);return s},e.deprecate=function(t,n){if("undefined"!=typeof process&&!0===process.noDeprecation)return t;if("undefined"==typeof process)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;return function(){if(!r){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}};var o,s={};function a(t,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),u(r,t,r.depth)}function c(t,e){var n=a.styles[e];return n?"\x1b["+a.colors[n][0]+"m"+t+"\x1b["+a.colors[n][1]+"m":t}function l(t,e){return t}function u(t,n,r){if(t.customInspect&&n&&x(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return b(i)||(i=u(t,i,r)),i}var o=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(b(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return g(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var s=Object.keys(n),a=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),S(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(n);if(0===s.length){if(x(n))return t.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(y(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return h(n)}var c,l="",_=!1,C=["{","}"];return f(n)&&(_=!0,C=["[","]"]),x(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),y(n)&&(l=" "+RegExp.prototype.toString.call(n)),w(n)&&(l=" "+Date.prototype.toUTCString.call(n)),S(n)&&(l=" "+h(n)),0!==s.length||_&&0!=n.length?r<0?y(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=_?function(t,e,n,r,i){for(var o=[],s=0,a=e.length;s<a;++s)k(e,String(s))?o.push(d(t,e,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(t,e,n,r,i,!0))})),o}(t,n,r,a,s):s.map((function(e){return d(t,n,r,a,e,_)})),t.seen.pop(),function(t,e,n){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,l,C)):C[0]+l+C[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,r,i,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=t.stylize(c.set?"[Getter/Setter]":"[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),k(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=m(n)?u(t,c.value,null):u(t,c.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return"  "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return"   "+t})).join("\n")):a=t.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function m(t){return null===t}function g(t){return"number"==typeof t}function b(t){return"string"==typeof t}function v(t){return void 0===t}function y(t){return _(t)&&"[object RegExp]"===C(t)}function _(t){return"object"==typeof t&&null!==t}function w(t){return _(t)&&"[object Date]"===C(t)}function S(t){return _(t)&&("[object Error]"===C(t)||t instanceof Error)}function x(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function O(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(v(o)&&(o=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!s[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var n=process.pid;s[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=f,e.isBoolean=p,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=y,e.isObject=_,e.isDate=w,e.isError=S,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n("1gqn");var T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var t=new Date,e=[O(t.getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":");return[t.getDate(),T[t.getMonth()],e].join(" ")}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",E(),e.format.apply(e,arguments))},e.inherits=n("KKCa"),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var A="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(A&&t[A]){var e;if("function"!=typeof(e=t[A]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,A,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,i)}catch(s){n(s)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),A&&Object.defineProperty(e,A,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=A,e.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var r=e.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return r.apply(i,arguments)};t.apply(this,e).then((function(t){process.nextTick(o,null,t)}),(function(t){process.nextTick(D,t,o)}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,r(t)),e}},MNHD:function(t,e,n){var r=n("CXhC");t.exports=function(t){return r(t).getTime()===r(new Date).getTime()}},MhJ4:function(t,e,n){"use strict";var r=n("6aLS");e.switchMapTo=function(t,e){return e?r.switchMap((function(){return t}),e):r.switchMap((function(){return t}))}},MjHj:function(t,e,n){"use strict";var r=n("Q1FS");e.isObservable=function(t){return!!t&&(t instanceof r.Observable||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},MkmW:function(t,e,n){"use strict";e.hostReportError=function(t){setTimeout((function(){throw t}),0)}},MtjB:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("XNiG"),i=n("zx2A");function o(t){return e=>e.lift(new s(t,e))}class s{constructor(t,e){this.notifier=t,this.source=e}call(t,e){return e.subscribe(new a(t,this.notifier,this.source))}}class a extends i.b{constructor(t,e,n){super(t),this.notifier=e,this.source=n}error(t){if(!this.isStopped){let n=this.errors,o=this.retries,s=this.retriesSubscription;if(o)this.errors=void 0,this.retriesSubscription=void 0;else{n=new r.b;try{const{notifier:t}=this;o=t(n)}catch(e){return super.error(e)}s=Object(i.c)(o,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=o,this.retriesSubscription=s,n.next(t)}}_unsubscribe(){const{errors:t,retriesSubscription:e}=this;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0}notifyNext(){const{_unsubscribe:t}=this;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)}}},Mxlh:function(t,e,n){"use strict";e.ObjectUnsubscribedError=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},NAv5:function(t,e,n){t.exports={addDays:n("iUbB"),addHours:n("HMbd"),addISOYears:n("J6Hf"),addMilliseconds:n("7B8A"),addMinutes:n("crfB"),addMonths:n("ZmXw"),addQuarters:n("9d03"),addSeconds:n("rxuJ"),addWeeks:n("eoPS"),addYears:n("/LN1"),areRangesOverlapping:n("6qX0"),closestIndexTo:n("f9gI"),closestTo:n("T2d4"),compareAsc:n("DT56"),compareDesc:n("yHON"),differenceInCalendarDays:n("1CCG"),differenceInCalendarISOWeeks:n("gtzP"),differenceInCalendarISOYears:n("+f+M"),differenceInCalendarMonths:n("sunR"),differenceInCalendarQuarters:n("+zZ+"),differenceInCalendarWeeks:n("LxoM"),differenceInCalendarYears:n("Kpyc"),differenceInDays:n("O8cK"),differenceInHours:n("0u2M"),differenceInISOYears:n("s/X6"),differenceInMilliseconds:n("54Wo"),differenceInMinutes:n("ZXDK"),differenceInMonths:n("F809"),differenceInQuarters:n("gwEV"),differenceInSeconds:n("4Toj"),differenceInWeeks:n("7pFD"),differenceInYears:n("b8ws"),distanceInWords:n("NmtT"),distanceInWordsStrict:n("u3z5"),distanceInWordsToNow:n("YlT8"),eachDay:n("xMJQ"),endOfDay:n("l0SJ"),endOfHour:n("JxoX"),endOfISOWeek:n("QXXb"),endOfISOYear:n("hh1I"),endOfMinute:n("OsOA"),endOfMonth:n("1vin"),endOfQuarter:n("NpEG"),endOfSecond:n("FF6D"),endOfToday:n("dEPG"),endOfTomorrow:n("b056"),endOfWeek:n("dJQg"),endOfYear:n("2XXS"),endOfYesterday:n("5R0t"),format:n("cPJV"),getDate:n("tg+8"),getDay:n("wrXb"),getDayOfYear:n("WA8B"),getDaysInMonth:n("VBar"),getDaysInYear:n("3d+l"),getHours:n("XZVX"),getISODay:n("hLnY"),getISOWeek:n("gfz1"),getISOWeeksInYear:n("O3uf"),getISOYear:n("iWRJ"),getMilliseconds:n("jIFe"),getMinutes:n("xYlI"),getMonth:n("czgO"),getOverlappingDaysInRanges:n("Yzd8"),getQuarter:n("uPm0"),getSeconds:n("IxzM"),getTime:n("kC7l"),getYear:n("EMgV"),isAfter:n("pDEI"),isBefore:n("a4+5"),isDate:n("pzWd"),isEqual:n("q9S1"),isFirstDayOfMonth:n("NT44"),isFriday:n("qFJL"),isFuture:n("K2dx"),isLastDayOfMonth:n("Pu5f"),isLeapYear:n("rMQs"),isMonday:n("JQcg"),isPast:n("qTUo"),isSameDay:n("/Tkk"),isSameHour:n("Zipn"),isSameISOWeek:n("zM65"),isSameISOYear:n("L/99"),isSameMinute:n("9WSG"),isSameMonth:n("WmBB"),isSameQuarter:n("mqoM"),isSameSecond:n("xq5I"),isSameWeek:n("G6+r"),isSameYear:n("JtXv"),isSaturday:n("SKYL"),isSunday:n("K1fy"),isThisHour:n("AVfB"),isThisISOWeek:n("zGRt"),isThisISOYear:n("l6+5"),isThisMinute:n("PvkQ"),isThisMonth:n("m7nI"),isThisQuarter:n("KoBQ"),isThisSecond:n("5iAy"),isThisWeek:n("LSME"),isThisYear:n("9m1m"),isThursday:n("Wjgk"),isToday:n("MNHD"),isTomorrow:n("ILER"),isTuesday:n("dgaN"),isValid:n("fupu"),isWednesday:n("yYDL"),isWeekend:n("mthE"),isWithinRange:n("9WoD"),isYesterday:n("xPkr"),lastDayOfISOWeek:n("UpIE"),lastDayOfISOYear:n("3hPP"),lastDayOfMonth:n("7KIa"),lastDayOfQuarter:n("zj0I"),lastDayOfWeek:n("y5a+"),lastDayOfYear:n("uKeJ"),max:n("leoV"),min:n("GoQk"),parse:n("yNUO"),setDate:n("lX9Q"),setDay:n("t4rR"),setDayOfYear:n("lTB2"),setHours:n("bwD0"),setISODay:n("+nbD"),setISOWeek:n("5z3u"),setISOYear:n("lwZq"),setMilliseconds:n("1HMO"),setMinutes:n("iu1C"),setMonth:n("OBTA"),setQuarter:n("FYuM"),setSeconds:n("kRN8"),setYear:n("L486"),startOfDay:n("CXhC"),startOfHour:n("+6+2"),startOfISOWeek:n("tMf1"),startOfISOYear:n("RJeW"),startOfMinute:n("6WtA"),startOfMonth:n("lCuP"),startOfQuarter:n("Q5nM"),startOfSecond:n("IpkJ"),startOfToday:n("PK5m"),startOfTomorrow:n("gUhM"),startOfWeek:n("x84W"),startOfYear:n("pLeS"),startOfYesterday:n("aTp7"),subDays:n("4v8u"),subHours:n("+5jU"),subISOYears:n("3zVU"),subMilliseconds:n("uttN"),subMinutes:n("GLf8"),subMonths:n("Ev1t"),subQuarters:n("1K6H"),subSeconds:n("g/AU"),subWeeks:n("4coB"),subYears:n("iQJf")}},NDfa:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},"NHP+":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("XNiG"),i=n("quSY");class o extends r.b{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(t){return this.hasError?(t.error(this.thrownError),i.a.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),i.a.EMPTY):super._subscribe(t)}next(t){this.hasCompleted||(this.value=t,this.hasNext=!0)}error(t){this.hasCompleted||super.error(t)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return r}))},NJ9Y:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("sVev"),i=n("pLZG"),o=n("BFxc"),s=n("XDbj"),a=n("xbPD"),c=n("SpAZ");function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Object(i.a)((e,n)=>t(e,n,l)):c.a,Object(o.a)(1),n?Object(a.a)(e):Object(s.a)(()=>new r.a))}},NNCq:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC");function i(t=0,e,n){return new r.a(r=>{void 0===e&&(e=t,t=0);let i=0,s=t;if(n)return n.schedule(o,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(s++),r.closed)break}})}function o(t){const{start:e,index:n,count:r,subscriber:i}=t;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}},NT44:function(t,e,n){var r=n("yNUO");t.exports=function(t){return 1===r(t).getDate()}},NTcF:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ffpz");e.AsyncScheduler=function(t){function e(n,r){void 0===r&&(r=i.Scheduler.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.Scheduler)},NXyV:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("Cfvw"),o=n("EY2u");function s(t){return new r.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)})}},NZaV:function(t,e,n){"use strict";var r=n("7RJT"),i=n("7K7o");e.publishBehavior=function(t){return function(e){return i.multicast(new r.BehaviorSubject(t))(e)}}},NfdI:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("XNiG"),i=n("oB13");function o(t){return t?Object(i.a)(()=>new r.b,t):Object(i.a)(new r.b)}},NmtT:function(t,e,n){var r=n("yHON"),i=n("yNUO"),o=n("4Toj"),s=n("F809"),a=n("Us+F");t.exports=function(t,e,n){var c=n||{},l=r(t,e),u=c.locale,h=a.distanceInWords.localize;u&&u.distanceInWords&&u.distanceInWords.localize&&(h=u.distanceInWords.localize);var d,f,p={addSuffix:Boolean(c.addSuffix),comparison:l};l>0?(d=i(t),f=i(e)):(d=i(e),f=i(t));var m,g=o(f,d),b=f.getTimezoneOffset()-d.getTimezoneOffset(),v=Math.round(g/60)-b;if(v<2)return c.includeSeconds?g<5?h("lessThanXSeconds",5,p):g<10?h("lessThanXSeconds",10,p):g<20?h("lessThanXSeconds",20,p):g<40?h("halfAMinute",null,p):h(g<60?"lessThanXMinutes":"xMinutes",1,p):0===v?h("lessThanXMinutes",1,p):h("xMinutes",v,p);if(v<45)return h("xMinutes",v,p);if(v<90)return h("aboutXHours",1,p);if(v<1440)return h("aboutXHours",Math.round(v/60),p);if(v<2520)return h("xDays",1,p);if(v<43200)return h("xDays",Math.round(v/1440),p);if(v<86400)return h("aboutXMonths",m=Math.round(v/43200),p);if((m=s(f,d))<12)return h("xMonths",Math.round(v/43200),p);var y=m%12,_=Math.floor(m/12);return y<3?h("aboutXYears",_,p):y<9?h("overXYears",_,p):h("almostXYears",_+1,p)}},NpEG:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=e.getMonth();return e.setMonth(n-n%3+3,0),e.setHours(23,59,59,999),e}},Nv8m:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("DH7j"),i=n("yCtX"),o=n("l7GE"),s=n("ZUHj");function a(...t){if(1===t.length){if(!Object(r.a)(t[0]))return t[0];t=t[0]}return Object(i.a)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new l(t))}}class l extends o.a{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n<e&&!this.hasFirst;n++){const e=t[n],r=Object(s.a)(this,e,void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}notifyNext(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(let t=0;t<this.subscriptions.length;t++)if(t!==n){let e=this.subscriptions[t];e.unsubscribe(),this.remove(e)}this.subscriptions=null}this.destination.next(e)}}},Nvgl:function(t,e){!function(t){t.ng=t.ng||{},t.ng.common=t.ng.common||{},t.ng.common.locales=t.ng.common.locales||{};const e=void 0;t.ng.common.locales.hu=["hu",[["de.","du."],e,e],e,[["V","H","K","Sz","Cs","P","Sz"],["V","H","K","Sze","Cs","P","Szo"],["vas\xe1rnap","h\xe9tf\u0151","kedd","szerda","cs\xfct\xf6rt\xf6k","p\xe9ntek","szombat"],["V","H","K","Sze","Cs","P","Szo"]],e,[["J","F","M","\xc1","M","J","J","A","Sz","O","N","D"],["jan.","febr.","m\xe1rc.","\xe1pr.","m\xe1j.","j\xfan.","j\xfal.","aug.","szept.","okt.","nov.","dec."],["janu\xe1r","febru\xe1r","m\xe1rcius","\xe1prilis","m\xe1jus","j\xfanius","j\xfalius","augusztus","szeptember","okt\xf3ber","november","december"]],e,[["ie.","isz."],["i. e.","i. sz."],["Krisztus el\u0151tt","id\u0151sz\xe1m\xedt\xe1sunk szerint"]],1,[6,0],["y. MM. dd.","y. MMM d.","y. MMMM d.","y. MMMM d., EEEE"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}",e,e,e],[",","\xa0",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"HUF","Ft","magyar forint",{AUD:[e,"$"],BRL:[e,"R$"],CAD:[e,"$"],CNY:[e,"\xa5"],EUR:[e,"\u20ac"],GBP:[e,"\xa3"],HKD:[e,"$"],HUF:["Ft"],ILS:[e,"\u20aa"],INR:[e,"\u20b9"],KRW:[e,"\u20a9"],MXN:[e,"$"],NZD:[e,"$"],TWD:[e,"NT$"],USD:[e,"$"],VND:[e,"\u20ab"],XCD:[e,"$"]},"ltr",function(t){return 1===t?1:5},[[["\xe9jf\xe9l","d\xe9l","reggel","de.","du.","este","\xe9jjel","hajnal"],e,["\xe9jf\xe9l","d\xe9l","reggel","d\xe9lel\u0151tt","d\xe9lut\xe1n","este","\xe9jjel","hajnal"]],e,["00:00","12:00",["06:00","09:00"],["09:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","04:00"],["04:00","06:00"]]]]}("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window)},"O+eH":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.AnimationFrameAction=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?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}(n("2tF/").AsyncAction)},O3uf:function(t,e,n){var r=n("RJeW"),i=n("eoPS");t.exports=function(t){var e=r(t),n=r(i(e,60)).valueOf()-e.valueOf();return Math.round(n/6048e5)}},O8cK:function(t,e,n){var r=n("yNUO"),i=n("1CCG"),o=n("DT56");t.exports=function(t,e){var n=r(t),s=r(e),a=o(n,s),c=Math.abs(i(n,s));return n.setDate(n.getDate()-a*c),a*(c-(o(n,s)===-a))}},OAkW:function(t,e,n){"use strict";e.subscribeToArray=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},OBTA:function(t,e,n){var r=n("yNUO"),i=n("VBar");t.exports=function(t,e){var n=r(t),o=Number(e),s=n.getFullYear(),a=n.getDate(),c=new Date(0);c.setFullYear(s,o,15),c.setHours(0,0,0,0);var l=i(c);return n.setMonth(o,Math.min(a,l)),n}},OHRA:function(t,e,n){"use strict";var r=n("UNqx");e.mergeMapTo=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?r.mergeMap((function(){return t}),e,n):("number"==typeof e&&(n=e),r.mergeMap((function(){return t}),n))}},OQgR:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return h}));var r=n("7o/Q"),i=n("quSY"),o=n("HDdC"),s=n("XNiG");function a(t,e,n,r){return i=>i.lift(new c(t,e,n,r))}class c{constructor(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}call(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))}}class l extends r.a{constructor(t,e,n,r,i){super(t),this.keySelector=e,this.elementSelector=n,this.durationSelector=r,this.subjectSelector=i,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}_next(t){let e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)}_group(t,e){let n=this.groups;n||(n=this.groups=new Map);let r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(o){this.error(o)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new s.b,n.set(e,i);const t=new h(e,i,this);if(this.destination.next(t),this.durationSelector){let t;try{t=this.durationSelector(new h(e,i))}catch(o){return void this.error(o)}this.add(t.subscribe(new u(e,i,this)))}}i.closed||i.next(r)}_error(t){const e=this.groups;e&&(e.forEach((e,n)=>{e.error(t)}),e.clear()),this.destination.error(t)}_complete(){const t=this.groups;t&&(t.forEach((t,e)=>{t.complete()}),t.clear()),this.destination.complete()}removeGroup(t){this.groups.delete(t)}unsubscribe(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&super.unsubscribe())}}class u extends r.a{constructor(t,e,n){super(e),this.key=t,this.group=e,this.parent=n}_next(t){this.complete()}_unsubscribe(){const{parent:t,key:e}=this;this.key=this.parent=null,t&&t.removeGroup(e)}}class h extends o.a{constructor(t,e,n){super(),this.key=t,this.groupSubject=e,this.refCountSubscription=n}_subscribe(t){const e=new i.a,{refCountSubscription:n,groupSubject:r}=this;return n&&!n.closed&&e.add(new d(n)),e.add(r.subscribe(t)),e}}class d extends i.a{constructor(t){super(),this.parent=t,t.count++}unsubscribe(){const t=this.parent;t.closed||this.closed||(super.unsubscribe(),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())}}},OsOA:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setSeconds(59,999),e}},OsX3:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("D0XW"),i=n("7o/Q"),o=n("z+Ro");function s(t){let e=arguments.length,n=r.a;Object(o.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);let i=null;e>=2&&(i=arguments[1]);let s=Number.POSITIVE_INFINITY;return e>=3&&(s=arguments[2]),function(e){return e.lift(new a(t,i,s,n))}}class a{constructor(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}call(t,e){return e.subscribe(new l(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class c{constructor(){this.buffer=[]}}class l extends i.a{constructor(t,e,n,r,i){super(t),this.bufferTimeSpan=e,this.bufferCreationInterval=n,this.maxBufferSize=r,this.scheduler=i,this.contexts=[];const o=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly)this.add(o.closeAction=i.schedule(u,e,{subscriber:this,context:o,bufferTimeSpan:e}));else{const t={bufferTimeSpan:e,bufferCreationInterval:n,subscriber:this,scheduler:i};this.add(o.closeAction=i.schedule(d,e,{subscriber:this,context:o})),this.add(i.schedule(h,n,t))}}_next(t){const e=this.contexts,n=e.length;let r;for(let i=0;i<n;i++){const n=e[i],o=n.buffer;o.push(t),o.length==this.maxBufferSize&&(r=n)}r&&this.onBufferFull(r)}_error(t){this.contexts.length=0,super._error(t)}_complete(){const{contexts:t,destination:e}=this;for(;t.length>0;){const n=t.shift();e.next(n.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(t){this.closeContext(t);const e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();const e=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(u,e,{subscriber:this,context:t,bufferTimeSpan:e}))}}openContext(){const t=new c;return this.contexts.push(t),t}closeContext(t){this.destination.next(t.buffer);const e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)}}function u(t){const e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function h(t){const{bufferCreationInterval:e,bufferTimeSpan:n,subscriber:r,scheduler:i}=t,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(d,n,{subscriber:r,context:o})),this.schedule(t,e))}function d(t){const{subscriber:e,context:n}=t;e.closeContext(n)}},"P+eR":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("Q1FS"),o=n("zvlq"),s=n("p0+S");e.SubscribeOnObservable=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=o.asap);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!s.isNumeric(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=o.asap),i}return r(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=o.asap),new e(t,n,r)},e.dispatch=function(t){return this.add(t.source.subscribe(t.subscriber))},e.prototype._subscribe=function(t){return this.scheduler.schedule(e.dispatch,this.delayTime,{source:this.source,subscriber:t})},e}(i.Observable)},P0S7:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("2Vo4"),i=n("LRne"),o=n("24nb"),s=n("MCLT"),a=n("Fr4G"),c=n("yrbL"),l=n("dNeE"),u=n("AytR"),h=n("ywEm"),d=n("fXoL"),f=n("tk/3");let p=(()=>{class t{constructor(t,e,n,i){this._entityService=t,this._userService=e,this._http=n,this._ssr=i,this._startNewQuiz=new r.a(!1),this.$startNewQuiz=this._startNewQuiz.asObservable(),this._quizComplete=new r.a(null),this.$quizComplete=this._quizComplete.asObservable(),this._changeLessonProgressStage=new r.a(null),this.$changeLessonProgressStage=this._changeLessonProgressStage.asObservable(),this.today=null,this._ssr.isBrowser&&this.setCurrentTimestamp()}getCustomerInfo(){return this._entityService.getEntityInfo("portal_member",{columns:["**"],limit:1,offset:0,filter_by:[{attribute:"id",operator:"=",value:this._userService.client.portal_member.id}],search_by:[]}).pipe(Object(c.map)(t=>t[0]))}getOrders(t=null){let e={columns:["*"],limit:1e3,filter_by:[]};return void 0===t&&null===t||(t.portal_member_id&&Object(s.isNumber)(t.customer)&&(t.portal_member_id=[t.portal_member_id]),e.filter_by.push({attribute:"portal_member_id",operator:"in",value:t.portal_member_id})),this._entityService.getEntity("content_creator",e)}getSingleCustomerOrders(t){let e={columns:["*"],limit:1e3,order_by:[{column:"occurred_at",ascending:!0}]};return t&&(e.filter_by=[{attribute:"ownerships.course_id",operator:"=",value:t}]),this._entityService.getEntity("order",e)}setLessonProgress(t,e=3){return Object(i.a)(this.getLessonProgress(t).subscribe(t=>{}))}updateLessonView(t){let e;return Object(i.a)(this.getLessonProgress(t).subscribe(t=>(e=t[0],null===e.started_at&&(e.started_at=(new Date).getTime()),e.view_count=e.view_count+1,this._entityService.updateEntity("customer_lesson_progress",e).subscribe(t=>{}))))}setStartDate(t,e,n){let r;return Object(i.a)(this.getLessonProgress(t).subscribe(t=>(r=t[0],e&&(r.started_at=e),n&&(r.lesson_progress_id=n),r.view_count=r.view_count+1,this._entityService.updateEntity("customer_lesson_progress",r).subscribe(t=>{}))))}setCompleteDate(t,e,n){let r;return Object(i.a)(this.getLessonProgress(t).subscribe(t=>(r=t[0],e&&(r.completed_at=e),n&&(r.lesson_progress_id=n),this._entityService.updateEntity("customer_lesson_progress",r).subscribe(t=>{}))))}calculateCourseProgress(t,e){let n=0,r=0;t.modules.sort(this.entityCompareByOrder);for(let i=0;i<t.modules.length;i++){let o=t.modules[i],s=o.lessons.length,a=0;o.lessons.sort(this.entityCompareByOrder);for(let n=0;n<o.lessons.length;n++){let r=o.lessons[n];r.progress_stage=e[t.modules[i].lessons[n].id],r.linkable=!0,3===e[r.id]?a++:t.next_lesson_id||(t.next_lesson_id=r.id),t.last_lesson_id=r.id}t.modules[i].lesson_count=s,t.modules[i].lesson_count_completed=a,t.modules[i].lesson_progress=Math.round(100*a/s),n+=s,r+=a}return t.lesson_count=n,t.lesson_count_completed=r,t.lesson_progress=Math.round(100*r/n),isNaN(t.lesson_progress)&&(t.lesson_progress=0),t}fillCourseLessonCount(t){let e=0;for(let n=0;n<t.modules.length;n++){let r=t.modules[n].lessons.length;t.modules[n].lesson_count=r,e+=r}return t.lesson_count=e,t}entityCompareByOrder(t,e){return t.order<e.order?-1:t.order>e.order?1:0}getAllLessonProgressData(t=this._userService.portal_member_id){return this._entityService.getEntityInfo("customer_lesson_progress",{columns:["*"],limit:1e4,offset:0,filter_by:[{attribute:"portal_member_id",operator:"=",value:t}],search_by:[]})}getLessonProgress(t){return this._entityService.getEntityInfo("customer_lesson_progress",{columns:["**"],limit:1,offset:0,filter_by:[{attribute:"lesson_id",operator:"=",value:t},{attribute:"portal_member_id",operator:"=",value:this._userService.portal_member_id}],search_by:[]})}getSettingsDesignOnLogin(){return this._http.get(u.a.apiUrl+"/settings/design?token=no").pipe(Object(c.map)(t=>t),Object(c.catchError)(t=>Object(l.throwError)(t.message||"Server error (getListByTypeID - create)")))}getSettingsOnLogin(){return this._http.get(u.a.apiUrl+"/settings/login?token=no").pipe(Object(c.map)(t=>t),Object(c.catchError)(t=>Object(l.throwError)(t.message||"Server error (getListByTypeID - create)")))}getCurrentTimestamp(){return this._http.get(u.a.apiUrl+"/current_timestamp/get").pipe(Object(c.map)(t=>t),Object(c.catchError)(t=>Object(l.throwError)(t.message||"Server error (getListByTypeID - create)")))}setCurrentTimestamp(){this.getCurrentTimestamp().subscribe(t=>{this.today=t.result})}startNewQuiz(t){this._startNewQuiz.next(t)}getTranslateToModulesAndLessonsCount(t,e){return 0===t?"COURSES_LIST_PAGE.course_list_more_five_"+e+"s_number_label":1===t?"COURSES_LIST_PAGE.course_list_one_"+e+"_number_label":t>1&&t<5?"COURSES_LIST_PAGE.course_list_less_five_"+e+"s_number_label":"COURSES_LIST_PAGE.course_list_more_five_"+e+"s_number_label"}getTranslateToQuizzesCount(t){return 0===t?"COURSES_LIST_PAGE.course_list_more_five_quizzes_number_label":1===t?"COURSES_LIST_PAGE.course_list_one_quiz_number_label":t>1&&t<5?"COURSES_LIST_PAGE.course_list_less_five_quizzes_number_label":"COURSES_LIST_PAGE.course_list_more_five_quizzes_number_label"}getCountOfQuizAndLessons(t,e){let n=0;return e.forEach(e=>{e.type_id===t&&n++}),n}changeLessonProgressStage(t){this._changeLessonProgressStage.next(t)}quizComplete(t){this._quizComplete.next(t)}}return t.\u0275fac=function(e){return new(e||t)(d["\u0275\u0275inject"](o.a),d["\u0275\u0275inject"](a.a),d["\u0275\u0275inject"](f.b),d["\u0275\u0275inject"](h.a))},t.\u0275prov=d["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},PK5m:function(t,e,n){var r=n("CXhC");t.exports=function(){return r(new Date)}},PMbC:function(t,e,n){"use strict";var r=n("C20g"),i=n("6qA3"),o=n("4ik+"),s=n("Q1FS");e.partition=function(t,e,n){return[o.filter(e,n)(new s.Observable(i.subscribeTo(t))),o.filter(r.not(e,n))(new s.Observable(i.subscribeTo(t)))]}},PZkE:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("/uUt");function i(t,e){return Object(r.a)((n,r)=>e?e(n[t],r[t]):n[t]===r[t])}},PfrF:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("quSY"),i=n("zx2A");function o(t){return function(e){return e.lift(new s(t))}}class s{constructor(t){this.closingSelector=t}call(t,e){return e.subscribe(new a(t,this.closingSelector))}}class a extends i.b{constructor(t,e){super(t),this.closingSelector=e,this.subscribing=!1,this.openBuffer()}_next(t){this.buffer.push(t)}_complete(){const t=this.buffer;t&&this.destination.next(t),super._complete()}_unsubscribe(){this.buffer=void 0,this.subscribing=!1}notifyNext(){this.openBuffer()}notifyComplete(){this.subscribing?this.complete():this.openBuffer()}openBuffer(){let t,{closingSubscription:e}=this;e&&(this.remove(e),e.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{const{closingSelector:e}=this;t=e()}catch(n){return this.error(n)}e=new r.a,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Object(i.c)(t,new i.a(this))),this.subscribing=!1}}},PqYM:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("D0XW"),o=n("Y7HM"),s=n("z+Ro");function a(t=0,e,n){let a=-1;return Object(o.a)(e)?a=Number(e)<1?1:Number(e):Object(s.a)(e)&&(n=e),Object(s.a)(n)||(n=i.a),new r.a(e=>{const r=Object(o.a)(t)?t:+t-n.now();return n.schedule(c,r,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},Pu5f:function(t,e,n){var r=n("yNUO"),i=n("l0SJ"),o=n("1vin");t.exports=function(t){var e=r(t);return i(e).getTime()===o(e).getTime()}},PvkQ:function(t,e,n){var r=n("9WSG");t.exports=function(t){return r(new Date,t)}},Q1FS:function(t,e,n){"use strict";var r=n("yx2s"),i=n("Xwq/"),o=n("zfKp"),s=n("9AGB"),a=n("n3uD");function c(t){if(t||(t=a.config.Promise||Promise),!t)throw new Error("no Promise impl found");return t}e.Observable=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,o=i.toSubscriber(t,e,n);if(o.add(r?r.call(o,this.source):this.source||a.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.config.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.config.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),r.canReportError(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=c(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[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=c(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}()},Q5nM:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=e.getMonth();return e.setMonth(n-n%3,1),e.setHours(0,0,0,0),e}},QUyD:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("1pIY"),o=n("FWf1"),s=n("nzqU");e.bufferTime=function(t){var e=arguments.length,n=i.async;s.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),function(e){return e.lift(new a(t,r,o,n))}};var a=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),c=function(){return function(){this.buffer=[]}}(),l=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly)s.add(a.closeAction=o.schedule(u,n,{subscriber:s,context:a,bufferTimeSpan:n}));else{var c={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(a.closeAction=o.schedule(d,n,{subscriber:s,context:a})),s.add(o.schedule(h,r,c))}return s}return r(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan;this.add(t.closeAction=this.scheduler.schedule(u,n,{subscriber:this,context:t,bufferTimeSpan:n}))}},e.prototype.openContext=function(){var t=new c;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(o.Subscriber);function u(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function h(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(d,n,{subscriber:r,context:o})),this.schedule(t,e))}function d(t){t.subscriber.closeContext(t.context)}},QXXb:function(t,e,n){var r=n("dJQg");t.exports=function(t){return r(t,{weekStartsOn:1})}},QY7M:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.AnimationFrameScheduler=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n("NTcF").AsyncScheduler)},Qlto:function(t,e,n){"use strict";var r=n("B/hR");e.distinctUntilKeyChanged=function(t,e){return r.distinctUntilChanged((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}},Qn8I:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("Cfvw"),o=n("EY2u");function s(t,e){return new r.a(n=>{let r,s;try{r=t()}catch(c){return void n.error(c)}try{s=e(r)}catch(c){return void n.error(c)}const a=(s?Object(i.a)(s):o.a).subscribe(n);return()=>{a.unsubscribe(),r&&r.unsubscribe()}})}},QqCr:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("HDdC"),i=n("NHP+"),o=n("lJxs"),s=n("8Qeq"),a=n("DH7j"),c=n("z+Ro");function l(t,e,n){if(e){if(!Object(c.a)(e))return(...r)=>l(t,n)(...r).pipe(Object(o.a)(t=>Object(a.a)(t)?e(...t):e(t)));n=e}return function(...e){const o=this;let a;const c={context:o,subject:a,callbackFunc:t,scheduler:n};return new r.a(r=>{if(n)return n.schedule(u,0,{args:e,subscriber:r,params:c});if(!a){a=new i.a;const n=(...t)=>{a.next(t.length<=1?t[0]:t),a.complete()};try{t.apply(o,[...e,n])}catch(l){Object(s.a)(a)?a.error(l):console.warn(l)}}return a.subscribe(r)})}}function u(t){const{args:e,subscriber:n,params:r}=t,{callbackFunc:o,context:s,scheduler:a}=r;let{subject:c}=r;if(!c){c=r.subject=new i.a;const t=(...t)=>{this.add(a.schedule(h,0,{value:t.length<=1?t[0]:t,subject:c}))};try{o.apply(s,[...e,t])}catch(l){c.error(l)}}this.add(c.subscribe(n))}function h(t){const{value:e,subject:n}=t;n.next(e),n.complete()}},QtHX:function(t,e,n){"use strict";var r=n("UNqx"),i=n("yoF8");e.mergeAll=function(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),r.mergeMap(i.identity,t)}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return l})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return u})),n.d(e,"m",(function(){return f})),n.d(e,"n",(function(){return s})),n.d(e,"o",(function(){return v})),n.d(e,"p",(function(){return y}));class r{}class i{}const o="*";function s(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function c(t,e=null){return{type:3,steps:t,options:e}}function l(t,e=null){return{type:2,steps:t,options:e}}function u(t){return{type:6,styles:t,offset:null}}function h(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t){return{type:5,steps:t}}function f(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function p(t=null){return{type:9,options:t}}function m(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function g(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){g(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class v{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const i=this.players.length;0==i?g(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const y="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",(function(){return me})),n.d(e,"b",(function(){return be}));var r=n("fXoL"),i=n("jhN1"),o=n("R0Ic");function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new o.d;case 1:return t[0];default:return new o.o(t)}}function c(t,e,n,r,i={},s={}){const a=[],c=[];let l=-1,u=null;if(r.forEach(t=>{const n=t.offset,r=n==l,h=r&&u||{};Object.keys(t).forEach(n=>{let r=n,c=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),c){case o.p:c=i[n];break;case o.a:c=s[n];break;default:c=e.normalizeStyleValue(n,r,c,a)}h[r]=c}),r||c.push(h),u=h,l=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&u(n,"start",t)));break;case"done":t.onDone(()=>r(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&u(n,"destroy",t)))}}function u(t,e,n){const r=n.totalTime,i=h(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 h(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function d(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function f(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let p=(t,e)=>!1,m=(t,e)=>!1,g=(t,e,n)=>[];const b=s();(b||"undefined"!=typeof Element)&&(p=(t,e)=>t.contains(e),m=(()=>{if(b||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):m}})(),g=(t,e,n)=>{let r=[];if(n)r.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&r.push(n)}return r});let v=null,y=!1;function _(t){v||(v=("undefined"!=typeof document?document.body:null)||{},y=!!v.style&&"WebkitAppearance"in v.style);let e=!0;return v.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in v.style,!e&&y)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in v.style),e}const w=m,S=p,x=g;function C(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let O=(()=>{class t{validateStyleProperty(t){return _(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,i,s=[],a){return new o.d(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{}return t.NOOP=new O,t})();function E(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:k(parseFloat(e[1]),e[2])}function k(t,e){switch(e){case"s":return 1e3*t;default:return t}}function A(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,i=0,o="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=k(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=k(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else r=t;if(!n){let n=!1,o=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:i,easing:o}}(t,e,n)}function D(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function j(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else D(t,n);return n}function I(t,e,n){return n?e+":"+n+";":""}function P(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=I(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=I(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function M(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=G(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),s()&&P(t))}function N(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=G(e);t.style[n]=""}),s()&&P(t))}function F(t){return Array.isArray(t)?1==t.length?t[0]:Object(o.j)(t):t}const R=new RegExp("{{\\s*(.+?)\\s*}}","g");function L(t){let e=[];if("string"==typeof t){let n;for(;n=R.exec(t);)e.push(n[1]);R.lastIndex=0}return e}function V(t,e,n){const r=t.toString(),i=r.replace(R,(t,r)=>{let i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function H(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const B=/-+([a-z0-9])/g;function G(t){return t.replace(B,(...t)=>t[1].toUpperCase())}function z(t,e){return 0===t||0===e}function W(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],s=[];if(r.forEach(t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]}),s.length)for(var i=1;i<e.length;i++){let n=e[i];s.forEach((function(e){n[e]=q(t,e)}))}}return e}function U(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function q(t,e){return window.getComputedStyle(t)[e]}function X(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=r[1],o=r[2],s=r[3];e.push(Y(i,s)),"<"!=o[0]||"*"==i&&"*"==s||e.push(Y(s,i))}(t,n,e)):n.push(t),n}const $=new Set(["true","1"]),K=new Set(["false","0"]);function Y(t,e){const n=$.has(t)||K.has(t),r=$.has(e)||K.has(e);return(i,o)=>{let s="*"==t||t==i,a="*"==e||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?$.has(t):K.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?$.has(e):K.has(e)),s&&a}}const Q=new RegExp("s*:selfs*,?","g");function J(t,e,n){return new Z(t).build(e,n)}class Z{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),U(this,F(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const i=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,r+=i.depCount,o.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:o,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,o=r||{};if(n.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{L(e[t]).forEach(t=>{o.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=H(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=U(this,F(t.animation),e);return{type:1,matchers:X(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:nt(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>U(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const i=t.steps.map(t=>{e.currentTime=n;const i=U(this,t,e);return r=Math.max(r,e.currentTime),i});return e.currentTime=r,{type:3,steps:i,options:nt(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return rt(A(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=rt(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||A(r,e),rt(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let i=t.styles?t.styles:Object(o.l)({});if(5==i.type)r=this.visitKeyframes(i,e);else{let i=t.styles,s=!1;if(!i){s=!0;const t={};n.easing&&(t.easing=n.easing),i=Object(o.l)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(i,e);a.isEmptyStep=s,r=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==o.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,i=null;return n.forEach(t=>{if(et(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},i=L(t);i.length&&i.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let o=!1,s=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(et(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(r++,l=n.offset=c),s=s||l<0||l>1,o=o||l<a,a=l,i.push(l),n});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");const l=t.steps.length;let u=0;r>0&&r<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(u=1/(l-1));const h=l-1,d=e.currentTime,f=e.currentAnimateTimings,p=f.duration;return c.forEach((t,r)=>{const o=u>0?r==h?1:u*r:i[r],s=o*p;e.currentTime=d+f.delay+s,f.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:U(this,F(t.animation),e),options:nt(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:nt(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:nt(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[i,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Q,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,d(e.collectedStyles,e.currentQuerySelector,{});const s=U(this,F(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:nt(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:A(t.timings,e.errors,!0);return{type:12,animation:U(this,F(t.animation),e),timings:n,options:null}}}class tt{constructor(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 et(t){return!Array.isArray(t)&&"object"==typeof t}function nt(t){var e;return t?(t=D(t)).params&&(t.params=(e=t.params)?D(e):null):t={},t}function rt(t,e,n){return{duration:t,delay:e,easing:n}}function it(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class ot{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const st=new RegExp(":enter","g"),at=new RegExp(":leave","g");function ct(t,e,n,r,i,o={},s={},a,c,l=[]){return(new lt).buildKeyframes(t,e,n,r,i,o,s,a,c,l)}class lt{buildKeyframes(t,e,n,r,i,o,s,a,c,l=[]){c=c||new ot;const u=new ht(t,e,c,r,i,l,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),U(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[it(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const i=null!=n.duration?E(n.duration):null,o=null!=n.delay?E(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),U(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const i=t.options;if(i&&(i.params||i.delay)&&(r=e.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ut);const t=E(i.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>U(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?E(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);i&&s.delayNextStep(i),U(this,o,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return A(e.params?V(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const 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}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(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}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},i=r.delay?E(r.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((n,r)=>{e.currentQueryIndex=r;const s=e.createSubContext(t.options,n);i&&s.delayNextStep(i),n===e.element&&(a=s.currentTimeline),U(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;U(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}const ut={};class ht{constructor(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ut,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new dt(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=E(n.duration)),null!=n.delay&&(r.delay=E(n.delay));const i=n.params;if(i){let t=r.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=V(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,i=new ht(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=ut,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new ft(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,i,o){let s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(st,"."+this._enterClassName)).replace(at,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),s.push(...e)}return i||0!=s.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class dt{constructor(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()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new dt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||o.a,this._currentKeyframe[t]=o.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const i=r&&r.params||{},s=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=o.a})):j(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(t=>{const e=V(s[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:o.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((i,s)=>{const a=j(i,!0);Object.keys(a).forEach(n=>{const r=a[n];r==o.p?t.add(n):r==o.a&&e.add(n)}),n||(a.offset=s/this.duration),r.push(a)});const i=t.size?H(t.values()):[],s=e.size?H(e.values()):[];if(n){const t=r[0],e=D(t);t.offset=0,e.offset=1,r=[t,e]}return it(this.element,r,i,s,this.duration,this.startTime,this.easing,!1)}}class ft extends dt{constructor(t,e,n,r,i,o,s=!1){super(t,e,o.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],o=n+e,s=e/o,a=j(t[0],!1);a.offset=0,i.push(a);const c=j(t[0],!1);c.offset=pt(s),i.push(c);const l=t.length-1;for(let r=1;r<=l;r++){let s=j(t[r],!1);s.offset=pt((e+s.offset*n)/o),i.push(s)}n=o,e=0,r="",t=i}return it(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function pt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class mt{}class gt extends mt{normalizePropertyName(t,e){return G(t)}normalizeStyleValue(t,e,n,r){let i="";const o=n.toString().trim();if(bt[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+i}}const bt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("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 vt(t,e,n,r,i,o,s,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const yt={};class _t{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,i){return t.some(t=>t(e,n,r,i))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}build(t,e,n,r,i,o,s,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||yt,f=this.buildStyles(n,s&&s.params||yt,u),p=a&&a.params||yt,m=this.buildStyles(r,p,u),g=new Set,b=new Map,v=new Map,y="void"===r,_={params:Object.assign(Object.assign({},h),p)},w=l?[]:ct(t,e,this.ast.animation,i,o,f,m,_,c,u);let S=0;if(w.forEach(t=>{S=Math.max(t.duration+t.delay,S)}),u.length)return vt(e,this._triggerName,n,r,y,f,m,[],[],b,v,S,u);w.forEach(t=>{const n=t.element,r=d(b,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const i=d(v,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&g.add(n)});const x=H(g.values());return vt(e,this._triggerName,n,r,y,f,m,w,x,b,v,S)}}class wt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=D(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let o=i[t];o.length>1&&(o=V(o,r,e)),n[t]=o})}}),n}}class St{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new wt(t.style,t.options&&t.options.params||{})}),xt(this.states,"true","1"),xt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new _t(t,e,this.states))}),this.fallbackTransition=new _t(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(i=>i.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function xt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Ct=new ot;class Ot{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=J(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}_buildPlayer(t,e,n){const r=t.element,i=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],i=this._animations[t];let s;const c=new Map;if(i?(s=ct(this._driver,e,i,"ng-enter","ng-leave",{},{},n,Ct,r),s.forEach(t=>{const e=d(c,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),s=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));c.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,o.a)})});const l=a(s.map(t=>{const e=c.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const i=h(e,"","","");return l(this._getPlayer(t),n,i,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const 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)}}}const Tt=[],Et={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class At{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=D(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Dt=new At("void");class jt{constructor(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,Lt(e,this._hostClassName)}listen(t,e,n,r){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 i;const o=d(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Lt(t,"ng-trigger"),Lt(t,"ng-trigger-"+e),a[e]=Dt),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(s);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const i=this._getTrigger(e),o=new Pt(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Lt(t,"ng-trigger"),Lt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const c=new At(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),s[e]=c,a||(a=Dt),"void"!==c.value&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!e.hasOwnProperty(r)||t[r]!==e[r])return!1}return!0}(a.params,c.params)){const e=[],n=i.matchStyles(a.value,a.params,e),r=i.matchStyles(c.value,c.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{N(t,n),M(t,r)})}return}const l=d(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=i.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!r)return;u=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:o,isFallbackTransition:h}),h||(Lt(t,"ng-animate-queued"),o.onStart(()=>{Vt(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}}),this.players.push(o),l.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const i=this._engine.statesByElement.get(t);if(i){const o=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const i=this._triggers[r].fallbackTransition,o=this._engine.statesByElement.get(t)[r]||Dt,s=new At("void"),a=new Pt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:i,fromState:o,toState:s,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==Et||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Lt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,o=this._elementListeners.get(i);o&&o.forEach(e=>{if(e.name==n.triggerName){const r=h(i,n.triggerName,n.fromState.value,n.toState.value);r._data=t,l(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class It{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new jt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let 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}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r<t.length;r++){const i=n[t[r]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,r){if(Mt(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1}insertNode(t,e,n,r){if(!Mt(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Lt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Vt(t,"ng-animate-disabled"))}removeNode(t,e,n,r){if(Mt(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,i){return Mt(e)?this._fetchNamespace(t).listen(e,n,r,i):()=>{}}_buildInstruction(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)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Et,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Lt(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new ot,r=[],i=new Map,s=[],c=new Map,l=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)h.add(e[n])});const f=this.bodyNode,p=Array.from(this.statesByElement.keys()),m=Rt(p,this.collectedEnterElements),g=new Map;let b=0;m.forEach((t,e)=>{const n="ng-enter"+b++;g.set(e,n),t.forEach(t=>Lt(t,n))});const v=[],y=new Set,_=new Set;for(let o=0;o<this.collectedLeaveElements.length;o++){const t=this.collectedLeaveElements[o],e=t.__ng_removed;e&&e.setForRemoval&&(v.push(t),y.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>y.add(t)):_.add(t))}const w=new Map,S=Rt(p,Array.from(y));S.forEach((t,e)=>{const n="ng-leave"+b++;w.set(e,n),t.forEach(t=>Lt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Vt(t,n))}),S.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Vt(t,n))}),v.forEach(t=>{this.processLeaveNode(t)})});const x=[],C=[];for(let o=this._namespaceList.length-1;o>=0;o--)this._namespaceList[o].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(x.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const o=!f||!this.driver.containsElement(f,i),a=w.get(i),h=g.get(i),p=this._buildInstruction(t,n,h,a,o);if(p.errors&&p.errors.length)C.push(p);else{if(o)return e.onStart(()=>N(i,p.fromStyles)),e.onDestroy(()=>M(i,p.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>N(i,p.fromStyles)),e.onDestroy(()=>M(i,p.toStyles)),void r.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,p.timelines),s.push({instruction:p,player:e,element:i}),p.queriedElements.forEach(t=>d(c,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=l.get(e);t||l.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=u.get(e);r||u.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const O=new Map,T=new Map;s.forEach(t=>{const e=t.element;n.has(e)&&(T.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(O,e,[]).push(t),t.destroy()})});const E=v.filter(t=>Bt(t,l,u)),k=new Map;Ft(k,this.driver,_,u,o.a).forEach(t=>{Bt(t,l,u)&&E.push(t)});const A=new Map;m.forEach((t,e)=>{Ft(A,this.driver,new Set(t),l,o.p)}),E.forEach(t=>{const e=k.get(t),n=A.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const D=[],j=[],I={};s.forEach(t=>{const{element:e,player:o,instruction:s}=t;if(n.has(e)){if(h.has(e))return o.onDestroy(()=>M(e,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);let t=I;if(T.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=T.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>T.set(e,t))}const n=this._buildAnimation(o.namespaceId,s,O,i,A,k);if(o.setRealPlayer(n),t===I)D.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=a(e)),r.push(o)}}else N(e,s.fromStyles),o.onDestroy(()=>M(e,s.toStyles)),j.push(o),h.has(e)&&r.push(o)}),j.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let o=0;o<v.length;o++){const t=v[o],e=t.__ng_removed;if(Vt(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(c.size){let e=c.get(t);e&&e.length&&n.push(...e);let r=this.driver.query(t,".ng-animating",!0);for(let t=0;t<r.length;t++){let e=c.get(r[t]);e&&e.length&&n.push(...e)}}const r=n.filter(t=>!t.destroyed);r.length?Ht(this,t,r):this.processLeaveNode(t)}return v.length=0,D.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),D}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,i){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||"void"==i;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&o.push(e)})}}return(n||r)&&(o=o.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),o}_beforeAnimationBuild(t,e,n){const r=e.element,i=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==r,c=d(n,t,[]);this._getPreviousPlayers(t,a,i,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}N(r,e.fromStyles)}_buildAnimation(t,e,n,r,i,s){const l=e.triggerName,u=e.element,h=[],f=new Set,p=new Set,m=e.timelines.map(e=>{const a=e.element;f.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new o.d(e.duration,e.delay);const m=a!==u,g=function(t){const e=[];return function t(e,n){for(let r=0;r<e.length;r++){const i=e[r];i instanceof o.o?t(i.players,n):n.push(i)}}(t,e),e}((n.get(a)||Tt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),b=i.get(a),v=s.get(a),y=c(0,this._normalizer,0,e.keyframes,b,v),_=this._buildPlayer(e,y,g);if(e.subTimeline&&r&&p.add(a),m){const e=new Pt(t,l,a);e.setRealPlayer(_),h.push(e)}return _});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),f.forEach(t=>Lt(t,"ng-animating"));const g=a(m);return g.onDestroy(()=>{f.forEach(t=>Vt(t,"ng-animating")),M(u,e.toStyles)}),p.forEach(t=>{d(r,t,[]).push(g)}),g}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new o.d(t.duration,t.delay)}}class Pt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new o.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>l(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Mt(t){return t&&1===t.nodeType}function Nt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ft(t,e,n,r,i){const o=[];n.forEach(t=>o.push(Nt(t)));const s=[];r.forEach((n,r)=>{const o={};n.forEach(t=>{const n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=kt,s.push(r))}),t.set(r,o)});let a=0;return n.forEach(t=>Nt(t,o[a++])),s}function Rt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let o=i.get(e);if(o)return o;const s=e.parentNode;return o=n.has(s)?s:r.has(s)?1:t(s),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}function Lt(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Vt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Ht(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Bt(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(t=>i.add(t)):e.set(t,r),n.delete(t),!0}class Gt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new It(t,e,n),this._timelineEngine=new Ot(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,i){const o=t+"-"+r;let s=this._triggerCache[o];if(!s){const t=[],e=J(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e){return new St(t,e)}(r,e),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,i]=f(n);this._timelineEngine.command(t,e,i,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,i){if("@"==n.charAt(0)){const[t,r]=f(n);return this._timelineEngine.listen(t,e,r,i)}return this._transitionEngine.listen(t,e,n,r,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function zt(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Ut(e[0]),e.length>1&&(r=Ut(e[e.length-1]))):e&&(n=Ut(e)),n||r?new Wt(t,n,r):null}let Wt=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&M(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(M(this._element,this._initialStyles),this._endStyles&&(M(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(N(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(N(this._element,this._endStyles),this._endStyles=null),M(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Ut(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];qt(i)&&(e=e||{},e[i]=t[i])}return e}function qt(t){return"display"===t||"position"===t}class Xt{constructor(t,e,n,r,i,o,s){this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Zt(t,"").trim();n.length&&(function(t,e){let n=0;for(let r=0;r<t.length;r++)","===t.charAt(r)&&n++}(n),e=`${n}, ${e}`),Jt(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Qt(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){$t(this._element,this._name,"paused")}resume(){$t(this._element,this._name,"running")}setPosition(t){const e=Kt(this._element,this._name);this._position=t*this._duration,Jt(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Qt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Zt(t,"").split(","),r=Yt(n,e);r>=0&&(n.splice(r,1),Jt(t,"",n.join(",")))}(this._element,this._name))}}function $t(t,e,n){Jt(t,"PlayState",n,Kt(t,e))}function Kt(t,e){const n=Zt(t,"");return n.indexOf(",")>0?Yt(n.split(","),e):Yt([n],e)}function Yt(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Qt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Jt(t,e,n,r){const i="animation"+e;if(null!=r){const e=t.style[i];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[i]=n}function Zt(t,e){return t.style["animation"+e]}class te{constructor(t,e,n,r,i,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Xt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:q(this.element,n))})}this.currentSnapshot=t}}class ee extends o.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=C(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class ne{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return _(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>C(t));let r=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);r+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const 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";const o=document.createElement("style");return o.innerHTML=r,o}animate(t,e,n,r,i,o=[],s){s&&this._notifyFaultyScrubber();const a=o.filter(t=>t instanceof te),c={};z(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=W(t,e,c));if(0==n)return new ee(t,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=zt(t,e),f=new te(t,e,u,n,r,i,l,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}_notifyFaultyScrubber(){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)}}class re{constructor(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}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class ie{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(oe().toString()),this._cssKeyframesDriver=new ne}validateStyleProperty(t){return _(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,i,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const c={},l=o.filter(t=>t instanceof re);z(n,r)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=zt(t,e=W(t,e=e.map(t=>j(t,!1)),c));return new re(t,e,a,u)}}function oe(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var se=n("ofXK");let ae=(()=>{class t extends o.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:r.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(o.j)(t):t;return ue(this._renderer,null,e,"register",[n]),new ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](r.RendererFactory2),r["\u0275\u0275inject"](se.e))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class ce extends o.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new le(this._id,t,e||{},this._renderer)}}class le{constructor(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)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ue(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function ue(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}let he=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new de("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(r,i,t,e.name,e)};return e.data.animation.forEach(o),new fe(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](r.RendererFactory2),r["\u0275\u0275inject"](Gt),r["\u0275\u0275inject"](r.NgZone))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class de{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class fe extends de{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),o="";return"@"!=i.charAt(0)&&([i,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,r,i,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let pe=(()=>{class t extends Gt{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](se.e),r["\u0275\u0275inject"](T),r["\u0275\u0275inject"](mt))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const me=new r.InjectionToken("AnimationModuleType"),ge=[{provide:T,useFactory:function(){return"function"==typeof oe()?new ie:new ne}},{provide:me,useValue:"BrowserAnimations"},{provide:o.b,useClass:ae},{provide:mt,useFactory:function(){return new gt}},{provide:Gt,useClass:pe},{provide:r.RendererFactory2,useFactory:function(t,e,n){return new he(t,e,n)},deps:[i.g,Gt,r.NgZone]}];let be=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:ge,imports:[i.a]}),t})()},R7wr:function(t,e,n){"use strict";e.isDate=function(t){return t instanceof Date&&!isNaN(+t)}},RJeW:function(t,e,n){var r=n("iWRJ"),i=n("tMf1");t.exports=function(t){var e=r(t),n=new Date(0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),i(n)}},RQwI:function(t,e,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}n.d(e,"a",(function(){return r}))},RmLz:function(t,e,n){"use strict";var r=n("IKMM"),i=n("nzqU");e.startWith=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return i.isScheduler(n)?(t.pop(),function(e){return r.concat(t,e,n)}):function(e){return r.concat(t,e)}}},SKYL:function(t,e,n){var r=n("yNUO");t.exports=function(t){return 6===r(t).getDay()}},SYqL:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n("mrSG"),i=n("9/Zf"),o=n("kdvv"),s=n("6PXS"),a=function(){function t(t){void 0===t&&(t=1e3),this.spans=[],this._maxlen=t}return t.prototype.add=function(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)},t}(),c=function(){function t(t){if(this.traceId=Object(i.g)(),this.spanId=Object(i.g)().substring(16),this.startTimestamp=Object(o.d)(),this.tags={},this.data={},!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return t.prototype.child=function(t){return this.startChild(t)},t.prototype.startChild=function(e){var n=new t(Object(r.a)(Object(r.a)({},e),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},t.prototype.setTag=function(t,e){var n;return this.tags=Object(r.a)(Object(r.a)({},this.tags),((n={})[t]=e,n)),this},t.prototype.setData=function(t,e){var n;return this.data=Object(r.a)(Object(r.a)({},this.data),((n={})[t]=e,n)),this},t.prototype.setStatus=function(t){return this.status=t,this},t.prototype.setHttpStatus=function(t){this.setTag("http.status_code",String(t));var e=function(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(t);return"unknown_error"!==e&&this.setStatus(e),this},t.prototype.isSuccess=function(){return"ok"===this.status},t.prototype.finish=function(t){this.endTimestamp="number"==typeof t?t:Object(o.d)()},t.prototype.toTraceparent=function(){var t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+t},t.prototype.toContext=function(){return Object(s.c)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},t.prototype.updateWithContext=function(t){var e,n,r,i,o;return this.data=null!=(e=t.data)?e:{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=null!=(n=t.spanId)?n:this.spanId,this.startTimestamp=null!=(r=t.startTimestamp)?r:this.startTimestamp,this.status=t.status,this.tags=null!=(i=t.tags)?i:{},this.traceId=null!=(o=t.traceId)?o:this.traceId,this},t.prototype.getTraceContext=function(){return Object(s.c)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},t.prototype.toJSON=function(){return Object(s.c)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},t}()},SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("ngJS"),i=n("NJ4a"),o=n("Lhse"),s=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=t=>{if(t&&"function"==typeof t[s.a])return u=t,t=>{const e=u[s.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(r.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,i.a),t);if(t&&"function"==typeof t[o.a])return e=t,t=>{const n=e[o.a]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},SqDy:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.count=function(t){return function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(i.Subscriber)},SxV6:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("sVev"),i=n("pLZG"),o=n("IzEk"),s=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Object(i.a)((e,n)=>t(e,n,l)):c.a,Object(o.a)(1),n?Object(s.a)(e):Object(a.a)(()=>new r.a))}},Sxl1:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.expand=function(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=o;var s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r(e,t),e.dispatch=function(t){t.subscriber.subscribeToProjection(t.result,t.value,t.index)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);try{var i=(0,this.project)(t,r);this.scheduler?this.destination.add(this.scheduler.schedule(e.dispatch,0,{subscriber:this,result:i,value:t,index:r})):this.subscribeToProjection(i,t,r)}catch(o){n.error(o)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add(i.innerSubscribe(t,new i.SimpleInnerSubscriber(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.SimpleOuterSubscriber);e.ExpandSubscriber=s},"T/FJ":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.every=function(t,e){return function(n){return n.lift(new o(t,e,n))}};var o=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(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.Subscriber)},T2d4:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){if(!(e instanceof Array))throw new TypeError(toString.call(e)+" is not an instance of Array");var n,i,o=r(t).getTime();return e.forEach((function(t){var e=r(t),s=Math.abs(o-e.getTime());(void 0===n||s<i)&&(n=e,i=s)})),n}},TAn0:function(t,e,n){"use strict";var r=n("6aLS"),i=n("yoF8");e.switchAll=function(){return r.switchMap(i.identity)}},Tkif:function(t,e,n){"use strict";var r=n("YK4L");function i(t,e,n){return 0===n?[e]:(t.push(e),t)}e.toArray=function(){return r.reduce(i,[])}},U2p0:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("1pIY"),o=n("R7wr"),s=n("FWf1"),a=n("xKqS");e.delay=function(t,e){void 0===e&&(e=i.async);var n=o.isDate(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(n,e))}};var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&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 u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(a.Notification.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.Notification.createComplete()),this.unsubscribe()},e}(s.Subscriber),u=function(){return function(t,e){this.time=t,this.notification=e}}()},UGPC:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.AsapScheduler=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n("NTcF").AsyncScheduler)},UGaM:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("2Vo4"),i=n("oB13");function o(t){return e=>Object(i.a)(new r.a(t))(e)}},UHp3:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("XNiG"),i=n("D0XW"),o=n("7o/Q"),s=n("Y7HM"),a=n("z+Ro");function c(t){let e=i.a,n=null,r=Number.POSITIVE_INFINITY;return Object(a.a)(arguments[3])&&(e=arguments[3]),Object(a.a)(arguments[2])?e=arguments[2]:Object(s.a)(arguments[2])&&(r=Number(arguments[2])),Object(a.a)(arguments[1])?e=arguments[1]:Object(s.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new l(t,n,r,e))}}class l{constructor(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}call(t,e){return e.subscribe(new h(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))}}class u extends r.b{constructor(){super(...arguments),this._numberOfNextedValues=0}next(t){this._numberOfNextedValues++,super.next(t)}get numberOfNextedValues(){return this._numberOfNextedValues}}class h extends o.a{constructor(t,e,n,r,i){super(t),this.destination=t,this.windowTimeSpan=e,this.windowCreationInterval=n,this.maxWindowSize=r,this.scheduler=i,this.windows=[];const o=this.openWindow();if(null!==n&&n>=0){const t={windowTimeSpan:e,windowCreationInterval:n,subscriber:this,scheduler:i};this.add(i.schedule(p,e,{subscriber:this,window:o,context:null})),this.add(i.schedule(f,n,t))}else this.add(i.schedule(d,e,{subscriber:this,window:o,windowTimeSpan:e}))}_next(t){const e=this.windows,n=e.length;for(let r=0;r<n;r++){const n=e[r];n.closed||(n.next(t),n.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(n))}}_error(t){const e=this.windows;for(;e.length>0;)e.shift().error(t);this.destination.error(t)}_complete(){const t=this.windows;for(;t.length>0;){const e=t.shift();e.closed||e.complete()}this.destination.complete()}openWindow(){const t=new u;return this.windows.push(t),this.destination.next(t),t}closeWindow(t){t.complete();const e=this.windows;e.splice(e.indexOf(t),1)}}function d(t){const{subscriber:e,windowTimeSpan:n,window:r}=t;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function f(t){const{windowTimeSpan:e,subscriber:n,scheduler:r,windowCreationInterval:i}=t,o=n.openWindow();let s={action:this,subscription:null};s.subscription=r.schedule(p,e,{subscriber:n,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function p(t){const{subscriber:e,window:n,context:r}=t;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}},UNqx:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("q3Kh"),o=n("gTqA"),s=n("wjEo");function a(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(a((function(n,r){return o.from(t(n,r)).pipe(i.map((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}e.mergeMap=a;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 l(t,this.project,this.concurrent))},t}();e.MergeMapOperator=c;var l=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(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new s.SimpleInnerSubscriber(this),n=this.destination;n.add(e);var r=s.innerSubscribe(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.SimpleOuterSubscriber);e.MergeMapSubscriber=l,e.flatMap=a},UXbc:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5+tZ");function i(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?Object(r.b)(()=>t,e,n):("number"==typeof e&&(n=e),Object(r.b)(()=>t,n))}},UXun:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("jtHE");function i(t,e,n){let i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:i}){let o,s,a=0,c=!1,l=!1;return function(u){let h;a++,!o||c?(c=!1,o=new r.a(t,e,i),h=o.subscribe(this),s=u.subscribe({next(t){o.next(t)},error(t){c=!0,o.error(t)},complete(){l=!0,s=void 0,o.complete()}}),l&&(s=void 0)):h=o.subscribe(this),this.add(()=>{a--,h.unsubscribe(),h=void 0,s&&!l&&n&&0===a&&(s.unsubscribe(),s=void 0,o=void 0)})}}(i))}},UpIE:function(t,e,n){var r=n("y5a+");t.exports=function(t){return r(t,{weekStartsOn:1})}},"Us+F":function(t,e,n){var r=n("LZbM"),i=n("6DAA");t.exports={distanceInWords:r(),format:i()}},VBar:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=e.getFullYear(),i=e.getMonth(),o=new Date(0);return o.setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()}},VFZO:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.dematerialize=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(i.Subscriber)},VGX7:function(t,e){t.exports=function(t){var e=new Date(t.getTime()),n=e.getTimezoneOffset();return e.setSeconds(0,0),6e4*n+e.getTime()%6e4}},VKeD:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}e.getSymbolIterator=r,e.iterator=r(),e.$$iterator=e.iterator},VLYi:function(t,e,n){"use strict";var r=n("rxKr");e.findIndex=function(t,e){return function(n){return n.lift(new r.FindValueOperator(t,n,!0,e))}}},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("z+Ro"),o=n("bHdf"),s=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(i.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(e)(Object(s.a)(t,n))}},Vf9T:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("1pIY"),o=n("R7wr"),s=n("wjEo");e.timeoutWith=function(t,e,n){return void 0===n&&(n=i.async),function(r){var i=o.isDate(t),s=i?+t-n.now():Math.abs(t);return r.lift(new a(s,i,e,n))}};var a=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),c=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.scheduleTimeout(),s}return r(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(s.innerSubscribe(e,new s.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(s.SimpleOuterSubscriber)},VfN6:function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return S}));var r=n("XNiG"),i=n("fXoL"),o=n("1G5W");const s=i["\u0275NG_DIR_DEF"],a=i["\u0275NG_COMP_DEF"],c=i["\u0275NG_PIPE_DEF"];function l(t){return t[c]||t[a]||t[s]}function u(t){return!!t[i["\u0275NG_PROV_DEF"]]}function h(t){return"function"==typeof t}const d=Symbol("__destroy"),f=Symbol("__decoratorApplied");function p(t){return"string"==typeof t?Symbol("__destroy__"+t):d}function m(t){return!t[f]}function g(t){t[f]=!0}function b(t,e){t[e]||(t[e]=new r.b)}function v(t,e){t[e]&&(t[e].next(),t[e].complete(),t[e]=null)}function y(t){t&&h(t.unsubscribe)&&t.unsubscribe()}function _(t,{arrayName:e,checkProperties:n,blackList:r}){return function(){if(t&&t.call(this),v(this,p()),e)return i=this[e],void(Array.isArray(i)&&i.forEach(y));var i;if(n)for(const t in this)r&&r.includes(t)||y(this[t])}}function w(t={}){return e=>{u(e)?function(t,e){t.prototype.ngOnDestroy=_(t.prototype.ngOnDestroy,e),g(t)}(e,t):function(t,e){if(t.hasOwnProperty("__annotations__"))!function(t,e){const n=function(t){return t.hasOwnProperty(c)?c:t.hasOwnProperty(a)?a:s}(t),r=Object.getOwnPropertyDescriptor(t,n).get;Object.defineProperty(t,n,{get(){const t=r();return m(t)&&(t.onDestroy=_(t.onDestroy,e),g(t)),t}})}(t,e);else{const n=l(t);n.onDestroy=_(n.onDestroy,e),g(n)}}(e,t)}}function S(t,e){return n=>{const r=p(e);return"string"==typeof e?function(t,e,n){const r=t[e];if(!1===h(r))throw new Error(`${t.constructor.name} is using untilDestroyed but doesn't implement ${e}`);b(t,n),t[e]=function(){h(r)&&r.apply(this,arguments),v(this,n),t[e]=r}}(t,e,r):(function(t){const e=t.constructor;if(m(u(e)?e:l(e)))throw new Error("untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator")}(t),b(t,r)),n.pipe(Object(o.a)(t[r]))}}},Vi6O:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.InnerSubscriber=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n("FWf1").Subscriber)},"VrN/":function(t,e,n){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),s=r||i||o,a=s&&(r?document.documentMode||6:+(o||i)[1]),c=!o&&/WebKit\//.test(t),l=c&&/Qt\/\d+\.\d+/.test(t),u=!o&&/Chrome\/(\d+)/.exec(t),h=u&&+u[1],d=/Opera\//.test(t),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),m=/PhantomJS/.test(t),g=f&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),b=/Android/.test(t),v=g||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=g||/Mac/.test(e),_=/\bCrOS\b/.test(t),w=/win/i.test(e),S=d&&t.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(d=!1,c=!0);var x=y&&(l||d&&(null==S||S<12.11)),C=n||s&&a>=9;function O(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var T,E=function(t,e){var n=t.className,r=O(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function k(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function A(t,e){return k(t).appendChild(e)}function D(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)i.appendChild(e[o]);return i}function j(t,e,n,r){var i=D(t,e,n,r);return i.setAttribute("role","presentation"),i}function I(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function P(t){var e;try{e=t.activeElement}catch(Pt){e=t.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function M(t,e){var n=t.className;O(e).test(n)||(t.className+=(n?" ":"")+e)}function N(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!O(n[r]).test(e)&&(e+=" "+n[r]);return e}T=document.createRange?function(t,e,n,r){var i=document.createRange();return i.setEnd(r||t,n),i.setStart(t,e),i}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(Pt){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var F=function(t){t.select()};function R(t){return t.display.wrapper.ownerDocument}function L(t){return R(t).defaultView}function V(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function H(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function B(t,e,n,r,i){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=r||0,s=i||0;;){var a=t.indexOf("\t",o);if(a<0||a>=e)return s+(e-o);s+=a-o,s+=n-s%n,o=a+1}}g?F=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:s&&(F=function(t){try{t.select()}catch(e){}});var G=function(){this.id=null,this.f=null,this.time=0,this.handler=V(this.onTimeout,this)};function z(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}G.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},G.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var W={toString:function(){return"CodeMirror.Pass"}},U={scroll:!1},q={origin:"*mouse"},X={origin:"+move"};function $(t,e,n){for(var r=0,i=0;;){var o=t.indexOf("\t",r);-1==o&&(o=t.length);var s=o-r;if(o==t.length||i+s>=e)return r+Math.min(s,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var K=[""];function Y(t){for(;K.length<=t;)K.push(Q(K)+" ");return K[t]}function Q(t){return t[t.length-1]}function J(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function Z(){}function tt(t,e){var n;return Object.create?n=Object.create(t):(Z.prototype=t,n=new Z),e&&H(e,n),n}var et=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function nt(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||et.test(t))}function rt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&nt(t))||e.test(t):nt(t)}function it(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function st(t){return t.charCodeAt(0)>=768&&ot.test(t)}function at(t,e,n){for(;(n<0?e>0:e<t.length)&&st(t.charAt(e));)e+=n;return e}function ct(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}var lt=null;function ut(t,e,n){var r;lt=null;for(var i=0;i<t.length;++i){var o=t[i];if(o.from<e&&o.to>e)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:lt=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:lt=i)}return null!=r?r:lt}var ht=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(t,e,n){this.level=t,this.from=e,this.to=n}return function(s,a){var c="ltr"==a?"L":"R";if(0==s.length||"ltr"==a&&!t.test(s))return!1;for(var l,u=s.length,h=[],d=0;d<u;++d)h.push((l=s.charCodeAt(d))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var f=0,p=c;f<u;++f){var m=h[f];"m"==m?h[f]=p:p=m}for(var g=0,b=c;g<u;++g){var v=h[g];"1"==v&&"r"==b?h[g]="n":n.test(v)&&(b=v,"r"==v&&(h[g]="R"))}for(var y=1,_=h[0];y<u-1;++y){var w=h[y];"+"==w&&"1"==_&&"1"==h[y+1]?h[y]="1":","!=w||_!=h[y+1]||"1"!=_&&"n"!=_||(h[y]=_),_=w}for(var S=0;S<u;++S){var x=h[S];if(","==x)h[S]="N";else if("%"==x){var C=void 0;for(C=S+1;C<u&&"%"==h[C];++C);for(var O=S&&"!"==h[S-1]||C<u&&"1"==h[C]?"1":"N",T=S;T<C;++T)h[T]=O;S=C-1}}for(var E=0,k=c;E<u;++E){var A=h[E];"L"==k&&"1"==A?h[E]="L":n.test(A)&&(k=A)}for(var D=0;D<u;++D)if(e.test(h[D])){var j=void 0;for(j=D+1;j<u&&e.test(h[j]);++j);for(var I="L"==(D?h[D-1]:c),P=I==("L"==(j<u?h[j]:c))?I?"L":"R":c,M=D;M<j;++M)h[M]=P;D=j-1}for(var N,F=[],R=0;R<u;)if(r.test(h[R])){var L=R;for(++R;R<u&&r.test(h[R]);++R);F.push(new o(0,L,R))}else{var V=R,H=F.length,B="rtl"==a?1:0;for(++R;R<u&&"L"!=h[R];++R);for(var G=V;G<R;)if(i.test(h[G])){V<G&&(F.splice(H,0,new o(1,V,G)),H+=B);var z=G;for(++G;G<R&&i.test(h[G]);++G);F.splice(H,0,new o(2,z,G)),H+=B,V=G}else++G;V<R&&F.splice(H,0,new o(1,V,R))}return"ltr"==a&&(1==F[0].level&&(N=s.match(/^\s+/))&&(F[0].from=N[0].length,F.unshift(new o(0,0,N[0].length))),1==Q(F).level&&(N=s.match(/\s+$/))&&(Q(F).to-=N[0].length,F.push(new o(0,u-N[0].length,u)))),"rtl"==a?F.reverse():F}}();function dt(t,e){var n=t.order;return null==n&&(n=t.order=ht(t.text,e)),n}var ft=[],pt=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||ft).concat(n)}};function mt(t,e){return t._handlers&&t._handlers[e]||ft}function gt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,i=r&&r[e];if(i){var o=z(i,n);o>-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function bt(t,e){var n=mt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function vt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),bt(t,n||e.type,t,e),Ct(e)||e.codemirrorIgnore}function yt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==z(n,e[r])&&n.push(e[r])}function _t(t,e){return mt(t,e).length>0}function wt(t){t.prototype.on=function(t,e){pt(this,t,e)},t.prototype.off=function(t,e){gt(this,t,e)}}function St(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function xt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Ct(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Ot(t){St(t),xt(t)}function Tt(t){return t.target||t.srcElement}function Et(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var kt,At,Dt=function(){if(s&&a<9)return!1;var t=D("div");return"draggable"in t||"dragDrop"in t}();function jt(t){if(null==kt){var e=D("span","\u200b");A(t,D("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(kt=e.offsetWidth<=1&&e.offsetHeight>2&&!(s&&a<8))}var n=kt?D("span","\u200b"):D("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function It(t){if(null!=At)return At;var e=A(t,document.createTextNode("A\u062eA")),n=T(e,0,1).getBoundingClientRect(),r=T(e,1,2).getBoundingClientRect();return k(t),!(!n||n.left==n.right)&&(At=r.right-n.right<3)}var Pt,Mt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),s=o.indexOf("\r");-1!=s?(n.push(o.slice(0,s)),e+=s+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Nt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(Pt){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(Pt){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Ft="oncopy"in(Pt=D("div"))||(Pt.setAttribute("oncopy","return;"),"function"==typeof Pt.oncopy),Rt=null,Lt={},Vt={};function Ht(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Lt[t]=e}function Bt(t){if("string"==typeof t&&Vt.hasOwnProperty(t))t=Vt[t];else if(t&&"string"==typeof t.name&&Vt.hasOwnProperty(t.name)){var e=Vt[t.name];"string"==typeof e&&(e={name:e}),(t=tt(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Bt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Bt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Gt(t,e){e=Bt(e);var n=Lt[e.name];if(!n)return Gt(t,"text/plain");var r=n(t,e);if(zt.hasOwnProperty(e.name)){var i=zt[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var s in e.modeProps)r[s]=e.modeProps[s];return r}var zt={};function Wt(t,e){H(e,zt.hasOwnProperty(t)?zt[t]:zt[t]={})}function Ut(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function qt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Xt(t,e,n){return!t.startState||t.startState(e,n)}var $t=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Kt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(e<o){n=i;break}e-=o}return n.lines[e]}function Yt(t,e,n){var r=[],i=e.line;return t.iter(e.line,n.line+1,(function(t){var o=t.text;i==n.line&&(o=o.slice(0,n.ch)),i==e.line&&(o=o.slice(e.ch)),r.push(o),++i})),r}function Qt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function Jt(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function Zt(t){if(null==t.parent)return null;for(var e=t.parent,n=z(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var i=0;r.children[i]!=e;++i)n+=r.children[i].chunkSize();return n+e.first}function te(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var i=t.children[r],o=i.height;if(e<o){t=i;continue t}e-=o,n+=i.chunkSize()}return n}while(!t.lines);for(var s=0;s<t.lines.length;++s){var a=t.lines[s].height;if(e<a)break;e-=a}return n+s}function ee(t,e){return e>=t.first&&e<t.first+t.size}function ne(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function re(t,e,n){if(void 0===n&&(n=null),!(this instanceof re))return new re(t,e,n);this.line=t,this.ch=e,this.sticky=n}function ie(t,e){return t.line-e.line||t.ch-e.ch}function oe(t,e){return t.sticky==e.sticky&&0==ie(t,e)}function se(t){return re(t.line,t.ch)}function ae(t,e){return ie(t,e)<0?e:t}function ce(t,e){return ie(t,e)<0?t:e}function le(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function ue(t,e){if(e.line<t.first)return re(t.first,0);var n=t.first+t.size-1;return e.line>n?re(n,Kt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?re(t.line,e):n<0?re(t.line,0):t}(e,Kt(t,e.line).text.length)}function he(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=ue(t,e[r]);return n}$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},$t.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},$t.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},$t.prototype.backUp=function(t){this.pos-=t},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=B(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return B(this.string,null,this.tabSize)-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},$t.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},$t.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var de=function(t,e){this.state=t,this.lookAhead=e},fe=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pe(t,e,n,r){var i=[t.state.modeGen],o={};xe(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var s=n.state,a=function(r){n.baseTokens=i;var a=t.state.overlays[r],c=1,l=0;n.state=!0,xe(t,e.text,a.mode,n,(function(t,e){for(var n=c;l<t;){var r=i[c];r>t&&i.splice(c,1,t,i[c+1],r),c+=2,l=Math.min(t,r)}if(e)if(a.opaque)i.splice(n,c-n,t,"overlay "+e),c=n+2;else for(;n<c;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+e}}),o),n.state=s,n.baseTokens=null,n.baseTokenPos=1},c=0;c<t.state.overlays.length;++c)a(c);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function me(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=ge(t,Zt(e)),i=e.text.length>t.options.maxHighlightLength&&Ut(t.doc.mode,r.state),o=pe(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function ge(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new fe(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,s=n?-1:e-(t.doc.mode.innerMode?1e3:100),a=e;a>s;--a){if(a<=o.first)return o.first;var c=Kt(o,a-1),l=c.stateAfter;if(l&&(!n||a+(l instanceof de?l.lookAhead:0)<=o.modeFrontier))return a;var u=B(c.text,null,t.options.tabSize);(null==i||r>u)&&(i=a-1,r=u)}return i}(t,e,n),s=o>r.first&&Kt(r,o-1).stateAfter,a=s?fe.fromSaved(r,s,o):new fe(r,Xt(r.mode),o);return r.iter(o,e,(function(n){be(t,n.text,a);var r=a.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?a.save():null,a.nextLine()})),n&&(r.modeFrontier=a.line),a}function be(t,e,n,r){var i=t.doc.mode,o=new $t(e,t.options.tabSize,n);for(o.start=o.pos=r||0,""==e&&ve(i,n.state);!o.eol();)ye(i,o,n.state),o.start=o.pos}function ve(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=qt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function ye(t,e,n,r){for(var i=0;i<10;i++){r&&(r[0]=qt(t,n).mode);var o=t.token(e,n);if(e.pos>e.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}fe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},fe.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,e,n){return e instanceof de?new fe(t,Ut(t.mode,e.state),n,e.lookAhead):new fe(t,Ut(t.mode,e),n)},fe.prototype.save=function(t){var e=!1!==t?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new de(e,this.maxLookAhead):e};var _e=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function we(t,e,n,r){var i,o,s=t.doc,a=s.mode,c=Kt(s,(e=ue(s,e)).line),l=ge(t,e.line,n),u=new $t(c.text,t.options.tabSize,l);for(r&&(o=[]);(r||u.pos<e.ch)&&!u.eol();)u.start=u.pos,i=ye(a,u,l.state),r&&o.push(new _e(u,i,Ut(s.mode,l.state)));return r?o:new _e(u,i,l.state)}function Se(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function xe(t,e,n,r,i,o,s){var a=n.flattenSpans;null==a&&(a=t.options.flattenSpans);var c,l=0,u=null,h=new $t(e,t.options.tabSize,r),d=t.options.addModeClass&&[null];for(""==e&&Se(ve(n,r.state),o);!h.eol();){if(h.pos>t.options.maxHighlightLength?(a=!1,s&&be(t,e,r,h.pos),h.pos=e.length,c=null):c=Se(ye(n,h,r.state,d),o),d){var f=d[0].name;f&&(c="m-"+(c?f+" "+c:f))}if(!a||u!=c){for(;l<h.start;)i(l=Math.min(h.start,l+5e3),u);u=c}h.start=h.pos}for(;l<h.pos;){var p=Math.min(h.pos,l+5e3);i(p,u),l=p}}var Ce=!1,Oe=!1;function Te(t,e,n){this.marker=t,this.from=e,this.to=n}function Ee(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function ke(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function Ae(t,e){if(e.full)return null;var n=ee(t,e.from.line)&&Kt(t,e.from.line).markedSpans,r=ee(t,e.to.line)&&Kt(t,e.to.line).markedSpans;if(!n&&!r)return null;var i=e.from.ch,o=e.to.ch,s=0==ie(e.from,e.to),a=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],s=o.marker;null!=o.from&&!(s.inclusiveLeft?o.from<=e:o.from<e)&&(o.from!=e||"bookmark"!=s.type||n&&o.marker.insertLeft)||(r||(r=[])).push(new Te(s,o.from,null==o.to||(s.inclusiveRight?o.to>=e:o.to>e)?null:o.to))}return r}(n,i,s),c=function(t,e,n){var r;if(t)for(var i=0;i<t.length;++i){var o=t[i],s=o.marker;(null==o.to||(s.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==s.type&&(!n||o.marker.insertLeft))&&(r||(r=[])).push(new Te(s,null==o.from||(s.inclusiveLeft?o.from<=e:o.from<e)?null:o.from-e,null==o.to?null:o.to-e))}return r}(r,o,s),l=1==e.text.length,u=Q(e.text).length+(l?i:0);if(a)for(var h=0;h<a.length;++h){var d=a[h];if(null==d.to){var f=Ee(c,d.marker);f?l&&(d.to=null==f.to?null:f.to+u):d.to=i}}if(c)for(var p=0;p<c.length;++p){var m=c[p];null!=m.to&&(m.to+=u),null==m.from?Ee(a,m.marker)||(m.from=u,l&&(a||(a=[])).push(m)):(m.from+=u,l&&(a||(a=[])).push(m))}a&&(a=De(a)),c&&c!=a&&(c=De(c));var g=[a];if(!l){var b,v=e.text.length-2;if(v>0&&a)for(var y=0;y<a.length;++y)null==a[y].to&&(b||(b=[])).push(new Te(a[y].marker,null,null));for(var _=0;_<v;++_)g.push(b);g.push(c)}return g}function De(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function je(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function Ie(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Pe(t){return t.inclusiveLeft?-1:0}function Me(t){return t.inclusiveRight?1:0}function Ne(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),i=e.find(),o=ie(r.from,i.from)||Pe(t)-Pe(e);return o?-o:ie(r.to,i.to)||Me(t)-Me(e)||e.id-t.id}function Fe(t,e){var n,r=Oe&&t.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(e?i.from:i.to)&&(!n||Ne(n,i.marker)<0)&&(n=i.marker);return n}function Re(t){return Fe(t,!0)}function Le(t){return Fe(t,!1)}function Ve(t,e){var n,r=Oe&&t.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!n||Ne(n,o.marker)<0)&&(n=o.marker)}return n}function He(t,e,n,r,i){var o=Kt(t,e),s=Oe&&o.markedSpans;if(s)for(var a=0;a<s.length;++a){var c=s[a];if(c.marker.collapsed){var l=c.marker.find(0),u=ie(l.from,n)||Pe(c.marker)-Pe(i),h=ie(l.to,r)||Me(c.marker)-Me(i);if(!(u>=0&&h<=0||u<=0&&h>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?ie(l.to,n)>=0:ie(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?ie(l.from,r)<=0:ie(l.from,r)<0)))return!0}}}function Be(t){for(var e;e=Re(t);)t=e.find(-1,!0).line;return t}function Ge(t,e){var n=Kt(t,e),r=Be(n);return n==r?e:Zt(r)}function ze(t,e){if(e>t.lastLine())return e;var n,r=Kt(t,e);if(!We(t,r))return e;for(;n=Le(r);)r=n.find(1,!0).line;return Zt(r)+1}function We(t,e){var n=Oe&&e.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Ue(t,e,r))return!0}}function Ue(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return Ue(t,r.line,Ee(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var i=void 0,o=0;o<e.markedSpans.length;++o)if((i=e.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Ue(t,e,i))return!0}function qe(t){for(var e=0,n=(t=Be(t)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==t)break;e+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var s=0;s<o.children.length;++s){var a=o.children[s];if(a==n)break;e+=a.height}return e}function Xe(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=Re(r);){var i=e.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=t;e=Le(r);){var o=e.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function $e(t){var e=t.display,n=t.doc;e.maxLine=Kt(n,n.first),e.maxLineLength=Xe(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=Xe(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ke=function(t,e,n){this.text=t,Ie(this,e),this.height=n?n(this):1};function Ye(t){t.parent=null,je(t)}Ke.prototype.lineNo=function(){return Zt(this)},wt(Ke);var Qe={},Je={};function Ze(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Je:Qe;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function tn(t,e){var n=j("span",null,null,c?"padding-right: .1px":null),r={pre:j("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,s=void 0;r.pos=0,r.addToken=nn,It(t.display.measure)&&(s=dt(o,t.doc.direction))&&(r.addToken=rn(r.addToken,s)),r.map=[],sn(o,r,me(t,o,e!=t.display.externalMeasured&&Zt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=N(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(jt(t.display.measure))),0==i?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(c){var a=r.content.lastChild;(/\bcm-tab\b/.test(a.className)||a.querySelector&&a.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return bt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function en(t){var e=D("span","\u2022","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function nn(t,e,n,r,i,o,c){if(e){var l,u=t.splitSpaces?function(t,e){if(t.length>1&&!/  /.test(t))return t;for(var n=e,r="",i=0;i<t.length;i++){var o=t.charAt(i);" "!=o||!n||i!=t.length-1&&32!=t.charCodeAt(i+1)||(o="\xa0"),r+=o,n=" "==o}return r}(e,t.trailingSpace):e,h=t.cm.state.specialChars,d=!1;if(h.test(e)){l=document.createDocumentFragment();for(var f=0;;){h.lastIndex=f;var p=h.exec(e),m=p?p.index-f:e.length-f;if(m){var g=document.createTextNode(u.slice(f,f+m));l.appendChild(s&&a<9?D("span",[g]):g),t.map.push(t.pos,t.pos+m,g),t.col+=m,t.pos+=m}if(!p)break;f+=m+1;var b=void 0;if("\t"==p[0]){var v=t.cm.options.tabSize,y=v-t.col%v;(b=l.appendChild(D("span",Y(y),"cm-tab"))).setAttribute("role","presentation"),b.setAttribute("cm-text","\t"),t.col+=y}else"\r"==p[0]||"\n"==p[0]?((b=l.appendChild(D("span","\r"==p[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",p[0]),t.col+=1):((b=t.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),l.appendChild(s&&a<9?D("span",[b]):b),t.col+=1);t.map.push(t.pos,t.pos+1,b),t.pos++}}else t.col+=e.length,l=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,l),s&&a<9&&(d=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||i||d||o||c){var _=n||"";r&&(_+=r),i&&(_+=i);var w=D("span",[l],_,o);if(c)for(var S in c)c.hasOwnProperty(S)&&"style"!=S&&"class"!=S&&w.setAttribute(S,c[S]);return t.content.appendChild(w)}t.content.appendChild(l)}}function rn(t,e){return function(n,r,i,o,s,a,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,u=l+r.length;;){for(var h=void 0,d=0;d<e.length&&!((h=e[d]).to>l&&h.from<=l);d++);if(h.to>=u)return t(n,r,i,o,s,a,c);t(n,r.slice(0,h.to-l),i,o,null,a,c),o=null,r=r.slice(h.to-l),l=h.to}}}function on(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function sn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var s,a,c,l,u,h,d,f=i.length,p=0,m=1,g="",b=0;;){if(b==p){c=l=u=a="",d=null,h=null,b=1/0;for(var v=[],y=void 0,_=0;_<r.length;++_){var w=r[_],S=w.marker;if("bookmark"==S.type&&w.from==p&&S.widgetNode)v.push(S);else if(w.from<=p&&(null==w.to||w.to>p||S.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&b>w.to&&(b=w.to,l=""),S.className&&(c+=" "+S.className),S.css&&(a=(a?a+";":"")+S.css),S.startStyle&&w.from==p&&(u+=" "+S.startStyle),S.endStyle&&w.to==b&&(y||(y=[])).push(S.endStyle,w.to),S.title&&((d||(d={})).title=S.title),S.attributes)for(var x in S.attributes)(d||(d={}))[x]=S.attributes[x];S.collapsed&&(!h||Ne(h.marker,S)<0)&&(h=w)}else w.from>p&&b>w.from&&(b=w.from)}if(y)for(var C=0;C<y.length;C+=2)y[C+1]==b&&(l+=" "+y[C]);if(!h||h.from==p)for(var O=0;O<v.length;++O)on(e,0,v[O]);if(h&&(h.from||0)==p){if(on(e,(null==h.to?f+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=f)break;for(var T=Math.min(f,b);;){if(g){var E=p+g.length;if(!h){var k=E>T?g.slice(0,T-p):g;e.addToken(e,k,s?s+c:c,u,p+k.length==b?l:"",a,d)}if(E>=T){g=g.slice(T-p),p=T;break}p=E,u=""}g=i.slice(o,o=n[m++]),s=Ze(n[m++],e.cm.options)}}else for(var A=1;A<n.length;A+=2)e.addToken(e,i.slice(o,o=n[A]),Ze(n[A+1],e.cm.options))}function an(t,e,n){this.line=e,this.rest=function(t){for(var e,n;e=Le(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}(e),this.size=this.rest?Zt(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=We(t,e)}function cn(t,e,n){for(var r,i=[],o=e;o<n;o=r){var s=new an(t.doc,Kt(t.doc,o),o);r=o+s.size,i.push(s)}return i}var ln=null,un=null;function hn(t,e){var n=mt(t,e);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);ln?r=ln.delayedCallbacks:un?r=un:(r=un=[],setTimeout(dn,0));for(var o=function(t){r.push((function(){return n[t].apply(null,i)}))},s=0;s<n.length;++s)o(s)}}function dn(){var t=un;un=null;for(var e=0;e<t.length;++e)t[e]()}function fn(t,e,n,r){for(var i=0;i<e.changes.length;i++){var o=e.changes[i];"text"==o?gn(t,e):"gutter"==o?vn(t,e,n,r):"class"==o?bn(t,e):"widget"==o&&yn(t,e,r)}e.changes=null}function pn(t){return t.node==t.text&&(t.node=D("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),s&&a<8&&(t.node.style.zIndex=2)),t.node}function mn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):tn(t,e)}function gn(t,e){var n=e.text.className,r=mn(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,bn(t,e)):n&&(e.text.className=n)}function bn(t,e){!function(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=pn(e);e.background=r.insertBefore(D("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?pn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className=""),e.text.className=(e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass)||""}function vn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=pn(e);e.gutterBackground=D("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var s=pn(e),a=e.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(a.setAttribute("aria-hidden","true"),t.display.input.setUneditable(a),s.insertBefore(a,e.text),e.line.gutterClass&&(a.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=a.appendChild(D("div",ne(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var c=0;c<t.display.gutterSpecs.length;++c){var l=t.display.gutterSpecs[c].className,u=o.hasOwnProperty(l)&&o[l];u&&a.appendChild(D("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function yn(t,e,n){e.alignable&&(e.alignable=null);for(var r=O("CodeMirror-linewidget"),i=e.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&e.node.removeChild(i);wn(t,e,n)}function _n(t,e,n,r){var i=mn(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),bn(t,e),vn(t,e,n,r),wn(t,e,r),e.node}function wn(t,e,n){if(Sn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)Sn(t,e.rest[r],e,n,!1)}function Sn(t,e,n,r,i){if(e.widgets)for(var o=pn(n),s=0,a=e.widgets;s<a.length;++s){var c=a[s],l=D("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),xn(c,l,n,r),t.display.input.setUneditable(l),i&&c.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),hn(c,"redraw")}}function xn(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var i=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(i-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function Cn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!I(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),A(e.display.measure,D("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function On(t,e){for(var n=Tt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function Tn(t){return t.lineSpace.offsetTop}function En(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function kn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=A(t.measure,D("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function An(t){return 50-t.display.nativeBarWidth}function Dn(t){return t.display.scroller.clientWidth-An(t)-t.display.barWidth}function jn(t){return t.display.scroller.clientHeight-An(t)-t.display.barHeight}function In(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var i=0;i<t.rest.length;i++)if(Zt(t.rest[i])>n)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}}function Pn(t,e,n,r){return Fn(t,Nn(t,e),n,r)}function Mn(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[fr(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Nn(t,e){var n=Zt(e),r=Mn(t,n);r&&!r.text?r=null:r&&r.changes&&(fn(t,r,n,cr(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var n=Zt(e=Be(e)),r=t.display.externalMeasured=new an(t.doc,e,n);r.lineN=n;var i=r.built=tn(t,r);return r.text=i.pre,A(t.display.lineMeasure,i.pre),r}(t,e));var i=In(r,e,n);return{line:e,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Fn(t,e,n,r,i){e.before&&(n=-1);var o,c=n+(r||"");return e.cache.hasOwnProperty(c)?o=e.cache[c]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,n){var r=t.options.lineWrapping,i=r&&Dn(t);if(!e.measure.heights||r&&e.measure.width!=i){var o=e.measure.heights=[];if(r){e.measure.width=i;for(var s=e.text.firstChild.getClientRects(),a=0;a<s.length-1;a++){var c=s[a],l=s[a+1];Math.abs(c.bottom-l.bottom)>2&&o.push((c.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=Vn(e.map,n,r),c=o.node,l=o.start,u=o.end,h=o.collapse;if(3==c.nodeType){for(var d=0;d<4;d++){for(;l&&st(e.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+u<o.coverEnd&&st(e.line.text.charAt(o.coverStart+u));)++u;if((i=s&&a<9&&0==l&&u==o.coverEnd-o.coverStart?c.parentNode.getBoundingClientRect():Hn(T(c,l,u).getClientRects(),r)).left||i.right||0==l)break;u=l,l-=1,h="right"}s&&a<11&&(i=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Rt)return Rt;var e=A(t,D("span","x")),n=e.getBoundingClientRect(),r=T(e,0,1).getBoundingClientRect();return Rt=Math.abs(n.left-r.left)>1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,i))}else{var f;l>0&&(h=r="right"),i=t.options.lineWrapping&&(f=c.getClientRects()).length>1?f["right"==r?f.length-1:0]:c.getBoundingClientRect()}if(s&&a<9&&!l&&(!i||!i.left&&!i.right)){var p=c.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+ar(t.display),top:p.top,bottom:p.bottom}:Ln}for(var m=i.top-e.rect.top,g=i.bottom-e.rect.top,b=(m+g)/2,v=e.view.measure.heights,y=0;y<v.length-1&&!(b<v[y]);y++);var _={left:("right"==h?i.right:i.left)-e.rect.left,right:("left"==h?i.left:i.right)-e.rect.left,top:y?v[y-1]:0,bottom:v[y]};return i.left||i.right||(_.bogus=!0),t.options.singleCursorHeightPerLine||(_.rtop=m,_.rbottom=g),_}(t,e,n,r)).bogus||(e.cache[c]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Rn,Ln={left:0,right:0,top:0,bottom:0};function Vn(t,e,n){for(var r,i,o,s,a,c,l=0;l<t.length;l+=3)if(c=t[l+1],e<(a=t[l])?(i=0,o=1,s="left"):e<c?o=1+(i=e-a):(l==t.length-3||e==c&&t[l+3]>e)&&(i=(o=c-a)-1,e>=c&&(s="right")),null!=i){if(r=t[l+2],a==c&&n==(r.insertLeft?"left":"right")&&(s=n),"left"==n&&0==i)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)r=t[2+(l-=3)],s="left";if("right"==n&&i==c-a)for(;l<t.length-3&&t[l+3]==t[l+4]&&!t[l+5].insertLeft;)r=t[(l+=3)+2],s="right";break}return{node:r,start:i,end:o,collapse:s,coverStart:a,coverEnd:c}}function Hn(t,e){var n=Ln;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var i=t.length-1;i>=0&&(n=t[i]).left==n.right;i--);return n}function Bn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Gn(t){t.display.externalMeasure=null,k(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Bn(t.display.view[e])}function zn(t){Gn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Wn(t){return u&&b?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function Un(t){return u&&b?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function qn(t){var e=Be(t).widgets,n=0;if(e)for(var r=0;r<e.length;++r)e[r].above&&(n+=Cn(e[r]));return n}function Xn(t,e,n,r,i){if(!i){var o=qn(e);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var s=qe(e);if("local"==r?s+=Tn(t.display):s-=t.display.viewOffset,"page"==r||"window"==r){var a=t.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==r?0:Un(R(t)));var c=a.left+("window"==r?0:Wn(R(t)));n.left+=c,n.right+=c}return n.top+=s,n.bottom+=s,n}function $n(t,e,n){if("div"==n)return e;var r=e.left,i=e.top;if("page"==n)r-=Wn(R(t)),i-=Un(R(t));else if("local"==n||!n){var o=t.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var s=t.display.lineSpace.getBoundingClientRect();return{left:r-s.left,top:i-s.top}}function Kn(t,e,n,r,i){return r||(r=Kt(t.doc,e.line)),Xn(t,r,Pn(t,r,e.ch,i),n)}function Yn(t,e,n,r,i,o){function s(e,s){var a=Fn(t,i,e,s?"right":"left",o);return s?a.left=a.right:a.right=a.left,Xn(t,r,a,n)}r=r||Kt(t.doc,e.line),i||(i=Nn(t,r));var a=dt(r,t.doc.direction),c=e.ch,l=e.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!a)return s("before"==l?c-1:c,"before"==l);function u(t,e,n){return s(n?t-1:t,1==a[e].level!=n)}var h=ut(a,c,l),d=lt,f=u(c,h,"before"==l);return null!=d&&(f.other=u(c,d,"before"!=l)),f}function Qn(t,e){var n=0;e=ue(t.doc,e),t.options.lineWrapping||(n=ar(t.display)*e.ch);var r=Kt(t.doc,e.line),i=qe(r)+Tn(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Jn(t,e,n,r,i){var o=re(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function Zn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Jn(r.first,0,null,-1,-1);var i=te(r,n),o=r.first+r.size-1;if(i>o)return Jn(r.first+r.size-1,Kt(r,o).text.length,null,1,1);e<0&&(e=0);for(var s=Kt(r,i);;){var a=rr(t,s,i,e,n),c=Ve(s,a.ch+(a.xRel>0||a.outside>0?1:0));if(!c)return a;var l=c.find(1);if(l.line==i)return l;s=Kt(r,i=l.line)}}function tr(t,e,n,r){r-=qn(e);var i=e.text.length,o=ct((function(e){return Fn(t,n,e-1).bottom<=r}),i,0);return{begin:o,end:i=ct((function(e){return Fn(t,n,e).top>r}),o,i)}}function er(t,e,n,r){return n||(n=Nn(t,e)),tr(t,e,n,Xn(t,e,Fn(t,n,r),"line").top)}function nr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function rr(t,e,n,r,i){i-=qe(e);var o=Nn(t,e),s=qn(e),a=0,c=e.text.length,l=!0,u=dt(e,t.doc.direction);if(u){var h=(t.options.lineWrapping?or:ir)(t,e,n,o,u,r,i);a=(l=1!=h.level)?h.from:h.to-1,c=l?h.to:h.from-1}var d,f,p=null,m=null,g=ct((function(e){var n=Fn(t,o,e);return n.top+=s,n.bottom+=s,!!nr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=e,m=n),!0)}),a,c),b=!1;if(m){var v=r-m.left<m.right-r,y=v==l;g=p+(y?0:1),f=y?"after":"before",d=v?m.left:m.right}else{l||g!=c&&g!=a||g++,f=0==g?"after":g==e.text.length?"before":Fn(t,o,g-(l?1:0)).bottom+s<=i==l?"after":"before";var _=Yn(t,re(n,g,f),"line",e,o);d=_.left,b=i<_.top?-1:i>=_.bottom?1:0}return Jn(n,g=at(e.text,g,1),f,b,r-d)}function ir(t,e,n,r,i,o,s){var a=ct((function(a){var c=i[a],l=1!=c.level;return nr(Yn(t,re(n,l?c.to:c.from,l?"before":"after"),"line",e,r),o,s,!0)}),0,i.length-1),c=i[a];if(a>0){var l=1!=c.level,u=Yn(t,re(n,l?c.from:c.to,l?"after":"before"),"line",e,r);nr(u,o,s,!0)&&u.top>s&&(c=i[a-1])}return c}function or(t,e,n,r,i,o,s){var a=tr(t,e,r,s),c=a.begin,l=a.end;/\s/.test(e.text.charAt(l-1))&&l--;for(var u=null,h=null,d=0;d<i.length;d++){var f=i[d];if(!(f.from>=l||f.to<=c)){var p=Fn(t,r,1!=f.level?Math.min(l,f.to)-1:Math.max(c,f.from)).right,m=p<o?o-p+1e9:p-o;(!u||h>m)&&(u=f,h=m)}}return u||(u=i[i.length-1]),u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}function sr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Rn){Rn=D("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(D("br"));Rn.appendChild(document.createTextNode("x"))}A(t.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),k(t.measure),n||1}function ar(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=D("span","xxxxxxxxxx"),n=D("pre",[e],"CodeMirror-line-like");A(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function cr(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,s=0;o;o=o.nextSibling,++s){var a=t.display.gutterSpecs[s].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:lr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function lr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ur(t){var e=sr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/ar(t.display)-3);return function(i){if(We(t.doc,i))return 0;var o=0;if(i.widgets)for(var s=0;s<i.widgets.length;s++)i.widgets[s].height&&(o+=i.widgets[s].height);return n?o+(Math.ceil(i.text.length/r)||1)*e:o+e}}function hr(t){var e=t.doc,n=ur(t);e.iter((function(t){var e=n(t);e!=t.height&&Jt(t,e)}))}function dr(t,e,n,r){var i=t.display;if(!n&&"true"==Tt(e).getAttribute("cm-not-content"))return null;var o,s,a=i.lineSpace.getBoundingClientRect();try{o=e.clientX-a.left,s=e.clientY-a.top}catch(h){return null}var c,l=Zn(t,o,s);if(r&&l.xRel>0&&(c=Kt(t.doc,l.line).text).length==l.ch){var u=B(c,c.length,t.options.tabSize)-c.length;l=re(l.line,Math.max(0,Math.round((o-kn(t.display).left)/ar(t.display))-u))}return l}function fr(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function pr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var i=t.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Oe&&Ge(t.doc,e)<i.viewTo&&gr(t);else if(n<=i.viewFrom)Oe&&ze(t.doc,n+r)>i.viewFrom?gr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)gr(t);else if(e<=i.viewFrom){var o=br(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):gr(t)}else if(n>=i.viewTo){var s=br(t,e,e,-1);s?(i.view=i.view.slice(0,s.index),i.viewTo=s.lineN):gr(t)}else{var a=br(t,e,e,-1),c=br(t,n,n+r,1);a&&c?(i.view=i.view.slice(0,a.index).concat(cn(t,a.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):gr(t)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:e<l.lineN+l.size&&(i.externalMeasured=null))}function mr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var o=r.view[fr(t,e)];if(null!=o.node){var s=o.changes||(o.changes=[]);-1==z(s,n)&&s.push(n)}}}function gr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function br(t,e,n,r){var i,o=fr(t,e),s=t.display.view;if(!Oe||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var a=t.display.viewFrom,c=0;c<o;c++)a+=s[c].size;if(a!=e){if(r>0){if(o==s.length-1)return null;i=a+s[o].size-e,o++}else i=a-e;e+=i,n+=i}for(;Ge(t.doc,n)!=n;){if(o==(r<0?0:s.length-1))return null;n+=r*s[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var i=e[r];i.hidden||i.node&&!i.changes||++n}return n}function yr(t){t.display.input.showSelection(t.display.input.prepareSelection())}function _r(t,e){void 0===e&&(e=!0);var n=t.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),s=t.options.$customCursor;s&&(e=!0);for(var a=0;a<n.sel.ranges.length;a++)if(e||a!=n.sel.primIndex){var c=n.sel.ranges[a];if(!(c.from().line>=t.display.viewTo||c.to().line<t.display.viewFrom)){var l=c.empty();if(s){var u=s(t,c);u&&wr(t,u,i)}else(l||t.options.showCursorWhenSelecting)&&wr(t,c.head,i);l||xr(t,c,o)}}return r}function wr(t,e,n){var r=Yn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=n.appendChild(D("div","\xa0","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var o=Kn(t,e,"div",null,null),s=o.right-o.left;i.style.width=(s>0?s:t.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(D("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Sr(t,e){return t.top-e.top||t.left-e.left}function xr(t,e,n){var r=t.display,i=t.doc,o=document.createDocumentFragment(),s=kn(t.display),a=s.left,c=Math.max(r.sizerWidth,Dn(t)-r.sizer.offsetLeft)-s.right,l="ltr"==i.direction;function u(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),o.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n                             top: "+e+"px; width: "+(null==n?c-t:n)+"px;\n                             height: "+(r-e)+"px"))}function h(e,n,r){var o,s,h=Kt(i,e),d=h.text.length;function f(n,r){return Kn(t,re(e,n),"div",h,r)}function p(e,n,r){var i=er(t,h,null,e),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(h.text.charAt(i.end-1))?2:1),o)[o]}var m=dt(h,i.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;o<t.length;++o){var s=t[o];(s.from<n&&s.to>e||e==n&&s.to==e)&&(r(Math.max(s.from,e),Math.min(s.to,n),1==s.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(m,n||0,null==r?d:r,(function(t,e,i,h){var g="ltr"==i,b=f(t,g?"left":"right"),v=f(e-1,g?"right":"left"),y=null==n&&0==t,_=null==r&&e==d,w=0==h,S=!m||h==m.length-1;if(v.top-b.top<=3){var x=(l?y:_)&&w?a:(g?b:v).left;u(x,b.top,((l?_:y)&&S?c:(g?v:b).right)-x,b.bottom)}else{var C,O,T,E;g?(C=l&&y&&w?a:b.left,O=l?c:p(t,i,"before"),T=l?a:p(e,i,"after"),E=l&&_&&S?c:v.right):(C=l?p(t,i,"before"):a,O=!l&&y&&w?c:b.right,T=!l&&_&&S?a:v.left,E=l?p(e,i,"after"):c),u(C,b.top,O-C,b.bottom),b.bottom<v.top&&u(a,b.bottom,null,v.top),u(T,v.top,E-T,v.bottom)}(!o||Sr(b,o)<0)&&(o=b),Sr(v,o)<0&&(o=v),(!s||Sr(b,s)<0)&&(s=b),Sr(v,s)<0&&(s=v)})),{start:o,end:s}}var d=e.from(),f=e.to();if(d.line==f.line)h(d.line,d.ch,f.ch);else{var p=Kt(i,d.line),m=Kt(i,f.line),g=Be(p)==Be(m),b=h(d.line,d.ch,g?p.text.length+1:null).end,v=h(f.line,g?0:null,f.ch).start;g&&(b.top<v.top-2?(u(b.right,b.top,null,b.bottom),u(a,v.top,v.left,v.bottom)):u(b.right,b.top,v.left-b.right,b.bottom)),b.bottom<v.top&&u(a,b.bottom,null,v.top)}n.appendChild(o)}function Cr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||kr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Or(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Er(t))}function Tr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&kr(t))}),100)}function Er(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(bt(t,"focus",t,e),t.state.focused=!0,M(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),c&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),Cr(t))}function kr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(bt(t,"blur",t,e),t.state.focused=!1,E(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Ar(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=Math.max(0,e.scroller.getBoundingClientRect().top),i=e.lineDiv.getBoundingClientRect().top,o=0,c=0;c<e.view.length;c++){var l=e.view[c],u=t.options.lineWrapping,h=void 0,d=0;if(!l.hidden){if(i+=l.line.height,s&&a<8){var f=l.node.offsetTop+l.node.offsetHeight;h=f-n,n=f}else{var p=l.node.getBoundingClientRect();h=p.bottom-p.top,!u&&l.text.firstChild&&(d=l.text.firstChild.getBoundingClientRect().right-p.left-1)}var m=l.line.height-h;if((m>.005||m<-.005)&&(i<r&&(o-=m),Jt(l.line,h),Dr(l.line),l.rest))for(var g=0;g<l.rest.length;g++)Dr(l.rest[g]);if(d>t.display.sizerWidth){var b=Math.ceil(d/ar(t.display));b>t.display.maxLineLength&&(t.display.maxLineLength=b,t.display.maxLine=l.line,t.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(e.scroller.scrollTop+=o)}function Dr(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function jr(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-Tn(t));var i=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,o=te(e,r),s=te(e,i);if(n&&n.ensure){var a=n.ensure.from.line,c=n.ensure.to.line;a<o?(o=a,s=te(e,qe(Kt(e,a))+t.wrapper.clientHeight)):Math.min(c,e.lastLine())>=s&&(o=te(e,qe(Kt(e,c))-t.wrapper.clientHeight),s=c)}return{from:o,to:Math.max(s,o+1)}}function Ir(t,e){var n=t.display,r=sr(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=jn(t),s={};e.bottom-e.top>o&&(e.bottom=e.top+o);var a=t.doc.height+En(n),c=e.bottom>a-r;if(e.top<i)s.scrollTop=e.top<r?0:e.top;else if(e.bottom>i+o){var l=Math.min(e.top,(c?a:e.bottom)-o);l!=i&&(s.scrollTop=l)}var u=t.options.fixedGutter?0:n.gutters.offsetWidth,h=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-u,d=Dn(t)-n.gutters.offsetWidth,f=e.right-e.left>d;return f&&(e.right=e.left+d),e.left<10?s.scrollLeft=0:e.left<h?s.scrollLeft=Math.max(0,e.left+u-(f?0:10)):e.right>d+h-3&&(s.scrollLeft=e.right+(f?0:10)-d),s}function Pr(t,e){null!=e&&(Fr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Mr(t){Fr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Nr(t,e,n){null==e&&null==n||Fr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Fr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Rr(t,Qn(t,e.from),Qn(t,e.to),e.margin))}function Rr(t,e,n,r){var i=Ir(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Nr(t,i.scrollLeft,i.scrollTop)}function Lr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||di(t,{top:e}),Vr(t,e,!0),n&&di(t),si(t,100))}function Vr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Hr(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,mi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Br(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+En(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+An(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Gr=function(t,e,n){this.cm=n;var r=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),pt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),pt(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,s&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Gr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;return n?(this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0",this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+(t.viewHeight-(e?r:0)))+"px"):(this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0"),e?(this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+(t.viewWidth-t.barLeft-(n?r:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0"),!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Gr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Gr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Gr.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=y&&!p?"12px":"18px",this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new G,this.disableVert=new G},Gr.prototype.enableZeroWidthBar=function(t,e,n){t.style.visibility="",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.visibility="hidden":e.set(1e3,r)}))},Gr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var zr=function(){};function Wr(t,e){e||(e=Br(t));var n=t.display.barWidth,r=t.display.barHeight;Ur(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Ar(t),Ur(t,Br(t)),n=t.display.barWidth,r=t.display.barHeight}function Ur(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}zr.prototype.update=function(){return{bottom:0,right:0}},zr.prototype.setScrollLeft=function(){},zr.prototype.setScrollTop=function(){},zr.prototype.clear=function(){};var qr={native:Gr,null:zr};function Xr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&E(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new qr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),pt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Hr(t,e):Lr(t,e)}),t),t.display.scrollbars.addClass&&M(t.display.wrapper,t.display.scrollbars.addClass)}var $r=0;function Kr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++$r,markArrays:null},e=t.curOp,ln?ln.ops.push(e):e.ownsGroup=ln={ops:[e],delayedCallbacks:[]}}function Yr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var i=t.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<e.length)}(n)}finally{ln=null,function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,n=0;n<e.length;n++)Qr(e[n]);for(var r=0;r<e.length;r++)Jr(e[r]);for(var i=0;i<e.length;i++)Zr(e[i]);for(var o=0;o<e.length;o++)ti(e[o]);for(var s=0;s<e.length;s++)ei(e[s])}(t)}(n)}}(e)}function Qr(t){var e=t.cm,n=e.display;!function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=An(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=An(t)+"px",e.scrollbarsClipped=!0)}(e),t.updateMaxLine&&$e(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new ci(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Jr(t){t.updatedDisplay=t.mustUpdate&&ui(t.cm,t.update)}function Zr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Ar(e),t.barMeasure=Br(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Pn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+An(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Dn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function ti(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Hr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==P(R(e));t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Wr(e,t.barMeasure),t.updatedDisplay&&pi(e,t.barMeasure),t.selectionChanged&&Cr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Or(t.cm)}function ei(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&hi(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Vr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Hr(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!vt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(e.top+r.top<0?i=!0:e.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var s=D("div","\u200b",null,"position: absolute;\n                         top: "+(e.top-n.viewOffset-Tn(t.display))+"px;\n                         height: "+(e.bottom-e.top+An(t)+n.barHeight)+"px;\n                         left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(s),s.scrollIntoView(i),t.display.lineSpace.removeChild(s)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==e.sticky?re(e.line,e.ch+1,"before"):e,e=e.ch?re(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e);for(var o=0;o<5;o++){var s=!1,a=Yn(t,e),c=n&&n!=e?Yn(t,n):a,l=Ir(t,i={left:Math.min(a.left,c.left),top:Math.min(a.top,c.top)-r,right:Math.max(a.left,c.left),bottom:Math.max(a.bottom,c.bottom)+r}),u=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=l.scrollTop&&(Lr(t,l.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(s=!0)),null!=l.scrollLeft&&(Hr(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(s=!0)),!s)break}return i}(e,ue(r,t.scrollToPos.from),ue(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var s=0;s<i.length;++s)i[s].lines.length||bt(i[s],"hide");if(o)for(var a=0;a<o.length;++a)o[a].lines.length&&bt(o[a],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&bt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function ni(t,e){if(t.curOp)return e();Kr(t);try{return e()}finally{Yr(t)}}function ri(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Kr(t);try{return e.apply(t,arguments)}finally{Yr(t)}}}function ii(t){return function(){if(this.curOp)return t.apply(this,arguments);Kr(this);try{return t.apply(this,arguments)}finally{Yr(this)}}}function oi(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Kr(e);try{return t.apply(this,arguments)}finally{Yr(e)}}}function si(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,V(ai,t))}function ai(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=ge(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var s=o.styles,a=o.text.length>t.options.maxHighlightLength?Ut(e.mode,r.state):null,c=pe(t,o,r,!0);a&&(r.state=a),o.styles=c.styles;var l=o.styleClasses,u=c.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var h=!s||s.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),d=0;!h&&d<s.length;++d)h=s[d]!=o.styles[d];h&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=t.options.maxHighlightLength&&be(t,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return si(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&ni(t,(function(){for(var e=0;e<i.length;e++)mr(t,i[e],"text")}))}}var ci=function(t,e,n){var r=t.display;this.viewport=e,this.visible=jr(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Dn(t),this.force=n,this.dims=cr(t),this.events=[]};function li(t){if(t.hasFocus())return null;var e=P(R(t));if(!e||!I(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=L(t).getSelection();r.anchorNode&&r.extend&&I(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function ui(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return gr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==vr(t))return!1;gi(t)&&(gr(t),e.dims=cr(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),s=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(i,n.viewTo)),Oe&&(o=Ge(t.doc,o),s=ze(t.doc,s));var a=o!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=cn(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=cn(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(fr(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(cn(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,fr(t,n)))),r.viewTo=n}(t,o,s),n.viewOffset=qe(Kt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=vr(t);if(!a&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=li(t);return l>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,i=t.options.lineNumbers,o=r.lineDiv,s=o.firstChild;function a(e){var n=e.nextSibling;return c&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var l=r.view,u=r.viewFrom,h=0;h<l.length;h++){var d=l[h];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;s!=d.node;)s=a(s);var f=i&&null!=e&&e<=u&&d.lineNumber;d.changes&&(z(d.changes,"gutter")>-1&&(f=!1),fn(t,d,u,n)),f&&(k(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(ne(t.options,u)))),s=d.node.nextSibling}else{var p=_n(t,d,u,n);o.insertBefore(p,s)}u+=d.size}for(;s;)s=a(s)}(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=P(t.activeElt.ownerDocument)&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&I(document.body,t.anchorNode)&&I(document.body,t.focusNode))){var e=t.activeElt.ownerDocument,n=e.defaultView.getSelection(),r=e.createRange();r.setEnd(t.anchorNode,t.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(t.focusNode,t.focusOffset)}}(u),k(n.cursorDiv),k(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,si(t,400)),n.updateLineNumbers=null,!0}function hi(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Dn(t))r&&(e.visible=jr(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+En(t.display)-jn(t),n.top)}),e.visible=jr(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ui(t,e))break;Ar(t);var i=Br(t);yr(t),Wr(t,i),pi(t,i),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function di(t,e){var n=new ci(t,e);if(ui(t,n)){Ar(t),hi(t,n);var r=Br(t);yr(t),Wr(t,r),pi(t,r),n.finish()}}function fi(t){t.sizer.style.marginLeft=t.gutters.offsetWidth+"px",hn(t,"gutterChanged",t)}function pi(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+An(t)+"px"}function mi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=lr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",s=0;s<n.length;s++)if(!n[s].hidden){t.options.fixedGutter&&(n[s].gutter&&(n[s].gutter.style.left=o),n[s].gutterBackground&&(n[s].gutterBackground.style.left=o));var a=n[s].alignable;if(a)for(var c=0;c<a.length;c++)a[c].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=r+i+"px")}}function gi(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=ne(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(D("div",[D("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,s=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-s)+1,r.lineNumWidth=r.lineNumInnerWidth+s,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",fi(t.display),!0}return!1}function bi(t,e){for(var n=[],r=!1,i=0;i<t.length;i++){var o=t[i],s=null;if("string"!=typeof o&&(s=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;r=!0}n.push({className:o,style:s})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function vi(t){var e=t.gutters,n=t.gutterSpecs;k(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,s=i.style,a=e.appendChild(D("div",null,"CodeMirror-gutter "+o));s&&(a.style.cssText=s),"CodeMirror-linenumbers"==o&&(t.lineGutter=a,a.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",fi(t)}function yi(t){vi(t.display),pr(t),mi(t)}function _i(t,e,r,i){var o=this;this.input=r,o.scrollbarFiller=D("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=D("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=j("div",null,"CodeMirror-code"),o.selectionDiv=D("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=D("div",null,"CodeMirror-cursors"),o.measure=D("div",null,"CodeMirror-measure"),o.lineMeasure=D("div",null,"CodeMirror-measure"),o.lineSpace=j("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=j("div",[o.lineSpace],"CodeMirror-lines");o.mover=D("div",[l],null,"position: relative"),o.sizer=D("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=D("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=D("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=D("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=D("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),o.wrapper.setAttribute("translate","no"),s&&a<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),c||n&&v||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=bi(i.gutters,i.lineNumbers),vi(o),r.init(o)}ci.prototype.signal=function(t,e){_t(t,e)&&this.events.push(arguments)},ci.prototype.finish=function(){for(var t=0;t<this.events.length;t++)bt.apply(null,this.events[t])};var wi=0,Si=null;function xi(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function Ci(t){var e=xi(t);return e.x*=Si,e.y*=Si,e}function Oi(t,e){u&&102==h&&(null==t.display.chromeScrollHack?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout((function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""}),100));var r=xi(e),i=r.x,o=r.y,s=Si;0===e.deltaMode&&(i=e.deltaX,o=e.deltaY,s=1);var a=t.display,l=a.scroller,f=l.scrollHeight>l.clientHeight;if(i&&l.scrollWidth>l.clientWidth||o&&f){if(o&&y&&c)t:for(var p=e.target,m=a.view;p!=l;p=p.parentNode)for(var g=0;g<m.length;g++)if(m[g].node==p){t.display.currentWheelTarget=p;break t}if(i&&!n&&!d&&null!=s)return o&&f&&Lr(t,Math.max(0,l.scrollTop+o*s)),Hr(t,Math.max(0,l.scrollLeft+i*s)),(!o||o&&f)&&St(e),void(a.wheelStartX=null);if(o&&null!=s){var b=o*s,v=t.doc.scrollTop,_=v+a.wrapper.clientHeight;b<0?v=Math.max(0,v+b-50):_=Math.min(t.doc.height,_+b+50),di(t,{top:v,bottom:_})}wi<20&&0!==e.deltaMode&&(null==a.wheelStartX?(a.wheelStartX=l.scrollLeft,a.wheelStartY=l.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var t=l.scrollLeft-a.wheelStartX,e=l.scrollTop-a.wheelStartY,n=e&&a.wheelDY&&e/a.wheelDY||t&&a.wheelDX&&t/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Si=(Si*wi+n)/(wi+1),++wi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}s?Si=-.53:n?Si=15:u?Si=-.7:f&&(Si=-1/3);var Ti=function(t,e){this.ranges=t,this.primIndex=e};Ti.prototype.primary=function(){return this.ranges[this.primIndex]},Ti.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!oe(n.anchor,r.anchor)||!oe(n.head,r.head))return!1}return!0},Ti.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new Ei(se(this.ranges[e].anchor),se(this.ranges[e].head));return new Ti(t,this.primIndex)},Ti.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Ti.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ie(e,r.from())>=0&&ie(t,r.to())<=0)return n}return-1};var Ei=function(t,e){this.anchor=t,this.head=e};function ki(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return ie(t.from(),e.from())})),n=z(e,i);for(var o=1;o<e.length;o++){var s=e[o],a=e[o-1],c=ie(a.to(),s.from());if(r&&!s.empty()?c>0:c>=0){var l=ce(a.from(),s.from()),u=ae(a.to(),s.to()),h=a.empty()?s.from()==s.head:a.from()==a.head;o<=n&&--n,e.splice(--o,2,new Ei(h?u:l,h?l:u))}}return new Ti(e,n)}function Ai(t,e){return new Ti([new Ei(t,e||t)],0)}function Di(t){return t.text?re(t.from.line+t.text.length-1,Q(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function ji(t,e){if(ie(t,e.from)<0)return t;if(ie(t,e.to)<=0)return Di(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Di(e).ch-e.to.ch),re(n,r)}function Ii(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var i=t.sel.ranges[r];n.push(new Ei(ji(i.anchor,e),ji(i.head,e)))}return ki(t.cm,n,t.sel.primIndex)}function Pi(t,e,n){return t.line==e.line?re(n.line,t.ch-e.ch+n.ch):re(n.line+(t.line-e.line),t.ch)}function Mi(t){t.doc.mode=Gt(t.options,t.doc.modeOption),Ni(t)}function Ni(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,si(t,100),t.state.modeGen++,t.curOp&&pr(t)}function Fi(t,e){return 0==e.from.ch&&0==e.to.ch&&""==Q(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Ri(t,e,n,r){function i(t){return n?n[t]:null}function o(t,n,i){!function(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),je(t),Ie(t,n);var i=r?r(t):1;i!=t.height&&Jt(t,i)}(t,n,i,r),hn(t,"change",t,e)}function s(t,e){for(var n=[],o=t;o<e;++o)n.push(new Ke(l[o],i(o),r));return n}var a=e.from,c=e.to,l=e.text,u=Kt(t,a.line),h=Kt(t,c.line),d=Q(l),f=i(l.length-1),p=c.line-a.line;if(e.full)t.insert(0,s(0,l.length)),t.remove(l.length,t.size-l.length);else if(Fi(t,e)){var m=s(0,l.length-1);o(h,h.text,f),p&&t.remove(a.line,p),m.length&&t.insert(a.line,m)}else if(u==h)if(1==l.length)o(u,u.text.slice(0,a.ch)+d+u.text.slice(c.ch),f);else{var g=s(1,l.length-1);g.push(new Ke(d+u.text.slice(c.ch),f,r)),o(u,u.text.slice(0,a.ch)+l[0],i(0)),t.insert(a.line+1,g)}else if(1==l.length)o(u,u.text.slice(0,a.ch)+l[0]+h.text.slice(c.ch),i(0)),t.remove(a.line+1,p);else{o(u,u.text.slice(0,a.ch)+l[0],i(0)),o(h,d+h.text.slice(c.ch),f);var b=s(1,l.length-1);p>1&&t.remove(a.line+1,p-1),t.insert(a.line+1,b)}hn(t,"change",t,e)}function Li(t,e,n){!function t(r,i,o){if(r.linked)for(var s=0;s<r.linked.length;++s){var a=r.linked[s];if(a.doc!=i){var c=o&&a.sharedHist;n&&!c||(e(a.doc,c),t(a.doc,r,c))}}}(t,null,!0)}function Vi(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,hr(t),Mi(t),Hi(t),t.options.direction=e.direction,t.options.lineWrapping||$e(t),t.options.mode=e.modeOption,pr(t)}function Hi(t){("rtl"==t.doc.direction?M:E)(t.display.lineDiv,"CodeMirror-rtl")}function Bi(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function Gi(t,e){var n={from:se(e.from),to:Di(e),text:Yt(t,e.from,e.to)};return qi(t,n,e.from.line,e.to.line+1),Li(t,(function(t){return qi(t,n,e.from.line,e.to.line+1)}),!0),n}function zi(t){for(;t.length&&Q(t).ranges;)t.pop()}function Wi(t,e,n,r){var i=t.history;i.undone.length=0;var o,s,a=+new Date;if((i.lastOp==r||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>a-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(zi(t.done),Q(t.done)):t.done.length&&!Q(t.done).ranges?Q(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Q(t.done)):void 0}(i,i.lastOp==r)))s=Q(o.changes),0==ie(e.from,e.to)&&0==ie(e.from,s.to)?s.to=Di(e):o.changes.push(Gi(t,e));else{var c=Q(i.done);for(c&&c.ranges||Ui(t.sel,i.done),o={changes:[Gi(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,s||bt(t,"historyAdded")}function Ui(t,e){var n=Q(e);n&&n.ranges&&n.equals(t)||e.push(t)}function qi(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Xi(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function $i(t,e){var n=function(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],i=0;i<e.text.length;++i)r.push(Xi(n[i]));return r}(t,e),r=Ae(t,e);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],s=r[i];if(o&&s)t:for(var a=0;a<s.length;++a){for(var c=s[a],l=0;l<o.length;++l)if(o[l].marker==c.marker)continue t;o.push(c)}else s&&(n[i]=s)}return n}function Ki(t,e,n){for(var r=[],i=0;i<t.length;++i){var o=t[i];if(o.ranges)r.push(n?Ti.prototype.deepCopy.call(o):o);else{var s=o.changes,a=[];r.push({changes:a});for(var c=0;c<s.length;++c){var l=s[c],u=void 0;if(a.push({from:l.from,to:l.to,text:l.text}),e)for(var h in l)(u=h.match(/^spans_(\d+)$/))&&z(e,Number(u[1]))>-1&&(Q(a)[h]=l[h],delete l[h])}}}return r}function Yi(t,e,n,r){if(r){var i=t.anchor;if(n){var o=ie(e,i)<0;o!=ie(n,i)<0?(i=e,e=n):o!=ie(e,n)<0&&(e=n)}return new Ei(i,e)}return new Ei(n||e,e)}function Qi(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),no(t,new Ti([Yi(t.sel.primary(),e,n,i)],0),r)}function Ji(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)r[o]=Yi(t.sel.ranges[o],e[o],null,i);no(t,ki(t.cm,r,t.sel.primIndex),n)}function Zi(t,e,n,r){var i=t.sel.ranges.slice(0);i[e]=n,no(t,ki(t.cm,i,t.sel.primIndex),r)}function to(t,e,n,r){no(t,Ai(e,n),r)}function eo(t,e,n){var r=t.history.done,i=Q(r);i&&i.ranges?(r[r.length-1]=e,ro(t,e,n)):no(t,e,n)}function no(t,e,n){ro(t,e,n),function(t,e,n,r){var i=t.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,n,r){var i=e.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,Q(i.done),e))?i.done[i.done.length-1]=e:Ui(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&zi(i.undone)}(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function ro(t,e,n){(_t(t,"beforeSelectionChange")||t.cm&&_t(t.cm,"beforeSelectionChange"))&&(e=function(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new Ei(ue(t,e[n].anchor),ue(t,e[n].head))},origin:n&&n.origin};return bt(t,"beforeSelectionChange",t,r),t.cm&&bt(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?ki(t.cm,r.ranges,r.ranges.length-1):e}(t,e,n));var r=n&&n.bias||(ie(e.primary().head,t.sel.primary().head)<0?-1:1);io(t,so(t,e,r,!0)),n&&!1===n.scroll||!t.cm||"nocursor"==t.cm.getOption("readOnly")||Mr(t.cm)}function io(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,yt(t.cm)),hn(t,"cursorActivity",t))}function oo(t){io(t,so(t,t.sel,null,!1))}function so(t,e,n,r){for(var i,o=0;o<e.ranges.length;o++){var s=e.ranges[o],a=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],c=co(t,s.anchor,a&&a.anchor,n,r),l=s.head==s.anchor?c:co(t,s.head,a&&a.head,n,r);(i||c!=s.anchor||l!=s.head)&&(i||(i=e.ranges.slice(0,o)),i[o]=new Ei(c,l))}return i?ki(t.cm,i,e.primIndex):e}function ao(t,e,n,r,i){var o=Kt(t,e.line);if(o.markedSpans)for(var s=0;s<o.markedSpans.length;++s){var a=o.markedSpans[s],c=a.marker,l="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,u="selectRight"in c?!c.selectRight:c.inclusiveRight;if((null==a.from||(l?a.from<=e.ch:a.from<e.ch))&&(null==a.to||(u?a.to>=e.ch:a.to>e.ch))){if(i&&(bt(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--s;continue}break}if(!c.atomic)continue;if(n){var h=c.find(r<0?1:-1),d=void 0;if((r<0?u:l)&&(h=lo(t,h,-r,h&&h.line==e.line?o:null)),h&&h.line==e.line&&(d=ie(h,n))&&(r<0?d<0:d>0))return ao(t,h,e,r,i)}var f=c.find(r<0?-1:1);return(r<0?l:u)&&(f=lo(t,f,r,f.line==e.line?o:null)),f?ao(t,f,e,r,i):null}}return e}function co(t,e,n,r,i){var o=r||1;return ao(t,e,n,o,i)||!i&&ao(t,e,n,o,!0)||ao(t,e,n,-o,i)||!i&&ao(t,e,n,-o,!0)||(t.cantEdit=!0,re(t.first,0))}function lo(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?ue(t,re(e.line-1)):null:n>0&&e.ch==(r||Kt(t,e.line)).text.length?e.line<t.first+t.size-1?re(e.line+1,0):null:new re(e.line,e.ch+n)}function uo(t){t.setSelection(re(t.firstLine(),0),re(t.lastLine()),U)}function ho(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,i,o){e&&(r.from=ue(t,e)),n&&(r.to=ue(t,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),bt(t,"beforeChange",t,r),t.cm&&bt(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function fo(t,e,n){if(t.cm){if(!t.cm.curOp)return ri(t.cm,fo)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"))||(e=ho(t,e,!0))){var r=Ce&&!n&&function(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=z(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:e,to:n}],o=0;o<r.length;++o)for(var s=r[o],a=s.find(0),c=0;c<i.length;++c){var l=i[c];if(!(ie(l.to,a.from)<0||ie(l.from,a.to)>0)){var u=[c,1],h=ie(l.from,a.from),d=ie(l.to,a.to);(h<0||!s.inclusiveLeft&&!h)&&u.push({from:l.from,to:a.from}),(d>0||!s.inclusiveRight&&!d)&&u.push({from:a.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)po(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else po(t,e)}}function po(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ie(e.from,e.to)){var n=Ii(t,e);Wi(t,e,n,t.cm?t.cm.curOp.id:NaN),bo(t,e,n,Ae(t,e));var r=[];Li(t,(function(t,n){n||-1!=z(r,t.history)||(wo(t.history,e),r.push(t.history)),bo(t,e,null,Ae(t,e))}))}}function mo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,s=t.sel,a="undo"==e?o.done:o.undone,c="undo"==e?o.undone:o.done,l=0;l<a.length&&(i=a[l],n?!i.ranges||i.equals(t.sel):i.ranges);l++);if(l!=a.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=a.pop()).ranges){if(r)return void a.push(i);break}if(Ui(i,c),n&&!i.equals(t.sel))return void no(t,i,{clearRedo:!1});s=i}var u=[];Ui(s,c),c.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var h=_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"),d=function(n){var r=i.changes[n];if(r.origin=e,h&&!ho(t,r,!1))return a.length=0,{};u.push(Gi(t,r));var o=n?Ii(t,r):Q(a);bo(t,r,o,$i(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:Di(r)});var s=[];Li(t,(function(t,e){e||-1!=z(s,t.history)||(wo(t.history,r),s.push(t.history)),bo(t,r,null,$i(t,r))}))},f=i.changes.length-1;f>=0;--f){var p=d(f);if(p)return p.v}}}}function go(t,e){if(0!=e&&(t.first+=e,t.sel=new Ti(J(t.sel.ranges,(function(t){return new Ei(re(t.anchor.line+e,t.anchor.ch),re(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){pr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)mr(t.cm,r,"gutter")}}function bo(t,e,n,r){if(t.cm&&!t.cm.curOp)return ri(t.cm,bo)(t,e,n,r);if(e.to.line<t.first)go(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);go(t,i),e={from:re(t.first,0),to:re(e.to.line+i,e.to.ch),text:[Q(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:re(o,Kt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),n||(n=Ii(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,s=e.to,a=!1,c=o.line;t.options.lineWrapping||(c=Zt(Be(Kt(r,o.line))),r.iter(c,s.line+1,(function(t){if(t==i.maxLine)return a=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&yt(t),Ri(r,e,n,ur(t)),t.options.lineWrapping||(r.iter(c,o.line+e.text.length,(function(t){var e=Xe(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,a=!1)})),a&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var i=Kt(t,r).stateAfter;if(i&&(!(i instanceof de)||r+i.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(r,o.line),si(t,400);var l=e.text.length-(s.line-o.line)-1;e.full?pr(t):o.line!=s.line||1!=e.text.length||Fi(t.doc,e)?pr(t,o.line,s.line+1,l):mr(t,o.line,"text");var u=_t(t,"changes"),h=_t(t,"change");if(h||u){var d={from:o,to:s,text:e.text,removed:e.removed,origin:e.origin};h&&hn(t,"change",t,d),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(d)}t.display.selForContextMenu=null}(t.cm,e,r):Ri(t,e,r),ro(t,n,U),t.cantEdit&&co(t,re(t.firstLine(),0))&&(t.cantEdit=!1)}}function vo(t,e,n,r,i){var o;r||(r=n),ie(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof e&&(e=t.splitLines(e)),fo(t,{from:n,to:r,text:e,origin:i})}function yo(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function _o(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i],s=!0;if(o.ranges){o.copied||((o=t[i]=o.deepCopy()).copied=!0);for(var a=0;a<o.ranges.length;a++)yo(o.ranges[a].anchor,e,n,r),yo(o.ranges[a].head,e,n,r)}else{for(var c=0;c<o.changes.length;++c){var l=o.changes[c];if(n<l.from.line)l.from=re(l.from.line+r,l.from.ch),l.to=re(l.to.line+r,l.to.ch);else if(e<=l.to.line){s=!1;break}}s||(t.splice(0,i+1),i=0)}}}function wo(t,e){var n=e.from.line,r=e.to.line,i=e.text.length-(r-n)-1;_o(t.done,n,r,i),_o(t.undone,n,r,i)}function So(t,e,n,r){var i=e,o=e;return"number"==typeof e?o=Kt(t,le(t,e)):i=Zt(e),null==i?null:(r(o,i)&&t.cm&&mr(t.cm,i,n),o)}function xo(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function Co(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var i=t[r];e+=i.chunkSize(),n+=i.height,i.parent=this}this.size=e,this.height=n,this.parent=null}Ei.prototype.from=function(){return ce(this.anchor,this.head)},Ei.prototype.to=function(){return ae(this.anchor,this.head)},Ei.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},xo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var i=this.lines[n];this.height-=i.height,Ye(i),hn(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},Co.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(t<i){var o=Math.min(e,i-t),s=r.height;if(r.removeInner(t,o),this.height-=s-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(e-=o))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof xo))){var a=[];this.collapse(a),this.children=[new xo(a)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<=o){if(i.insertInner(t,e,n),i.lines&&i.lines.length>50){for(var s=i.lines.length%25+25,a=s;a<i.lines.length;){var c=new xo(i.lines.slice(a,a+=25));i.height-=c.height,this.children.splice(++r,0,c),c.parent=this}i.lines=i.lines.slice(0,s),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new Co(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=z(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new Co(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(t<o){var s=Math.min(e,o-t);if(i.iterN(t,s,n))return!0;if(0==(e-=s))break;t=0}else t-=o}}};var Oo=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function To(t,e,n){qe(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Pr(t,n)}Oo.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=Zt(n);if(null!=r&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(n.widgets=null);var o=Cn(this);Jt(n,Math.max(0,n.height-o)),t&&(ni(t,(function(){To(t,n,-o),mr(t,r,"widget")})),hn(t,"lineWidgetCleared",t,this,r))}},Oo.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Cn(this)-e;i&&(We(this.doc,r)||Jt(r,r.height+i),n&&ni(n,(function(){n.curOp.forceUpdate=!0,To(n,r,i),hn(n,"lineWidgetChanged",n,t,Zt(r))})))},wt(Oo);var Eo=0,ko=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Eo};function Ao(t,e,n,r,i){if(r&&r.shared)return function(t,e,n,r,i){(r=H(r)).shared=!1;var o=[Ao(t,e,n,r,i)],s=o[0],a=r.widgetNode;return Li(t,(function(t){a&&(r.widgetNode=a.cloneNode(!0)),o.push(Ao(t,ue(t,e),ue(t,n),r,i));for(var c=0;c<t.linked.length;++c)if(t.linked[c].isParent)return;s=Q(o)})),new Do(o,s)}(t,e,n,r,i);if(t.cm&&!t.cm.curOp)return ri(t.cm,Ao)(t,e,n,r,i);var o=new ko(t,i),s=ie(e,n);if(r&&H(r,o,!1),s>0||0==s&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=j("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(He(t,e.line,e,n,o)||e.line!=n.line&&He(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Oe=!0}o.addToHistory&&Wi(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var a,c=e.line,l=t.cm;if(t.iter(c,n.line+1,(function(r){l&&o.collapsed&&!l.options.lineWrapping&&Be(r)==l.display.maxLine&&(a=!0),o.collapsed&&c!=e.line&&Jt(r,0),function(t,e,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&t.markedSpans&&r.has(t.markedSpans)?t.markedSpans.push(e):(t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],r&&r.add(t.markedSpans)),e.marker.attachLine(t)}(r,new Te(o,c==e.line?e.ch:null,c==n.line?n.ch:null),t.cm&&t.cm.curOp),++c})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){We(t,e)&&Jt(e,0)})),o.clearOnEnter&&pt(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ce=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++Eo,o.atomic=!0),l){if(a&&(l.curOp.updateMaxLine=!0),o.collapsed)pr(l,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=e.line;u<=n.line;u++)mr(l,u,"text");o.atomic&&oo(l.doc),hn(l,"markerAdded",l,o)}return o}ko.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Kr(t),_t(this,"clear")){var n=this.find();n&&hn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var s=this.lines[o],a=Ee(s.markedSpans,this);t&&!this.collapsed?mr(t,Zt(s),"text"):t&&(null!=a.to&&(i=Zt(s)),null!=a.from&&(r=Zt(s))),s.markedSpans=ke(s.markedSpans,a),null==a.from&&this.collapsed&&!We(this.doc,s)&&t&&Jt(s,sr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var l=Be(this.lines[c]),u=Xe(l);u>t.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&pr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&oo(t.doc)),t&&hn(t,"markerCleared",t,this,r,i),e&&Yr(t),this.parent&&this.parent.clear()}},ko.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],s=Ee(o.markedSpans,this);if(null!=s.from&&(n=re(e?o:Zt(o),s.from),-1==t))return n;if(null!=s.to&&(r=re(e?o:Zt(o),s.to),1==t))return r}return n&&{from:n,to:r}},ko.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&ni(r,(function(){var i=e.line,o=Zt(e.line),s=Mn(r,o);if(s&&(Bn(s),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!We(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var c=Cn(n)-a;c&&Jt(i,i.height+c)}hn(r,"markerChanged",r,t)}))},ko.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=z(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ko.prototype.detachLine=function(t){if(this.lines.splice(z(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},wt(ko);var Do=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function jo(t){return t.findMarks(re(t.first,0),t.clipPos(re(t.lastLine())),(function(t){return t.parent}))}function Io(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];Li(n.primary.doc,(function(t){return r.push(t)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==z(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<t.length;n++)e(n)}Do.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();hn(this,"clear")}},Do.prototype.find=function(t,e){return this.primary.find(t,e)},wt(Do);var Po=0,Mo=function(t,e,n,r,i){if(!(this instanceof Mo))return new Mo(t,e,n,r,i);null==n&&(n=0),Co.call(this,[new xo([new Ke("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=re(n,0);this.sel=Ai(o),this.history=new Bi(null),this.id=++Po,this.modeOption=e,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Ri(this,{from:o,to:o,text:t}),no(this,Ai(o),U)};Mo.prototype=tt(Co.prototype,{constructor:Mo,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Qt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:oi((function(t){var e=re(this.first,0),n=this.first+this.size-1;fo(this,{from:e,to:re(n,Kt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Nr(this.cm,0,0),no(this,Ai(e),U)})),replaceRange:function(t,e,n,r){vo(this,t,e=ue(this,e),n=n?ue(this,n):e,r)},getRange:function(t,e,n){var r=Yt(this,ue(this,t),ue(this,e));return!1===n?r:r.join(""===n?"":n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(ee(this,t))return Kt(this,t)},getLineNumber:function(t){return Zt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Kt(this,t)),Be(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ue(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:oi((function(t,e,n){to(this,ue(this,"number"==typeof t?re(t,e||0):t),null,n)})),setSelection:oi((function(t,e,n){to(this,ue(this,t),ue(this,e||t),n)})),extendSelection:oi((function(t,e,n){Qi(this,ue(this,t),e&&ue(this,e),n)})),extendSelections:oi((function(t,e){Ji(this,he(this,t),e)})),extendSelectionsBy:oi((function(t,e){Ji(this,he(this,J(this.sel.ranges,t)),e)})),setSelections:oi((function(t,e,n){if(t.length){for(var r=[],i=0;i<t.length;i++)r[i]=new Ei(ue(this,t[i].anchor),ue(this,t[i].head||t[i].anchor));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),no(this,ki(this.cm,r,e),n)}})),addSelection:oi((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new Ei(ue(this,t),ue(this,e||t))),no(this,ki(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Yt(this,n[r].from(),n[r].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[r]=i}return e},replaceSelection:function(t,e,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:oi((function(t,e,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var s=i.ranges[o];r[o]={from:s.from(),to:s.to(),text:this.splitLines(t[o]),origin:n}}for(var a=e&&"end"!=e&&function(t,e,n){for(var r=[],i=re(t.first,0),o=i,s=0;s<e.length;s++){var a=e[s],c=Pi(a.from,i,o),l=Pi(Di(a),i,o);if(i=a.to,o=l,"around"==n){var u=t.sel.ranges[s],h=ie(u.head,u.anchor)<0;r[s]=new Ei(h?l:c,h?c:l)}else r[s]=new Ei(c,c)}return new Ti(r,t.sel.primIndex)}(this,r,e),c=r.length-1;c>=0;c--)fo(this,r[c]);a?eo(this,a):this.cm&&Mr(this.cm)})),undo:oi((function(){mo(this,"undo")})),redo:oi((function(){mo(this,"redo")})),undoSelection:oi((function(){mo(this,"undo",!0)})),redoSelection:oi((function(){mo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new Bi(this.history),Li(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ki(this.history.done),undone:Ki(this.history.undone)}},setHistory:function(t){var e=this.history=new Bi(this.history);e.done=Ki(t.done.slice(0),null,!0),e.undone=Ki(t.undone.slice(0),null,!0)},setGutterMarker:oi((function(t,e,n){return So(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&it(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:oi((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&So(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,it(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!ee(this,t))return null;if(e=t,!(t=Kt(this,t)))return null}else if(null==(e=Zt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:oi((function(t,e,n){return So(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(O(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:oi((function(t,e,n){return So(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[r];if(!i)return!1;if(null==n)t[r]=null;else{var o=i.match(O(n));if(!o)return!1;var s=o.index+o[0].length;t[r]=i.slice(0,o.index)+(o.index&&s!=i.length?" ":"")+i.slice(s)||null}return!0}))})),addLineWidget:oi((function(t,e,n){return function(t,e,n,r){var i=new Oo(t,n,r),o=t.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),So(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!We(t,e)){var r=qe(e)<t.scrollTop;Jt(e,e.height+Cn(i)),r&&Pr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&hn(o,"lineWidgetAdded",o,i,"number"==typeof e?e:Zt(e)),i}(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return Ao(this,ue(this,t),ue(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return Ao(this,t=ue(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=Kt(this,(t=ue(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=ue(this,t),e=ue(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var s=o.markedSpans;if(s)for(var a=0;a<s.length;a++){var c=s[a];null!=c.to&&i==t.line&&t.ch>=c.to||null==c.from&&i!=t.line||null!=c.from&&i==e.line&&c.from>=e.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>t)return e=t,!0;t-=o,++n})),ue(this,re(n,e))},indexFromPos:function(t){var e=(t=ue(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new Mo(Qt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new Mo(Qt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.find(),o=t.clipPos(i.from),s=t.clipPos(i.to);if(ie(o,s)){var a=Ao(t,o,s,r.primary,r.primary.type);r.markers.push(a),a.parent=r}}}(r,jo(this)),r},unlinkDoc:function(t){if(t instanceof As&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Io(jo(this));break}if(t.history==this.history){var n=[t.id];Li(t,(function(t){return n.push(t.id)}),!0),t.history=new Bi(null),t.history.done=Ki(this.history.done,n),t.history.undone=Ki(this.history.undone,n)}},iterLinkedDocs:function(t){Li(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Mt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:oi((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&ni(e=this.cm,(function(){Hi(e),pr(e)})))}))}),Mo.prototype.eachLine=Mo.prototype.iter;var No=0;function Fo(t){var e=this;if(Ro(e),!vt(e,t)&&!On(e.display,t)){St(t),s&&(No=+new Date);var n=dr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,c=function(){++a==i&&ri(e,(function(){var t={from:n=ue(e.doc,n),to:n,text:e.doc.splitLines(o.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};fo(e.doc,t),eo(e.doc,Ai(ue(e.doc,n),ue(e.doc,Di(t))))}))()},l=function(t,n){if(e.options.allowDropFileTypes&&-1==z(e.options.allowDropFileTypes,t.type))c();else{var r=new FileReader;r.onerror=function(){return c()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[n]=t),c()},r.readAsText(t)}},u=0;u<r.length;u++)l(r[u],u);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),ro(e.doc,Ai(n,n)),d)for(var f=0;f<d.length;++f)vo(e.doc,"",d[f].anchor,d[f].head,"drag");e.replaceSelection(h,"around","paste"),e.display.input.focus()}}catch(p){}}}}function Ro(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Lo(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var i=e[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Vo=!1;function Ho(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Go=0;Go<10;Go++)Bo[Go+48]=Bo[Go+96]=String(Go);for(var zo=65;zo<=90;zo++)Bo[zo]=String.fromCharCode(zo);for(var Wo=1;Wo<=12;Wo++)Bo[Wo+111]=Bo[Wo+63235]="F"+Wo;var Uo={};function qo(t){var e,n,r,i,o=t.split(/-(?!$)/);t=o[o.length-1];for(var s=0;s<o.length-1;s++){var a=o[s];if(/^(cmd|meta|m)$/i.test(a))i=!0;else if(/^a(lt)?$/i.test(a))e=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else{if(!/^s(hift)?$/i.test(a))throw new Error("Unrecognized modifier name: "+a);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Xo(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var i=J(n.split(" "),qo),o=0;o<i.length;o++){var s=void 0,a=void 0;o==i.length-1?(a=i.join(" "),s=r):(a=i.slice(0,o+1).join(" "),s="...");var c=e[a];if(c){if(c!=s)throw new Error("Inconsistent bindings for "+a)}else e[a]=s}delete t[n]}for(var l in e)t[l]=e[l];return t}function $o(t,e,n,r){var i=(e=Jo(e)).call?e.call(t,r):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return $o(t,e.fallthrough,n,r);for(var o=0;o<e.fallthrough.length;o++){var s=$o(t,e.fallthrough[o],n,r);if(s)return s}}}function Ko(t){var e="string"==typeof t?t:Bo[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Yo(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(x?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(x?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function Qo(t,e){if(d&&34==t.keyCode&&t.char)return!1;var n=Bo[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Yo(n,t,e))}function Jo(t){return"string"==typeof t?Uo[t]:t}function Zo(t,e){for(var n=t.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=e(n[i]);r.length&&ie(o.from,Q(r).to)<=0;){var s=r.pop();if(ie(s.from,o.from)<0){o.from=s.from;break}}r.push(o)}ni(t,(function(){for(var e=r.length-1;e>=0;e--)vo(t.doc,"",r[e].from,r[e].to,"+delete");Mr(t)}))}function ts(t,e,n){var r=at(t.text,e+n,n);return r<0||r>t.text.length?null:r}function es(t,e,n){var r=ts(t,e.ch,n);return null==r?null:new re(e.line,r,n<0?"after":"before")}function ns(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=dt(n,e.doc.direction);if(o){var s,a=i<0?Q(o):o[0],c=i<0==(1==a.level)?"after":"before";if(a.level>0||"rtl"==e.doc.direction){var l=Nn(e,n),u=Fn(e,l,s=i<0?n.text.length-1:0).top;s=ct((function(t){return Fn(e,l,t).top==u}),i<0==(1==a.level)?a.from:a.to-1,s),"before"==c&&(s=ts(n,s,1))}else s=i<0?a.to:a.from;return new re(r,s,c)}}return new re(r,i<0?n.text.length:0,i<0?"before":"after")}Uo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Uo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Uo.default=y?Uo.macDefault:Uo.pcDefault;var rs={selectAll:uo,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),U)},killLine:function(t){return Zo(t,(function(e){if(e.empty()){var n=Kt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:re(e.head.line+1,0)}:{from:e.head,to:re(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Zo(t,(function(e){return{from:re(e.from().line,0),to:ue(t.doc,re(e.to().line+1,0))}}))},delLineLeft:function(t){return Zo(t,(function(t){return{from:re(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Zo(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return Zo(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(re(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(re(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return is(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return os(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var n=Kt(t.doc,e),r=function(t){for(var e;e=Le(t);)t=e.find(1,!0).line;return t}(n);return r!=n&&(e=Zt(r)),ns(!0,t,n,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),X)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),X)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?os(t,e.head):r}),X)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),s=B(t.getLine(o.line),o.ch,r);e.push(Y(r-s%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return ni(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var i=e[r].head,o=Kt(t.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new re(i.line,i.ch-1)),i.ch>0)i=new re(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),re(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var s=Kt(t.doc,i.line-1).text;s&&(i=new re(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+s.charAt(s.length-1),re(i.line-1,s.length-1),i,"+transpose"))}n.push(new Ei(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return ni(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);Mr(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function is(t,e){var n=Kt(t.doc,e),r=Be(n);return r!=n&&(e=Zt(r)),ns(!0,t,r,e,1)}function os(t,e){var n=is(t,e.line),r=Kt(t.doc,n.line),i=dt(r,t.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/));return re(n.line,e.line==n.line&&e.ch<=o&&e.ch?0:o,n.sticky)}return n}function ss(t,e,n){if("string"==typeof e&&!(e=rs[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),i=e(t)!=W}finally{t.display.shift=r,t.state.suppressEdits=!1}return i}var as=new G;function cs(t,e,n,r){var i=t.state.keySeq;if(i){if(Ko(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:as.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),ls(t,i+" "+e,n,r))return!0}return ls(t,e,n,r)}function ls(t,e,n,r){var i=function(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var i=$o(e,t.state.keyMaps[r],n,t);if(i)return i}return t.options.extraKeys&&$o(e,t.options.extraKeys,n,t)||$o(e,t.options.keyMap,n,t)}(t,e,r);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&hn(t,"keyHandled",t,e,n),"handled"!=i&&"multi"!=i||(St(n),Cr(t)),!!i}function us(t,e){var n=Qo(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?cs(t,"Shift-"+n,e,(function(e){return ss(t,e,!0)}))||cs(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return ss(t,e)})):cs(t,n,e,(function(e){return ss(t,e)})))}var hs=null;function ds(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=P(R(e)),vt(e,t)))){s&&a<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var i=us(e,t);d&&(hs=i?r:null,i||88!=r||Ft||!(y?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(E(e,"CodeMirror-crosshair"),gt(document,"keyup",n),gt(document,"mouseover",n))}M(e,"CodeMirror-crosshair"),pt(document,"keyup",n),pt(document,"mouseover",n)}(e)}}function fs(t){16==t.keyCode&&(this.doc.sel.shift=!1),vt(this,t)}function ps(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||On(e.display,t)||vt(e,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(d&&n==hs)return hs=null,void St(t);if(!d||t.which&&!(t.which<10)||!us(e,t)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(t,e,n){return cs(t,"'"+n+"'",e,(function(e){return ss(t,e,!0)}))}(e,t,i)||e.display.input.onKeyPress(t))}}}var ms,gs,bs=function(t,e,n){this.time=t,this.pos=e,this.button=n};function vs(t){var e=this,n=e.display;if(!(vt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,On(n,t))c||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ws(e,t)){var r=dr(e,t),i=Et(t),o=r?function(t,e){var n=+new Date;return gs&&gs.compare(n,t,e)?(ms=gs=null,"triple"):ms&&ms.compare(n,t,e)?(gs=new bs(n,t,e),ms=null,"double"):(ms=new bs(n,t,e),gs=null,"single")}(r,i):"single";L(e).focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),r&&function(t,e,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),cs(t,Yo(o=(1==e?"Left":2==e?"Middle":"Right")+o,i),i,(function(e){if("string"==typeof e&&(e=rs[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=W}finally{t.state.suppressEdits=!1}return r}))}(e,i,r,o,t)||(1==i?r?function(t,e,n,r){s?setTimeout(V(Or,t),0):t.curOp.focus=P(R(t));var i,o=function(t,e,n){var r=t.getOption("configureMouse"),i=r?r(t,e,n):{};return null==i.unit&&(i.unit=(_?n.shiftKey&&n.metaKey:n.altKey)?"rectangle":"single"==e?"char":"double"==e?"word":"line"),(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(t,n,r),l=t.doc.sel;t.options.dragDrop&&Dt&&!t.isReadOnly()&&"single"==n&&(i=l.contains(e))>-1&&(ie((i=l.ranges[i]).from(),e)<0||e.xRel>0)&&(ie(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,l=ri(t,(function(e){c&&(i.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Tr(t)),gt(i.wrapper.ownerDocument,"mouseup",l),gt(i.wrapper.ownerDocument,"mousemove",u),gt(i.scroller,"dragstart",h),gt(i.scroller,"drop",l),o||(St(e),r.addNew||Qi(t.doc,n,null,null,r.extend),c&&!f||s&&9==a?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return o=!0};c&&(i.scroller.draggable=!0),t.state.draggingText=l,l.copy=!r.moveOnDrag,pt(i.wrapper.ownerDocument,"mouseup",l),pt(i.wrapper.ownerDocument,"mousemove",u),pt(i.scroller,"dragstart",h),pt(i.scroller,"drop",l),t.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(t,r,e,o):function(t,e,n,r){s&&Tr(t);var i=t.display,o=t.doc;St(e);var a,c,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(c=o.sel.contains(n),a=c>-1?u[c]:new Ei(n,n)):(a=o.sel.primary(),c=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new Ei(n,n)),n=dr(t,e,!0,!0),c=-1;else{var h=ys(t,n,r.unit);a=r.extend?Yi(a,h.anchor,h.head,r.extend):h}r.addNew?-1==c?(c=u.length,no(o,ki(t,u.concat([a]),c),{scroll:!1,origin:"*mouse"})):u.length>1&&u[c].empty()&&"char"==r.unit&&!r.extend?(no(o,ki(t,u.slice(0,c).concat(u.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Zi(o,c,a,q):(c=0,no(o,new Ti([a],0),q),l=o.sel);var d=n,f=i.wrapper.getBoundingClientRect(),p=0;function m(e){t.state.selectingText=!1,p=1/0,e&&(St(e),i.input.focus()),gt(i.wrapper.ownerDocument,"mousemove",g),gt(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=ri(t,(function(e){0!==e.buttons&&Et(e)?function e(s){var u=++p,h=dr(t,s,!0,"rectangle"==r.unit);if(h)if(0!=ie(h,d)){t.curOp.focus=P(R(t)),function(e){if(0!=ie(d,e))if(d=e,"rectangle"==r.unit){for(var i=[],s=t.options.tabSize,u=B(Kt(o,n.line).text,n.ch,s),h=B(Kt(o,e.line).text,e.ch,s),f=Math.min(u,h),p=Math.max(u,h),m=Math.min(n.line,e.line),g=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=g;m++){var b=Kt(o,m).text,v=$(b,f,s);f==p?i.push(new Ei(re(m,v),re(m,v))):b.length>v&&i.push(new Ei(re(m,v),re(m,$(b,p,s))))}i.length||i.push(new Ei(n,n)),no(o,ki(t,l.ranges.slice(0,c).concat(i),c),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var y,_=a,w=ys(t,e,r.unit),S=_.anchor;ie(w.anchor,S)>0?(y=w.head,S=ce(_.from(),w.anchor)):(y=w.anchor,S=ae(_.to(),w.head));var x=l.ranges.slice(0);x[c]=function(t,e){var n=e.anchor,r=e.head,i=Kt(t.doc,n.line);if(0==ie(n,r)&&n.sticky==r.sticky)return e;var o=dt(i);if(!o)return e;var s=ut(o,n.ch,n.sticky),a=o[s];if(a.from!=n.ch&&a.to!=n.ch)return e;var c,l=s+(a.from==n.ch==(1!=a.level)?0:1);if(0==l||l==o.length)return e;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=ut(o,r.ch,r.sticky),h=u-s||(r.ch-n.ch)*(1==a.level?-1:1);c=u==l-1||u==l?h<0:h>0}var d=o[l+(c?-1:0)],f=c==(1==d.level),p=f?d.from:d.to,m=f?"after":"before";return n.ch==p&&n.sticky==m?e:new Ei(new re(n.line,p,m),r)}(t,new Ei(ue(o,S),y)),no(o,ki(t,x,c),q)}}(h);var m=jr(i,o);(h.line>=m.to||h.line<m.from)&&setTimeout(ri(t,(function(){p==u&&e(s)})),150)}else{var g=s.clientY<f.top?-20:s.clientY>f.bottom?20:0;g&&setTimeout(ri(t,(function(){p==u&&(i.scroller.scrollTop+=g,e(s))})),50)}}(e):m(e)})),b=ri(t,m);t.state.selectingText=b,pt(i.wrapper.ownerDocument,"mousemove",g),pt(i.wrapper.ownerDocument,"mouseup",b)}(t,r,e,o)}(e,r,o,t):Tt(t)==n.scroller&&St(t):2==i?(r&&Qi(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?e.display.input.onContextMenu(t):Tr(e)))}}function ys(t,e,n){if("char"==n)return new Ei(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new Ei(re(e.line,0),ue(t.doc,re(e.line+1,0)));var r=n(t,e);return new Ei(r.from,r.to)}function _s(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(u){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&St(e);var s=t.display,a=s.lineDiv.getBoundingClientRect();if(o>a.bottom||!_t(t,n))return Ct(e);o-=a.top-s.viewOffset;for(var c=0;c<t.display.gutterSpecs.length;++c){var l=s.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i)return bt(t,n,t,te(t.doc,o),t.display.gutterSpecs[c].className,e),Ct(e)}}function ws(t,e){return _s(t,e,"gutterClick",!0)}function Ss(t,e){On(t.display,e)||function(t,e){return!!_t(t,"gutterContextMenu")&&_s(t,e,"gutterContextMenu",!1)}(t,e)||vt(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function xs(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(t)}bs.prototype.compare=function(t,e,n){return this.time+400>t&&0==ie(e,this.pos)&&n==this.button};var Cs={toString:function(){return"CodeMirror.Init"}},Os={},Ts={};function Es(t,e,n){if(!e!=!(n&&n!=Cs)){var r=t.display.dragFunctions,i=e?pt:gt;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function ks(t){t.options.lineWrapping?(M(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(E(t.display.wrapper,"CodeMirror-wrap"),$e(t)),hr(t),pr(t),zn(t),setTimeout((function(){return Wr(t)}),100)}function As(t,e){var n=this;if(!(this instanceof As))return new As(t,e);this.options=e=e?H(e):{},H(Os,e,!1);var r=e.value;"string"==typeof r?r=new Mo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new As.inputStyles[e.inputStyle](this),o=this.display=new _i(t,r,i,e);for(var l in o.wrapper.CodeMirror=this,xs(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new G,keySeq:null,specialChars:null},e.autofocus&&!v&&o.input.focus(),s&&a<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;pt(e.scroller,"mousedown",ri(t,vs)),pt(e.scroller,"dblclick",s&&a<11?ri(t,(function(e){if(!vt(t,e)){var n=dr(t,e);if(n&&!ws(t,e)&&!On(t.display,e)){St(e);var r=t.findWordAt(n);Qi(t.doc,r.anchor,r.head)}}})):function(e){return vt(t,e)||St(e)}),pt(e.scroller,"contextmenu",(function(e){return Ss(t,e)})),pt(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||Ss(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}pt(e.scroller,"touchstart",(function(i){if(!vt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!ws(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),pt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),pt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!On(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var s,a=t.coordsChar(e.activeTouch,"page");s=!r.prev||o(r,r.prev)?new Ei(a,a):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(a):new Ei(re(a.line,0),ue(t.doc,re(a.line+1,0))),t.setSelection(s.anchor,s.head),t.focus(),St(n)}i()})),pt(e.scroller,"touchcancel",i),pt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Lr(t,e.scroller.scrollTop),Hr(t,e.scroller.scrollLeft,!0),bt(t,"scroll",t))})),pt(e.scroller,"mousewheel",(function(e){return Oi(t,e)})),pt(e.scroller,"DOMMouseScroll",(function(e){return Oi(t,e)})),pt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){vt(t,e)||Ot(e)},over:function(e){vt(t,e)||(function(t,e){var n=dr(t,e);if(n){var r=document.createDocumentFragment();wr(t,n,r),t.display.dragCursor||(t.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),A(t.display.dragCursor,r)}}(t,e),Ot(e))},start:function(e){return function(t,e){if(s&&(!t.state.draggingText||+new Date-No<100))Ot(e);else if(!vt(t,e)&&!On(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!f)){var n=D("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(t,e)},drop:ri(t,Fo),leave:function(e){vt(t,e)||Ro(t)}};var c=e.input.getField();pt(c,"keyup",(function(e){return fs.call(t,e)})),pt(c,"keydown",ri(t,ds)),pt(c,"keypress",ri(t,ps)),pt(c,"focus",(function(e){return Er(t,e)})),pt(c,"blur",(function(e){return kr(t,e)}))}(this),function(){var t;Vo||(pt(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Lo(Ho)}),100))})),pt(window,"blur",(function(){return Lo(kr)})),Vo=!0)}(),Kr(this),this.curOp.forceUpdate=!0,Vi(this,r),e.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Er(n)}),20):kr(this),Ts)Ts.hasOwnProperty(l)&&Ts[l](this,e[l],Cs);gi(this),e.finishInit&&e.finishInit(this);for(var u=0;u<Ds.length;++u)Ds[u](this);Yr(this),c&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}As.defaults=Os,As.optionHandlers=Ts;var Ds=[];function js(t,e,n,r){var i,o=t.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=ge(t,e).state:n="prev");var s=t.options.tabSize,a=Kt(o,e),c=B(a.text,null,s);a.stateAfter&&(a.stateAfter=null);var l,u=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&((l=o.mode.indent(i,a.text.slice(u.length),a.text))==W||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>o.first?B(Kt(o,e-1).text,null,s):0:"add"==n?l=c+t.options.indentUnit:"subtract"==n?l=c-t.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var h="",d=0;if(t.options.indentWithTabs)for(var f=Math.floor(l/s);f;--f)d+=s,h+="\t";if(d<l&&(h+=Y(l-d)),h!=u)return vo(o,h,re(e,0),re(e,u.length),"+input"),a.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var m=o.sel.ranges[p];if(m.head.line==e&&m.head.ch<u.length){var g=re(e,u.length);Zi(o,p,new Ei(g,g));break}}}As.defineInitHook=function(t){return Ds.push(t)};var Is=null;function Ps(t){Is=t}function Ms(t,e,n,r,i){var o=t.doc;t.display.shift=!1,r||(r=o.sel);var s=+new Date-200,a="paste"==i||t.state.pasteIncoming>s,c=Mt(e),l=null;if(a&&r.ranges.length>1)if(Is&&Is.text.join("\n")==e){if(r.ranges.length%Is.text.length==0){l=[];for(var u=0;u<Is.text.length;u++)l.push(o.splitLines(Is.text[u]))}}else c.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(l=J(c,(function(t){return[t]})));for(var h=t.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var f=r.ranges[d],p=f.from(),m=f.to();f.empty()&&(n&&n>0?p=re(p.line,p.ch-n):t.state.overwrite&&!a?m=re(m.line,Math.min(Kt(o,m.line).text.length,m.ch+Q(c).length)):a&&Is&&Is.lineWise&&Is.text.join("\n")==c.join("\n")&&(p=m=re(p.line,0)));var g={from:p,to:m,text:l?l[d%l.length]:c,origin:i||(a?"paste":t.state.cutIncoming>s?"cut":"+input")};fo(t.doc,g),hn(t,"inputRead",t,g)}e&&!a&&Fs(t,e),Mr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ns(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||!e.hasFocus()||ni(e,(function(){return Ms(e,n,0,null,"paste")})),!0}function Fs(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),s=!1;if(o.electricChars){for(var a=0;a<o.electricChars.length;a++)if(e.indexOf(o.electricChars.charAt(a))>-1){s=js(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Kt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(s=js(t,i.head.line,"smart"));s&&hn(t,"electricInput",t,i.head.line)}}}function Rs(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var i=t.doc.sel.ranges[r].head.line,o={anchor:re(i,0),head:re(i+1,0)};n.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:n}}function Ls(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Vs(){var t=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),e=D("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?t.style.width="1000px":t.setAttribute("wrap","off"),g&&(t.style.border="1px solid black"),Ls(t),e}function Hs(t,e,n,r,i){var o=e,s=n,a=Kt(t,e.line),c=i&&"rtl"==t.direction?-n:n;function l(o){var s,l;if("codepoint"==r){var u=a.text.charCodeAt(e.ch+(n>0?0:-1));s=isNaN(u)?null:new re(e.line,Math.max(0,Math.min(a.text.length,e.ch+n*((n>0?u>=55296&&u<56320:u>=56320&&u<57343)?2:1))),-n)}else s=i?function(t,e,n,r){var i=dt(e,t.doc.direction);if(!i)return es(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ut(i,n.ch,n.sticky),s=i[o];if("ltr"==t.doc.direction&&s.level%2==0&&(r>0?s.to>n.ch:s.from<n.ch))return es(e,n,r);var a,c=function(t,n){return ts(e,t instanceof re?t.ch:t,n)},l=function(n){return t.options.lineWrapping?(a=a||Nn(t,e),er(t,e,a,n)):{begin:0,end:e.text.length}},u=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==t.doc.direction||1==s.level){var h=1==s.level==r<0,d=c(n,h?1:-1);if(null!=d&&(h?d<=s.to&&d<=u.end:d>=s.from&&d>=u.begin))return new re(n.line,d,h?"before":"after")}var f=function(t,e,r){for(var o=function(t,e){return e?new re(n.line,c(t,1),"before"):new re(n.line,t,"after")};t>=0&&t<i.length;t+=e){var s=i[t],a=e>0==(1!=s.level),l=a?r.begin:c(r.end,-1);if(s.from<=l&&l<s.to)return o(l,a);if(l=a?s.from:c(s.to,-1),r.begin<=l&&l<r.end)return o(l,a)}},p=f(o+r,r,u);if(p)return p;var m=r>0?u.end:c(u.begin,-1);return null==m||r>0&&m==e.text.length||!(p=f(r>0?0:i.length-1,r,l(m)))?null:p}(t.cm,a,e,n):es(a,e,n);if(null==s){if(o||(l=e.line+c)<t.first||l>=t.first+t.size||(e=new re(l,e.ch,e.sticky),!(a=Kt(t,l))))return!1;e=ns(i,t.cm,a,e.line,c)}else e=s;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,h="group"==r,d=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||l(!f);f=!1){var p=a.text.charAt(e.ch)||"\n",m=rt(p,d)?"w":h&&"\n"==p?"n":!h||/\s/.test(p)?null:"p";if(!h||f||m||(m="s"),u&&u!=m){n<0&&(n=1,l(),e.sticky="after");break}if(m&&(u=m),n>0&&!l(!f))break}var g=co(t,e,o,s,!0);return oe(o,g)&&(g.hitSide=!0),g}function Bs(t,e,n,r){var i,o,s=t.doc,a=e.left;if("page"==r){var c=Math.min(t.display.wrapper.clientHeight,L(t).innerHeight||s(t).documentElement.clientHeight),l=Math.max(c-.5*sr(t.display),3);i=(n>0?e.bottom:e.top)+n*l}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Zn(t,a,i)).outside;){if(n<0?i<=0:i>=s.height){o.hitSide=!0;break}i+=5*n}return o}var Gs=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new G,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function zs(t,e){var n=Mn(t,e.line);if(!n||n.hidden)return null;var r=Kt(t.doc,e.line),i=In(n,r,e.line),o=dt(r,t.doc.direction),s="left";o&&(s=ut(o,e.ch)%2?"right":"left");var a=Vn(i.map,e.ch,s);return a.offset="right"==a.collapse?a.end:a.start,a}function Ws(t,e){return e&&(t.bad=!0),t}function Us(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Ws(t.clipPos(re(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var o=t.display.view[i];if(o.node==r)return qs(o,e,n)}}function qs(t,e,n){var r=t.text.firstChild,i=!1;if(!e||!I(r,e))return Ws(re(Zt(t.line),0),!0);if(e==r&&(i=!0,e=r.childNodes[n],n=0,!e)){var o=t.rest?Q(t.rest):t.line;return Ws(re(Zt(o),o.text.length),i)}var s=3==e.nodeType?e:null,a=e;for(s||1!=e.childNodes.length||3!=e.firstChild.nodeType||(s=e.firstChild,n&&(n=s.nodeValue.length));a.parentNode!=r;)a=a.parentNode;var c=t.measure,l=c.maps;function u(e,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?c.map:l[i],s=0;s<o.length;s+=3){var a=o[s+2];if(a==e||a==n){var u=Zt(i<0?t.line:t.rest[i]),h=o[s]+r;return(r<0||a!=e)&&(h=o[s+(r?1:0)]),re(u,h)}}}var h=u(s,a,n);if(h)return Ws(h,i);for(var d=a.nextSibling,f=s?s.nodeValue.length-n:0;d;d=d.nextSibling){if(h=u(d,d.firstChild,0))return Ws(re(h.line,h.ch-f),i);f+=d.textContent.length}for(var p=a.previousSibling,m=n;p;p=p.previousSibling){if(h=u(p,p.firstChild,-1))return Ws(re(h.line,h.ch+m),i);m+=p.textContent.length}}Gs.prototype.init=function(t){var e=this,n=this,r=n.cm,i=n.div=t.lineDiv;function o(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function s(t){if(o(t)&&!vt(r,t)){if(r.somethingSelected())Ps({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Rs(r);Ps({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,U),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var s=Is.text.join("\n");if(t.clipboardData.setData("Text",s),t.clipboardData.getData("Text")==s)return void t.preventDefault()}var a=Vs(),c=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),c.value=Is.text.join("\n");var l=P(i.ownerDocument);F(c),setTimeout((function(){r.display.lineSpace.removeChild(a),l.focus(),l==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Ls(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pt(i,"paste",(function(t){!o(t)||vt(r,t)||Ns(t,r)||a<=11&&setTimeout(ri(r,(function(){return e.updateFromDOM()})),20)})),pt(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),pt(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),pt(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),pt(i,"touchstart",(function(){return n.forceCompositionEnd()})),pt(i,"input",(function(){e.composing||e.readFromDOMSoon()})),pt(i,"copy",s),pt(i,"cut",s)},Gs.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Gs.prototype.prepareSelection=function(){var t=_r(this.cm,!1);return t.focus=P(this.div.ownerDocument)==this.div,t},Gs.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Gs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Gs.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),i=r.from(),o=r.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var s=Us(e,t.anchorNode,t.anchorOffset),a=Us(e,t.focusNode,t.focusOffset);if(!s||s.bad||!a||a.bad||0!=ie(ce(s,a),i)||0!=ie(ae(s,a),o)){var c=e.display.view,l=i.line>=e.display.viewFrom&&zs(e,i)||{node:c[0].measure.map[2],offset:0},u=o.line<e.display.viewTo&&zs(e,o);if(!u){var h=c[c.length-1].measure,d=h.maps?h.maps[h.maps.length-1]:h.map;u={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(l&&u){var f,p=t.rangeCount&&t.getRangeAt(0);try{f=T(l.node,l.offset,u.offset,u.node)}catch(Pt){}f&&(!n&&e.state.focused?(t.collapse(l.node,l.offset),f.collapsed||(t.removeAllRanges(),t.addRange(f))):(t.removeAllRanges(),t.addRange(f)),p&&null==t.anchorNode?t.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Gs.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Gs.prototype.showMultipleSelections=function(t){A(this.cm.display.cursorDiv,t.cursors),A(this.cm.display.selectionDiv,t.selection)},Gs.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Gs.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return I(this.div,e)},Gs.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&P(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Gs.prototype.blur=function(){this.div.blur()},Gs.prototype.getField=function(){return this.div},Gs.prototype.supportsTouch=function(){return!0},Gs.prototype.receivedFocus=function(){var t=this,e=this;this.selectionInEditor()?setTimeout((function(){return t.pollSelection()}),20):ni(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Gs.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Gs.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(b&&u&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Us(e,t.anchorNode,t.anchorOffset),r=Us(e,t.focusNode,t.focusOffset);n&&r&&ni(e,(function(){no(e.doc,Ai(n,r),U),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Gs.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),s=o.from(),a=o.to();if(0==s.ch&&s.line>r.firstLine()&&(s=re(s.line-1,Kt(r.doc,s.line-1).length)),a.ch==Kt(r.doc,a.line).text.length&&a.line<r.lastLine()&&(a=re(a.line+1,0)),s.line<i.viewFrom||a.line>i.viewTo-1)return!1;s.line==i.viewFrom||0==(t=fr(r,s.line))?(e=Zt(i.view[0].line),n=i.view[0].node):(e=Zt(i.view[t].line),n=i.view[t-1].node.nextSibling);var c,l,u=fr(r,a.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=Zt(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var h=r.doc.splitLines(function(t,e,n,r,i){var o="",s=!1,a=t.doc.lineSeparator(),c=!1;function l(){s&&(o+=a,c&&(o+=a),s=c=!1)}function u(t){t&&(l(),o+=t)}function h(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void u(n);var o,d=e.getAttribute("cm-marker");if(d){var f=t.findMarks(re(r,0),re(i+1,0),(g=+d,function(t){return t.id==g}));return void(f.length&&(o=f[0].find(0))&&u(Yt(t.doc,o.from,o.to).join(a)))}if("false"==e.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;p&&l();for(var m=0;m<e.childNodes.length;m++)h(e.childNodes[m]);/^(pre|p)$/i.test(e.nodeName)&&(c=!0),p&&(s=!0)}else 3==e.nodeType&&u(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;h(e),e!=n;)e=e.nextSibling,c=!1;return o}(r,n,l,e,c)),d=Yt(r.doc,re(e,0),re(c,Kt(r.doc,c).text.length));h.length>1&&d.length>1;)if(Q(h)==Q(d))h.pop(),d.pop(),c--;else{if(h[0]!=d[0])break;h.shift(),d.shift(),e++}for(var f=0,p=0,m=h[0],g=d[0],b=Math.min(m.length,g.length);f<b&&m.charCodeAt(f)==g.charCodeAt(f);)++f;for(var v=Q(h),y=Q(d),_=Math.min(v.length-(1==h.length?f:0),y.length-(1==d.length?f:0));p<_&&v.charCodeAt(v.length-p-1)==y.charCodeAt(y.length-p-1);)++p;if(1==h.length&&1==d.length&&e==s.line)for(;f&&f>s.ch&&v.charCodeAt(v.length-p-1)==y.charCodeAt(y.length-p-1);)f--,p++;h[h.length-1]=v.slice(0,v.length-p).replace(/^\u200b+/,""),h[0]=h[0].slice(f).replace(/\u200b+$/,"");var w=re(e,f),S=re(c,d.length?Q(d).length-p:0);return h.length>1||h[0]||ie(w,S)?(vo(r.doc,h,w,S,"+input"),!0):void 0},Gs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Gs.prototype.reset=function(){this.forceCompositionEnd()},Gs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Gs.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Gs.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||ni(this.cm,(function(){return pr(t.cm)}))},Gs.prototype.setUneditable=function(t){t.contentEditable="false"},Gs.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ri(this.cm,Ms)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Gs.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Gs.prototype.onContextMenu=function(){},Gs.prototype.resetPosition=function(){},Gs.prototype.needsContentAttribute=!0;var Xs=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new G,this.hasSelection=!1,this.composing=null,this.resetting=!1};Xs.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!vt(r,t)){if(r.somethingSelected())Ps({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Rs(r);Ps({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,U):(n.prevInput="",i.value=e.text.join("\n"),F(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(i.style.width="0px"),pt(i,"input",(function(){s&&a>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),pt(i,"paste",(function(t){vt(r,t)||Ns(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pt(i,"cut",o),pt(i,"copy",o),pt(t.scroller,"paste",(function(e){if(!On(t,e)&&!vt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),pt(t.lineSpace,"selectstart",(function(e){On(t,e)||St(e)})),pt(i,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pt(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Xs.prototype.createField=function(t){this.wrapper=Vs(),this.textarea=this.wrapper.firstChild},Xs.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Xs.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=_r(t);if(t.options.moveInputWithCursor){var i=Yn(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),s=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+s.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+s.left-o.left))}return r},Xs.prototype.showSelection=function(t){var e=this.cm.display;A(e.cursorDiv,t.cursors),A(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Xs.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var e=this.cm;if(this.resetting=!0,e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&F(this.textarea),s&&a>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",s&&a>=9&&(this.hasSelection=null));this.resetting=!1}},Xs.prototype.getField=function(){return this.textarea},Xs.prototype.supportsTouch=function(){return!1},Xs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||P(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(Pt){}},Xs.prototype.blur=function(){this.textarea.blur()},Xs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Xs.prototype.receivedFocus=function(){this.slowPoll()},Xs.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Xs.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Xs.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!e.state.focused||Nt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(s&&a>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="\u200b"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return ni(e,(function(){Ms(e,i.slice(c),r.length-c,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Xs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Xs.prototype.onKeyPress=function(){s&&a>=9&&(this.hasSelection=null),this.fastPoll()},Xs.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=dr(n,t),l=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ri(n,no)(n.doc,Ai(o),U);var u,h=i.style.cssText,f=e.wrapper.style.cssText,p=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(t.clientY-p.top-5)+"px; left: "+(t.clientX-p.left-5)+"px;\n      z-index: 1000; background: "+(s?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),c&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=b,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),s&&a>=9&&g(),C){Ot(t);var m=function(){gt(window,"mouseup",m),setTimeout(b,20)};pt(window,"mouseup",m)}else setTimeout(b,50)}function g(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="\u200b"+(t?i.value:"");i.value="\u21da",i.value=o,e.prevInput=t?"":"\u200b",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function b(){if(e.contextMenuPending==b&&(e.contextMenuPending=!1,e.wrapper.style.cssText=f,i.style.cssText=h,s&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!s||s&&a<9)&&g();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"\u200b"==e.prevInput?ri(n,uo)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Xs.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},Xs.prototype.setUneditable=function(){},Xs.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=Cs&&i(t,e,n)}:i)}t.defineOption=n,t.Init=Cs,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Mi(t)}),!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Ni(t),zn(t),pr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(re(r,o))}r++}));for(var i=n.length-1;i>=0;i--)vo(t.doc,e,n[i],re(n[i].line,n[i].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Cs&&t.refresh()})),n("specialCharPlaceholder",en,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){xs(t),yi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Jo(e),i=n!=Cs&&Jo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ks,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=bi(e,t.options.lineNumbers),yi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?lr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Wr(t)}),!0),n("scrollbarStyle","native",(function(t){Xr(t),Wr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=bi(t.options.gutters,e),yi(t)}),!0),n("firstLineNumber",1,yi,!0),n("lineNumberFormatter",(function(t){return t}),yi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(kr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){t.display.input.screenReaderLabelChanged(e=""===e?null:e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Es),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ni,!0),n("addModeClass",!1,Ni,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Ni,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(As),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){L(this).focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&ri(this,e[t])(this,n,i),bt(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Jo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:ii((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");!function(t,e,n){for(var r=0,i=n(e);r<t.length&&n(t[r])<=i;)r++;t.splice(r,0,e)}(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,pr(this)})),removeOverlay:ii((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void pr(this)}})),indentLine:ii((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),ee(this.doc,t)&&js(this,t,e,n)})),indentSelection:ii((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var i=e[r];if(i.empty())i.head.line>n&&(js(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Mr(this));else{var o=i.from(),s=i.to(),a=Math.max(n,o.line);n=Math.min(this.lastLine(),s.line-(s.ch?0:1))+1;for(var c=a;c<n;++c)js(this,c,t);var l=this.doc.sel.ranges;0==o.ch&&e.length==l.length&&l[r].from().ch>0&&Zi(this.doc,r,new Ei(o,l[r].to()),U)}}})),getTokenAt:function(t,e){return we(this,t,e)},getLineTokens:function(t,e){return we(this,re(t),e,!0)},getTokenTypeAt:function(t){t=ue(this.doc,t);var e,n=me(this,Kt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var s=r+i>>1;if((s?n[2*s-1]:0)>=o)i=s;else{if(!(n[2*s+1]<o)){e=n[2*s+2];break}r=s+1}}var a=e?e.indexOf("overlay "):-1;return a<0?e:0==a?null:e.slice(0,a-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var i=n[e],o=this.getModeAt(t);if("string"==typeof o[e])i[o[e]]&&r.push(i[o[e]]);else if(o[e])for(var s=0;s<o[e].length;s++){var a=i[o[e][s]];a&&r.push(a)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var c=0;c<i._global.length;c++){var l=i._global[c];l.pred(o,this)&&-1==z(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(t,e){var n=this.doc;return ge(this,(t=le(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Yn(this,null==t?n.head:"object"==typeof t?ue(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return Kn(this,ue(this.doc,t),e||"page")},coordsChar:function(t,e){return Zn(this,(t=$n(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=$n(this,{top:t,left:0},e||"page").top,te(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,i=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,i=!0),r=Kt(this.doc,t)}else r=t;return Xn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-qe(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return ar(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,i){var o,s=this.display,a=(t=Yn(this,ue(this.doc,t))).bottom,c=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),s.sizer.appendChild(e),"over"==r)a=t.top;else if("above"==r||"near"==r){var l=Math.max(s.wrapper.clientHeight,this.doc.height),u=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>l)&&t.top>e.offsetHeight?a=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=l&&(a=t.bottom),c+e.offsetWidth>u&&(c=u-e.offsetWidth)}e.style.top=a+"px",e.style.left=e.style.right="","right"==i?(c=s.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(s.sizer.clientWidth-e.offsetWidth)/2),e.style.left=c+"px"),n&&(null!=(o=Ir(this,{left:c,top:a,right:c+e.offsetWidth,bottom:a+e.offsetHeight})).scrollTop&&Lr(this,o.scrollTop),null!=o.scrollLeft&&Hr(this,o.scrollLeft))},triggerOnKeyDown:ii(ds),triggerOnKeyPress:ii(ps),triggerOnKeyUp:fs,triggerOnMouseDown:ii(vs),execCommand:function(t){if(rs.hasOwnProperty(t))return rs[t].call(null,this)},triggerElectric:ii((function(t){Fs(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=ue(this.doc,t),s=0;s<e&&!(o=Hs(this.doc,o,i,n,r)).hitSide;++s);return o},moveH:ii((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Hs(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),X)})),deleteH:ii((function(t,e){var n=this.doc;this.doc.sel.somethingSelected()?n.replaceSelection("",null,"+delete"):Zo(this,(function(r){var i=Hs(n,r.head,t,e,!1);return t<0?{from:i,to:r.head}:{from:r.head,to:i}}))})),findPosV:function(t,e,n,r){var i=1,o=r;e<0&&(i=-1,e=-e);for(var s=ue(this.doc,t),a=0;a<e;++a){var c=Yn(this,s,"div");if(null==o?o=c.left:c.left=o,(s=Bs(this,c,i,n)).hitSide)break}return s},moveV:ii((function(t,e){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(s){if(o)return t<0?s.from():s.to();var a=Yn(n,s.head,"div");null!=s.goalColumn&&(a.left=s.goalColumn),i.push(a.left);var c=Bs(n,a,t,e);return"page"==e&&s==r.sel.primary()&&Pr(n,Kn(n,c,"div").top-a.top),c}),X),i.length)for(var s=0;s<r.sel.ranges.length;s++)r.sel.ranges[s].goalColumn=i[s]})),findWordAt:function(t){var e=Kt(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var o=e.charAt(n),s=rt(o,i)?function(t){return rt(t,i)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!rt(t)};n>0&&s(e.charAt(n-1));)--n;for(;r<e.length&&s(e.charAt(r));)++r}return new Ei(re(t.line,n),re(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==P(R(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ii((function(t,e){Nr(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-An(this)-this.display.barHeight,width:t.scrollWidth-An(this)-this.display.barWidth,clientHeight:jn(this),clientWidth:Dn(this)}},scrollIntoView:ii((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:re(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){Fr(t),t.curOp.scrollToPos=e}(this,t):Rr(this,t.from,t.to,t.margin)})),setSize:ii((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&Gn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){mr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,bt(this,"refresh",this)})),operation:function(t){return ni(this,t)},startOperation:function(){return Kr(this)},endOperation:function(){return Yr(this)},refresh:ii((function(){var t=this.display.cachedTextHeight;pr(this),this.curOp.forceUpdate=!0,zn(this),Nr(this,this.doc.scrollLeft,this.doc.scrollTop),fi(this.display),(null==t||Math.abs(t-sr(this.display))>.5||this.options.lineWrapping)&&hr(this),bt(this,"refresh",this)})),swapDoc:ii((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Vi(this,t),zn(this),this.display.input.reset(),Nr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,hn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},wt(t),t.registerHelper=function(e,r,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(As);var $s="iter insert remove copy getEditor constructor".split(" ");for(var Ks in Mo.prototype)Mo.prototype.hasOwnProperty(Ks)&&z($s,Ks)<0&&(As.prototype[Ks]=function(t){return function(){return t.apply(this.doc,arguments)}}(Mo.prototype[Ks]));return wt(Mo),As.inputStyles={textarea:Xs,contenteditable:Gs},As.defineMode=function(t){As.defaults.mode||"null"==t||(As.defaults.mode=t),Ht.apply(this,arguments)},As.defineMIME=function(t,e){Vt[t]=e},As.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),As.defineMIME("text/plain","null"),As.defineExtension=function(t,e){As.prototype[t]=e},As.defineDocExtension=function(t,e){Mo.prototype[t]=e},As.fromTextArea=function(t,e){if((e=e?H(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=P(t.ownerDocument);e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=a.getValue()}var i;if(t.form&&(pt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(Pt){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(gt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var a=As((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return a},function(t){t.off=gt,t.on=pt,t.wheelEventPixels=Ci,t.Doc=Mo,t.splitLines=Mt,t.countColumn=B,t.findColumn=$,t.isWordChar=nt,t.Pass=W,t.signal=bt,t.Line=Ke,t.changeEnd=Di,t.scrollbarModel=qr,t.Pos=re,t.cmpPos=ie,t.modes=Lt,t.mimeModes=Vt,t.resolveMode=Bt,t.getMode=Gt,t.modeExtensions=zt,t.extendMode=Wt,t.copyState=Ut,t.startState=Xt,t.innerMode=qt,t.commands=rs,t.keyMap=Uo,t.keyName=Qo,t.isModifierKey=Ko,t.lookupKey=$o,t.normalizeKeyMap=Xo,t.StringStream=$t,t.SharedTextMarker=Do,t.TextMarker=ko,t.LineWidget=Oo,t.e_preventDefault=St,t.e_stopPropagation=xt,t.e_stop=Ot,t.addClass=M,t.contains=I,t.rmClass=E,t.keyNames=Bo}(As),As.version="5.65.8",As}()},W96K:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("0z0v"),o=n("FWf1");e.throwIfEmpty=function(t){return void 0===t&&(t=c),function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.errorFactory))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(o.Subscriber);function c(){return new i.EmptyError}},WA8B:function(t,e,n){var r=n("yNUO"),i=n("pLeS"),o=n("1CCG");t.exports=function(t){var e=r(t);return o(e,i(e))+1}},WDqD:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("IKal");e.skipLast=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(0===this._skipCount?new i.Subscriber(t):new a(t,this._skipCount))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(i.Subscriber)},WHuz:function(t,e,n){"use strict";var r=n("+Zhm");e.shareReplay=function(t,e,n){var i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,i=t.bufferSize,o=void 0===i?Number.POSITIVE_INFINITY:i,s=t.windowTime,a=void 0===s?Number.POSITIVE_INFINITY:s,c=t.refCount,l=t.scheduler,u=0,h=!1,d=!1;return function(t){var i;u++,!e||h?(h=!1,e=new r.ReplaySubject(o,a,l),i=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){d=!0,n=void 0,e.complete()}}),d&&(n=void 0)):i=e.subscribe(this),this.add((function(){u--,i.unsubscribe(),i=void 0,n&&!d&&c&&0===u&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(i))}}},WMd4:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a}));var r=n("EY2u"),i=n("LRne"),o=n("z6cu"),s=function(t){return t.NEXT="N",t.ERROR="E",t.COMPLETE="C",t}({});let a=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(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()}}do(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()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(i.a)(this.value);case"E":return Object(o.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},WPMC:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("SpAZ"),o=n("z+Ro");function s(t,e,n,s,c){let l,u;return 1==arguments.length?(u=t.initialState,e=t.condition,n=t.iterate,l=t.resultSelector||i.a,c=t.scheduler):void 0===s||Object(o.a)(s)?(u=t,l=i.a,c=s):(u=t,l=s),new r.a(t=>{let r=u;if(c)return c.schedule(a,0,{subscriber:t,iterate:n,condition:e,resultSelector:l,state:r});for(;;){if(e){let n;try{n=e(r)}catch(i){return void t.error(i)}if(!n){t.complete();break}}let o;try{o=l(r)}catch(i){return void t.error(i)}if(t.next(o),t.closed)break;try{r=n(r)}catch(i){return void t.error(i)}}})}function a(t){const{subscriber:e,condition:n}=t;if(e.closed)return;if(t.needIterate)try{t.state=t.iterate(t.state)}catch(i){return void e.error(i)}else t.needIterate=!0;if(n){let r;try{r=n(t.state)}catch(i){return void e.error(i)}if(!r)return void e.complete();if(e.closed)return}let r;try{r=t.resultSelector(t.state)}catch(i){return void e.error(i)}return e.closed||(e.next(r),e.closed)?void 0:this.schedule(t)}},WWQz:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r="finishReason",i=["heartbeatFailed","idleTimeout","documentHidden"]},Wjgk:function(t,e,n){var r=n("yNUO");t.exports=function(t){return 4===r(t).getDay()}},WmBB:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=r(e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}},Wxhx:function(t,e,n){"use strict";var r=n("ds6q"),i=n("7K7o");e.publish=function(t){return t?i.multicast((function(){return new r.Subject}),t):i.multicast(new r.Subject)}},X7Z7:function(t,e,n){"use strict";var r=n("IKal"),i=n("4ik+"),o=n("W96K"),s=n("1Z+e"),a=n("Dxa7");e.elementAt=function(t,e){if(t<0)throw new r.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(c){return c.pipe(i.filter((function(e,n){return n===t})),a.take(1),n?s.defaultIfEmpty(e):o.throwIfEmpty((function(){return new r.ArgumentOutOfRangeError})))}}},XDbj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("sVev"),i=n("7o/Q");function o(t=c){return e=>e.lift(new s(t))}class s{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends i.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new r.a}},XKtA:function(t,e,n){"use strict";var r=n("7K7o"),i=n("4mvG"),o=n("ds6q");function s(){return new o.Subject}e.share=function(){return function(t){return i.refCount()(r.multicast(s)(t))}}},XNiG:function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return h}));var r=n("HDdC"),i=n("7o/Q"),o=n("quSY"),s=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends i.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new s.a;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].next(t)}}error(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;i<n;i++)r[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new s.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new s.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),o.a.EMPTY):this.isStopped?(t.complete(),o.a.EMPTY):(this.observers.push(t),new a.a(this,t))}asObservable(){const t=new r.a;return t.source=this,t}}return t.create=(t,e)=>new h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):o.a.EMPTY}}},XZVX:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getHours()}},XcSG:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("tk/3"),i=n("z6cu"),o=n("yrbL"),s=n("Fr4G"),a=n("ywEm"),c=n("fXoL"),l=n("tyNb");let u=(()=>{class t{constructor(t,e,n,r){this._router=t,this._ssr=e,this._userService=n,this._activateRoute=r}intercept(t,e){if(this._activateRoute.queryParamMap.subscribe(t=>{const e=t.get("ref");e&&null===localStorage.getItem("ref")&&localStorage.setItem("ref",e)}),this._ssr.isBrowser)return e.handle(t).pipe(Object(o.tap)(t=>{},e=>{this.handleError(t,e)},()=>{}))}handleError(t,e){var n,o,s,a,c,l;if("string"==typeof(null===(n=null==e?void 0:e.error)||void 0===n?void 0:n.error)&&(null===(s=null===(o=null==e?void 0:e.error)||void 0===o?void 0:o.error)||void 0===s?void 0:s.includes("No Portal found"))&&this._router.navigate(["/not-found"]),t.url.includes("m3u8")||t.url.includes("prolongate")&&(401===(null==e?void 0:e.status)||403===(null==e?void 0:e.status)))return;if("string"==typeof(null===(a=null==e?void 0:e.error)||void 0===a?void 0:a.error)&&(null===(l=null===(c=null==e?void 0:e.error)||void 0===c?void 0:c.error)||void 0===l?void 0:l.includes("no_quiz_versions")))return;let u="";if(e.error instanceof r.d)u=">>> CLIENT SIDE ERROR\nMessage: "+e.message;else{switch(e.status){case 400:u="Bad Request.";break;case 401:u="You need to log in to do this action.";break;case 403:u="You do not have permission to access the requested resource.";break;case 404:u="The requested resource does not exist.";break;case 412:u="Precondition Failed.";break;case 422:u="Validation Error!";break;case 500:u="Internal Server Error.";break;case 503:u="The requested service is not available.";break;default:u="Something went wrong!"}u=`>>> SERVER SIDE ERROR\nCode: ${e.status}\nURL: ${e.url}\nMessage: ${u}`}return console.error(u),401!==e.status||t.url.includes("session/sso")||(this._userService.deleteClient(),this._router.navigate(["/login"])),Object(i.a)(u)}}return t.\u0275fac=function(e){return new(e||t)(c["\u0275\u0275inject"](l.e),c["\u0275\u0275inject"](a.a),c["\u0275\u0275inject"](s.a),c["\u0275\u0275inject"](l.a))},t.\u0275prov=c["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},XdTn:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("iFGG");e.AsapAction=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=i.Immediate.setImmediate(e.flush.bind(e,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&&(i.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(n("2tF/").AsyncAction)},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},XoMe:function(t,e,n){"use strict";var r=n("0z0v"),i=n("4ik+"),o=n("Dxa7"),s=n("1Z+e"),a=n("W96K"),c=n("yoF8");e.first=function(t,e){var n=arguments.length>=2;return function(l){return l.pipe(t?i.filter((function(e,n){return t(e,n,l)})):c.identity,o.take(1),n?s.defaultIfEmpty(e):a.throwIfEmpty((function(){return new r.EmptyError})))}}},XqQ8:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function s(t,e){return e?n=>n.pipe(s((n,o)=>Object(i.a)(t(n,o)).pipe(Object(r.a)((t,r)=>e(n,t,o,r))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends o.b{constructor(t,e){super(t),this.project=e,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}_next(t){this.hasSubscription||this.tryNext(t)}tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(e)}_innerSub(t){const e=new o.a(this),n=this.destination;n.add(e);const r=Object(o.c)(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}},"Xwq/":function(t,e,n){"use strict";var r=n("FWf1"),i=n("p//D"),o=n("GiSu");e.toSubscriber=function(t,e,n){if(t){if(t instanceof r.Subscriber)return t;if(t[i.rxSubscriber])return t[i.rxSubscriber]()}return t||e||n?new r.Subscriber(t,e,n):new r.Subscriber(o.empty)}},XypG:function(t,e){},"Y/cZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));let r=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})()},Y34a:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.pairwise=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(i.Subscriber)},Y4kR:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();e.OuterSubscriber=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n("FWf1").Subscriber)},Y6u4:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})()},Y6wi:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("eIep"),i=n("SpAZ");function o(){return Object(r.a)(i.a)}},Y7HM:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("DH7j");function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},YK4L:function(t,e,n){"use strict";var r=n("vrE+"),i=n("76/Q"),o=n("1Z+e"),s=n("9AGB");e.reduce=function(t,e){return arguments.length>=2?function(n){return s.pipe(r.scan(t,e),i.takeLast(1),o.defaultIfEmpty(e))(n)}:function(e){return s.pipe(r.scan((function(e,n,r){return t(e,n,r+1)})),i.takeLast(1))(e)}}},YlT8:function(t,e,n){var r=n("NmtT");t.exports=function(t,e){return r(Date.now(),t,e)}},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("quSY");class i extends r.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},Yzd8:function(t,e,n){var r=n("yNUO");t.exports=function(t,e,n,i){var o=r(t).getTime(),s=r(e).getTime(),a=r(n).getTime(),c=r(i).getTime();if(o>s||a>c)throw new Error("The start of the range cannot be after the end of the range");return o<c&&a<s?Math.ceil(((c>s?s:c)-(a<o?o:a))/864e5):0}},Z303:function(t,e,n){"use strict";var r=n("1pIY"),i=n("vrE+"),o=n("b/k1"),s=n("q3Kh");e.timeInterval=function(t){return void 0===t&&(t=r.async),function(e){return o.defer((function(){return e.pipe(i.scan((function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}}),{current:t.now(),value:void 0,last:void 0}),s.map((function(t){return new a(t.value,t.current-t.last)})))}))}};var a=function(){return function(t,e){this.value=t,this.interval=e}}();e.TimeInterval=a},Z5tI:function(t,e,n){"use strict";var r=n("MkmW");e.subscribeToPromise=function(t){return function(e){return t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,r.hostReportError),e}}},ZHwm:function(t,e,n){"use strict";var r=n("eYLY"),i=n("7K7o");e.publishLast=function(){return function(t){return i.multicast(new r.AsyncSubject)(t)}}},ZTPi:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("aJGj");e.repeat=function(t){return void 0===t&&(t=-1),function(e){return 0===t?o.empty():e.lift(new s(t<0?-1:t-1,e))}};var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},ZUHj:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("7o/Q");class i extends r.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var o=n("SeVD"),s=n("HDdC");function a(t,e,n,r,a=new i(t,n,r)){if(!a.closed)return e instanceof s.a?e.subscribe(a):Object(o.a)(e)(a)}},ZXDK:function(t,e,n){var r=n("54Wo");t.exports=function(t,e){var n=r(t,e)/6e4;return n>0?Math.floor(n):Math.ceil(n)}},Zipn:function(t,e,n){var r=n("+6+2");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}},ZmXw:function(t,e,n){var r=n("yNUO"),i=n("VBar");t.exports=function(t,e){var n=r(t),o=Number(e),s=n.getMonth()+o,a=new Date(0);a.setFullYear(n.getFullYear(),s,1),a.setHours(0,0,0,0);var c=i(a);return n.setMonth(s,Math.min(c,n.getDate())),n}},Zy1z:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){return t=>t.lift(new o)}class o{call(t,e){return e.subscribe(new s(t))}}class s extends r.a{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},Zyez:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.compareTo=t,this.comparator=e}call(t,e){return e.subscribe(new s(t,this.compareTo,this.comparator))}}class s extends r.a{constructor(t,e,n){super(t),this.compareTo=e,this.comparator=n,this._a=[],this._b=[],this._oneComplete=!1,this.destination.add(e.subscribe(new a(t,this)))}_next(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())}_complete(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()}checkValues(){const{_a:t,_b:e,comparator:n}=this;for(;t.length>0&&e.length>0;){let i=t.shift(),o=e.shift(),s=!1;try{s=n?n(i,o):i===o}catch(r){this.destination.error(r)}s||this.emit(!1)}}emit(t){const{destination:e}=this;e.next(t),e.complete()}nextB(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())}completeB(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0}}class a extends r.a{constructor(t,e){super(t),this.parent=e}_next(t){this.parent.nextB(t)}_error(t){this.parent.error(t),this.unsubscribe()}_complete(){this.parent.completeB(),this.unsubscribe()}}},"a4+5":function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()<i.getTime()}},a6us:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.retry=function(t){return void 0===t&&(t=-1),function(e){return e.lift(new o(t,e))}};var o=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.count,this.source))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},a7Bn:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.skip=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(i.Subscriber)},aGrj:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("eIep");function i(t,e){return e?Object(r.a)(()=>t,e):Object(r.a)(()=>t)}},aJGj:function(t,e,n){"use strict";var r=n("Q1FS");e.EMPTY=new r.Observable((function(t){return t.complete()})),e.empty=function(t){return t?function(t){return new r.Observable((function(e){return t.schedule((function(){return e.complete()}))}))}(t):e.EMPTY}},aOuE:function(t,e,n){"use strict";var r=n("YK4L");e.max=function(t){return r.reduce("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}},aTp7:function(t,e){t.exports=function(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r-1),i.setHours(0,0,0,0),i}},"b/k1":function(t,e,n){"use strict";var r=n("Q1FS"),i=n("gTqA"),o=n("aJGj");e.defer=function(t){return new r.Observable((function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?i.from(n):o.empty()).subscribe(e)}))}},b056:function(t,e){t.exports=function(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r+1),i.setHours(23,59,59,999),i}},b6Qw:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("fXoL"),i=n("ofXK");let o=(()=>{class t{constructor(t,e){this.document=t,this.platformId=e,this.documentIsAccessible=Object(i.O)(this.platformId)}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),this.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);const e=this.getCookieRegExp(t).exec(this.document.cookie);return this.safeDecodeURIComponent(e[1])}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},e=this.document;return e.cookie&&""!==e.cookie&&e.cookie.split(";").forEach(e=>{const[n,r]=e.split("=");t[this.safeDecodeURIComponent(n.replace(/^ /,""))]=this.safeDecodeURIComponent(r)}),t}set(t,e,n,r,i,o,s){if(!this.documentIsAccessible)return;if("number"==typeof n||n instanceof Date||r||i||o||s)return void this.set(t,e,{expires:n,path:r,domain:i,secure:o,sameSite:s||"Lax"});let a=encodeURIComponent(t)+"="+encodeURIComponent(e)+";";const c=n||{};c.expires&&(a+="number"==typeof c.expires?"expires="+new Date((new Date).getTime()+1e3*c.expires*60*60*24).toUTCString()+";":"expires="+c.expires.toUTCString()+";"),c.path&&(a+="path="+c.path+";"),c.domain&&(a+="domain="+c.domain+";"),!1===c.secure&&"None"===c.sameSite&&(c.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),c.secure&&(a+="secure;"),c.sameSite||(c.sameSite="Lax"),a+="sameSite="+c.sameSite+";",this.document.cookie=a}delete(t,e,n,r,i="Lax"){if(!this.documentIsAccessible)return;const o=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(t,"",{expires:o,path:e,domain:n,secure:r,sameSite:i})}deleteAll(t,e,n,r="Lax"){if(!this.documentIsAccessible)return;const i=this.getAll();for(const o in i)i.hasOwnProperty(o)&&this.delete(o,t,e,n,r)}getCookieRegExp(t){const e=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+e+"|;\\s*"+e+")=(.*?)(?:;|$)","g")}safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch(e){return t}}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](i.e),r["\u0275\u0275inject"](r.PLATFORM_ID))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(i.e),Object(r["\u0275\u0275inject"])(r.PLATFORM_ID))},token:t,providedIn:"root"}),t})()},b8ws:function(t,e,n){var r=n("yNUO"),i=n("Kpyc"),o=n("DT56");t.exports=function(t,e){var n=r(t),s=r(e),a=o(n,s),c=Math.abs(i(n,s));return n.setFullYear(n.getFullYear()-a*c),a*(c-(o(n,s)===-a))}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("5+tZ"),i=n("SpAZ");function o(t=Number.POSITIVE_INFINITY){return Object(r.b)(i.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5+tZ");function i(t,e){return Object(r.b)(t,e,1)}},bSa5:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.mapTo=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.Subscriber)},bTqV:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return p}));var r=n("FKr1"),i=n("R1ws"),o=n("fXoL"),s=n("u47x");const a=["mat-button",""],c=["*"],l=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const h=Object(r.q)(Object(r.s)(Object(r.r)(u)));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const r of l)this._hasHostAttributes(r)&&this._getHostElement().classList.add(r);t.nativeElement.classList.add("mat-button-base"),this._focusMonitor.monitor(this._elementRef,!0),this.isRoundButton&&(this.color="accent")}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(o["\u0275\u0275directiveInject"](o.ElementRef),o["\u0275\u0275directiveInject"](s.f),o["\u0275\u0275directiveInject"](i.a,8))},t.\u0275cmp=o["\u0275\u0275defineComponent"]({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&o["\u0275\u0275viewQuery"](r.l,!0),2&t&&o["\u0275\u0275queryRefresh"](n=o["\u0275\u0275loadQuery"]())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(t,e){2&t&&(o["\u0275\u0275attribute"]("disabled",e.disabled||null),o["\u0275\u0275classProp"]("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o["\u0275\u0275InheritDefinitionFeature"]],attrs:a,ngContentSelectors:c,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(o["\u0275\u0275projectionDef"](),o["\u0275\u0275elementStart"](0,"span",0),o["\u0275\u0275projection"](1),o["\u0275\u0275elementEnd"](),o["\u0275\u0275element"](2,"div",1),o["\u0275\u0275element"](3,"div",2)),2&t&&(o["\u0275\u0275advance"](2),o["\u0275\u0275classProp"]("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o["\u0275\u0275property"]("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[r.l],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t extends d{constructor(t,e,n){super(e,t,n)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(o["\u0275\u0275directiveInject"](s.f),o["\u0275\u0275directiveInject"](o.ElementRef),o["\u0275\u0275directiveInject"](i.a,8))},t.\u0275cmp=o["\u0275\u0275defineComponent"]({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){1&t&&o["\u0275\u0275listener"]("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(o["\u0275\u0275attribute"]("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),o["\u0275\u0275classProp"]("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[o["\u0275\u0275InheritDefinitionFeature"]],attrs:a,ngContentSelectors:c,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(o["\u0275\u0275projectionDef"](),o["\u0275\u0275elementStart"](0,"span",0),o["\u0275\u0275projection"](1),o["\u0275\u0275elementEnd"](),o["\u0275\u0275element"](2,"div",1),o["\u0275\u0275element"](3,"div",2)),2&t&&(o["\u0275\u0275advance"](2),o["\u0275\u0275classProp"]("mat-button-ripple-round",e.isRoundButton||e.isIconButton),o["\u0275\u0275property"]("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[r.l],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275mod=o["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=o["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[r.m,r.g],r.g]}),t})()},bbBW:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("ofXK"),i=n("sYmb"),o=n("3Pt+"),s=n("+nIA"),a=n("fXoL");let c=(()=>{class t{}return t.\u0275mod=a["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=a["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[r.c,i.c,o.D,s.a]]}),t})()},bwD0:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=Number(e);return n.setHours(i),n}},c2HN: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}))},c4Wt:function(t,e,n){"use strict";var r=n("QtHX");e.concatAll=function(){return r.mergeAll(1)}},c6ID:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new s(t),i=e.subscribe(n);return i.add(Object(r.c)(this.notifier,new r.a(n))),i}}class s extends r.b{constructor(){super(...arguments),this.hasValue=!1}_next(t){this.value=t,this.hasValue=!0}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}},cBqT:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n("7o/Q");function i(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return n=>n.lift(new o(t,n,!1,e))}class o{constructor(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}call(t,e){return e.subscribe(new s(t,this.predicate,this.source,this.yieldIndex,this.thisArg))}}class s extends r.a{constructor(t,e,n,r,i){super(t),this.predicate=e,this.source=n,this.yieldIndex=r,this.thisArg=i,this.index=0}notifyComplete(t){const e=this.destination;e.next(t),e.complete(),this.unsubscribe()}_next(t){const{predicate:e,thisArg:n}=this,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(i){this.destination.error(i)}}_complete(){this.notifyComplete(this.yieldIndex?-1:void 0)}}},cH1L:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s}));var r=n("fXoL"),i=n("ofXK");const o=new r.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(r.inject)(i.e)}});let s=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new r.EventEmitter,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](o,8))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(o,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new r.EventEmitter}get dir(){return this._dir}set dir(t){const e=this._dir,n=t?t.toLowerCase():t;this._rawDir=t,this._dir="ltr"===n||"rtl"===n?n:"ltr",e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&r["\u0275\u0275attribute"]("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[r["\u0275\u0275ProvidersFeature"]([{provide:s,useExisting:t}])]}),t})(),c=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})()},cHgL:function(t,e,n){"use strict";var r=n("6eB1");e.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(r.merge.apply(void 0,[e].concat(t)))}}},cPJV:function(t,e,n){var r=n("WA8B"),i=n("gfz1"),o=n("iWRJ"),s=n("yNUO"),a=n("fupu"),c=n("Us+F"),l={M:function(t){return t.getMonth()+1},MM:function(t){return h(t.getMonth()+1,2)},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},D:function(t){return t.getDate()},DD:function(t){return h(t.getDate(),2)},DDD:function(t){return r(t)},DDDD:function(t){return h(r(t),3)},d:function(t){return t.getDay()},E:function(t){return t.getDay()||7},W:function(t){return i(t)},WW:function(t){return h(i(t),2)},YY:function(t){return h(t.getFullYear(),4).substr(2)},YYYY:function(t){return h(t.getFullYear(),4)},GG:function(t){return String(o(t)).substr(2)},GGGG:function(t){return o(t)},H:function(t){return t.getHours()},HH:function(t){return h(t.getHours(),2)},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return h(l.h(t),2)},m:function(t){return t.getMinutes()},mm:function(t){return h(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return h(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return h(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return h(t.getMilliseconds(),3)},Z:function(t){return u(t.getTimezoneOffset(),":")},ZZ:function(t){return u(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function u(t,e){e=e||"";var n=t>0?"-":"+",r=Math.abs(t),i=r%60;return n+h(Math.floor(r/60),2)+e+h(i,2)}function h(t,e){for(var n=Math.abs(t).toString();n.length<e;)n="0"+n;return n}t.exports=function(t,e,n){var r=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",i=(n||{}).locale,o=c.format.formatters,u=c.format.formattingTokensRegExp;i&&i.format&&i.format.formatters&&(o=i.format.formatters,i.format.formattingTokensRegExp&&(u=i.format.formattingTokensRegExp));var h=s(t);return a(h)?function(t,e,n){var r,i,o=t.match(n),s=o.length;for(r=0;r<s;r++)o[r]=e[o[r]]||l[o[r]]||((i=o[r]).match(/\[[\s\S]/)?i.replace(/^\[|]$/g,""):i.replace(/\\/g,""));return function(t){for(var e="",n=0;n<s;n++)e+=o[n]instanceof Function?o[n](t,l):o[n];return e}}(r,o,u)(h):"Invalid Date"}},cSoz:function(t,e,n){"use strict";var r=n("Vi6O"),i=n("6qA3"),o=n("Q1FS");e.subscribeToResult=function(t,e,n,s,a){if(void 0===a&&(a=new r.InnerSubscriber(t,n,s)),!a.closed)return e instanceof o.Observable?e.subscribe(a):i.subscribeTo(e)(a)}},cmCt:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.mergeScan=function(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new o(t,e,n))}};var o=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=o;var s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(i){return n.error(i)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.SimpleInnerSubscriber(this),n=this.destination;n.add(e);var r=i.innerSubscribe(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.SimpleOuterSubscriber);e.MergeScanSubscriber=s},cnJE:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("zB/H"),o=n("wjEo");e.bufferWhen=function(t){return function(e){return e.lift(new s(t))}};var s=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.closingSelector))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t,e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe()),this.buffer&&this.destination.next(this.buffer),this.buffer=[];try{t=(0,this.closingSelector)()}catch(n){return this.error(n)}e=new i.Subscription,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(o.innerSubscribe(t,new o.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(o.SimpleOuterSubscriber)},coGc:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("7o/Q"),i=n("HDdC"),o=n("l7GE"),s=n("ZUHj");function a(t,e){return e?n=>new u(n,e).lift(new c(t)):e=>e.lift(new c(t))}class c{constructor(t){this.delayDurationSelector=t}call(t,e){return e.subscribe(new l(t,this.delayDurationSelector))}}class l extends o.a{constructor(t,e){super(t),this.delayDurationSelector=e,this.completed=!1,this.delayNotifierSubscriptions=[],this.index=0}notifyNext(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()}notifyError(t,e){this._error(t)}notifyComplete(t){const e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()}_next(t){const e=this.index++;try{const n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(n){this.destination.error(n)}}_complete(){this.completed=!0,this.tryComplete(),this.unsubscribe()}removeSubscription(t){t.unsubscribe();const e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue}tryDelay(t,e){const n=Object(s.a)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))}tryComplete(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()}}class u extends i.a{constructor(t,e){super(),this.source=t,this.subscriptionDelay=e}_subscribe(t){this.subscriptionDelay.subscribe(new h(t,this.source))}}class h extends r.a{constructor(t,e){super(),this.parent=t,this.source=e,this.sourceSubscribed=!1}_next(t){this.subscribeToSource()}_error(t){this.unsubscribe(),this.parent.error(t)}_complete(){this.unsubscribe(),this.subscribeToSource()}subscribeToSource(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))}}},cp0P:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("HDdC"),i=n("DH7j"),o=n("lJxs"),s=n("XoHu"),a=n("Cfvw");function c(...t){if(1===t.length){const e=t[0];if(Object(i.a)(e))return l(e,null);if(Object(s.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(i.a)(t[0])?t[0]:t,null).pipe(Object(o.a)(t=>e(...t)))}return l(t,null)}function l(t,e){return new r.a(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let c=0;c<r;c++){const l=Object(a.a)(t[c]);let u=!1;n.add(l.subscribe({next:t=>{u||(u=!0,s++),i[c]=t},error:t=>n.error(t),complete:()=>{o++,o!==r&&u||(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}},crfB:function(t,e,n){var r=n("7B8A");t.exports=function(t,e){var n=Number(e);return r(t,6e4*n)}},crnd:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},cx9U:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("sVev");function o(t){return e=>e.lift(new s(t,e))}class s{constructor(t,e){this.predicate=t,this.source=e}call(t,e){return e.subscribe(new a(t,this.predicate,this.source))}}class a extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.source=n,this.seenValue=!1,this.index=0}applySingleValue(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)}_next(t){const e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)}tryNext(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(n){this.destination.error(n)}}_complete(){const t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new i.a)}}},czgO:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getMonth()}},d1Tk:function(t,e,n){"use strict";var r=n("AmbE");e.zipAll=function(t){return function(e){return e.lift(new r.ZipOperator(t))}}},d3UM:function(t,e,n){"use strict";n.d(e,"a",(function(){return W})),n.d(e,"b",(function(){return U})),n.d(e,"c",(function(){return z}));var r=n("rDax"),i=n("ofXK"),o=n("fXoL"),s=n("FKr1"),a=n("kmnG"),c=n("vxfF"),l=n("u47x"),u=n("8LU1"),h=n("0EQZ"),d=n("FtGj"),f=n("XNiG"),p=n("NXyV"),m=n("VRyK"),g=n("JX91"),b=n("eIep"),v=n("IzEk"),y=n("pLZG"),_=n("lJxs"),w=n("/uUt"),S=n("1G5W"),x=n("R0Ic"),C=n("cH1L"),O=n("3Pt+");const T=["trigger"],E=["panel"];function k(t,e){if(1&t&&(o["\u0275\u0275elementStart"](0,"span",8),o["\u0275\u0275text"](1),o["\u0275\u0275elementEnd"]()),2&t){const t=o["\u0275\u0275nextContext"]();o["\u0275\u0275advance"](1),o["\u0275\u0275textInterpolate"](t.placeholder||"\xa0")}}function A(t,e){if(1&t&&(o["\u0275\u0275elementStart"](0,"span"),o["\u0275\u0275text"](1),o["\u0275\u0275elementEnd"]()),2&t){const t=o["\u0275\u0275nextContext"](2);o["\u0275\u0275advance"](1),o["\u0275\u0275textInterpolate"](t.triggerValue||"\xa0")}}function D(t,e){1&t&&o["\u0275\u0275projection"](0,0,["*ngSwitchCase","true"])}function j(t,e){if(1&t&&(o["\u0275\u0275elementStart"](0,"span",9),o["\u0275\u0275template"](1,A,2,1,"span",10),o["\u0275\u0275template"](2,D,1,0,void 0,11),o["\u0275\u0275elementEnd"]()),2&t){const t=o["\u0275\u0275nextContext"]();o["\u0275\u0275property"]("ngSwitch",!!t.customTrigger),o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("ngSwitchCase",!0)}}function I(t,e){if(1&t){const t=o["\u0275\u0275getCurrentView"]();o["\u0275\u0275elementStart"](0,"div",12),o["\u0275\u0275elementStart"](1,"div",13,14),o["\u0275\u0275listener"]("@transformPanel.done",(function(e){return o["\u0275\u0275restoreView"](t),o["\u0275\u0275nextContext"]()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return o["\u0275\u0275restoreView"](t),o["\u0275\u0275nextContext"]()._handleKeydown(e)})),o["\u0275\u0275projection"](3,1),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()}if(2&t){const t=o["\u0275\u0275nextContext"]();o["\u0275\u0275property"]("@transformPanelWrap",void 0),o["\u0275\u0275advance"](1),o["\u0275\u0275classMapInterpolate1"]("mat-select-panel ",t._getPanelTheme(),""),o["\u0275\u0275styleProp"]("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),o["\u0275\u0275property"]("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),o["\u0275\u0275attribute"]("id",t.id+"-panel")}}const P=[[["mat-select-trigger"]],"*"],M=["mat-select-trigger","*"],N={transformPanelWrap:Object(x.n)("transformPanelWrap",[Object(x.m)("* => void",Object(x.i)("@transformPanel",[Object(x.f)()],{optional:!0}))]),transformPanel:Object(x.n)("transformPanel",[Object(x.k)("void",Object(x.l)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(x.k)("showing",Object(x.l)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(x.k)("showing-multiple",Object(x.l)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(x.m)("void => *",Object(x.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(x.m)("* => void",Object(x.e)("100ms 25ms linear",Object(x.l)({opacity:0})))])};let F=0;const R=new o.InjectionToken("mat-select-scroll-strategy"),L=new o.InjectionToken("MAT_SELECT_CONFIG"),V={provide:R,deps:[r.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class H{constructor(t,e){this.source=t,this.value=e}}class B{constructor(t,e,n,r,i){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=r,this.ngControl=i}}const G=Object(s.r)(Object(s.v)(Object(s.s)(Object(s.t)(B))));let z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o["\u0275\u0275defineDirective"]({type:t,selectors:[["mat-select-trigger"]]}),t})(),W=(()=>{class t extends G{constructor(t,e,n,r,i,s,a,c,l,u,h,d,w,S){super(i,r,a,c,u),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=s,this._parentFormField=l,this.ngControl=u,this._liveAnnouncer=w,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+F++,this._destroy=new f.b,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._optionIds="",this._transformOrigin="top",this._panelDoneAnimatingStream=new f.b,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=Object(p.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(g.a)(t),Object(b.a)(()=>Object(m.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.asObservable().pipe(Object(v.a)(1),Object(b.a)(()=>this.optionSelectionChanges))}),this.openedChange=new o.EventEmitter,this._openedStream=this.openedChange.pipe(Object(y.a)(t=>t),Object(_.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(y.a)(t=>!t),Object(_.a)(()=>{})),this.selectionChange=new o.EventEmitter,this.valueChange=new o.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id,S&&(null!=S.disableOptionCentering&&(this.disableOptionCentering=S.disableOptionCentering),null!=S.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=S.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(u.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Object(u.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(u.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.writeValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(u.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(w.a)(),Object(S.a)(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Object(S.a)(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(S.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(g.a)(null),Object(S.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Object(v.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.options&&this._setSelectionByValue(t)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.b||e===d.n||e===d.g||e===d.k,r=e===d.d||e===d.l,i=this._keyManager;if(!i.isTyping()&&r&&!Object(d.q)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const n=this.selected;e===d.f||e===d.c?(e===d.f?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault()):i.onKeydown(t);const r=this.selected;r&&n!==r&&this._liveAnnouncer.announce(r.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,r=n===d.b||n===d.n,i=e.isTyping();if(n===d.f||n===d.c)t.preventDefault(),n===d.f?e.setFirstItemActive():e.setLastItemActive();else if(r&&t.altKey)t.preventDefault(),this.close();else if(i||n!==d.d&&n!==d.l||!e.activeItem||Object(d.q)(t))if(!i&&this._multiple&&n===d.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&r&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(v.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues()}else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.setActiveItem(e):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return Object(o.isDevMode)()&&console.warn(n),!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(S.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(S.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(m.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(S.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(m.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(S.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()}),this._setOptionIds()}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new H(this,e)),this._changeDetectorRef.markForCheck()}_setOptionIds(){this._optionIds=this.options.map(t=>t.id).join(" ")}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=Object(s.o)(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=Object(s.p)(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,n,r)=>void 0!==e?e:t===n?r:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),r=e*t-n;let i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=Object(s.o)(i,this.options,this.optionGroups);const o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)}_calculateOverlayScroll(t,e,n){const r=this._getItemHeight();return Math.min(Math.max(0,r*t-e+r/2),n)}_getAriaLabel(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder}_getAriaLabelledby(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),r=this.multiple?56:32;let i;if(this.multiple)i=40;else{let t=this._selectionModel.selected[0]||this.options.first;i=t&&t.group?32:16}n||(i*=-1);const o=0-(t.left+i-(n?r:0)),s=t.right+i-e.width+(n?0:r);o>0?i+=o+8:s>0&&(i-=s+8),this.overlayDir.offsetX=Math.round(i),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const r=this._getItemHeight(),i=(r-this._triggerRect.height)/2,o=Math.floor(256/r);let s;return this._disableOptionCentering?0:(s=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-o))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*s-i))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;s>i?this._adjustPanelUp(s,i):o>r?this._adjustPanelDown(o,r,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const r=Math.round(t-e);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(o["\u0275\u0275directiveInject"](c.e),o["\u0275\u0275directiveInject"](o.ChangeDetectorRef),o["\u0275\u0275directiveInject"](o.NgZone),o["\u0275\u0275directiveInject"](s.c),o["\u0275\u0275directiveInject"](o.ElementRef),o["\u0275\u0275directiveInject"](C.c,8),o["\u0275\u0275directiveInject"](O.v,8),o["\u0275\u0275directiveInject"](O.l,8),o["\u0275\u0275directiveInject"](a.a,8),o["\u0275\u0275directiveInject"](O.s,10),o["\u0275\u0275injectAttribute"]("tabindex"),o["\u0275\u0275directiveInject"](R),o["\u0275\u0275directiveInject"](l.i),o["\u0275\u0275directiveInject"](L,8))},t.\u0275cmp=o["\u0275\u0275defineComponent"]({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var r;1&t&&(o["\u0275\u0275contentQuery"](n,z,!0),o["\u0275\u0275contentQuery"](n,s.j,!0),o["\u0275\u0275contentQuery"](n,s.i,!0)),2&t&&(o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e.customTrigger=r.first),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e.options=r),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e.optionGroups=r))},viewQuery:function(t,e){var n;1&t&&(o["\u0275\u0275viewQuery"](T,!0),o["\u0275\u0275viewQuery"](E,!0),o["\u0275\u0275viewQuery"](r.a,!0)),2&t&&(o["\u0275\u0275queryRefresh"](n=o["\u0275\u0275loadQuery"]())&&(e.trigger=n.first),o["\u0275\u0275queryRefresh"](n=o["\u0275\u0275loadQuery"]())&&(e.panel=n.first),o["\u0275\u0275queryRefresh"](n=o["\u0275\u0275loadQuery"]())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&o["\u0275\u0275listener"]("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(o["\u0275\u0275attribute"]("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),o["\u0275\u0275classProp"]("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[o["\u0275\u0275ProvidersFeature"]([{provide:a.d,useExisting:t},{provide:s.e,useExisting:t}]),o["\u0275\u0275InheritDefinitionFeature"],o["\u0275\u0275NgOnChangesFeature"]],ngContentSelectors:M,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(o["\u0275\u0275projectionDef"](P),o["\u0275\u0275elementStart"](0,"div",0,1),o["\u0275\u0275listener"]("click",(function(){return e.toggle()})),o["\u0275\u0275elementStart"](3,"div",2),o["\u0275\u0275template"](4,k,2,1,"span",3),o["\u0275\u0275template"](5,j,3,2,"span",4),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](6,"div",5),o["\u0275\u0275element"](7,"div",6),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275template"](8,I,4,11,"ng-template",7),o["\u0275\u0275listener"]("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=o["\u0275\u0275reference"](1);o["\u0275\u0275advance"](3),o["\u0275\u0275property"]("ngSwitch",e.empty),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngSwitchCase",!0),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngSwitchCase",!1),o["\u0275\u0275advance"](3),o["\u0275\u0275property"]("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[r.b,i.y,i.z,r.a,i.A,i.r],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275mod=o["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=o["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[V],imports:[[i.c,r.f,s.k,s.g],c.b,a.e,s.k,s.g]}),t})()},dEPG:function(t,e,n){var r=n("l0SJ");t.exports=function(){return r(new Date)}},dJQg:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=e&&Number(e.weekStartsOn)||0,i=r(t),o=i.getDay(),s=6+(o<n?-7:0)-(o-n);return i.setDate(i.getDate()+s),i.setHours(23,59,59,999),i}},dMDw:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("1pIY");e.debounceTime=function(t,e){return void 0===e&&(e=o.async),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(i.Subscriber);function c(t){t.debouncedNext()}},dNeE:function(t,e,n){"use strict";e.Observable=n("Q1FS").Observable,e.ConnectableObservable=n("Ceu0").ConnectableObservable,e.GroupedObservable=n("w1o2").GroupedObservable,e.observable=n("zfKp").observable,e.Subject=n("ds6q").Subject,e.BehaviorSubject=n("7RJT").BehaviorSubject,e.ReplaySubject=n("+Zhm").ReplaySubject,e.AsyncSubject=n("eYLY").AsyncSubject;var r=n("zvlq");e.asap=r.asap,e.asapScheduler=r.asapScheduler;var i=n("1pIY");e.async=i.async,e.asyncScheduler=i.asyncScheduler;var o=n("xHZb");e.queue=o.queue,e.queueScheduler=o.queueScheduler;var s=n("H0e8");e.animationFrame=s.animationFrame,e.animationFrameScheduler=s.animationFrameScheduler;var a=n("ptTZ");e.VirtualTimeScheduler=a.VirtualTimeScheduler,e.VirtualAction=a.VirtualAction,e.Scheduler=n("ffpz").Scheduler,e.Subscription=n("zB/H").Subscription,e.Subscriber=n("FWf1").Subscriber;var c=n("xKqS");e.Notification=c.Notification,e.NotificationKind=c.NotificationKind,e.pipe=n("9AGB").pipe,e.noop=n("w5QO").noop,e.identity=n("yoF8").identity,e.isObservable=n("MjHj").isObservable,e.ArgumentOutOfRangeError=n("IKal").ArgumentOutOfRangeError,e.EmptyError=n("0z0v").EmptyError,e.ObjectUnsubscribedError=n("Mxlh").ObjectUnsubscribedError,e.UnsubscriptionError=n("LBXl").UnsubscriptionError,e.TimeoutError=n("zk/k").TimeoutError,e.bindCallback=n("ICFB").bindCallback,e.bindNodeCallback=n("r8S4").bindNodeCallback,e.combineLatest=n("FCKb").combineLatest,e.concat=n("IKMM").concat,e.defer=n("b/k1").defer,e.empty=n("aJGj").empty,e.forkJoin=n("Ljqs").forkJoin,e.from=n("gTqA").from,e.fromEvent=n("q7YW").fromEvent,e.fromEventPattern=n("+W7E").fromEventPattern,e.generate=n("sMO2").generate,e.iif=n("5Qfn").iif,e.interval=n("CIkO").interval,e.merge=n("6eB1").merge,e.never=n("2E8i").never,e.of=n("I65S").of,e.onErrorResumeNext=n("GAJ/").onErrorResumeNext,e.pairs=n("ez72").pairs,e.partition=n("PMbC").partition,e.race=n("rhxD").race,e.range=n("Iy3P").range,e.throwError=n("vLqr").throwError,e.timer=n("eJ3O").timer,e.using=n("FHQ3").using,e.zip=n("AmbE").zip,e.scheduled=n("EBtg").scheduled,e.EMPTY=n("aJGj").EMPTY,e.NEVER=n("2E8i").NEVER,e.config=n("n3uD").config},dgaN:function(t,e,n){var r=n("yNUO");t.exports=function(t){return 2===r(t).getDay()}},dkDA:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("WMd4");function o(){return function(t){return t.lift(new s)}}class s{call(t,e){return e.subscribe(new a(t))}}class a extends r.a{constructor(t){super(t)}_next(t){this.destination.next(i.a.createNext(t))}_error(t){const e=this.destination;e.next(i.a.createError(t)),e.complete()}_complete(){const t=this.destination;t.next(i.a.createComplete()),t.complete()}}},ds6q:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("Q1FS"),o=n("FWf1"),s=n("zB/H"),a=n("Mxlh"),c=n("FiyT"),l=n("p//D"),u=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r(e,t),e}(o.Subscriber);e.SubjectSubscriber=u;var h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r(e,t),e.prototype[l.rxSubscriber]=function(){return new u(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new c.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new d(t,e)},e}(i.Observable);e.Subject=h;var d=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(h);e.AnonymousSubject=d},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function s(t,e){return"function"==typeof e?n=>n.pipe(s((n,o)=>Object(i.a)(t(n,o)).pipe(Object(r.a)((t,r)=>e(n,t,o,r))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends o.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new o.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(o.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},eJ3O:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("1pIY"),o=n("p0+S"),s=n("nzqU");function a(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}e.timer=function(t,e,n){void 0===t&&(t=0);var c=-1;return o.isNumeric(e)?c=Number(e)<1?1:Number(e):s.isScheduler(e)&&(n=e),s.isScheduler(n)||(n=i.async),new r.Observable((function(e){var r=o.isNumeric(t)?t:+t-n.now();return n.schedule(a,r,{index:0,period:c,subscriber:e})}))}},eNwd:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n("3N8a");class i extends r.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var o=n("IjjT");class s extends o.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r<i&&(t=e.shift()));if(this.active=!1,n){for(;++r<i&&(t=e.shift());)t.unsubscribe();throw n}}}const a=new s(i),c=a},eThW:function(t,e,n){"use strict";var r=n("AmbE");e.zip=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(r.zip.apply(void 0,[e].concat(t)))}}},eYLY:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("zB/H");e.AsyncSubject=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.Subject)},ec8B:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("tyNb"),i=n("Fr4G"),o=n("fXoL"),s=n("sYmb");let a=(()=>{class t{constructor(t,e,n){var i,o,s,a;this.router=t,this.userService=e,this._translateService=n,this.translateKey=null===(s=null===(o=null===(i=this.userService)||void 0===i?void 0:i.client)||void 0===o?void 0:o.portal_member)||void 0===s?void 0:s.business_model,this.currentLang=null===(a=this._translateService)||void 0===a?void 0:a.currentLang,this.router.events.subscribe(t=>{try{"function"==typeof gtag&&t instanceof r.b&&this.emitEvent("GA","view page",t.urlAfterRedirects)}catch(e){console.error(e)}})}emitEvent(t,e,n=null,r=null){"function"==typeof gtag&&gtag("event","page view",{event_category:t,event_label:n,event_action:e,event_value:r})}addCoockieTag(t,e){const n=document.createElement("script");n.setAttribute("async","true"),n.setAttribute("id","gtag-script"),n.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+t);const r=document.createElement("script");r.setAttribute("id","ga-script"),r.innerText=`\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('js', new Date());\n      gtag('config', '${t}', {'anonymize_ip':${e}});\n    `,document.documentElement.firstChild.appendChild(n),document.documentElement.firstChild.appendChild(r)}addTag(t){const e=document.createElement("script");e.setAttribute("async","true"),e.setAttribute("id","gtag-script"),e.setAttribute("src","https://www.googletagmanager.com/gtag/js?id="+t);const n=document.createElement("script");n.setAttribute("id","ga-script"),n.innerText=`\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('js', new Date());\n      gtag('config', '${t}');`,document.documentElement.firstChild.appendChild(e),document.documentElement.firstChild.appendChild(n)}confirmEmailGoogleTag(){let t={event:"confirm_email",business_model:this.translateKey,lang:this.currentLang,test_version:"free"};window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)}appendGTM(t){try{const e=document.createElement("script");e.innerHTML=`\n        (function(w, d, s, l, i) {\n          w[l] = w[l] || [];\n          w[l].push({\n              'gtm.start': new Date().getTime(),\n              event: 'gtm.js'\n          });\n          var f = d.getElementsByTagName(s)[0],\n              j = d.createElement(s),\n              dl = l != 'dataLayer' ? '&l=' + l : '';\n          j.async = true;\n          j.src =\n              'https://www.googletagmanager.com/gtm.js?id=' + i + dl;\n          f.parentNode.insertBefore(j, f);\n        })(window, document, 'script', 'dataLayer', '${t}');\n      `,document.head.appendChild(e)}catch(e){console.error("Error appending gtm"),console.error(e)}}appendGTMNoScript(t){try{const e=document.createElement("noscript");e.innerHTML=`<iframe src="https://www.googletagmanager.com/ns.html?id='${t}'"\n      height="0" width="0" style="display:none;visibility:hidden"></iframe>\n      `,document.head.appendChild(e)}catch(e){console.error("Error appending gtm"),console.error(e)}}clearStatisticScripts(){var t,e,n;null===(t=document.getElementById("gtag-script"))||void 0===t||t.remove(),null===(e=document.getElementById("ga-script"))||void 0===e||e.remove(),null===(n=document.querySelector('script[src="https://www.google-analytics.com/analytics.js"]'))||void 0===n||n.remove()}}return t.\u0275fac=function(e){return new(e||t)(o["\u0275\u0275inject"](r.e),o["\u0275\u0275inject"](i.a),o["\u0275\u0275inject"](s.e))},t.\u0275prov=o["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},eeun:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.exhaust=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(i.innerSubscribe(t,new i.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.SimpleOuterSubscriber)},eoPS:function(t,e,n){var r=n("iUbB");t.exports=function(t,e){var n=Number(e);return r(t,7*n)}},ez72:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("zB/H");function o(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var s=e[n];r.next([s,o[s]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}e.pairs=function(t,e){return new r.Observable(e?function(n){var r=Object.keys(t),s=new i.Subscription;return s.add(e.schedule(o,0,{keys:r,index:0,subscriber:n,subscription:s,obj:t})),s}:function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})},e.dispatch=o},f6gv:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.skipWhile=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(n){this.destination.error(n)}},e}(i.Subscriber)},f9gI:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){if(!(e instanceof Array))throw new TypeError(toString.call(e)+" is not an instance of Array");var n,i,o=r(t).getTime();return e.forEach((function(t,e){var s=r(t),a=Math.abs(o-s.getTime());(void 0===n||a<i)&&(n=e,i=a)})),n}},fE3M:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("mrSG"),i=n("NAv5");function o(){return Object(r.a)(Object(r.a)({},{addDays:i.addDays,addHours:i.addHours,addMinutes:i.addMinutes,addSeconds:i.addSeconds,differenceInDays:i.differenceInDays,differenceInMinutes:i.differenceInMinutes,differenceInSeconds:i.differenceInSeconds,endOfDay:i.endOfDay,endOfMonth:i.endOfMonth,endOfWeek:i.endOfWeek,getDay:i.getDay,getMonth:i.getMonth,isSameDay:i.isSameDay,isSameMonth:i.isSameMonth,isSameSecond:i.isSameSecond,max:i.max,setHours:i.setHours,setMinutes:i.setMinutes,startOfDay:i.startOfDay,startOfMinute:i.startOfMinute,startOfMonth:i.startOfMonth,startOfWeek:i.startOfWeek,getHours:i.getHours,getMinutes:i.getMinutes}),{addWeeks:i.addWeeks,addMonths:i.addMonths,subDays:i.subDays,subWeeks:i.subWeeks,subMonths:i.subMonths,getISOWeek:i.getISOWeek,setDate:i.setDate,setMonth:i.setMonth,setYear:i.setYear,getDate:i.getDate,getYear:i.getYear})}},fMhY:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.isEmpty=function(){return function(t){return t.lift(new o)}};var o=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},fXoL:function(t,e,n){"use strict";n.r(e),n.d(e,"ANALYZE_FOR_ENTRY_COMPONENTS",(function(){return xa})),n.d(e,"APP_BOOTSTRAP_LISTENER",(function(){return Zg})),n.d(e,"APP_ID",(function(){return Xg})),n.d(e,"APP_INITIALIZER",(function(){return Ug})),n.d(e,"ApplicationInitStatus",(function(){return qg})),n.d(e,"ApplicationModule",(function(){return Fv})),n.d(e,"ApplicationRef",(function(){return Yb})),n.d(e,"Attribute",(function(){return w})),n.d(e,"COMPILER_OPTIONS",(function(){return yb})),n.d(e,"CUSTOM_ELEMENTS_SCHEMA",(function(){return Jn})),n.d(e,"ChangeDetectionStrategy",(function(){return Dt})),n.d(e,"ChangeDetectorRef",(function(){return ms})),n.d(e,"Compiler",(function(){return vb})),n.d(e,"CompilerFactory",(function(){return _b})),n.d(e,"Component",(function(){return Dg})),n.d(e,"ComponentFactory",(function(){return uh})),n.d(e,"ComponentFactoryResolver",(function(){return ph})),n.d(e,"ComponentRef",(function(){return lh})),n.d(e,"ContentChild",(function(){return Ta})),n.d(e,"ContentChildren",(function(){return Oa})),n.d(e,"DEFAULT_CURRENCY_CODE",(function(){return rb})),n.d(e,"DebugElement",(function(){return kv})),n.d(e,"DebugEventListener",(function(){return lv})),n.d(e,"DebugNode",(function(){return Ev})),n.d(e,"DefaultIterableDiffer",(function(){return Dh})),n.d(e,"Directive",(function(){return Ag})),n.d(e,"ElementRef",(function(){return bh})),n.d(e,"EmbeddedViewRef",(function(){return cv})),n.d(e,"ErrorHandler",(function(){return Qn})),n.d(e,"EventEmitter",(function(){return Cm})),n.d(e,"Host",(function(){return _})),n.d(e,"HostBinding",(function(){return Mg})),n.d(e,"HostListener",(function(){return Ng})),n.d(e,"INJECTOR",(function(){return rt})),n.d(e,"Inject",(function(){return g})),n.d(e,"InjectFlags",(function(){return S})),n.d(e,"Injectable",(function(){return Ns})),n.d(e,"InjectionToken",(function(){return nt})),n.d(e,"Injector",(function(){return ta})),n.d(e,"Input",(function(){return Ig})),n.d(e,"IterableDiffers",(function(){return Lh})),n.d(e,"KeyValueDiffers",(function(){return Vh})),n.d(e,"LOCALE_ID",(function(){return nb})),n.d(e,"MissingTranslationStrategy",(function(){return sb})),n.d(e,"ModuleWithComponentFactories",(function(){return lb})),n.d(e,"NO_ERRORS_SCHEMA",(function(){return Zn})),n.d(e,"NgModule",(function(){return Gg})),n.d(e,"NgModuleFactory",(function(){return _t})),n.d(e,"NgModuleFactoryLoader",(function(){return Jb})),n.d(e,"NgModuleRef",(function(){return yt})),n.d(e,"NgProbeToken",(function(){return Gb})),n.d(e,"NgZone",(function(){return xb})),n.d(e,"Optional",(function(){return b})),n.d(e,"Output",(function(){return Pg})),n.d(e,"PACKAGE_ROOT_URL",(function(){return tb})),n.d(e,"PLATFORM_ID",(function(){return Jg})),n.d(e,"PLATFORM_INITIALIZER",(function(){return Qg})),n.d(e,"Pipe",(function(){return jg})),n.d(e,"PlatformRef",(function(){return $b})),n.d(e,"Query",(function(){return Ca})),n.d(e,"QueryList",(function(){return Tm})),n.d(e,"ReflectiveInjector",(function(){return wa})),n.d(e,"ReflectiveKey",(function(){return oa})),n.d(e,"Renderer2",(function(){return Sh})),n.d(e,"RendererFactory2",(function(){return _h})),n.d(e,"RendererStyleFlags2",(function(){return wh})),n.d(e,"ResolvedReflectiveFactory",(function(){return fa})),n.d(e,"Sanitizer",(function(){return Oh})),n.d(e,"SecurityContext",(function(){return Br})),n.d(e,"Self",(function(){return v})),n.d(e,"SimpleChange",(function(){return Qu})),n.d(e,"SkipSelf",(function(){return y})),n.d(e,"SystemJsNgModuleLoader",(function(){return ov})),n.d(e,"SystemJsNgModuleLoaderConfig",(function(){return rv})),n.d(e,"TRANSLATIONS",(function(){return ib})),n.d(e,"TRANSLATIONS_FORMAT",(function(){return ob})),n.d(e,"TemplateRef",(function(){return zh})),n.d(e,"Testability",(function(){return jb})),n.d(e,"TestabilityRegistry",(function(){return Ib})),n.d(e,"Type",(function(){return vs})),n.d(e,"VERSION",(function(){return Eh})),n.d(e,"Version",(function(){return Th})),n.d(e,"ViewChild",(function(){return ka})),n.d(e,"ViewChildren",(function(){return Ea})),n.d(e,"ViewContainerRef",(function(){return qh})),n.d(e,"ViewEncapsulation",(function(){return Pt})),n.d(e,"ViewRef",(function(){return av})),n.d(e,"WrappedValue",(function(){return Ha})),n.d(e,"asNativeElements",(function(){return dv})),n.d(e,"assertPlatform",(function(){return Ub})),n.d(e,"createPlatform",(function(){return zb})),n.d(e,"createPlatformFactory",(function(){return Wb})),n.d(e,"defineInjectable",(function(){return T})),n.d(e,"destroyPlatform",(function(){return qb})),n.d(e,"enableProdMode",(function(){return br})),n.d(e,"forwardRef",(function(){return V})),n.d(e,"getDebugNode",(function(){return xv})),n.d(e,"getModuleFactory",(function(){return ev})),n.d(e,"getPlatform",(function(){return Xb})),n.d(e,"inject",(function(){return pt})),n.d(e,"isDevMode",(function(){return gr})),n.d(e,"platformCore",(function(){return Av})),n.d(e,"resolveForwardRef",(function(){return H})),n.d(e,"setTestabilityGetter",(function(){return Mb})),n.d(e,"\u0275ALLOW_MULTIPLE_PLATFORMS",(function(){return Bb})),n.d(e,"\u0275APP_ID_RANDOM_PROVIDER",(function(){return Kg})),n.d(e,"\u0275ChangeDetectorStatus",(function(){return jt})),n.d(e,"\u0275CodegenComponentFactoryResolver",(function(){return mh})),n.d(e,"\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__",(function(){return gb})),n.d(e,"\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__",(function(){return pb})),n.d(e,"\u0275Compiler_compileModuleAsync__POST_R3__",(function(){return db})),n.d(e,"\u0275Compiler_compileModuleSync__POST_R3__",(function(){return ub})),n.d(e,"\u0275ComponentFactory",(function(){return uh})),n.d(e,"\u0275Console",(function(){return eb})),n.d(e,"\u0275DEFAULT_LOCALE_ID",(function(){return np})),n.d(e,"\u0275EMPTY_ARRAY",(function(){return Bd})),n.d(e,"\u0275EMPTY_MAP",(function(){return Gd})),n.d(e,"\u0275INJECTOR_IMPL__POST_R3__",(function(){return Js})),n.d(e,"\u0275INJECTOR_SCOPE",(function(){return Ls})),n.d(e,"\u0275LifecycleHooksFeature",(function(){return Hu})),n.d(e,"\u0275LocaleDataIndex",(function(){return ep})),n.d(e,"\u0275NG_COMP_DEF",(function(){return K})),n.d(e,"\u0275NG_DIR_DEF",(function(){return Y})),n.d(e,"\u0275NG_ELEMENT_ID",(function(){return et})),n.d(e,"\u0275NG_INJ_DEF",(function(){return I})),n.d(e,"\u0275NG_MOD_DEF",(function(){return J})),n.d(e,"\u0275NG_PIPE_DEF",(function(){return Q})),n.d(e,"\u0275NG_PROV_DEF",(function(){return j})),n.d(e,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",(function(){return Mf})),n.d(e,"\u0275NO_CHANGE",(function(){return xi})),n.d(e,"\u0275NgModuleFactory",(function(){return Jp})),n.d(e,"\u0275NoopNgZone",(function(){return Db})),n.d(e,"\u0275ReflectionCapabilities",(function(){return Cs})),n.d(e,"\u0275Render3ComponentFactory",(function(){return Wf})),n.d(e,"\u0275Render3ComponentRef",(function(){return Uf})),n.d(e,"\u0275Render3NgModuleRef",(function(){return Qp})),n.d(e,"\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__",(function(){return gs})),n.d(e,"\u0275SWITCH_COMPILE_COMPONENT__POST_R3__",(function(){return Fg})),n.d(e,"\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__",(function(){return Rg})),n.d(e,"\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__",(function(){return Fs})),n.d(e,"\u0275SWITCH_COMPILE_NGMODULE__POST_R3__",(function(){return zg})),n.d(e,"\u0275SWITCH_COMPILE_PIPE__POST_R3__",(function(){return Lg})),n.d(e,"\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__",(function(){return vh})),n.d(e,"\u0275SWITCH_IVY_ENABLED__POST_R3__",(function(){return ab})),n.d(e,"\u0275SWITCH_RENDERER2_FACTORY__POST_R3__",(function(){return xh})),n.d(e,"\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__",(function(){return Wh})),n.d(e,"\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__",(function(){return Xh})),n.d(e,"\u0275_sanitizeHtml",(function(){return Vr})),n.d(e,"\u0275_sanitizeStyle",(function(){return Wr})),n.d(e,"\u0275_sanitizeUrl",(function(){return wr})),n.d(e,"\u0275allowSanitizationBypassAndThrow",(function(){return ar})),n.d(e,"\u0275and",(function(){return Rv})),n.d(e,"\u0275angular_packages_core_core_a",(function(){return B})),n.d(e,"\u0275angular_packages_core_core_b",(function(){return ht})),n.d(e,"\u0275angular_packages_core_core_ba",(function(){return ke})),n.d(e,"\u0275angular_packages_core_core_bb",(function(){return je})),n.d(e,"\u0275angular_packages_core_core_bc",(function(){return Re})),n.d(e,"\u0275angular_packages_core_core_bd",(function(){return Je})),n.d(e,"\u0275angular_packages_core_core_bf",(function(){return hm})),n.d(e,"\u0275angular_packages_core_core_bg",(function(){return dm})),n.d(e,"\u0275angular_packages_core_core_bh",(function(){return fm})),n.d(e,"\u0275angular_packages_core_core_bi",(function(){return pm})),n.d(e,"\u0275angular_packages_core_core_bj",(function(){return mm})),n.d(e,"\u0275angular_packages_core_core_bk",(function(){return Yr})),n.d(e,"\u0275angular_packages_core_core_bl",(function(){return p})),n.d(e,"\u0275angular_packages_core_core_bm",(function(){return m})),n.d(e,"\u0275angular_packages_core_core_bn",(function(){return x})),n.d(e,"\u0275angular_packages_core_core_bo",(function(){return c})),n.d(e,"\u0275angular_packages_core_core_bq",(function(){return Oi})),n.d(e,"\u0275angular_packages_core_core_c",(function(){return bt})),n.d(e,"\u0275angular_packages_core_core_d",(function(){return Sa})),n.d(e,"\u0275angular_packages_core_core_e",(function(){return ua})),n.d(e,"\u0275angular_packages_core_core_f",(function(){return ga})),n.d(e,"\u0275angular_packages_core_core_g",(function(){return $g})),n.d(e,"\u0275angular_packages_core_core_h",(function(){return hs})),n.d(e,"\u0275angular_packages_core_core_i",(function(){return ds})),n.d(e,"\u0275angular_packages_core_core_j",(function(){return Zb})),n.d(e,"\u0275angular_packages_core_core_k",(function(){return uv})),n.d(e,"\u0275angular_packages_core_core_l",(function(){return hv})),n.d(e,"\u0275angular_packages_core_core_m",(function(){return Cv})),n.d(e,"\u0275angular_packages_core_core_n",(function(){return kh})),n.d(e,"\u0275angular_packages_core_core_o",(function(){return Nh})),n.d(e,"\u0275angular_packages_core_core_p",(function(){return Dv})),n.d(e,"\u0275angular_packages_core_core_q",(function(){return jv})),n.d(e,"\u0275angular_packages_core_core_r",(function(){return Iv})),n.d(e,"\u0275angular_packages_core_core_s",(function(){return Mv})),n.d(e,"\u0275angular_packages_core_core_t",(function(){return Nv})),n.d(e,"\u0275angular_packages_core_core_u",(function(){return rp})),n.d(e,"\u0275angular_packages_core_core_v",(function(){return Ef})),n.d(e,"\u0275angular_packages_core_core_w",(function(){return od})),n.d(e,"\u0275angular_packages_core_core_x",(function(){return zf})),n.d(e,"\u0275angular_packages_core_core_y",(function(){return Rn})),n.d(e,"\u0275angular_packages_core_core_z",(function(){return Ce})),n.d(e,"\u0275bypassSanitizationTrustHtml",(function(){return lr})),n.d(e,"\u0275bypassSanitizationTrustResourceUrl",(function(){return fr})),n.d(e,"\u0275bypassSanitizationTrustScript",(function(){return hr})),n.d(e,"\u0275bypassSanitizationTrustStyle",(function(){return ur})),n.d(e,"\u0275bypassSanitizationTrustUrl",(function(){return dr})),n.d(e,"\u0275ccf",(function(){return ef})),n.d(e,"\u0275clearOverrides",(function(){return h_})),n.d(e,"\u0275clearResolutionOfComponentResourcesQueue",(function(){return Pa})),n.d(e,"\u0275cmf",(function(){return d_})),n.d(e,"\u0275compileComponent",(function(){return dg})),n.d(e,"\u0275compileDirective",(function(){return fg})),n.d(e,"\u0275compileNgModule",(function(){return ng})),n.d(e,"\u0275compileNgModuleDefs",(function(){return rg})),n.d(e,"\u0275compileNgModuleFactory__POST_R3__",(function(){return Lb})),n.d(e,"\u0275compilePipe",(function(){return Eg})),n.d(e,"\u0275createInjector",(function(){return Ws})),n.d(e,"\u0275crt",(function(){return hd})),n.d(e,"\u0275defaultIterableDiffers",(function(){return Bh})),n.d(e,"\u0275defaultKeyValueDiffers",(function(){return Gh})),n.d(e,"\u0275detectChanges",(function(){return pc})),n.d(e,"\u0275devModeEqual",(function(){return Va})),n.d(e,"\u0275did",(function(){return Cf})),n.d(e,"\u0275eld",(function(){return Lv})),n.d(e,"\u0275findLocaleData",(function(){return Yf})),n.d(e,"\u0275flushModuleScopingQueueAsMuchAsPossible",(function(){return tg})),n.d(e,"\u0275getComponentViewDefinitionFactory",(function(){return nf})),n.d(e,"\u0275getDebugNodeR2",(function(){return Ov})),n.d(e,"\u0275getDebugNode__POST_R3__",(function(){return Sv})),n.d(e,"\u0275getDirectives",(function(){return Tu})),n.d(e,"\u0275getHostElement",(function(){return ku})),n.d(e,"\u0275getInjectableDef",(function(){return k})),n.d(e,"\u0275getLContext",(function(){return ri})),n.d(e,"\u0275getLocaleCurrencyCode",(function(){return Qf})),n.d(e,"\u0275getLocalePluralCase",(function(){return Jf})),n.d(e,"\u0275getModuleFactory__POST_R3__",(function(){return tv})),n.d(e,"\u0275getSanitizationBypassType",(function(){return cr})),n.d(e,"\u0275global",(function(){return q})),n.d(e,"\u0275initServicesIfNeeded",(function(){return Ty})),n.d(e,"\u0275inlineInterpolate",(function(){return Vd})),n.d(e,"\u0275interpolate",(function(){return Ld})),n.d(e,"\u0275isBoundToModule__POST_R3__",(function(){return Hb})),n.d(e,"\u0275isDefaultChangeDetectionStrategy",(function(){return It})),n.d(e,"\u0275isListLikeIterable",(function(){return Ba})),n.d(e,"\u0275isObservable",(function(){return Rc})),n.d(e,"\u0275isPromise",(function(){return Fc})),n.d(e,"\u0275ivyEnabled",(function(){return cb})),n.d(e,"\u0275looseIdentical",(function(){return La})),n.d(e,"\u0275makeDecorator",(function(){return d})),n.d(e,"\u0275markDirty",(function(){return mc})),n.d(e,"\u0275mod",(function(){return $d})),n.d(e,"\u0275mpd",(function(){return Xd})),n.d(e,"\u0275ncd",(function(){return $v})),n.d(e,"\u0275nov",(function(){return pf})),n.d(e,"\u0275overrideComponentView",(function(){return u_})),n.d(e,"\u0275overrideProvider",(function(){return l_})),n.d(e,"\u0275pad",(function(){return Qv})),n.d(e,"\u0275patchComponentDefWithScope",(function(){return cg})),n.d(e,"\u0275pid",(function(){return Of})),n.d(e,"\u0275pod",(function(){return Jv})),n.d(e,"\u0275ppd",(function(){return Yv})),n.d(e,"\u0275prd",(function(){return Tf})),n.d(e,"\u0275publishDefaultGlobalUtils",(function(){return Mu})),n.d(e,"\u0275publishGlobalUtil",(function(){return Nu})),n.d(e,"\u0275qud",(function(){return zv})),n.d(e,"\u0275registerLocaleData",(function(){return Kf})),n.d(e,"\u0275registerModuleFactory",(function(){return Xp})),n.d(e,"\u0275registerNgModuleType",(function(){return Kp})),n.d(e,"\u0275renderComponent",(function(){return Fu})),n.d(e,"\u0275resetCompiledComponents",(function(){return sg})),n.d(e,"\u0275resetJitOptions",(function(){return Ym})),n.d(e,"\u0275resolveComponentResources",(function(){return Aa})),n.d(e,"\u0275setClassMetadata",(function(){return Zp})),n.d(e,"\u0275setCurrentInjector",(function(){return lt})),n.d(e,"\u0275setDocument",(function(){return se})),n.d(e,"\u0275setLocaleId",(function(){return Up})),n.d(e,"\u0275store",(function(){return _c})),n.d(e,"\u0275stringify",(function(){return F})),n.d(e,"\u0275ted",(function(){return ty})),n.d(e,"\u0275transitiveScopesFor",(function(){return lg})),n.d(e,"\u0275unregisterLocaleData",(function(){return tp})),n.d(e,"\u0275unv",(function(){return ud})),n.d(e,"\u0275unwrapSafeValue",(function(){return sr})),n.d(e,"\u0275vid",(function(){return ry})),n.d(e,"\u0275whenRendered",(function(){return Bu})),n.d(e,"\u0275\u0275CopyDefinitionFeature",(function(){return Yu})),n.d(e,"\u0275\u0275InheritDefinitionFeature",(function(){return zu})),n.d(e,"\u0275\u0275NgOnChangesFeature",(function(){return Ju})),n.d(e,"\u0275\u0275ProvidersFeature",(function(){return ch})),n.d(e,"\u0275\u0275advance",(function(){return Ti})),n.d(e,"\u0275\u0275attribute",(function(){return Ka})),n.d(e,"\u0275\u0275attributeInterpolate1",(function(){return oc})),n.d(e,"\u0275\u0275attributeInterpolate2",(function(){return sc})),n.d(e,"\u0275\u0275attributeInterpolate3",(function(){return ac})),n.d(e,"\u0275\u0275attributeInterpolate4",(function(){return cc})),n.d(e,"\u0275\u0275attributeInterpolate5",(function(){return lc})),n.d(e,"\u0275\u0275attributeInterpolate6",(function(){return uc})),n.d(e,"\u0275\u0275attributeInterpolate7",(function(){return hc})),n.d(e,"\u0275\u0275attributeInterpolate8",(function(){return dc})),n.d(e,"\u0275\u0275attributeInterpolateV",(function(){return fc})),n.d(e,"\u0275\u0275classMap",(function(){return Sl})),n.d(e,"\u0275\u0275classMapInterpolate1",(function(){return ql})),n.d(e,"\u0275\u0275classMapInterpolate2",(function(){return Xl})),n.d(e,"\u0275\u0275classMapInterpolate3",(function(){return $l})),n.d(e,"\u0275\u0275classMapInterpolate4",(function(){return Kl})),n.d(e,"\u0275\u0275classMapInterpolate5",(function(){return Yl})),n.d(e,"\u0275\u0275classMapInterpolate6",(function(){return Ql})),n.d(e,"\u0275\u0275classMapInterpolate7",(function(){return Jl})),n.d(e,"\u0275\u0275classMapInterpolate8",(function(){return Zl})),n.d(e,"\u0275\u0275classMapInterpolateV",(function(){return tu})),n.d(e,"\u0275\u0275classProp",(function(){return yl})),n.d(e,"\u0275\u0275componentHostSyntheticListener",(function(){return Vc})),n.d(e,"\u0275\u0275container",(function(){return gc})),n.d(e,"\u0275\u0275containerRefreshEnd",(function(){return yc})),n.d(e,"\u0275\u0275containerRefreshStart",(function(){return vc})),n.d(e,"\u0275\u0275contentQuery",(function(){return Vm})),n.d(e,"\u0275\u0275defaultStyleSanitizer",(function(){return Jr})),n.d(e,"\u0275\u0275defineComponent",(function(){return Rt})),n.d(e,"\u0275\u0275defineDirective",(function(){return Ut})),n.d(e,"\u0275\u0275defineInjectable",(function(){return O})),n.d(e,"\u0275\u0275defineInjector",(function(){return E})),n.d(e,"\u0275\u0275defineNgModule",(function(){return Gt})),n.d(e,"\u0275\u0275definePipe",(function(){return qt})),n.d(e,"\u0275\u0275directiveInject",(function(){return Sc})),n.d(e,"\u0275\u0275disableBindings",(function(){return Ee})),n.d(e,"\u0275\u0275element",(function(){return Ac})),n.d(e,"\u0275\u0275elementContainer",(function(){return Ic})),n.d(e,"\u0275\u0275elementContainerEnd",(function(){return jc})),n.d(e,"\u0275\u0275elementContainerStart",(function(){return Dc})),n.d(e,"\u0275\u0275elementEnd",(function(){return kc})),n.d(e,"\u0275\u0275elementStart",(function(){return Ec})),n.d(e,"\u0275\u0275embeddedViewEnd",(function(){return Mc})),n.d(e,"\u0275\u0275embeddedViewStart",(function(){return Pc})),n.d(e,"\u0275\u0275enableBindings",(function(){return Te})),n.d(e,"\u0275\u0275getCurrentView",(function(){return Nc})),n.d(e,"\u0275\u0275getFactoryOf",(function(){return qn})),n.d(e,"\u0275\u0275getInheritedFactory",(function(){return Xn})),n.d(e,"\u0275\u0275hostProperty",(function(){return yu})),n.d(e,"\u0275\u0275i18n",(function(){return Pp})),n.d(e,"\u0275\u0275i18nApply",(function(){return Lp})),n.d(e,"\u0275\u0275i18nAttributes",(function(){return Mp})),n.d(e,"\u0275\u0275i18nEnd",(function(){return Ap})),n.d(e,"\u0275\u0275i18nExp",(function(){return Rp})),n.d(e,"\u0275\u0275i18nPostprocess",(function(){return kp})),n.d(e,"\u0275\u0275i18nStart",(function(){return Op})),n.d(e,"\u0275\u0275inject",(function(){return dt})),n.d(e,"\u0275\u0275injectAttribute",(function(){return xc})),n.d(e,"\u0275\u0275injectPipeChangeDetectorRef",(function(){return Xm})),n.d(e,"\u0275\u0275invalidFactory",(function(){return Cc})),n.d(e,"\u0275\u0275invalidFactoryDep",(function(){return ft})),n.d(e,"\u0275\u0275listener",(function(){return Lc})),n.d(e,"\u0275\u0275loadQuery",(function(){return Gm})),n.d(e,"\u0275\u0275namespaceHTML",(function(){return on})),n.d(e,"\u0275\u0275namespaceMathML",(function(){return rn})),n.d(e,"\u0275\u0275namespaceSVG",(function(){return nn})),n.d(e,"\u0275\u0275nextContext",(function(){return zc})),n.d(e,"\u0275\u0275pipe",(function(){return gm})),n.d(e,"\u0275\u0275pipeBind1",(function(){return bm})),n.d(e,"\u0275\u0275pipeBind2",(function(){return vm})),n.d(e,"\u0275\u0275pipeBind3",(function(){return ym})),n.d(e,"\u0275\u0275pipeBind4",(function(){return _m})),n.d(e,"\u0275\u0275pipeBindV",(function(){return wm})),n.d(e,"\u0275\u0275projection",(function(){return $c})),n.d(e,"\u0275\u0275projectionDef",(function(){return Uc})),n.d(e,"\u0275\u0275property",(function(){return Oc})),n.d(e,"\u0275\u0275propertyInterpolate",(function(){return Kc})),n.d(e,"\u0275\u0275propertyInterpolate1",(function(){return Yc})),n.d(e,"\u0275\u0275propertyInterpolate2",(function(){return Qc})),n.d(e,"\u0275\u0275propertyInterpolate3",(function(){return Jc})),n.d(e,"\u0275\u0275propertyInterpolate4",(function(){return Zc})),n.d(e,"\u0275\u0275propertyInterpolate5",(function(){return tl})),n.d(e,"\u0275\u0275propertyInterpolate6",(function(){return el})),n.d(e,"\u0275\u0275propertyInterpolate7",(function(){return nl})),n.d(e,"\u0275\u0275propertyInterpolate8",(function(){return rl})),n.d(e,"\u0275\u0275propertyInterpolateV",(function(){return il})),n.d(e,"\u0275\u0275pureFunction0",(function(){return tm})),n.d(e,"\u0275\u0275pureFunction1",(function(){return em})),n.d(e,"\u0275\u0275pureFunction2",(function(){return nm})),n.d(e,"\u0275\u0275pureFunction3",(function(){return rm})),n.d(e,"\u0275\u0275pureFunction4",(function(){return im})),n.d(e,"\u0275\u0275pureFunction5",(function(){return om})),n.d(e,"\u0275\u0275pureFunction6",(function(){return sm})),n.d(e,"\u0275\u0275pureFunction7",(function(){return am})),n.d(e,"\u0275\u0275pureFunction8",(function(){return cm})),n.d(e,"\u0275\u0275pureFunctionV",(function(){return lm})),n.d(e,"\u0275\u0275queryRefresh",(function(){return Nm})),n.d(e,"\u0275\u0275reference",(function(){return wc})),n.d(e,"\u0275\u0275resolveBody",(function(){return En})),n.d(e,"\u0275\u0275resolveDocument",(function(){return Tn})),n.d(e,"\u0275\u0275resolveWindow",(function(){return On})),n.d(e,"\u0275\u0275restoreView",(function(){return De})),n.d(e,"\u0275\u0275sanitizeHtml",(function(){return Ur})),n.d(e,"\u0275\u0275sanitizeResourceUrl",(function(){return $r})),n.d(e,"\u0275\u0275sanitizeScript",(function(){return Kr})),n.d(e,"\u0275\u0275sanitizeStyle",(function(){return qr})),n.d(e,"\u0275\u0275sanitizeUrl",(function(){return Xr})),n.d(e,"\u0275\u0275sanitizeUrlOrResourceUrl",(function(){return Qr})),n.d(e,"\u0275\u0275select",(function(){return Ei})),n.d(e,"\u0275\u0275setComponentScope",(function(){return Lt})),n.d(e,"\u0275\u0275setNgModuleScope",(function(){return zt})),n.d(e,"\u0275\u0275staticContentQuery",(function(){return Hm})),n.d(e,"\u0275\u0275staticViewQuery",(function(){return Fm})),n.d(e,"\u0275\u0275styleMap",(function(){return _l})),n.d(e,"\u0275\u0275styleMapInterpolate1",(function(){return eu})),n.d(e,"\u0275\u0275styleMapInterpolate2",(function(){return nu})),n.d(e,"\u0275\u0275styleMapInterpolate3",(function(){return ru})),n.d(e,"\u0275\u0275styleMapInterpolate4",(function(){return iu})),n.d(e,"\u0275\u0275styleMapInterpolate5",(function(){return ou})),n.d(e,"\u0275\u0275styleMapInterpolate6",(function(){return su})),n.d(e,"\u0275\u0275styleMapInterpolate7",(function(){return au})),n.d(e,"\u0275\u0275styleMapInterpolate8",(function(){return cu})),n.d(e,"\u0275\u0275styleMapInterpolateV",(function(){return lu})),n.d(e,"\u0275\u0275styleProp",(function(){return vl})),n.d(e,"\u0275\u0275stylePropInterpolate1",(function(){return uu})),n.d(e,"\u0275\u0275stylePropInterpolate2",(function(){return hu})),n.d(e,"\u0275\u0275stylePropInterpolate3",(function(){return du})),n.d(e,"\u0275\u0275stylePropInterpolate4",(function(){return fu})),n.d(e,"\u0275\u0275stylePropInterpolate5",(function(){return pu})),n.d(e,"\u0275\u0275stylePropInterpolate6",(function(){return mu})),n.d(e,"\u0275\u0275stylePropInterpolate7",(function(){return gu})),n.d(e,"\u0275\u0275stylePropInterpolate8",(function(){return bu})),n.d(e,"\u0275\u0275stylePropInterpolateV",(function(){return vu})),n.d(e,"\u0275\u0275styleSanitizer",(function(){return bl})),n.d(e,"\u0275\u0275template",(function(){return bc})),n.d(e,"\u0275\u0275templateRefExtractor",(function(){return qm})),n.d(e,"\u0275\u0275text",(function(){return Nl})),n.d(e,"\u0275\u0275textInterpolate",(function(){return Fl})),n.d(e,"\u0275\u0275textInterpolate1",(function(){return Rl})),n.d(e,"\u0275\u0275textInterpolate2",(function(){return Ll})),n.d(e,"\u0275\u0275textInterpolate3",(function(){return Vl})),n.d(e,"\u0275\u0275textInterpolate4",(function(){return Hl})),n.d(e,"\u0275\u0275textInterpolate5",(function(){return Bl})),n.d(e,"\u0275\u0275textInterpolate6",(function(){return Gl})),n.d(e,"\u0275\u0275textInterpolate7",(function(){return zl})),n.d(e,"\u0275\u0275textInterpolate8",(function(){return Wl})),n.d(e,"\u0275\u0275textInterpolateV",(function(){return Ul})),n.d(e,"\u0275\u0275updateSyntheticHostBinding",(function(){return _u})),n.d(e,"\u0275\u0275viewQuery",(function(){return Rm}));var r=n("XNiG"),i=n("quSY"),o=n("HDdC"),s=n("VRyK"),a=n("w1tV");function c(t){return{toString:t}.toString()}const l="__annotations__",u="__parameters__",h="__prop__metadata__";function d(t,e,n,r,i){return c(()=>{const o=f(e);function s(...t){if(this instanceof s)return o.call(this,...t),this;const e=new s(...t);return function(n){return i&&i(n,...t),(n.hasOwnProperty(l)?n[l]:Object.defineProperty(n,l,{value:[]})[l]).push(e),r&&r(n),n}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}function f(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}function p(t,e,n){return c(()=>{const r=f(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty(u)?t[u]:Object.defineProperty(t,u,{value:[]})[u];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function m(t,e,n,r){return c(()=>{const i=f(e);function o(...t){if(this instanceof o)return i.apply(this,t),this;const e=new o(...t);return function(n,i){const o=n.constructor,s=o.hasOwnProperty(h)?o[h]:Object.defineProperty(o,h,{value:{}})[h];s[i]=s.hasOwnProperty(i)&&s[i]||[],s[i].unshift(e),r&&r(n,i,...t)}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const g=p("Inject",t=>({token:t})),b=p("Optional"),v=p("Self"),y=p("SkipSelf"),_=p("Host"),w=p("Attribute",t=>({attributeName:t}));var S=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function x(t){for(let e in t)if(t[e]===x)return e;throw Error("Could not find renamed property on target object.")}function C(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function O(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const T=O;function E(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function k(t){return A(t,t[j])||A(t,t[M])}function A(t,e){return e&&e.token===t?e:null}function D(t){return t&&(t.hasOwnProperty(I)||t.hasOwnProperty(N))?t[I]:null}const j=x({"\u0275prov":x}),I=x({"\u0275inj":x}),P=x({"\u0275provFallback":x}),M=x({ngInjectableDef:x}),N=x({ngInjectorDef:x});function F(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(F).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function R(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const L=x({__forward_ref__:x});function V(t){return t.__forward_ref__=V,t.toString=function(){return F(this())},t}function H(t){return B(t)?t():t}function B(t){return"function"==typeof t&&t.hasOwnProperty(L)&&t.__forward_ref__===V}const G="undefined"!=typeof globalThis&&globalThis,z="undefined"!=typeof window&&window,W="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,U="undefined"!=typeof global&&global,q=G||U||z||W;var X=function(t){return t[t.Token=0]="Token",t[t.Attribute=1]="Attribute",t[t.ChangeDetectorRef=2]="ChangeDetectorRef",t[t.Invalid=3]="Invalid",t}({});function $(){const t=q.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}const K=x({"\u0275cmp":x}),Y=x({"\u0275dir":x}),Q=x({"\u0275pipe":x}),J=x({"\u0275mod":x}),Z=x({"\u0275loc":x}),tt=x({"\u0275fac":x}),et=x({__NG_ELEMENT_ID__:x});class nt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=O({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const rt=new nt("INJECTOR",-1),it={},ot=/\n/gm,st=x({provide:String,useValue:x});let at,ct=void 0;function lt(t){const e=ct;return ct=t,e}function ut(t){const e=at;return at=t,e}function ht(t,e=S.Default){if(void 0===ct)throw new Error("inject() must be called from an injection context");return null===ct?mt(t,void 0,e):ct.get(t,e&S.Optional?null:void 0,e)}function dt(t,e=S.Default){return(at||ht)(H(t),e)}function ft(t){throw new Error("invalid")}const pt=dt;function mt(t,e,n){const r=k(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&S.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${F(t)}]`)}function gt(t){const e=[];for(let n=0;n<t.length;n++){const r=H(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=S.Default;for(let e=0;e<r.length;e++){const i=r[e];i instanceof b||"Optional"===i.ngMetadataName||i===b?n|=S.Optional:i instanceof y||"SkipSelf"===i.ngMetadataName||i===y?n|=S.SkipSelf:i instanceof v||"Self"===i.ngMetadataName||i===v?n|=S.Self:t=i instanceof g||i===g?i.token:i}e.push(dt(t,n))}else e.push(dt(r))}return e}class bt{get(t,e=it){if(e===it){const e=new Error(`NullInjectorError: No provider for ${F(t)}!`);throw e.name="NullInjectorError",e}return e}}const vt={"\u0275\u0275defineInjectable":O,"\u0275\u0275defineInjector":E,"\u0275\u0275inject":dt,"\u0275\u0275getFactoryOf":function t(e){const n=e;if(B(e))return()=>{const e=t(H(n));return e?e():null};const r=k(n)||D(n);return r&&void 0!==r.factory?r.factory:null},"\u0275\u0275invalidFactoryDep":ft};class yt{}class _t{}function wt(t,e){for(let n=0;n<t.length;n++)e.push(t[n])}function St(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?(e===t&&(e=t.slice(0,n)),St(r,e)):e!==t&&e.push(r)}return e}function xt(t,e){t.forEach(t=>Array.isArray(t)?xt(t,e):e(t))}function Ct(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ot(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Tt(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function Et(t,e,n){let r=At(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function kt(t,e){const n=At(t,e);if(n>=0)return t[1|n]}function At(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?i=n:r=n+1}return~(i<<1)}(t,e)}const Dt=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),jt=function(){var t={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};return t[t.CheckOnce]="CheckOnce",t[t.Checked]="Checked",t[t.CheckAlways]="CheckAlways",t[t.Detached]="Detached",t[t.Errored]="Errored",t[t.Destroyed]="Destroyed",t}();function It(t){return null==t||t===Dt.Default}const Pt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),Mt={},Nt=[];let Ft=0;function Rt(t){return c(()=>{const e=t.type,n=e.prototype,r={},i={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===Dt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Nt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Pt.Emulated,id:"c",styles:t.styles||Nt,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,s=t.features,a=t.pipes;return i.id+=Ft++,i.inputs=Wt(t.inputs,r),i.outputs=Wt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(Vt):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map(Ht):null,i})}function Lt(t,e,n){const r=t.\u0275cmp;r.directiveDefs=()=>e.map(Vt),r.pipeDefs=()=>n.map(Ht)}function Vt(t){return Xt(t)||$t(t)}function Ht(t){return Kt(t)}const Bt={};function Gt(t){const e={type:t.type,bootstrap:t.bootstrap||Nt,declarations:t.declarations||Nt,imports:t.imports||Nt,exports:t.exports||Nt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&c(()=>{Bt[t.id]=t.type}),e}function zt(t,e){return c(()=>{const n=Qt(t,!0);n.declarations=e.declarations||Nt,n.imports=e.imports||Nt,n.exports=e.exports||Nt})}function Wt(t,e){if(null==t)return Mt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const Ut=Rt;function qt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Xt(t){return t[K]||null}function $t(t){return t[Y]||null}function Kt(t){return t[Q]||null}function Yt(t,e){return t.hasOwnProperty(tt)?t[tt]:null}function Qt(t,e){const n=t[J]||null;if(!n&&!0===e)throw new Error(`Type ${F(t)} does not have '\u0275mod' property.`);return n}function Jt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Zt(t){return Array.isArray(t)&&!0===t[1]}function te(t){return 0!=(8&t.flags)}function ee(t){return 2==(2&t.flags)}function ne(t){return 1==(1&t.flags)}function re(t){return null!==t.template}function ie(t){return 0!=(512&t[2])}let oe=void 0;function se(t){oe=t}function ae(){return void 0!==oe?oe:"undefined"!=typeof document?document:void 0}function ce(t){return!!t.listen}const le={createRenderer:(t,e)=>ae()};function ue(t){for(;Array.isArray(t);)t=t[0];return t}function he(t,e){return ue(e[t+19])}function de(t,e){return ue(e[t.index])}function fe(t,e){const n=t.index;return-1!==n?ue(e[n]):null}function pe(t,e){return t.data[e+19]}function me(t,e){return t[e+19]}function ge(t,e){const n=e[t];return Jt(n)?n:n[0]}function be(t){return t.__ngContext__||null}function ve(t){const e=be(t);return e?Array.isArray(e)?e:e.lView:null}function ye(t){return 4==(4&t[2])}function _e(t){return 128==(128&t[2])}function we(t,e){return null===t||null==e?null:t[e]}function Se(t){t[18]=0}function xe(t){return t[2]>>1}const Ce={lFrame:$e(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Oe(){return Ce.bindingsEnabled}function Te(){Ce.bindingsEnabled=!0}function Ee(){Ce.bindingsEnabled=!1}function ke(){return Ce.lFrame.lView}function Ae(){return Ce.lFrame.tView}function De(t){Ce.lFrame.contextLView=t}function je(){return Ce.lFrame.previousOrParentTNode}function Ie(t,e){Ce.lFrame.previousOrParentTNode=t,Ce.lFrame.isParent=e}function Pe(){return Ce.lFrame.isParent}function Me(){Ce.lFrame.isParent=!1}function Ne(){return Ce.checkNoChangesMode}function Fe(t){Ce.checkNoChangesMode=t}function Re(){const t=Ce.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Le(){return Ce.lFrame.bindingIndex}function Ve(t){return Ce.lFrame.bindingIndex=t}function He(){return Ce.lFrame.bindingIndex++}function Be(t){const e=Ce.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ge(t,e){const n=Ce.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function ze(){return Ce.lFrame.currentQueryIndex}function We(t){Ce.lFrame.currentQueryIndex=t}function Ue(t,e){const n=Xe();Ce.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function qe(t,e){const n=Xe(),r=t[1];Ce.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function Xe(){const t=Ce.lFrame,e=null===t?null:t.child;return null===e?$e(t):e}function $e(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ke(){const t=Ce.lFrame;return Ce.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Ye=Ke;function Qe(){const t=Ke();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Je(t){return(Ce.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Ce.lFrame.contextLView))[8]}function Ze(){return Ce.lFrame.selectedIndex}function tn(t){Ce.lFrame.selectedIndex=t}function en(){const t=Ce.lFrame;return pe(t.tView,t.selectedIndex)}function nn(){Ce.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function rn(){Ce.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function on(){Ce.lFrame.currentNamespace=null}function sn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function an(t,e,n){un(t,e,3,n)}function cn(t,e,n,r){(3&t[2])===n&&un(t,e,n,r)}function ln(t,e){let n=t[2];(3&n)===e&&(n&=1023,n+=1,t[2]=n)}function un(t,e,n,r){const i=null!=r?r:-1;let o=0;for(let s=void 0!==r?65535&t[18]:0;s<e.length;s++)if("number"==typeof e[s+1]){if(o=e[s],null!=r&&o>=r)break}else e[s]<0&&(t[18]+=65536),(o<i||-1==i)&&(hn(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function hn(t,e,n,r){const i=n[r]<0,o=n[r+1],s=t[i?-n[r]:n[r]];i?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,o.call(s)):o.call(s)}class dn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function fn(t,e,n){const r=ce(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const s=n[i++],a=n[i++],c=n[i++];r?t.setAttribute(e,a,c,s):e.setAttributeNS(s,a,c)}else{const s=o,a=n[++i];mn(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),i++}}return i}function pn(t){return 3===t||4===t||6===t}function mn(t){return 64===t.charCodeAt(0)}function gn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||bn(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function bn(t,e,n,r,i){let o=0,s=t.length;if(-1===e)s=-1;else for(;o<t.length;){const n=t[o++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=o-1;break}}}for(;o<t.length;){const e=t[o];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function vn(t){return-1!==t}function yn(t){return 32767&t}function _n(t){return t>>16}function wn(t,e){let n=_n(t),r=e;for(;n>0;)r=r[15],n--;return r}function Sn(t){return"string"==typeof t?t:null==t?"":""+t}function xn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Sn(t)}const Cn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(q))();function On(t){return{name:"window",target:t.ownerDocument.defaultView}}function Tn(t){return{name:"document",target:t.ownerDocument}}function En(t){return{name:"body",target:t.ownerDocument.body}}function kn(t){return t instanceof Function?t():t}let An=!0;function Dn(t){const e=An;return An=t,e}let jn=0;function In(t,e){const n=Mn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Pn(r.data,t),Pn(e,null),Pn(r.blueprint,null));const i=Nn(t,e),o=t.injectorIndex;if(vn(i)){const t=yn(i),n=wn(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function Pn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Mn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Nn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Fn(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[et]:n.charCodeAt(0)||0;null==r&&(r=n[et]=jn++);const i=255&r,o=1<<i,s=64&i,a=32&i,c=e.data;128&i?s?a?c[t+7]|=o:c[t+6]|=o:a?c[t+5]|=o:c[t+4]|=o:s?a?c[t+3]|=o:c[t+2]|=o:a?c[t+1]|=o:c[t]|=o}(t,e,n)}function Rn(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let r=0;for(;r<t;){const i=n[r];if(pn(i))break;if(0===i)r+=2;else if("number"==typeof i)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(i===e)return n[r+1];r+=2}}}return null}function Ln(t,e,n,r=S.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[et];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){Ue(e,t);try{const t=i();if(null!=t||r&S.Optional)return t;throw new Error(`No provider for ${xn(n)}!`)}finally{Ye()}}else if("number"==typeof i){if(-1===i)return new Un(t,e);let o=null,s=Mn(t,e),a=-1,c=r&S.Host?e[16][6]:null;for((-1===s||r&S.SkipSelf)&&(a=-1===s?Nn(t,e):e[s+8],Wn(r,!1)?(o=e[1],s=yn(a),e=wn(a,e)):s=-1);-1!==s;){a=e[s+8];const t=e[1];if(zn(i,s,t.data)){const t=Hn(s,e,n,o,r,c);if(t!==Vn)return t}Wn(r,e[1].data[s+8]===c)&&zn(i,s,e)?(o=t,s=yn(a),e=wn(a,e)):s=-1}}}if(r&S.Optional&&void 0===i&&(i=null),0==(r&(S.Self|S.Host))){const t=e[9],o=ut(void 0);try{return t?t.get(n,i,r&S.Optional):mt(n,i,r&S.Optional)}finally{ut(o)}}if(r&S.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${xn(n)}]`)}const Vn={};function Hn(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],c=Bn(a,s,n,null==r?ee(a)&&An:r!=s&&3===a.type,i&S.Host&&o===a);return null!==c?Gn(e,s,c,a):Vn}function Bn(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=65535&o,c=t.directiveStart,l=o>>16,u=i?a+l:t.directiveEnd;for(let h=r?a:a+l;h<u;h++){const t=s[h];if(h<c&&n===t||h>=c&&t.type===n)return h}if(i){const t=s[c];if(t&&re(t)&&t.type===n)return c}return null}function Gn(t,e,n,r){let i=t[n];const o=e.data;if(i instanceof dn){const s=i;if(s.resolving)throw new Error("Circular dep for "+xn(o[n]));const a=Dn(s.canSeeViewProviders);let c;s.resolving=!0,s.injectImpl&&(c=ut(s.injectImpl)),Ue(t,r);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:i,doCheck:o}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{s.injectImpl&&ut(c),Dn(a),s.resolving=!1,Ye()}}return i}function zn(t,e,n){const r=64&t,i=32&t;let o;return o=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],!!(o&1<<t)}function Wn(t,e){return!(t&S.Self||t&S.Host&&e)}class Un{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return Ln(this._tNode,this._lView,t,void 0,e)}}function qn(t){const e=t;if(B(t))return()=>{const t=qn(H(e));return t?t():null};let n=Yt(e);if(null===n){const t=D(e);n=t&&t.factory}return n||null}function Xn(t){return c(()=>{const e=Object.getPrototypeOf(t.prototype).constructor,n=e[tt]||qn(e);return null!==n?n:t=>new t})}function $n(t){return t.ngDebugContext}function Kn(t){return t.ngOriginalError}function Yn(t,...e){t.error(...e)}class Qn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Yn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?$n(t)?$n(t):this._findContext(Kn(t)):null}_findOriginalError(t){let e=Kn(t);for(;e&&Kn(e);)e=Kn(e);return e}}const Jn={name:"custom-elements"},Zn={name:"no-errors-schema"};class tr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class er extends tr{getTypeName(){return"HTML"}}class nr extends tr{getTypeName(){return"Style"}}class rr extends tr{getTypeName(){return"Script"}}class ir extends tr{getTypeName(){return"URL"}}class or extends tr{getTypeName(){return"ResourceURL"}}function sr(t){return t instanceof tr?t.changingThisBreaksApplicationSecurity:t}function ar(t,e){const n=cr(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function cr(t){return t instanceof tr&&t.getTypeName()||null}function lr(t){return new er(t)}function ur(t){return new nr(t)}function hr(t){return new rr(t)}function dr(t){return new ir(t)}function fr(t){return new or(t)}let pr=!0,mr=!1;function gr(){return mr=!0,pr}function br(){if(mr)throw new Error("Cannot enable prod mode after platform setup.");pr=!1}class vr{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const yr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,_r=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function wr(t){return(t=String(t)).match(yr)||t.match(_r)?t:(gr()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Sr(t){return(t=String(t)).split(",").map(t=>wr(t.trim())).join(", ")}function xr(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Cr(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Or=xr("area,br,col,hr,img,wbr"),Tr=xr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Er=xr("rp,rt"),kr=Cr(Er,Tr),Ar=Cr(Or,Cr(Tr,xr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Cr(Er,xr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),kr),Dr=xr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jr=xr("srcset"),Ir=Cr(Dr,jr,xr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),xr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Pr=xr("script,style,template");class Mr{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Ar.hasOwnProperty(e))return this.sanitizedSomething=!0,!Pr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r<n.length;r++){const t=n.item(r),e=t.name,i=e.toLowerCase();if(!Ir.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let o=t.value;Dr[i]&&(o=wr(o)),jr[i]&&(o=Sr(o)),this.buf.push(" ",e,'="',Rr(o),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ar.hasOwnProperty(e)&&!Or.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Rr(t))}checkClobberedElement(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}}const Nr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fr=/([^\#-~ |!])/g;function Rr(t){return t.replace(/&/g,"&amp;").replace(Nr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Fr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Lr;function Vr(t,e){let n=null;try{Lr=Lr||new vr(t);let r=e?String(e):"";n=Lr.getInertBodyElement(r);let 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=Lr.getInertBodyElement(r)}while(r!==o);const s=new Mr,a=s.sanitizeChildren(Hr(n)||n);return gr()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Hr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Hr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Br=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Gr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),zr=/^url\(([^)]+)\)$/;function Wr(t){if(!(t=String(t).trim()))return"";const e=t.match(zr);return e&&wr(e[1])===e[1]||t.match(Gr)&&function(t){let e=!0,n=!0;for(let r=0;r<t.length;r++){const i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(gr()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function Ur(t){const e=ti();return e?e.sanitize(Br.HTML,t)||"":ar(t,"HTML")?sr(t):Vr(ae(),Sn(t))}function qr(t){const e=ti();return e?e.sanitize(Br.STYLE,t)||"":ar(t,"Style")?sr(t):Wr(Sn(t))}function Xr(t){const e=ti();return e?e.sanitize(Br.URL,t)||"":ar(t,"URL")?sr(t):wr(Sn(t))}function $r(t){const e=ti();if(e)return e.sanitize(Br.RESOURCE_URL,t)||"";if(ar(t,"ResourceURL"))return sr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function Kr(t){const e=ti();if(e)return e.sanitize(Br.SCRIPT,t)||"";if(ar(t,"Script"))return sr(t);throw new Error("unsafe value used in a script context")}function Yr(t,e){return"src"===e&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===e&&("base"===t||"link"===t)?$r:Xr}function Qr(t,e,n){return Yr(e,n)(t)}const Jr=function(t,e,n){if(void 0===e&&void 0===n)return qr(t);let r=!0;return 1&(n=n||3)&&(r=Zr(t)),2&n?r?qr(e):sr(e):r};function Zr(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}function ti(){const t=ke();return t&&t[12]}const ei=/([A-Z])/g;function ni(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function ri(t){let e=be(t);if(e){if(Array.isArray(e)){const r=e;let i,o=void 0,s=void 0;if((n=t)&&n.constructor&&n.constructor.\u0275cmp){if(i=li(r,t),-1==i)throw new Error("The provided component was not found in the application");o=t}else if(function(t){return t&&t.constructor&&t.constructor.\u0275dir}(t)){if(i=function(t,e){let n=t[1].firstChild;for(;n;){const r=n.directiveEnd;for(let i=n.directiveStart;i<r;i++)if(t[i]===e)return n.index;n=ci(n)}return-1}(r,t),-1==i)throw new Error("The provided directive was not found in the application");s=ui(i,r,!1)}else if(i=ai(r,t),-1==i)return null;const a=ue(r[i]),c=be(a),l=c&&!Array.isArray(c)?c:ii(r,i,a);if(o&&void 0===l.component&&(l.component=o,si(l.component,l)),s&&void 0===l.directives){l.directives=s;for(let t=0;t<s.length;t++)si(s[t],l)}si(l.native,l),e=l}}else{const n=t;let r=n;for(;r=r.parentNode;){const t=be(r);if(t){let r;if(r=Array.isArray(t)?t:t.lView,!r)return null;const i=ai(r,n);if(i>=0){const t=ue(r[i]),n=ii(r,i,t);si(t,n),e=n;break}}}}var n;return e||null}function ii(t,e,n){return{lView:t,nodeIndex:e,native:n,component:void 0,directives:void 0,localRefs:void 0}}function oi(t){let e,n=be(t);if(Array.isArray(n)){const r=li(n,t);e=ge(r,n);const i=ii(n,r,e[0]);i.component=t,si(t,i),si(i.native,i)}else e=ge(n.nodeIndex,n.lView);return e}function si(t,e){t.__ngContext__=e}function ai(t,e){let n=t[1].firstChild;for(;n;){if(fe(n,t)===e)return n.index;n=ci(n)}return-1}function ci(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 li(t,e){const n=t[1].components;if(n)for(let r=0;r<n.length;r++){const i=n[r];if(ge(i,t)[8]===e)return i}else if(ge(19,t)[8]===e)return 19;return-1}function ui(t,e,n){const r=e[1].data[t];let i=r.directiveStart;return 0==i?Nt:(!n&&2&r.flags&&i++,e.slice(i,r.directiveEnd))}function hi(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function di(){throw new Error("Cannot mix multi providers and regular providers")}function fi(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}function pi(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==fi(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function mi(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function gi(t,e,n){let r=4;const i=t.attrs||[],o=function(t){for(let e=0;e<t.length;e++)if(pn(t[e]))return e;return t.length}(i);let s=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!mi(t,c,n)||""===c&&1===e.length){if(bi(r))return!1;s=!0}}else{const l=8&r?c:e[++a];if(8&r&&null!==t.attrs){if(!pi(t.attrs,l,n)){if(bi(r))return!1;s=!0}continue}const u=vi(8&r?"class":c,i,0==t.type&&"ng-template"!==t.tagName,n);if(-1===u){if(bi(r))return!1;s=!0;continue}if(""!==l){let t;t=u>o?"":i[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==fi(e,l,0)||2&r&&l!==t){if(bi(r))return!1;s=!0}}}}else{if(!s&&!bi(r)&&!bi(c))return!1;if(s&&bi(c))continue;s=!1,r=c|1&r}}return bi(r)||s}function bi(t){return 0==(1&t)}function vi(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i<e.length;){const r=e[i];if(r===t)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){if(t[n]===e)return n;n++}return-1}(e,t)}function yi(t,e,n=!1){for(let r=0;r<e.length;r++)if(gi(t,e[r],n))return!0;return!1}function _i(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function wi(t,e){return t?":not("+e.trim()+")":e}function Si(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const e=t[++n];i+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||bi(s)||(e+=wi(o,i),i=""),r=s,o=o||!bi(r);n++}return""!==i&&(e+=wi(o,i)),e}const xi={};function Ci(t){const e=t[3];return Zt(e)?e[3]:e}function Oi(t){return function(t){let e=Jt(t)?t:ve(t);for(;e&&!(512&e[2]);)e=Ci(e);return e}(t)[8]}function Ti(t){ki(Ae(),ke(),Ze()+t,Ne())}function Ei(t){ki(Ae(),ke(),t,Ne())}function ki(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&an(e,r,n)}else{const r=t.preOrderHooks;null!==r&&cn(e,r,0,n)}tn(n)}const Ai={marker:"element"},Di={marker:"comment"};function ji(t,e){return t<<17|e<<2}function Ii(t){return t>>17&32767}function Pi(t){return 2|t}function Mi(t){return(131068&t)>>2}function Ni(t,e){return-131069&t|e<<2}function Fi(t){return 1|t}const Ri=(()=>Promise.resolve(null))();function Li(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const n=t.data[o];We(i),n.contentQueries(2,e[o],o)}}}function Vi(t,e,n){return ce(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Hi(t,e,n,r,i,o,s,a,c,l){const u=e.blueprint.slice();return u[0]=i,u[2]=140|r,Se(u),u[3]=u[15]=t,u[8]=n,u[10]=s||t&&t[10],u[11]=a||t&&t[11],u[12]=c||t&&t[12]||null,u[9]=l||t&&t[9]||null,u[6]=o,u[16]=2==e.type?t[16]:u,u}function Bi(t,e,n,r,i,o){const s=n+19,a=t.data[s]||function(t,e,n,r,i,o){const s=je(),a=Pe(),c=a?s:s&&s.parent,l=t.data[n]=Zi(0,c&&c!==e?c:null,r,n,i,o);return null===t.firstChild&&(t.firstChild=l),s&&(!a||null!=s.child||null===l.parent&&2!==s.type?a||(s.next=l):s.child=l),l}(t,e,s,r,i,o);return Ie(a,!0),a}function Gi(t,e,n,r){let i=t.node;return null==i&&(t.node=i=Zi(0,e,2,n,null,null)),r[6]=i}function zi(t,e,n){qe(e,e[6]);try{const r=t.viewQuery;null!==r&&Oo(1,r,n);const i=t.template;null!==i&&qi(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Li(t,e),t.staticViewQueries&&Oo(2,t.viewQuery,n);const o=t.components;null!==o&&function(t,e){for(let n=0;n<e.length;n++)yo(t,e[n])}(e,o)}finally{e[2]&=-5,Qe()}}function Wi(t,e,n,r){const i=e[2];if(256==(256&i))return;qe(e,e[6]);const o=Ne();try{Se(e),Ve(t.bindingStartIndex),null!==n&&qi(t,e,n,2,r);const s=3==(3&i);if(!o)if(s){const n=t.preOrderCheckHooks;null!==n&&an(e,n,null)}else{const n=t.preOrderHooks;null!==n&&cn(e,n,0,null),ln(e,0)}if(function(t){let e=t[13];for(;null!==e;){let n;if(Zt(e)&&(n=e[2])>>1==-1){for(let t=9;t<e.length;t++){const n=e[t],r=n[1];_e(n)&&Wi(r,n,r.template,n[8])}0!=(1&n)&&bo(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&Li(t,e),!o)if(s){const n=t.contentCheckHooks;null!==n&&an(e,n)}else{const n=t.contentHooks;null!==n&&cn(e,n,1),ln(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,i=-1,o=-1;for(let t=0;t<n.length;t++){const s=n[t];"number"==typeof s?s<=0?(o=0-s,tn(o),r+=9+n[++t],i=r):r+=s:(null!==s&&(Ge(r,i),s(2,e[i])),i++)}}}finally{tn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)vo(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&Oo(2,c,r),!o)if(s){const n=t.viewCheckHooks;null!==n&&an(e,n)}else{const n=t.viewHooks;null!==n&&cn(e,n,2),ln(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),o||(e[2]&=-73)}finally{Qe()}}function Ui(t,e,n,r){const i=e[10],o=!Ne(),s=ye(e);try{o&&!s&&i.begin&&i.begin(),s&&zi(t,e,r),Wi(t,e,n,r)}finally{o&&!s&&i.end&&i.end()}}function qi(t,e,n,r,i){const o=Ze();try{tn(-1),2&r&&e.length>19&&ki(t,e,0,Ne()),n(r,i)}finally{tn(o)}}function Xi(t,e,n){if(te(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i<r;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function $i(t,e,n){Oe()&&(function(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||In(n,e),si(r,e);const s=n.initialInputs;for(let a=i;a<o;a++){const r=t.data[a],o=re(r);o&&ho(e,n,r);const c=Gn(e,t,a,n);si(c,e),null!==s&&po(0,a-i,c,r,0,s),o&&(ge(n.index,e)[8]=c)}}(t,e,n,de(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=t.expandoInstructions,s=t.firstCreatePass,a=n.index-19;try{tn(a);for(let n=r;n<i;n++){const r=t.data[n],i=e[n];null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?oo(r,i):s&&o.push(null)}}finally{tn(-1)}}(t,e,n))}function Ki(t,e,n=de){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const s=r[o+1],a=-1===s?n(e,t):t[s];t[i++]=a}}}function Yi(t){return t.tView||(t.tView=Qi(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function Qi(t,e,n,r,i,o,s,a,c,l){const u=19+r,h=u+i,d=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:xi);return n}(u,h);return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:l}}function Ji(t,e,n){if(ce(t))return t.selectRootElement(e,n===Pt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}function Zi(t,e,n,r,i,o){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function to(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function eo(t,e,n,r,i,o,s,a){const c=de(e,n);let l,u=e.inputs;var h;!a&&null!=u&&(l=u[r])?(jo(t,n,l,r,i),ee(e)&&function(t,e){const n=ge(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,i=null!=s?s(i,e.tagName||"",r):i,ce(o)?o.setProperty(c,r,i):mn(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}function no(t,e,n,r){let i=!1;if(Oe()){const o=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const s=r[o];yi(n,s.selectors,!1)&&(i||(i=[]),Fn(In(n,e),t,s.type),re(s)?(2&n.flags&&hi(n),ao(t,n),i.unshift(s)):i.push(s))}return i}(t,e,n),s=null===r?null:{"":-1};if(null!==o){let r=0;i=!0,lo(n,t.data.length,o.length);for(let t=0;t<o.length;t++){const e=o[t];e.providersResolver&&e.providersResolver(e)}so(t,n,o.length);let a=!1,c=!1;for(let i=0;i<o.length;i++){const l=o[i];n.mergedAttrs=gn(n.mergedAttrs,l.hostAttrs),uo(t,e,l),co(t.data.length-1,l,s),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128),!a&&(l.onChanges||l.onInit||l.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-19),a=!0),c||!l.onChanges&&!l.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-19),c=!0),ro(t,l),r+=l.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,i=e.attrs,o=[];let s=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=r[c],e=t.inputs;o.push(null!==i?mo(e,i):null),s=to(e,c,s),a=to(t.outputs,c,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=s,e.outputs=a}(t,n),io(t,e,r)}s&&function(t,e,n){if(e){const r=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);r.push(e[t],i)}}}(n,r,s)}return n.mergedAttrs=gn(n.mergedAttrs,n.attrs),i}function ro(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function io(t,e,n){for(let r=0;r<n;r++)e.push(xi),t.blueprint.push(xi),t.data.push(null)}function oo(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function so(t,e,n){const r=19-e.index,i=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function ao(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function co(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;re(e)&&(n[""]=t)}}function lo(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function uo(t,e,n){t.data.push(n);const r=n.factory||(n.factory=Yt(n.type)),i=new dn(r,re(n),null);t.blueprint.push(i),e.push(i)}function ho(t,e,n){const r=de(e,t),i=Yi(n),o=t[10],s=_o(t,Hi(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n)));t[e.index]=s}function fo(t,e,n,r,i,o){const s=de(t,e),a=e[11];if(null==r)ce(a)?a.removeAttribute(s,n,o):s.removeAttribute(n);else{const e=null==i?Sn(r):i(r,t.tagName||"",n);ce(a)?a.setAttribute(s,n,e,o):o?s.setAttributeNS(o,n,e):s.setAttribute(n,e)}}function po(t,e,n,r,i,o){const s=o[e];if(null!==s){const t=r.setInput;for(let e=0;e<s.length;){const i=s[e++],o=s[e++],a=s[e++];null!==t?r.setInput(n,a,i,o):n[o]=a}}}function mo(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function go(t,e,n,r){return new Array(t,!0,-2,e,null,null,r,n,null)}function bo(t,e){const n=t[5];for(let r=0;r<n.length;r++){const t=n[r],i=t[3][3][16];if(i!==e&&0==(16&i[2])){const e=t[1];Wi(e,t,e.template,t[8])}}}function vo(t,e){const n=ge(e,t);if(_e(n)&&80&n[2]){const t=n[1];Wi(t,n,t.template,n[8])}}function yo(t,e){const n=ge(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),zi(r,n,n[8])}function _o(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function wo(t){for(;t;){t[2]|=64;const e=Ci(t);if(ie(t)&&!e)return t;t=e}return null}function So(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=ve(n),i=r[1];Ui(i,r,i.template,n)}}function xo(t,e,n){const r=e[10];r.begin&&r.begin();try{Wi(t,e,t.template,n)}catch(i){throw Do(e,i),i}finally{r.end&&r.end()}}function Co(t){So(t[8])}function Oo(t,e,n){We(0),e(t,n)}const To=Ri;function Eo(t){return t[7]||(t[7]=[])}function ko(t){return t.cleanup||(t.cleanup=[])}function Ao(t,e){return function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(e[t.index])[11]}function Do(t,e){const n=t[9],r=n?n.get(Qn,null):null;r&&r.handleError(e)}function jo(t,e,n,r,i){for(let o=0;o<n.length;){const s=n[o++],a=n[o++],c=e[s],l=t.data[s];null!==l.setInput?l.setInput(c,i,r,a):c[a]=i}}function Io(t,e,n){const r=he(e,t),i=t[11];ce(i)?i.setValue(r,n):r.textContent=n}function Po(t,e){const n=e[3];return-1===t.index?Zt(n)?n:null:n}function Mo(t,e){const n=Po(t,e);return n?Ko(e[11],n[7]):null}function No(t,e,n,r,i){if(null!=r){let o,s=!1;Zt(r)?o=r:Jt(r)&&(s=!0,r=r[0]);const a=ue(r);0===t&&null!==n?null==i?Xo(e,n,a):qo(e,n,a,i||null):1===t&&null!==n?qo(e,n,a,i||null):2===t?Zo(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,r,i){const o=n[7];o!==ue(n)&&No(e,t,r,o,i);for(let s=9;s<n.length;s++){const i=n[s];es(i[1],i,t,e,r,o)}}(e,t,o,n,i)}}function Fo(t,e){return ce(e)?e.createText(t):e.createTextNode(t)}function Ro(t,e,n,r){const i=Mo(t.node,e);i&&es(t,e,e[11],n?1:2,i,r)}function Lo(t,e,n,r){const i=9+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-9?(e[4]=n[i],Ct(n,9+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[5],r=e[3][3][16];16!=(16&r[2])&&e[16]!==r&&(t[2]|=1),null===n?t[5]=[e]:n.push(e)}(s,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}function Vo(t,e){const n=t[5],r=n.indexOf(e);n.splice(r,1)}function Ho(t,e){if(t.length<=9)return;const n=9+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&Vo(i,r),e>0&&(t[n-1][4]=r[4]);const o=Ot(t,9+e);Ro(r[1],r,!1,null);const s=o[5];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Bo(t,e){const n=Ho(t,e);n&&Go(n[1],n)}function Go(t,e){if(!(256&e[2])){const n=e[11];ce(n)&&n.destroyNode&&es(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Wo(t[1],t);for(;e;){let n=null;if(Jt(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Jt(e)&&Wo(e[1],e),e=zo(e,t);null===e&&(e=t),Jt(e)&&Wo(e[1],e),n=e&&e[4]}e=n}}(e)}}function zo(t,e){let n;return Jt(t)&&(n=t[6])&&2===n.type?Po(n,t):t[3]===e?null:t[3]}function Wo(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const t=e[n[r]];t instanceof dn||n[r+1].call(t)}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const i=n[r+1],o="function"==typeof i?i(e):ue(e[i]),s=t[n[r+2]],a=n[r+3];"boolean"==typeof a?o.removeEventListener(n[r],s,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&ce(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Zt(e[3])){r!==e[3]&&Vo(r,e);const n=e[5];null!==n&&n.detachView(t)}}}function Uo(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?Mo(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return de(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==Pt.ShadowDom&&n!==Pt.Native)return null}return de(r,n)}function qo(t,e,n,r){ce(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Xo(t,e,n){ce(t)?t.appendChild(e,n):e.appendChild(n)}function $o(t,e,n,r){null!==r?qo(t,e,n,r):Xo(t,e,n)}function Ko(t,e){return ce(t)?t.parentNode(e):e.parentNode}function Yo(t,e){if(2===t.type){const n=Po(t,e);return null===n?null:Jo(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?de(t,e):null}function Qo(t,e,n,r){const i=Uo(t,r,e);if(null!=i){const t=e[11],o=Yo(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)$o(t,i,n[e],o);else $o(t,i,n,o)}}function Jo(t,e){const n=9+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return de(n,e);if(0===r)return Jo(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return Zt(t)?Jo(-1,t):ue(t)}}{const r=e[16],i=r[6],o=Ci(r),s=i.projection[n.projection];return null!=s?t(o,s):t(e,n.next)}}return null}(t,r)}return e[7]}function Zo(t,e,n){const r=Ko(t,e);r&&function(t,e,n,r){ce(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}function ts(t,e,n,r,i,o,s){for(;null!=n;){const a=r[n.index],c=n.type;s&&0===e&&(a&&si(ue(a),r),n.flags|=4),64!=(64&n.flags)&&(4===c||5===c?(ts(t,e,n.child,r,i,o,!1),No(e,t,i,a,o)):1===c?rs(t,e,r,n,i,o):No(e,t,i,a,o)),n=s?n.projectionNext:n.next}}function es(t,e,n,r,i,o){ts(n,r,t.node.child,e,i,o,!1)}function ns(t,e,n){rs(e[11],0,e,n,Uo(t,n,e),Yo(n.parent||e[6],e))}function rs(t,e,n,r,i,o){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)No(e,t,i,a[c],o);else ts(t,e,a,s[3],i,o,!0)}function is(t,e,n){ce(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function os(t,e,n){ce(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class ss{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,i,o=!1){for(;null!==r;){const s=n[r.index];if(null!==s&&i.push(ue(s)),Zt(s))for(let e=9;e<s.length;e++){const n=s[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,i)}const a=r.type;if(4===a||5===a)t(e,n,r.child,i);else if(1===a){const e=n[16],o=e[6],s=Ci(e);let a=o.projection[r.projection];null!==a&&null!==s&&t(s[1],s,a,i,!0)}r=o?r.projectionNext:r.next}return i}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Go(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,Eo(n=this._lView).push(r),e.firstCreatePass&&ko(e).push(n[7].length-1,null)}markForCheck(){wo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){xo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Fe(!0);try{xo(t,e,n)}finally{Fe(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,es(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class as extends ss{constructor(t){super(t),this._view=t}detectChanges(){Co(this._view)}checkNoChanges(){!function(t){Fe(!0);try{Co(t)}finally{Fe(!1)}}(this._view)}get context(){return null}}let cs,ls,us;function hs(t,e,n){return cs||(cs=class extends t{}),new cs(de(e,n))}function ds(t,e,n,r){return ls||(ls=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Hi(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(e)),zi(e,n,t);const i=new ss(n);return i._tViewNode=n[6],i}}),0===n.type?new ls(r,n,hs(e,n,r)):null}function fs(t,e,n,r){let i;us||(us=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return hs(e,this._hostTNode,this._hostView)}get injector(){return new Un(this._hostTNode,this._hostView)}get parentInjector(){const t=Nn(this._hostTNode,this._hostView),e=wn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=_n(t),i=e,o=e[6];for(;r>1;)i=i[15],o=i[6],r--;return o}(t,this._hostView,this._hostTNode);return vn(t)&&null!=n?new Un(n,e):new Un(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-9}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(yt,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Zt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new us(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e);return Lo(r,n,this._lContainer,i),Ro(r,n,!0,Jo(i,this._lContainer)),t.attachToViewContainerRef(this),Ct(this._lContainer[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);Bo(this._lContainer,e),Ot(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Ho(this._lContainer,e);return n&&null!=Ot(this._lContainer[8],e)?new ss(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const o=r[n.index];if(Zt(o))i=o,function(t,e){t[2]=-2}(i);else{let t;if(4===n.type)t=ue(o);else if(t=r[11].createComment(""),ie(r)){const e=r[11],i=de(n,r);qo(e,Ko(e,i),t,function(t,e){return ce(t)?t.nextSibling(e):e.nextSibling}(e,i))}else Qo(r[1],r,t,n);r[n.index]=i=go(o,r,t,n),_o(r,i)}return new us(i,n,r)}function ps(t=!1){return function(t,e,n){if(!n&&ee(t)){const n=ge(t.index,e);return new ss(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new ss(e[16],e):null}(je(),ke(),t)}let ms=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>bs(),t})();const gs=ps,bs=gs,vs=Function;function ys(t){return"function"==typeof t}const _s=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,ws=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ss=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,xs=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/;class Cs{constructor(t){this._reflect=t||q.Reflect}isReflectionEnabled(){return!0}factory(t){return(...e)=>new t(...e)}_zipTypesAndAnnotations(t,e){let n;n=Tt(void 0===t?e.length:t.length);for(let r=0;r<n.length;r++)n[r]=void 0===t?[]:t[r]&&t[r]!=Object?[t[r]]:[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n}_ownParameters(t,e){if(n=t.toString(),_s.test(n)||xs.test(n)||ws.test(n)&&!Ss.test(n))return null;var n;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;const r=t.ctorParameters;if(r&&r!==e.ctorParameters){const t="function"==typeof r?r():r,e=t.map(t=>t&&t.type),n=t.map(t=>t&&Os(t.decorators));return this._zipTypesAndAnnotations(e,n)}const i=t.hasOwnProperty(u)&&t[u],o=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return o||i?this._zipTypesAndAnnotations(o,i):Tt(t.length)}parameters(t){if(!ys(t))return[];const e=Ts(t);let n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]}_ownAnnotations(t,e){if(t.annotations&&t.annotations!==e.annotations){let e=t.annotations;return"function"==typeof e&&e.annotations&&(e=e.annotations),e}return t.decorators&&t.decorators!==e.decorators?Os(t.decorators):t.hasOwnProperty(l)?t[l]:null}annotations(t){if(!ys(t))return[];const e=Ts(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)}_ownPropMetadata(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){let e=t.propMetadata;return"function"==typeof e&&e.propMetadata&&(e=e.propMetadata),e}if(t.propDecorators&&t.propDecorators!==e.propDecorators){const e=t.propDecorators,n={};return Object.keys(e).forEach(t=>{n[t]=Os(e[t])}),n}return t.hasOwnProperty(h)?t[h]:null}propMetadata(t){if(!ys(t))return{};const e=Ts(t),n={};if(e!==Object){const t=this.propMetadata(e);Object.keys(t).forEach(e=>{n[e]=t[e]})}const r=this._ownPropMetadata(t,e);return r&&Object.keys(r).forEach(t=>{const e=[];n.hasOwnProperty(t)&&e.push(...n[t]),e.push(...r[t]),n[t]=e}),n}ownPropMetadata(t){return ys(t)&&this._ownPropMetadata(t,Ts(t))||{}}hasLifecycleHook(t,e){return t instanceof vs&&e in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n        return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+F(t)}resourceUri(t){return"./"+F(t)}resolveIdentifier(t,e,n,r){return r}resolveEnum(t,e){return t[e]}}function Os(t){return t?t.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Ts(t){const e=t.prototype?Object.getPrototypeOf(t.prototype):null;return(e?e.constructor:null)||Object}let Es=null;function ks(){return Es=Es||new Cs}function As(t){return Ds(ks().parameters(t))}function Ds(t){const e=$();return t.map(t=>function(t,e){const n={token:null,host:!1,optional:!1,resolved:t.R3ResolvedDependencyType.Token,self:!1,skipSelf:!1};function r(e){n.resolved=t.R3ResolvedDependencyType.Token,n.token=e}if(Array.isArray(e)&&e.length>0)for(let i=0;i<e.length;i++){const o=e[i];if(void 0===o)continue;const s=Object.getPrototypeOf(o);if(o instanceof b||"Optional"===s.ngMetadataName)n.optional=!0;else if(o instanceof y||"SkipSelf"===s.ngMetadataName)n.skipSelf=!0;else if(o instanceof v||"Self"===s.ngMetadataName)n.self=!0;else if(o instanceof _||"Host"===s.ngMetadataName)n.host=!0;else if(o instanceof g)n.token=o.token;else if(o instanceof w){if(void 0===o.attributeName)throw new Error("Attribute name must be defined.");n.token=o.attributeName,n.resolved=t.R3ResolvedDependencyType.Attribute}else o===ms?(n.token=o,n.resolved=t.R3ResolvedDependencyType.ChangeDetectorRef):r(o)}else void 0===e||Array.isArray(e)&&0===e.length?(n.token=void 0,n.resolved=X.Invalid):r(e);return n}(e,t))}const js=x({provide:String,useValue:x});function Is(t){return void 0!==t.useClass}function Ps(t){return void 0!==t.useFactory}function Ms(t,e){const n=e||{providedIn:null},r={name:t.name,type:t,typeArgumentCount:0,providedIn:n.providedIn,userDeps:void 0};return(Is(n)||Ps(n))&&void 0!==n.deps&&(r.userDeps=Ds(n.deps)),Is(n)?r.useClass=H(n.useClass):function(t){return js in t}(n)?r.useValue=H(n.useValue):Ps(n)?r.useFactory=n.useFactory:function(t){return void 0!==t.useExisting}(n)&&(r.useExisting=H(n.useExisting)),r}const Ns=d("Injectable",void 0,void 0,void 0,(t,e)=>Rs(t,e)),Fs=function(t,e){let n=null,r=null;t.hasOwnProperty(j)||(Object.defineProperty(t,j,{get:()=>(null===n&&(n=$().compileInjectable(vt,`ng:///${t.name}/\u0275prov.js`,Ms(t,e))),n)}),t.hasOwnProperty(P)||(t[P]=()=>t[j])),t.hasOwnProperty(tt)||Object.defineProperty(t,tt,{get:()=>{if(null===r){const n=Ms(t,e),i=$();r=i.compileFactory(vt,`ng:///${t.name}/\u0275fac.js`,{name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:As(t),injectFn:"inject",target:i.R3FactoryTarget.Injectable})}return r},configurable:!0})},Rs=Fs,Ls=new nt("Set Injector scope."),Vs={},Hs={},Bs=[];let Gs=void 0;function zs(){return void 0===Gs&&(Gs=new bt),Gs}function Ws(t,e=null,n=null,r){const i=Us(t,e,n,r);return i._resolveInjectorDefTypes(),i}function Us(t,e=null,n=null,r){return new qs(t,n,e||zs(),r)}class qs{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&xt(e,n=>this.processProvider(n,t,e)),xt([t],t=>this.processInjectorType(t,[],i)),this.records.set(rt,Ks(void 0,this));const o=this.records.get(Ls);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:F(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=it,n=S.Default){this.assertNotDestroyed();const r=lt(this);try{if(!(n&S.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof nt)&&k(t);e=n&&this.injectableDefInScope(n)?Ks(Xs(t),Vs):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&S.Self?zs():this.parent).get(t,e=n&S.Optional&&e===it?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(F(t)),r)throw o;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=F(e);if(Array.isArray(e))i=e.map(F).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):F(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(ot,"\n  ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{lt(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(F(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=H(t)))return!1;let r=D(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=D(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{xt(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];xt(r,t=>this.processProvider(t,n,r||Bs))}}this.injectorDefTypes.add(o),this.records.set(o,Ks(r.factory,Vs));const a=r.providers;if(null!=a&&!s){const e=t;xt(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=Qs(t=H(t))?t:H(t&&t.provide);const i=function(t,e,n){return Ys(t)?Ks(void 0,t.useValue):Ks($s(t,e,n),Vs)}(t,e,n);if(Qs(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&di()}else{let e=this.records.get(r);e?void 0===e.multi&&di():(e=Ks(void 0,Vs,!0),e.factory=()=>gt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){var n;return e.value===Hs?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(F(t)):e.value===Vs&&(e.value=Hs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Xs(t){const e=k(t),n=null!==e?e.factory:Yt(t);if(null!==n)return n;const r=D(t);if(null!==r)return r.factory;if(t instanceof nt)throw new Error(`Token ${F(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=Tt(e,"?");throw new Error(`Can't resolve all parameters for ${F(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[j]||t[M]||t[P]&&t[P]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function $s(t,e,n){let r=void 0;if(Qs(t)){const e=H(t);return Yt(e)||Xs(e)}if(Ys(t))r=()=>H(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...gt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>dt(H(t.useExisting));else{const i=H(t&&(t.useClass||t.provide));if(i||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${F(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return Yt(i)||Xs(i);r=()=>new i(...gt(t.deps))}var i;return r}function Ks(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Ys(t){return null!==t&&"object"==typeof t&&st in t}function Qs(t){return"function"==typeof t}function Js(t,e,n){return Ws({name:n},e,t,n)}const Zs=Js;let ta=(()=>{class t{static create(t,e){return Array.isArray(t)?Zs(t,e,""):Zs(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=it,t.NULL=new bt,t.\u0275prov=O({token:t,providedIn:"any",factory:()=>dt(rt)}),t.__NG_ELEMENT_ID__=-1,t})();function ea(t){return t.length>1?" ("+function(t){const e=[];for(let n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}(t.slice().reverse()).map(t=>F(t.token)).join(" -> ")+")":""}function na(t,e,n,r){const i=[e],o=n(i),s=r?function(t,e){const n=`${t} caused by: ${e instanceof Error?e.message:e}`,r=Error(n);return r.ngOriginalError=e,r}(o,r):Error(o);return s.addKey=ra,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s.ngOriginalError=r,s}function ra(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function ia(t,e){const n=[];for(let r=0,i=e.length;r<i;r++){const t=e[r];n.push(t&&0!=t.length?t.map(F).join(" "):"?")}return Error("Cannot resolve all parameters for '"+F(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+F(t)+"' is decorated with Injectable.")}class oa{constructor(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!");this.displayName=F(this.token)}static get(t){return aa.get(H(t))}static get numberOfKeys(){return aa.numberOfKeys}}class sa{constructor(){this._allKeys=new Map}get(t){if(t instanceof oa)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const e=new oa(t,oa.numberOfKeys);return this._allKeys.set(t,e),e}get numberOfKeys(){return this._allKeys.size}}const aa=new sa;class ca{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)}resolveEnum(t,e){return this.reflectionCapabilities.resolveEnum(t,e)}}const la=new ca(new Cs);class ua{constructor(t,e,n){this.key=t,this.optional=e,this.visibility=n}static fromKey(t){return new ua(t,!1,null)}}const ha=[];class da{constructor(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]}}class fa{constructor(t,e){this.factory=t,this.dependencies=e}}function pa(t){let e,n;if(t.useClass){const r=H(t.useClass);e=la.factory(r),n=ba(r)}else t.useExisting?(e=t=>t,n=[ua.fromKey(oa.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=function(t,e){if(e){const n=e.map(t=>[t]);return e.map(e=>va(t,e,n))}return ba(t)}(t.useFactory,t.deps)):(e=()=>t.useValue,n=ha);return new fa(e,n)}function ma(t){return new da(oa.get(t.provide),[pa(t)],t.multi||!1)}function ga(t){const e=function(t,e){for(let n=0;n<t.length;n++){const r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw Error(`Cannot mix multi providers and regular providers, got: ${i} ${r}`);if(r.multiProvider)for(let t=0;t<r.resolvedFactories.length;t++)i.resolvedFactories.push(r.resolvedFactories[t]);else e.set(r.key.id,r)}else{let t;t=r.multiProvider?new da(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,t)}}return e}(function t(e,n){return e.forEach(e=>{if(e instanceof vs)n.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)n.push(e);else{if(!Array.isArray(e))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+e);t(e,n)}}),n}(t,[]).map(ma),new Map);return Array.from(e.values())}function ba(t){const e=la.parameters(t);if(!e)return[];if(e.some(t=>null==t))throw ia(t,e);return e.map(n=>va(t,n,e))}function va(t,e,n){let r=null,i=!1;if(!Array.isArray(e))return ya(e instanceof g?e.token:e,i,null);let o=null;for(let s=0;s<e.length;++s){const t=e[s];t instanceof vs?r=t:t instanceof g?r=t.token:t instanceof b?i=!0:t instanceof v||t instanceof y?o=t:t instanceof nt&&(r=t)}if(r=H(r),null!=r)return ya(r,i,o);throw ia(t,n)}function ya(t,e,n){return new ua(oa.get(t),e,n)}const _a={};class wa{static resolve(t){return ga(t)}static resolveAndCreate(t,e){const n=wa.resolve(t);return wa.fromResolvedProviders(n,e)}static fromResolvedProviders(t,e){return new Sa(t,e)}}let Sa=(()=>{class t{constructor(t,e){this._constructionCounter=0,this._providers=t,this.parent=e||null;const n=t.length;this.keyIds=[],this.objs=[];for(let r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=_a}get(t,e=it){return this._getByKey(oa.get(t),null,e)}resolveAndCreateChild(t){const e=wa.resolve(t);return this.createChildFromResolved(e)}createChildFromResolved(e){const n=new t(e);return n.parent=this,n}resolveAndInstantiate(t){return this.instantiateResolved(wa.resolve([t])[0])}instantiateResolved(t){return this._instantiateProvider(t)}getProviderAtIndex(t){if(t<0||t>=this._providers.length)throw function(t){return Error(`Index ${t} is out-of-bounds.`)}(t);return this._providers[t]}_new(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw na(this,t.key,(function(t){return"Cannot instantiate cyclic dependency!"+ea(t)}));return this._instantiateProvider(t)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(t){if(t.multiProvider){const e=[];for(let n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])}_instantiate(t,e){const n=e.factory;let r,i;try{r=e.dependencies.map(t=>this._getByReflectiveDependency(t))}catch(s){throw s.addKey&&s.addKey(this,t.key),s}try{i=n(...r)}catch(s){throw na(this,t.key,(function(t){const e=F(t[0].token);return`${o.message}: Error during instantiation of ${e}!${ea(t)}.`}),o=s)}var o;return i}_getByReflectiveDependency(t){return this._getByKey(t.key,t.visibility,t.optional?null:it)}_getByKey(e,n,r){return e===t.INJECTOR_KEY?this:n instanceof v?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,n)}_getObjByKeyId(t){for(let e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===_a&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return _a}_throwOrNull(t,e){if(e!==it)return e;throw function(t,e){return na(t,e,(function(t){return`No provider for ${F(t[0].token)}!${ea(t)}`}))}(this,t)}_getByKeySelf(t,e){const n=this._getObjByKeyId(t.id);return n!==_a?n:this._throwOrNull(t,e)}_getByKeyDefault(e,n,r){let i;for(i=r instanceof y?this.parent:this;i instanceof t;){const t=i,n=t._getObjByKeyId(e.id);if(n!==_a)return n;i=t.parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)}get displayName(){return`ReflectiveInjector(providers: [${function(t,e){const n=[];for(let r=0;r<t._providers.length;++r)n[r]=' "'+t.getProviderAtIndex(r).key.displayName+'" ';return n}(this).join(", ")}])`}toString(){return this.displayName}}return t.INJECTOR_KEY=oa.get(ta),t})();const xa=new nt("AnalyzeForEntryComponents");class Ca{}const Oa=m("ContentChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e),Ca),Ta=m("ContentChild",(t,e={})=>Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e),Ca),Ea=m("ViewChildren",(t,e={})=>Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e),Ca),ka=m("ViewChild",(t,e)=>Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e),Ca);function Aa(t){const e=[],n=new Map;function r(e){let r=n.get(e);if(!r){const i=t(e);n.set(e,r=i.then(Ma))}return r}return Da.forEach((t,n)=>{const i=[];t.templateUrl&&i.push(r(t.templateUrl).then(e=>{t.template=e}));const o=t.styleUrls,s=t.styles||(t.styles=[]),a=t.styles.length;o&&o.forEach((e,n)=>{s.push(""),i.push(r(e).then(r=>{s[a+n]=r,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)}))});const c=Promise.all(i).then(()=>function(t){ja.delete(t)}(n));e.push(c)}),Pa(),Promise.all(e).then(()=>{})}let Da=new Map;const ja=new Set;function Ia(t){return!!(t.templateUrl&&!t.hasOwnProperty("template")||t.styleUrls&&t.styleUrls.length)}function Pa(){const t=Da;return Da=new Map,t}function Ma(t){return"string"==typeof t?t:t.text()}function Na(t,e){let n=t.styles,r=t.classes,i=0;for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?i=t:1==i?r=R(r,t):2==i&&(n=R(n,t+": "+e[++o]+";"))}null!==n&&(t.styles=n),null!==r&&(t.classes=r)}let Fa=null;function Ra(){if(!Fa){const t=q.Symbol;if(t&&t.iterator)Fa=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Fa=n)}}}return Fa}function La(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function Va(t,e){const n=Ba(t),r=Ba(e);if(n&&r)return function(t,e,n){const r=t[Ra()](),i=e[Ra()]();for(;;){const t=r.next(),e=i.next();if(t.done&&e.done)return!0;if(t.done||e.done)return!1;if(!n(t.value,e.value))return!1}}(t,e,Va);{const i=t&&("object"==typeof t||"function"==typeof t),o=e&&("object"==typeof e||"function"==typeof e);return!(n||!i||r||!o)||La(t,e)}}class Ha{constructor(t){this.wrapped=t}static wrap(t){return new Ha(t)}static unwrap(t){return Ha.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Ha}}function Ba(t){return!!Ga(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ra()in t)}function Ga(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function za(t,e,n){return t[e]=n}function Wa(t,e){return t[e]}function Ua(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function qa(t,e,n,r){const i=Ua(t,e,n);return Ua(t,e+1,r)||i}function Xa(t,e,n,r,i){const o=qa(t,e,n,r);return Ua(t,e+2,i)||o}function $a(t,e,n,r,i,o){const s=qa(t,e,n,r);return qa(t,e+2,i,o)||s}function Ka(t,e,n,r){const i=ke();return Ua(i,He(),e)&&(Ae(),fo(en(),i,t,e,n,r)),Ka}function Ya(t,e){let n=!1,r=Le();for(let o=1;o<e.length;o+=2)n=Ua(t,r++,e[o])||n;if(Ve(r),!n)return xi;let i=e[0];for(let o=1;o<e.length;o+=2)i+=Sn(e[o])+e[o+1];return i}function Qa(t,e,n,r){return Ua(t,He(),n)?e+Sn(n)+r:xi}function Ja(t,e,n,r,i,o){const s=qa(t,Le(),n,i);return Be(2),s?e+Sn(n)+r+Sn(i)+o:xi}function Za(t,e,n,r,i,o,s,a){const c=Xa(t,Le(),n,i,s);return Be(3),c?e+Sn(n)+r+Sn(i)+o+Sn(s)+a:xi}function tc(t,e,n,r,i,o,s,a,c,l){const u=$a(t,Le(),n,i,s,c);return Be(4),u?e+Sn(n)+r+Sn(i)+o+Sn(s)+a+Sn(c)+l:xi}function ec(t,e,n,r,i,o,s,a,c,l,u,h){const d=Le();let f=$a(t,d,n,i,s,c);return f=Ua(t,d+4,u)||f,Be(5),f?e+Sn(n)+r+Sn(i)+o+Sn(s)+a+Sn(c)+l+Sn(u)+h:xi}function nc(t,e,n,r,i,o,s,a,c,l,u,h,d,f){const p=Le();let m=$a(t,p,n,i,s,c);return m=qa(t,p+4,u,d)||m,Be(6),m?e+Sn(n)+r+Sn(i)+o+Sn(s)+a+Sn(c)+l+Sn(u)+h+Sn(d)+f:xi}function rc(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m){const g=Le();let b=$a(t,g,n,i,s,c);return b=Xa(t,g+4,u,d,p)||b,Be(7),b?e+Sn(n)+r+Sn(i)+o+Sn(s)+a+Sn(c)+l+Sn(u)+h+Sn(d)+f+Sn(p)+m:xi}function ic(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b){const v=Le();let y=$a(t,v,n,i,s,c);return y=$a(t,v+4,u,d,p,g)||y,Be(8),y?e+Sn(n)+r+Sn(i)+o+Sn(s)+a+Sn(c)+l+Sn(u)+h+Sn(d)+f+Sn(p)+m+Sn(g)+b:xi}function oc(t,e,n,r,i,o){const s=ke(),a=Qa(s,e,n,r);return a!==xi&&fo(en(),s,t,a,i,o),oc}function sc(t,e,n,r,i,o,s,a){const c=ke(),l=Ja(c,e,n,r,i,o);return l!==xi&&fo(en(),c,t,l,s,a),sc}function ac(t,e,n,r,i,o,s,a,c,l){const u=ke(),h=Za(u,e,n,r,i,o,s,a);return h!==xi&&fo(en(),u,t,h,c,l),ac}function cc(t,e,n,r,i,o,s,a,c,l,u,h){const d=ke(),f=tc(d,e,n,r,i,o,s,a,c,l);return f!==xi&&fo(en(),d,t,f,u,h),cc}function lc(t,e,n,r,i,o,s,a,c,l,u,h,d,f){const p=ke(),m=ec(p,e,n,r,i,o,s,a,c,l,u,h);return m!==xi&&fo(en(),p,t,m,d,f),lc}function uc(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m){const g=ke(),b=nc(g,e,n,r,i,o,s,a,c,l,u,h,d,f);return b!==xi&&fo(en(),g,t,b,p,m),uc}function hc(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b){const v=ke(),y=rc(v,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m);return y!==xi&&fo(en(),v,t,y,g,b),hc}function dc(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b,v,y){const _=ke(),w=ic(_,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b);return w!==xi&&fo(en(),_,t,w,v,y),dc}function fc(t,e,n,r){const i=ke(),o=Ya(i,e);return o!==xi&&fo(en(),i,t,o,n,r),fc}function pc(t){const e=oi(t);xo(e[1],e,t)}function mc(t){!function(t,e){const n=0===t.flags;if(t.flags|=1,n&&t.clean==Ri){let e;t.clean=new Promise(t=>e=t),t.scheduler(()=>{if(1&t.flags&&(t.flags&=-2,So(t)),2&t.flags){t.flags&=-3;const e=t.playerHandler;e&&e.flushPlayers()}t.clean=Ri,e(null)})}}(wo(oi(t))[8])}function gc(t){const e=ke(),n=Ae(),r=function(t,e,n,r,i){const o=n+19,s=e[o]=e[11].createComment(""),a=Bi(t,e[6],n,0,null,null),c=e[o]=go(s,e,s,a);return Qo(t,e,s,a),si(s,e),_o(e,c),a}(n,e,t);n.firstCreatePass&&(r.tViews=[]),Me()}function bc(t,e,n,r,i,o,s,a){const c=ke(),l=Ae(),u=t+19,h=l.firstCreatePass?function(t,e,n,r,i,o,s,a,c){const l=e.consts,u=Bi(e,n[6],t,0,s||null,we(l,a));no(e,n,u,we(l,c)),sn(e,u);const h=u.tViews=Qi(2,-1,r,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l),d=Zi(0,null,2,-1,null,null);return d.injectorIndex=u.injectorIndex,h.node=d,null!==e.queries&&(e.queries.template(e,u),h.queries=e.queries.embeddedTView(u)),u}(t,l,c,e,n,r,i,o,s):l.data[u];Ie(h,!1);const d=c[11].createComment("");Qo(l,c,d,h),si(d,c),_o(c,c[u]=go(d,c,d,h)),ne(h)&&$i(l,c,h),null!=s&&Ki(c,h,a)}function vc(t){const e=ke(),n=Ae();if(Ie(me(n.data,t),!0),e[t+19][2]=0,!Ne())if(3==(3&e[2])){const t=n.preOrderCheckHooks;null!==t&&an(e,t,null)}else{const t=n.preOrderHooks;null!==t&&cn(e,t,0,null),ln(e,0)}}function yc(){let t=je();Pe()?Me():(t=t.parent,Ie(t,!1));const e=ke()[t.index],n=xe(e);for(;n<e.length-9;)Bo(e,n)}function _c(t,e,n,r){const i=n+19;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}function wc(t){return me(Ce.lFrame.contextLView,t)}function Sc(t,e=S.Default){const n=ke();return null==n?dt(t,e):Ln(je(),n,H(t),e)}function xc(t){return Rn(je(),t)}function Cc(){throw new Error("invalid")}function Oc(t,e,n){const r=ke();return Ua(r,He(),e)&&eo(Ae(),en(),r,t,e,r[11],n,!1),Oc}function Tc(t,e,n,r,i){const o=i?"class":"style";jo(t,n,e.inputs[o],o,r)}function Ec(t,e,n,r){const i=ke(),o=Ae(),s=19+t,a=i[11],c=i[s]=Vi(e,a,Ce.lFrame.currentNamespace),l=o.firstCreatePass?function(t,e,n,r,i,o,s){const a=e.consts,c=we(a,o),l=Bi(e,n[6],t,3,i,c);return no(e,n,l,we(a,s)),null!==l.mergedAttrs&&Na(l,l.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,l),l}(t,o,i,0,e,n,r):o.data[s];Ie(l,!0);const u=l.mergedAttrs;null!==u&&fn(a,c,u);const h=l.classes;null!==h&&os(a,c,h);const d=l.styles;null!==d&&is(a,c,d),Qo(o,i,c,l),0===Ce.lFrame.elementDepthCount&&si(c,i),Ce.lFrame.elementDepthCount++,ne(l)&&($i(o,i,l),Xi(o,l,i)),null!==r&&Ki(i,l)}function kc(){let t=je();Pe()?Me():(t=t.parent,Ie(t,!1));const e=t;Ce.lFrame.elementDepthCount--;const n=Ae();n.firstCreatePass&&(sn(n,t),te(t)&&n.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&Tc(n,e,ke(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&Tc(n,e,ke(),e.styles,!1)}function Ac(t,e,n,r){Ec(t,e,n,r),kc()}function Dc(t,e,n){const r=ke(),i=Ae(),o=t+19,s=i.firstCreatePass?function(t,e,n,r,i){const o=e.consts,s=we(o,r),a=Bi(e,n[6],t,4,"ng-container",s);return null!==s&&Na(a,s),no(e,n,a,we(o,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,r,e,n):i.data[o];Ie(s,!0);const a=r[o]=r[11].createComment("");Qo(i,r,a,s),si(a,r),ne(s)&&($i(i,r,s),Xi(i,s,r)),null!=n&&Ki(r,s)}function jc(){let t=je();const e=Ae();Pe()?Me():(t=t.parent,Ie(t,!1)),e.firstCreatePass&&(sn(e,t),te(t)&&e.queries.elementEnd(t))}function Ic(t,e,n){Dc(t,e,n),jc()}function Pc(t,e,n){const r=ke(),i=je(),o=2===i.type?i.parent:i,s=r[o.index];let a=function(t,e,n){for(let r=e+9;r<t.length;r++){const e=t[r][1].id;if(e===n)return t[r];if(!(e<n))break;Bo(t,r-9)}return null}(s,xe(s),t);if(a)Ce.lFrame.isParent=!0,qe(a,a[1].node);else{a=Hi(r,function(t,e,n,r){const i=ke()[1],o=r.tViews;return(t>=o.length||null==o[t])&&(o[t]=Qi(2,t,null,e,n,i.directiveRegistry,i.pipeRegistry,null,null,i.consts)),o[t]}(t,e,n,o),null,16,null,null);const s=Pe()?i:i&&i.parent;Gi(a[1],s,t,a),qe(a,a[1].node)}return s&&(ye(a)&&Lo(a[1],a,s,xe(s)),s[2]+=2),ye(a)?3:2}function Mc(){const t=ke(),e=Ae(),n=t[6],r=t[8];ye(t)&&zi(e,t,r),Wi(e,t,e.template,r),Qe(),Ie(n,!1)}function Nc(){return ke()}function Fc(t){return!!t&&"function"==typeof t.then}function Rc(t){return!!t&&"function"==typeof t.subscribe}function Lc(t,e,n=!1,r){const i=ke(),o=Ae(),s=je();return Hc(o,i,i[11],s,t,e,n,r),Lc}function Vc(t,e,n=!1,r){const i=je(),o=ke(),s=Ao(i,o);return Hc(Ae(),o,s,i,t,e,n,r),Vc}function Hc(t,e,n,r,i,o,s=!1,a){const c=ne(r),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=Eo(e);let h=!0;if(3===r.type){const d=de(r,e),f=a?a(d):Mt,p=f.target||d,m=u.length,g=a?t=>a(ue(t[r.index])).target:r.index;if(ce(n)){let s=null;if(!a&&c&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const t=i[o];if(t===n&&i[o+1]===r){const t=e[7],n=i[o+2];return t.length>n?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=Gc(r,e,o,!1);const t=n.listen(f.name||p,i,o);u.push(o,t),l&&l.push(i,g,m,m+1)}}else o=Gc(r,e,o,!0),p.addEventListener(i,o,s),u.push(o),l&&l.push(i,g,m,s)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[i])){const t=f.length;if(t)for(let n=0;n<t;n+=2){const t=e[f[n]][f[n+1]].subscribe(o),s=u.length;u.push(o,t),l&&l.push(i,r.index,s,-(s+1))}}}function Bc(t,e,n){try{return!1!==e(n)}catch(r){return Do(t,r),!1}}function Gc(t,e,n,r){return function i(o){if(o===Function)return n;const s=2&t.flags?ge(t.index,e):e;0==(32&e[2])&&wo(s);let a=Bc(e,n,o),c=i.__ngNextListenerFn__;for(;c;)a=Bc(e,c,o)&&a,c=c.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function zc(t=1){return Je(t)}function Wc(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const o=e[i];if("*"!==o){if(null===r?yi(t,o,!0):_i(r,o))return i}else n=i}return n}function Uc(t){const e=ke()[16][6];if(!e.projection){const n=e.projection=Tt(t?t.length:1,null),r=n.slice();let i=e.child;for(;null!==i;){const e=t?Wc(i,t):0;null!==e&&(r[e]?r[e].projectionNext=i:n[e]=i,r[e]=i),i=i.next}}}let qc=!1;function Xc(t){qc=t}function $c(t,e=0,n){const r=ke(),i=Ae(),o=Bi(i,r[6],t,1,null,n||null);null===o.projection&&(o.projection=e),Me(),qc||ns(i,r,o)}function Kc(t,e,n){return Yc(t,"",e,"",n),Kc}function Yc(t,e,n,r,i){const o=ke(),s=Qa(o,e,n,r);return s!==xi&&eo(Ae(),en(),o,t,s,o[11],i,!1),Yc}function Qc(t,e,n,r,i,o,s){const a=ke(),c=Ja(a,e,n,r,i,o);return c!==xi&&eo(Ae(),en(),a,t,c,a[11],s,!1),Qc}function Jc(t,e,n,r,i,o,s,a,c){const l=ke(),u=Za(l,e,n,r,i,o,s,a);return u!==xi&&eo(Ae(),en(),l,t,u,l[11],c,!1),Jc}function Zc(t,e,n,r,i,o,s,a,c,l,u){const h=ke(),d=tc(h,e,n,r,i,o,s,a,c,l);return d!==xi&&eo(Ae(),en(),h,t,d,h[11],u,!1),Zc}function tl(t,e,n,r,i,o,s,a,c,l,u,h,d){const f=ke(),p=ec(f,e,n,r,i,o,s,a,c,l,u,h);return p!==xi&&eo(Ae(),en(),f,t,p,f[11],d,!1),tl}function el(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p){const m=ke(),g=nc(m,e,n,r,i,o,s,a,c,l,u,h,d,f);return g!==xi&&eo(Ae(),en(),m,t,g,m[11],p,!1),el}function nl(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g){const b=ke(),v=rc(b,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m);return v!==xi&&eo(Ae(),en(),b,t,v,b[11],g,!1),nl}function rl(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b,v){const y=ke(),_=ic(y,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b);return _!==xi&&eo(Ae(),en(),y,t,_,y[11],v,!1),rl}function il(t,e,n){const r=ke(),i=Ya(r,e);return i!==xi&&eo(Ae(),en(),r,t,i,r[11],n,!1),il}const ol=[];function sl(t,e,n,r,i){const o=t[n+1],s=null===e;let a=r?Ii(o):Mi(o),c=!1;for(;0!==a&&(!1===c||s);){const n=t[a+1];al(t[a],e)&&(c=!0,t[a+1]=r?Fi(n):Pi(n)),a=r?Ii(n):Mi(n)}c&&(t[n+1]=r?Pi(o):Fi(o))}function al(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&At(t,e)>=0}const cl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ll(t){return t.substring(cl.key,cl.keyEnd)}function ul(t){return t.substring(cl.value,cl.valueEnd)}function hl(t,e){const n=cl.textEnd;return n===e?-1:(e=cl.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,cl.key=e,n),pl(t,e,n))}function dl(t,e){const n=cl.textEnd;let r=cl.key=pl(t,e,n);return n===r?-1:(r=cl.keyEnd=function(t,e,n){let r;for(;e<n&&(45===(r=t.charCodeAt(e))||95===r||(-33&r)>=65&&(-33&r)<=90);)e++;return e}(t,r,n),r=ml(t,r,n),r=cl.value=pl(t,r,n),r=cl.valueEnd=function(t,e,n){let r=-1,i=-1,o=-1,s=e,a=s;for(;s<n;){const c=t.charCodeAt(s++);if(59===c)return a;34===c||39===c?a=s=gl(t,c,s,n):e===s-4&&85===o&&82===i&&76===r&&40===c?a=s=gl(t,41,s,n):c>32&&(a=s),o=i,i=r,r=-33&c}return a}(t,r,n),ml(t,r,n))}function fl(t){cl.key=0,cl.keyEnd=0,cl.value=0,cl.valueEnd=0,cl.textEnd=t.length}function pl(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function ml(t,e,n,r){return(e=pl(t,e,n))<n&&e++,e}function gl(t,e,n,r){let i=-1,o=n;for(;o<r;){const n=t.charCodeAt(o++);if(n==e&&92!==i)return o;i=92==n&&92===i?0:n}throw new Error}function bl(t){!function(t){Ce.lFrame.currentSanitizer=t}(t)}function vl(t,e,n){return Cl(t,e,n,!1),vl}function yl(t,e){return Cl(t,e,null,!0),yl}function _l(t){Ol(Dl,wl,t,!1)}function wl(t,e){for(let n=function(t){return fl(t),dl(t,pl(t,0,cl.textEnd))}(e);n>=0;n=dl(e,n))Dl(t,ll(e),ul(e))}function Sl(t){Ol(Et,xl,t,!0)}function xl(t,e){for(let n=function(t){return fl(t),hl(t,pl(t,0,cl.textEnd))}(e);n>=0;n=hl(e,n))Et(t,ll(e),!0)}function Cl(t,e,n,r){const i=ke(),o=Ae(),s=Be(2);if(o.firstUpdatePass&&El(o,t,s,r),e!==xi&&Ua(i,s,e)){let a;null==n&&(a=function(){const t=Ce.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),jl(o,o.data[Ze()+19],i,i[11],t,i[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=F(sr(t)))),t}(e,n),r,s)}}function Ol(t,e,n,r){const i=Ae(),o=Be(2);i.firstUpdatePass&&El(i,null,o,r);const s=ke();if(n!==xi&&Ua(s,o,n)){const a=i.data[Ze()+19];if(Ml(a,r)&&!Tl(i,o)){let t=r?a.classes:a.styles;null!==t&&(n=R(t,n||"")),Tc(i,a,s,n,r)}else!function(t,e,n,r,i,o,s,a){i===xi&&(i=ol);let c=0,l=0,u=0<i.length?i[0]:null,h=0<o.length?o[0]:null;for(;null!==u||null!==h;){const d=c<i.length?i[c+1]:void 0,f=l<o.length?o[l+1]:void 0;let p=null,m=void 0;u===h?(c+=2,l+=2,d!==f&&(p=h,m=f)):null===h||null!==u&&u<h?(c+=2,p=u):(l+=2,p=h,m=f),null!==p&&jl(t,e,n,r,p,m,s,a),u=c<i.length?i[c]:null,h=l<o.length?o[l]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(t,e,n){if(null==n||""===n)return ol;const r=[],i=sr(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)t(r,i[o],!0);else if("object"==typeof i)for(const o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else"string"==typeof i&&e(r,i);return r}(t,e,n),r,o)}}function Tl(t,e){return e>=t.expandoStartIndex}function El(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[Ze()+19],s=Tl(t,n);Ml(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=function(t){const e=Ce.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Al(n=kl(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=kl(i,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Mi(r))return t[Ii(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=kl(null,t,e,n[1],r),n=Al(n,e.attrs,r),function(t,e,n,r){t[Ii(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else o=function(t,e,n){let r=void 0;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++)r=Al(r,t[o].hostAttrs,n);return Al(r,e.attrs,n)}(t,e,r)}return void 0!==o&&(r?e.residualClasses=o:e.residualStyles=o),n}(i,o,e,r),function(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=Ii(s),c=Mi(s);t[r]=n;let l,u=!1;if(Array.isArray(n)){const t=n;l=t[1],(null===l||At(t,l)>0)&&(u=!0)}else l=n;if(i)if(0!==c){const e=Ii(t[a+1]);t[r+1]=ji(e,a),0!==e&&(t[e+1]=Ni(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=ji(a,0),0!==a&&(t[a+1]=Ni(t[a+1],r)),a=r;else t[r+1]=ji(c,0),0===a?a=r:t[c+1]=Ni(t[c+1],r),c=r;u&&(t[r+1]=Pi(t[r+1])),sl(t,l,r,!0),sl(t,l,r,!1),function(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&At(o,e)>=0&&(n[r+1]=Fi(n[r+1]))}(e,l,t,r,o),s=ji(a,c),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}function kl(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(o=e[a],r=Al(r,o.hostAttrs,i),o!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function Al(t,e,n){const r=n?1:2;let i=-1;if(null!==e)for(let o=0;o<e.length;o++){const s=e[o];"number"==typeof s?i=s:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Et(t,s,!!n||e[++o]))}return void 0===t?null:t}function Dl(t,e,n){Zr(e)&&(n=qr(n)),Et(t,e,n)}function jl(t,e,n,r,i,o,s,a){if(3!==e.type)return;const c=t.data,l=c[a+1];Pl(1==(1&l)?Il(c,e,n,i,Mi(l),s):void 0)||(Pl(o)||function(t){return 2==(2&t)}(l)&&(o=Il(c,null,n,i,a,s)),function(t,e,n,r,i){const o=ce(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==i?o?t.removeStyle(n,r,e):n.style.removeProperty(r):o?t.setStyle(n,r,i,e):n.style.setProperty(r,i)}}(r,s,he(Ze(),n),i,o))}function Il(t,e,n,r,i,o){const s=null===e;let a=void 0;for(;i>0;){const e=t[i],o=Array.isArray(e),c=o?e[1]:e,l=null===c;let u=n[i+1];u===xi&&(u=l?ol:void 0);let h=l?kt(u,r):c===r?u:void 0;if(o&&!Pl(h)&&(h=kt(e,r)),Pl(h)&&(a=h,s))return a;const d=t[i+1];i=s?Ii(d):Mi(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=kt(t,r))}return a}function Pl(t){return void 0!==t}function Ml(t,e){return 0!=(t.flags&(e?16:32))}function Nl(t,e=""){const n=ke(),r=Ae(),i=t+19,o=r.firstCreatePass?Bi(r,n[6],t,3,null,null):r.data[i],s=n[i]=Fo(e,n[11]);Qo(r,n,s,o),Ie(o,!1)}function Fl(t){return Rl("",t,""),Fl}function Rl(t,e,n){const r=ke(),i=Qa(r,t,e,n);return i!==xi&&Io(r,Ze(),i),Rl}function Ll(t,e,n,r,i){const o=ke(),s=Ja(o,t,e,n,r,i);return s!==xi&&Io(o,Ze(),s),Ll}function Vl(t,e,n,r,i,o,s){const a=ke(),c=Za(a,t,e,n,r,i,o,s);return c!==xi&&Io(a,Ze(),c),Vl}function Hl(t,e,n,r,i,o,s,a,c){const l=ke(),u=tc(l,t,e,n,r,i,o,s,a,c);return u!==xi&&Io(l,Ze(),u),Hl}function Bl(t,e,n,r,i,o,s,a,c,l,u){const h=ke(),d=ec(h,t,e,n,r,i,o,s,a,c,l,u);return d!==xi&&Io(h,Ze(),d),Bl}function Gl(t,e,n,r,i,o,s,a,c,l,u,h,d){const f=ke(),p=nc(f,t,e,n,r,i,o,s,a,c,l,u,h,d);return p!==xi&&Io(f,Ze(),p),Gl}function zl(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p){const m=ke(),g=rc(m,t,e,n,r,i,o,s,a,c,l,u,h,d,f,p);return g!==xi&&Io(m,Ze(),g),zl}function Wl(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g){const b=ke(),v=ic(b,t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g);return v!==xi&&Io(b,Ze(),v),Wl}function Ul(t){const e=ke(),n=Ya(e,t);return n!==xi&&Io(e,Ze(),n),Ul}function ql(t,e,n){Ol(Et,xl,Qa(ke(),t,e,n),!0)}function Xl(t,e,n,r,i){Ol(Et,xl,Ja(ke(),t,e,n,r,i),!0)}function $l(t,e,n,r,i,o,s){Ol(Et,xl,Za(ke(),t,e,n,r,i,o,s),!0)}function Kl(t,e,n,r,i,o,s,a,c){Ol(Et,xl,tc(ke(),t,e,n,r,i,o,s,a,c),!0)}function Yl(t,e,n,r,i,o,s,a,c,l,u){Ol(Et,xl,ec(ke(),t,e,n,r,i,o,s,a,c,l,u),!0)}function Ql(t,e,n,r,i,o,s,a,c,l,u,h,d){Ol(Et,xl,nc(ke(),t,e,n,r,i,o,s,a,c,l,u,h,d),!0)}function Jl(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p){Ol(Et,xl,rc(ke(),t,e,n,r,i,o,s,a,c,l,u,h,d,f,p),!0)}function Zl(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g){Ol(Et,xl,ic(ke(),t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g),!0)}function tu(t){Ol(Et,xl,Ya(ke(),t),!0)}function eu(t,e,n){_l(Qa(ke(),t,e,n))}function nu(t,e,n,r,i){_l(Ja(ke(),t,e,n,r,i))}function ru(t,e,n,r,i,o,s){_l(Za(ke(),t,e,n,r,i,o,s))}function iu(t,e,n,r,i,o,s,a,c){_l(tc(ke(),t,e,n,r,i,o,s,a,c))}function ou(t,e,n,r,i,o,s,a,c,l,u){_l(ec(ke(),t,e,n,r,i,o,s,a,c,l,u))}function su(t,e,n,r,i,o,s,a,c,l,u,h,d){_l(nc(ke(),t,e,n,r,i,o,s,a,c,l,u,h,d))}function au(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p){_l(rc(ke(),t,e,n,r,i,o,s,a,c,l,u,h,d,f,p))}function cu(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g){_l(ic(ke(),t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g))}function lu(t){_l(Ya(ke(),t))}function uu(t,e,n,r,i){return Cl(t,Qa(ke(),e,n,r),i,!1),uu}function hu(t,e,n,r,i,o,s){return Cl(t,Ja(ke(),e,n,r,i,o),s,!1),hu}function du(t,e,n,r,i,o,s,a,c){return Cl(t,Za(ke(),e,n,r,i,o,s,a),c,!1),du}function fu(t,e,n,r,i,o,s,a,c,l,u){return Cl(t,tc(ke(),e,n,r,i,o,s,a,c,l),u,!1),fu}function pu(t,e,n,r,i,o,s,a,c,l,u,h,d){return Cl(t,ec(ke(),e,n,r,i,o,s,a,c,l,u,h),d,!1),pu}function mu(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p){return Cl(t,nc(ke(),e,n,r,i,o,s,a,c,l,u,h,d,f),p,!1),mu}function gu(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g){return Cl(t,rc(ke(),e,n,r,i,o,s,a,c,l,u,h,d,f,p,m),g,!1),gu}function bu(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b,v){return Cl(t,ic(ke(),e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b),v,!1),bu}function vu(t,e,n){return Cl(t,Ya(ke(),e),n,!1),vu}function yu(t,e,n){const r=ke();return Ua(r,He(),e)&&eo(Ae(),en(),r,t,e,r[11],n,!0),yu}function _u(t,e,n){const r=ke();if(Ua(r,He(),e)){const i=Ae(),o=en();eo(i,o,r,t,e,Ao(o,r),n,!0)}return _u}function wu(t){ju(t);const e=Eu(t,!1);return null===e?null:(void 0===e.component&&(e.component=function(t,e){const n=e[1].data[t];return 2&n.flags?e[n.directiveStart]:null}(e.nodeIndex,e.lView)),e.component)}function Su(t){ju(t);const e=Eu(t,!1);return null===e?null:e.lView[8]}function xu(t){const e=Eu(t,!1);if(null===e)return null;let n,r=e.lView;for(;null===r[0]&&(n=Ci(r));)r=n;return 512&r[2]?null:r[8]}function Cu(t){return[...Oi(t).components]}function Ou(t){const e=Eu(t,!1);return null===e?ta.NULL:new Un(e.lView[1].data[e.nodeIndex],e.lView)}function Tu(t){const e=Eu(t);return void 0===e.directives&&(e.directives=ui(e.nodeIndex,e.lView,!1)),null===e.directives?[]:[...e.directives]}function Eu(t,e=!0){const n=ri(t);if(!n&&e)throw new Error("Invalid ng target");return n}function ku(t){return ri(t).native}function Au(t){ju(t);const e=Eu(t,!1);if(null===e)return[];const n=e.lView,r=n[7],i=n[1].cleanup,o=[];if(i&&r)for(let s=0;s<i.length;){const e=i[s++],a=i[s++];if("string"==typeof e){const c=e,l=ue(n[a]),u=r[i[s++]],h=i[s++],d="boolean"==typeof h||h>=0?"dom":"output",f="boolean"==typeof h&&h;t==l&&o.push({element:t,name:c,callback:u,useCapture:f,type:d})}}return o.sort(Du),o}function Du(t,e){return t.name==e.name?0:t.name<e.name?-1:1}function ju(t){if("undefined"!=typeof Element&&!(t instanceof Element))throw new Error("Expecting instance of DOM Element")}function Iu(t){mc(t),Cu(t).forEach(t=>pc(t))}let Pu=!1;function Mu(){Pu||(Pu=!0,Nu("getComponent",wu),Nu("getContext",Su),Nu("getListeners",Au),Nu("getOwningComponent",xu),Nu("getHostElement",ku),Nu("getInjector",Ou),Nu("getRootComponents",Cu),Nu("getDirectives",Tu),Nu("applyChanges",Iu))}function Nu(t,e){if("undefined"==typeof COMPILED||!COMPILED){const n=q;if(n){let r=n.ng;r||(r=n.ng={}),r[t]=e}}}function Fu(t,e={}){const n=e.rendererFactory||le,r=e.sanitizer||null,i=Xt(t);i.type!=t&&(i.type=t);const o=i.selectors[0][0],s=Ji(n.createRenderer(null,null),e.host||o,i.encapsulation),a=i.onPush?576:528,c=Vu(e.scheduler,e.playerHandler),l=n.createRenderer(s,i),u=Qi(0,-1,null,1,0,null,null,null,null,null),h=Hi(null,u,c,a,null,null,n,l,void 0,e.injector||null);let d;qe(h,null);try{n.begin&&n.begin(),d=Lu(Ru(s,i,h,n,l,r),i,h,c,e.hostFeatures||null),zi(u,h,null),Wi(u,h,null,null)}finally{Qe(),n.end&&n.end()}return d}function Ru(t,e,n,r,i,o){const s=n[1];n[19]=t;const a=Bi(s,null,0,3,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Na(a,c),null!==t&&(fn(i,t,c),null!==a.classes&&os(i,t,a.classes),null!==a.styles&&is(i,t,a.styles)));const l=r.createRenderer(t,e),u=Hi(n,Yi(e),null,e.onPush?64:16,n[19],a,r,l,o);return s.firstCreatePass&&(Fn(In(a,n),s,e.type),ao(s,a),lo(a,n.length,1)),_o(n,u),n[19]=u}function Lu(t,e,n,r,i){const o=n[1],s=function(t,e,n){const r=je();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),so(t,r,1),uo(t,e,n));const i=Gn(e,t,e.length-1,r);si(i,e);const o=de(r,e);return o&&si(o,e),i}(o,n,e);r.components.push(s),t[8]=s,i&&i.forEach(t=>t(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=je();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){tn(a.index-19);const t=n[1];ro(t,e),io(t,n,e.hostVars),oo(e,s)}return s}function Vu(t,e){return{components:[],scheduler:t||Cn,clean:To,playerHandler:e||null,flags:0}}function Hu(t,e){const n=ve(t)[1],r=n.data.length-1;sn(n,{directiveStart:r,directiveEnd:r+1})}function Bu(t){return Oi(t).clean}function Gu(t){return Object.getPrototypeOf(t.prototype).constructor}function zu(t){let e=Gu(t.type),n=!0;const r=[t];for(;e;){let i=void 0;if(re(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=Wu(t.inputs),e.declaredInputs=Wu(t.declaredInputs),e.outputs=Wu(t.outputs);const n=i.hostBindings;n&&Xu(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&Uu(t,o),s&&qu(t,s),C(t.inputs,i.inputs),C(t.declaredInputs,i.declaredInputs),C(t.outputs,i.outputs),re(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}e.afterContentChecked=e.afterContentChecked||i.afterContentChecked,e.afterContentInit=t.afterContentInit||i.afterContentInit,e.afterViewChecked=t.afterViewChecked||i.afterViewChecked,e.afterViewInit=t.afterViewInit||i.afterViewInit,e.doCheck=t.doCheck||i.doCheck,e.onDestroy=t.onDestroy||i.onDestroy,e.onInit=t.onInit||i.onInit}const e=i.features;if(e)for(let r=0;r<e.length;r++){const i=e[r];i&&i.ngInherit&&i(t),i===zu&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=gn(i.hostAttrs,n=gn(n,i.hostAttrs))}}(r)}function Wu(t){return t===Mt?{}:t===Nt?[]:t}function Uu(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function qu(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function Xu(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}const $u=["providersResolver"],Ku=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Yu(t){let e=Gu(t.type),n=void 0;n=re(t)?e.\u0275cmp:e.\u0275dir;const r=t;for(const i of $u)r[i]=n[i];if(re(n))for(const i of Ku)r[i]=n[i]}class Qu{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ju(t){t.type.prototype.ngOnChanges&&(t.setInput=Zu,t.onChanges=function(){const t=th(this),e=t&&t.current;if(e){const n=t.previous;if(n===Mt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Zu(t,e,n,r){const i=th(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:Mt,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],c=s[a];o[a]=new Qu(c&&c.currentValue,e,s===Mt),t[r]=e}function th(t){return t.__ngSimpleChanges__||null}function eh(t,e,n,r,i){if(t=H(t),Array.isArray(t))for(let o=0;o<t.length;o++)eh(t[o],e,n,r,i);else{const o=Ae(),s=ke();let a=Qs(t)?t:H(t.provide),c=$s(t);const l=je(),u=65535&l.providerIndexes,h=l.directiveStart,d=l.providerIndexes>>16;if(Qs(t)||!t.multi){const r=new dn(c,i,Sc),f=ih(a,e,i?u:u+d,h);-1===f?(Fn(In(l,s),o,a),nh(o,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(r),s.push(r)):(n[f]=r,s[f]=r)}else{const f=ih(a,e,u+d,h),p=ih(a,e,u,u+d),m=f>=0&&n[f],g=p>=0&&n[p];if(i&&!g||!i&&!m){Fn(In(l,s),o,a);const u=function(t,e,n,r,i){const o=new dn(t,n,Sc);return o.multi=[],o.index=e,o.componentProviders=0,rh(o,i,r&&!n),o}(i?sh:oh,n.length,i,r,c);!i&&g&&(n[p].providerFactory=u),nh(o,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(u),s.push(u)}else nh(o,t,f>-1?f:p),rh(n[i?p:f],c,!i&&r);!i&&r&&g&&n[p].componentProviders++}}}function nh(t,e,n){if(Qs(e)||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;r&&(t.destroyHooks||(t.destroyHooks=[])).push(n,r)}}function rh(t,e,n){t.multi.push(e),n&&t.componentProviders++}function ih(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function oh(t,e,n,r){return ah(this.multi,[])}function sh(t,e,n,r){const i=this.multi;let o;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Gn(n,n[1],this.providerFactory.index,r);o=e.slice(0,t),ah(i,o);for(let n=t;n<e.length;n++)o.push(e[n])}else o=[],ah(i,o);return o}function ah(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function ch(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=Ae();if(r.firstCreatePass){const i=re(t);eh(n,r.data,r.blueprint,i,!0),eh(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}Ju.ngInherit=!0;class lh{}class uh{}function hh(t){const e=Error(`No component factory found for ${F(t)}. Did you add it to @NgModule.entryComponents?`);return e[dh]=t,e}const dh="ngComponent";class fh{resolveComponentFactory(t){throw hh(t)}}let ph=(()=>{class t{}return t.NULL=new fh,t})();class mh{constructor(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(let r=0;r<t.length;r++){const e=t[r];this._factories.set(e.componentType,e)}}resolveComponentFactory(t){let e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw hh(t);return new gh(e,this._ngModule)}}class gh extends uh{constructor(t,e){super(),this.factory=t,this.ngModule=e,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)}}let bh=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>yh(t),t})();const vh=function(t){return hs(t,je(),ke())},yh=vh;class _h{}const wh=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let Sh=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ch(),t})();const xh=function(){const t=ke(),e=ge(je().index,t);return function(t){const e=t[11];if(ce(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Jt(e)?e:t)},Ch=xh;let Oh=(()=>{class t{}return t.\u0275prov=O({token:t,providedIn:"root",factory:()=>null}),t})();class Th{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Eh=new Th("9.1.0");class kh{constructor(){}supports(t){return Ba(t)}create(t){return new Dh(t)}}const Ah=(t,e)=>e;class Dh{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ah}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,i=null;for(;e||n;){const o=!n||e&&e.currentIndex<Mh(n,r,i)?e:n,s=Mh(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<i.length?i[n]:i[n]=0,o=r+n;e<=o&&o<t&&(i[n]=r+1)}i[o.previousIndex]=e-t}}s!==a&&t(o,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ba(t))throw new Error(`Error trying to diff '${F(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,i=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==i&&La(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,n,r,e)),La(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,e),o=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Ra()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==i&&La(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),La(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(La(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(La(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new jh(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ph),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ph),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class jh{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Ih{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&La(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ph{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ih,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Mh(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class Nh{constructor(){}supports(t){return t instanceof Map||Ga(t)}create(){return new Fh}}class Fh{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Ga(t)))throw new Error(`Error trying to diff '${F(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Rh(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){La(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Rh{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Lh=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new y,new b]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=O({token:t,providedIn:"root",factory:()=>new t([new kh])}),t})(),Vh=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new y,new b]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=O({token:t,providedIn:"root",factory:()=>new t([new Nh])}),t})();const Hh=[new Nh],Bh=new Lh([new kh]),Gh=new Vh(Hh);let zh=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Uh(t,bh),t})();const Wh=function(t,e){return ds(t,e,je(),ke())},Uh=Wh;let qh=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>$h(t,bh),t})();const Xh=function(t,e){return fs(t,e,je(),ke())},$h=Xh;function Kh(t,e,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${e}'. Current value: '${n}'.`;return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){const n=new Error(t);return Yh(n,e),n}(i,t)}function Yh(t,e){t.ngDebugContext=e,t.ngErrorLogger=e.logError.bind(e)}function Qh(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Jh(t,e,n){const r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function Zh(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function td(t,e){return t.nodes[e]}function ed(t,e){return t.nodes[e]}function nd(t,e){return t.nodes[e]}function rd(t,e){return t.nodes[e]}function id(t,e){return t.nodes[e]}class od{}const sd={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},ad=()=>{},cd=new Map;function ld(t){let e=cd.get(t);return e||(e=F(t)+"_"+cd.size,cd.set(t,e)),e}function ud(t,e,n,r){if(Ha.isWrapped(r)){r=Ha.unwrap(r);const i=t.def.nodes[e].bindingIndex+n,o=Ha.unwrap(t.oldValues[i]);t.oldValues[i]=new Ha(o)}return r}function hd(t){return{id:"$$undefined",styles:t.styles,encapsulation:t.encapsulation,data:t.data}}let dd=0;function fd(t,e,n,r){return!(!(2&t.state)&&La(t.oldValues[e.bindingIndex+n],r))}function pd(t,e,n,r){return!!fd(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function md(t,e,n,r){const i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Va(i,r)){const o=e.bindings[n].name;throw Kh(sd.createDebugContext(t,e.nodeIndex),`${o}: ${i}`,`${o}: ${r}`,0!=(1&t.state))}}function gd(t){let e=t;for(;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function bd(t,e){let n=t;for(;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function vd(t,e,n,r){try{return gd(33554432&t.def.nodes[e].flags?ed(t,e).componentView:t),sd.handleEvent(t,e,n,r)}catch(i){t.root.errorHandler.handleError(i)}}function yd(t){return t.parent?ed(t.parent,t.parentNodeDef.nodeIndex):null}function _d(t){return t.parent?t.parentNodeDef.parent:null}function wd(t,e){switch(201347067&e.flags){case 1:return ed(t,e.nodeIndex).renderElement;case 2:return td(t,e.nodeIndex).renderText}}function Sd(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function xd(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Cd(t){return 1<<t%32}function Od(t){const e={};let n=0;const r={};return t&&t.forEach(([t,i])=>{"number"==typeof t?(e[t]=i,n|=Cd(t)):r[t]=i}),{matchedQueries:e,references:r,matchedQueryIds:n}}function Td(t,e){return t.map(t=>{let n,r;return Array.isArray(t)?[r,n]=t:(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,"__source",{value:e,configurable:!0}),{flags:r,token:n,tokenKey:ld(n)}})}function Ed(t,e,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Pt.Native?ed(t,n.renderParent.nodeIndex).renderElement:void 0:e}const kd=new WeakMap;function Ad(t){let e=kd.get(t);return e||(e=t(()=>ad),e.factory=t,kd.set(t,e)),e}function Dd(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(wd(t,t.def.lastRenderRootNode))),jd(t,e,0,t.def.nodes.length-1,n,r,i)}function jd(t,e,n,r,i,o,s){for(let a=n;a<=r;a++){const n=t.def.nodes[a];11&n.flags&&Pd(t,n,e,i,o,s),a+=n.childCount}}function Id(t,e,n,r,i,o){let s=t;for(;s&&!Sd(s);)s=s.parent;const a=s.parent,c=_d(s),l=c.nodeIndex+c.childCount;for(let u=c.nodeIndex+1;u<=l;u++){const t=a.def.nodes[u];t.ngContentIndex===e&&Pd(a,t,n,r,i,o),u+=t.childCount}if(!a.parent){const s=t.root.projectableNodes[e];if(s)for(let e=0;e<s.length;e++)Md(t,s[e],n,r,i,o)}}function Pd(t,e,n,r,i,o){if(8&e.flags)Id(t,e.ngContent.index,n,r,i,o);else{const s=wd(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Md(t,s,n,r,i,o),32&e.bindingFlags&&Md(ed(t,e.nodeIndex).componentView,s,n,r,i,o)):Md(t,s,n,r,i,o),16777216&e.flags){const s=ed(t,e.nodeIndex).viewContainer._embeddedViews;for(let t=0;t<s.length;t++)Dd(s[t],n,r,i,o)}1&e.flags&&!e.element.name&&jd(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function Md(t,e,n,r,i,o){const s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}const Nd=/^:([^:]+):(.+)$/;function Fd(t){if(":"===t[0]){const e=t.match(Nd);return[e[1],e[2]]}return["",t]}function Rd(t){let e=0;for(let n=0;n<t.length;n++)e|=t[n].flags;return e}function Ld(t,e){let n="";for(let r=0;r<2*t;r+=2)n=n+e[r]+Hd(e[r+1]);return n+e[2*t]}function Vd(t,e,n,r,i,o,s,a,c,l,u,h,d,f,p,m,g,b,v,y){switch(t){case 1:return e+Hd(n)+r;case 2:return e+Hd(n)+r+Hd(i)+o;case 3:return e+Hd(n)+r+Hd(i)+o+Hd(s)+a;case 4:return e+Hd(n)+r+Hd(i)+o+Hd(s)+a+Hd(c)+l;case 5:return e+Hd(n)+r+Hd(i)+o+Hd(s)+a+Hd(c)+l+Hd(u)+h;case 6:return e+Hd(n)+r+Hd(i)+o+Hd(s)+a+Hd(c)+l+Hd(u)+h+Hd(d)+f;case 7:return e+Hd(n)+r+Hd(i)+o+Hd(s)+a+Hd(c)+l+Hd(u)+h+Hd(d)+f+Hd(p)+m;case 8:return e+Hd(n)+r+Hd(i)+o+Hd(s)+a+Hd(c)+l+Hd(u)+h+Hd(d)+f+Hd(p)+m+Hd(g)+b;case 9:return e+Hd(n)+r+Hd(i)+o+Hd(s)+a+Hd(c)+l+Hd(u)+h+Hd(d)+f+Hd(p)+m+Hd(g)+b+Hd(v)+y;default:throw new Error("Does not support more than 9 expressions")}}function Hd(t){return null!=t?t.toString():""}const Bd=[],Gd={},zd={},Wd=ld(ta),Ud=ld(rt),qd=ld(yt);function Xd(t,e,n,r){return n=H(n),{index:-1,deps:Td(r,F(e)),flags:t,token:e,value:n}}function $d(t){const e={},n=[];let r=null;for(let i=0;i<t.length;i++){const o=t[i];o.token===Ls&&(r=o.value),1073741824&o.flags&&n.push(o.token),o.index=i,e[ld(o.token)]=o}return{factory:null,providersByKey:e,providers:t,modules:n,scope:r}}function Kd(t,e,n=ta.THROW_IF_NOT_FOUND){const r=lt(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);const i=e.tokenKey;switch(i){case Wd:case Ud:case qd:return t}const o=t._def.providersByKey[i];let s;if(o){let e=t._providers[o.index];return void 0===e&&(e=t._providers[o.index]=Yd(t,o)),e===zd?void 0:e}if((s=k(e.token))&&function(t,e){const n=e.providedIn;return null!=n&&("any"===n||n===t._def.scope||function(t,e){return t._def.modules.indexOf(e)>-1}(t,n))}(t,s)){const n=t._providers.length;return t._def.providers[n]=t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:n,token:e.token},t._providers[n]=zd,t._providers[n]=Yd(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{lt(r)}}function Yd(t,e){let n;switch(201347067&e.flags){case 512:n=function(t,e,n){const r=n.length;switch(r){case 0:return new e;case 1:return new e(Kd(t,n[0]));case 2:return new e(Kd(t,n[0]),Kd(t,n[1]));case 3:return new e(Kd(t,n[0]),Kd(t,n[1]),Kd(t,n[2]));default:const i=[];for(let e=0;e<r;e++)i[e]=Kd(t,n[e]);return new e(...i)}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){const r=n.length;switch(r){case 0:return e();case 1:return e(Kd(t,n[0]));case 2:return e(Kd(t,n[0]),Kd(t,n[1]));case 3:return e(Kd(t,n[0]),Kd(t,n[1]),Kd(t,n[2]));default:const i=[];for(let e=0;e<r;e++)i[e]=Kd(t,n[e]);return e(...i)}}(t,e.value,e.deps);break;case 2048:n=Kd(t,e.deps[0]);break;case 256:n=e.value}return n===zd||null===n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?zd:n}function Qd(t,e){const n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;const r=n[e];return r.viewContainerParent=null,Ot(n,e),sd.dirtyParentQueries(r),Zd(r),r}function Jd(t,e,n){const r=e?wd(e,e.def.lastRenderRootNode):t.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);Dd(n,2,i,o,void 0)}function Zd(t){Dd(t,3,null,null,void 0)}const tf={};function ef(t,e,n,r,i,o){return new rf(t,e,n,r,i,o)}function nf(t){return t.viewDefFactory}class rf extends uh{constructor(t,e,n,r,i,o){super(),this.selector=t,this.componentType=e,this._inputs=r,this._outputs=i,this.ngContentSelectors=o,this.viewDefFactory=n}get inputs(){const t=[],e=this._inputs;for(let n in e)t.push({propName:n,templateName:e[n]});return t}get outputs(){const t=[];for(let e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t}create(t,e,n,r){if(!r)throw new Error("ngModule should be provided");const i=Ad(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=sd.createRootView(t,e||[],n,i,r,tf),a=nd(s,o).instance;return n&&s.renderer.setAttribute(ed(s,0).renderElement,"ng-version",Eh.full),new of(s,new lf(s),a)}}class of extends lh{constructor(t,e,n){super(),this._view=t,this._viewRef=e,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=e,this.changeDetectorRef=e,this.instance=n}get location(){return new bh(ed(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new ff(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function sf(t,e,n){return new af(t,e,n)}class af{constructor(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}get element(){return new bh(this._data.renderElement)}get injector(){return new ff(this._view,this._elDef)}get parentInjector(){let t=this._view,e=this._elDef.parent;for(;!e&&t;)e=_d(t),t=t.parent;return t?new ff(t,e):new ff(this._view,null)}clear(){for(let t=this._embeddedViews.length-1;t>=0;t--){const e=Qd(this._data,t);sd.destroyView(e)}}get(t){const e=this._embeddedViews[t];if(e){const t=new lf(e);return t.attachToViewContainerRef(this),t}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;i||t instanceof gh||(i=o.get(yt));const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=t;return function(t,e,n,r){let i=e.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=t,Ct(i,n,r),function(t,e){const n=yd(e);if(!n||n===t||16&e.state)return;e.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;let n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,r),sd.dirtyParentQueries(r),Jd(e,n>0?i[n-1]:null,r)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(t._view);return function(t,e,n){const r=t.viewContainer._embeddedViews,i=r[e];Ot(r,e),null==n&&(n=r.length),Ct(r,n,i),sd.dirtyParentQueries(i),Zd(i),Jd(t,n>0?r[n-1]:null,i)}(this._data,n,e),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const e=Qd(this._data,t);e&&sd.destroyView(e)}detach(t){const e=Qd(this._data,t);return e?new lf(e):null}}function cf(t){return new lf(t)}class lf{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(t){const e=[];return Dd(t,0,void 0,void 0,e),e}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){gd(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{sd.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){sd.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),sd.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Zd(this._view),sd.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function uf(t,e){return new hf(t,e)}class hf extends zh{constructor(t,e){super(),this._parentView=t,this._def=e}createEmbeddedView(t){return new lf(sd.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new bh(ed(this._parentView,this._def.nodeIndex).renderElement)}}function df(t,e){return new ff(t,e)}class ff{constructor(t,e){this.view=t,this.elDef=e}get(t,e=ta.THROW_IF_NOT_FOUND){return sd.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:ld(t)},e)}}function pf(t,e){const n=t.def.nodes[e];if(1&n.flags){const e=ed(t,n.nodeIndex);return n.element.template?e.template:e.renderElement}if(2&n.flags)return td(t,n.nodeIndex).renderText;if(20240&n.flags)return nd(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function mf(t,e,n,r){return new gf(t,e,n,r)}class gf{constructor(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){const e=t._def,n=t._providers=Tt(e.providers.length);for(let r=0;r<e.providers.length;r++){const i=e.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Yd(t,i))}}(this)}get(t,e=ta.THROW_IF_NOT_FOUND,n=S.Default){let r=0;return n&S.SkipSelf?r|=1:n&S.Self&&(r|=4),Kd(this,{token:t,tokenKey:ld(t),flags:r},e)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(ph)}destroy(){if(this._destroyed)throw new Error(`The ng module ${F(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(t,e){const n=t._def,r=new Set;for(let i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){const e=t._providers[i];if(e&&e!==zd){const t=e.ngOnDestroy;"function"!=typeof t||r.has(e)||(t.apply(e),r.add(e))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const bf=ld(Sh),vf=ld(bh),yf=ld(qh),_f=ld(zh),wf=ld(ms),Sf=ld(ta),xf=ld(rt);function Cf(t,e,n,r,i,o,s,a){const c=[];if(s)for(let u in s){const[t,e]=s[u];c[t]={flags:8,name:u,nonMinifiedName:e,ns:null,securityContext:null,suffix:null}}const l=[];if(a)for(let u in a)l.push({type:1,propName:u,target:null,eventName:a[u]});return Ef(t,e|=16384,n,r,i,i,o,c,l)}function Of(t,e,n){return Ef(-1,t|=16,null,0,e,e,n)}function Tf(t,e,n,r,i){return Ef(-1,t,e,0,n,r,i)}function Ef(t,e,n,r,i,o,s,a,c){const{matchedQueries:l,references:u,matchedQueryIds:h}=Od(n);c||(c=[]),a||(a=[]),o=H(o);const d=Td(s,F(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:h,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Rd(a),outputs:c,element:null,provider:{token:i,value:o,deps:d},text:null,query:null,ngContent:null}}function kf(t,e){return If(t,e)}function Af(t,e){let n=t;for(;n.parent&&!Sd(n);)n=n.parent;return Pf(n.parent,_d(n),!0,e.provider.value,e.provider.deps)}function Df(t,e){const n=Pf(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(let r=0;r<e.outputs.length;r++){const i=e.outputs[r],o=n[i.propName];if(!Rc(o))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=o.subscribe(jf(t,e.parent.nodeIndex,i.eventName));t.disposables[e.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function jf(t,e,n){return r=>vd(t,e,n,r)}function If(t,e){const n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return Pf(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,i){const o=i.length;switch(o){case 0:return r();case 1:return r(Nf(t,e,n,i[0]));case 2:return r(Nf(t,e,n,i[0]),Nf(t,e,n,i[1]));case 3:return r(Nf(t,e,n,i[0]),Nf(t,e,n,i[1]),Nf(t,e,n,i[2]));default:const s=[];for(let r=0;r<o;r++)s.push(Nf(t,e,n,i[r]));return r(...s)}}(t,e.parent,n,r.value,r.deps);case 2048:return Nf(t,e.parent,n,r.deps[0]);case 256:return r.value}}function Pf(t,e,n,r,i){const o=i.length;switch(o){case 0:return new r;case 1:return new r(Nf(t,e,n,i[0]));case 2:return new r(Nf(t,e,n,i[0]),Nf(t,e,n,i[1]));case 3:return new r(Nf(t,e,n,i[0]),Nf(t,e,n,i[1]),Nf(t,e,n,i[2]));default:const s=[];for(let r=0;r<o;r++)s.push(Nf(t,e,n,i[r]));return new r(...s)}}const Mf={};function Nf(t,e,n,r,i=ta.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const o=t;2&r.flags&&(i=null);const s=r.tokenKey;s===wf&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);let a=t;for(;a;){if(e)switch(s){case bf:return Ff(a,e,n).renderer;case vf:return new bh(ed(a,e.nodeIndex).renderElement);case yf:return ed(a,e.nodeIndex).viewContainer;case _f:if(e.element.template)return ed(a,e.nodeIndex).template;break;case wf:return cf(Ff(a,e,n));case Sf:case xf:return df(a,e);default:const t=(n?e.element.allProviders:e.element.publicProviders)[s];if(t){let e=nd(a,t.nodeIndex);return e||(e={instance:If(a,t)},a.nodes[t.nodeIndex]=e),e.instance}}n=Sd(a),e=_d(a),a=a.parent,4&r.flags&&(a=null)}const c=o.root.injector.get(r.token,Mf);return c!==Mf||i===Mf?c:o.root.ngModule.injector.get(r.token,i)}function Ff(t,e,n){let r;if(n)r=ed(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!Sd(r);)r=r.parent;return r}function Rf(t,e,n,r,i,o){if(32768&n.flags){const e=ed(t,n.parent.nodeIndex).componentView;2&e.def.flags&&(e.state|=8)}if(e.instance[n.bindings[r].name]=i,524288&n.flags){o=o||{};const e=Ha.unwrap(t.oldValues[n.bindingIndex+r]);o[n.bindings[r].nonMinifiedName]=new Qu(e,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function Lf(t,e){if(!(t.def.nodeFlags&e))return;const n=t.def.nodes;let r=0;for(let i=0;i<n.length;i++){const o=n[i];let s=o.parent;for(!s&&o.flags&e&&Hf(t,i,o.flags&e,r++),0==(o.childFlags&e)&&(i+=o.childCount);s&&1&s.flags&&i===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=Vf(t,s,e,r)),s=s.parent}}function Vf(t,e,n,r){for(let i=e.nodeIndex+1;i<=e.nodeIndex+e.childCount;i++){const e=t.def.nodes[i];e.flags&n&&Hf(t,i,e.flags&n,r++),i+=e.childCount}return r}function Hf(t,e,n,r){const i=nd(t,e);if(!i)return;const o=i.instance;o&&(sd.setCurrentNode(t,e),1048576&n&&Zh(t,512,r)&&o.ngAfterContentInit(),2097152&n&&o.ngAfterContentChecked(),4194304&n&&Zh(t,768,r)&&o.ngAfterViewInit(),8388608&n&&o.ngAfterViewChecked(),131072&n&&o.ngOnDestroy())}class Bf extends ph{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Xt(t);return new Wf(e,this.ngModule)}}function Gf(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const zf=new nt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Cn});class Wf extends uh{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Si).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Gf(this.componentDef.inputs)}get outputs(){return Gf(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,Mf,i);return o!==Mf||r===Mf?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(_h,le),s=i.get(Oh,null),a=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?Ji(a,n,this.componentDef.encapsulation):Vi(c,o.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d=Vu(),f=Qi(0,-1,null,1,0,null,null,null,null,null),p=Hi(null,f,d,u,null,null,o,a,s,i);let m,g;qe(p,null);try{const t=Ru(l,this.componentDef,p,o,a);if(l)if(n)fn(a,l,["ng-version",Eh.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!bi(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&fn(a,l,t),e&&e.length>0&&os(a,l,e.join(" "))}g=pe(p[1],0),e&&(g.projection=e.map(t=>Array.from(t))),m=Lu(t,this.componentDef,p,d,[Hu]),zi(f,p,null)}finally{Qe()}const b=new Uf(this.componentType,m,hs(bh,g,p),p,g);return n&&!h||(b.hostView._tViewNode.child=g),b}}class Uf extends lh{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new as(r),this.hostView._tViewNode=Gi(r[1],null,-1,r),this.componentType=t}get injector(){return new Un(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const qf=void 0;var Xf=["en",[["a","p"],["AM","PM"],qf],[["AM","PM"],qf,qf],[["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"]],qf,[["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"]],qf,[["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}",qf,"{1} 'at' {0}",qf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let $f={};function Kf(t,e,n){"string"!=typeof e&&(n=e,e=t[ep.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),$f[e]=t,n&&($f[e][ep.ExtraData]=n)}function Yf(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Zf(e);if(n)return n;const r=e.split("-")[0];if(n=Zf(r),n)return n;if("en"===r)return Xf;throw new Error(`Missing locale data for the locale "${t}".`)}function Qf(t){return Yf(t)[ep.CurrencyCode]||null}function Jf(t){return Yf(t)[ep.PluralCase]}function Zf(t){return t in $f||($f[t]=q.ng&&q.ng.common&&q.ng.common.locales&&q.ng.common.locales[t]),$f[t]}function tp(){$f={}}const ep=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}(),np="en-US",rp="USD",ip=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,op=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,sp=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,ap=/\ufffd(\d+):?\d*\ufffd/gi,cp=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,lp=/\[(\ufffd.+?\ufffd?)\]/,up=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,hp=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,dp=/{([A-Z0-9_]+)}/g,fp=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,pp=/\/\*/,mp=/\d+\:(\d+)/;function gp(t){if(!t)return[];let e=0;const n=[],r=[],i=/[{}]/g;let o;for(i.lastIndex=0;o=i.exec(t);){const i=o.index;if("}"==o[0]){if(n.pop(),0==n.length){const n=t.substring(e,i);ip.test(n)?r.push(bp(n)):r.push(n),e=i+1}}else{if(0==n.length){const n=t.substring(e,i);r.push(n),e=i+1}n.push("{")}}const s=t.substring(e);return r.push(s),r}function bp(t){const e=[],n=[];let r=1,i=0;const o=gp(t=t.replace(ip,(function(t,e,n){return r="select"===n?0:1,i=parseInt(e.substr(1),10),""})));for(let s=0;s<o.length;){let t=o[s++].trim();1===r&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const i=gp(o[s++]);e.length>n.length&&n.push(i)}return{type:r,mainBinding:i,cases:e,values:n}}function vp(t){let e,n,r="",i=0,o=!1;for(;null!==(e=op.exec(t));)o?e[0]===`\ufffd/*${n}\ufffd`&&(i=e.index,o=!1):(r+=t.substring(i,e.index+e[0].length),n=e[1],o=!0);return r+=t.substr(i),r}function yp(t,e,n,r=null){const i=[null,null],o=t.split(ap);let s=0;for(let a=0;a<o.length;a++){const t=o[a];if(1&a){const e=parseInt(t,10);i.push(-1-e),s|=xp(e)}else""!==t&&i.push(t)}return i.push(e<<2|(n?1:0)),n&&i.push(n,r),i[0]=s,i[1]=i.length-2,i}function _p(t,e=0){let n;e|=xp(t.mainBinding);for(let r=0;r<t.values.length;r++){const i=t.values[r];for(let t=0;t<i.length;t++){const r=i[t];if("string"==typeof r)for(;n=ap.exec(r);)e|=xp(parseInt(n[1],10));else e=_p(r,e)}}return e}const wp=[];let Sp=-1;function xp(t){return 1<<Math.min(t,31)}const Cp=[];function Op(t,e,n){const r=Ae();wp[++Sp]=t,Xc(!0),r.firstCreatePass&&null===r.data[t+19]&&function(t,e,n,r,i){const o=e.blueprint.length-19;Tp=0;const s=je(),a=Pe()?s:s&&s.parent;let c=a&&a!==t[6]?a.index-19:n,l=0;Cp[l]=c;const u=[];if(n>0&&s!==a){let t=s.index-19;Pe()||(t=~t),u.push(t<<3|0)}const h=[],d=[],f=function(t,e){if("number"!=typeof e)return vp(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,r=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return vp(t.substring(n,r))}}(r,i),p=(m=f,m.replace(zp," ")).split(sp);var m;for(let g=0;g<p.length;g++){let t=p[g];if(1&g)if("/"===t.charAt(0)){if("#"===t.charAt(1)){const e=parseInt(t.substr(2),10);c=Cp[--l],u.push(e<<3|5)}}else{const e=parseInt(t.substr(1),10),n="#"===t.charAt(0);u.push((n?e:~e)<<3|0,c<<17|1),n&&(Cp[++l]=c=e)}else{const e=gp(t);for(let t=0;t<e.length;t++)if(1&t){const n=e[t];if("object"!=typeof n)throw new Error(`Unable to parse ICU expression in "${f}" message.`);const r=o+Tp++;u.push(Di,"",r,c<<17|1);const i=_p(n);Hp(d,n,r,r);const s=d.length-1;h.push(xp(n.mainBinding),3,-1-n.mainBinding,r<<2|2,s,i,2,r<<2|3,s)}else if(""!==e[t]){const n=e[t],r=n.match(ap),i=o+Tp++;u.push(r?"":n,i,c<<17|1),r&&wt(yp(n,i),h)}}}Tp>0&&function(t,e,n){if(n>0&&t.firstCreatePass){for(let r=0;r<n;r++)t.blueprint.push(null),t.data.push(null),e.push(null);t.expandoInstructions?t.expandoInstructions.push(n):t.expandoStartIndex+=n}}(e,t,Tp),e.data[n+19]={vars:Tp,create:u,update:h,icus:d.length?d:null}}(ke(),r,t,e,n)}let Tp;function Ep(t,e,n,r,i){const o=e.next;r||(r=n),r===n&&e!==n.child?(e.next=n.child,n.child=e):r!==n&&e!==r.next?(e.next=r.next,r.next=e):e.next=null,n!==i[6]&&(e.parent=n);let s=e.next;for(;s;)s.next===e&&(s.next=o),s=s.next;if(1===e.type)return ns(t,i,e),e;Qo(t,i,de(e,i),e);const a=i[e.index];return 0!==e.type&&Zt(a)&&Qo(t,i,a[7],e),e}function kp(t,e={}){let n=t;if(lp.test(t)){const t={},e=[0];n=n.replace(up,(n,r,i)=>{const o=r||i,s=t[o]||[];if(s.length||(o.split("|").forEach(t=>{const e=t.match(mp),n=e?parseInt(e[1],10):0,r=pp.test(t);s.push([n,r,t])}),t[o]=s),!s.length)throw new Error("i18n postprocess: unmatched placeholder - "+o);const a=e[e.length-1];let c=0;for(let t=0;t<s.length;t++)if(s[t][0]===a){c=t;break}const[l,u,h]=s[c];return u?e.pop():a!==l&&e.push(l),s.splice(c,1),h})}return Object.keys(e).length?(n=n.replace(hp,(t,n,r,i,o,s)=>e.hasOwnProperty(r)?`${n}${e[r]}${s}`:t),n=n.replace(dp,(t,n)=>e.hasOwnProperty(n)?e[n]:t),n=n.replace(fp,(t,n)=>{if(e.hasOwnProperty(n)){const r=e[n];if(!r.length)throw new Error(`i18n postprocess: unmatched ICU - ${t} with key: ${n}`);return r.shift()}return t}),n):n}function Ap(){const t=ke();!function(t,e){const n=wp[Sp--],r=t.data[n+19],i=je(),o=jp(n,r.create,t,e);let s=n+1;for(;s<=i.index-19;){-1===o.indexOf(s)&&Ip(t,e,s,!0);const n=pe(t,s);!n||0!==n.type&&3!==n.type&&4!==n.type||null===n.localNames||(s+=n.localNames.length>>1),s++}}(Ae(),t),Xc(!1)}function Dp(t,e,n,r,i,o){const s=je();e[n+19]=i;const a=Bi(t,e[6],n,r,o,null);return s&&s.next===a&&(s.next=null),a}function jp(t,e,n,r){const i=r[11];let o=null,s=null;const a=[];for(let c=0;c<e.length;c++){const l=e[c];if("string"==typeof l){const t=Fo(l,i),u=e[++c];s=o,o=Dp(n,r,u,3,t,null),a.push(u),Me()}else if("number"==typeof l)switch(7&l){case 1:const i=l>>>17;let u;u=i===t?r[6]:pe(n,i),s=Ep(n,o,u,s,r);break;case 0:const h=l>=0,d=(h?l:~l)>>>3;a.push(d),s=o,o=pe(n,d),o&&Ie(o,h);break;case 5:s=o=pe(n,l>>>3),Ie(o,!1);break;case 4:const f=e[++c],p=e[++c];fo(pe(n,l>>>3),r,f,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case Di:const t=e[++c],u=e[++c],h=i.createComment(t);s=o,o=Dp(n,r,u,5,h,null),a.push(u),si(h,r),o.activeCaseIndex=null,Me();break;case Ai:const d=e[++c],f=e[++c];s=o,o=Dp(n,r,f,3,i.createElement(d),d),a.push(f);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}}return Me(),a}function Ip(t,e,n,r){const i=pe(t,n),o=he(n,e);o&&Zo(e[11],o);const s=me(e,n);if(Zt(s)){const t=s;0!==i.type&&Zo(e[11],t[7])}r&&(i.flags|=64)}function Pp(t,e,n){Op(t,e,n),Ap()}function Mp(t,e){!function(t,e,n,r){const i=je().index-19,o=[];for(let s=0;s<r.length;s+=2){const a=r[s],c=r[s+1].split(cp);for(let r=0;r<c.length;r++){const s=c[r];if(1&r)throw new Error("ICU expressions are not yet supported in attributes");if(""!==s)if(s.match(ap))e.firstCreatePass&&null===e.data[n+19]&&wt(yp(s,i,a),o);else{const n=pe(e,i);3===n.type&&fo(n,t,a,s,null,null);const r=null!==n.inputs&&n.inputs[a];r&&jo(e,t,r,a,s)}}}e.firstCreatePass&&null===e.data[n+19]&&(e.data[n+19]=o)}(ke(),Ae(),t,e)}let Np=0,Fp=0;function Rp(t){return Ua(ke(),He(),t)&&(Np|=1<<Fp),Fp++,Rp}function Lp(t){if(Fp){const e=Ae(),n=e.data[t+19];let r,i=null;Array.isArray(n)?r=n:(r=n.update,i=n.icus);const o=Le()-Fp-1,s=ke();!function t(e,n,r,i,o,s,a=!1){let c=!1;for(let l=0;l<e.length;l++){const u=e[l],h=e[++l];if(a||u&i){let a="";for(let u=l+1;u<=l+h;u++){const l=e[u];if("string"==typeof l)a+=l;else if("number"==typeof l)if(l<0)a+=Sn(s[r-l]);else{const h=l>>>2;let d,f,p;switch(3&l){case 1:const l=e[++u],m=e[++u];eo(o,pe(o,h),s,l,a,s[11],m,!1);break;case 0:Io(s,h,a);break;case 2:if(d=e[++u],f=n[d],p=pe(o,h),null!==p.activeCaseIndex){const t=f.remove[p.activeCaseIndex];for(let e=0;e<t.length;e++){const r=t[e];switch(7&r){case 3:Ip(o,s,r>>>3,!1);break;case 6:const i=pe(o,t[e+1]>>>3).activeCaseIndex;null!==i&&wt(n[r>>>3].remove[i],t)}}}const g=Vp(f,a);p.activeCaseIndex=-1!==g?g:null,g>-1&&(jp(-1,f.create[g],o,s),c=!0);break;case 3:d=e[++u],f=n[d],p=pe(o,h),null!==p.activeCaseIndex&&t(f.update[p.activeCaseIndex],n,r,i,o,s,c)}}}}l+=h}}(r,i,o,Np,e,s),Np=0,Fp=0}}function Vp(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const r=function(t,e){switch(Jf(e)(t)){case 0:return"zero";case 1:return"one";case 2:return"two";case 3:return"few";case 4:return"many";default:return"other"}}(e,Wp);n=t.cases.indexOf(r),-1===n&&"other"!==r&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return n}function Hp(t,e,n,r){const i=[],o=[],s=[],a=[],c=[];for(let l=0;l<e.values.length;l++){const u=e.values[l],h=[];for(let t=0;t<u.length;t++){const e=u[t];if("string"!=typeof e){const n=h.push(e)-1;u[t]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}const d=Bp(u.join(""),n,h,t,r);i.push(d.create),o.push(d.remove),s.push(d.update),a.push(d.vars),c.push(d.childIcus)}t.push({type:e.type,vars:a,childIcus:c,cases:e.cases,create:i,remove:o,update:s}),Tp+=Math.max(...a)}function Bp(t,e,n,r,i){const o=new vr(ae()).getInertBodyElement(t);if(!o)throw new Error("Unable to generate inert body element");const s={vars:0,childIcus:[],create:[],remove:[],update:[]};return function t(e,n,r,i,o,s){if(e){const a=[];for(;e;){const c=e.nextSibling,l=s+ ++n.vars;switch(e.nodeType){case Node.ELEMENT_NODE:const c=e,u=c.tagName.toLowerCase();if(Ar.hasOwnProperty(u)){n.create.push(Ai,u,l,r<<17|1);const a=c.attributes;for(let t=0;t<a.length;t++){const e=a.item(t),r=e.name.toLowerCase();e.value.match(ap)?Ir.hasOwnProperty(r)&&wt(Dr[r]?yp(e.value,l,e.name,wr):jr[r]?yp(e.value,l,e.name,Sr):yp(e.value,l,e.name),n.update):n.create.push(l<<3|4,e.name,e.value)}t(e.firstChild,n,l,i,o,s),n.remove.push(l<<3|3)}else n.vars--;break;case Node.TEXT_NODE:const h=e.textContent||"",d=h.match(ap);n.create.push(d?"":h,l,r<<17|1),n.remove.push(l<<3|3),d&&wt(yp(h,l),n.update);break;case Node.COMMENT_NODE:const f=Gp.exec(e.textContent||"");if(f){const t=parseInt(f[1],10);n.create.push(Di,"",l,r<<17|1),a.push([i[t],l])}else n.vars--;break;default:n.vars--}e=c}for(let t=0;t<a.length;t++){const e=a[t][0],r=a[t][1];Hp(o,e,r,s+n.vars);const i=o.length-1;n.vars+=Math.max(...o[i].vars),n.childIcus.push(i);const c=_p(e);n.update.push(xp(e.mainBinding),3,-1-e.mainBinding,r<<2|2,i,c,2,r<<2|3,i),n.remove.push(i<<3|6,r<<3|3)}}}((Hr(o)||o).firstChild,s,e,n,r,i),s}const Gp=/\ufffd(\d+)\ufffd/,zp=/\uE500/g;let Wp=np;function Up(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Wp=t.toLowerCase().replace(/_/g,"-"))}const qp=new Map;function Xp(t,e){const n=qp.get(t);$p(t,n&&n.moduleType,e.moduleType),qp.set(t,e)}function $p(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${F(e)} vs ${F(e.name)}`)}function Kp(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;$p(e,qp.get(e),t),qp.set(e,t)}let e=t.\u0275mod.imports;e instanceof Function&&(e=e()),e&&e.forEach(t=>Kp(t))}function Yp(t){return qp.get(t)||Bt[t]}class Qp extends yt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Bf(this);const n=Qt(t),r=t[Z]||null;r&&Up(r),this._bootstrapComponents=kn(n.bootstrap),this._r3Injector=Us(t,e,[{provide:yt,useValue:this},{provide:ph,useValue:this.componentFactoryResolver}],F(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=ta.THROW_IF_NOT_FOUND,n=S.Default){return t===ta||t===yt||t===rt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Jp extends _t{constructor(t){super(),this.moduleType=t,null!==Qt(t)&&Kp(t)}create(t){return new Qp(this.moduleType,t)}}function Zp(t,e,n,r){return c(()=>{const i=t,o=i.prototype?Object.getPrototypeOf(i.prototype):null,s=o&&o.constructor;null!==e&&(void 0===i.decorators||s&&s.decorators===i.decorators?i.decorators=e:i.decorators.push(...e)),null!==n&&(i.ctorParameters=n),null!==r&&(i.propDecorators=void 0===i.propDecorators||s&&s.propDecorators===i.propDecorators?r:Object.assign(Object.assign({},i.propDecorators),r))})}function tm(t,e,n){const r=Re()+t,i=ke();return i[r]===xi?za(i,r,n?e.call(n):e()):Wa(i,r)}function em(t,e,n,r){return hm(ke(),Re(),t,e,n,r)}function nm(t,e,n,r,i){return dm(ke(),Re(),t,e,n,r,i)}function rm(t,e,n,r,i,o){return fm(ke(),Re(),t,e,n,r,i,o)}function im(t,e,n,r,i,o,s){return pm(ke(),Re(),t,e,n,r,i,o,s)}function om(t,e,n,r,i,o,s,a){const c=Re()+t,l=ke(),u=$a(l,c,n,r,i,o);return Ua(l,c+4,s)||u?za(l,c+5,a?e.call(a,n,r,i,o,s):e(n,r,i,o,s)):Wa(l,c+5)}function sm(t,e,n,r,i,o,s,a,c){const l=Re()+t,u=ke(),h=$a(u,l,n,r,i,o);return qa(u,l+4,s,a)||h?za(u,l+6,c?e.call(c,n,r,i,o,s,a):e(n,r,i,o,s,a)):Wa(u,l+6)}function am(t,e,n,r,i,o,s,a,c,l){const u=Re()+t,h=ke();let d=$a(h,u,n,r,i,o);return Xa(h,u+4,s,a,c)||d?za(h,u+7,l?e.call(l,n,r,i,o,s,a,c):e(n,r,i,o,s,a,c)):Wa(h,u+7)}function cm(t,e,n,r,i,o,s,a,c,l,u){const h=Re()+t,d=ke(),f=$a(d,h,n,r,i,o);return $a(d,h+4,s,a,c,l)||f?za(d,h+8,u?e.call(u,n,r,i,o,s,a,c,l):e(n,r,i,o,s,a,c,l)):Wa(d,h+8)}function lm(t,e,n,r){return mm(ke(),Re(),t,e,n,r)}function um(t,e){const n=t[e];return n===xi?void 0:n}function hm(t,e,n,r,i,o){const s=e+n;return Ua(t,s,i)?za(t,s+1,o?r.call(o,i):r(i)):um(t,s+1)}function dm(t,e,n,r,i,o,s){const a=e+n;return qa(t,a,i,o)?za(t,a+2,s?r.call(s,i,o):r(i,o)):um(t,a+2)}function fm(t,e,n,r,i,o,s,a){const c=e+n;return Xa(t,c,i,o,s)?za(t,c+3,a?r.call(a,i,o,s):r(i,o,s)):um(t,c+3)}function pm(t,e,n,r,i,o,s,a,c){const l=e+n;return $a(t,l,i,o,s,a)?za(t,l+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):um(t,l+4)}function mm(t,e,n,r,i,o){let s=e+n,a=!1;for(let c=0;c<i.length;c++)Ua(t,s++,i[c])&&(a=!0);return a?za(t,s,r.apply(o,i)):um(t,s)}function gm(t,e){const n=Ae();let r;const i=t+19;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Yt(r.type)),s=ut(Sc),a=o();return ut(s),_c(n,ke(),t,a),a}function bm(t,e,n){const r=ke(),i=me(r,t);return xm(r,Sm(r,t)?hm(r,Re(),e,i.transform,n,i):i.transform(n))}function vm(t,e,n,r){const i=ke(),o=me(i,t);return xm(i,Sm(i,t)?dm(i,Re(),e,o.transform,n,r,o):o.transform(n,r))}function ym(t,e,n,r,i){const o=ke(),s=me(o,t);return xm(o,Sm(o,t)?fm(o,Re(),e,s.transform,n,r,i,s):s.transform(n,r,i))}function _m(t,e,n,r,i,o){const s=ke(),a=me(s,t);return xm(s,Sm(s,t)?pm(s,Re(),e,a.transform,n,r,i,o,a):a.transform(n,r,i,o))}function wm(t,e,n){const r=ke(),i=me(r,t);return xm(r,Sm(r,t)?mm(r,Re(),e,i.transform,n,i):i.transform.apply(i,n))}function Sm(t,e){return t[1].data[e+19].pure}function xm(t,e){return Ha.isWrapped(e)&&(e=Ha.unwrap(e),t[Le()]=xi),e}class Cm extends r.b{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,o=t=>null,s=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(o=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(o=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,o,s);return t instanceof i.a&&t.add(a),a}}function Om(){return this._results[Ra()]()}class Tm{constructor(){this.dirty=!0,this._results=[],this.changes=new Cm,this.length=0;const t=Ra(),e=Tm.prototype;e[t]||(e[t]=Om)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=St(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Em{constructor(t){this.queryList=t,this.matches=null}clone(){return new Em(this.queryList)}setDirty(){this.queryList.setDirty()}}class km{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new km(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Um(t,e).matches&&this.queries[e].setDirty()}}class Am{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class Dm{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const r=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,r);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new Dm(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class jm{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new jm(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,Im(e,n[r]))}else{const n=this.metadata.predicate;n===zh?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Bn(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===bh||r===qh||r===zh&&0===e.type)this.addMatch(e.index,-2);else{const n=Bn(e,t,r,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Im(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Pm(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?hs(bh,t,e):0===t.type?ds(zh,bh,t,e):null}(e,t):-2===n?function(t,e,n){return n===bh?hs(bh,e,t):n===zh?ds(zh,bh,e,t):n===qh?fs(qh,bh,e,t):void 0}(t,e,r):Gn(t,t[1],n,e)}function Mm(t,e,n,r){const i=e[5].queries[r];if(null===i.matches){const r=t.data,o=n.matches,s=[];for(let t=0;t<o.length;t+=2){const i=o[t];s.push(i<0?null:Pm(e,r[i],o[t+1],n.metadata.read))}i.matches=s}return i.matches}function Nm(t){const e=ke(),n=Ae(),r=ze();We(r+1);const i=Um(n,r);if(t.dirty&&ye(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?function t(e,n,r,i){const o=e.queries.getByIndex(r),s=o.matches;if(null!==s){const a=Mm(e,n,o,r);for(let e=0;e<s.length;e+=2){const r=s[e];if(r>0)i.push(a[e/2]);else{const o=s[e+1],a=n[-r];for(let e=9;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,o,i)}if(null!==a[5]){const e=a[5];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,o,i)}}}}}return i}(n,e,r,[]):Mm(n,e,i,r);t.reset(o),t.notifyOnChanges()}return!0}return!1}function Fm(t,e,n){Lm(Ae(),ke(),t,e,n,!0)}function Rm(t,e,n){Lm(Ae(),ke(),t,e,n,!1)}function Lm(t,e,n,r,i,o){t.firstCreatePass&&(Wm(t,new Am(n,r,o,i),-1),o&&(t.staticViewQueries=!0)),zm(t,e)}function Vm(t,e,n,r){Bm(Ae(),ke(),e,n,r,!1,je(),t)}function Hm(t,e,n,r){Bm(Ae(),ke(),e,n,r,!0,je(),t)}function Bm(t,e,n,r,i,o,s,a){t.firstCreatePass&&(Wm(t,new Am(n,r,o,i),s.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),o&&(t.staticContentQueries=!0)),zm(t,e)}function Gm(){return t=ke(),e=ze(),t[5].queries[e].queryList;var t,e}function zm(t,e){const n=new Tm;!function(t,e,n,r){const i=Eo(e);i.push(n),t.firstCreatePass&&ko(t).push(r,i.length-1)}(t,e,n,n.destroy),null===e[5]&&(e[5]=new km),e[5].queries.push(new Em(n))}function Wm(t,e,n){null===t.queries&&(t.queries=new Dm),t.queries.track(new jm(e,n))}function Um(t,e){return t.queries.getByIndex(e)}function qm(t,e){return ds(zh,bh,t,e)}function Xm(t=S.Default){const e=ps(!0);if(null!=e||t&S.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const $m=(()=>({"\u0275\u0275attribute":Ka,"\u0275\u0275attributeInterpolate1":oc,"\u0275\u0275attributeInterpolate2":sc,"\u0275\u0275attributeInterpolate3":ac,"\u0275\u0275attributeInterpolate4":cc,"\u0275\u0275attributeInterpolate5":lc,"\u0275\u0275attributeInterpolate6":uc,"\u0275\u0275attributeInterpolate7":hc,"\u0275\u0275attributeInterpolate8":dc,"\u0275\u0275attributeInterpolateV":fc,"\u0275\u0275defineComponent":Rt,"\u0275\u0275defineDirective":Ut,"\u0275\u0275defineInjectable":O,"\u0275\u0275defineInjector":E,"\u0275\u0275defineNgModule":Gt,"\u0275\u0275definePipe":qt,"\u0275\u0275directiveInject":Sc,"\u0275\u0275getFactoryOf":qn,"\u0275\u0275getInheritedFactory":Xn,"\u0275\u0275inject":dt,"\u0275\u0275injectAttribute":xc,"\u0275\u0275invalidFactory":Cc,"\u0275\u0275invalidFactoryDep":ft,"\u0275\u0275injectPipeChangeDetectorRef":Xm,"\u0275\u0275templateRefExtractor":qm,"\u0275\u0275NgOnChangesFeature":Ju,"\u0275\u0275ProvidersFeature":ch,"\u0275\u0275CopyDefinitionFeature":Yu,"\u0275\u0275InheritDefinitionFeature":zu,"\u0275\u0275container":gc,"\u0275\u0275nextContext":zc,"\u0275\u0275containerRefreshStart":vc,"\u0275\u0275containerRefreshEnd":yc,"\u0275\u0275namespaceHTML":on,"\u0275\u0275namespaceMathML":rn,"\u0275\u0275namespaceSVG":nn,"\u0275\u0275enableBindings":Te,"\u0275\u0275disableBindings":Ee,"\u0275\u0275elementStart":Ec,"\u0275\u0275elementEnd":kc,"\u0275\u0275element":Ac,"\u0275\u0275elementContainerStart":Dc,"\u0275\u0275elementContainerEnd":jc,"\u0275\u0275elementContainer":Ic,"\u0275\u0275pureFunction0":tm,"\u0275\u0275pureFunction1":em,"\u0275\u0275pureFunction2":nm,"\u0275\u0275pureFunction3":rm,"\u0275\u0275pureFunction4":im,"\u0275\u0275pureFunction5":om,"\u0275\u0275pureFunction6":sm,"\u0275\u0275pureFunction7":am,"\u0275\u0275pureFunction8":cm,"\u0275\u0275pureFunctionV":lm,"\u0275\u0275getCurrentView":Nc,"\u0275\u0275restoreView":De,"\u0275\u0275listener":Lc,"\u0275\u0275projection":$c,"\u0275\u0275updateSyntheticHostBinding":_u,"\u0275\u0275componentHostSyntheticListener":Vc,"\u0275\u0275pipeBind1":bm,"\u0275\u0275pipeBind2":vm,"\u0275\u0275pipeBind3":ym,"\u0275\u0275pipeBind4":_m,"\u0275\u0275pipeBindV":wm,"\u0275\u0275projectionDef":Uc,"\u0275\u0275hostProperty":yu,"\u0275\u0275property":Oc,"\u0275\u0275propertyInterpolate":Kc,"\u0275\u0275propertyInterpolate1":Yc,"\u0275\u0275propertyInterpolate2":Qc,"\u0275\u0275propertyInterpolate3":Jc,"\u0275\u0275propertyInterpolate4":Zc,"\u0275\u0275propertyInterpolate5":tl,"\u0275\u0275propertyInterpolate6":el,"\u0275\u0275propertyInterpolate7":nl,"\u0275\u0275propertyInterpolate8":rl,"\u0275\u0275propertyInterpolateV":il,"\u0275\u0275pipe":gm,"\u0275\u0275queryRefresh":Nm,"\u0275\u0275viewQuery":Rm,"\u0275\u0275staticViewQuery":Fm,"\u0275\u0275staticContentQuery":Hm,"\u0275\u0275loadQuery":Gm,"\u0275\u0275contentQuery":Vm,"\u0275\u0275reference":wc,"\u0275\u0275classMap":Sl,"\u0275\u0275classMapInterpolate1":ql,"\u0275\u0275classMapInterpolate2":Xl,"\u0275\u0275classMapInterpolate3":$l,"\u0275\u0275classMapInterpolate4":Kl,"\u0275\u0275classMapInterpolate5":Yl,"\u0275\u0275classMapInterpolate6":Ql,"\u0275\u0275classMapInterpolate7":Jl,"\u0275\u0275classMapInterpolate8":Zl,"\u0275\u0275classMapInterpolateV":tu,"\u0275\u0275styleMap":_l,"\u0275\u0275styleMapInterpolate1":eu,"\u0275\u0275styleMapInterpolate2":nu,"\u0275\u0275styleMapInterpolate3":ru,"\u0275\u0275styleMapInterpolate4":iu,"\u0275\u0275styleMapInterpolate5":ou,"\u0275\u0275styleMapInterpolate6":su,"\u0275\u0275styleMapInterpolate7":au,"\u0275\u0275styleMapInterpolate8":cu,"\u0275\u0275styleMapInterpolateV":lu,"\u0275\u0275styleProp":vl,"\u0275\u0275stylePropInterpolate1":uu,"\u0275\u0275stylePropInterpolate2":hu,"\u0275\u0275stylePropInterpolate3":du,"\u0275\u0275stylePropInterpolate4":fu,"\u0275\u0275stylePropInterpolate5":pu,"\u0275\u0275stylePropInterpolate6":mu,"\u0275\u0275stylePropInterpolate7":gu,"\u0275\u0275stylePropInterpolate8":bu,"\u0275\u0275stylePropInterpolateV":vu,"\u0275\u0275styleSanitizer":bl,"\u0275\u0275classProp":yl,"\u0275\u0275select":Ei,"\u0275\u0275advance":Ti,"\u0275\u0275template":bc,"\u0275\u0275text":Nl,"\u0275\u0275textInterpolate":Fl,"\u0275\u0275textInterpolate1":Rl,"\u0275\u0275textInterpolate2":Ll,"\u0275\u0275textInterpolate3":Vl,"\u0275\u0275textInterpolate4":Hl,"\u0275\u0275textInterpolate5":Bl,"\u0275\u0275textInterpolate6":Gl,"\u0275\u0275textInterpolate7":zl,"\u0275\u0275textInterpolate8":Wl,"\u0275\u0275textInterpolateV":Ul,"\u0275\u0275embeddedViewStart":Pc,"\u0275\u0275embeddedViewEnd":Mc,"\u0275\u0275i18n":Pp,"\u0275\u0275i18nAttributes":Mp,"\u0275\u0275i18nExp":Rp,"\u0275\u0275i18nStart":Op,"\u0275\u0275i18nEnd":Ap,"\u0275\u0275i18nApply":Lp,"\u0275\u0275i18nPostprocess":kp,"\u0275\u0275resolveWindow":On,"\u0275\u0275resolveDocument":Tn,"\u0275\u0275resolveBody":En,"\u0275\u0275setComponentScope":Lt,"\u0275\u0275setNgModuleScope":zt,"\u0275\u0275sanitizeHtml":Ur,"\u0275\u0275sanitizeStyle":qr,"\u0275\u0275defaultStyleSanitizer":Jr,"\u0275\u0275sanitizeResourceUrl":$r,"\u0275\u0275sanitizeScript":Kr,"\u0275\u0275sanitizeUrl":Xr,"\u0275\u0275sanitizeUrlOrResourceUrl":Qr}))();let Km=null;function Ym(){Km=null}const Qm=[],Jm=[];let Zm=!1;function tg(){if(!Zm){Zm=!0;try{for(let t=Jm.length-1;t>=0;t--){const{moduleType:e,ngModule:n}=Jm[t];n.declarations&&n.declarations.every(eg)&&(Jm.splice(t,1),ag(e,n))}}finally{Zm=!1}}}function eg(t){return Array.isArray(t)?t.every(eg):!!H(t)}function ng(t,e={}){rg(t,e),function(t,e){Jm.push({moduleType:t,ngModule:e})}(t,e)}function rg(t,e,n=!1){const r=St(e.declarations||Qm);let i=null;Object.defineProperty(t,J,{configurable:!0,get:()=>(null===i&&(i=$().compileNgModule($m,`ng:///${t.name}/\u0275mod.js`,{type:t,bootstrap:St(e.bootstrap||Qm).map(H),declarations:r.map(H),imports:St(e.imports||Qm).map(H).map(ug),exports:St(e.exports||Qm).map(H).map(ug),schemas:e.schemas?St(e.schemas):null,id:e.id||null}),i.schemas||(i.schemas=[])),i)});let o=null;Object.defineProperty(t,I,{get:()=>{if(null===o){const n={name:t.name,type:t,deps:As(t),providers:e.providers||Qm,imports:[(e.imports||Qm).map(H),(e.exports||Qm).map(H)]};o=$().compileInjector($m,`ng:///${t.name}/\u0275inj.js`,n)}return o},configurable:!1})}let ig=new Map,og=new Map;function sg(){ig=new Map,og=new Map,Jm.length=0}function ag(t,e){const n=St(e.declarations||Qm),r=lg(t);n.forEach(e=>{e.hasOwnProperty(K)?cg(Xt(e),r):e.hasOwnProperty(Y)||e.hasOwnProperty(Q)||(e.ngSelectorScope=t)})}function cg(t,e){t.directiveDefs=()=>Array.from(e.compilation.directives).map(t=>t.hasOwnProperty(K)?Xt(t):$t(t)).filter(t=>!!t),t.pipeDefs=()=>Array.from(e.compilation.pipes).map(t=>Kt(t)),t.schemas=e.schemas,t.tView=null}function lg(t){if(!hg(t))throw new Error(t.name+" does not have a module def (\u0275mod property)");const e=Qt(t);if(null!==e.transitiveCompileScopes)return e.transitiveCompileScopes;const n={schemas:e.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return kn(e.imports).forEach(t=>{const e=t;if(!hg(e))throw new Error(`Importing ${e.name} which does not have a \u0275mod property`);const r=lg(e);r.exported.directives.forEach(t=>n.compilation.directives.add(t)),r.exported.pipes.forEach(t=>n.compilation.pipes.add(t))}),kn(e.declarations).forEach(t=>{Kt(t)?n.compilation.pipes.add(t):n.compilation.directives.add(t)}),kn(e.exports).forEach(t=>{const e=t;if(hg(e)){const t=lg(e);t.exported.directives.forEach(t=>{n.compilation.directives.add(t),n.exported.directives.add(t)}),t.exported.pipes.forEach(t=>{n.compilation.pipes.add(t),n.exported.pipes.add(t)})}else Kt(e)?n.exported.pipes.add(e):n.exported.directives.add(e)}),e.transitiveCompileScopes=n,n}function ug(t){return function(t){return void 0!==t.ngModule}(t)?t.ngModule:t}function hg(t){return!!Qt(t)}function dg(t,e){let n=null;!function(t,e){Ia(e)&&(Da.set(t,e),ja.add(t))}(t,e),mg(t,e),Object.defineProperty(t,K,{get:()=>{if(null===n){const r=$();if(Ia(e)){const n=[`Component '${t.name}' is not resolved:`];throw e.templateUrl&&n.push(" - templateUrl: "+e.templateUrl),e.styleUrls&&e.styleUrls.length&&n.push(" - styleUrls: "+JSON.stringify(e.styleUrls)),n.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(n.join("\n"))}const i=Km;let o=e.preserveWhitespaces;void 0===o&&(o=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let s=e.encapsulation;void 0===s&&(s=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:Pt.Emulated);const a=e.templateUrl||`ng:///${t.name}/template.html`,c=Object.assign(Object.assign({},bg(t,e)),{typeSourceSpan:r.createParseSourceSpan("Component",t.name,a),template:e.template||"",preserveWhitespaces:o,styles:e.styles||Nt,animations:e.animations,directives:[],changeDetection:e.changeDetection,pipes:new Map,encapsulation:s,interpolation:e.interpolation,viewProviders:e.viewProviders||null});if(c.usesInheritance&&vg(t),n=r.compileComponent($m,a,c),tg(),void 0!==t.ngSelectorScope){const e=lg(t.ngSelectorScope);cg(n,e)}}return n},configurable:!1})}function fg(t,e){let n=null;mg(t,e||{}),Object.defineProperty(t,Y,{get:()=>{if(null===n){const r=pg(t,e||{});n=$().compileDirective($m,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function pg(t,e){const n=t&&t.name,r=`ng:///${n}/\u0275dir.js`,i=$(),o=bg(t,e);return o.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),o.usesInheritance&&vg(t),{metadata:o,sourceMapUrl:r}}function mg(t,e){let n=null;Object.defineProperty(t,tt,{get:()=>{if(null===n){const r=pg(t,e),i=$();n=i.compileFactory($m,`ng:///${t.name}/\u0275fac.js`,Object.assign(Object.assign({},r.metadata),{injectFn:"directiveInject",target:i.R3FactoryTarget.Directive}))}return n},configurable:!1})}function gg(t){return Object.getPrototypeOf(t.prototype)===Object.prototype}function bg(t,e){const n=ks(),r=n.ownPropMetadata(t);return{name:t.name,type:t,typeArgumentCount:0,selector:void 0!==e.selector?e.selector:null,deps:As(t),host:e.host||Mt,propMetadata:r,inputs:e.inputs||Nt,outputs:e.outputs||Nt,queries:_g(t,r,wg),lifecycle:{usesOnChanges:n.hasLifecycleHook(t,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!gg(t),exportAs:(i=e.exportAs,void 0===i?null:Cg(i)),providers:e.providers||null,viewQueries:_g(t,r,Sg)};var i}function vg(t){const e=Object.prototype;let n=Object.getPrototypeOf(t.prototype).constructor;for(;n&&n!==e;)$t(n)||Xt(n)||!Tg(n)||fg(n,null),n=Object.getPrototypeOf(n)}function yg(t,e){return{propertyName:t,predicate:(n=e.selector,"string"==typeof n?Cg(n):H(n)),descendants:e.descendants,first:e.first,read:e.read?e.read:null,static:!!e.static};var n}function _g(t,e,n){const r=[];for(const i in e)if(e.hasOwnProperty(i)){const o=e[i];o.forEach(e=>{if(n(e)){if(!e.selector)throw new Error(`Can't construct a query for the property "${i}" of "${xn(t)}" since the query selector wasn't defined.`);if(o.some(xg))throw new Error("Cannot combine @Input decorators with query decorators");r.push(yg(i,e))}})}return r}function wg(t){const e=t.ngMetadataName;return"ContentChild"===e||"ContentChildren"===e}function Sg(t){const e=t.ngMetadataName;return"ViewChild"===e||"ViewChildren"===e}function xg(t){return"Input"===t.ngMetadataName}function Cg(t){return t.split(",").map(t=>t.trim())}const Og=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function Tg(t){const e=ks();if(Og.some(n=>e.hasLifecycleHook(t,n)))return!0;const n=e.propMetadata(t);for(const r in n){const t=n[r];for(let e=0;e<t.length;e++){const n=t[e],r=n.ngMetadataName;if(xg(n)||wg(n)||Sg(n)||"Output"===r||"HostBinding"===r||"HostListener"===r)return!0}}return!1}function Eg(t,e){let n=null,r=null;Object.defineProperty(t,tt,{get:()=>{if(null===r){const n=kg(t,e),i=$();r=i.compileFactory($m,`ng:///${n.name}/\u0275fac.js`,Object.assign(Object.assign({},n),{injectFn:"directiveInject",target:i.R3FactoryTarget.Pipe}))}return r},configurable:!1}),Object.defineProperty(t,Q,{get:()=>{if(null===n){const r=kg(t,e);n=$().compilePipe($m,`ng:///${r.name}/\u0275pipe.js`,r)}return n},configurable:!1})}function kg(t,e){return{type:t,typeArgumentCount:0,name:t.name,deps:As(t),pipeName:e.name,pure:void 0===e.pure||e.pure}}const Ag=d("Directive",(t={})=>t,void 0,void 0,(t,e)=>Hg(t,e)),Dg=d("Component",(t={})=>Object.assign({changeDetection:Dt.Default},t),Ag,void 0,(t,e)=>Vg(t,e)),jg=d("Pipe",t=>Object.assign({pure:!0},t),void 0,void 0,(t,e)=>Bg(t,e)),Ig=m("Input",t=>({bindingPropertyName:t})),Pg=m("Output",t=>({bindingPropertyName:t})),Mg=m("HostBinding",t=>({hostPropertyName:t})),Ng=m("HostListener",(t,e)=>({eventName:t,args:e})),Fg=dg,Rg=fg,Lg=Eg,Vg=Fg,Hg=Rg,Bg=Lg,Gg=d("NgModule",t=>t,void 0,void 0,(t,e)=>Wg(t,e)),zg=ng,Wg=zg,Ug=new nt("Application Initializer");let qg=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Fc(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(dt(Ug,8))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const Xg=new nt("AppId");function $g(){return`${Yg()}${Yg()}${Yg()}`}const Kg={provide:Xg,useFactory:$g,deps:[]};function Yg(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Qg=new nt("Platform Initializer"),Jg=new nt("Platform ID"),Zg=new nt("appBootstrapListener"),tb=new nt("Application Packages Root URL");let eb=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const nb=new nt("LocaleId"),rb=new nt("DefaultCurrencyCode"),ib=new nt("Translations"),ob=new nt("TranslationsFormat"),sb=function(){var t={Error:0,Warning:1,Ignore:2};return t[t.Error]="Error",t[t.Warning]="Warning",t[t.Ignore]="Ignore",t}(),ab=!0,cb=ab;class lb{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const ub=function(t){return new Jp(t)},hb=ub,db=function(t){return Promise.resolve(ub(t))},fb=db,pb=function(t){const e=ub(t),n=kn(Qt(t).declarations).reduce((t,e)=>{const n=Xt(e);return n&&t.push(new Wf(n)),t},[]);return new lb(e,n)},mb=pb,gb=function(t){return Promise.resolve(pb(t))},bb=gb;let vb=(()=>{class t{constructor(){this.compileModuleSync=hb,this.compileModuleAsync=fb,this.compileModuleAndAllComponentsSync=mb,this.compileModuleAndAllComponentsAsync=bb}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();const yb=new nt("compilerOptions");class _b{}const wb=(()=>Promise.resolve(0))();function Sb(t){"undefined"==typeof Zone?wb.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class xb{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Cm(!1),this.onMicrotaskEmpty=new Cm(!1),this.onStable=new Cm(!1),this.onError=new Cm(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=q.requestAnimationFrame,e=q.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(q,()=>{t.lastRequestAnimationFrameId=-1,Eb(t),Tb(t)}),Eb(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,o,s,a)=>{try{return kb(t),n.invokeTask(i,o,s,a)}finally{e&&"eventTask"===o.type&&e(),Ab(t)}},onInvoke:(e,n,r,i,o,s,a)=>{try{return kb(t),e.invoke(r,i,o,s,a)}finally{Ab(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Eb(t),Tb(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xb.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(xb.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,Ob,Cb,Cb);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Cb(){}const Ob={};function Tb(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Eb(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function kb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ab(t){t._nesting--,Tb(t)}class Db{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cm,this.onMicrotaskEmpty=new Cm,this.onStable=new Cm,this.onError=new Cm}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let jb=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{xb.assertNotInAngularZone(),Sb(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Sb(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(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()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(dt(xb))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})(),Ib=(()=>{class t{constructor(){this._applications=new Map,Fb.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Fb.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();class Pb{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Mb(t){Fb=t}let Nb,Fb=new Pb,Rb=Lb;function Lb(t,e,n){const r=t.get(yb,[]).concat(e),i=new Jp(n);if(0===Da.size)return Promise.resolve(i);const o=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(r.map(t=>t.providers));if(0===o.length)return Promise.resolve(i);const s=$(),a=ta.create({providers:o}).get(s.ResourceLoader);return Aa(t=>Promise.resolve(a.get(t))).then(()=>i)}let Vb=Hb;function Hb(t){return t.isBoundToModule}const Bb=new nt("AllowMultipleToken");class Gb{constructor(t,e){this.name=t,this.token=e}}function zb(t){if(Nb&&!Nb.destroyed&&!Nb.injector.get(Bb,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Nb=t.get($b);const e=t.get(Qg,null);return e&&e.forEach(t=>t()),Nb}function Wb(t,e,n=[]){const r="Platform: "+e,i=new nt(r);return(e=[])=>{let o=Xb();if(!o||o.injector.get(Bb,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Ls,useValue:"platform"});zb(ta.create({providers:t,name:r}))}return Ub(i)}}function Ub(t){const e=Xb();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 qb(){Nb&&!Nb.destroyed&&Nb.destroy()}function Xb(){return Nb&&!Nb.destroyed?Nb:null}let $b=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Db:("zone.js"===t?void 0:t)||new xb({enableLongStackTrace:gr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:xb,useValue:n}];return n.run(()=>{const e=ta.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),o=i.injector.get(Qn,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>Qb(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const r=n();return Fc(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=i.injector.get(qg);return t.runInitializers(),t.donePromise.then(()=>(cb&&Up(i.injector.get(nb,np)||np),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=Kb({},e);return Rb(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Yb);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${F(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)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(dt(ta))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function Kb(t,e){return Array.isArray(e)?e.reduce(Kb,t):Object.assign(Object.assign({},t),e)}let Yb=(()=>{class t{constructor(t,e,n,r,i,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=gr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new o.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new o.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{xb.assertNotInAngularZone(),Sb(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{xb.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(s.a)(l,u.pipe(Object(a.a)()))}bootstrap(t,e){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.");let n;n=t instanceof uh?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=Vb(n)?void 0:this._injector.get(yt),i=n.create(ta.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const o=i.injector.get(jb,null);return o&&i.injector.get(Ib).registerApplication(i.location.nativeElement,o),this._loadComponent(i),gr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Qb(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Zg,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Qb(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(dt(xb),dt(eb),dt(ta),dt(Qn),dt(ph),dt(qg))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function Qb(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Jb{}function Zb(t){const e=Yp(t);if(!e)throw nv(t);return e}function tv(t){const e=Yp(t);if(!e)throw nv(t);return new Jp(e)}const ev=tv;function nv(t){return new Error(`No module with ID ${t} loaded`)}class rv{}const iv={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let ov=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||iv}load(t){return!cb&&this._compiler instanceof vb?this.loadFactory(t):this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("crnd")(e).then(t=>t[r]).then(t=>sv(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("crnd")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>sv(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(dt(vb),dt(rv,8))},t.\u0275prov=O({token:t,factory:t.\u0275fac}),t})();function sv(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class av extends ms{}class cv extends av{}class lv{constructor(t,e){this.name=t,this.callback=e}}class uv{constructor(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof hv&&e.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class hv extends uv{constructor(t,e,n){super(t,e,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))}insertChildrenAfter(t,e){const n=this.childNodes.indexOf(t);-1!==n&&(this.childNodes.splice(n+1,0,...e),e.forEach(e=>{e.parent&&e.parent.removeChild(e),t.parent=this}))}insertBefore(t,e){const n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return function t(e,n,r){e.childNodes.forEach(e=>{e instanceof hv&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e}queryAllNodes(t){const e=[];return function t(e,n,r){e instanceof hv&&e.childNodes.forEach(e=>{n(e)&&r.push(e),e instanceof hv&&t(e,n,r)})}(this,t,e),e}get children(){return this.childNodes.filter(t=>t instanceof hv)}triggerEventHandler(t,e){this.listeners.forEach(n=>{n.name==t&&n.callback(e)})}}function dv(t){return t.map(t=>t.nativeElement)}class fv{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new pv(t):null}get injector(){return Ou(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(wu(t)||xu(t))}get context(){return wu(this.nativeNode)||Su(this.nativeNode)}get listeners(){return Au(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(t){const e=Eu(t,!1);return null===e?{}:(void 0===e.localRefs&&(e.localRefs=function(t,e){const n=t[1].data[e];if(n&&n.localNames){const e={};let r=n.index+1;for(let i=0;i<n.localNames.length;i+=2)e[n.localNames[i]]=t[r],r++;return e}return null}(e.lView,e.nodeIndex)),e.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(t){const e=Eu(t,!1);if(null===e)return[];const n=e.lView[1],r=n.data[e.nodeIndex],i=[],o=r.directiveEnd;for(let a=65535&r.providerIndexes;a<o;a++){let t=n.data[a];void 0!==(s=t).type&&void 0!==s.template&&void 0!==s.declaredInputs&&(t=t.type),i.push(t)}var s;return i}(this.nativeNode)}}class pv extends fv{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){try{const t=Eu(this.nativeNode);return t.lView[1].data[t.nodeIndex].tagName}catch(t){return this.nativeNode.nodeName}}get properties(){const t=Eu(this.nativeNode,!1);if(null==t)return{};const e=t.lView,n=e[1].data,r=n[t.nodeIndex],i={};return function(t,e){if(t){let n=Object.getPrototypeOf(t);const r=Node.prototype;for(;null!==n&&n!==r;){const r=Object.getOwnPropertyDescriptors(n);for(let n in r)if(!n.startsWith("__")&&!n.startsWith("on")){const r=t[n];mv(r)&&(e[n]=r)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,i),function(t,e,n,r){let i=e.propertyBindings;if(null!==i)for(let o=0;o<i.length;o++){const e=i[o],s=r[e].split("\ufffd"),a=s[0];if(s.length>1){let r=s[1];for(let t=1;t<s.length-1;t++)r+=Sn(n[e+t-1])+s[t+1];t[a]=r}else t[a]=n[e]}}(i,r,e,n),i}get attributes(){const t={},e=this.nativeElement;if(!e)return t;const n=Eu(e,!1);if(null==n)return{};const r=n.lView[1].data[n.nodeIndex].attrs,i=[];if(r){let e=0;for(;e<r.length;){const n=r[e];if("string"!=typeof n)break;t[n]=r[e+1],i.push(n.toLowerCase()),e+=2}}const o=e.attributes;for(let s=0;s<o.length;s++){const e=o[s],n=e.name.toLowerCase();-1===i.indexOf(n)&&(t[n]=e.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},e=this.nativeElement.className;return(e&&"string"!=typeof e?e.baseVal.split(" "):e.split(" ")).forEach(e=>t[e]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,e=[];for(let n=0;n<t.length;n++)e.push(Sv(t[n]));return e}get children(){const t=this.nativeElement;if(!t)return[];const e=t.children,n=[];for(let r=0;r<e.length;r++)n.push(Sv(e[r]));return n}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return gv(this,t,e,!0),e}queryAllNodes(t){const e=[];return gv(this,t,e,!1),e}triggerEventHandler(t,e){const n=this.nativeNode,r=[];this.listeners.forEach(i=>{if(i.name===t){const t=i.callback;t.call(n,e),r.push(t)}}),"function"==typeof n.eventListeners&&n.eventListeners(t).forEach(t=>{if(-1!==t.toString().indexOf("__ngUnwrap__")){const i=t("__ngUnwrap__");return-1===r.indexOf(i)&&i.call(n,e)}})}}function mv(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t||null===t}function gv(t,e,n,r){const i=Eu(t.nativeNode,!1);null!==i?bv(i.lView[1].data[i.nodeIndex],i.lView,e,n,r,t.nativeNode):_v(t.nativeNode,e,n,r)}function bv(t,e,n,r,i,o){const s=fe(t,e);if(3===t.type||4===t.type){if(yv(s,n,r,i,o),ee(t)){const s=ge(t.index,e);s&&s[1].firstChild&&bv(s[1].firstChild,s,n,r,i,o)}else t.child&&bv(t.child,e,n,r,i,o),s&&_v(s,n,r,i);const a=e[t.index];Zt(a)&&vv(a,n,r,i,o)}else if(0===t.type){const s=e[t.index];yv(s[7],n,r,i,o),vv(s,n,r,i,o)}else if(1===t.type){const s=e[16],a=s[6].projection[t.projection];if(Array.isArray(a))for(let t of a)yv(t,n,r,i,o);else if(a){const t=s[3];bv(t[1].data[a.index],t,n,r,i,o)}}else t.child&&bv(t.child,e,n,r,i,o);if(o!==s){const s=4&t.flags?t.projectionNext:t.next;s&&bv(s,e,n,r,i,o)}}function vv(t,e,n,r,i){for(let o=9;o<t.length;o++){const s=t[o];bv(s[1].node,s,e,n,r,i)}}function yv(t,e,n,r,i){if(i!==t){const i=xv(t);if(!i)return;(r&&i instanceof pv&&e(i)&&-1===n.indexOf(i)||!r&&e(i)&&-1===n.indexOf(i))&&n.push(i)}}function _v(t,e,n,r){const i=t.childNodes,o=i.length;for(let s=0;s<o;s++){const t=i[s],o=xv(t);o&&((r&&o instanceof pv&&e(o)&&-1===n.indexOf(o)||!r&&e(o)&&-1===n.indexOf(o))&&n.push(o),_v(t,e,n,r))}}const wv=new Map;function Sv(t){return t instanceof Node?(t.hasOwnProperty("__ng_debug__")||(t.__ng_debug__=t.nodeType==Node.ELEMENT_NODE?new pv(t):new fv(t)),t.__ng_debug__):null}const xv=Sv;function Cv(t){return function(t){return wv.get(t)||null}(t)}const Ov=function(t){return null};function Tv(t){wv.set(t.nativeNode,t)}const Ev=fv,kv=pv,Av=Wb(null,"core",[{provide:Jg,useValue:"unknown"},{provide:$b,deps:[ta]},{provide:Ib,deps:[]},{provide:eb,deps:[]}]);function Dv(){return Bh}function jv(){return Gh}function Iv(t){return t=t||cb&&"undefined"!=typeof $localize&&$localize.locale||np,cb&&Up(t),t}const Pv=rp,Mv=[{provide:Yb,useClass:Yb,deps:[xb,eb,ta,Qn,ph,qg]},{provide:zf,deps:[xb],useFactory:Nv},{provide:qg,useClass:qg,deps:[[new b,Ug]]},{provide:vb,useClass:vb,deps:[]},Kg,{provide:Lh,useFactory:Dv,deps:[]},{provide:Vh,useFactory:jv,deps:[]},{provide:nb,useFactory:Iv,deps:[[new g(nb),new b,new y]]},{provide:rb,useValue:Pv}];function Nv(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}let Fv=(()=>{class t{constructor(t){}}return t.\u0275mod=Gt({type:t}),t.\u0275inj=E({factory:function(e){return new(e||t)(dt(Yb))},providers:Mv}),t})();function Rv(t,e,n,r,i,o){t|=1;const{matchedQueries:s,references:a,matchedQueryIds:c}=Od(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:c,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?Ad(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||ad},provider:null,text:null,query:null,ngContent:null}}function Lv(t,e,n,r,i,o,s=[],a,c,l,u,h){l||(l=ad);const{matchedQueries:d,references:f,matchedQueryIds:p}=Od(n);let m=null,g=null;o&&([m,g]=Fd(o)),a=a||[];const b=[];for(let _=0;_<a.length;_++){const[t,e,n]=a[_],[r,i]=Fd(e);let o=void 0,s=void 0;switch(15&t){case 4:s=n;break;case 1:case 8:o=n}b[_]={flags:t,ns:r,name:i,nonMinifiedName:i,securityContext:o,suffix:s}}c=c||[];const v=[];for(let _=0;_<c.length;_++){const[t,e]=c[_];v[_]={type:0,target:t,eventName:e,propName:null}}const y=(s=s||[]).map(([t,e])=>{const[n,r]=Fd(t);return[n,r,e]});return h=function(t){if(t&&"$$undefined"===t.id){const e=null!=t.encapsulation&&t.encapsulation!==Pt.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+dd++:"$$empty"}return t&&"$$empty"===t.id&&(t=null),t||null}(h),u&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:p,references:f,ngContentIndex:r,childCount:i,bindings:b,bindingFlags:Rd(b),outputs:v,element:{ns:m,name:g,attrs:y,template:null,componentProvider:null,componentView:u||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:l||ad},provider:null,text:null,query:null,ngContent:null}}function Vv(t,e,n){const r=n.element,i=t.root.selectorOrNode,o=t.renderer;let s;if(t.parent||!i){s=r.name?o.createElement(r.name,r.ns):o.createComment("");const i=Ed(t,e,n);i&&o.appendChild(i,s)}else s=o.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===Pt.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[t,e,n]=r.attrs[a];o.setAttribute(s,e,n,t)}return s}function Hv(t,e,n,r){for(let s=0;s<n.outputs.length;s++){const a=n.outputs[s],c=Bv(t,n.nodeIndex,(o=a.eventName,(i=a.target)?`${i}:${o}`:o));let l=a.target,u=t;"component"===a.target&&(l=null,u=e);const h=u.renderer.listen(l||r,a.eventName,c);t.disposables[n.outputIndex+s]=h}var i,o}function Bv(t,e,n){return r=>vd(t,e,n,r)}function Gv(t,e,n,r){if(!pd(t,e,n,r))return!1;const i=e.bindings[n],o=ed(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:!function(t,e,n,r,i,o){const s=e.securityContext;let a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;const c=t.renderer;null!=o?c.setAttribute(n,i,a,r):c.removeAttribute(n,i,r)}(t,i,s,i.ns,a,r);break;case 2:!function(t,e,n,r){const i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}(t,s,a,r);break;case 4:!function(t,e,n,r,i){let o=t.root.sanitizer.sanitize(Br.STYLE,i);if(null!=o){o=o.toString();const t=e.suffix;null!=t&&(o+=t)}else o=null;const s=t.renderer;null!=o?s.setStyle(n,r,o):s.removeStyle(n,r)}(t,i,s,a,r);break;case 8:!function(t,e,n,r,i){const o=e.securityContext;let s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}function zv(t,e,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:Cd(e),bindings:r},ngContent:null}}function Wv(t){const e=t.def.nodeMatchedQueries;for(;t.parent&&xd(t);){let n=t.parentNodeDef;t=t.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=t.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&e)===r.query.filterId&&id(t,i).setDirty(),!(1&r.flags&&i+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(i+=r.childCount)}}if(134217728&t.def.nodeFlags)for(let n=0;n<t.def.nodes.length;n++){const e=t.def.nodes[n];134217728&e.flags&&536870912&e.flags&&id(t,n).setDirty(),n+=e.childCount}}function Uv(t,e){const n=id(t,e.nodeIndex);if(!n.dirty)return;let r,i=void 0;if(67108864&e.flags){const n=e.parent.parent;i=qv(t,n.nodeIndex,n.nodeIndex+n.childCount,e.query,[]),r=nd(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=qv(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);const o=e.query.bindings;let s=!1;for(let a=0;a<o.length;a++){const t=o[a];let e;switch(t.bindingType){case 0:e=n.first;break;case 1:e=n,s=!0}r[t.propName]=e}s&&n.notifyOnChanges()}function qv(t,e,n,r,i){for(let o=e;o<=n;o++){const e=t.def.nodes[o],n=e.matchedQueries[r.id];if(null!=n&&i.push(Xv(t,e,n)),1&e.flags&&e.element.template&&(e.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=ed(t,o);if((e.childMatchedQueries&r.filterId)===r.filterId&&(qv(t,o+1,o+e.childCount,r,i),o+=e.childCount),16777216&e.flags){const t=n.viewContainer._embeddedViews;for(let e=0;e<t.length;e++){const o=t[e],s=yd(o);s&&s===n&&qv(o,0,o.def.nodes.length-1,r,i)}}const s=n.template._projectedViews;if(s)for(let t=0;t<s.length;t++){const e=s[t];qv(e,0,e.def.nodes.length-1,r,i)}}(e.childMatchedQueries&r.filterId)!==r.filterId&&(o+=e.childCount)}return i}function Xv(t,e,n){if(null!=n)switch(n){case 1:return ed(t,e.nodeIndex).renderElement;case 0:return new bh(ed(t,e.nodeIndex).renderElement);case 2:return ed(t,e.nodeIndex).template;case 3:return ed(t,e.nodeIndex).viewContainer;case 4:return nd(t,e.nodeIndex).instance}}function $v(t,e){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function Kv(t,e,n){const r=Ed(t,e,n);r&&Id(t,n.ngContent.index,1,r,null,void 0)}function Yv(t,e){return Zv(128,t,Tt(e+1))}function Qv(t,e){return Zv(32,t,Tt(e))}function Jv(t,e){const n=Object.keys(e),r=n.length,i=[];for(let o=0;o<r;o++)i.push(n[o]);return Zv(64,t,i)}function Zv(t,e,n){const r=[];for(let i=0;i<n.length;i++){const t=n[i];r.push({flags:8,name:t,ns:null,nonMinifiedName:t,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Rd(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function ty(t,e,n){const r=[];for(let i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function ey(t,e,n){let r;const i=t.renderer;r=i.createText(n.text.prefix);const o=Ed(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function ny(t,e){return(null!=t?t.toString():"")+e.suffix}function ry(t,e,n,r){let i=0,o=0,s=0,a=0,c=0,l=null,u=null,h=!1,d=!1,f=null;for(let p=0;p<e.length;p++){const t=e[p];if(t.nodeIndex=p,t.parent=l,t.bindingIndex=i,t.outputIndex=o,t.renderParent=u,s|=t.flags,c|=t.matchedQueryIds,t.element){const e=t.element;e.publicProviders=l?l.element.publicProviders:Object.create(null),e.allProviders=e.publicProviders,h=!1,d=!1,t.element.template&&(c|=t.element.template.nodeMatchedQueries)}if(oy(l,t,e.length),i+=t.bindings.length,o+=t.outputs.length,!u&&3&t.flags&&(f=t),20224&t.flags){h||(h=!0,l.element.publicProviders=Object.create(l.element.publicProviders),l.element.allProviders=l.element.publicProviders);const e=0!=(32768&t.flags);0==(8192&t.flags)||e?l.element.publicProviders[ld(t.provider.token)]=t:(d||(d=!0,l.element.allProviders=Object.create(l.element.publicProviders)),l.element.allProviders[ld(t.provider.token)]=t),e&&(l.element.componentProvider=t)}if(l?(l.childFlags|=t.flags,l.directChildFlags|=t.flags,l.childMatchedQueries|=t.matchedQueryIds,t.element&&t.element.template&&(l.childMatchedQueries|=t.element.template.nodeMatchedQueries)):a|=t.flags,t.childCount>0)l=t,iy(t)||(u=t);else for(;l&&p===l.nodeIndex+l.childCount;){const t=l.parent;t&&(t.childFlags|=l.childFlags,t.childMatchedQueries|=l.childMatchedQueries),l=t,u=l&&iy(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:c,flags:t,nodes:e,updateDirectives:n||ad,updateRenderer:r||ad,handleEvent:(t,n,r,i)=>e[n].element.handleEvent(t,r,i),bindingCount:i,outputCount:o,lastRenderRootNode:f}}function iy(t){return 0!=(1&t.flags)&&null===t.element.name}function oy(t,e,n){const 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){const r=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=r&&e.nodeIndex+e.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${e.nodeIndex}!`)}}function sy(t,e,n,r){const i=ly(t.root,t.renderer,t,e,n);return uy(i,t.component,r),hy(i),i}function ay(t,e,n){const r=ly(t,t.renderer,null,null,e);return uy(r,n,n),hy(r),r}function cy(t,e,n,r){const i=e.element.componentRendererType;let o;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,ly(t.root,o,t,e.element.componentProvider,n)}function ly(t,e,n,r,i){const o=new Array(i.nodes.length),s=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:s,initIndex:-1}}function uy(t,e,n){t.component=e,t.context=n}function hy(t){let e;Sd(t)&&(e=ed(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);const n=t.def,r=t.nodes;for(let i=0;i<n.nodes.length;i++){const o=n.nodes[i];let s;switch(sd.setCurrentNode(t,i),201347067&o.flags){case 1:const n=Vv(t,e,o);let a=void 0;if(33554432&o.flags){const e=Ad(o.element.componentView);a=sd.createComponentView(t,o,e,n)}Hv(t,a,o,n),s={renderElement:n,componentView:a,viewContainer:null,template:o.element.template?uf(t,o):void 0},16777216&o.flags&&(s.viewContainer=sf(t,o,s));break;case 2:s=ey(t,e,o);break;case 512:case 1024:case 2048:case 256:s=r[i],s||4096&o.flags||(s={instance:kf(t,o)});break;case 16:s={instance:Af(t,o)};break;case 16384:s=r[i],s||(s={instance:Df(t,o)}),32768&o.flags&&uy(ed(t,o.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new Tm;break;case 8:Kv(t,e,o),s=void 0}r[i]=s}_y(t,yy.CreateViewNodes),Cy(t,201326592,268435456,0)}function dy(t){my(t),sd.updateDirectives(t,1),wy(t,yy.CheckNoChanges),sd.updateRenderer(t,1),_y(t,yy.CheckNoChanges),t.state&=-97}function fy(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Jh(t,0,256),my(t),sd.updateDirectives(t,0),wy(t,yy.CheckAndUpdate),Cy(t,67108864,536870912,0);let e=Jh(t,256,512);Lf(t,2097152|(e?1048576:0)),sd.updateRenderer(t,0),_y(t,yy.CheckAndUpdate),Cy(t,134217728,536870912,0),e=Jh(t,512,768),Lf(t,8388608|(e?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Jh(t,768,1024)}function py(t,e,n,r,i,o,s,a,c,l,u,h,d){return 0===n?function(t,e,n,r,i,o,s,a,c,l,u,h){switch(201347067&e.flags){case 1:return function(t,e,n,r,i,o,s,a,c,l,u,h){const d=e.bindings.length;let f=!1;return d>0&&Gv(t,e,0,n)&&(f=!0),d>1&&Gv(t,e,1,r)&&(f=!0),d>2&&Gv(t,e,2,i)&&(f=!0),d>3&&Gv(t,e,3,o)&&(f=!0),d>4&&Gv(t,e,4,s)&&(f=!0),d>5&&Gv(t,e,5,a)&&(f=!0),d>6&&Gv(t,e,6,c)&&(f=!0),d>7&&Gv(t,e,7,l)&&(f=!0),d>8&&Gv(t,e,8,u)&&(f=!0),d>9&&Gv(t,e,9,h)&&(f=!0),f}(t,e,n,r,i,o,s,a,c,l,u,h);case 2:return function(t,e,n,r,i,o,s,a,c,l,u,h){let d=!1;const f=e.bindings,p=f.length;if(p>0&&pd(t,e,0,n)&&(d=!0),p>1&&pd(t,e,1,r)&&(d=!0),p>2&&pd(t,e,2,i)&&(d=!0),p>3&&pd(t,e,3,o)&&(d=!0),p>4&&pd(t,e,4,s)&&(d=!0),p>5&&pd(t,e,5,a)&&(d=!0),p>6&&pd(t,e,6,c)&&(d=!0),p>7&&pd(t,e,7,l)&&(d=!0),p>8&&pd(t,e,8,u)&&(d=!0),p>9&&pd(t,e,9,h)&&(d=!0),d){let d=e.text.prefix;p>0&&(d+=ny(n,f[0])),p>1&&(d+=ny(r,f[1])),p>2&&(d+=ny(i,f[2])),p>3&&(d+=ny(o,f[3])),p>4&&(d+=ny(s,f[4])),p>5&&(d+=ny(a,f[5])),p>6&&(d+=ny(c,f[6])),p>7&&(d+=ny(l,f[7])),p>8&&(d+=ny(u,f[8])),p>9&&(d+=ny(h,f[9]));const m=td(t,e.nodeIndex).renderText;t.renderer.setValue(m,d)}return d}(t,e,n,r,i,o,s,a,c,l,u,h);case 16384:return function(t,e,n,r,i,o,s,a,c,l,u,h){const d=nd(t,e.nodeIndex),f=d.instance;let p=!1,m=void 0;const g=e.bindings.length;return g>0&&fd(t,e,0,n)&&(p=!0,m=Rf(t,d,e,0,n,m)),g>1&&fd(t,e,1,r)&&(p=!0,m=Rf(t,d,e,1,r,m)),g>2&&fd(t,e,2,i)&&(p=!0,m=Rf(t,d,e,2,i,m)),g>3&&fd(t,e,3,o)&&(p=!0,m=Rf(t,d,e,3,o,m)),g>4&&fd(t,e,4,s)&&(p=!0,m=Rf(t,d,e,4,s,m)),g>5&&fd(t,e,5,a)&&(p=!0,m=Rf(t,d,e,5,a,m)),g>6&&fd(t,e,6,c)&&(p=!0,m=Rf(t,d,e,6,c,m)),g>7&&fd(t,e,7,l)&&(p=!0,m=Rf(t,d,e,7,l,m)),g>8&&fd(t,e,8,u)&&(p=!0,m=Rf(t,d,e,8,u,m)),g>9&&fd(t,e,9,h)&&(p=!0,m=Rf(t,d,e,9,h,m)),m&&f.ngOnChanges(m),65536&e.flags&&Zh(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),p}(t,e,n,r,i,o,s,a,c,l,u,h);case 32:case 64:case 128:return function(t,e,n,r,i,o,s,a,c,l,u,h){const d=e.bindings;let f=!1;const p=d.length;if(p>0&&pd(t,e,0,n)&&(f=!0),p>1&&pd(t,e,1,r)&&(f=!0),p>2&&pd(t,e,2,i)&&(f=!0),p>3&&pd(t,e,3,o)&&(f=!0),p>4&&pd(t,e,4,s)&&(f=!0),p>5&&pd(t,e,5,a)&&(f=!0),p>6&&pd(t,e,6,c)&&(f=!0),p>7&&pd(t,e,7,l)&&(f=!0),p>8&&pd(t,e,8,u)&&(f=!0),p>9&&pd(t,e,9,h)&&(f=!0),f){const f=rd(t,e.nodeIndex);let m;switch(201347067&e.flags){case 32:m=[],p>0&&m.push(n),p>1&&m.push(r),p>2&&m.push(i),p>3&&m.push(o),p>4&&m.push(s),p>5&&m.push(a),p>6&&m.push(c),p>7&&m.push(l),p>8&&m.push(u),p>9&&m.push(h);break;case 64:m={},p>0&&(m[d[0].name]=n),p>1&&(m[d[1].name]=r),p>2&&(m[d[2].name]=i),p>3&&(m[d[3].name]=o),p>4&&(m[d[4].name]=s),p>5&&(m[d[5].name]=a),p>6&&(m[d[6].name]=c),p>7&&(m[d[7].name]=l),p>8&&(m[d[8].name]=u),p>9&&(m[d[9].name]=h);break;case 128:const t=n;switch(p){case 1:m=t.transform(n);break;case 2:m=t.transform(r);break;case 3:m=t.transform(r,i);break;case 4:m=t.transform(r,i,o);break;case 5:m=t.transform(r,i,o,s);break;case 6:m=t.transform(r,i,o,s,a);break;case 7:m=t.transform(r,i,o,s,a,c);break;case 8:m=t.transform(r,i,o,s,a,c,l);break;case 9:m=t.transform(r,i,o,s,a,c,l,u);break;case 10:m=t.transform(r,i,o,s,a,c,l,u,h)}}f.value=m}return f}(t,e,n,r,i,o,s,a,c,l,u,h);default:throw"unreachable"}}(t,e,r,i,o,s,a,c,l,u,h,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){let r=!1;for(let i=0;i<n.length;i++)Gv(t,e,i,n[i])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){const r=e.bindings;let i=!1;for(let o=0;o<n.length;o++)pd(t,e,o,n[o])&&(i=!0);if(i){let i="";for(let t=0;t<n.length;t++)i+=ny(n[t],r[t]);i=e.text.prefix+i;const o=td(t,e.nodeIndex).renderText;t.renderer.setValue(o,i)}return i}(t,e,n);case 16384:return function(t,e,n){const r=nd(t,e.nodeIndex),i=r.instance;let o=!1,s=void 0;for(let a=0;a<n.length;a++)fd(t,e,a,n[a])&&(o=!0,s=Rf(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),65536&e.flags&&Zh(t,256,e.nodeIndex)&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}(t,e,n);case 32:case 64:case 128:return function(t,e,n){const r=e.bindings;let i=!1;for(let o=0;o<n.length;o++)pd(t,e,o,n[o])&&(i=!0);if(i){const i=rd(t,e.nodeIndex);let o;switch(201347067&e.flags){case 32:o=n;break;case 64:o={};for(let i=0;i<n.length;i++)o[r[i].name]=n[i];break;case 128:const t=n[0],e=n.slice(1);o=t.transform(...e)}i.value=o}return i}(t,e,n);default:throw"unreachable"}}(t,e,r)}function my(t){const e=t.def;if(4&e.nodeFlags)for(let n=0;n<e.nodes.length;n++){const r=e.nodes[n];if(4&r.flags){const e=ed(t,n).template._projectedViews;if(e)for(let n=0;n<e.length;n++){const r=e[n];r.state|=32,bd(r,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function gy(t,e,n,r,i,o,s,a,c,l,u,h,d){return 0===n?function(t,e,n,r,i,o,s,a,c,l,u,h){const d=e.bindings.length;d>0&&md(t,e,0,n),d>1&&md(t,e,1,r),d>2&&md(t,e,2,i),d>3&&md(t,e,3,o),d>4&&md(t,e,4,s),d>5&&md(t,e,5,a),d>6&&md(t,e,6,c),d>7&&md(t,e,7,l),d>8&&md(t,e,8,u),d>9&&md(t,e,9,h)}(t,e,r,i,o,s,a,c,l,u,h,d):function(t,e,n){for(let r=0;r<n.length;r++)md(t,e,r,n[r])}(t,e,r),!1}function by(t,e){if(id(t,e.nodeIndex).dirty)throw Kh(sd.createDebugContext(t,e.nodeIndex),`Query ${e.query.id} not dirty`,`Query ${e.query.id} dirty`,0!=(1&t.state))}function vy(t){if(!(128&t.state)){if(wy(t,yy.Destroy),_y(t,yy.Destroy),Lf(t,131072),t.disposables)for(let e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(!(16&t.state))return;const e=yd(t);if(e){const n=e.template._projectedViews;n&&(Ot(n,n.indexOf(t)),sd.dirtyParentQueries(t))}}(t),t.renderer.destroyNode&&function(t){const e=t.def.nodes.length;for(let n=0;n<e;n++){const e=t.def.nodes[n];1&e.flags?t.renderer.destroyNode(ed(t,n).renderElement):2&e.flags?t.renderer.destroyNode(td(t,n).renderText):(67108864&e.flags||134217728&e.flags)&&id(t,n).destroy()}}(t),Sd(t)&&t.renderer.destroy(),t.state|=128}}const yy=function(){var t={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return t[t.CreateViewNodes]="CreateViewNodes",t[t.CheckNoChanges]="CheckNoChanges",t[t.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",t[t.Destroy]="Destroy",t}();function _y(t,e){const n=t.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];33554432&i.flags?Sy(ed(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function wy(t,e){const n=t.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];if(16777216&i.flags){const n=ed(t,r).viewContainer._embeddedViews;for(let t=0;t<n.length;t++)Sy(n[t],e)}else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Sy(t,e){const n=t.state;switch(e){case yy.CheckNoChanges:0==(128&n)&&(12==(12&n)?dy(t):64&n&&xy(t,yy.CheckNoChangesProjectedViews));break;case yy.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?dy(t):64&n&&xy(t,e));break;case yy.CheckAndUpdate:0==(128&n)&&(12==(12&n)?fy(t):64&n&&xy(t,yy.CheckAndUpdateProjectedViews));break;case yy.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?fy(t):64&n&&xy(t,e));break;case yy.Destroy:vy(t);break;case yy.CreateViewNodes:hy(t)}}function xy(t,e){wy(t,e),_y(t,e)}function Cy(t,e,n,r){if(!(t.def.nodeFlags&e&&t.def.nodeFlags&n))return;const i=t.def.nodes.length;for(let o=0;o<i;o++){const i=t.def.nodes[o];if(i.flags&e&&i.flags&n)switch(sd.setCurrentNode(t,i.nodeIndex),r){case 0:Uv(t,i);break;case 1:by(t,i)}i.childFlags&e&&i.childFlags&n||(o+=i.childCount)}}let Oy=!1;function Ty(){if(Oy)return;Oy=!0;const t=gr()?{setCurrentNode:Ky,createRootView:ky,createEmbeddedView:Dy,createComponentView:jy,createNgModuleRef:Iy,overrideProvider:Fy,overrideComponentView:Ry,clearOverrides:Ly,checkAndUpdateView:Gy,checkNoChangesView:zy,destroyView:Wy,createDebugContext:(t,e)=>new r_(t,e),handleEvent:Yy,updateDirectives:Qy,updateRenderer:Jy}:{setCurrentNode:()=>{},createRootView:Ey,createEmbeddedView:sy,createComponentView:cy,createNgModuleRef:mf,overrideProvider:ad,overrideComponentView:ad,clearOverrides:ad,checkAndUpdateView:fy,checkNoChangesView:dy,destroyView:vy,createDebugContext:(t,e)=>new r_(t,e),handleEvent:(t,e,n,r)=>t.def.handleEvent(t,e,n,r),updateDirectives:(t,e)=>t.def.updateDirectives(0===e?Hy:By,t),updateRenderer:(t,e)=>t.def.updateRenderer(0===e?Hy:By,t)};sd.setCurrentNode=t.setCurrentNode,sd.createRootView=t.createRootView,sd.createEmbeddedView=t.createEmbeddedView,sd.createComponentView=t.createComponentView,sd.createNgModuleRef=t.createNgModuleRef,sd.overrideProvider=t.overrideProvider,sd.overrideComponentView=t.overrideComponentView,sd.clearOverrides=t.clearOverrides,sd.checkAndUpdateView=t.checkAndUpdateView,sd.checkNoChangesView=t.checkNoChangesView,sd.destroyView=t.destroyView,sd.resolveDep=Nf,sd.createDebugContext=t.createDebugContext,sd.handleEvent=t.handleEvent,sd.updateDirectives=t.updateDirectives,sd.updateRenderer=t.updateRenderer,sd.dirtyParentQueries=Wv}function Ey(t,e,n,r,i,o){const s=i.injector.get(_h);return ay(Ay(t,i,s,e,n),r,o)}function ky(t,e,n,r,i,o){const s=i.injector.get(_h),a=Ay(t,i,new a_(s),e,n),c=Vy(r);return o_(Uy.create,ay,null,[a,c,o])}function Ay(t,e,n,r,i){const o=e.injector.get(Oh),s=e.injector.get(Qn),a=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:a,errorHandler:s}}function Dy(t,e,n,r){const i=Vy(n);return o_(Uy.create,sy,null,[t,e,i,r])}function jy(t,e,n,r){return n=Ny.get(e.element.componentProvider.provider.token)||Vy(n),o_(Uy.create,cy,null,[t,e,n,r])}function Iy(t,e,n,r){return mf(t,e,n,function(t){const{hasOverrides:e,hasDeprecatedOverrides:n}=function(t){let e=!1,n=!1;return 0===Py.size||(t.providers.forEach(t=>{const r=Py.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(t=>{My.forEach((r,i)=>{k(i).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:e,hasDeprecatedOverrides:n}}(t);return e?(function(t){for(let e=0;e<t.providers.length;e++){const r=t.providers[e];n&&(r.flags|=4096);const i=Py.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=Td(i.deps),r.value=i.value)}if(My.size>0){let e=new Set(t.modules);My.forEach((r,i)=>{if(e.has(k(i).providedIn)){let e={token:i,flags:r.flags|(n?4096:0),deps:Td(r.deps),value:r.value,index:t.providers.length};t.providers.push(e),t.providersByKey[ld(i)]=e}})}}(t=t.factory(()=>ad)),t):t}(r))}const Py=new Map,My=new Map,Ny=new Map;function Fy(t){let e;Py.set(t.token,t),"function"==typeof t.token&&(e=k(t.token))&&"function"==typeof e.providedIn&&My.set(t.token,t)}function Ry(t,e){const n=Ad(nf(e)),r=Ad(n.nodes[0].element.componentView);Ny.set(t,r)}function Ly(){Py.clear(),My.clear(),Ny.clear()}function Vy(t){if(0===Py.size)return t;const e=function(t){const e=[];let n=null;for(let r=0;r<t.nodes.length;r++){const i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Py.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(()=>ad);for(let r=0;r<e.length;r++)n(t,e[r]);return t;function n(t,e){for(let n=e+1;n<t.nodes.length;n++){const e=t.nodes[n];if(1&e.flags)return;if(3840&e.flags){const t=e.provider,n=Py.get(t.token);n&&(e.flags=-3841&e.flags|n.flags,t.deps=Td(n.deps),t.value=n.value)}}}}function Hy(t,e,n,r,i,o,s,a,c,l,u,h,d){const f=t.def.nodes[e];return py(t,f,n,r,i,o,s,a,c,l,u,h,d),224&f.flags?rd(t,e).value:void 0}function By(t,e,n,r,i,o,s,a,c,l,u,h,d){const f=t.def.nodes[e];return gy(t,f,n,r,i,o,s,a,c,l,u,h,d),224&f.flags?rd(t,e).value:void 0}function Gy(t){return o_(Uy.detectChanges,fy,null,[t])}function zy(t){return o_(Uy.checkNoChanges,dy,null,[t])}function Wy(t){return o_(Uy.destroy,vy,null,[t])}const Uy=function(){var t={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return t[t.create]="create",t[t.detectChanges]="detectChanges",t[t.checkNoChanges]="checkNoChanges",t[t.destroy]="destroy",t[t.handleEvent]="handleEvent",t}();let qy,Xy,$y;function Ky(t,e){Xy=t,$y=e}function Yy(t,e,n,r){return Ky(t,e),o_(Uy.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Qy(t,e){if(128&t.state)throw Qh(Uy[qy]);return Ky(t,e_(t,0)),t.def.updateDirectives((function(t,n,r,...i){const o=t.def.nodes[n];return 0===e?Zy(t,o,r,i):t_(t,o,r,i),16384&o.flags&&Ky(t,e_(t,n)),224&o.flags?rd(t,o.nodeIndex).value:void 0}),t)}function Jy(t,e){if(128&t.state)throw Qh(Uy[qy]);return Ky(t,n_(t,0)),t.def.updateRenderer((function(t,n,r,...i){const o=t.def.nodes[n];return 0===e?Zy(t,o,r,i):t_(t,o,r,i),3&o.flags&&Ky(t,n_(t,n)),224&o.flags?rd(t,o.nodeIndex).value:void 0}),t)}function Zy(t,e,n,r){if(py(t,e,n,...r)){const o=1===n?r[0]:r;if(16384&e.flags){const n={};for(let t=0;t<e.bindings.length;t++){const r=e.bindings[t],s=o[t];8&r.flags&&(n[(i=r.nonMinifiedName,"ng-reflect-"+i.replace(/[$@]/g,"_").replace(ei,(...t)=>"-"+t[1].toLowerCase()))]=ni(s))}const r=e.parent,s=ed(t,r.nodeIndex).renderElement;if(r.element.name)for(let e in n){const r=n[e];null!=r?t.renderer.setAttribute(s,e,r):t.renderer.removeAttribute(s,e)}else t.renderer.setValue(s,"bindings="+JSON.stringify(n,null,2))}}var i}function t_(t,e,n,r){gy(t,e,n,...r)}function e_(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(16384&e.flags&&e.bindings&&e.bindings.length)return n}return null}function n_(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(3&e.flags&&e.bindings&&e.bindings.length)return n}return null}class r_{constructor(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];let n=this.nodeDef,r=t;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=_d(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return ed(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return df(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t}get references(){const t={};if(this.elDef){i_(this.elView,this.elDef,t);for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&i_(this.elView,n,t),e+=n.childCount}}return t}get componentRenderElement(){const t=function(t){for(;t&&!Sd(t);)t=t.parent;return t.parent?ed(t.parent,_d(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?wd(this.view,this.nodeDef):wd(this.elView,this.elDef)}logError(t,...e){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const i=function(t,e){let n=-1;for(let r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(n,r);let o=-1;n.factory(()=>(o++,o===i?t.error.bind(t,...e):ad)),o<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...e))}}function i_(t,e,n){for(let r in e.references)n[r]=Xv(t,e,e.references[r])}function o_(t,e,n,r){const i=qy,o=Xy,s=$y;try{qy=t;const a=e.apply(n,r);return Xy=o,$y=s,qy=i,a}catch(a){if($n(a)||!Xy)throw a;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Yh(t,e),t}(a,s_())}}function s_(){return Xy?new r_(Xy,$y):null}class a_{constructor(t){this.delegate=t}createRenderer(t,e){return new c_(this.delegate.createRenderer(t,e))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class c_{constructor(t){this.delegate=t,this.debugContextFactory=s_,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){const e=xv(t);!function(t){wv.delete(t.nativeNode)}(e),e instanceof uv&&(e.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,e){const n=this.delegate.createElement(t,e),r=this.createDebugContext(n);if(r){const e=new hv(n,null,r);e.name=t,Tv(e)}return n}createComment(t){const e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&Tv(new uv(e,null,n)),e}createText(t){const e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&Tv(new uv(e,null,n)),e}appendChild(t,e){const n=xv(t),r=xv(e);n&&r&&n instanceof hv&&n.addChild(r),this.delegate.appendChild(t,e)}insertBefore(t,e,n){const r=xv(t),i=xv(e),o=xv(n);r&&i&&r instanceof hv&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)}removeChild(t,e){const n=xv(t),r=xv(e);n&&r&&n instanceof hv&&n.removeChild(r),this.delegate.removeChild(t,e)}selectRootElement(t,e){const n=this.delegate.selectRootElement(t,e),r=s_();return r&&Tv(new hv(n,null,r)),n}setAttribute(t,e,n,r){const i=xv(t);i&&i instanceof hv&&(i.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){const r=xv(t);r&&r instanceof hv&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)}addClass(t,e){const n=xv(t);n&&n instanceof hv&&(n.classes[e]=!0),this.delegate.addClass(t,e)}removeClass(t,e){const n=xv(t);n&&n instanceof hv&&(n.classes[e]=!1),this.delegate.removeClass(t,e)}setStyle(t,e,n,r){const i=xv(t);i&&i instanceof hv&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){const r=xv(t);r&&r instanceof hv&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){const r=xv(t);r&&r instanceof hv&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)}listen(t,e,n){if("string"!=typeof t){const r=xv(t);r&&r.listeners.push(new lv(e,n))}return this.delegate.listen(t,e,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,e){return this.delegate.setValue(t,e)}}function l_(t){return Ty(),sd.overrideProvider(t)}function u_(t,e){return Ty(),sd.overrideComponentView(t,e)}function h_(){return Ty(),sd.clearOverrides()}function d_(t,e,n){return new f_(t,e,n)}class f_ extends _t{constructor(t,e,n){super(),this.moduleType=t,this._bootstrapComponents=e,this._ngModuleDefFactory=n}create(t){Ty();const e=function(t){const e=Array.from(t.providers),n=Array.from(t.modules),r={};for(const i in t.providersByKey)r[i]=t.providersByKey[i];return{factory:t.factory,scope:t.scope,providers:e,modules:n,providersByKey:r}}(Ad(this._ngModuleDefFactory));return sd.createNgModuleRef(this.moduleType,t||ta.NULL,this._bootstrapComponents,e)}}},ffpz:function(t,e,n){"use strict";e.Scheduler=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},fnxQ:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.sequenceEqual=function(t,e){return function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.compareTo,this.comparator))},t}();e.SequenceEqualOperator=o;var s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new a(e,i))),i}return r(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;try{o=n?n(r,i):r===i}catch(s){this.destination.error(s)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(i.Subscriber);e.SequenceEqualSubscriber=s;var a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(i.Subscriber)},fupu:function(t,e,n){var r=n("pzWd");t.exports=function(t){if(r(t))return!isNaN(t);throw new TypeError(toString.call(t)+" is not an instance of Date")}},"g/AU":function(t,e,n){var r=n("rxuJ");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("2fFW"),i=n("NJ4a");const o={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete(){}}},gTqA:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("6qA3"),o=n("EBtg");e.from=function(t,e){return e?o.scheduled(t,e):t instanceof r.Observable?t:new r.Observable(i.subscribeTo(t))}},gUhM:function(t,e){t.exports=function(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r+1),i.setHours(0,0,0,0),i}},gcYM:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),i=n("D0XW"),o=n("yuhW");function s(t,e=i.a,n=o.a){return r=>r.lift(new a(t,e,n.leading,n.trailing))}class a{constructor(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}call(t,e){return e.subscribe(new c(t,this.duration,this.scheduler,this.leading,this.trailing))}}class c extends r.a{constructor(t,e,n,r,i){super(t),this.duration=e,this.scheduler=n,this.leading=r,this.trailing=i,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(l,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function l(t){const{subscriber:e}=t;e.clearThrottle()}},gfz1:function(t,e,n){var r=n("yNUO"),i=n("tMf1"),o=n("RJeW");t.exports=function(t){var e=r(t),n=i(e).getTime()-o(e).getTime();return Math.round(n/6048e5)+1}},gtzJ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n("mrSG"),i=n("lW6c");function o(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var o=Object(i.b)();if(o&&o[t])return o[t].apply(o,Object(r.g)(e));throw new Error("No hub defined or "+t+" was not found on the hub, please open a bug report.")}function s(t,e){return o("captureException",t,{captureContext:e,originalException:t,syntheticException:new Error("Sentry syntheticException")})}function a(t,e){var n=new Error(t),i="string"!=typeof e?{captureContext:e}:void 0;return o("captureMessage",t,"string"==typeof e?e:void 0,Object(r.a)({originalException:t,syntheticException:n},i))}function c(t){o("withScope",t)}},gtzP:function(t,e,n){var r=n("tMf1");t.exports=function(t,e){var n=r(t),i=r(e),o=n.getTime()-6e4*n.getTimezoneOffset(),s=i.getTime()-6e4*i.getTimezoneOffset();return Math.round((o-s)/6048e5)}},gwEV:function(t,e,n){var r=n("F809");t.exports=function(t,e){var n=r(t,e)/3;return n>0?Math.floor(n):Math.ceil(n)}},gzDA:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.sample=function(t){return function(e){return e.lift(new o(t))}};var o=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new s(t),r=e.subscribe(n);return r.add(i.innerSubscribe(this.notifier,new i.SimpleInnerSubscriber(n))),r},t}(),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.SimpleOuterSubscriber)},hKy8:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HDdC"),i=n("quSY");function o(t,e){return new r.a(e?n=>{const r=Object.keys(t),o=new i.a;return o.add(e.schedule(s,0,{keys:r,index:0,subscriber:n,subscription:o,obj:t})),o}:e=>{const n=Object.keys(t);for(let r=0;r<n.length&&!e.closed;r++){const i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function s(t){const{keys:e,index:n,subscriber:r,subscription:i,obj:o}=t;if(!r.closed)if(n<e.length){const t=e[n];r.next([t,o[t]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}},hLnY:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t).getDay();return 0===e&&(e=7),e}},hh1I:function(t,e,n){var r=n("iWRJ"),i=n("tMf1");t.exports=function(t){var e=r(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var o=i(n);return o.setMilliseconds(o.getMilliseconds()-1),o}},i6Cy:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.bufferCount=function(t,e){return void 0===e&&(e=null),function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?a:s}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(i.Subscriber),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var s=r[o];s.push(t),s.length===e&&(r.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(i.Subscriber)},i6wd:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},iFGG:function(t,e,n){"use strict";var r=1,i=function(){return Promise.resolve()}(),o={};function s(t){return t in o&&(delete o[t],!0)}e.Immediate={setImmediate:function(t){var e=r++;return o[e]=!0,i.then((function(){return s(e)&&t()})),e},clearImmediate:function(t){s(t)}},e.TestTools={pending:function(){return Object.keys(o).length}}},iQJf:function(t,e,n){var r=n("/LN1");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},iUbB:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=Number(e);return n.setDate(n.getDate()+i),n}},iWRJ:function(t,e,n){var r=n("yNUO"),i=n("tMf1");t.exports=function(t){var e=r(t),n=e.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var s=i(o),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var c=i(a);return e.getTime()>=s.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1}},itXk:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var r=n("z+Ro"),i=n("DH7j"),o=n("l7GE"),s=n("ZUHj"),a=n("yCtX");const c={};function l(...t){let e=void 0,n=void 0;return Object(r.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(i.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends o.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(Object(s.a)(this,e,void 0,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const r=this.values,i=this.toRespond?r[n]===c?--this.toRespond:this.toRespond:0;r[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},iu1C:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=Number(e);return n.setMinutes(i),n}},jFrH:function(t,e,n){"use strict";var r=n("YK4L");e.min=function(t){return r.reduce("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}},jIFe:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getMilliseconds()}},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HDdC"),i=n("quSY");function o(t,e){return new r.a(n=>{const r=new i.a;let o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},jgNO:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("3jIQ"),i=n("Fr4G"),o=n("fXoL");let s=(()=>{class t{constructor(t,e){this._httpService=t,this._userService=e}static get isEnabled(){return t.enabled}static setListener(e){t.isEnabled&&(document.addEventListener("navigate",t=>{var n,r;if("string"==typeof(null===(n=t.detail)||void 0===n?void 0:n.path))try{e.navigate([t.detail.path],{queryParams:null===(r=t.detail)||void 0===r?void 0:r.params}),document.getElementsByTagName("body")[0].style.overflow=null}catch(i){console.warn("MobileAppService, navigationListener error: "+i)}}),document.addEventListener("community-offcanvas-visibility",t=>{var e,n;if("string"==typeof(null===(e=t.detail)||void 0===e?void 0:e.action))try{let e=document.getElementById("offcanvas-btn");switch(null===(n=t.detail)||void 0===n?void 0:n.action){case"toggle":e.click()}}catch(r){}}),document.addEventListener("dashboard-offcanvas-visibility",t=>{var e,n;if("string"==typeof(null===(e=t.detail)||void 0===e?void 0:e.action))try{let e=document.getElementById("course-list-menu-btn");switch(null===(n=t.detail)||void 0===n?void 0:n.action){case"toggle":e.click()}}catch(r){}}))}static get isMobileApp(){return!!t.isEnabled&&"1"===localStorage.getItem("is_mobile_app")}static get isMobileAppIos(){return!!t.isEnabled&&"ios"===localStorage.getItem("platform")}static get isMobileAppAndroid(){return!!t.isEnabled&&"android"===localStorage.getItem("platform")}static setIsMobileApp(){if(!t.isEnabled)return!1;const e=new URLSearchParams(window.location.search),n=e.get("platform");"ios"!==n&&"undefined"!==n&&n?"android"===n&&localStorage.setItem("platform","android"):localStorage.setItem("platform","ios"),"1"===e.get("is_mobile_app")&&localStorage.setItem("is_mobile_app","1")}static toCourseInfoPage(e){if(!t.isEnabled)return;const n=Boolean(e.landing_id),r=JSON.stringify({action:"open-url",tag:n?"other-course":"landing",url:n?"/customer/other-course?course_id="+e.id:e.url});t.notifyApp(r)}static returnFromCourseInfoPage(){if(!t.isEnabled)return;const e=JSON.stringify({action:"close"});t.notifyApp(e)}static notifyApp(e){t.isEnabled&&void 0!==window.AppChannel&&window.AppChannel.postMessage(e)}static inAppPuchase(e){t.isEnabled&&void 0!==window.InAppPurchase&&window.InAppPurchase.postMessage(e)}runCodemagic(t,e){const n=JSON.stringify({id:e,token:this._userService.token});return this._httpService.entityApiPost(`app_request/integration/codemagic/${t}/build`,n)}}return t.enabled=!0,t.\u0275fac=function(e){return new(e||t)(o["\u0275\u0275inject"](r.a),o["\u0275\u0275inject"](i.a))},t.\u0275prov=o["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return H})),n.d(e,"e",(function(){return G})),n.d(e,"f",(function(){return F})),n.d(e,"g",(function(){return w}));var r=n("ofXK"),i=n("fXoL");class o extends r.P{constructor(){super()}supportsDOMEvents(){return!0}}class s extends o{static makeCurrent(){Object(r.T)(new s)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(r.S)(document.cookie,t)}}let a,c=null;const l=new i.InjectionToken("TRANSITION_ID"),u=[{provide:i.APP_INITIALIZER,useFactory:function(t,e,n){return()=>{n.get(i.ApplicationInitStatus).donePromise.then(()=>{const n=Object(r.R)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,r.e,i.Injector],multi:!0}];class h{static init(){Object(i.setTestabilityGetter)(new h)}addToWindow(t){i["\u0275global"].getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},i["\u0275global"].getAllAngularTestabilities=()=>t.getAllTestabilities(),i["\u0275global"].getAllAngularRootElements=()=>t.getAllRootElements(),i["\u0275global"].frameworkStabilizers||(i["\u0275global"].frameworkStabilizers=[]),i["\u0275global"].frameworkStabilizers.push(t=>{const e=i["\u0275global"].getAllAngularTestabilities();let n=e.length,r=!1;const o=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(o)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?Object(r.R)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new i.InjectionToken("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](d),i["\u0275\u0275inject"](i.NgZone))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class p{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=Object(r.R)().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let m=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(r.R)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.e))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function y(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?y(t,i,n):(i=i.replace(v,t),n.push(i))}return n}function _(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new S(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case i.ViewEncapsulation.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new x(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case i.ViewEncapsulation.Native:case i.ViewEncapsulation.ShadowDom:return new C(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](f),i["\u0275\u0275inject"](g),i["\u0275\u0275inject"](i.APP_ID))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class S{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const i=b[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=b[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&i.RendererStyleFlags2.DashCase?t.style.setProperty(e,n,r&i.RendererStyleFlags2.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&i.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,_(n)):this.eventManager.addEventListener(t,e,_(n))}}class x extends S{constructor(t,e,n,r){super(t),this.component=n;const i=y(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(v,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(v,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class C extends S{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===i.ViewEncapsulation.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const o=y(r.id,r.styles,[]);for(let i=0;i<o.length;i++){const t=document.createElement("style");t.textContent=o[i],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let O=(()=>{class t extends p{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.e))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],k={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},A={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},D={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let j=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const o=t.parseEventName(n),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.R)().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if(E.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&A.hasOwnProperty(e)&&(e=A[e]))}return k[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(r=>{r!=n&&(0,D[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.e))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return Object(i["\u0275\u0275inject"])(M)},token:t,providedIn:"root"}),t})();function P(t){return new M(t.get(r.e))}let M=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case i.SecurityContext.NONE:return e;case i.SecurityContext.HTML:return Object(i["\u0275allowSanitizationBypassAndThrow"])(e,"HTML")?Object(i["\u0275unwrapSafeValue"])(e):Object(i["\u0275_sanitizeHtml"])(this._doc,String(e));case i.SecurityContext.STYLE:return Object(i["\u0275allowSanitizationBypassAndThrow"])(e,"Style")?Object(i["\u0275unwrapSafeValue"])(e):Object(i["\u0275_sanitizeStyle"])(e);case i.SecurityContext.SCRIPT:if(Object(i["\u0275allowSanitizationBypassAndThrow"])(e,"Script"))return Object(i["\u0275unwrapSafeValue"])(e);throw new Error("unsafe value used in a script context");case i.SecurityContext.URL:return Object(i["\u0275getSanitizationBypassType"])(e),Object(i["\u0275allowSanitizationBypassAndThrow"])(e,"URL")?Object(i["\u0275unwrapSafeValue"])(e):Object(i["\u0275_sanitizeUrl"])(String(e));case i.SecurityContext.RESOURCE_URL:if(Object(i["\u0275allowSanitizationBypassAndThrow"])(e,"ResourceURL"))return Object(i["\u0275unwrapSafeValue"])(e);throw 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)`)}}bypassSecurityTrustHtml(t){return Object(i["\u0275bypassSanitizationTrustHtml"])(t)}bypassSecurityTrustStyle(t){return Object(i["\u0275bypassSanitizationTrustStyle"])(t)}bypassSecurityTrustScript(t){return Object(i["\u0275bypassSanitizationTrustScript"])(t)}bypassSecurityTrustUrl(t){return Object(i["\u0275bypassSanitizationTrustUrl"])(t)}bypassSecurityTrustResourceUrl(t){return Object(i["\u0275bypassSanitizationTrustResourceUrl"])(t)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.e))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return P(Object(i["\u0275\u0275inject"])(i.INJECTOR))},token:t,providedIn:"root"}),t})();const N=[{provide:i.PLATFORM_ID,useValue:r.Q},{provide:i.PLATFORM_INITIALIZER,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:r.e,useFactory:function(){return Object(i["\u0275setDocument"])(document),document},deps:[]}],F=Object(i.createPlatformFactory)(i.platformCore,"browser",N),R=[[],{provide:i["\u0275INJECTOR_SCOPE"],useValue:"root"},{provide:i.ErrorHandler,useFactory:function(){return new i.ErrorHandler},deps:[]},{provide:d,useClass:O,multi:!0,deps:[r.e,i.NgZone,i.PLATFORM_ID]},{provide:d,useClass:j,multi:!0,deps:[r.e]},[],{provide:w,useClass:w,deps:[f,g,i.APP_ID]},{provide:i.RendererFactory2,useExisting:w},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[r.e]},{provide:i.Testability,useClass:i.Testability,deps:[i.NgZone]},{provide:f,useClass:f,deps:[d,i.NgZone]},[]];let L=(()=>{class t{constructor(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.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:i.APP_ID,useValue:e.appId},{provide:l,useExisting:i.APP_ID},u]}}}return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)(i["\u0275\u0275inject"](t,12))},providers:R,imports:[r.c,i.ApplicationModule]}),t})();function V(){return new H(Object(i["\u0275\u0275inject"])(r.e))}let H=(()=>{class t{constructor(t){this._doc=t,this._dom=Object(r.R)()}addTag(t,e=!1){return t?this._getOrCreateElement(t,e):null}addTags(t,e=!1){return t?t.reduce((t,n)=>(n&&t.push(this._getOrCreateElement(n,e)),t),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const e=this._doc.querySelectorAll(`meta[${t}]`);return e?[].slice.call(e):[]}updateTag(t,e){if(!t)return null;e=e||this._parseSelector(t);const n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,e=!1){if(!e){const e=this._parseSelector(t),n=this.getTag(e);if(n&&this._containsAttributes(t,n))return n}const n=this._dom.createElement("meta");return this._setMetaElementAttributes(t,n),this._doc.getElementsByTagName("head")[0].appendChild(n),n}_setMetaElementAttributes(t,e){return Object.keys(t).forEach(n=>e.setAttribute(n,t[n])),e}_parseSelector(t){const e=t.name?"name":"property";return`${e}="${t[e]}"`}_containsAttributes(t,e){return Object.keys(t).every(n=>e.getAttribute(n)===t[n])}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.e))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:V,token:t,providedIn:"root"}),t})();function B(){return new G(Object(i["\u0275\u0275inject"])(r.e))}let G=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.e))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:B,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},jtHE:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("XNiG"),i=n("qgXg"),o=n("quSY"),s=n("pxpQ"),a=n("9ppp"),c=n("Ylt2");class l extends r.b{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new u(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let l;if(this.closed)throw new a.a;if(this.isStopped||this.hasError?l=o.a.EMPTY:(this.observers.push(t),l=new c.a(this,t)),r&&t.add(t=new s.a(t,r)),e)for(let o=0;o<i&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),l}_getNow(){return(this.scheduler||i.a).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let o=0;for(;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}class u{constructor(t,e){this.time=t,this.value=e}}},kC7l:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getTime()}},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kOWh:function(t,e){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];t.exports=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);var i=n.concat(e).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+i.join("|")+"|.)","g")}},kRN8:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=Number(e);return n.setSeconds(i),n}},kU1M:function(t,e,n){"use strict";n.r(e),n.d(e,"audit",(function(){return r.a})),n.d(e,"auditTime",(function(){return i.a})),n.d(e,"buffer",(function(){return o.a})),n.d(e,"bufferCount",(function(){return s.a})),n.d(e,"bufferTime",(function(){return a.a})),n.d(e,"bufferToggle",(function(){return c.a})),n.d(e,"bufferWhen",(function(){return l.a})),n.d(e,"catchError",(function(){return u.a})),n.d(e,"combineAll",(function(){return h.a})),n.d(e,"combineLatest",(function(){return m})),n.d(e,"concat",(function(){return b})),n.d(e,"concatAll",(function(){return v.a})),n.d(e,"concatMap",(function(){return y.a})),n.d(e,"concatMapTo",(function(){return _.a})),n.d(e,"count",(function(){return w.a})),n.d(e,"debounce",(function(){return S.a})),n.d(e,"debounceTime",(function(){return x.a})),n.d(e,"defaultIfEmpty",(function(){return C.a})),n.d(e,"delay",(function(){return O.a})),n.d(e,"delayWhen",(function(){return T.a})),n.d(e,"dematerialize",(function(){return E.a})),n.d(e,"distinct",(function(){return k.a})),n.d(e,"distinctUntilChanged",(function(){return A.a})),n.d(e,"distinctUntilKeyChanged",(function(){return D.a})),n.d(e,"elementAt",(function(){return j.a})),n.d(e,"endWith",(function(){return I.a})),n.d(e,"every",(function(){return P.a})),n.d(e,"exhaust",(function(){return M.a})),n.d(e,"exhaustMap",(function(){return N.a})),n.d(e,"expand",(function(){return F.a})),n.d(e,"filter",(function(){return R.a})),n.d(e,"finalize",(function(){return L.a})),n.d(e,"find",(function(){return V.b})),n.d(e,"findIndex",(function(){return H.a})),n.d(e,"first",(function(){return B.a})),n.d(e,"groupBy",(function(){return G.b})),n.d(e,"ignoreElements",(function(){return z.a})),n.d(e,"isEmpty",(function(){return W.a})),n.d(e,"last",(function(){return U.a})),n.d(e,"map",(function(){return q.a})),n.d(e,"mapTo",(function(){return X.a})),n.d(e,"materialize",(function(){return $.a})),n.d(e,"max",(function(){return K.a})),n.d(e,"merge",(function(){return Q})),n.d(e,"mergeAll",(function(){return J.a})),n.d(e,"mergeMap",(function(){return Z.b})),n.d(e,"flatMap",(function(){return Z.a})),n.d(e,"mergeMapTo",(function(){return tt.a})),n.d(e,"mergeScan",(function(){return et.a})),n.d(e,"min",(function(){return nt.a})),n.d(e,"multicast",(function(){return rt.a})),n.d(e,"observeOn",(function(){return it.b})),n.d(e,"onErrorResumeNext",(function(){return ot.a})),n.d(e,"pairwise",(function(){return st.a})),n.d(e,"partition",(function(){return at.a})),n.d(e,"pluck",(function(){return ct.a})),n.d(e,"publish",(function(){return lt.a})),n.d(e,"publishBehavior",(function(){return ut.a})),n.d(e,"publishLast",(function(){return ht.a})),n.d(e,"publishReplay",(function(){return dt.a})),n.d(e,"race",(function(){return ft.a})),n.d(e,"reduce",(function(){return pt.a})),n.d(e,"repeat",(function(){return mt.a})),n.d(e,"repeatWhen",(function(){return gt.a})),n.d(e,"retry",(function(){return bt.a})),n.d(e,"retryWhen",(function(){return vt.a})),n.d(e,"refCount",(function(){return yt.a})),n.d(e,"sample",(function(){return _t.a})),n.d(e,"sampleTime",(function(){return wt.a})),n.d(e,"scan",(function(){return St.a})),n.d(e,"sequenceEqual",(function(){return xt.a})),n.d(e,"share",(function(){return Ct.a})),n.d(e,"shareReplay",(function(){return Ot.a})),n.d(e,"single",(function(){return Tt.a})),n.d(e,"skip",(function(){return Et.a})),n.d(e,"skipLast",(function(){return kt.a})),n.d(e,"skipUntil",(function(){return At.a})),n.d(e,"skipWhile",(function(){return Dt.a})),n.d(e,"startWith",(function(){return jt.a})),n.d(e,"subscribeOn",(function(){return It.a})),n.d(e,"switchAll",(function(){return Pt.a})),n.d(e,"switchMap",(function(){return Mt.a})),n.d(e,"switchMapTo",(function(){return Nt.a})),n.d(e,"take",(function(){return Ft.a})),n.d(e,"takeLast",(function(){return Rt.a})),n.d(e,"takeUntil",(function(){return Lt.a})),n.d(e,"takeWhile",(function(){return Vt.a})),n.d(e,"tap",(function(){return Ht.a})),n.d(e,"throttle",(function(){return Bt.b})),n.d(e,"throttleTime",(function(){return Gt.a})),n.d(e,"throwIfEmpty",(function(){return zt.a})),n.d(e,"timeInterval",(function(){return Wt.a})),n.d(e,"timeout",(function(){return Ut.a})),n.d(e,"timeoutWith",(function(){return qt.a})),n.d(e,"timestamp",(function(){return Xt.a})),n.d(e,"toArray",(function(){return $t.a})),n.d(e,"window",(function(){return Kt.a})),n.d(e,"windowCount",(function(){return Yt.a})),n.d(e,"windowTime",(function(){return Qt.a})),n.d(e,"windowToggle",(function(){return Jt.a})),n.d(e,"windowWhen",(function(){return Zt.a})),n.d(e,"withLatestFrom",(function(){return te.a})),n.d(e,"zip",(function(){return ne})),n.d(e,"zipAll",(function(){return re.a}));var r=n("tnsW"),i=n("3UWI"),o=n("p9/F"),s=n("9M8c"),a=n("OsX3"),c=n("FD9M"),l=n("PfrF"),u=n("JIr8"),h=n("7wxJ"),d=n("DH7j"),f=n("itXk"),p=n("Cfvw");function m(...t){let e=null;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(d.a)(t[0])&&(t=t[0].slice()),n=>n.lift.call(Object(p.a)([n,...t]),new f.a(e))}var g=n("GyhO");function b(...t){return e=>e.lift.call(Object(g.a)(e,...t))}var v=n("0EUg"),y=n("bOdf"),_=n("q7zd"),w=n("HrJb"),S=n("6eBy"),x=n("Kj3r"),C=n("xbPD"),O=n("3E0/"),T=n("coGc"),E=n("kgNN"),k=n("02Lk"),A=n("/uUt"),D=n("PZkE"),j=n("9ihq"),I=n("0Pi8"),P=n("Gi4w"),M=n("zt7V"),N=n("XqQ8"),F=n("FQpF"),R=n("pLZG"),L=n("nYR2"),V=n("cBqT"),H=n("K7De"),B=n("SxV6"),G=n("OQgR"),z=n("4A3s"),W=n("m2j4"),U=n("NJ9Y"),q=n("lJxs"),X=n("CqXF"),$=n("dkDA"),K=n("yI9Y"),Y=n("VRyK");function Q(...t){return e=>e.lift.call(Object(Y.a)(e,...t))}var J=n("bHdf"),Z=n("5+tZ"),tt=n("UXbc"),et=n("51Bx"),nt=n("FZB8"),rt=n("oB13"),it=n("pxpQ"),ot=n("uTdr"),st=n("Zy1z"),at=n("A3iJ"),ct=n("wO+i"),lt=n("NfdI"),ut=n("UGaM"),ht=n("qZ0a"),dt=n("05l1"),ft=n("4f8F"),pt=n("128B"),mt=n("/d8p"),gt=n("Gqsl"),bt=n("un/a"),vt=n("MtjB"),yt=n("x+ZX"),_t=n("c6ID"),wt=n("1Ykd"),St=n("Kqap"),xt=n("Zyez"),Ct=n("w1tV"),Ot=n("UXun"),Tt=n("cx9U"),Et=n("zP0r"),kt=n("kagm"),At=n("vqkR"),Dt=n("32Ea"),jt=n("JX91"),It=n("tf+s"),Pt=n("Y6wi"),Mt=n("eIep"),Nt=n("aGrj"),Ft=n("IzEk"),Rt=n("BFxc"),Lt=n("1G5W"),Vt=n("GJmQ"),Ht=n("vkgz"),Bt=n("yuhW"),Gt=n("gcYM"),zt=n("XDbj"),Wt=n("4hIw"),Ut=n("tS1D"),qt=n("syX2"),Xt=n("r0WS"),$t=n("IAdc"),Kt=n("mk5/"),Yt=n("lpKW"),Qt=n("UHp3"),Jt=n("sTY7"),Zt=n("pXlZ"),te=n("zp1y"),ee=n("1uah");function ne(...t){return function(e){return e.lift.call(Object(ee.b)(e,...t))}}var re=n("JmF6")},kagm:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("4I5i");function o(t){return e=>e.lift(new s(t))}class s{constructor(t){if(this._skipCount=t,this._skipCount<0)throw new i.a}call(t,e){return e.subscribe(0===this._skipCount?new r.a(t):new a(t,this._skipCount))}}class a extends r.a{constructor(t,e){super(t),this._skipCount=e,this._count=0,this._ring=new Array(e)}_next(t){const e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{const r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}}}},kdvv:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"a",(function(){return h}));var r=n("z+RT"),i=n("+A1k"),o={nowSeconds:function(){return Date.now()/1e3}},s=Object(i.b)()?function(){try{return Object(i.a)(t,"perf_hooks").performance}catch(e){return}}():function(){var t=Object(r.a)().performance;if(t&&t.now)return{now:function(){return t.now()},timeOrigin:Date.now()-t.now()}}(),a=void 0===s?o:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},c=o.nowSeconds.bind(o),l=a.nowSeconds.bind(a),u=l,h=function(){var t=Object(r.a)().performance;if(t&&t.now){var e=t.now(),n=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,o=i<36e5,s=t.timing&&t.timing.navigationStart,a="number"==typeof s?Math.abs(s+e-n):36e5;return o||a<36e5?i<=a?t.timeOrigin:s:n}}()}).call(this,n("3UD+")(t))},kgNN:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){return function(t){return t.lift(new o)}}class o{call(t,e){return e.subscribe(new s(t))}}class s extends r.a{constructor(t){super(t)}_next(t){t.observe(this.destination)}}},kmnG:function(t,e,n){"use strict";n.d(e,"a",(function(){return Y})),n.d(e,"b",(function(){return F})),n.d(e,"c",(function(){return Q})),n.d(e,"d",(function(){return L})),n.d(e,"e",(function(){return J})),n.d(e,"f",(function(){return B})),n.d(e,"g",(function(){return G})),n.d(e,"h",(function(){return z})),n.d(e,"i",(function(){return W})),n.d(e,"j",(function(){return U}));var r=n("GU7r"),i=n("ofXK"),o=n("fXoL"),s=n("FKr1"),a=n("8LU1"),c=n("XNiG"),l=n("VRyK"),u=n("xgIS"),h=n("JX91"),d=n("1G5W"),f=n("IzEk"),p=n("R0Ic"),m=n("R1ws"),g=n("cH1L"),b=n("nLfN");const v=["underline"],y=["connectionContainer"],_=["inputContainer"],w=["label"];function S(t,e){1&t&&(o["\u0275\u0275elementContainerStart"](0),o["\u0275\u0275elementStart"](1,"div",14),o["\u0275\u0275element"](2,"div",15),o["\u0275\u0275element"](3,"div",16),o["\u0275\u0275element"](4,"div",17),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementStart"](5,"div",18),o["\u0275\u0275element"](6,"div",15),o["\u0275\u0275element"](7,"div",16),o["\u0275\u0275element"](8,"div",17),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementContainerEnd"]())}function x(t,e){1&t&&(o["\u0275\u0275elementStart"](0,"div",19),o["\u0275\u0275projection"](1,1),o["\u0275\u0275elementEnd"]())}function C(t,e){if(1&t&&(o["\u0275\u0275elementContainerStart"](0),o["\u0275\u0275projection"](1,2),o["\u0275\u0275elementStart"](2,"span"),o["\u0275\u0275text"](3),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementContainerEnd"]()),2&t){const t=o["\u0275\u0275nextContext"](2);o["\u0275\u0275advance"](3),o["\u0275\u0275textInterpolate"](t._control.placeholder)}}function O(t,e){1&t&&o["\u0275\u0275projection"](0,3,["*ngSwitchCase","true"])}function T(t,e){1&t&&(o["\u0275\u0275elementStart"](0,"span",23),o["\u0275\u0275text"](1," *"),o["\u0275\u0275elementEnd"]())}function E(t,e){if(1&t){const t=o["\u0275\u0275getCurrentView"]();o["\u0275\u0275elementStart"](0,"label",20,21),o["\u0275\u0275listener"]("cdkObserveContent",(function(){return o["\u0275\u0275restoreView"](t),o["\u0275\u0275nextContext"]().updateOutlineGap()})),o["\u0275\u0275template"](2,C,4,1,"ng-container",12),o["\u0275\u0275template"](3,O,1,0,void 0,12),o["\u0275\u0275template"](4,T,2,0,"span",22),o["\u0275\u0275elementEnd"]()}if(2&t){const t=o["\u0275\u0275nextContext"]();o["\u0275\u0275classProp"]("mat-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),o["\u0275\u0275property"]("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),o["\u0275\u0275attribute"]("for",t._control.id)("aria-owns",t._control.id),o["\u0275\u0275advance"](2),o["\u0275\u0275property"]("ngSwitchCase",!1),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngSwitchCase",!0),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function k(t,e){1&t&&(o["\u0275\u0275elementStart"](0,"div",24),o["\u0275\u0275projection"](1,4),o["\u0275\u0275elementEnd"]())}function A(t,e){if(1&t&&(o["\u0275\u0275elementStart"](0,"div",25,26),o["\u0275\u0275element"](2,"span",27),o["\u0275\u0275elementEnd"]()),2&t){const t=o["\u0275\u0275nextContext"]();o["\u0275\u0275advance"](2),o["\u0275\u0275classProp"]("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function D(t,e){if(1&t&&(o["\u0275\u0275elementStart"](0,"div"),o["\u0275\u0275projection"](1,5),o["\u0275\u0275elementEnd"]()),2&t){const t=o["\u0275\u0275nextContext"]();o["\u0275\u0275property"]("@transitionMessages",t._subscriptAnimationState)}}function j(t,e){if(1&t&&(o["\u0275\u0275elementStart"](0,"div",31),o["\u0275\u0275text"](1),o["\u0275\u0275elementEnd"]()),2&t){const t=o["\u0275\u0275nextContext"](2);o["\u0275\u0275property"]("id",t._hintLabelId),o["\u0275\u0275advance"](1),o["\u0275\u0275textInterpolate"](t.hintLabel)}}function I(t,e){if(1&t&&(o["\u0275\u0275elementStart"](0,"div",28),o["\u0275\u0275template"](1,j,2,2,"div",29),o["\u0275\u0275projection"](2,6),o["\u0275\u0275element"](3,"div",30),o["\u0275\u0275projection"](4,7),o["\u0275\u0275elementEnd"]()),2&t){const t=o["\u0275\u0275nextContext"]();o["\u0275\u0275property"]("@transitionMessages",t._subscriptAnimationState),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngIf",t.hintLabel)}}const P=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],M=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0,F=(()=>{class t{constructor(){this.id="mat-error-"+N++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o["\u0275\u0275defineDirective"]({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&o["\u0275\u0275attribute"]("id",e.id)},inputs:{id:"id"}}),t})();const R={transitionMessages:Object(p.n)("transitionMessages",[Object(p.k)("enter",Object(p.l)({opacity:1,transform:"translateY(0%)"})),Object(p.m)("void => enter",[Object(p.l)({opacity:0,transform:"translateY(-100%)"}),Object(p.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o["\u0275\u0275defineDirective"]({type:t}),t})();function V(t){return Error(`A hint was already declared for 'align="${t}"'.`)}let H=0,B=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+H++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o["\u0275\u0275defineDirective"]({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(o["\u0275\u0275attribute"]("id",e.id)("align",null),o["\u0275\u0275classProp"]("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o["\u0275\u0275defineDirective"]({type:t,selectors:[["mat-label"]]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o["\u0275\u0275defineDirective"]({type:t,selectors:[["mat-placeholder"]]}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o["\u0275\u0275defineDirective"]({type:t,selectors:[["","matPrefix",""]]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o["\u0275\u0275defineDirective"]({type:t,selectors:[["","matSuffix",""]]}),t})(),q=0;class X{constructor(t){this._elementRef=t}}const $=Object(s.q)(X,"primary"),K=new o.InjectionToken("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Y=new o.InjectionToken("MatFormField");let Q=(()=>{class t extends ${constructor(t,e,n,r,i,o,s,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=r,this._defaults=i,this._platform=o,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.b,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+q++,this._labelId="mat-form-field-label-"+q++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=i&&i.appearance?i.appearance:"legacy",this._hideRequiredMarker=!(!i||null==i.hideRequiredMarker)&&i.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(a.c)(t)}get _shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}get _canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}get _labelChild(){return this._labelChildNonStatic||this._labelChildStatic}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Object(h.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.asObservable().pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(h.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!!this._labelChild}_shouldLabelFloat(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(u.a)(this._label.nativeElement,"transitionend").pipe(Object(f.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){if(this._hintChildren){let t,e;this._hintChildren.forEach(n=>{if("start"===n.align){if(t||this.hintLabel)throw V("start");t=n}else if("end"===n.align){if(e)throw V("end");e=n}})}}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if("hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const r=this._connectionContainerRef.nativeElement,i=r.querySelectorAll(".mat-form-field-outline-start"),o=r.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const i=r.getBoundingClientRect();if(0===i.width&&0===i.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const o=this._getStartEnd(i),s=this._getStartEnd(t.children[0].getBoundingClientRect());let a=0;for(const e of t.children)a+=e.offsetWidth;e=Math.abs(s-o)-5,n=a>0?.75*a+10:0}for(let s=0;s<i.length;s++)i[s].style.width=e+"px";for(let s=0;s<o.length;s++)o[s].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(o["\u0275\u0275directiveInject"](o.ElementRef),o["\u0275\u0275directiveInject"](o.ChangeDetectorRef),o["\u0275\u0275directiveInject"](s.d,8),o["\u0275\u0275directiveInject"](g.c,8),o["\u0275\u0275directiveInject"](K,8),o["\u0275\u0275directiveInject"](b.a),o["\u0275\u0275directiveInject"](o.NgZone),o["\u0275\u0275directiveInject"](m.a,8))},t.\u0275cmp=o["\u0275\u0275defineComponent"]({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var r;1&t&&(o["\u0275\u0275contentQuery"](n,L,!0),o["\u0275\u0275staticContentQuery"](n,L,!0),o["\u0275\u0275contentQuery"](n,G,!0),o["\u0275\u0275staticContentQuery"](n,G,!0),o["\u0275\u0275contentQuery"](n,z,!0),o["\u0275\u0275contentQuery"](n,F,!0),o["\u0275\u0275contentQuery"](n,B,!0),o["\u0275\u0275contentQuery"](n,W,!0),o["\u0275\u0275contentQuery"](n,U,!0)),2&t&&(o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._controlNonStatic=r.first),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._controlStatic=r.first),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._labelChildNonStatic=r.first),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._labelChildStatic=r.first),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._placeholderChild=r.first),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._errorChildren=r),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._hintChildren=r),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._prefixChildren=r),o["\u0275\u0275queryRefresh"](r=o["\u0275\u0275loadQuery"]())&&(e._suffixChildren=r))},viewQuery:function(t,e){var n;1&t&&(o["\u0275\u0275viewQuery"](v,!0),o["\u0275\u0275staticViewQuery"](y,!0),o["\u0275\u0275viewQuery"](_,!0),o["\u0275\u0275viewQuery"](w,!0)),2&t&&(o["\u0275\u0275queryRefresh"](n=o["\u0275\u0275loadQuery"]())&&(e.underlineRef=n.first),o["\u0275\u0275queryRefresh"](n=o["\u0275\u0275loadQuery"]())&&(e._connectionContainerRef=n.first),o["\u0275\u0275queryRefresh"](n=o["\u0275\u0275loadQuery"]())&&(e._inputContainerRef=n.first),o["\u0275\u0275queryRefresh"](n=o["\u0275\u0275loadQuery"]())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&o["\u0275\u0275classProp"]("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat)("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[o["\u0275\u0275ProvidersFeature"]([{provide:Y,useExisting:t}]),o["\u0275\u0275InheritDefinitionFeature"]],ngContentSelectors:M,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,e){1&t&&(o["\u0275\u0275projectionDef"](P),o["\u0275\u0275elementStart"](0,"div",0),o["\u0275\u0275elementStart"](1,"div",1,2),o["\u0275\u0275listener"]("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),o["\u0275\u0275template"](3,S,9,0,"ng-container",3),o["\u0275\u0275template"](4,x,2,0,"div",4),o["\u0275\u0275elementStart"](5,"div",5,6),o["\u0275\u0275projection"](7),o["\u0275\u0275elementStart"](8,"span",7),o["\u0275\u0275template"](9,E,5,16,"label",8),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"](),o["\u0275\u0275template"](10,k,2,0,"div",9),o["\u0275\u0275elementEnd"](),o["\u0275\u0275template"](11,A,3,4,"div",10),o["\u0275\u0275elementStart"](12,"div",11),o["\u0275\u0275template"](13,D,2,1,"div",12),o["\u0275\u0275template"](14,I,5,2,"div",13),o["\u0275\u0275elementEnd"](),o["\u0275\u0275elementEnd"]()),2&t&&(o["\u0275\u0275advance"](3),o["\u0275\u0275property"]("ngIf","outline"==e.appearance),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngIf",e._prefixChildren.length),o["\u0275\u0275advance"](5),o["\u0275\u0275property"]("ngIf",e._hasFloatingLabel()),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngIf",e._suffixChildren.length),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngIf","outline"!=e.appearance),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngSwitch",e._getDisplayedMessages()),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngSwitchCase","error"),o["\u0275\u0275advance"](1),o["\u0275\u0275property"]("ngSwitchCase","hint"))},directives:[i.u,i.y,i.z,r.a],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[R.transitionMessages]},changeDetection:0}),t})(),J=(()=>{class t{}return t.\u0275mod=o["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=o["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[i.c,s.g,r.c],s.g]}),t})()},l0SJ:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setHours(23,59,59,999),e}},l5mm:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("D0XW"),o=n("Y7HM");function s(t=0,e=i.a){return(!Object(o.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=i.a),new r.a(n=>(n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n))}function a(t){const{subscriber:e,counter:n,period:r}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}},"l6+5":function(t,e,n){var r=n("L/99");t.exports=function(t){return r(new Date,t)}},l7GE:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");class i extends r.a{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lCuP:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return e.setDate(1),e.setHours(0,0,0,0),e}},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(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 o(t,e))}}class o{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}class s extends r.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},lTB2:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=Number(e);return n.setMonth(0),n.setDate(i),n}},lW6c:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"c",(function(){return f})),n.d(e,"b",(function(){return m}));var r=n("mrSG"),i=n("9/Zf"),o=n("kdvv"),s=n("8LbN"),a=n("z+RT"),c=n("+A1k"),l="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,u=n("KjyA"),h=n("xS++"),d=function(){function t(t,e,n){void 0===e&&(e=new u.a),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version<t},t.prototype.bindClient=function(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()},t.prototype.pushScope=function(){var t=u.a.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t},t.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},t.prototype.withScope=function(t){var e=this.pushScope();try{t(e)}finally{this.popScope()}},t.prototype.getClient=function(){return this.getStackTop().client},t.prototype.getScope=function(){return this.getStackTop().scope},t.prototype.getStack=function(){return this._stack},t.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},t.prototype.captureException=function(t,e){var n=this._lastEventId=e&&e.event_id?e.event_id:Object(i.g)(),o=e;if(!e){var s=void 0;try{throw new Error("Sentry syntheticException")}catch(t){s=t}o={originalException:t,syntheticException:s}}return this._invokeClient("captureException",t,Object(r.a)(Object(r.a)({},o),{event_id:n})),n},t.prototype.captureMessage=function(t,e,n){var o=this._lastEventId=n&&n.event_id?n.event_id:Object(i.g)(),s=n;if(!n){var a=void 0;try{throw new Error(t)}catch(c){a=c}s={originalException:t,syntheticException:a}}return this._invokeClient("captureMessage",t,e,Object(r.a)(Object(r.a)({},s),{event_id:o})),o},t.prototype.captureEvent=function(t,e){var n=e&&e.event_id?e.event_id:Object(i.g)();return"transaction"!==t.type&&(this._lastEventId=n),this._invokeClient("captureEvent",t,Object(r.a)(Object(r.a)({},e),{event_id:n})),n},t.prototype.lastEventId=function(){return this._lastEventId},t.prototype.addBreadcrumb=function(t,e){var n=this.getStackTop(),i=n.scope,a=n.client;if(i&&a){var c=a.getOptions&&a.getOptions()||{},l=c.beforeBreadcrumb,u=void 0===l?null:l,h=c.maxBreadcrumbs,d=void 0===h?100:h;if(!(d<=0)){var f=Object(o.b)(),p=Object(r.a)({timestamp:f},t),m=u?Object(s.b)((function(){return u(p,e)})):p;null!==m&&i.addBreadcrumb(m,d)}}},t.prototype.setUser=function(t){var e=this.getScope();e&&e.setUser(t)},t.prototype.setTags=function(t){var e=this.getScope();e&&e.setTags(t)},t.prototype.setExtras=function(t){var e=this.getScope();e&&e.setExtras(t)},t.prototype.setTag=function(t,e){var n=this.getScope();n&&n.setTag(t,e)},t.prototype.setExtra=function(t,e){var n=this.getScope();n&&n.setExtra(t,e)},t.prototype.setContext=function(t,e){var n=this.getScope();n&&n.setContext(t,e)},t.prototype.configureScope=function(t){var e=this.getStackTop(),n=e.scope;n&&e.client&&t(n)},t.prototype.run=function(t){var e=p(this);try{t(this)}finally{p(e)}},t.prototype.getIntegration=function(t){var e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(n){return l&&s.c.warn("Cannot retrieve integration "+t.id+" from the current Hub"),null}},t.prototype.startSpan=function(t){return this._callExtensionMethod("startSpan",t)},t.prototype.startTransaction=function(t,e){return this._callExtensionMethod("startTransaction",t,e)},t.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},t.prototype.captureSession=function(t){if(void 0===t&&(t=!1),t)return this.endSession();this._sendSessionUpdate()},t.prototype.endSession=function(){var t=this.getStackTop(),e=t&&t.scope,n=e&&e.getSession();n&&n.close(),this._sendSessionUpdate(),e&&e.setSession()},t.prototype.startSession=function(t){var e=this.getStackTop(),n=e.scope,i=e.client,o=i&&i.getOptions()||{},s=o.release,c=o.environment,l=(Object(a.a)().navigator||{}).userAgent,u=new h.a(Object(r.a)(Object(r.a)(Object(r.a)({release:s,environment:c},n&&{user:n.getUser()}),l&&{userAgent:l}),t));if(n){var d=n.getSession&&n.getSession();d&&"ok"===d.status&&d.update({status:"exited"}),this.endSession(),n.setSession(u)}return u},t.prototype._sendSessionUpdate=function(){var t=this.getStackTop(),e=t.scope,n=t.client;if(e){var r=e.getSession&&e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},t.prototype._invokeClient=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=this.getStackTop(),s=o.scope,a=o.client;a&&a[t]&&(e=a)[t].apply(e,Object(r.g)(n,[s]))},t.prototype._callExtensionMethod=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=f(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[t])return i.extensions[t].apply(this,e);l&&s.c.warn("Extension method "+t+" couldn't be found, doing nothing.")},t}();function f(){var t=Object(a.a)();return t.__SENTRY__=t.__SENTRY__||{extensions:{},hub:void 0},t}function p(t){var e=f(),n=b(e);return v(e,t),n}function m(){var t=f();return g(t)&&!b(t).isOlderThan(4)||v(t,new d),Object(c.b)()?function(t){try{var e=f().__SENTRY__,n=e&&e.extensions&&e.extensions.domain&&e.extensions.domain.active;if(!n)return b(t);if(!g(n)||b(n).isOlderThan(4)){var r=b(t).getStackTop();v(n,new d(r.client,u.a.clone(r.scope)))}return b(n)}catch(i){return b(t)}}(t):b(t)}function g(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function b(t){return Object(a.b)("hub",(function(){return new d}),t)}function v(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}},lX9Q:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=Number(e);return n.setDate(i),n}},lZu9:function(t,e,n){!function(t){"use strict";t.defineMode("markdown",(function(e,n){var r=t.getMode(e,"text/html"),i="null"==r.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var o={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in o)o.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(o[s]=n.tokenTypeOverrides[s]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,l=/^\[(x| )\](?=\s)/i,u=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,d=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function g(t,e,n){return e.f=e.inline=n,n(t,e)}function b(t,e,n){return e.f=e.block=n,n(t,e)}function v(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==_){var n=i;if(!n){var o=t.innerMode(r,e.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(e.f=C,e.block=y,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function y(r,i){var s,d=r.column()===i.indentation,m=!(s=i.prevLine.stream)||!/\S/.test(s.string),b=i.indentedCode,v=i.prevLine.hr,y=!1!==i.list,_=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var x=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,y)){for(i.list=null;x<i.listStack[i.listStack.length-1];)i.listStack.pop(),i.listStack.length?i.indentation=i.listStack[i.listStack.length-1]:i.list=!1;!1!==i.list&&(i.indentationDiff=x-i.listStack[i.listStack.length-1])}var C=!(m||v||i.prevLine.header||y&&b||i.prevLine.fencedCodeEnd),O=(!1===i.list||v||m)&&i.indentation<=_&&r.match(a),T=null;if(i.indentationDiff>=4&&(b||i.prevLine.fencedCodeEnd||i.prevLine.header||m))return r.skipToEnd(),i.indentedCode=!0,o.code;if(r.eatSpace())return null;if(d&&i.indentation<=_&&(T=r.match(u))&&T[1].length<=6)return i.quote=0,i.header=T[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,S(i);if(i.indentation<=_&&r.eat(">"))return i.quote=d?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),r.eatSpace(),S(i);if(!O&&!i.setext&&d&&i.indentation<=_&&(T=r.match(c))){var E=T[1]?"ol":"ul";return i.indentation=x+r.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,n.taskLists&&r.match(l,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+E]),S(i)}return d&&i.indentation<=_&&(T=r.match(f,!0))?(i.quote=0,i.fencedEndRE=new RegExp(T[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&function(n){if(t.findModeByName){var r=t.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=t.getMode(e,n);return"null"==i.name?null:i}(T[2]||n.fencedCodeBlockDefaultMode),i.localMode&&(i.localState=t.startState(i.localMode)),i.f=i.block=w,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,S(i)):i.setext||!(C&&y||i.quote||!1!==i.list||i.code||O||p.test(r.string))&&(T=r.lookAhead(1))&&(T=T.match(h))?(i.setext?(i.header=i.setext,i.setext=0,r.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==T[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,S(i)):O?(r.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,o.hr):"["===r.peek()?g(r,i,k):g(r,i,i.inline)}function _(e,n){var o=r.token(e,n.htmlState);if(!i){var s=t.innerMode(r,n.htmlState);("xml"==s.mode.name&&null===s.state.tagStart&&!s.state.context&&s.state.tokenize.isInText||n.md_inside&&e.current().indexOf(">")>-1)&&(n.f=C,n.block=y,n.htmlState=null)}return o}function w(t,e){var r,i=e.listStack[e.listStack.length-1]||0,s=e.indentation<i;return e.fencedEndRE&&e.indentation<=i+3&&(s||t.match(e.fencedEndRE))?(n.highlightFormatting&&(e.formatting="code-block"),s||(r=S(e)),e.localMode=e.localState=null,e.block=y,e.f=C,e.fencedEndRE=null,e.code=0,e.thisLine.fencedCodeEnd=!0,s?b(t,e,e.block):r):e.localMode?e.localMode.token(t,e.localState):(t.skipToEnd(),o.code)}function S(t){var e=[];if(t.formatting){e.push(o.formatting),"string"==typeof t.formatting&&(t.formatting=[t.formatting]);for(var r=0;r<t.formatting.length;r++)e.push(o.formatting+"-"+t.formatting[r]),"header"===t.formatting[r]&&e.push(o.formatting+"-"+t.formatting[r]+"-"+t.header),"quote"===t.formatting[r]&&e.push(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?o.formatting+"-"+t.formatting[r]+"-"+t.quote:"error")}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref?e.push(o.linkHref,"url"):(t.strong&&e.push(o.strong),t.em&&e.push(o.em),t.strikethrough&&e.push(o.strikethrough),t.emoji&&e.push(o.emoji),t.linkText&&e.push(o.linkText),t.code&&e.push(o.code),t.image&&e.push(o.image),t.imageAltText&&e.push(o.imageAltText,"link"),t.imageMarker&&e.push(o.imageMarker)),t.header&&e.push(o.header,o.header+"-"+t.header),t.quote&&(e.push(o.quote),e.push(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?o.quote+"-"+t.quote:o.quote+"-"+n.maxBlockquoteDepth)),!1!==t.list){var i=(t.listStack.length-1)%3;e.push(i?1===i?o.list2:o.list3:o.list1)}return t.trailingSpaceNewLine?e.push("trailing-space-new-line"):t.trailingSpace&&e.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),e.length?e.join(" "):null}function x(t,e){if(t.match(d,!0))return S(e)}function C(e,i){var s=i.text(e,i);if(void 0!==s)return s;if(i.list)return i.list=null,S(i);if(i.taskList)return" "===e.match(l,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,S(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),S(i);var a=e.next();if(i.linkTitle){i.linkTitle=!1;var c=a;if("("===a&&(c=")"),c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"),e.match(new RegExp("^\\s*(?:[^"+c+"\\\\]+|\\\\\\\\|\\\\.)"+c),!0))return o.linkHref}if("`"===a){var u=i.formatting;n.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var h=e.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var d=S(i);return i.code=0,d}return i.formatting=u,S(i)}return i.code=h,S(i)}if(i.code)return S(i);if("\\"===a&&(e.next(),n.highlightFormatting)){var f=S(i),p=o.formatting+"-escape";return f?f+" "+p:p}if("!"===a&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),S(i);if("["===a&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),S(i);if("]"===a&&i.imageAltText)return n.highlightFormatting&&(i.formatting="image"),f=S(i),i.imageAltText=!1,i.image=!1,i.inline=i.f=T,f;if("["===a&&!i.image)return i.linkText&&e.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),S(i);if("]"===a&&i.linkText)return n.highlightFormatting&&(i.formatting="link"),f=S(i),i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?T:C,f;if("<"===a&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=O,n.highlightFormatting&&(i.formatting="link"),(f=S(i))?f+=" ":f="",f+o.linkInline;if("<"===a&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=O,n.highlightFormatting&&(i.formatting="link"),(f=S(i))?f+=" ":f="",f+o.linkEmail;if(n.xml&&"<"===a&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var g=e.string.indexOf(">",e.pos);if(-1!=g){var v=e.string.substring(e.start,g);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=t.startState(r),b(e,i,_)}if(n.xml&&"<"===a&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===a||"_"===a){for(var y=1,w=1==e.pos?" ":e.string.charAt(e.pos-2);y<3&&e.eat(a);)y++;var x=e.peek()||" ",E=!/\s/.test(x)&&(!m.test(x)||/\s/.test(w)||m.test(w)),k=!/\s/.test(w)&&(!m.test(w)||/\s/.test(x)||m.test(x)),A=null,D=null;if(y%2&&(i.em||!E||"*"!==a&&k&&!m.test(w)?i.em!=a||!k||"*"!==a&&E&&!m.test(x)||(A=!1):A=!0),y>1&&(i.strong||!E||"*"!==a&&k&&!m.test(w)?i.strong!=a||!k||"*"!==a&&E&&!m.test(x)||(D=!1):D=!0),null!=D||null!=A)return n.highlightFormatting&&(i.formatting=null==A?"strong":null==D?"em":"strong em"),!0===A&&(i.em=a),!0===D&&(i.strong=a),d=S(i),!1===A&&(i.em=!1),!1===D&&(i.strong=!1),d}else if(" "===a&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return S(i);e.backUp(1)}if(n.strikethrough)if("~"===a&&e.eatWhile(a)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),d=S(i),i.strikethrough=!1,d;if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),S(i)}else if(" "===a&&e.match("~~",!0)){if(" "===e.peek())return S(i);e.backUp(2)}if(n.emoji&&":"===a&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var j=S(i);return i.emoji=!1,j}return" "===a&&(e.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),S(i)}function O(t,e){if(">"===t.next()){e.f=e.inline=C,n.highlightFormatting&&(e.formatting="link");var r=S(e);return r?r+=" ":r="",r+o.linkInline}return t.match(/^[^>]+/,!0),o.linkInline}function T(t,e){if(t.eatSpace())return null;var r,i=t.next();return"("===i||"["===i?(e.f=e.inline=(r="("===i?")":"]",function(t,e){if(t.next()===r){e.f=e.inline=C,n.highlightFormatting&&(e.formatting="link-string");var i=S(e);return e.linkHref=!1,i}return t.match(E[r]),e.linkHref=!0,S(e)}),n.highlightFormatting&&(e.formatting="link-string"),e.linkHref=!0,S(e)):"error"}var E={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function k(t,e){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(e.f=A,t.next(),n.highlightFormatting&&(e.formatting="link"),e.linkText=!0,S(e)):g(t,e,C)}function A(t,e){if(t.match("]:",!0)){e.f=e.inline=D,n.highlightFormatting&&(e.formatting="link");var r=S(e);return e.linkText=!1,r}return t.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function D(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),e.f=e.inline=C,o.linkHref+" url")}var j={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:C,text:x,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(r,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return v(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=_)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g,"    ").length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==_?{state:t.htmlState,mode:r}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:j}},indent:function(e,n,i){return e.block==_&&r.indent?r.indent(e.htmlState,n,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,n,i):t.Pass},blankLine:v,getType:S,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return j}),"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")}(n("VrN/"),n("1eCo"),n("8EBN"))},lcII:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("XNiG"),i=n("7o/Q"),o=n("HDdC"),s=n("quSY"),a=n("jtHE");const c={url:"",deserializer:t=>JSON.parse(t.data),serializer:t=>JSON.stringify(t)};class l extends r.a{constructor(t,e){if(super(),t instanceof o.a)this.destination=e,this.source=t;else{const e=this._config=Object.assign({},c);if(this._output=new r.b,"string"==typeof t)e.url=t;else for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);if(!e.WebSocketCtor&&WebSocket)e.WebSocketCtor=WebSocket;else if(!e.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new a.a}}lift(t){const e=new l(this._config,this.destination);return e.operator=t,e.source=this,e}_resetState(){this._socket=null,this.source||(this.destination=new a.a),this._output=new r.b}multiplex(t,e,n){const r=this;return new o.a(i=>{try{r.next(t())}catch(s){i.error(s)}const o=r.subscribe(t=>{try{n(t)&&i.next(t)}catch(s){i.error(s)}},t=>i.error(t),()=>i.complete());return()=>{try{r.next(e())}catch(s){i.error(s)}o.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:t,protocol:e,url:n,binaryType:r}=this._config,o=this._output;let c=null;try{c=e?new t(n,e):new t(n),this._socket=c,r&&(this._socket.binaryType=r)}catch(u){return void o.error(u)}const l=new s.a(()=>{this._socket=null,c&&1===c.readyState&&c.close()});c.onopen=t=>{const{_socket:e}=this;if(!e)return c.close(),void this._resetState();const{openObserver:n}=this._config;n&&n.next(t);const r=this.destination;this.destination=i.a.create(e=>{if(1===c.readyState)try{const{serializer:t}=this._config;c.send(t(e))}catch(t){this.destination.error(t)}},t=>{const{closingObserver:e}=this._config;e&&e.next(void 0),t&&t.code?c.close(t.code,t.reason):o.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:t}=this._config;t&&t.next(void 0),c.close(),this._resetState()}),r&&r instanceof a.a&&l.add(r.subscribe(this.destination))},c.onerror=t=>{this._resetState(),o.error(t)},c.onclose=t=>{this._resetState();const{closeObserver:e}=this._config;e&&e.next(t),t.wasClean?o.complete():o.error(t)},c.onmessage=t=>{try{const{deserializer:e}=this._config;o.next(e(t))}catch(e){o.error(e)}}}_subscribe(t){const{source:e}=this;return e?e.subscribe(t):(this._socket||this._connectSocket(),this._output.subscribe(t),t.add(()=>{const{_socket:t}=this;0===this._output.observers.length&&(t&&1===t.readyState&&t.close(),this._resetState())}),t)}unsubscribe(){const{_socket:t}=this;t&&1===t.readyState&&t.close(),this._resetState(),super.unsubscribe()}}function u(t){return new l(t)}},leoV:function(t,e,n){var r=n("yNUO");t.exports=function(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return r(t)})),n=Math.max.apply(null,e);return new Date(n)}},lpKW:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("XNiG");function o(t,e=0){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e){this.windowSize=t,this.startWindowEvery=e}call(t,e){return e.subscribe(new a(t,this.windowSize,this.startWindowEvery))}}class a extends r.a{constructor(t,e,n){super(t),this.destination=t,this.windowSize=e,this.startWindowEvery=n,this.windows=[new i.b],this.count=0,t.next(this.windows[0])}_next(t){const e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,o=this.windows,s=o.length;for(let i=0;i<s&&!this.closed;i++)o[i].next(t);const a=this.count-r+1;if(a>=0&&a%e==0&&!this.closed&&o.shift().complete(),++this.count%e==0&&!this.closed){const t=new i.b;o.push(t),n.next(t)}}_error(t){const e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)}_complete(){const t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()}_unsubscribe(){this.count=0,this.windows=null}}},lwZq:function(t,e,n){var r=n("yNUO"),i=n("RJeW"),o=n("1CCG");t.exports=function(t,e){var n=r(t),s=Number(e),a=o(n,i(n)),c=new Date(0);return c.setFullYear(s,0,4),c.setHours(0,0,0,0),(n=i(c)).setDate(n.getDate()+a),n}},m2j4:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){return t=>t.lift(new o)}class o{call(t,e){return e.subscribe(new s(t))}}class s extends r.a{constructor(t){super(t)}notifyComplete(t){const e=this.destination;e.next(t),e.complete()}_next(t){this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}},m7nI:function(t,e,n){var r=n("WmBB");t.exports=function(t){return r(new Date,t)}},mCNh:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n("SpAZ");function i(...t){return o(t)}function o(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},mbIT:function(t,e,n){"use strict";e.isArray=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}()},"mk5/":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("XNiG"),i=n("zx2A");function o(t){return function(e){return e.lift(new s(t))}}class s{constructor(t){this.windowBoundaries=t}call(t,e){const n=new a(t),r=e.subscribe(n);return r.closed||n.add(Object(i.c)(this.windowBoundaries,new i.a(n))),r}}class a extends i.b{constructor(t){super(t),this.window=new r.b,t.next(this.window)}notifyNext(){this.openWindow()}notifyError(t){this._error(t)}notifyComplete(){this._complete()}_next(t){this.window.next(t)}_error(t){this.window.error(t),this.destination.error(t)}_complete(){this.window.complete(),this.destination.complete()}_unsubscribe(){this.window=null}openWindow(){const t=this.window;t&&t.complete();const e=this.destination,n=this.window=new r.b;e.next(n)}}},mlxB:function(t,e,n){"use strict";function r(t){return t instanceof Date&&!isNaN(+t)}n.d(e,"a",(function(){return r}))},mo97:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("tk/3"),i=n("yrbL"),o=n("Fr4G"),s=n("AytR"),a=n("gtzJ"),c=n("1Wj6"),l=n("fXoL");let u=(()=>{class t{constructor(t,e){this._http=t,this._userService=e,this.defaultHttpOptions={headers:new r.f({"Content-Type":"application/json"})},this.defaultShoutout="./assets/images/default-avatar/default-avatar-mt.png"}getImageSrc(t){return s.a.fileApiUrl+"/image/get/"+t+"?token="+this._userService.token+"&ngsw-bypass=true"}getDefaultAvatarSrc(t){return null===t?this.defaultShoutout:this.getImageSrc(t)}getAudioSrc(t){return s.a.fileApiUrl+"/audio/get/"+t+"?token="+this._userService.token+"&ngsw-bypass=true"}getFileSrc(t){return s.a.apiUrl+"/file/get?token="+this._userService.token+"&id="+t}uploadReq(t,e){return this._http.post(t,e).pipe(Object(i.map)(t=>{if(t.done)return t.result;throw new Error(t.error)}))}uploadReqWithCounter(t,e,n=(()=>{})){return this._http.post(t,e,{reportProgress:!0,observe:"events"}).pipe(Object(i.map)(t=>{if(t.type===r.e.UploadProgress&&n(t.loaded),t.type===r.e.Response){let e=t.body;if(e.done)return e.result;throw new Error(e.error)}}))}storageUpload(t,e){const n=`${s.a.uploadApiUrl}/mediastorage/file/upload?token=${this._userService.token}&ngsw-bypass=true`,r=new FormData;return r.append("payload",t),e&&r.append("folder_id",""+e),this.uploadReq(n,r)}storageUploadWithCounter(t,e,n=(()=>{})){const r=`${s.a.uploadApiUrl}/mediastorage/file/upload?token=${this._userService.token}&ngsw-bypass=true`,i=new FormData;return i.append("payload",t),e&&i.append("folder_id",""+e),this.uploadReqWithCounter(r,i,n)}uploadFile(t){const e=`${s.a.uploadApiUrl}/file/upload?token=${this._userService.token}&ngsw-bypass=true`,n=new FormData;return n.append("payload",t),this.uploadReq(e,n)}uploadFileWithCounter(t,e=(()=>{})){const n=`${s.a.uploadApiUrl}/file/upload?token=${this._userService.token}&ngsw-bypass=true`,r=new FormData;return r.append("payload",t),this.uploadReqWithCounter(n,r,e)}uploadVideo(t,e){const n=`${s.a.uploadApiUrl}/video/upload?token=${this._userService.token}&ngsw-bypass=true`,r=new FormData;return r.append("payload",t),e&&r.append("folder_id",""+e),this.uploadReqWithCounter(n,r)}uploadVideoWithCounter(t,e,n=(()=>{})){const r=`${s.a.uploadApiUrl}/video/upload?token=${this._userService.token}&ngsw-bypass=true`,i=new FormData;return i.append("payload",t),e&&i.append("folder_id",""+e),this.uploadReqWithCounter(r,i,n)}delete(t){const e=s.a.apiUrl+"/image/delete?ngsw-bypass=true";let n=JSON.stringify({token:this._userService.token,id:t});return this._http.post(e,n,this.defaultHttpOptions).pipe(Object(i.map)(t=>{if(t.done)return t.result;throw new Error(t.error)}))}getGeneratedFile(t,e){const n=window.URL.createObjectURL(t),r=document.createElement("a");document.body.appendChild(r),r.setAttribute("style","display: none"),r.href=n,r.download=e,r.click(),window.URL.revokeObjectURL(n),r.remove()}getFiles(t="file",e,n){const r="entity/"+t+"/get";let i;return e&&(e.token=this._userService.token,i=JSON.stringify(e)),this._http.post(s.a.apiUrl+"/"+r,i,n||this.defaultHttpOptions)}getPreview(t,e){return this._http.post(s.a.fileApiUrl+"/video/preview/get?file_id="+t,e)}fileIssuesChecker(){window.document.addEventListener("error",t=>{var e,n;(null===(n=null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.currentSrc)||void 0===n?void 0:n.includes("image/get"))&&a.b("Error image/get src: "+t.target.currentSrc,c.a.Error)},!0)}}return t.\u0275fac=function(e){return new(e||t)(l["\u0275\u0275inject"](r.b),l["\u0275\u0275inject"](o.a))},t.\u0275prov=l["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},mqoM:function(t,e,n){var r=n("Q5nM");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}},mrSG:function(t,e,n){"use strict";n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"g",(function(){return h}));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<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function a(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function l(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function h(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}},mthE:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t).getDay();return 0===e||6===e}},n3uD:function(t,e,n){"use strict";var r=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},n73p:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("zB/H");e.schedulePromise=function(t,e){return new r.Observable((function(n){var r=new i.Subscription;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}))}},nLfN:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return m}));var r=n("fXoL"),i=n("ofXK");let o;try{o="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(v){o=!1}let s,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(i.O)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](r.PLATFORM_ID,8))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(r.PLATFORM_ID,8))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(s)return s;if("object"!=typeof document||!document)return s=new Set(l),s;let t=document.createElement("input");return s=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),s}let h,d,f;function p(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function m(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function g(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.height="1px",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function b(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("quSY");function o(t){return e=>e.lift(new s(t))}class s{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends r.a{constructor(t,e){super(t),this.add(new i.a(e))}}},naeu:function(t,e,n){"use strict";var r=n("mbIT"),i=n("rhxD");e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&r.isArray(t[0])&&(t=t[0]),e.lift.call(i.race.apply(void 0,[e].concat(t)))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},nz4u:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("wjEo");e.repeatWhen=function(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){return e.subscribe(new a(t,this.notifier,e))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new i.Subject;try{e=(0,this.notifier)(this.notifications)}catch(n){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=o.innerSubscribe(e,new o.SimpleInnerSubscriber(this))},e}(o.SimpleOuterSubscriber)},nzqU:function(t,e,n){"use strict";e.isScheduler=function(t){return t&&"function"==typeof t.schedule}},o4sL:function(t,e,n){"use strict";var r=n("C20g"),i=n("4ik+");e.partition=function(t,e){return function(n){return[i.filter(t,e)(n),i.filter(r.not(t,e))(n)]}}},oB13:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("EQ5u");function i(t,e){return function(n){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new o(i,e));const s=Object.create(n,r.b);return s.source=n,s.subjectFactory=i,s}}class o{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i}}},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return Ft})),n.d(e,"c",(function(){return te})),n.d(e,"d",(function(){return Yt})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return Bt})),n.d(e,"g",(function(){return $t})),n.d(e,"h",(function(){return A})),n.d(e,"i",(function(){return S})),n.d(e,"j",(function(){return zt})),n.d(e,"k",(function(){return Wt})),n.d(e,"l",(function(){return Ut})),n.d(e,"m",(function(){return qt})),n.d(e,"n",(function(){return h})),n.d(e,"o",(function(){return x})),n.d(e,"p",(function(){return v})),n.d(e,"q",(function(){return Rt})),n.d(e,"r",(function(){return mt})),n.d(e,"s",(function(){return gt})),n.d(e,"t",(function(){return vt})),n.d(e,"u",(function(){return _t})),n.d(e,"v",(function(){return Et})),n.d(e,"w",(function(){return kt})),n.d(e,"x",(function(){return At})),n.d(e,"y",(function(){return Ct})),n.d(e,"z",(function(){return Ot})),n.d(e,"A",(function(){return Tt})),n.d(e,"B",(function(){return Dt})),n.d(e,"C",(function(){return w})),n.d(e,"D",(function(){return Kt})),n.d(e,"E",(function(){return l})),n.d(e,"F",(function(){return Zt})),n.d(e,"G",(function(){return Vt})),n.d(e,"H",(function(){return D})),n.d(e,"I",(function(){return Ht})),n.d(e,"J",(function(){return re})),n.d(e,"K",(function(){return Q})),n.d(e,"L",(function(){return M})),n.d(e,"M",(function(){return P})),n.d(e,"N",(function(){return N})),n.d(e,"O",(function(){return ne})),n.d(e,"P",(function(){return a})),n.d(e,"Q",(function(){return ee})),n.d(e,"R",(function(){return o})),n.d(e,"S",(function(){return pt})),n.d(e,"T",(function(){return s}));var r=n("fXoL");let i=null;function o(){return i}function s(t){i||(i=t)}class a{}const c=new r.InjectionToken("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(r["\u0275\u0275inject"])(d)}const h=new r.InjectionToken("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=o().getLocation(),this._history=o().getHistory()}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){o().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){o().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](c))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(r["\u0275\u0275inject"])(c))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(r["\u0275\u0275inject"])(c).location;return new w(Object(r["\u0275\u0275inject"])(l),e&&e.origin||"")}const _=new r.InjectionToken("appBaseHref");let w=(()=>{class t extends v{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+b(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+b(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](_,8))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t extends v{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+b(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+b(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](l),r["\u0275\u0275inject"](_,8))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new r.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(O(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](v),r["\u0275\u0275inject"](l))},t.normalizeQueryParams=b,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:C,token:t,providedIn:"root"}),t})();function C(){return new x(Object(r["\u0275\u0275inject"])(v),Object(r["\u0275\u0275inject"])(l))}function O(t){return t.replace(/\/index.html$/,"")}const T={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],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,"$",2],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,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],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",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],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",2],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,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],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],XXX:["\xa4"],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]},E=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scientific]="Scientific",t}(),k=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),A=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),D=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),j=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),I=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function P(t,e,n){const i=Object(r["\u0275findLocaleData"])(t),o=z([i[r["\u0275LocaleDataIndex"].DayPeriodsFormat],i[r["\u0275LocaleDataIndex"].DayPeriodsStandalone]],e);return z(o,n)}function M(t,e,n){const i=Object(r["\u0275findLocaleData"])(t),o=z([i[r["\u0275LocaleDataIndex"].DaysFormat],i[r["\u0275LocaleDataIndex"].DaysStandalone]],e);return z(o,n)}function N(t,e,n){const i=Object(r["\u0275findLocaleData"])(t),o=z([i[r["\u0275LocaleDataIndex"].MonthsFormat],i[r["\u0275LocaleDataIndex"].MonthsStandalone]],e);return z(o,n)}function F(t,e){return z(Object(r["\u0275findLocaleData"])(t)[r["\u0275LocaleDataIndex"].DateFormat],e)}function R(t,e){return z(Object(r["\u0275findLocaleData"])(t)[r["\u0275LocaleDataIndex"].TimeFormat],e)}function L(t,e){return z(Object(r["\u0275findLocaleData"])(t)[r["\u0275LocaleDataIndex"].DateTimeFormat],e)}function V(t,e){const n=Object(r["\u0275findLocaleData"])(t),i=n[r["\u0275LocaleDataIndex"].NumberSymbols][e];if(void 0===i){if(e===I.CurrencyDecimal)return n[r["\u0275LocaleDataIndex"].NumberSymbols][I.Decimal];if(e===I.CurrencyGroup)return n[r["\u0275LocaleDataIndex"].NumberSymbols][I.Group]}return i}function H(t,e){return Object(r["\u0275findLocaleData"])(t)[r["\u0275LocaleDataIndex"].NumberFormats][e]}const B=r["\u0275getLocalePluralCase"];function G(t){if(!t[r["\u0275LocaleDataIndex"].ExtraData])throw new Error(`Missing extra locale data for the locale "${t[r["\u0275LocaleDataIndex"].LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function z(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function W(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,q={},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]*)/,$=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),K=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.FractionalSeconds]="FractionalSeconds",t[t.Day]="Day",t}(),Y=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function Q(t,e,n,i){let o=function(t){if(st(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,r]=t.split("-").map(t=>+t);return new Date(e,n-1,r)}let n;if(n=t.match(U))return function(t){const e=new Date(0);let n=0,r=0;const 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]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,c,l),e}(n)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const i=function(t){return Object(r["\u0275findLocaleData"])(t)[r["\u0275LocaleDataIndex"].LocaleId]}(e);if(q[i]=q[i]||{},q[i][n])return q[i][n];let o="";switch(n){case"shortDate":o=F(e,j.Short);break;case"mediumDate":o=F(e,j.Medium);break;case"longDate":o=F(e,j.Long);break;case"fullDate":o=F(e,j.Full);break;case"shortTime":o=R(e,j.Short);break;case"mediumTime":o=R(e,j.Medium);break;case"longTime":o=R(e,j.Long);break;case"fullTime":o=R(e,j.Full);break;case"short":const n=t(e,"shortTime"),r=t(e,"shortDate");o=J(L(e,j.Short),[n,r]);break;case"medium":const i=t(e,"mediumTime"),s=t(e,"mediumDate");o=J(L(e,j.Medium),[i,s]);break;case"long":const a=t(e,"longTime"),c=t(e,"longDate");o=J(L(e,j.Long),[a,c]);break;case"full":const l=t(e,"fullTime"),u=t(e,"fullDate");o=J(L(e,j.Full),[l,u])}return o&&(q[i][n]=o),o}(n,e)||e;let s,a=[];for(;e;){if(s=X.exec(e),!s){a.push(e);break}{a=a.concat(s.slice(1));const t=a.pop();if(!t)break;e=t}}let c=o.getTimezoneOffset();i&&(c=ot(i,c),o=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(ot(e,r)-r))}(o,i));let l="";return a.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=et(Y.Eras,D.Abbreviated);break;case"GGGG":e=et(Y.Eras,D.Wide);break;case"GGGGG":e=et(Y.Eras,D.Narrow);break;case"y":e=tt(K.FullYear,1,0,!1,!0);break;case"yy":e=tt(K.FullYear,2,0,!0,!0);break;case"yyy":e=tt(K.FullYear,3,0,!1,!0);break;case"yyyy":e=tt(K.FullYear,4,0,!1,!0);break;case"M":case"L":e=tt(K.Month,1,1);break;case"MM":case"LL":e=tt(K.Month,2,1);break;case"MMM":e=et(Y.Months,D.Abbreviated);break;case"MMMM":e=et(Y.Months,D.Wide);break;case"MMMMM":e=et(Y.Months,D.Narrow);break;case"LLL":e=et(Y.Months,D.Abbreviated,A.Standalone);break;case"LLLL":e=et(Y.Months,D.Wide,A.Standalone);break;case"LLLLL":e=et(Y.Months,D.Narrow,A.Standalone);break;case"w":e=rt(1);break;case"ww":e=rt(2);break;case"W":e=rt(1,!0);break;case"d":e=tt(K.Date,1);break;case"dd":e=tt(K.Date,2);break;case"E":case"EE":case"EEE":e=et(Y.Days,D.Abbreviated);break;case"EEEE":e=et(Y.Days,D.Wide);break;case"EEEEE":e=et(Y.Days,D.Narrow);break;case"EEEEEE":e=et(Y.Days,D.Short);break;case"a":case"aa":case"aaa":e=et(Y.DayPeriods,D.Abbreviated);break;case"aaaa":e=et(Y.DayPeriods,D.Wide);break;case"aaaaa":e=et(Y.DayPeriods,D.Narrow);break;case"b":case"bb":case"bbb":e=et(Y.DayPeriods,D.Abbreviated,A.Standalone,!0);break;case"bbbb":e=et(Y.DayPeriods,D.Wide,A.Standalone,!0);break;case"bbbbb":e=et(Y.DayPeriods,D.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=et(Y.DayPeriods,D.Abbreviated,A.Format,!0);break;case"BBBB":e=et(Y.DayPeriods,D.Wide,A.Format,!0);break;case"BBBBB":e=et(Y.DayPeriods,D.Narrow,A.Format,!0);break;case"h":e=tt(K.Hours,1,-12);break;case"hh":e=tt(K.Hours,2,-12);break;case"H":e=tt(K.Hours,1);break;case"HH":e=tt(K.Hours,2);break;case"m":e=tt(K.Minutes,1);break;case"mm":e=tt(K.Minutes,2);break;case"s":e=tt(K.Seconds,1);break;case"ss":e=tt(K.Seconds,2);break;case"S":e=tt(K.FractionalSeconds,1);break;case"SS":e=tt(K.FractionalSeconds,2);break;case"SSS":e=tt(K.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=nt($.Short);break;case"ZZZZZ":e=nt($.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=nt($.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=nt($.Long);break;default:return null}return it[t]=e,e}(t);l+=e?e(o,n,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function J(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Z(t,e,n="-",r,i){let o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.substr(s.length-e)),o+s}function tt(t,e,n=0,r=!1,i=!1){return function(o,s){let a=function(t,e){switch(t){case K.FullYear:return e.getFullYear();case K.Month:return e.getMonth();case K.Date:return e.getDate();case K.Hours:return e.getHours();case K.Minutes:return e.getMinutes();case K.Seconds:return e.getSeconds();case K.FractionalSeconds:return e.getMilliseconds();case K.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,o);if((n>0||a>-n)&&(a+=n),t===K.Hours)0===a&&-12===n&&(a=12);else if(t===K.FractionalSeconds)return c=e,Z(a,3).substr(0,c);var c;const l=V(s,I.MinusSign);return Z(a,e,l,r,i)}}function et(t,e,n=A.Format,i=!1){return function(o,s){return function(t,e,n,i,o,s){switch(n){case Y.Months:return N(e,o,i)[t.getMonth()];case Y.Days:return M(e,o,i)[t.getDay()];case Y.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(s){const t=function(t){const e=Object(r["\u0275findLocaleData"])(t);return G(e),(e[r["\u0275LocaleDataIndex"].ExtraData][2]||[]).map(t=>"string"==typeof t?W(t):[W(t[0]),W(t[1])])}(e),n=function(t,e,n){const i=Object(r["\u0275findLocaleData"])(t);G(i);const o=z([i[r["\u0275LocaleDataIndex"].ExtraData][0],i[r["\u0275LocaleDataIndex"].ExtraData][1]],e)||[];return z(o,n)||[]}(e,o,i);let s;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:r,minutes:i}=t[0],{hours:o,minutes:l}=t[1];a>=r&&c>=i&&(a<o||a===o&&c<l)&&(s=n[e])}else{const{hours:r,minutes:i}=t;r===a&&i===c&&(s=n[e])}}),s)return s}return P(e,o,i)[a<12?0:1];case Y.Eras:return function(t,e){return z(Object(r["\u0275findLocaleData"])(t)[r["\u0275LocaleDataIndex"].Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(o,s,t,e,n,i)}}function nt(t){return function(e,n,r){const i=-1*r,o=V(n,I.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case $.Short:return(i>=0?"+":"")+Z(s,2,o)+Z(Math.abs(i%60),2,o);case $.ShortGMT:return"GMT"+(i>=0?"+":"")+Z(s,1,o);case $.Long:return"GMT"+(i>=0?"+":"")+Z(s,2,o)+":"+Z(Math.abs(i%60),2,o);case $.Extended:return 0===r?"Z":(i>=0?"+":"")+Z(s,2,o)+":"+Z(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function rt(t,e=!1){return function(n,r){let i;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();i=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(n.getFullYear()),e=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))).getTime()-t.getTime();i=1+Math.round(e/6048e5)}var o;return Z(i,t,V(r,I.MinusSign))}}const it={};function ot(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}const at=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ct(t,e,n,r,i,o,s=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,r,i,o,s=Math.abs(t)+"",a=0;for((n=s.indexOf("."))>-1&&(s=s.replace(".","")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;"0"===s.charAt(r);r++);if(r===(o=s.length))e=[0],n=1;else{for(o--;"0"===s.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=Number(s.charAt(r))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(l=function(t){if(0===t.digits[0])return t;const 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));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(o){const t=o.match(at);if(null===t)throw new Error(o+" is not a valid digit info");const e=t[1],n=t[3],r=t[5];null!=e&&(u=ut(e)),null!=n&&(h=ut(n)),null!=r?d=ut(r):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,i=r.length-t.integerLen;const o=Math.min(Math.max(e,i),n);let s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let t=s;t<r.length;t++)r[t]=0}else{i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let t=1;t<s;t++)r[t]=0}if(a>=5)if(s-1<0){for(let e=0;e>s;e--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let c=0!==o;const l=e+t.integerLen,u=r.reduceRight((function(t,e,n,r){return r[n]=(e+=t)<10?e:e-10,c&&(0===r[n]&&n>=l?r.pop():c=!1),e>=10?1:0}),0);u&&(r.unshift(u),t.integerLen++)}(l,h,d);let f=l.digits,p=l.integerLen;const m=l.exponent;let g=[];for(c=f.every(t=>!t);p<u;p++)f.unshift(0);for(;p<0;p++)f.unshift(0);p>0?g=f.splice(p,f.length):(g=f,f=[0]);const b=[];for(f.length>=e.lgSize&&b.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)b.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&b.unshift(f.join("")),a=b.join(V(n,r)),g.length&&(a+=V(n,i)+g.join("")),m&&(a+=V(n,I.Exponential)+"+"+m)}else a=V(n,I.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function lt(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),i=r[0],o=r[1],s=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=s[0],c=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<c.length;u++){const t=c.charAt(u);"0"===t?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const l=a.split(",");if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,o){const t=i.length-n.posPre.length-n.posSuf.length,e=o.indexOf("#");n.negPre=o.substr(0,e).replace(/'/g,""),n.negSuf=o.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function ut(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ht{}function dt(t,e,n,r){let i="="+t;if(e.indexOf(i)>-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}"`)}let ft=(()=>{class t extends ht{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(B(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](r.LOCALE_ID))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();function pt(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}let mt=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(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())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r["\u0275stringify"])(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.IterableDiffers),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),gt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(r.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(r.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ViewContainerRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[r["\u0275\u0275NgOnChangesFeature"]]}),t})();class bt{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let vt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(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/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new bt(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new yt(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new yt(t,i);e.push(o)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.IterableDiffers))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class yt{constructor(t,e){this.record=t,this.view=e}}let _t=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new wt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){St("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){St("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class wt{constructor(){this.$implicit=null,this.ngIf=null}}function St(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r["\u0275stringify"])(e)}'.`)}class xt{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Ct=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Ot=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new xt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](Ct,1))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Tt=(()=>{class t{constructor(t,e,n){n._addDefault(new xt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](Ct,1))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Et=(()=>{class t{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=dt(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](ht))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),t})(),kt=(()=>{class t{constructor(t,e,n,r){this.value=t;const i=!isNaN(Number(t));r.addCase(i?"="+t:t,new xt(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275injectAttribute"]("ngPluralCase"),r["\u0275\u0275directiveInject"](r.TemplateRef),r["\u0275\u0275directiveInject"](r.ViewContainerRef),r["\u0275\u0275directiveInject"](Et,1))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngPluralCase",""]]}),t})(),At=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.KeyValueDiffers),r["\u0275\u0275directiveInject"](r.Renderer2))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Dt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ViewContainerRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r["\u0275\u0275NgOnChangesFeature"]]}),t})();function jt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(r["\u0275stringify"])(t)}'`)}class It{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Pt{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Mt=new Pt,Nt=new It;let Ft=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):Object(r["\u0275looseIdentical"])(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)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Object(r["\u0275isPromise"])(e))return Mt;if(Object(r["\u0275isObservable"])(e))return Nt;throw jt(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275injectPipeChangeDetectorRef"]())},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"async",type:t,pure:!1}),t})(),Rt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw jt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"lowercase",type:t,pure:!0}),t})();const Lt=/(?:[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;let Vt=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw jt(t,e);return e.replace(Lt,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"titlecase",type:t,pure:!0}),t})(),Ht=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw jt(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"uppercase",type:t,pure:!0}),t})(),Bt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,i){if(null==e||""===e||e!=e)return null;try{return Q(e,n,i||this.locale,r)}catch(o){throw jt(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.LOCALE_ID))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"date",type:t,pure:!0}),t})();const Gt=/#/g;let zt=(()=>{class t{constructor(t){this._localization=t}transform(e,n,r){if(null==e)return"";if("object"!=typeof n||null===n)throw jt(t,n);return n[dt(e,Object.keys(n),this._localization,r)].replace(Gt,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](ht))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"i18nPlural",type:t,pure:!0}),t})(),Wt=(()=>{class t{transform(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw jt(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"i18nSelect",type:t,pure:!0}),t})(),Ut=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"json",type:t,pure:!1}),t})(),qt=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=Xt){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.KeyValueDiffers))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"keyvalue",type:t,pure:!1}),t})();function Xt(t,e){const 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<r?-1:1;if("number"==typeof n&&"number"==typeof r)return n-r;if("boolean"==typeof n&&"boolean"==typeof r)return n<r?-1:1;const i=String(n),o=String(r);return i==o?0:i<o?-1:1}let $t=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(Qt(e))return null;r=r||this._locale;try{return function(t,e,n){return ct(t,lt(H(e,E.Decimal),V(e,I.MinusSign)),e,I.Group,I.Decimal,n)}(Jt(e),r,n)}catch(i){throw jt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.LOCALE_ID))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"number",type:t,pure:!0}),t})(),Kt=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(Qt(e))return null;r=r||this._locale;try{return function(t,e,n){return ct(t,lt(H(e,E.Percent),V(e,I.MinusSign)),e,I.Group,I.Decimal,n,!0).replace(new RegExp("%","g"),V(e,I.PercentSign))}(Jt(e),r,n)}catch(i){throw jt(t,i.message)}}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.LOCALE_ID))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"percent",type:t,pure:!0}),t})(),Yt=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n,i="symbol",o,s){if(Qt(e))return null;s=s||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");let a=n||this._defaultCurrencyCode;"code"!==i&&(a="symbol"===i||"symbol-narrow"===i?function(t,e,n="en"){const i=function(t){return Object(r["\u0275findLocaleData"])(t)[r["\u0275LocaleDataIndex"].Currencies]}(n)[t]||T[t]||[],o=i[1];return"narrow"===e&&"string"==typeof o?o:i[0]||t}(a,"symbol"===i?"wide":"narrow",s):i);try{return function(t,e,n,r,i){const o=lt(H(e,E.Currency),V(e,I.MinusSign));return o.minFrac=function(t){let e;const n=T[t];return n&&(e=n[2]),"number"==typeof e?e:2}(r),o.maxFrac=o.minFrac,ct(t,o,e,I.CurrencyGroup,I.CurrencyDecimal,i).replace("\xa4",n).replace("\xa4","").trim()}(Jt(e),s,a,n,o)}catch(c){throw jt(t,c.message)}}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.LOCALE_ID),r["\u0275\u0275directiveInject"](r.DEFAULT_CURRENCY_CODE))},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"currency",type:t,pure:!0}),t})();function Qt(t){return null==t||""===t||t!=t}function Jt(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}let Zt=(()=>{class t{transform(e,n,r){if(null==e)return e;if(!this.supports(e))throw jt(t,e);return e.slice(n,r)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"slice",type:t,pure:!1}),t})(),te=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[{provide:ht,useClass:ft}]}),t})();const ee="browser";function ne(t){return t===ee}let re=(()=>{class t{}return t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({token:t,providedIn:"root",factory:()=>new ie(Object(r["\u0275\u0275inject"])(c),window,Object(r["\u0275\u0275inject"])(r.ErrorHandler))}),t})();class ie{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}},ozli:function(t,e,n){"use strict";var r=n("zfKp");e.subscribeToObservable=function(t){return function(e){var n=t[r.observable]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)}}},"p//D":function(t,e,n){"use strict";e.rxSubscriber=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),e.$$rxSubscriber=e.rxSubscriber},"p0+S":function(t,e,n){"use strict";var r=n("mbIT");e.isNumeric=function(t){return!r.isArray(t)&&t-parseFloat(t)+1>=0}},"p9/F":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t){return function(e){return e.lift(new o(t))}}class o{constructor(t){this.closingNotifier=t}call(t,e){return e.subscribe(new s(t,this.closingNotifier))}}class s extends r.b{constructor(t,e){super(t),this.buffer=[],this.add(Object(r.c)(e,new r.a(this)))}_next(t){this.buffer.push(t)}notifyNext(){const t=this.buffer;this.buffer=[],this.destination.next(t)}}},pDEI:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()>i.getTime()}},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){return function(n){return n.lift(new o(t,e))}}class o{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))}}class s extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},pLeS:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}},pRiV:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s}));var r=n("mrSG");function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.sort((function(t,e){return t[0]-e[0]})).map((function(t){return t[1]}));return function(t,e){var i,s,a,c;void 0===e&&(e=0);var l=[];try{for(var u=Object(r.h)(t.split("\n").slice(e)),h=u.next();!h.done;h=u.next()){var d=h.value;try{for(var f=(a=void 0,Object(r.h)(n)),p=f.next();!p.done;p=f.next()){var m=(0,p.value)(d);if(m){l.push(m);break}}}catch(g){a={error:g}}finally{try{p&&!p.done&&(c=f.return)&&c.call(f)}finally{if(a)throw a.error}}}}catch(b){i={error:b}}finally{try{h&&!h.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return o(l)}}function o(t){if(!t.length)return[];var e=t,n=e[0].function||"",i=e[e.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(e=e.slice(1)),-1!==i.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return Object(r.a)(Object(r.a)({},t),{filename:t.filename||e[0].filename,function:t.function||"?"})})).reverse()}function s(t){try{return t&&"function"==typeof t&&t.name||"<anonymous>"}catch(e){return"<anonymous>"}}},pWCv:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("w5QO"),s=n("pshJ");e.tap=function(t,e,n){return function(r){return r.lift(new a(t,e,n))}};var a=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 c(t,this.nextOrObserver,this.error,this.complete))},t}(),c=function(t){function e(e,n,r,i){var a=t.call(this,e)||this;return a._tapNext=o.noop,a._tapError=o.noop,a._tapComplete=o.noop,a._tapError=r||o.noop,a._tapComplete=i||o.noop,s.isFunction(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||o.noop,a._tapError=n.error||o.noop,a._tapComplete=n.complete||o.noop),a}return r(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.Subscriber)},pXlZ:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("XNiG"),i=n("l7GE"),o=n("ZUHj");function s(t){return function(e){return e.lift(new a(t))}}class a{constructor(t){this.closingSelector=t}call(t,e){return e.subscribe(new c(t,this.closingSelector))}}class c extends i.a{constructor(t,e){super(t),this.destination=t,this.closingSelector=e,this.openWindow()}notifyNext(t,e,n,r,i){this.openWindow(i)}notifyError(t){this._error(t)}notifyComplete(t){this.openWindow(t)}_next(t){this.window.next(t)}_error(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()}_complete(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()}unsubscribeClosingNotification(){this.closingNotification&&this.closingNotification.unsubscribe()}openWindow(t=null){t&&(this.remove(t),t.unsubscribe());const e=this.window;e&&e.complete();const n=this.window=new r.b;let i;this.destination.next(n);try{const{closingSelector:t}=this;i=t()}catch(s){return this.destination.error(s),void this.window.error(s)}this.add(this.closingNotification=Object(o.a)(this,i))}}},pjAE:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})()},poJ0:function(t,e,n){"use strict";var r=n("VKeD");e.subscribeToIterable=function(t){return function(e){for(var n=t[r.iterator]();;){var i=void 0;try{i=n.next()}catch(o){return e.error(o),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e}}},pshJ:function(t,e,n){"use strict";e.isFunction=function(t){return"function"==typeof t}},ptTZ:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("2tF/");e.VirtualTimeScheduler=function(t){function e(e,n){void 0===e&&(e=o),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return r(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(n("NTcF").AsyncScheduler);var o=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return r(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(i.AsyncAction);e.VirtualAction=o},pxpQ:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n("7o/Q"),i=n("WMd4");function o(t,e=0){return function(n){return n.lift(new s(t,e))}}class s{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))}}class a extends r.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(a.dispatch,this.delay,new c(t,this.destination)))}_next(t){this.scheduleMessage(i.a.createNext(t))}_error(t){this.scheduleMessage(i.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.notification=t,this.destination=e}}},pzWd:function(t,e){t.exports=function(t){return t instanceof Date}},q3Kh:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.map=function(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 o(t,e))}};var o=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}();e.MapOperator=o;var 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(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.Subscriber)},q3SL:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("gTqA"),o=n("mbIT"),s=n("wjEo");e.onErrorResumeNext=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&o.isArray(t[0])&&(t=t[0]),function(e){return e.lift(new a(t))}},e.onErrorResumeNextStatic=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0;return 1===t.length&&o.isArray(t[0])&&(t=t[0]),n=t.shift(),i.from(n).lift(new a(t))};var a=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.nextSources))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new s.SimpleInnerSubscriber(this),n=this.destination;n.add(e);var r=s.innerSubscribe(t,e);r!==e&&n.add(r)}else this.destination.complete()},e}(s.SimpleOuterSubscriber)},q7YW:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("mbIT"),o=n("pshJ"),s=n("q3Kh");e.fromEvent=function t(e,n,a,c){return o.isFunction(a)&&(c=a,a=void 0),c?t(e,n,a).pipe(s.map((function(t){return i.isArray(t)?c.apply(void 0,t):c(t)}))):new r.Observable((function(t){!function t(e,n,r,i,o){var s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var a=e;e.addEventListener(n,r,o),s=function(){return a.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var c=e;e.on(n,r),s=function(){return c.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),s=function(){return l.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,h=e.length;u<h;u++)t(e[u],n,r,i,o)}i.add(s)}(e,n,(function(e){t.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),t,a)}))}},q7zd:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("bOdf");function i(t,e){return Object(r.a)(()=>t,e)}},q9S1:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}},qFJL:function(t,e,n){var r=n("yNUO");t.exports=function(t){return 5===r(t).getDay()}},qTUo:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getTime()<(new Date).getTime()}},qZ0a:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("NHP+"),i=n("oB13");function o(){return t=>Object(i.a)(new r.a)(t)}},qgXg:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n("3N8a");class i extends r.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("IjjT");class s extends o.a{}const a=new s(i),c=a},qnbw:function(t,e,n){"use strict";var r=n("HDdC"),i=n("LRne");r.a.of=i.a},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("DH7j"),i=n("XoHu"),o=n("n6bG"),s=n("pjAE");let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(Object(o.a)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(h){e=h instanceof s.a?c(h.errors):[h]}}if(Object(r.a)(u)){let t=-1,n=u.length;for(;++t<n;){const n=u[t];if(Object(i.a)(n))try{n.unsubscribe()}catch(h){e=e||[],h instanceof s.a?e=e.concat(c(h.errors)):e.push(h)}}}if(e)throw new s.a(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function c(t){return t.reduce((t,e)=>t.concat(e instanceof s.a?e.errors:e),[])}},r0WS:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("D0XW"),i=n("lJxs");function o(t=r.a){return Object(i.a)(e=>new s(e,t.now()))}class s{constructor(t,e){this.value=t,this.timestamp=e}}},r0o6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("NXyV"),i=n("EY2u");function o(t,e=i.a,n=i.a){return Object(r.a)(()=>t()?e:n)}},r8S4:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("eYLY"),o=n("q3Kh"),s=n("yx2s"),a=n("nzqU"),c=n("mbIT");function l(t){var e=this,n=t.params,r=t.subscriber,o=t.context,s=n.callbackFunc,a=n.args,c=n.scheduler,l=n.subject;if(!l){l=n.subject=new i.AsyncSubject;try{s.apply(o,a.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(c.schedule(h,0,{err:r,subject:l}));else{var i=t.length<=1?t[0]:t;e.add(c.schedule(u,0,{value:i,subject:l}))}}]))}catch(d){this.add(c.schedule(h,0,{err:d,subject:l}))}}this.add(l.subscribe(r))}function u(t){var e=t.subject;e.next(t.value),e.complete()}function h(t){t.subject.error(t.err)}e.bindNodeCallback=function t(e,n,u){if(n){if(!a.isScheduler(n))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t(e,u).apply(void 0,r).pipe(o.map((function(t){return c.isArray(t)?n.apply(void 0,t):n(t)})))};u=n}return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o={subject:void 0,args:t,callbackFunc:e,scheduler:u,context:this};return new r.Observable((function(n){var r=o.context,a=o.subject;if(u)return u.schedule(l,0,{params:o,subscriber:n,context:r});if(!a){a=o.subject=new i.AsyncSubject;try{e.apply(r,t.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?a.error(n):(a.next(t.length<=1?t[0]:t),a.complete())}]))}catch(c){s.canReportError(a)?a.error(c):console.warn(c)}}return a.subscribe(n)}))}}},rDax:function(t,e,n){"use strict";n.d(e,"a",(function(){return U})),n.d(e,"b",(function(){return W})),n.d(e,"c",(function(){return B})),n.d(e,"d",(function(){return C})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return X}));var r=n("vxfF"),i=n("fXoL"),o=n("nLfN"),s=n("cH1L"),a=n("ofXK"),c=n("8LU1"),l=n("+rOU"),u=n("XNiG"),h=n("quSY"),d=n("VRyK"),f=n("IzEk"),p=n("1G5W"),m=n("FtGj");class g{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(c.d)(-this._previousScrollPosition.left),t.style.top=Object(c.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,r=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=r,n.scrollBehavior=i}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function b(){return Error("Scroll strategy has already been attached.")}class v{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw b();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class y{enable(){}disable(){}attach(){}}function _(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function w(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class S{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw b();this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();_(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let x=(()=>{class t{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new y,this.close=t=>new v(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new g(this._viewportRuler,this._document),this.reposition=t=>new S(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.c),i["\u0275\u0275inject"](r.e),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](a.e))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(r.c),Object(i["\u0275\u0275inject"])(r.e),Object(i["\u0275\u0275inject"])(i.NgZone),Object(i["\u0275\u0275inject"])(a.e))},token:t,providedIn:"root"}),t})();class C{constructor(t){if(this.scrollStrategy=new y,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class O{constructor(t,e,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class T{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function E(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "top", "bottom" or "center".`)}function k(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "start", "end" or "center".`)}let A=(()=>{class t{constructor(t){this._attachedOverlays=[],this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},this._document=t}ngOnDestroy(){this._detach()}add(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](a.e))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(a.e))},token:t,providedIn:"root"}),t})();const D=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let j=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||D){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const e=this._document.createElement("div");e.classList.add("cdk-overlay-container"),D?e.setAttribute("platform","test"):t||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](a.e),i["\u0275\u0275inject"](o.a))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(a.e),Object(i["\u0275\u0275inject"])(o.a))},token:t,providedIn:"root"}),t})();class I{constructor(t,e,n,r,i,o,s,a){this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=o,this._document=s,this._location=a,this._backdropElement=null,this._backdropClick=new u.b,this._attachments=new u.b,this._detachments=new u.b,this._locationChanges=h.a.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new u.b,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(f.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEvents.asObservable()}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Object(c.d)(this._config.width),t.height=Object(c.d)(this._config.height),t.minWidth=Object(c.d)(this._config.minWidth),t.minHeight=Object(c.d)(this._config.minHeight),t.maxWidth=Object(c.d)(this._config.maxWidth),t.maxHeight=Object(c.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const r=t.classList;Object(c.b)(e).forEach(t=>{t&&(n?r.add(t):r.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(Object(p.a)(Object(d.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const P=/([A-Za-z%]+)$/;class M{constructor(t,e,n,r,i){this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=i,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new u.b,this._resizeSubscription=h.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=[];let i;for(let o of this._preferredPositions){let s=this._getOriginPoint(t,o),a=this._getOverlayPoint(s,e,o),c=this._getOverlayFit(a,e,n,o);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(c,a,n)?r.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!i||i.overlayFit.visibleArea<c.visibleArea)&&(i={overlayFit:c,overlayPoint:a,originPoint:s,position:o,overlayRect:e})}if(r.length){let t=null,e=-1;for(const n of r){const r=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);r>e&&(e=r,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&N(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,r;if("center"==e.originX)n=t.left+t.width/2;else{const r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:r}}_getOverlayPoint(t,e,n){let r,i;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+r,y:t.y+i}}_getOverlayFit(t,e,n,r){let{x:i,y:o}=t,s=this._getOffset(r,"x"),a=this._getOffset(r,"y");s&&(i+=s),a&&(o+=a);let c=0-o,l=o+e.height-n.height,u=this._subtractOverflows(e.width,0-i,i+e.width-n.width),h=this._subtractOverflows(e.height,c,l),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,i=n.right-e.x,o=F(this._overlayRef.getConfig().minHeight),s=F(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=s&&s<=i;return(t.fitsInViewportVertically||null!=o&&o<=r)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=this._viewportRect,i=Math.max(t.x+e.width-r.right,0),o=Math.max(t.y+e.height-r.bottom,0),s=Math.max(r.top-n.top-t.y,0),a=Math.max(r.left-n.left-t.x,0);let c=0,l=0;return c=e.width<=r.width?a||-i:t.x<this._viewportMargin?r.left-n.left-t.x:0,l=e.height<=r.height?s||-o:t.y<this._viewportMargin?r.top-n.top-t.y:0,this._previousPushAmount={x:c,y:l},{x:t.x+c,y:t.y+l}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new T(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,r=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let i=0;i<e.length;i++)e[i].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,r=this._isRtl();let i,o,s,a,c,l;if("top"===e.overlayY)o=t.y,i=n.height-o+this._viewportMargin;else if("bottom"===e.overlayY)s=n.height-t.y+2*this._viewportMargin,i=n.height-s+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),r=this._lastBoundingBoxSize.height;i=2*e,o=t.y-e,i>r&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-r/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)l=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),r=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>r&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-r/2)}return{top:o,left:c,bottom:s,right:l,width:a,height:i}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;r.height=Object(c.d)(n.height),r.top=Object(c.d)(n.top),r.bottom=Object(c.d)(n.bottom),r.width=Object(c.d)(n.width),r.left=Object(c.d)(n.left),r.right=Object(c.d)(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(r.maxHeight=Object(c.d)(t)),i&&(r.maxWidth=Object(c.d)(i))}this._lastBoundingBoxSize=n,N(this._boundingBox.style,r)}_resetBoundingBoxStyles(){N(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){N(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const r=this._viewportRuler.getViewportScrollPosition();N(n,this._getExactOverlayY(e,t,r)),N(n,this._getExactOverlayX(e,t,r))}else n.position="static";let s="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=Object(c.d)(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=Object(c.d)(o.maxWidth):i&&(n.maxWidth="")),N(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=Object(c.d)(i.y),r}_getExactOverlayX(t,e,n){let r,i={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),r=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===r?i.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":i.left=Object(c.d)(o.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:w(t,n),isOriginOutsideView:_(t,n),isOverlayClipped:w(e,n),isOverlayOutsideView:_(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{k("originX",t.originX),E("originY",t.originY),k("overlayX",t.overlayX),E("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&Object(c.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof i.ElementRef)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function N(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function F(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(P);return n&&"px"!==n?null:parseFloat(e)}return t||null}class R{constructor(t,e,n,r,i,o,s){this._preferredPositions=[],this._positionStrategy=new M(n,r,i,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,r){const i=new O(t,e,n,r);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class L{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:i,maxWidth:o,maxHeight:s}=n,a=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==i&&"100vh"!==i||s&&"100%"!==s&&"100vh"!==s);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let V=(()=>{class t{constructor(t,e,n,r){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=r}global(){return new L}connectedTo(t,e,n){return new R(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new M(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.e),i["\u0275\u0275inject"](a.e),i["\u0275\u0275inject"](o.a),i["\u0275\u0275inject"](j))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(r.e),Object(i["\u0275\u0275inject"])(a.e),Object(i["\u0275\u0275inject"])(o.a),Object(i["\u0275\u0275inject"])(j))},token:t,providedIn:"root"}),t})(),H=0,B=(()=>{class t{constructor(t,e,n,r,i,o,s,a,c,l){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._injector=o,this._ngZone=s,this._document=a,this._directionality=c,this._location=l}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),r=this._createPortalOutlet(n),i=new C(t);return i.direction=i.direction||this._directionality.value,new I(r,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+H++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(i.ApplicationRef)),new l.e(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](x),i["\u0275\u0275inject"](j),i["\u0275\u0275inject"](i.ComponentFactoryResolver),i["\u0275\u0275inject"](V),i["\u0275\u0275inject"](A),i["\u0275\u0275inject"](i.Injector),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](a.e),i["\u0275\u0275inject"](s.c),i["\u0275\u0275inject"](a.o,8))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const G=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],z=new i.InjectionToken("cdk-connected-overlay-scroll-strategy");let W=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](i.ElementRef))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),U=(()=>{class t{constructor(t,e,n,r,o){this._overlay=t,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new i.EventEmitter,this.positionChange=new i.EventEmitter,this.attach=new i.EventEmitter,this.detach=new i.EventEmitter,this.overlayKeydown=new i.EventEmitter,this._templatePortal=new l.h(e,n),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(c.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(c.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(c.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(c.c)(t)}get push(){return this._push}set push(t){this._push=Object(c.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription.unsubscribe()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=G),this._overlayRef=this._overlay.create(this._buildConfig()),this._overlayRef.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==m.e||Object(m.q)(t)||(t.preventDefault(),this._detachOverlay())})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new C({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t.positionChanges.subscribe(t=>this.positionChange.emit(t)),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe()}_detachOverlay(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](B),i["\u0275\u0275directiveInject"](i.TemplateRef),i["\u0275\u0275directiveInject"](i.ViewContainerRef),i["\u0275\u0275directiveInject"](z),i["\u0275\u0275directiveInject"](s.c,8))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown"},exportAs:["cdkConnectedOverlay"],features:[i["\u0275\u0275NgOnChangesFeature"]]}),t})();const q={provide:z,deps:[B],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let X=(()=>{class t{}return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[B,q],imports:[[s.a,l.g,r.d],r.d]}),t})()},rEZo:function(t,e,n){"use strict";var r=n("IKMM");e.concat=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(r.concat.apply(void 0,[e].concat(t)))}}},rMQs:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t).getFullYear();return e%400==0||e%4==0&&e%100!=0}},rNzc:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("wjEo");e.catchError=function(t){return function(e){var n=new o(t),r=e.lift(n);return n.caught=r}};var o=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.selector,this.caught))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(s){return void t.prototype.error.call(this,s)}this._unsubscribeAndRecycle();var r=new i.SimpleInnerSubscriber(this);this.add(r);var o=i.innerSubscribe(n,r);o!==r&&this.add(o)}},e}(i.SimpleOuterSubscriber)},rhxD:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("mbIT"),o=n("zzsZ"),s=n("Y4kR"),a=n("cSoz");e.race=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!i.isArray(t[0]))return t[0];t=t[0]}return o.fromArray(t,void 0).lift(new c)};var c=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}();e.RaceOperator=c;var l=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=a.subscribeToResult(this,t[n],void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(s.OuterSubscriber);e.RaceSubscriber=l},rxKr:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.find=function(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new o(t,n,!1,e))}};var o=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=o;var s=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return r(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(i.Subscriber);e.FindValueSubscriber=s},rxuJ:function(t,e,n){var r=n("7B8A");t.exports=function(t,e){var n=Number(e);return r(t,1e3*n)}},"s/X6":function(t,e,n){var r=n("yNUO"),i=n("+f+M"),o=n("DT56"),s=n("3zVU");t.exports=function(t,e){var n=r(t),a=r(e),c=o(n,a),l=Math.abs(i(n,a));return n=s(n,c*l),c*(l-(o(n,a)===-c))}},"s3+Z":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.takeWhile=function(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new o(t,e))}};var o=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.inclusive))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(i.Subscriber)},sMO2:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("yoF8"),o=n("nzqU");function s(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(o){return void e.error(o)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(o){return void e.error(o)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(o){return void e.error(o)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}e.generate=function(t,e,n,a,c){var l,u;return 1==arguments.length?(u=t.initialState,e=t.condition,n=t.iterate,l=t.resultSelector||i.identity,c=t.scheduler):void 0===a||o.isScheduler(a)?(u=t,l=i.identity,c=a):(u=t,l=a),new r.Observable((function(t){var r=u;if(c)return c.schedule(s,0,{subscriber:t,iterate:n,condition:e,resultSelector:l,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(a){return void t.error(a)}if(!i){t.complete();break}}var o=void 0;try{o=l(r)}catch(a){return void t.error(a)}if(t.next(o),t.closed)break;try{r=n(r)}catch(a){return void t.error(a)}}}))}},sTY7:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("XNiG"),i=n("quSY"),o=n("l7GE"),s=n("ZUHj");function a(t,e){return n=>n.lift(new c(t,e))}class c{constructor(t,e){this.openings=t,this.closingSelector=e}call(t,e){return e.subscribe(new l(t,this.openings,this.closingSelector))}}class l extends o.a{constructor(t,e,n){super(t),this.openings=e,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=Object(s.a)(this,e,e))}_next(t){const{contexts:e}=this;if(e){const n=e.length;for(let r=0;r<n;r++)e[r].window.next(t)}}_error(t){const{contexts:e}=this;if(this.contexts=null,e){const n=e.length;let r=-1;for(;++r<n;){const n=e[r];n.window.error(t),n.subscription.unsubscribe()}}super._error(t)}_complete(){const{contexts:t}=this;if(this.contexts=null,t){const e=t.length;let n=-1;for(;++n<e;){const e=t[n];e.window.complete(),e.subscription.unsubscribe()}}super._complete()}_unsubscribe(){const{contexts:t}=this;if(this.contexts=null,t){const e=t.length;let n=-1;for(;++n<e;){const e=t[n];e.window.unsubscribe(),e.subscription.unsubscribe()}}}notifyNext(t,e,n,o,a){if(t===this.openings){let t;try{const{closingSelector:n}=this;t=n(e)}catch(c){return this.error(c)}const n=new r.b,o=new i.a,a={window:n,subscription:o};this.contexts.push(a);const l=Object(s.a)(this,t,a);l.closed?this.closeWindow(this.contexts.length-1):(l.context=a,o.add(l)),this.destination.next(n)}else this.closeWindow(this.contexts.indexOf(t))}notifyError(t){this.error(t)}notifyComplete(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))}closeWindow(t){if(-1===t)return;const{contexts:e}=this,n=e[t],{window:r,subscription:i}=n;e.splice(t,1),r.complete(),i.unsubscribe()}}},sVev:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},sYmb:function(t,e,n){"use strict";n.d(e,"c",(function(){return P})),n.d(e,"b",(function(){return f})),n.d(e,"e",(function(){return D})),n.d(e,"a",(function(){return j})),n.d(e,"d",(function(){return I}));var r=n("fXoL"),i=n("LRne"),o=n("VRyK"),s=n("HDdC"),a=n("GyhO"),c=n("IzEk"),l=n("w1tV"),u=n("lJxs"),h=n("IAdc"),d=n("eIep");class f{}let p=(()=>{class t extends f{getTranslation(t){return Object(i.a)({})}}return t.\u0275fac=function(e){return m(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const m=r["\u0275\u0275getInheritedFactory"](p);class g{}let b=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class v{}let y=(()=>{class t extends v{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return _(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const _=r["\u0275\u0275getInheritedFactory"](y);function w(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,r,i,o=typeof t;if(o==typeof e&&"object"==o){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(r in i=Object.create(null),t){if(!w(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&void 0!==e[r])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!w(t[r],e[r]))return!1;return!0}}return!1}function S(t){return null!=t}function x(t){return t&&"object"==typeof t&&!Array.isArray(t)}class C{}let O=(()=>{class t extends C{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n=e.split(".");e="";do{e+=n.shift(),!S(t)||!S(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let r=this.getValue(e,n);return S(r)?r:t}):t}}return t.\u0275fac=function(e){return T(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const T=r["\u0275\u0275getInheritedFactory"](O);class E{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.EventEmitter,this.onLangChange=new r.EventEmitter,this.onDefaultLangChange=new r.EventEmitter}}const k=new r.InjectionToken("USE_STORE"),A=new r.InjectionToken("USE_DEFAULT_LANG");let D=(()=>{class t{constructor(t,e,n,i,o,s=!0,a=!1){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=i,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=a,this.pending=!1,this._onTranslationChange=new r.EventEmitter,this._onLangChange=new r.EventEmitter,this._onDefaultLangChange=new r.EventEmitter,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(this.defaultLang||(this.defaultLang=t),e.pipe(Object(c.a)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Object(i.a)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Object(c.a)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Object(i.a)(this.translations[t]))}retrieveTranslations(t){let e;return void 0===this.translations[t]&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Object(l.a)());return this.loadingTranslations=e.pipe(Object(c.a)(1),Object(u.a)(e=>this.compiler.compileTranslations(e,t)),Object(l.a)()),this.loadingTranslations.subscribe(e=>{this.translations[t]=e,this.updateLangs(),this.pending=!1},t=>{this.pending=!1}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=n&&this.translations[t]?function t(e,n){let r=Object.assign({},e);return x(e)&&x(n)&&Object.keys(n).forEach(i=>{x(n[i])?i in e?r[i]=t(e[i],n[i]):Object.assign(r,{[i]:n[i]}):Object.assign(r,{[i]:n[i]})}),r}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let r;if(e instanceof Array){let r={},s=!1;for(let i of e)r[i]=this.getParsedResult(t,i,n),"function"==typeof r[i].subscribe&&(s=!0);if(s){let t;for(let n of e){let e="function"==typeof r[n].subscribe?r[n]:Object(i.a)(r[n]);t=void 0===t?e:Object(o.a)(t,e)}return t.pipe(Object(h.a)(),Object(u.a)(t=>{let n={};return t.forEach((t,r)=>{n[e[r]]=t}),n}))}return r}if(t&&(r=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===r){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),r=this.missingTranslationHandler.handle(t)}return void 0!==r?r:e}get(t,e){if(!S(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return s.a.create(n=>{let r=t=>{n.next(t),n.complete()},i=t=>{n.error(t)};this.loadingTranslations.subscribe(n=>{"function"==typeof(n=this.getParsedResult(n,t,e)).subscribe?n.subscribe(r,i):r(n)},i)});{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return"function"==typeof n.subscribe?n:Object(i.a)(n)}}stream(t,e){if(!S(t)||!t.length)throw new Error('Parameter "key" required');return Object(a.a)(this.get(t,e),this.onLangChange.pipe(Object(d.a)(n=>{const r=this.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:Object(i.a)(r)})))}instant(t,e){if(!S(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(void 0!==n.subscribe){if(t instanceof Array){let e={};return t.forEach((n,r)=>{e[t[r]]=t[r]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),this.defaultLang||this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](E),r["\u0275\u0275inject"](f),r["\u0275\u0275inject"](v),r["\u0275\u0275inject"](C),r["\u0275\u0275inject"](g),r["\u0275\u0275inject"](A),r["\u0275\u0275inject"](k))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{constructor(t,e,n){this.translateService=t,this.element=e,this._ref=n,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(t=>{t.lang===this.translateService.currentLang&&this.checkNodes(!0,t.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(t=>{this.checkNodes(!0,t.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(t=>{this.checkNodes(!0)}))}set translate(t){t&&(this.key=t,this.checkNodes())}set translateParams(t){w(this.currentParams,t)||(this.currentParams=t,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(t=!1,e){let n=this.element.nativeElement.childNodes;n.length||(this.setContent(this.element.nativeElement,this.key),n=this.element.nativeElement.childNodes);for(let r=0;r<n.length;++r){let i=n[r];if(3===i.nodeType){let n;if(this.key)n=this.key,t&&(i.lastKey=null);else{let e=this.getContent(i),r=e.trim();r.length&&(e!==i.currentValue?(n=r,i.originalContent=this.getContent(i)):i.originalContent&&t&&(i.lastKey=null,n=i.originalContent.trim()))}this.updateValue(n,i,e)}}}updateValue(t,e,n){if(t){if(e.lastKey===t&&this.lastParams===this.currentParams)return;this.lastParams=this.currentParams;let r=n=>{n!==t&&(e.lastKey=t),e.originalContent||(e.originalContent=this.getContent(e)),e.currentValue=S(n)?n:e.originalContent||t,this.setContent(e,this.key?e.currentValue:e.originalContent.replace(t,e.currentValue)),this._ref.markForCheck()};if(S(n)){let e=this.translateService.getParsedResult(n,t,this.currentParams);"function"==typeof e.subscribe?e.subscribe(r):r(e)}else this.translateService.get(t,this.currentParams).subscribe(r)}}getContent(t){return S(t.textContent)?t.textContent:t.data}setContent(t,e){S(t.textContent)?t.textContent=e:t.data=e}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](D),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.ChangeDetectorRef))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),I=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let r=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let i=this.translate.getParsedResult(n,t,e);"function"==typeof i.subscribe?i.subscribe(r):r(i)}this.translate.get(t,e).subscribe(r)}transform(t,...e){if(!t||0===t.length)return t;if(w(t,this.lastKey)&&w(e,this.lastParams))return this.value;let n;if(S(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(r){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](D),r["\u0275\u0275injectPipeChangeDetectorRef"]())},t.\u0275pipe=r["\u0275\u0275definePipe"]({name:"translate",type:t,pure:!1}),t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:f,useClass:p},e.compiler||{provide:v,useClass:y},e.parser||{provide:C,useClass:O},e.missingTranslationHandler||{provide:g,useClass:b},E,{provide:k,useValue:e.isolate},{provide:A,useValue:e.useDefaultLang},D]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:f,useClass:p},e.compiler||{provide:v,useClass:y},e.parser||{provide:C,useClass:O},e.missingTranslationHandler||{provide:g,useClass:b},{provide:k,useValue:e.isolate},{provide:A,useValue:e.useDefaultLang},D]}}}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})()},sunR:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t),i=r(e);return 12*(n.getFullYear()-i.getFullYear())+(n.getMonth()-i.getMonth())}},syX2:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("D0XW"),i=n("mlxB"),o=n("zx2A");function s(t,e,n=r.a){return r=>{let o=Object(i.a)(t),s=o?+t-n.now():Math.abs(t);return r.lift(new a(s,o,e,n))}}class a{constructor(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}call(t,e){return e.subscribe(new c(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class c extends o.b{constructor(t,e,n,r,i){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=r,this.scheduler=i,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(Object(o.c)(e,new o.a(t)))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(c.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=void 0,this.scheduler=null,this.withObservable=null}}},syh9:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("Fr4G"),i=n("24nb"),o=n("ywEm"),s=n("fXoL"),a=n("tyNb"),c=n("b6Qw");let l=(()=>{class t{constructor(t,e,n,r,i){this._router=t,this._userService=e,this._entityService=n,this._cookieService=r,this._ssr=i}canActivate(t,e){if(this._ssr.isBrowser)return new Promise(t=>{this._cookieService.check("abo_domain")&&this._cookieService.check("abo_hash")&&window.location.origin!==this._cookieService.get("abo_domain")&&(window.location.href=`${this._cookieService.get("abo_domain")}/admin?hilfe=${this._cookieService.get("abo_hash")}`),this._entityService.prolongate().subscribe(e=>{"content_creator"===this._userService.getRole()&&(this._router.navigate(["/admin/statistics"]).finally(()=>window.Intercom("show")),t(!1)),t(!0)},e=>{if(401!==e.status)throw new Error(e.statusText);this._userService.deleteClient(),t(!0)})})}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](a.e),s["\u0275\u0275inject"](r.a),s["\u0275\u0275inject"](i.a),s["\u0275\u0275inject"](c.a),s["\u0275\u0275inject"](o.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},t4T2:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("tk/3"),i=n("yrbL"),o=n("Fr4G"),s=(n("4YUa"),n("AytR")),a=n("fXoL");let c=(()=>{class t{constructor(t,e){this._http=t,this._userService=e,this.defaultHttpOptions={headers:new r.f({"Content-Type":"application/json"})},this.REQUEST_PARAMS={offset:0,limit:25,filter_by:[],search_by:[],order_by:[]}}postRequest(t,e,n){return this._http.post(`${s.a.apiUrl}/${t}`,e,n).pipe(Object(i.map)(t=>{if(t.done)return t.result;throw new Error(t.error)}))}getRequest(t){return this._http.get(`${s.a.apiUrl}/${t}`).pipe(Object(i.map)(t=>{if(t.done)return t.result;throw new Error(t.error)}))}getWithNoAuth(t){return this.getRequest(t)}getWithToken(t){return this.getRequest(t+"?token="+this._userService.token)}postWithNoAuth(t,e){const n=JSON.stringify(e);return this.postRequest(t,n,this.defaultHttpOptions)}get(t,e,n){this.REQUEST_PARAMS.token=this._userService.token;let r=JSON.stringify(this.REQUEST_PARAMS);return e&&(e.token=this._userService.token,r=JSON.stringify(e)),this.postRequest(t,r,n||this.defaultHttpOptions)}getEntity(t,e,n){const r="entity/"+t+"/get";this.REQUEST_PARAMS.token=this._userService.token;let i=JSON.stringify(this.REQUEST_PARAMS);return e&&(e.token=this._userService.token,i=JSON.stringify(e)),this.postRequest(r,i,n||this.defaultHttpOptions)}getPortalEntity(t,e,n){const r=t+"/get";this.REQUEST_PARAMS.token=this._userService.token;let i=JSON.stringify(this.REQUEST_PARAMS);return e&&(e.token=this._userService.token,i=JSON.stringify(e)),this.postRequest(r,i,n||this.defaultHttpOptions)}getEntityInfoWithNoAuth(t,e,n){const r="entity/"+t+"/info";let i=JSON.stringify(this.REQUEST_PARAMS);return e&&(i=JSON.stringify(e)),this.postRequest(r,i,n||this.defaultHttpOptions)}getEntityInfo(t,e,n){const r="entity/"+t+"/info";this.REQUEST_PARAMS.token=this._userService.token;let i=JSON.stringify(this.REQUEST_PARAMS);return e&&(e.token=this._userService.token,i=JSON.stringify(e)),this.postRequest(r,i,n||this.defaultHttpOptions)}getImageUrl(t){return s.a.apiUrl+"/"+t}getUploadedImageUrl(t,e,n,r="camera"){return s.a.apiUrl+"/entity/"+r+"/image/get?token="+this._userService.token+"&id="+e+"&image_type="+n}getGetherEntity(t,e){this.REQUEST_PARAMS.token=this._userService.token;let n=JSON.stringify(this.REQUEST_PARAMS);return t&&(t.token=this._userService.token,n=JSON.stringify(t)),this.postRequest("gather/entity/get",n,e||this.defaultHttpOptions)}getherEntityRequest(t,e){this.REQUEST_PARAMS.token=this._userService.token;let n=JSON.stringify(this.REQUEST_PARAMS);return t&&(t.token=this._userService.token,n=JSON.stringify(t)),this.postRequest("gather/entity/request",n,e||this.defaultHttpOptions)}countEntity(t,e,n){const r="entity/"+t+"/count";this.REQUEST_PARAMS.token=this._userService.token;let i=JSON.stringify(this.REQUEST_PARAMS);return e&&(e.token=this._userService.token,i=JSON.stringify(e)),this.postRequest(r,i,n||this.defaultHttpOptions)}countPortalEntity(t,e,n){const r=t+"/count";this.REQUEST_PARAMS.token=this._userService.token;let i=JSON.stringify(this.REQUEST_PARAMS);return e&&(e.token=this._userService.token,i=JSON.stringify(e)),this.postRequest(r,i,n||this.defaultHttpOptions)}deleteEntity(t,e,n){const r="entity/"+t+"/delete",i=JSON.stringify({token:this._userService.token,filter_by:[{attribute:"id",operator:"in",value:e}]});return this.postRequest(r,i,n||this.defaultHttpOptions)}delete(t,e,n){const r="entity/"+t+"/delete";e.token=this._userService.token;const i=JSON.stringify(e);return this.postRequest(r,i,n||this.defaultHttpOptions)}deleteCAccount(t,e){const n=t+"/delete",r=JSON.stringify({token:this._userService.token});return this.postRequest(n,r,e||this.defaultHttpOptions)}addEntity(t,e,n){const r="entity/"+t+"/add",i=JSON.stringify({token:this._userService.token,values:e});return this.postRequest(r,i,n||this.defaultHttpOptions)}resetEntity(t,e,n){const r=t+"/reset",i=JSON.stringify({token:this._userService.token,id:e});return this.postRequest(r,i,n||this.defaultHttpOptions)}addPortalEntity(t,e,n){const r=t+"/add",i=JSON.stringify({token:this._userService.token,values:e});return this.postRequest(r,i,n||this.defaultHttpOptions)}update(t,e,n){const r=t+"/update";let i=Object.assign({token:this._userService.token},e);const o=JSON.stringify(i);return this.postRequest(r,o,n||this.defaultHttpOptions)}updateEntity(t,e,n){const r="entity/"+t+"/update";let i={token:this._userService.token,values:e},o=[];e.hasOwnProperty("id")?o=[{attribute:"id",operator:"=",value:e.id}]:e.hasOwnProperty("portal_id")&&(o=[{attribute:"portal_id",operator:"=",value:e.portal_id}]),o.length&&(i.filter_by=o);const s=JSON.stringify(i);return this.postRequest(r,s,n||this.defaultHttpOptions)}updatePortalEntity(t,e,n){const r=t+"/update";let i={token:this._userService.token,values:e},o=[];e.hasOwnProperty("id")?o=[{attribute:"id",operator:"=",value:e.id}]:e.hasOwnProperty("portal_id")&&(o=[{attribute:"portal_id",operator:"=",value:e.portal_id}]),o.length&&(i.filter_by=o);const s=JSON.stringify(i);return this.postRequest(r,s,n||this.defaultHttpOptions)}upsertEntity(t,e,n){const r="entity/"+t+"/upsert";let i={token:this._userService.token,values:e},o=[];e.hasOwnProperty("id")?o=[{attribute:"id",operator:"=",value:e.id}]:e.hasOwnProperty("portal_id")&&(o=[{attribute:"portal_id",operator:"=",value:e.portal_id}]),o.length&&(i.filter_by=o);const s=JSON.stringify(i);return this.postRequest(r,s,n||this.defaultHttpOptions)}cloneCMLEntity(t,e,n,r){const i=`portal/${t}/copy`;let o={token:this._userService.token};o[t+"_id"]=e,"module"===t?(o.new_courses_id=n.map(t=>t.course_id),o.is_duplicate=r):o.copy_to=n;const s=JSON.stringify(o);return this.postRequest(i,s,this.defaultHttpOptions)}uploadImage(t,e,n,i="camera"){const o="entity/"+i+"/image/upload?token="+this._userService.token+"&id="+t+"&image_type="+e,s={headers:new r.f({"Content-Type":"image/jpeg"})};return this.postRequest(o,n,s)}toggleUpdateMessage(t,e){const n=JSON.stringify({message_id:t,is_enable:e});return this.postRequest("/root_action/system_message/toggle",n,this.defaultHttpOptions)}oneClickImport(t,e){const n=t+"/one_click_import",r=JSON.stringify({portal_id:e,token:this._userService.token});return this.postRequest(n,r,this.defaultHttpOptions)}getAppRequest(t,e,n){let r=Object.assign({token:this._userService.token},e);const i=JSON.stringify(r);return this.postRequest(t,i,n||this.defaultHttpOptions)}login(t,e){const n=JSON.stringify(t);return this.postRequest("auth/login",n,e||this.defaultHttpOptions)}logout(){const t=JSON.stringify({token:this._userService.token});return this.postRequest("auth/logout",t,this.defaultHttpOptions)}changePassword(t,e){let n=t;n.token=this._userService.token;const r=JSON.stringify(n);return this.postRequest("auth/password/change",r,e||this.defaultHttpOptions)}registerSingle(t,e){const n=JSON.stringify(t);return this.postRequest("auth/register/single",n,e||this.defaultHttpOptions)}registerDouble(t,e){const n=JSON.stringify(t);return this.postRequest("auth/register/double",n,e||this.defaultHttpOptions)}registerActivate(t){const e=JSON.stringify(t);return this.postRequest("auth/register/activate",e,this.defaultHttpOptions)}registerTrialPortal(t){const e=JSON.stringify(t);return this.postRequest("auth/register/content_creator",e,this.defaultHttpOptions)}prolongate(t,e){const n=JSON.stringify({token:t||this._userService.token});return this.postRequest("auth/prolongate",n,e||this.defaultHttpOptions)}activateUser(t){const e=JSON.stringify({token:this._userService.token,user_id:t});return this.postRequest("auth/activate/customer",e,this.defaultHttpOptions)}switchNewDesignState(t){const e=JSON.stringify({token:this._userService.token,portal_id:this._userService.portal_id,is_new_design_enabled:t});return this.postRequest("portal/design/switch",e,this.defaultHttpOptions)}addApiKey(t,e){let n=Object.assign({token:this._userService.token},t);const r=JSON.stringify(n);return this.postRequest("portal/marketplace/api_key/add",r,e||this.defaultHttpOptions)}generateCopecartCredentials(t){const e=JSON.stringify({token:this._userService.token});return this.postRequest("/copecart/credentials/generate",e,t||this.defaultHttpOptions)}generateFapiCredentials(t){const e=JSON.stringify({token:this._userService.token});return this.postRequest("/fapi/accept_url/generate",e,t||this.defaultHttpOptions)}generateZapierApiKey(t){const e=JSON.stringify({token:this._userService.token});return this.postRequest("/auth/apikey/generate",e,t||this.defaultHttpOptions)}checkDomain(t,e,n){const r="https://"+t+"/entity_api/check_domain",i=JSON.stringify({old_address:e});return this._http.post(r,i,n||this.defaultHttpOptions)}saveCustomDomain(t,e,n){const r=s.a.apiUrl+"/portal/domain/save",i=JSON.stringify({token:this._userService.token,new_address:t,portal_id:e});return this._http.post(r,i,n||this.defaultHttpOptions)}sendHelpMail(t,e="Message from contact form",n){const r=s.a.apiUrl+"/helpdesk/email/send",i=JSON.stringify({token:this._userService.token,message:t,subject:e});return this._http.post(r,i,n||this.defaultHttpOptions)}addToCourseLibrary(t,e,n){let r="free"===t?"customer/course/free/bind":"preview/course/add";const i=JSON.stringify({token:this._userService.token,free_access_hash:e});return this.postRequest(r,i,n||this.defaultHttpOptions)}addFreeCourseToCustomer(t,e){const n=JSON.stringify(t);return this.postRequest("customer/course/free/add",n,e||this.defaultHttpOptions)}addFreeCourseToCustomerWithDoubleOptin(t,e){const n=JSON.stringify(t);return this.postRequest("lead/course/add",n,e||this.defaultHttpOptions)}abstractAuthorizedPostRequest(t,e,n){const r=Object.assign({token:this._userService.token},e),i=JSON.stringify(r);return this.postRequest(t,i,n||this.defaultHttpOptions)}getPublicLanding(t,e){let n={};"number"==typeof t?n.id=t:n.permalink=t;const r=JSON.stringify(n);return this.postRequest("public/landing",r,e||this.defaultHttpOptions)}getPublicOptinProcess(t,e){const n=JSON.stringify({id:t});return this.postRequest("public/opt_in_process",n,e||this.defaultHttpOptions)}createLead(t,e){const n=JSON.stringify(t);return this.postRequest("lead/create",n,e||this.defaultHttpOptions)}createActivation(t,e){const n=JSON.stringify(t);return this.postRequest("lead/create_activation",n,e||this.defaultHttpOptions)}activateLead(t,e){const n=JSON.stringify(t);return this.postRequest("lead/activate",n,e||this.defaultHttpOptions)}createOrderByCC(t,e){const n=JSON.stringify(t);return this.postRequest("customer/course/gift",n,e||this.defaultHttpOptions)}loginAsCC(t,e){const n=JSON.stringify({portal_id:t,token:this._userService.token});return this.postRequest("auth/admin/content_creator/login",n,e||this.defaultHttpOptions)}generatePassword(t,e,n){const r=JSON.stringify({token:this._userService.token,id:t,new_password:e});return this.postRequest("auth/password/customer/generate",r,n||this.defaultHttpOptions)}getPaidStatus(t,e,n){const r=JSON.stringify({token:this._userService.token,portal_member_id:e||this._userService.client.portal_member.id,id:t});return this.postRequest("portal/course/payment/check",r,n||this.defaultHttpOptions)}setSmtpSettings(t,e){let n=Object.assign({token:this._userService.token},t);const r=JSON.stringify(n);return this.postRequest("portal/settings/smtp/set",r,e||this.defaultHttpOptions)}checkEmailsTemplates(t,e){let n=Object.assign({token:this._userService.token},t);const r=JSON.stringify(n);return this.postRequest("portal/settings/email_template/check",r,e||this.defaultHttpOptions)}getCustomerCourseAndModulesProgress(t,e){const n=JSON.stringify({token:this._userService.token,customer_id:e,course_ids:t});return this.postRequest("portal/course/progress/get",n,this.defaultHttpOptions)}getLessonAndModulesAccess(t,e,n=100){const r=JSON.stringify({token:this._userService.token,customer_id:t,course_ids:e,limit:n});return this.postRequest("portal/course/access/check",r,this.defaultHttpOptions)}getCoursesModulesAndLessonsCount(t){const e=JSON.stringify({token:this._userService.token,course_ids:t});return this.postRequest("portal/course/parts/count",e,this.defaultHttpOptions)}getVideoAnimatedPreview(t){const e=JSON.stringify({token:this._userService.token,file_handle:t});return this.postRequest("video/animated_preview/get",e,this.defaultHttpOptions)}setVideoStaticPreview(t,e){const n=JSON.stringify({token:this._userService.token,video_id:t,preview_file_id:e});return this.postRequest("video/preview/set/custom",n,this.defaultHttpOptions)}resetVideoStaticPreview(t,e){const n=JSON.stringify({token:this._userService.token,video_id:t,preview_frame_second:e});return this.postRequest("video/preview/set/default",n,this.defaultHttpOptions)}copyToTheEntity(t,e,n){const r="portal/"+n+"/copy";let i={token:this._userService.token};"module"===n?(i.module_id=t,i.new_courses_id=e):(i.lesson_id=t,i.new_modules_id=e);const o=JSON.stringify(i);return this.postRequest(r,o,this.defaultHttpOptions)}setAccessToUser(t,e){const n="portal/"+t+"/access/update",r=JSON.stringify({token:this._userService.token,values:e});return this.postRequest(n,r,this.defaultHttpOptions)}setCourseActivity(t,e){const n=JSON.stringify({token:this._userService.token,course_id:t,is_active:e});return this.postRequest("portal/course/activation",n,this.defaultHttpOptions)}emailTest(t,e,n){const r=`lead/${t}/email/test`;let i=Object.assign({token:this._userService.token},e);const o=JSON.stringify(i);return this.postRequest(r,o,n||this.defaultHttpOptions)}acceptAffiliate(t,e){const n=JSON.stringify({token:this._userService.token,portal_id:t});return this.postRequest("affiliate/accept",n,e||this.defaultHttpOptions)}importWhiteLabelCourse(t,e){const n=JSON.stringify({token:this._userService.token,portal_id:t,course_id:e});return this.postRequest("portal/course/import",n,this.defaultHttpOptions)}importWhiteLabelLanding(t,e){const n=JSON.stringify({token:this._userService.token,portal_id:t,landing_id:e});return this.postRequest("portal/landing/import",n,this.defaultHttpOptions)}startNewQuizPass(t){const e=JSON.stringify({lesson_id:t,token:this._userService.token});return this.postRequest("quiz/start",e,this.defaultHttpOptions)}getQuizVerionByTimestamp(t){let e;return t&&(t.token=this._userService.token,e=JSON.stringify(t)),this.postRequest("/history/module_lesson_content_block/get_by_timestamp",e,this.defaultHttpOptions)}getQuizAccessByCourseIds(t,e){const n=JSON.stringify({token:this._userService.token,customer_id:t,course_id:e});return this.postRequest("portal/quiz/access/check",n,this.defaultHttpOptions)}getExistQuizPassing(t){const e=Object.assign({token:this._userService.token},t),n=JSON.stringify(e);return this.postRequest("entity/quiz_assessment/get",n,this.defaultHttpOptions)}getQuizQuestion(t){const e=JSON.stringify({assessment_id:t,token:this._userService.token});return this.postRequest("quiz/questions/next",e,this.defaultHttpOptions)}getQuizResults(t){const e=JSON.stringify({assessment_id:t,token:this._userService.token});return this.postRequest("quiz/results/get",e,this.defaultHttpOptions)}saveQuizAnswers(t,e){const n=JSON.stringify({assessment_id:t,customer_answers:[e],token:this._userService.token});return this.postRequest("quiz/results/add",n,this.defaultHttpOptions)}getQuizAssesments(t){const e=Object.assign({token:this._userService.token},t),n=JSON.stringify(e);return this.postRequest("quiz/assessments/get",n,this.defaultHttpOptions)}getCommunityTypes(){return this.getRequest("entity/community_element_type/get")}getCommunitySettings(){let t=JSON.stringify({token:this._userService.token});return this.postRequest("entity/community_settings/info",t,this.defaultHttpOptions)}getCommunityDisplayNameSettings(){const t="community_settings/display_name_setting_code/get?token="+this._userService.token;let e=JSON.stringify({token:this._userService.token});return this.postRequest(t,e,this.defaultHttpOptions)}updateCommunitySettings(t){const e=JSON.stringify({values:t,token:this._userService.token});return this.postRequest("entity/community_settings/update",e,this.defaultHttpOptions)}updateBindedCourseList(t,e){const n=JSON.stringify({community_id:t,course_ids:e,token:this._userService.token});return this.postRequest("courses_to_community/bind",n,this.defaultHttpOptions)}updateTrialUserTime(t,e){let n=JSON.stringify({portal_id:t,new_ended_at:e,token:this._userService.token});return this.postRequest("admin/trial_portal/extend",n,this.defaultHttpOptions)}contentCreatorVerify(t){const e=JSON.stringify(t);return this.postRequest("auth/register/verify",e,this.defaultHttpOptions)}resendVerificationEmail(t){const e=JSON.stringify(t);return this.postRequest("auth/verification/email/send",e,this.defaultHttpOptions)}rootVerifyContentCreator(t){const e=JSON.stringify(t);return this.postRequest("auth/verify/content_creator",e,this.defaultHttpOptions)}recalculateCourseAccess(t){const e=JSON.stringify({course_id:t,token:this._userService.token});return this.postRequest("portal/course/access/recalculate",e,this.defaultHttpOptions)}}return t.\u0275fac=function(e){return new(e||t)(a["\u0275\u0275inject"](r.b),a["\u0275\u0275inject"](o.a))},t.\u0275prov=a["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},t4rR:function(t,e,n){var r=n("yNUO"),i=n("iUbB");t.exports=function(t,e,n){var o=n&&Number(n.weekStartsOn)||0,s=r(t),a=Number(e),c=s.getDay();return i(s,((a%7+7)%7<o?7:0)+a-c)}},tMf1:function(t,e,n){var r=n("x84W");t.exports=function(t){return r(t,{weekStartsOn:1})}},tS1D:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("D0XW"),i=n("Y6u4"),o=n("syX2"),s=n("z6cu");function a(t,e=r.a){return Object(o.a)(t,Object(s.a)(new i.a),e)}},"tf+s":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("7Hc7"),o=n("Y7HM");class s extends r.a{constructor(t,e=0,n=i.a){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!Object(o.a)(e)||e<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=i.a)}static create(t,e=0,n=i.a){return new s(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(s.dispatch,this.delayTime,{source:this.source,subscriber:t})}}function a(t,e=0){return function(n){return n.lift(new c(t,e))}}class c{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new s(e,this.delay,this.scheduler).subscribe(t)}}},"tg+8":function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getDate()}},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return k})),n.d(e,"b",(function(){return T})),n.d(e,"c",(function(){return B})),n.d(e,"d",(function(){return C})),n.d(e,"e",(function(){return _})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return x}));var r=n("fXoL"),i=n("LRne"),o=n("HDdC"),s=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("ofXK");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return p(t)}encodeValue(t){return p(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function p(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,"/")}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[i,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function v(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,n,r){let 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 d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new m,this.urlWithParams=e}serializeBody(){return null===this.body?null:g(this.body)||b(this.body)||v(this.body)||"string"==typeof this.body?this.body:this.body instanceof m?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||v(this.body)?null:b(this.body)?this.body.type||null:g(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof m?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,r=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new y(e,n,i,{params:c,headers:a,reportProgress:s,responseType:r,withCredentials:o})}}const _=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class S extends w{constructor(t={}){super(t),this.type=_.ResponseHeader}clone(t={}){return new S({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})}}class x extends w{constructor(t={}){super(t),this.type=_.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new x({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})}}class C extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}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}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof y)r=t;else{let i=void 0;i=n.headers instanceof d?n.headers:new d(n.headers);let o=void 0;n.params&&(o=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new y(t,e,void 0!==n.body?n.body:null,{headers:i,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const o=Object(i.a)(r).pipe(Object(s.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===n.observe)return o;const l=o.pipe(Object(a.a)(t=>t instanceof x));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(c.a)(t=>t.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](u))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const k=new r.InjectionToken("HTTP_INTERCEPTORS");let A=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const D=/^\)\]\}',?\n/;class j{}let I=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new o.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new d(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new S({headers:o,status:e,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),c=null;204!==i&&(c=void 0===n.response?n.responseText:n.response),0===i&&(i=c?200:0);let l=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(D,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new x({body:c,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new C({error:c,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new C({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let c=!1;const l=r=>{c||(e.next(o()),c=!0);let i={type:_.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},u=t=>{let n={type:_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",l),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:_.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),t.reportProgress&&(n.removeEventListener("progress",l),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](j))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const M=new r.InjectionToken("XSRF_COOKIE_NAME"),N=new r.InjectionToken("XSRF_HEADER_NAME");class F{}let R=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.S)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](l.e),r["\u0275\u0275inject"](r.PLATFORM_ID),r["\u0275\u0275inject"](M))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const 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)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](F),r["\u0275\u0275inject"](N))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(k,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](h),r["\u0275\u0275inject"](r.Injector))},t.\u0275prov=r["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:L,useClass:A}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:M,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[L,{provide:k,useExisting:L,multi:!0},{provide:F,useClass:R},{provide:M,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),B=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[T,{provide:u,useClass:V},P,{provide:h,useExisting:P},I,{provide:j,useExisting:I}],imports:[[H.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tmjD:function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return v}));var r=n("mrSG"),i=n("fXoL"),o=n("3Pt+"),s=n("ofXK");const a=new i.InjectionToken("config"),c=new i.InjectionToken("NEW_CONFIG"),l=new i.InjectionToken("INITIAL_CONFIG"),u={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},h=["Hh:m0:s0","Hh:m0","m0:s0"],d=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let f=(()=>{let t=class{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(t,e,n,r)=>{const i=t.split(n),o=i.length>1?`${n}${i[1]}`:"";let s=i[0];const a=this.separatorLimit.replace(/\s/g,"");a&&+a&&(s="-"===s[0]?"-"+s.slice(1,s.length).slice(0,a.length):s.slice(0,a.length));const c=/(\d+)(\d{3})/;for(;e&&c.test(s);)s=s.replace(c,"$1"+e+"$2");return void 0===r?s+o:0===r?s:s+o.substr(0,r+1)},this.percentage=t=>Number(t)>=0&&Number(t)<=100,this.getPrecision=t=>{const e=t.split(".");return e.length>1?Number(e[e.length-1]):1/0},this.checkInputPrecision=(t,e,n)=>{if(e<1/0){const r=new RegExp(this._charToRegExpExpression(n)+`\\d{${e}}.*$`),i=t.match(r);i&&i[0].length-1>e&&(t=t.substring(0,t.length-(i[0].length-1-e))),0===e&&t.endsWith(n)&&(t=t.substring(0,t.length-1))}return t},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers}applyMaskWithPattern(t,e){const[n,r]=e;return this.customPattern=r,this.applyMask(t,n)}applyMask(t,e,n=0,r=(()=>{})){if(null==t||void 0===e)return"";let i=0,o="",s=!1,a=!1,c=1,l=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t.endsWith(this.suffix)&&(t=t.slice(0,t.length-this.suffix.length));const u=t.toString().split("");"IP"===e&&(this.ipError=!!(u.filter(t=>"."===t).length<3&&u.length<7),e="099.099.099.099");const h=[];for(let m=0;m<t.length;m++)t[m].match("\\d")&&h.push(t[m]);if("CPF_CNPJ"===e&&(this.cpfCnpjError=!(11===h.length||14===h.length),e=h.length>11?"00.000.000/0000-00":"000.000.000-00"),e.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const n=this.getPrecision(e);t=this.checkInputPrecision(t,n,this.decimalMarker)}if(t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))){const e=t.substring(0,t.indexOf(".")-1);t=`${e}${t.substring(t.indexOf("."),t.length)}`}o=this.percentage(t)?t:t.substring(0,t.length-1)}else if(e.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const r=this._charToRegExpExpression(this.thousandSeparator),i=this._charToRegExpExpression(this.decimalMarker),s='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(r,"").replace(i,""),l=new RegExp("["+s+"]");t.match(l)&&(t=t.substring(0,t.length-1));const u=this.getPrecision(e),h=(t=this.checkInputPrecision(t,u,this.decimalMarker)).replace(new RegExp(r,"g"),"");o=this._formatWithSeparators(h,this.thousandSeparator,this.decimalMarker,u);const d=o.indexOf(",")-t.indexOf(","),f=o.length-t.length;if(f>0&&","!==o[n]){a=!0;let t=0;do{this._shift.add(n+t),t++}while(t<f)}else 0!==d&&n>0&&!(o.indexOf(",")>=n&&n>3)||!(o.indexOf(".")>=n&&n>3)&&f<=0?(this._shift.clear(),a=!0,c=f,this._shift.add(n+=f)):this._shift.clear()}else for(let m=0,g=u[0];m<u.length&&i!==e.length;m++,g=u[m])if(this._checkSymbolMask(g,e[i])&&"?"===e[i+1])o+=g,i+=2;else if("*"===e[i+1]&&s&&this._checkSymbolMask(g,e[i+2]))o+=g,i+=3,s=!1;else if(this._checkSymbolMask(g,e[i])&&"*"===e[i+1])o+=g,s=!0;else if("?"===e[i+1]&&this._checkSymbolMask(g,e[i+2]))o+=g,i+=3;else if(this._checkSymbolMask(g,e[i])||this.hiddenInput&&this.maskAvailablePatterns[e[i]]&&this.maskAvailablePatterns[e[i]].symbol===g){if("H"===e[i]&&Number(g)>2){i+=1;const t=/[*?]/g.test(e.slice(0,i))?u.length:i;this._shift.add(t+this.prefix.length||0),m--;continue}if("h"===e[i]&&"2"===o&&Number(g)>3){i+=1,m--;continue}if("m"===e[i]&&Number(g)>5){i+=1;const t=/[*?]/g.test(e.slice(0,i))?u.length:i;this._shift.add(t+this.prefix.length||0),m--;continue}if("s"===e[i]&&Number(g)>5){i+=1;const t=/[*?]/g.test(e.slice(0,i))?u.length:i;this._shift.add(t+this.prefix.length||0),m--;continue}const n=31;if("d"===e[i]&&(Number(t.slice(i,i+2))>n||"/"===t[i+1])){i+=1;const t=/[*?]/g.test(e.slice(0,i))?u.length:i;this._shift.add(t+this.prefix.length||0),m--;continue}if("M"===e[i]){const r=12,o=0===i&&(Number(g)>2||Number(t.slice(i,i+2))>r||"/"===t[i+1]),s=t.slice(i-3,i-1).includes("/")&&("/"===t[i-2]&&Number(t.slice(i-1,i+1))>r&&"/"!==t[i]||"/"===t[i]||"/"===t[i-3]&&Number(t.slice(i-2,i))>r&&"/"!==t[i-1]||"/"===t[i-1]),a=Number(t.slice(i-3,i-1))<=n&&!t.slice(i-3,i-1).includes("/")&&"/"===t[i-1]&&(Number(t.slice(i,i+2))>r||"/"===t[i+1]),c=Number(t.slice(i-3,i-1))>n&&!t.slice(i-3,i-1).includes("/")&&!t.slice(i-2,i).includes("/")&&Number(t.slice(i-2,i))>r,l=Number(t.slice(i-3,i-1))<=n&&!t.slice(i-3,i-1).includes("/")&&"/"!==t[i-1]&&Number(t.slice(i-1,i+1))>r;if(o||s||a||c||l){i+=1;const t=/[*?]/g.test(e.slice(0,i))?u.length:i;this._shift.add(t+this.prefix.length||0),m--;continue}}o+=g,i++}else if(-1!==this.maskSpecialCharacters.indexOf(e[i])){o+=e[i],i++;const t=/[*?]/g.test(e.slice(0,i))?u.length:i;this._shift.add(t+this.prefix.length||0),m--}else this.maskSpecialCharacters.indexOf(g)>-1&&this.maskAvailablePatterns[e[i]]&&this.maskAvailablePatterns[e[i]].optional?(u[i]&&"099.099.099.099"!==e&&"000.000.000-00"!==e&&"00.000.000/0000-00"!==e&&(o+=u[i]),i++,m--):"*"===this.maskExpression[i+1]&&this._findSpecialChar(this.maskExpression[i+2])&&this._findSpecialChar(g)===this.maskExpression[i+2]&&s||"?"===this.maskExpression[i+1]&&this._findSpecialChar(this.maskExpression[i+2])&&this._findSpecialChar(g)===this.maskExpression[i+2]&&s?(i+=3,o+=g):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(g)<0&&g!==this.placeHolderCharacter&&(l=!0);o.length+1===e.length&&-1!==this.maskSpecialCharacters.indexOf(e[e.length-1])&&(o+=e[e.length-1]);let d=n+1;for(;this._shift.has(d);)c++,d++;let f=this._shift.has(n)?c:0;l&&f--,r(f,a),c<0&&this._shift.clear();let p=`${this.prefix}${o}${this.suffix}`;return 0===o.length&&(p=`${this.prefix}${o}`),p}_findSpecialChar(t){return this.maskSpecialCharacters.find(e=>e===t)}_checkSymbolMask(t,e){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[e]&&this.maskAvailablePatterns[e].pattern&&this.maskAvailablePatterns[e].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((t,e)=>t.match("^-?\\d")||"."===t||","===t||"-"===t&&0===e&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){if(t){const e="[\\^$.|?*+()";return" "===t?"\\s":e.indexOf(t)>=0?"\\"+t:t}return t}};return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](a))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),p=(()=>{let t=class extends f{constructor(t,e,n,r){super(e),this.document=t,this._config=e,this._elementRef=n,this._renderer=r,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=t=>{},this._formElement=this._elementRef.nativeElement}applyMask(t,e,n=0,r=(()=>{})){if(!e)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const i=t&&"number"==typeof this.selStart?t[this.selStart]:"";let o="";if(void 0!==this.hiddenInput){let e=this.actualValue.split("");""!==t&&e.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>e.length?e.splice(this.selStart,0,i):t.length<e.length&&(e.length-t.length==1?e.splice(this.selStart-1,1):e.splice(this.selStart,this.selEnd-this.selStart))):e=[],o=this.actualValue.length?this.shiftTypedSymbols(e.join("")):t}o=Boolean(o)&&o.length?o:t;const s=super.applyMask(o,e,n,r);if(this.actualValue=this.getActualValue(s),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(t=>t!==this.decimalMarker)),this.formControlResult(s),!this.showMaskTyped)return this.hiddenInput&&s&&s.length?this.hideInput(s,this.maskExpression):s;const a=this.prefix+this.maskIsShown;return s+("IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?a:a.slice(s.length))}applyValueChanges(t=0,e=(()=>{})){this._formElement.value=this.applyMask(this._formElement.value,this.maskExpression,t,e),this._formElement!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,e){return t.split("").map((t,n)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[e[n]]&&this.maskAvailablePatterns[e[n]].symbol?this.maskAvailablePatterns[e[n]].symbol:t).join("")}getActualValue(t){const e=t.split("").filter((t,e)=>this._checkSymbolMask(t,this.maskExpression[e])||this.maskSpecialCharacters.includes(this.maskExpression[e])&&t===this.maskExpression[e]);return e.join("")===t?e.join(""):t}shiftTypedSymbols(t){let e="";return(t&&t.split("").map((n,r)=>{if(this.maskSpecialCharacters.includes(t[r+1])&&t[r+1]!==this.maskExpression[r+1])return e=n,t[r+1];if(e.length){const t=e;return e="",t}return n})||[]).join("")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==this._formElement.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(this._formElement.value,this.maskExpression))}set formElementProperty([t,e]){this._renderer.setProperty(this._formElement,t,e)}checkSpecialCharAmount(t){return t.split("").filter(t=>this._findSpecialChar(t)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const e=[];for(let n=0;n<t.length;n++)t[n].match("\\d")&&e.push(t[n]);return e.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>3&&e.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>6&&e.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const e=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,n=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return e;const r=[];for(let i=0;i<t.length;i++)t[i].match("\\d")&&r.push(t[i]);return r.length<=3?e.slice(r.length,e.length):r.length>3&&r.length<=6?e.slice(r.length+1,e.length):r.length>6&&r.length<=9?e.slice(r.length+2,e.length):r.length>9&&r.length<11?e.slice(r.length+3,e.length):11===r.length?"":12===r.length?n.slice(17===t.length?16:15,n.length):r.length>12&&r.length<=14?n.slice(r.length+4,n.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters)):this.onChange(this.dropSpecialCharacters?this._checkSymbols(t):this._removeSuffix(this._removePrefix(t))))}_removeMask(t,e){return t?t.replace(this._regExpForRemove(e),""):t}_removePrefix(t){return this.prefix&&t?t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix&&t?t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(t=>"\\"+t).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const e=this._retrieveSeparatorPrecision(this.maskExpression);let n=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(n=n.replace(this.decimalMarker,".")),this.isNumberValue?e?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,n):Number(n):n}_retrieveSeparatorPrecision(t){const e=t.match(new RegExp("^separator\\.([^d]*)"));return e?Number(e[1]):null}_checkPrecision(t,e){return t.indexOf("2")>0?Number(e).toFixed(2):Number(e)}};return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](s.e),i["\u0275\u0275inject"](a),i["\u0275\u0275inject"](i.ElementRef),i["\u0275\u0275inject"](i.Renderer2))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();var m;let g=(()=>{let t=m=class{constructor(t,e,n){this.document=t,this._maskService=e,this._config=n,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:e,specialCharacters:n,patterns:r,prefix:i,suffix:o,thousandSeparator:s,decimalMarker:a,dropSpecialCharacters:c,hiddenInput:l,showMaskTyped:u,placeHolderCharacter:h,shownMaskExpression:d,showTemplate:f,clearIfNotMatch:p,validation:m,separatorLimit:g,allowNegativeNumbers:b}=t;if(e&&(this._maskValue=e.currentValue||"",e.currentValue&&e.currentValue.split("||").length>1&&(this._maskExpressionArray=e.currentValue.split("||").sort((t,e)=>t.length-e.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.maskSpecialCharacters=n.currentValue||[]}r&&r.currentValue&&(this._maskService.maskAvailablePatterns=r.currentValue),i&&(this._maskService.prefix=i.currentValue),o&&(this._maskService.suffix=o.currentValue),s&&(this._maskService.thousandSeparator=s.currentValue),a&&(this._maskService.decimalMarker=a.currentValue),c&&(this._maskService.dropSpecialCharacters=c.currentValue),l&&(this._maskService.hiddenInput=l.currentValue),u&&(this._maskService.showMaskTyped=u.currentValue),h&&(this._maskService.placeHolderCharacter=h.currentValue),d&&(this._maskService.shownMaskExpression=d.currentValue),f&&(this._maskService.showTemplate=f.currentValue),p&&(this._maskService.clearIfNotMatch=p.currentValue),m&&(this._maskService.validation=m.currentValue),g&&(this._maskService.separatorLimit=g.currentValue),b&&(this._maskService.allowNegativeNumbers=b.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(t=>"-"!==t))),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator"))return null;if(d.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(h.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let e=0;for(const n in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[n].optional&&!0===this._maskService.maskAvailablePatterns[n].optional){if(this._maskValue.indexOf(n)!==this._maskValue.lastIndexOf(n)?e+=this._maskValue.split("").filter(t=>t===n).join("").length:-1!==this._maskValue.indexOf(n)&&e++,-1!==this._maskValue.indexOf(n)&&t.toString().length>=this._maskValue.indexOf(n))return null;if(e===this._maskValue.length)return null}if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4)return null;if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const n=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-e:this._maskValue.length-e;if(t.toString().length<n)return this._createValidationError(t)}}return null}onInput(t){const e=t.target;if(this._inputValue=e.value,this._setMask(),!this._maskValue)return void this.onChange(e.value);const n=1===e.selectionStart?e.selectionStart+this._maskService.prefix.length:e.selectionStart;let r=0,i=!1;if(this._maskService.applyValueChanges(n,(t,e)=>{r=t,i=e}),this.document.activeElement!==e)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let o=this._position?this._inputValue.length+n+r:n+("Backspace"!==this._code||i?r:0);o>this._getActualInputLength()&&(o=this._getActualInputLength()),e.setSelectionRange(o,o),(this.maskExpression.includes("H")||this.maskExpression.includes("M"))&&0===r&&e.setSelectionRange(e.selectionStart+1,e.selectionStart+1),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(t){if(!this._maskValue)return;const e=t.target;null!==e&&null!==e.selectionStart&&e.selectionStart===e.selectionEnd&&e.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),e.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===e.value?(e.focus(),e.setSelectionRange(0,0)):e.selectionStart>this._maskService.actualValue.length&&e.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const n=e.value&&e.value!==this._maskService.prefix?e.value:this._maskService.prefix+this._maskService.maskIsShown;e.value!==n&&(e.value=n),(e.selectionStart||e.selectionEnd)<=this._maskService.prefix.length?e.selectionStart=this._maskService.prefix.length:e.selectionEnd>this._getActualInputLength()&&(e.selectionEnd=this._getActualInputLength())}onKeyDown(t){if(!this._maskValue)return;this._code=t.code?t.code:t.key;const e=t.target;if(this._inputValue=e.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===e.value.length&&(e.selectionStart=e.selectionEnd),8===t.keyCode&&0!==e.selectionStart)if(this.specialCharacters=this.specialCharacters||this._config.specialCharacters,this.prefix.length>1&&e.selectionStart<=this.prefix.length)e.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==e.selectionStart&&1!==e.selectionStart)for(;this.specialCharacters.includes(this._inputValue[e.selectionStart-1].toString())&&(this.prefix.length>=1&&e.selectionStart>this.prefix.length||0===this.prefix.length);)e.setSelectionRange(e.selectionStart-1,e.selectionStart-1);this.suffixCheckOnPressDelete(t.keyCode,e)}this.suffixCheckOnPressDelete(t.keyCode,e),this._maskService.prefix.length&&e.selectionStart<=this._maskService.prefix.length&&e.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const n=e.selectionStart;8!==t.keyCode||e.readOnly||0!==n||e.selectionEnd!==e.value.length||0===e.value.length||(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<e.selectionStart?e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===t.keyCode&&!0===t.ctrlKey||65===t.keyCode&&!0===t.metaKey)&&(e.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=e.selectionStart,this._maskService.selEnd=e.selectionEnd}writeValue(t){return Object(r.b)(this,void 0,void 0,(function*(){void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t="."!==this.decimalMarker?t.replace(".",this.decimalMarker):t,this._maskService.isNumberValue=!0),t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(t,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",t],this._inputValue=t}))}registerOnChange(t){this.onChange=t,this._maskService.onChange=this.onChange}registerOnTouched(t){this.onTouch=t}suffixCheckOnPressDelete(t,e){46===t&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===e.selectionStart&&e.setSelectionRange(e.selectionStart-1,e.selectionStart-1))}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}onModelChange(t){t||(this._maskService.actualValue="")}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((e,n,r)=>{if(this._start="{"===n?r:this._start,"}"!==n)return this._maskService._findSpecialChar(n)?e+n:e;this._end=r;const i=Number(t.slice(this._start+1,this._end));return e+new Array(i+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const e=this._maskValue.split("").filter(t=>":"!==t).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length<e||t.length<=e-2?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(t=>{const e=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&e)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,e;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}};return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](s.e),i["\u0275\u0275directiveInject"](p),i["\u0275\u0275directiveInject"](a))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,e){1&t&&i["\u0275\u0275listener"]("input",(function(t){return e.onInput(t)}))("blur",(function(){return e.onBlur()}))("click",(function(t){return e.onFocus(t)}))("keydown",(function(t){return e.onKeyDown(t)}))("ngModelChange",(function(t){return e.onModelChange(t)}))},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers"},features:[i["\u0275\u0275ProvidersFeature"]([{provide:o.r,useExisting:Object(i.forwardRef)(()=>m),multi:!0},{provide:o.q,useExisting:Object(i.forwardRef)(()=>m),multi:!0},p]),i["\u0275\u0275NgOnChangesFeature"]]}),t})();var b;let v=(()=>{let t=b=class{static forRoot(t){return{ngModule:b,providers:[{provide:c,useValue:t},{provide:l,useValue:u},{provide:a,useFactory:y,deps:[l,c]},f]}}static forChild(){return{ngModule:b}}};return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})();function y(t,e){return Object.assign(Object.assign({},t),e instanceof Function?e():e)}},tnsW:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t){return function(e){return e.lift(new o(t))}}class o{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new s(t,this.durationSelector))}}class s extends r.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const i=Object(r.c)(n,new r.a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return Lt})),n.d(e,"b",(function(){return P})),n.d(e,"c",(function(){return I})),n.d(e,"d",(function(){return Ve})),n.d(e,"e",(function(){return Xe})),n.d(e,"f",(function(){return $e})),n.d(e,"g",(function(){return Qe})),n.d(e,"h",(function(){return Ke})),n.d(e,"i",(function(){return hn})),n.d(e,"j",(function(){return tn})),n.d(e,"k",(function(){return $}));var r=n("ofXK"),i=n("fXoL"),o=n("LRne"),s=n("Cfvw"),a=n("2Vo4"),c=n("HDdC"),l=n("sVev"),u=n("itXk"),h=n("NXyV"),d=n("XNiG"),f=n("EY2u"),p=n("lJxs"),m=n("0EUg"),g=n("NJ9Y"),b=n("JIr8"),v=n("SxV6"),y=n("5+tZ"),_=n("Gi4w"),w=n("eIep"),S=n("IzEk"),x=n("JX91"),C=n("Kqap"),O=n("pLZG"),T=n("bOdf"),E=n("128B"),k=n("vkgz"),A=n("nYR2"),D=n("bHdf");class j{constructor(t,e){this.id=t,this.url=e}}class I extends j{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class P extends j{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class M extends j{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class N extends j{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class F extends j{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class R extends j{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class L extends j{constructor(t,e,n,r,i){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class V extends j{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class H extends j{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class B{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class G{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class z{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class W{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class U{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class q{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let $=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i["\u0275\u0275defineComponent"]({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i["\u0275\u0275element"](0,"router-outlet")},directives:function(){return[tn]},encapsulation:2}),t})();class K{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Y(t){return new K(t)}function Q(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function J(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const i={};for(let o=0;o<r.length;o++){const e=r[o],n=t[o];if(e.startsWith(":"))i[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}class Z{constructor(t,e){this.routes=t,this.module=e}}function tt(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];et(r,nt(e,r))}}function et(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&tt(t.children,e)}function nt(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function rt(t){const e=t.children&&t.children.map(rt),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=$),n}function it(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!ot(t[i],e[i]))return!1;return!0}function ot(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function st(t){return Array.prototype.concat.apply([],t)}function at(t){return t.length>0?t[t.length-1]:null}function ct(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function lt(t){return Object(i["\u0275isObservable"])(t)?t:Object(i["\u0275isPromise"])(t)?Object(s.a)(Promise.resolve(t)):Object(o.a)(t)}function ut(t,e,n){return n?function(t,e){return it(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!pt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const 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(n=>ot(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!pt(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!pt(n.segments,i))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=i.slice(0,n.segments.length),o=i.slice(n.segments.length);return!!pt(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,o)}}(e,n,n.segments)}(t.root,e.root)}class ht{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return vt.serialize(this)}}class dt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ct(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yt(this)}}class ft{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Y(this.parameters)),this._parameterMap}toString(){return Ot(this)}}function pt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function mt(t,e){let n=[];return ct(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),ct(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class gt{}class bt{parse(t){const e=new Dt(t);return new ht(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return yt(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return ct(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=mt(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${yt(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${wt(e)}=${wt(t)}`).join("&"):`${wt(e)}=${wt(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const vt=new bt;function yt(t){return t.segments.map(t=>Ot(t)).join("/")}function _t(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wt(t){return _t(t).replace(/%3B/gi,";")}function St(t){return _t(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xt(t){return decodeURIComponent(t)}function Ct(t){return xt(t.replace(/\+/g,"%20"))}function Ot(t){return`${St(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${St(t)}=${St(e[t])}`).join("")}`;var e}const Tt=/^[^\/()?;=#]+/;function Et(t){const e=t.match(Tt);return e?e[0]:""}const kt=/^[^=?&#]+/,At=/^[^?&#]+/;class Dt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new dt([],{}):new dt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new dt(t,e)),n}parseSegment(){const t=Et(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new ft(xt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Et(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Et(this.remaining);t&&(n=t,this.capture(n))}t[xt(e)]=xt(n)}parseQueryParam(t){const e=function(t){const e=t.match(kt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(At);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Ct(e),i=Ct(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Et(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");const o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new dt([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class jt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=It(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=It(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Pt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Pt(t,this._root).map(t=>t.value)}}function It(t,e){if(t===e.value)return e;for(const n of e.children){const e=It(t,n);if(e)return e}return null}function Pt(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Pt(t,n);if(r.length)return r.unshift(e),r}return[]}class Mt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Nt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ft extends jt{constructor(t,e){super(t),this.snapshot=e,Gt(this,t)}toString(){return this.snapshot.toString()}}function Rt(t,e){const n=function(t,e){const n=new Ht([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Bt("",new Mt(n,[]))}(t,e),r=new a.a([new ft("",{})]),i=new a.a({}),o=new a.a({}),s=new a.a({}),c=new a.a(""),l=new Lt(r,i,s,c,o,"primary",e,n.root);return l.snapshot=n.root,new Ft(new Mt(l,[]),n)}class Lt{constructor(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(p.a)(t=>Y(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(t=>Y(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vt(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Ht{constructor(t,e,n,r,i,o,s,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Y(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bt extends jt{constructor(t,e){super(e),this.url=t,Gt(this,e)}toString(){return zt(this._root)}}function Gt(t,e){e.value._routerState=t,e.children.forEach(e=>Gt(t,e))}function zt(t){const e=t.children.length>0?` { ${t.children.map(zt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,it(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),it(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!it(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),it(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Ut(t,e){var n,r;return it(t.params,e.params)&&pt(n=t.url,r=e.url)&&n.every((t,e)=>it(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Ut(t.parent,e.parent))}function qt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Xt(t,e,n,r,i){let o={};return r&&ct(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new ht(n.root===t?e:function t(e,n,r){const i={};return ct(e.children,(e,o)=>{i[o]=e===n?r:t(e,n,r)}),new dt(e.segments,i)}(n.root,t,e),o,i)}class $t{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&qt(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==at(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Kt{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Yt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Qt(t,e,n){if(t||(t=new dt([],{})),0===t.segments.length&&t.hasChildren())return Jt(t,e,n);const r=function(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;const e=t.segments[i],s=Yt(n[r]),a=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!ne(s,a,e))return o;r+=2}else{if(!ne(s,{},e))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new dt(t.segments.slice(0,r.pathIndex),{});return e.children.primary=new dt(t.segments.slice(r.pathIndex),t.children),Jt(e,0,i)}return r.match&&0===i.length?new dt(t.segments,{}):r.match&&!t.hasChildren()?Zt(t,e,n):r.match?Jt(t,0,i):Zt(t,e,n)}function Jt(t,e,n){if(0===n.length)return new dt(t.segments,{});{const r=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),i={};return ct(r,(n,r)=>{null!==n&&(i[r]=Qt(t.children[r],e,n))}),ct(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new dt(t.segments,i)}}function Zt(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){const t=te(n[i].outlets);return new dt(r,t)}if(0===i&&qt(n[0])){r.push(new ft(t.segments[e].path,n[0])),i++;continue}const o=Yt(n[i]),s=i<n.length-1?n[i+1]:null;o&&s&&qt(s)?(r.push(new ft(o,ee(s))),i+=2):(r.push(new ft(o,{})),i++)}return new dt(r,{})}function te(t){const e={};return ct(t,(t,n)=>{null!==t&&(e[n]=Zt(new dt([],{}),0,t))}),e}function ee(t){const e={};return ct(t,(t,n)=>e[n]=""+t),e}function ne(t,e,n){return t==n.path&&it(e,n.parameters)}class re{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Wt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Nt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),ct(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=Nt(t),i=t.value.component?n.children:e;ct(r,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Nt(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new q(t.value.snapshot))}),t.children.length&&this.forwardEvent(new W(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(Wt(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ie(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ie(t){Wt(t.value),t.children.forEach(ie)}function oe(t){return"function"==typeof t}function se(t){return t instanceof ht}class ae{constructor(t){this.segmentGroup=t||null}}class ce{constructor(t){this.urlTree=t}}function le(t){return new c.a(e=>e.error(new ae(t)))}function ue(t){return new c.a(e=>e.error(new ce(t)))}function he(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class de{constructor(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(i.NgModuleRef)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(p.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(b.a)(t=>{if(t instanceof ce)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ae)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(p.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(b.a)(t=>{if(t instanceof ae)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new dt([],{primary:t}):t;return new ht(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)(t=>new dt([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(o.a)({});const n=[],r=[],i={};return ct(t,(t,o)=>{const s=e(o,t).pipe(Object(p.a)(t=>i[o]=t));"primary"===o?n.push(s):r.push(s)}),o.a.apply(null,n.concat(r)).pipe(Object(m.a)(),Object(g.a)(),Object(p.a)(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,i,s){return Object(o.a)(...n).pipe(Object(p.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,i,s).pipe(Object(b.a)(t=>{if(t instanceof ae)return Object(o.a)(null);throw t}))),Object(m.a)(),Object(v.a)(t=>!!t),Object(b.a)((t,n)=>{if(t instanceof l.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,i))return Object(o.a)(new dt([],{}));throw new ae(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return ge(r)!==o?le(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):le(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ue(i):this.lineralizeSegments(n,i).pipe(Object(y.b)(n=>{const i=new dt(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:c,positionalParamSegments:l}=fe(e,r,i);if(!s)return le(e);const u=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?ue(u):this.lineralizeSegments(r,u).pipe(Object(y.b)(r=>this.expandSegment(t,e,n,r.concat(i.slice(c)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(p.a)(t=>(n._loadedConfig=t,new dt(r,{})))):Object(o.a)(new dt(r,{}));const{matched:i,consumedSegments:s,lastChild:a}=fe(e,n,r);if(!i)return le(e);const c=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object(y.b)(t=>{const n=t.module,r=t.routes,{segmentGroup:i,slicedSegments:a}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>me(t,e,n)&&"primary"!==ge(n))}(t,n,r)?{segmentGroup:pe(new dt(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==ge(r)&&(n[ge(r)]=new dt([],{}));return n}(r,new dt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>me(t,e,n))}(t,n,r)?{segmentGroup:pe(new dt(t.segments,function(t,e,n,r){const i={};for(const o of n)me(t,e,o)&&!r[ge(o)]&&(i[ge(o)]=new dt([],{}));return Object.assign(Object.assign({},r),i)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,c,r);return 0===a.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(Object(p.a)(t=>new dt(s,t))):0===r.length&&0===a.length?Object(o.a)(new dt(s,{})):this.expandSegment(n,i,r,a,"primary",!0).pipe(Object(p.a)(t=>new dt(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(o.a)(new Z(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(o.a)(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?Object(s.a)(r).pipe(Object(p.a)(r=>{const i=t.get(r);let o;if(function(t){return t&&oe(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!oe(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return lt(o)})).pipe(Object(m.a)(),Object(_.a)(t=>!0===t)):Object(o.a)(!0)}(t.injector,e,n).pipe(Object(y.b)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(p.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(Q(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(o.a)(new Z([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(o.a)(n);if(r.numberOfChildren>1||!r.children.primary)return he(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const i=this.createSegmentGroup(t,e.root,n,r);return new ht(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ct(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let o={};return ct(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new dt(i,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function fe(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:{}};const r=(e.matcher||J)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function pe(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new dt(t.segments.concat(e.segments),e.children)}return t}function me(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ge(t){return t.outlet||"primary"}class be{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ve{constructor(t,e){this.component=t,this.route=e}}function ye(t,e,n){const r=t._root;return function t(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Nt(n);return e.children.forEach(e=>{!function(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,a=n?n.value:null,c=r?r.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!pt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!pt(t.url,e.url)||!it(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ut(t,e)||!it(t.queryParams,e.queryParams);case"paramsChange":default:return!Ut(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new be(i)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?c?c.children:null:r,i,o),l&&o.canDeactivateChecks.push(new ve(c&&c.outlet&&c.outlet.component||null,a))}else a&&we(n,c,o),o.canActivateChecks.push(new be(i)),t(e,null,s.component?c?c.children:null:r,i,o)}(e,s[e.value.outlet],r,i.concat([e.value]),o),delete s[e.value.outlet]}),ct(s,(t,e)=>we(t,r.getContext(e),o)),o}(r,e?e._root:null,n,[r.value])}function _e(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function we(t,e,n){const r=Nt(t),i=t.value;ct(r,(t,r)=>{we(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new ve(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}const Se=Symbol("INITIAL_VALUE");function xe(){return Object(w.a)(t=>Object(u.b)(...t.map(t=>t.pipe(Object(S.a)(1),Object(x.a)(Se)))).pipe(Object(C.a)((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==Se)return t;if(r===Se&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||se(r))return r}return t},t)},Se),Object(O.a)(t=>t!==Se),Object(p.a)(t=>se(t)?t:!0===t),Object(S.a)(1)))}function Ce(t,e){return null!==t&&e&&e(new U(t)),Object(o.a)(!0)}function Oe(t,e){return null!==t&&e&&e(new z(t)),Object(o.a)(!0)}function Te(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(o.a)(!0);const i=r.map(r=>Object(h.a)(()=>{const i=_e(r,e,n);let o;if(function(t){return t&&oe(t.canActivate)}(i))o=lt(i.canActivate(e,t));else{if(!oe(i))throw new Error("Invalid CanActivate guard");o=lt(i(e,t))}return o.pipe(Object(v.a)())}));return Object(o.a)(i).pipe(xe())}function Ee(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(h.a)(()=>{const i=e.guards.map(i=>{const o=_e(i,e.node,n);let s;if(function(t){return t&&oe(t.canActivateChild)}(o))s=lt(o.canActivateChild(r,t));else{if(!oe(o))throw new Error("Invalid CanActivateChild guard");s=lt(o(r,t))}return s.pipe(Object(v.a)())});return Object(o.a)(i).pipe(xe())}));return Object(o.a)(i).pipe(xe())}class ke{}class Ae{constructor(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){try{const t=Ie(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Ht([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Mt(n,e),i=new Bt(this.url,r);return this.inheritParamsAndData(i._root),Object(o.a)(i)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Vt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=mt(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const o of t)try{return this.processSegmentAgainstRoute(o,e,n,r)}catch(i){if(!(i instanceof ke))throw i}if(this.noLeftoversInUrl(e,n,r))return[];throw new ke}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new ke;if((t.outlet||"primary")!==r)throw new ke;let i,o=[],s=[];if("**"===t.path){const o=n.length>0?at(n).parameters:{};i=new Ht(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ne(t),r,t.component,t,De(e),je(e)+n.length,Fe(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new ke;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||J)(n,t,e);if(!r)throw new ke;const i={};ct(r.posParams,(t,e)=>{i[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=a.consumedSegments,s=n.slice(a.lastChild),i=new Ht(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ne(t),r,t.component,t,De(e),je(e)+o.length,Fe(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=Ie(e,o,s,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Mt(i,t)]}if(0===a.length&&0===l.length)return[new Mt(i,[])];const u=this.processSegment(a,c,l,"primary");return[new Mt(i,u)]}}function De(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function je(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ie(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(n=>Pe(t,e,n)&&"primary"!==Me(n))}(t,n,r)){const i=new dt(e,function(t,e,n,r){const i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&"primary"!==Me(o)){const n=new dt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[Me(o)]=n}return i}(t,e,r,new dt(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Pe(t,e,n))}(t,n,r)){const o=new dt(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if(Pe(t,n,a)&&!i[Me(a)]){const n=new dt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Me(a)]=n}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new dt(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function Pe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Me(t){return t.outlet||"primary"}function Ne(t){return t.data||{}}function Fe(t){return t.resolve||{}}function Re(t,e,n,r){const i=_e(t,e,r);return lt(i.resolve?i.resolve(e,n):i(e,n))}function Le(t){return function(e){return e.pipe(Object(w.a)(e=>{const n=t(e);return n?Object(s.a)(n).pipe(Object(p.a)(()=>e)):Object(s.a)([e])}))}}class Ve{}class He{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const Be=new i.InjectionToken("ROUTES");class Ge{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(p.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new Z(st(r.injector.get(Be)).map(rt),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(s.a)(this.loader.load(t)):lt(t()).pipe(Object(y.b)(t=>t instanceof i.NgModuleFactory?Object(o.a)(t):Object(s.a)(this.compiler.compileModuleAsync(t))))}}class ze{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function We(t){throw t}function Ue(t,e,n){return e.parse("/")}function qe(t,e){return Object(o.a)(null)}let Xe=(()=>{class t{constructor(t,e,n,r,o,s,c,l){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 d.b,this.errorHandler=We,this.malformedUriErrorHandler=Ue,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:qe,afterPreactivation:qe},this.urlHandlingStrategy=new ze,this.routeReuseStrategy=new He,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(i.NgModuleRef),this.console=o.get(i["\u0275Console"]);const u=o.get(i.NgZone);this.isNgZoneEnabled=u instanceof i.NgZone,this.resetConfig(l),this.currentUrlTree=new ht(new dt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ge(s,c,t=>this.triggerEvent(new B(t)),t=>this.triggerEvent(new G(t))),this.routerState=Rt(this.currentUrlTree,this.rootComponentType),this.transitions=new a.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()}setupNavigations(t){const e=this.events;return t.pipe(Object(O.a)(t=>0!==t.id),Object(p.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(w.a)(t=>{let n=!1,r=!1;return Object(o.a)(t).pipe(Object(k.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(w.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(o.a)(t).pipe(Object(w.a)(t=>{const n=this.transitions.getValue();return e.next(new I(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?f.a:[t]}),Object(w.a)(t=>Promise.resolve(t)),(r=this.ngModule.injector,i=this.configLoader,s=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(w.a)(t=>function(t,e,n,r,i){return new de(t,e,n,r,i).apply()}(r,i,s,t.extractedUrl,a).pipe(Object(p.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(k.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,i){return function(o){return o.pipe(Object(y.b)(o=>function(t,e,n,r,i="emptyOnly",o="legacy"){return new Ae(t,e,n,r,i,o).recognize()}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(Object(p.a)(t=>Object.assign(Object.assign({},o),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(k.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(k.a)(t=>{const n=new F(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,i,s,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:s,extras:a}=t,c=new I(n,this.serializeUrl(r),i,s);e.next(c);const l=Rt(r,this.rootComponentType).snapshot;return Object(o.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),f.a}),Le(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),Object(k.a)(t=>{const e=new R(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(p.a)(t=>Object.assign(Object.assign({},t),{guards:ye(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(y.b)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(o.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(s.a)(t).pipe(Object(y.b)(t=>function(t,e,n,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return Object(o.a)(!0);const a=s.map(o=>{const s=_e(o,e,i);let a;if(function(t){return t&&oe(t.canDeactivate)}(s))a=lt(s.canDeactivate(t,e,n,r));else{if(!oe(s))throw new Error("Invalid CanDeactivate guard");a=lt(s(t,e,n,r))}return a.pipe(Object(v.a)())});return Object(o.a)(a).pipe(xe())}(t.component,t.route,n,e,r)),Object(v.a)(t=>!0!==t,!0))}(c,r,i,t).pipe(Object(y.b)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(s.a)(e).pipe(Object(T.a)(e=>Object(s.a)([Oe(e.route.parent,r),Ce(e.route,r),Ee(t,e.path,n),Te(t,e.route,n)]).pipe(Object(m.a)(),Object(v.a)(t=>!0!==t,!0))),Object(v.a)(t=>!0!==t,!0))}(r,a,t,e):Object(o.a)(n)),Object(p.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(k.a)(t=>{if(se(t.guardsResult)){const e=Q(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(k.a)(t=>{const e=new L(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(O.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new M(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Le(t=>{if(t.guards.canActivateChecks.length)return Object(o.a)(t).pipe(Object(k.a)(t=>{const e=new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(Object(y.b)(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;return i.length?Object(s.a)(i).pipe(Object(T.a)(t=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return Object(o.a)({});if(1===i.length){const o=i[0];return Re(t[o],e,n,r).pipe(Object(p.a)(t=>({[o]:t})))}const a={};return Object(s.a)(i).pipe(Object(y.b)(i=>Re(t[i],e,n,r).pipe(Object(p.a)(t=>(a[i]=t,t))))).pipe(Object(g.a)(),Object(p.a)(()=>a))}(t._resolve,t,e,r).pipe(Object(p.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Vt(t,n).resolve),null)))}(t.route,r,e,n)),Object(E.a)((t,e)=>t),Object(p.a)(e=>t)):Object(o.a)(t)}))}),Object(k.a)(t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),Le(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),Object(p.a)(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const o=function(e,n,r){return n.children.map(n=>{for(const i of r.children)if(e.shouldReuseRoute(i.value.snapshot,n.value))return t(e,n,i);return t(e,n)})}(e,n,r);return new Mt(i,o)}{const r=e.retrieve(n.value);if(r){const t=r.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(let r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new Lt(new a.a((i=n.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),o=n.children.map(n=>t(e,n));return new Mt(r,o)}}var i}(t,e._root,n?n._root:void 0);return new Ft(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(k.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,c=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(p.a)(t=>(new re(c,t.targetRouterState,t.currentRouterState,l).activate(i),t))),Object(k.a)({next(){n=!0},complete(){n=!0}}),Object(A.a)(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new M(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(b.a)(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=se(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new M(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new N(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var i;return f.a}));var i,c,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){tt(t),this.config=t.map(rt),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:o,preserveQueryParams:s,queryParamsHandling:a,preserveFragment:c}=e;Object(i.isDevMode)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:o;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=s?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,i){if(0===n.length)return Xt(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new $t(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return ct(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new $t(n,e,r)}(n);if(o.toRoot())return Xt(e.root,new dt([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new Kt(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Kt(n.snapshot._urlSegment,!0,0);const r=qt(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new Kt(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?Jt(s.segmentGroup,s.index,o.commands):Qt(s.segmentGroup,s.index,o.commands);return Xt(s.segmentGroup,a,e,r,i)}(l,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(i.isDevMode)()&&this.isNgZoneEnabled&&!i.NgZone.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=se(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(se(t))return ut(this.currentUrlTree,t,e);const n=this.parseUrl(t);return ut(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new P(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,i){const o=this.getTransition();if(o&&"imperative"!==e&&"imperative"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"hashchange"==e&&"popstate"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"popstate"==e&&"hashchange"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);let s,a,c;i?(s=i.resolve,a=i.reject,c=i.promise):c=new Promise((t,e)=>{s=t,a=e});const l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:s,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){i["\u0275\u0275invalidFactory"]()},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t}),t})(),$e=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(i.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Ye(this.skipLocationChange),replaceUrl:Ye(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ye(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ye(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](Xe),i["\u0275\u0275directiveInject"](Lt),i["\u0275\u0275injectAttribute"]("tabindex"),i["\u0275\u0275directiveInject"](i.Renderer2),i["\u0275\u0275directiveInject"](i.ElementRef))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&i["\u0275\u0275listener"]("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),Ke=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof P&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(i.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:Ye(this.skipLocationChange),replaceUrl:Ye(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Ye(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Ye(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](Xe),i["\u0275\u0275directiveInject"](Lt),i["\u0275\u0275directiveInject"](r.p))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i["\u0275\u0275listener"]("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(i["\u0275\u0275hostProperty"]("href",e.href,i["\u0275\u0275sanitizeUrl"]),i["\u0275\u0275attribute"]("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[i["\u0275\u0275NgOnChangesFeature"]]}),t})();function Ye(t){return""===t||!!t}let Qe=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.element=e,this.renderer=n,this.link=r,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof P&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](Xe),i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](i.Renderer2),i["\u0275\u0275directiveInject"]($e,8),i["\u0275\u0275directiveInject"](Ke,8))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(i["\u0275\u0275contentQuery"](n,$e,!0),i["\u0275\u0275contentQuery"](n,Ke,!0)),2&t&&(i["\u0275\u0275queryRefresh"](r=i["\u0275\u0275loadQuery"]())&&(e.links=r),i["\u0275\u0275queryRefresh"](r=i["\u0275\u0275loadQuery"]())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i["\u0275\u0275NgOnChangesFeature"]]}),t})();class Je{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ze,this.attachRef=null}}class Ze{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new Je,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let tn=(()=>{class t{constructor(t,e,n,r,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.EventEmitter,this.deactivateEvents=new i.EventEmitter,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new en(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](Ze),i["\u0275\u0275directiveInject"](i.ViewContainerRef),i["\u0275\u0275directiveInject"](i.ComponentFactoryResolver),i["\u0275\u0275injectAttribute"]("name"),i["\u0275\u0275directiveInject"](i.ChangeDetectorRef))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class en{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Lt?this.route:t===Ze?this.childContexts:this.parent.get(t,e)}}class nn{}class rn{preload(t,e){return Object(o.a)(null)}}let on=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new Ge(e,n,e=>t.triggerEvent(new B(e)),e=>t.triggerEvent(new G(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(O.a)(t=>t instanceof P),Object(T.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(i.NgModuleRef);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return Object(s.a)(n).pipe(Object(D.a)(),Object(p.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(y.b)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](Xe),i["\u0275\u0275inject"](i.NgModuleFactoryLoader),i["\u0275\u0275inject"](i.Compiler),i["\u0275\u0275inject"](i.Injector),i["\u0275\u0275inject"](nn))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),sn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof I?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof P&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof X&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new X(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){i["\u0275\u0275invalidFactory"]()},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t}),t})();const an=new i.InjectionToken("ROUTER_CONFIGURATION"),cn=new i.InjectionToken("ROUTER_FORROOT_GUARD"),ln=[r.o,{provide:gt,useClass:bt},{provide:Xe,useFactory:function(t,e,n,i,o,s,a,c={},l,u){const h=new Xe(null,t,e,n,i,o,s,st(a));if(l&&(h.urlHandlingStrategy=l),u&&(h.routeReuseStrategy=u),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(r.R)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[gt,Ze,r.o,i.Injector,i.NgModuleFactoryLoader,i.Compiler,Be,an,[class{},new i.Optional],[Ve,new i.Optional]]},Ze,{provide:Lt,useFactory:function(t){return t.routerState.root},deps:[Xe]},{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader},on,rn,class{preload(t,e){return e().pipe(Object(b.a)(()=>Object(o.a)(null)))}},{provide:an,useValue:{enableTracing:!1}}];function un(){return new i.NgProbeToken("Router",Xe)}let hn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[ln,mn(e),{provide:cn,useFactory:pn,deps:[[Xe,new i.Optional,new i.SkipSelf]]},{provide:an,useValue:n||{}},{provide:r.p,useFactory:fn,deps:[r.E,[new i.Inject(r.a),new i.Optional],an]},{provide:sn,useFactory:dn,deps:[Xe,r.J,an]},{provide:nn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:rn},{provide:i.NgProbeToken,multi:!0,useFactory:un},[gn,{provide:i.APP_INITIALIZER,multi:!0,useFactory:bn,deps:[gn]},{provide:yn,useFactory:vn,deps:[gn]},{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:yn}]]}}static forChild(e){return{ngModule:t,providers:[mn(e)]}}}return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)(i["\u0275\u0275inject"](cn,8),i["\u0275\u0275inject"](Xe,8))}}),t})();function dn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new sn(t,e,n)}function fn(t,e,n={}){return n.useHash?new r.i(t,e):new r.C(t,e)}function pn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function mn(t){return[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:Be,multi:!0,useValue:t}]}let gn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new d.b}appInitializer(){return this.injector.get(r.n,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(Xe),r=this.injector.get(an);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(o.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(an),n=this.injector.get(on),r=this.injector.get(sn),o=this.injector.get(Xe),s=this.injector.get(i.ApplicationRef);t===s.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](i.Injector))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();function bn(t){return t.appInitializer.bind(t)}function vn(t){return t.bootstrapListener.bind(t)}const yn=new i.InjectionToken("Router Initializer")},u3z5:function(t,e,n){var r=n("yHON"),i=n("yNUO"),o=n("4Toj"),s=n("Us+F");t.exports=function(t,e,n){var a=n||{},c=r(t,e),l=a.locale,u=s.distanceInWords.localize;l&&l.distanceInWords&&l.distanceInWords.localize&&(u=l.distanceInWords.localize);var h,d,f,p={addSuffix:Boolean(a.addSuffix),comparison:c};c>0?(h=i(t),d=i(e)):(h=i(e),d=i(t));var m=Math[a.partialMethod?String(a.partialMethod):"floor"],g=o(d,h),b=d.getTimezoneOffset()-h.getTimezoneOffset(),v=m(g/60)-b;if("s"===(f=a.unit?String(a.unit):v<1?"s":v<60?"m":v<1440?"h":v<43200?"d":v<525600?"M":"Y"))return u("xSeconds",g,p);if("m"===f)return u("xMinutes",v,p);if("h"===f)return u("xHours",m(v/60),p);if("d"===f)return u("xDays",m(v/1440),p);if("M"===f)return u("xMonths",m(v/43200),p);if("Y"===f)return u("xYears",m(v/525600),p);throw new Error("Unknown unit: "+f)}},u47x:function(t,e,n){"use strict";n.d(e,"a",(function(){return H})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return L})),n.d(e,"e",(function(){return C})),n.d(e,"f",(function(){return F})),n.d(e,"g",(function(){return A})),n.d(e,"h",(function(){return V})),n.d(e,"i",(function(){return I})),n.d(e,"j",(function(){return P}));var r=n("ofXK"),i=n("fXoL"),o=n("XNiG"),s=n("quSY"),a=n("LRne"),c=n("FtGj"),l=n("vkgz"),u=n("Kj3r"),h=n("pLZG"),d=n("lJxs"),f=n("IzEk"),p=n("8LU1"),m=n("nLfN"),g=n("GU7r");function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let v=0;const y=new Map;let _=null,w=(()=>{class t{constructor(t){this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),y.set(e,{messageElement:e,referenceCount:0})):y.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=y.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}_&&0===_.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute("cdk-describedby-host");_&&this._deleteMessagesContainer(),y.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),_.appendChild(e),y.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+v++)}_deleteMessageElement(t){const e=y.get(t),n=e&&e.messageElement;_&&n&&_.removeChild(n),y.delete(t)}_createMessagesContainer(){if(!_){const t=this._document.getElementById("cdk-describedby-message-container");t&&t.parentNode.removeChild(t),_=this._document.createElement("div"),_.id="cdk-describedby-message-container",_.setAttribute("aria-hidden","true"),_.style.display="none",this._document.body.appendChild(_)}}_deleteMessagesContainer(){_&&_.parentNode&&(_.parentNode.removeChild(_),_=null)}_removeCdkDescribedByReferenceIds(t){const e=b(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=y.get(e);!function(t,e,n){const r=b(t,e);r.some(t=>t.trim()==n.trim())||(r.push(n.trim()),t.setAttribute(e,r.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=y.get(e);n.referenceCount--,function(t,e,n){const r=b(t,e).filter(t=>t!=n.trim());r.length?t.setAttribute(e,r.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=b(t,"aria-describedby"),r=y.get(e),i=r&&r.messageElement.id;return!!i&&-1!=n.indexOf(i)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),r=t.getAttribute("aria-label");return!(!n||r&&r.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](r.e))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(r.e))},token:t,providedIn:"root"}),t})();class S{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.b,this._typeaheadSubscription=s.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.b,this.change=new o.b,t instanceof i.QueryList&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){if(this._items.length&&this._items.some(t=>"function"!=typeof t.getLabel))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(l.a)(t=>this._pressedLetters.push(t)),Object(u.a)(t),Object(h.a)(()=>this._pressedLetters.length>0),Object(d.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n<e.length+1;n++){const r=(this._activeItemIndex+n)%e.length,i=e[r];if(!this._skipPredicateFn(i)&&0===i.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}setActiveItem(t){const e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)}onKeydown(t){const e=t.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(e=>!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.m:return void this.tabOut.next();case c.b:if(this._vertical&&n){this.setNextItemActive();break}return;case c.n:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.k:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.g:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((n||Object(c.q)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.a&&e<=c.o||e>=c.p&&e<=c.h)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof i.QueryList?this._items.toArray():this._items}}class x extends S{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class C extends S{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let O=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){const t=e&&e.nodeName.toLowerCase();if(-1===E(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===t)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}let r=t.nodeName.toLowerCase(),i=E(t);if(t.hasAttribute("contenteditable"))return-1!==i;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}isFocusable(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||T(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](m.a))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(m.a))},token:t,providedIn:"root"}),t})();function T(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function E(t){if(!T(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class k{constructor(t,e,n,r,i=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,i||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)?console.warn(`Found use of deprecated attribute 'cdk-focus-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]):e[n].hasAttribute("cdk-focus-region-"+t)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${t}', use 'cdkFocusRegion${t}' instead. The deprecated attribute will be removed in 8.0.0.`,e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),Object(i.isDevMode)()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const t=this._getRegionBoundary("start");return t&&t.focus(),!!t}focusLastTabbableElement(){const t=this._getRegionBoundary("end");return t&&t.focus(),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=0;n<e.length;n++){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(t)return t}return null}_getLastTabbableElement(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;let e=t.children||t.childNodes;for(let n=e.length-1;n>=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(f.a)(1)).subscribe(t)}}let A=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new k(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](O),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](r.e))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(O),Object(i["\u0275\u0275inject"])(i.NgZone),Object(i["\u0275\u0275inject"])(r.e))},token:t,providedIn:"root"}),t})();"undefined"!=typeof Element&&Element;const D=new i.InjectionToken("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),j=new i.InjectionToken("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let I=(()=>{class t{constructor(t,e,n,r){this._ngZone=e,this._defaultOptions=r,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let r,i;return 1===e.length&&"number"==typeof e[0]?i=e[0]:[r,i]=e,this.clear(),clearTimeout(this._previousTimeout),r||(r=n&&n.politeness?n.politeness:"polite"),null==i&&n&&(i=n.duration),this._liveElement.setAttribute("aria-live",r),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof i&&(this._previousTimeout=setTimeout(()=>this.clear(),i))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);return e.classList.add("cdk-live-announcer-element"),e.classList.add("cdk-visually-hidden"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),this._document.body.appendChild(e),e}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](D,8),i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](r.e),i["\u0275\u0275inject"](j,8))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(D,8),Object(i["\u0275\u0275inject"])(i.NgZone),Object(i["\u0275\u0275inject"])(r.e),Object(i["\u0275\u0275inject"])(j,8))},token:t,providedIn:"root"}),t})();function P(t){return 0===t.buttons}const M=new i.InjectionToken("cdk-focus-monitor-default-options"),N=Object(m.f)({passive:!0,capture:!0});let F=(()=>{class t{constructor(t,e,n,r){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=P(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=R(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=R(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let r=e;r;r=r.parentElement)n.call(this,t,r)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Object(a.a)(null);const n=Object(p.e)(t),r=Object(m.c)(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject.asObservable();const s={checkChildren:e,subject:new o.b,rootNode:r};return this._elementInfo.set(n,s),this._registerGlobalListeners(s),s.subject.asObservable()}stopMonitoring(t){const e=Object(p.e)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const r=Object(p.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=R(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==R(t))return;const r=this._getFocusOrigin(t);this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,N),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,N)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,N),t.addEventListener("mousedown",this._documentMousedownListener,N),t.addEventListener("touchstart",this._documentTouchstartListener,N),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,N),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,N),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,N),t.removeEventListener("mousedown",this._documentMousedownListener,N),t.removeEventListener("touchstart",this._documentTouchstartListener,N),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](i.NgZone),i["\u0275\u0275inject"](m.a),i["\u0275\u0275inject"](r.e,8),i["\u0275\u0275inject"](M,8))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(i.NgZone),Object(i["\u0275\u0275inject"])(m.a),Object(i["\u0275\u0275inject"])(r.e,8),Object(i["\u0275\u0275inject"])(M,8))},token:t,providedIn:"root"}),t})();function R(t){return t.composedPath?t.composedPath()[0]:t.target}let L=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new i.EventEmitter,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275directiveInject"](i.ElementRef),i["\u0275\u0275directiveInject"](F))},t.\u0275dir=i["\u0275\u0275defineDirective"]({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),V=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](m.a),i["\u0275\u0275inject"](r.e))},t.\u0275prov=Object(i["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(i["\u0275\u0275inject"])(m.a),Object(i["\u0275\u0275inject"])(r.e))},token:t,providedIn:"root"}),t})(),H=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=i["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=i["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)(i["\u0275\u0275inject"](V))},imports:[[m.b,g.c]]}),t})()},uKeJ:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}},uPm0:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t);return Math.floor(e.getMonth()/3)+1}},uPxA:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("ywEm"),i=n("Fr4G"),o=n("fXoL"),s=n("tyNb");let a=(()=>{class t{constructor(t,e,n){this._router=t,this._userService=e,this._ssr=n}canActivate(t,e){if(this._ssr.isBrowser)return new Promise(t=>{"trial_ended"===this._userService.getPortalType()?t(!0):(this._router.navigate(["/admin"]),t(!1))})}}return t.\u0275fac=function(e){return new(e||t)(o["\u0275\u0275inject"](s.e),o["\u0275\u0275inject"](i.a),o["\u0275\u0275inject"](r.a))},t.\u0275prov=o["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},uTdr:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n("Cfvw");var r=n("DH7j"),i=n("zx2A");function o(...t){return 1===t.length&&Object(r.a)(t[0])&&(t=t[0]),e=>e.lift(new s(t))}class s{constructor(t){this.nextSources=t}call(t,e){return e.subscribe(new a(t,this.nextSources))}}class a extends i.b{constructor(t,e){super(t),this.destination=t,this.nextSources=e}notifyError(){this.subscribeToNextSource()}notifyComplete(){this.subscribeToNextSource()}_error(t){this.subscribeToNextSource(),this.unsubscribe()}_complete(){this.subscribeToNextSource(),this.unsubscribe()}subscribeToNextSource(){const t=this.nextSources.shift();if(t){const e=new i.a(this),n=this.destination;n.add(e);const r=Object(i.c)(t,e);r!==e&&n.add(r)}else this.destination.complete()}}},uXFP:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("ds6q");e.windowCount=function(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}};var s=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.windowSize,this.startWindowEvery))},t}(),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new o.Subject],i.count=0,e.next(i.windows[0]),i}return r(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,s=i.length,a=0;a<s&&!this.closed;a++)i[a].next(t);var c=this.count-r+1;if(c>=0&&c%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var l=new o.Subject;i.push(l),n.next(l)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(i.Subscriber)},"un/a":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t=-1){return e=>e.lift(new o(t,e))}class o{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new s(t,this.count,this.source))}}class s extends r.a{constructor(t,e,n){super(t),this.count=e,this.source=n}error(t){if(!this.isStopped){const{source:e,count:n}=this;if(0===n)return super.error(t);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}}}},uttN:function(t,e,n){var r=n("7B8A");t.exports=function(t,e){var n=Number(e);return r(t,-n)}},vFt6:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n("z+RT"),i=n("9AQC");function o(t,e){try{for(var n=t,r=[],i=0,o=0,a=" > ".length,c=void 0;n&&i++<5&&!("html"===(c=s(n,e))||i>1&&o+r.length*a+c.length>=80);)r.push(c),o+=c.length,n=n.parentNode;return r.reverse().join(" > ")}catch(l){return"<unknown>"}}function s(t,e){var n,r,o,s,a,c=t,l=[];if(!c||!c.tagName)return"";l.push(c.tagName.toLowerCase());var u=e&&e.length?e.filter((function(t){return c.getAttribute(t)})).map((function(t){return[t,c.getAttribute(t)]})):null;if(u&&u.length)u.forEach((function(t){l.push("["+t[0]+'="'+t[1]+'"]')}));else if(c.id&&l.push("#"+c.id),(n=c.className)&&Object(i.l)(n))for(r=n.split(/\s+/),a=0;a<r.length;a++)l.push("."+r[a]);var h=["type","name","title","alt"];for(a=0;a<h.length;a++)(s=c.getAttribute(o=h[a]))&&l.push("["+o+'="'+s+'"]');return l.join("")}function a(){var t=Object(r.a)();try{return t.document.location.href}catch(e){return""}}},vGjl:function(t,e){!function(t){t.ng=t.ng||{},t.ng.common=t.ng.common||{},t.ng.common.locales=t.ng.common.locales||{};const e=void 0;t.ng.common.locales.mk=["mk",[["\u043f\u0440\u0435\u0442\u043f\u043b.","\u043f\u043e\u043f\u043b."],e,["\u043f\u0440\u0435\u0442\u043f\u043b\u0430\u0434\u043d\u0435","\u043f\u043e\u043f\u043b\u0430\u0434\u043d\u0435"]],e,[["\u043d","\u043f","\u0432","\u0441","\u0447","\u043f","\u0441"],["\u043d\u0435\u0434.","\u043f\u043e\u043d.","\u0432\u0442.","\u0441\u0440\u0435.","\u0447\u0435\u0442.","\u043f\u0435\u0442.","\u0441\u0430\u0431."],["\u043d\u0435\u0434\u0435\u043b\u0430","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a","\u043f\u0435\u0442\u043e\u043a","\u0441\u0430\u0431\u043e\u0442\u0430"],["\u043d\u0435\u0434.","\u043f\u043e\u043d.","\u0432\u0442\u043e.","\u0441\u0440\u0435.","\u0447\u0435\u0442.","\u043f\u0435\u0442.","\u0441\u0430\u0431."]],[["\u043d","\u043f","\u0432","\u0441","\u0447","\u043f","\u0441"],["\u043d\u0435\u0434.","\u043f\u043e\u043d.","\u0432\u0442\u043e.","\u0441\u0440\u0435.","\u0447\u0435\u0442.","\u043f\u0435\u0442.","\u0441\u0430\u0431."],["\u043d\u0435\u0434\u0435\u043b\u0430","\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a","\u0432\u0442\u043e\u0440\u043d\u0438\u043a","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a","\u043f\u0435\u0442\u043e\u043a","\u0441\u0430\u0431\u043e\u0442\u0430"],["\u043d\u0435\u0434.","\u043f\u043e\u043d.","\u0432\u0442\u043e.","\u0441\u0440\u0435.","\u0447\u0435\u0442.","\u043f\u0435\u0442.","\u0441\u0430\u0431."]],[["\u0458","\u0444","\u043c","\u0430","\u043c","\u0458","\u0458","\u0430","\u0441","\u043e","\u043d","\u0434"],["\u0458\u0430\u043d.","\u0444\u0435\u0432.","\u043c\u0430\u0440.","\u0430\u043f\u0440.","\u043c\u0430\u0458","\u0458\u0443\u043d.","\u0458\u0443\u043b.","\u0430\u0432\u0433.","\u0441\u0435\u043f\u0442.","\u043e\u043a\u0442.","\u043d\u043e\u0435\u043c.","\u0434\u0435\u043a."],["\u0458\u0430\u043d\u0443\u0430\u0440\u0438","\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u043c\u0430\u0440\u0442","\u0430\u043f\u0440\u0438\u043b","\u043c\u0430\u0458","\u0458\u0443\u043d\u0438","\u0458\u0443\u043b\u0438","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438","\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438","\u043d\u043e\u0435\u043c\u0432\u0440\u0438","\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438"]],e,[["\u043f\u0440.\u043d.\u0435.","\u043d.\u0435."],e,["\u043f\u0440\u0435\u0434 \u043d\u0430\u0448\u0430\u0442\u0430 \u0435\u0440\u0430","\u043e\u0434 \u043d\u0430\u0448\u0430\u0442\u0430 \u0435\u0440\u0430"]],1,[6,0],["d.M.yy","d.M.y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",e,e,e],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"MKD","\u0434\u0435\u043d.","\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0434\u0435\u043d\u0430\u0440",{AUD:[e,"$"],CNY:[e,"\xa5"],GBP:[e,"\xa3"],HKD:[e,"$"],ILS:[e,"\u20aa"],INR:[e,"\u20b9"],JPY:[e,"\xa5"],KRW:[e,"\u20a9"],MKD:["\u0434\u0435\u043d."],NZD:[e,"$"],TWD:[e,"NT$"],USD:["US$","$"],VND:[e,"\u20ab"]},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length,r=parseInt(t.toString().replace(/^[^.]*\.?/,""),10)||0;return 0===n&&e%10==1&&e%100!=11||r%10==1&&r%100!=11?1:5},[[["\u043f\u043e\u043b\u043d.","\u043d\u0430\u043f\u043b.","\u0443\u0442\u0440\u043e","\u043f\u0440\u0435\u0442\u043f\u043b.","\u043f\u043e\u043f\u043b.","\u0432\u0435\u0447.","\u043d\u043e\u045c\u0435"],["\u043f\u043e\u043b\u043d\u043e\u045c","\u043d\u0430\u043f\u043b\u0430\u0434\u043d\u0435","\u043d\u0430\u0443\u0442\u0440\u043e","\u043f\u0440\u0435\u0442\u043f\u043b.","\u043f\u043e\u043f\u043b.","\u043d\u0430\u0432\u0435\u0447\u0435\u0440","\u043d\u043e\u045c\u0435"],["\u043f\u043e\u043b\u043d\u043e\u045c","\u043d\u0430\u043f\u043b\u0430\u0434\u043d\u0435","\u043d\u0430\u0443\u0442\u0440\u043e","\u043f\u0440\u0435\u0442\u043f\u043b\u0430\u0434\u043d\u0435","\u043f\u043e\u043f\u043b\u0430\u0434\u043d\u0435","\u043d\u0430\u0432\u0435\u0447\u0435\u0440","\u043f\u043e \u043f\u043e\u043b\u043d\u043e\u045c"]],[["\u043f\u043e\u043b\u043d\u043e\u045c","\u043f\u043b\u0430\u0434\u043d\u0435","\u043d\u0430\u0443\u0442\u0440\u043e","\u043f\u0440\u0435\u0442\u043f\u043b.","\u043f\u043e\u043f\u043b.","\u043d\u0430\u0432\u0435\u0447\u0435\u0440","\u043f\u043e \u043f\u043e\u043b\u043d\u043e\u045c"],["\u043f\u043e\u043b\u043d\u043e\u045c","\u043d\u0430\u043f\u043b\u0430\u0434\u043d\u0435","\u043d\u0430\u0443\u0442\u0440\u043e","\u043f\u0440\u0435\u0442\u043f\u043b.","\u043f\u043e\u043f\u043b.","\u043d\u0430\u0432\u0435\u0447\u0435\u0440","\u043f\u043e \u043f\u043e\u043b\u043d\u043e\u045c"],["\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u045c","\u043d\u0430\u043f\u043b\u0430\u0434\u043d\u0435","\u043d\u0430\u0443\u0442\u0440\u043e","\u043f\u0440\u0435\u0442\u043f\u043b\u0430\u0434\u043d\u0435","\u043f\u043e\u043f\u043b\u0430\u0434\u043d\u0435","\u043d\u0430\u0432\u0435\u0447\u0435\u0440","\u043f\u043e \u043f\u043e\u043b\u043d\u043e\u045c"]],["00:00","12:00",["04:00","10:00"],["10:00","12:00"],["12:00","18:00"],["18:00","24:00"],["00:00","04:00"]]]]}("undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window)},vLqr:function(t,e,n){"use strict";var r=n("Q1FS");function i(t){t.subscriber.error(t.error)}e.throwError=function(t,e){return new r.Observable(e?function(n){return e.schedule(i,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}},vUl8:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("ds6q"),o=n("Y4kR"),s=n("cSoz");e.windowWhen=function(t){return function(e){return e.lift(new a(t))}};var a=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.closingSelector))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,r=this.window=new i.Subject;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(o){return this.destination.error(o),void this.window.error(o)}this.add(this.closingNotification=s.subscribeToResult(this,n))},e}(o.OuterSubscriber)},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),i=n("KqfI"),o=n("n6bG");function s(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends r.a{constructor(t,e,n,r){super(t),this._tapNext=i.a,this._tapError=i.a,this._tapComplete=i.a,this._tapError=n||i.a,this._tapComplete=r||i.a,Object(o.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||i.a,this._tapError=e.error||i.a,this._tapComplete=e.complete||i.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},vqkR:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){return e.subscribe(new s(t,this.notifier))}}class s extends r.b{constructor(t,e){super(t),this.hasValue=!1;const n=new r.a(this);this.add(n),this.innerSubscription=n;const i=Object(r.c)(e,n);i!==n&&(this.add(i),this.innerSubscription=i)}_next(t){this.hasValue&&super._next(t)}notifyNext(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()}notifyComplete(){}}},"vrE+":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1");e.scan=function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new o(t,e,n))}};var o=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(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.Subscriber)},vxfF:function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return v})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return b})),n("8LU1");var r=n("fXoL"),i=n("XNiG"),o=n("LRne"),s=n("HDdC"),a=n("xgIS"),c=n("VRyK"),l=(n("eNwd"),n("7Hc7"),n("quSY"),n("7+OI"),n("/uUt"),n("3UWI")),u=n("pLZG"),h=n("1G5W"),d=(n("JX91"),n("Zy1z"),n("eIep"),n("UXun"),n("nLfN")),f=n("ofXK"),p=n("cH1L");n("0EQZ");let m=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new i.b,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new s.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(l.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(o.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(u.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,t)&&e.push(r)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(a.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](d.a),r["\u0275\u0275inject"](f.e,8))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(r.NgZone),Object(r["\u0275\u0275inject"])(d.a),Object(r["\u0275\u0275inject"])(f.e,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,n,r){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=r,this._destroyed=new i.b,this._elementScrolled=new s.a(t=>this.ngZone.runOutsideAngular(()=>Object(a.a)(this.elementRef.nativeElement,"scroll").pipe(Object(h.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(d.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(d.d)()?t.left=t.right:1==Object(d.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(d.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(d.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(d.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](m),r["\u0275\u0275directiveInject"](r.NgZone),r["\u0275\u0275directiveInject"](p.c,8))},t.\u0275dir=r["\u0275\u0275defineDirective"]({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),b=(()=>{class t{constructor(t,e,n){this._platform=t,this._document=n,e.runOutsideAngular(()=>{const e=this._getWindow();this._change=t.isBrowser?Object(c.a)(Object(a.a)(e,"resize"),Object(a.a)(e,"orientationchange")):Object(o.a)(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(l.a)(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(r["\u0275\u0275inject"](d.a),r["\u0275\u0275inject"](r.NgZone),r["\u0275\u0275inject"](f.e,8))},t.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new t(Object(r["\u0275\u0275inject"])(d.a),Object(r["\u0275\u0275inject"])(r.NgZone),Object(r["\u0275\u0275inject"])(f.e,8))},token:t,providedIn:"root"}),t})(),v=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)}}),t})(),y=(()=>{class t{}return t.\u0275mod=r["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=r["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[p.a,d.b,v],p.a,v]}),t})()},w1o2:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("zB/H"),s=n("Q1FS"),a=n("ds6q");e.groupBy=function(t,e,n,r){return function(i){return i.lift(new c(t,e,n,r))}};var c=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return r(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(c){this.error(c)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new a.Subject,n.set(e,i);var o=new h(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new h(e,i))}catch(c){return void this.error(c)}this.add(s.subscribe(new u(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.Subscriber),u=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.Subscriber),h=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r(e,t),e.prototype._subscribe=function(t){var e=new o.Subscription,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new d(n)),e.add(r.subscribe(t)),e},e}(s.Observable);e.GroupedObservable=h;var d=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.Subscription)},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("oB13"),i=n("x+ZX"),o=n("XNiG");function s(){return new o.b}function a(){return t=>Object(i.a)()(Object(r.a)(s)(t))}},w5QO:function(t,e,n){"use strict";e.noop=function(){}},"wO+i":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("lJxs");function i(...t){const e=t.length;if(0===e)throw new Error("list of properties cannot be empty.");return n=>Object(r.a)(function(t,e){return n=>{let r=n;for(let i=0;i<e;i++){const e=null!=r?r[t[i]]:void 0;if(void 0===e)return;r=e}return r}}(t,e))(n)}},wgpc:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("xKqS");e.materialize=function(){return function(t){return t.lift(new s)}};var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype._next=function(t){this.destination.next(o.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(o.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(o.Notification.createComplete()),t.complete()},e}(i.Subscriber)},wjEo:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=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])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=n("FWf1"),o=n("Q1FS"),s=n("6qA3");e.SimpleInnerSubscriber=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.Subscriber),e.ComplexInnerSubscriber=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i.Subscriber),e.SimpleOuterSubscriber=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.Subscriber),e.ComplexOuterSubscriber=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.notifyNext=function(t,e,n,r){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i.Subscriber),e.innerSubscribe=function(t,e){if(!e.closed){if(t instanceof o.Observable)return t.subscribe(e);var n;try{n=s.subscribeTo(t)(e)}catch(r){e.error(r)}return n}}},wrXb:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getDay()}},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){return function(t){return t.lift(new o(t))}}class o{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class s extends r.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}},"x7+9":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("24nb"),i=n("VfN6"),o=n("Ejl/"),s=n("4B4X"),a=n("HFgz"),c=n("mo97"),l=n("yZrO"),u=n("fXoL"),h=n("9YtQ"),d=n("jhN1");let f=(()=>{let t=class{constructor(t,e,n,r,i,o,s,a){this._entityService=t,this._newDesignSettingsService=e,this._staticDataService=n,this._themeService=r,this._deviceService=i,this._fileManagerService=o,this._metaTagService=s,this._communityActionService=a,this.completeLoad=!1}getLoginStartupData(){this._entityService.get("portal/login_page/get").pipe(Object(i.b)(this)).subscribe(t=>{t&&(this.loginStartupData=t,this.completeLoad=!0,this.setStartupDesignStaticData())})}setStartupDesignStaticData(){var t,e,n,r;this._newDesignSettingsService.setThemesCodeMap(this._staticDataService.StaticData.design_settings_code);const i=this._themeService.designTemplatesMap[(null===(e=null===(t=this.loginStartupData)||void 0===t?void 0:t.portal_to_content_design_template)||void 0===e?void 0:e.content_design_template_id)||1];let o=i?i.code:"main";console.warn("designCodeToActivate",o),this.loginStartupData&&(this._themeService.activateTheme(o,null===(r=null===(n=this.loginStartupData)||void 0===n?void 0:n.portal_to_content_design_template)||void 0===r?void 0:r.custom_content_design),this.settingsDesign=this.loginStartupData.content_design_settings,this.newDesignImages=this.loginStartupData.portal_design_images,this.setFavicon(),this._metaTagService.addTags([{name:"title",content:this.loginStartupData.content_login_page_settings.title},{name:"keywords",content:this.loginStartupData.content_login_page_settings.subtitle},{name:"description",content:this.loginStartupData.content_login_page_settings.description}]))}setFavicon(){const t=this._deviceService.getDeviceInfo();let e,n,r="assets/images/favicon/favicon-32x32.png";this._themeService.findActiveTheme();let i=this._themeService.themeMap.properties["--img-favicon"];i&&(r=i),"Safari"===t.browser?n=document.querySelector("link[rel*='mask-icon']")||document.createElement("link"):(n=document.querySelector("link[rel*='icon']")||document.createElement("link"),n.rel="icon"),e=this.loginStartupData.portal.is_new_design_enabled?this.newDesignImages&&this.newDesignImages.favicon?this._fileManagerService.getImageSrc(this.newDesignImages.favicon):r:this.settingsDesign&&this.settingsDesign.favicon?this._fileManagerService.getImageSrc(this.settingsDesign.favicon):r;const o=document.createElement("canvas"),s=o.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.src=e,a.onload=()=>{o.width=a.width,o.height=a.height,s.drawImage(a,0,0),this._communityActionService.$_isNewNotification.subscribe((function(t){if(t){const t=.6*Math.min(o.width,o.height);s.beginPath(),s.arc(o.width-t/2,t/2,t/2,0,2*Math.PI),s.fillStyle="#ff5400",s.fill()}else s.clearRect(0,0,o.width,o.height),s.drawImage(a,0,0);const e=o.toDataURL("image/png");n.rel="icon",n.type="image/png",n.href=e;const r=document.querySelector('link[rel="icon"]');r&&r.remove(),document.head.appendChild(n)}))}}};return t.\u0275fac=function(e){return new(e||t)(u["\u0275\u0275inject"](r.a),u["\u0275\u0275inject"](o.a),u["\u0275\u0275inject"](s.a),u["\u0275\u0275inject"](a.a),u["\u0275\u0275inject"](h.b),u["\u0275\u0275inject"](c.a),u["\u0275\u0275inject"](d.d),u["\u0275\u0275inject"](l.a))},t.\u0275prov=u["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([Object(i.a)()],t),t})()},x84W:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=e&&Number(e.weekStartsOn)||0,i=r(t),o=i.getDay(),s=(o<n?7:0)+o-n;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}},xHZb:function(t,e,n){"use strict";var r=n("IEvo");e.queueScheduler=new(n("H2PQ").QueueScheduler)(r.QueueAction),e.queue=e.queueScheduler},xKqS:function(t,e,n){"use strict";var r=n("aJGj"),i=n("I65S"),o=n("vLqr");e.NotificationKind=function(t){return t.NEXT="N",t.ERROR="E",t.COMPLETE="C",t}(e.NotificationKind||{}),e.Notification=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return i.of(this.value);case"E":return o.throwError(this.error);case"C":return r.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},xMJQ:function(t,e,n){var r=n("yNUO");t.exports=function(t,e,n){var i=r(t),o=void 0!==n?n:1,s=r(e).getTime();if(i.getTime()>s)throw new Error("The first date cannot be after the second date");var a=[],c=i;for(c.setHours(0,0,0,0);c.getTime()<=s;)a.push(r(c)),c.setDate(c.getDate()+o);return a}},xPkr:function(t,e,n){var r=n("CXhC");t.exports=function(t){var e=new Date;return e.setDate(e.getDate()-1),r(t).getTime()===r(e).getTime()}},"xS++":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("9/Zf"),i=n("kdvv"),o=n("6PXS"),s=function(){function t(t){this.errors=0,this.sid=Object(r.g)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var e=Object(i.c)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(!this.ipAddress&&t.user.ip_address&&(this.ipAddress=t.user.ip_address),this.did||t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Object(i.c)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:Object(r.g)()),void 0!==t.init&&(this.init=t.init),!this.did&&t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return Object(o.c)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}()},xYlI:function(t,e,n){var r=n("yNUO");t.exports=function(t){return r(t).getMinutes()}},xbPD:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t=null){return e=>e.lift(new o(t))}class o{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new s(t,this.defaultValue))}}class s extends r.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("DH7j"),o=n("n6bG"),s=n("lJxs");function a(t,e,n,c){return Object(o.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(s.a)(t=>Object(i.a)(t)?c(...t):c(t))):new r.a(r=>{!function t(e,n,r,i,o){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,o),s=()=>t.removeEventListener(n,r,o)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),s=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),s=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,a=e.length;s<a;s++)t(e[s],n,r,i,o)}i.add(s)}(t,e,(function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),r,n)})}},xq5I:function(t,e,n){var r=n("IpkJ");t.exports=function(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}},"y5a+":function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=e&&Number(e.weekStartsOn)||0,i=r(t),o=i.getDay(),s=6+(o<n?-7:0)-(o-n);return i.setHours(0,0,0,0),i.setDate(i.getDate()+s),i}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("ngJS"),o=n("jZKg");function s(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},yESu:function(t,e,n){"use strict";var r=n("mbIT"),i=n("FCKb"),o=n("gTqA");e.combineLatest=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&r.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(o.from([e].concat(t)),new i.CombineLatestOperator(n))}}},yHON:function(t,e,n){var r=n("yNUO");t.exports=function(t,e){var n=r(t).getTime(),i=r(e).getTime();return n>i?-1:n<i?1:0}},yI9Y:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("128B");function i(t){const e="function"==typeof t?(e,n)=>t(e,n)>0?e:n:(t,e)=>t>e?t:e;return Object(r.a)(e)}},yNUO:function(t,e,n){var r=n("VGX7"),i=n("pzWd"),o=/[T ]/,s=/:/,a=/^(\d{2})$/,c=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],l=/^(\d{4})/,u=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],h=/^-(\d{2})$/,d=/^-?(\d{3})$/,f=/^-?(\d{2})-?(\d{2})$/,p=/^-?W(\d{2})$/,m=/^-?W(\d{2})-?(\d{1})$/,g=/^(\d{2}([.,]\d*)?)$/,b=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,v=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,y=/([Z+-].*)$/,_=/^(Z)$/,w=/^([+-])(\d{2})$/,S=/^([+-])(\d{2}):?(\d{2})$/;function x(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var i=7*e+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}t.exports=function(t,e){if(i(t))return new Date(t.getTime());if("string"!=typeof t)return new Date(t);var n=(e||{}).additionalDigits;n=null==n?2:Number(n);var C,O,T=function(t){var e,n={},r=t.split(o);if(s.test(r[0])?(n.date=null,e=r[0]):(n.date=r[0],e=r[1]),e){var i=y.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}(t),E=function(t,e){var n,r=c[e],i=u[e];if(n=l.exec(t)||i.exec(t)){var o=n[1];return{year:parseInt(o,10),restDateString:t.slice(o.length)}}if(n=a.exec(t)||r.exec(t)){var s=n[1];return{year:100*parseInt(s,10),restDateString:t.slice(s.length)}}return{year:null}}(T.date,n),k=function(t,e){if(null===e)return null;var n,r,i;if(0===t.length)return(r=new Date(0)).setUTCFullYear(e),r;if(n=h.exec(t))return r=new Date(0),i=parseInt(n[1],10)-1,r.setUTCFullYear(e,i),r;if(n=d.exec(t)){r=new Date(0);var o=parseInt(n[1],10);return r.setUTCFullYear(e,0,o),r}if(n=f.exec(t)){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return r.setUTCFullYear(e,i,s),r}return(n=p.exec(t))?x(e,parseInt(n[1],10)-1):(n=m.exec(t))?x(e,parseInt(n[1],10)-1,parseInt(n[2],10)-1):null}(E.restDateString,E.year);if(k){var A,D=k.getTime(),j=0;if(T.time&&(j=(O=g.exec(C=T.time))?parseFloat(O[1].replace(",","."))%24*36e5:(O=b.exec(C))?parseInt(O[1],10)%24*36e5+6e4*parseFloat(O[2].replace(",",".")):(O=v.exec(C))?parseInt(O[1],10)%24*36e5+6e4*parseInt(O[2],10)+1e3*parseFloat(O[3].replace(",",".")):null),T.timezone)A=6e4*function(t){var e,n;return(e=_.exec(t))?0:(e=w.exec(t))?(n=60*parseInt(e[2],10),"+"===e[1]?-n:n):(e=S.exec(t))?(n=60*parseInt(e[2],10)+parseInt(e[3],10),"+"===e[1]?-n:n):0}(T.timezone);else{var I=D+j,P=new Date(I);A=r(P);var M=new Date(I);M.setDate(P.getDate()+1);var N=r(M)-r(P);N>0&&(A+=N)}return new Date(D+j+A)}return new Date(t)}},yRPT:function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},yYDL:function(t,e,n){var r=n("yNUO");t.exports=function(t){return 3===r(t).getDay()}},yZrO:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("XNiG"),i=n("2Vo4"),o=n("fXoL");let s=(()=>{class t{constructor(){this._leaveCommunity=new r.b,this.$leaveCommunity=this._leaveCommunity.asObservable(),this._joinCommunity=new r.b,this.$_joinCommunity=this._joinCommunity.asObservable(),this._isNewNotification=new i.a(!1),this.$_isNewNotification=this._isNewNotification.asObservable()}joinCommmunity(){this._joinCommunity.next()}join(t){this._leaveCommunity.next(t)}newNotification(t){this._isNewNotification.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},yiUc:function(t,e,n){"use strict";n.d(e,"a",(function(){return Qe}));var r=n("LRne"),i=n("cp0P"),o=n("yrbL"),s=n("24nb"),a=n("Fr4G"),c=n("HDdC"),l=n("QqCr");c.a.bindCallback=l.a;var u=n("4O5X");c.a.bindNodeCallback=u.a;var h=n("itXk");c.a.combineLatest=h.b;var d=n("GyhO");c.a.concat=d.a;var f=n("NXyV");c.a.defer=f.a;var p=n("EY2u");c.a.empty=p.b,c.a.forkJoin=i.a;var m=n("Cfvw");c.a.from=m.a;var g=n("xgIS");c.a.fromEvent=g.a;var b=n("04ZW");c.a.fromEventPattern=b.a,c.a.fromPromise=m.a;var v=n("WPMC");c.a.generate=v.a;var y=n("r0o6");c.a.if=y.a;var _=n("l5mm");c.a.interval=_.a;var w=n("VRyK");c.a.merge=w.a;var S=n("Nv8m");c.a.race=S.a;var x=n("5yfJ");c.a.never=function(){return x.a},n("qnbw");var C=n("Hkhx");c.a.onErrorResumeNext=C.a;var O=n("hKy8");c.a.pairs=O.a;var T=n("NNCq");c.a.range=T.a;var E=n("Qn8I");c.a.using=E.a;var k=n("z6cu");c.a.throw=k.a,c.a.throwError=k.a;var A=n("PqYM");c.a.timer=A.a;var D=n("1uah");c.a.zip=D.b;const j="undefined"!=typeof window&&window,I="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,P="undefined"!=typeof global&&global,M=j||P||I;var N=n("7o/Q"),F=n("lJxs");function R(t,e=null){return new W({method:"GET",url:t,headers:e})}function L(t,e,n){return new W({method:"POST",url:t,body:e,headers:n})}function V(t,e){return new W({method:"DELETE",url:t,headers:e})}function H(t,e,n){return new W({method:"PUT",url:t,body:e,headers:n})}function B(t,e,n){return new W({method:"PATCH",url:t,body:e,headers:n})}const G=Object(F.a)((t,e)=>t.response);function z(t,e){return G(new W({method:"GET",url:t,responseType:"json",headers:e}))}let W=(()=>{class t extends c.a{constructor(t){super();const e={async:!0,createXHR:function(){return this.crossDomain?function(){if(M.XMLHttpRequest)return new M.XMLHttpRequest;if(M.XDomainRequest)return new M.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(M.XMLHttpRequest)return new M.XMLHttpRequest;{let e;try{const n=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];for(let r=0;r<3;r++)try{if(e=n[r],new M.ActiveXObject(e))break}catch(t){}return new M.ActiveXObject(e)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof t)e.url=t;else for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);this.request=e}_subscribe(t){return new U(t,this.request)}}return t.create=(()=>{const e=e=>new t(e);return e.get=R,e.post=L,e.delete=V,e.put=H,e.patch=B,e.getJSON=z,e})(),t})();class U extends N.a{constructor(t,e){super(t),this.request=e,this.done=!1;const n=e.headers=e.headers||{};e.crossDomain||this.getHeader(n,"X-Requested-With")||(n["X-Requested-With"]="XMLHttpRequest"),this.getHeader(n,"Content-Type")||M.FormData&&e.body instanceof M.FormData||void 0===e.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),e.body=this.serializeBody(e.body,this.getHeader(e.headers,"Content-Type")),this.send()}next(t){this.done=!0;const{xhr:e,request:n,destination:r}=this;let i;try{i=new q(t,e,n)}catch(o){return r.error(o)}r.next(i)}send(){const{request:t,request:{user:e,method:n,url:r,async:i,password:o,headers:s,body:a}}=this;try{const c=this.xhr=t.createXHR();this.setupEvents(c,t),e?c.open(n,r,i,e,o):c.open(n,r,i),i&&(c.timeout=t.timeout,c.responseType=t.responseType),"withCredentials"in c&&(c.withCredentials=!!t.withCredentials),this.setHeaders(c,s),a?c.send(a):c.send()}catch(c){this.error(c)}}serializeBody(t,e){if(!t||"string"==typeof t)return t;if(M.FormData&&t instanceof M.FormData)return t;if(e){const t=e.indexOf(";");-1!==t&&(e=e.substring(0,t))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&");case"application/json":return JSON.stringify(t);default:return t}}setHeaders(t,e){for(let n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])}getHeader(t,e){for(let n in t)if(n.toLowerCase()===e.toLowerCase())return t[n]}setupEvents(t,e){const n=e.progressSubscriber;function r(t){const{subscriber:e,progressSubscriber:n,request:i}=r;let o;n&&n.error(t);try{o=new K(this,i)}catch(s){o=s}e.error(o)}if(t.ontimeout=r,r.request=e,r.subscriber=this,r.progressSubscriber=n,t.upload&&"withCredentials"in t){if(n){let e;e=function(t){const{progressSubscriber:n}=e;n.next(t)},M.XDomainRequest?t.onprogress=e:t.upload.onprogress=e,e.progressSubscriber=n}let r;r=function(t){const{progressSubscriber:e,subscriber:n,request:i}=r;let o;e&&e.error(t);try{o=new X("ajax error",this,i)}catch(s){o=s}n.error(o)},t.onerror=r,r.request=e,r.subscriber=this,r.progressSubscriber=n}function i(t){}function o(t){const{subscriber:e,progressSubscriber:n,request:r}=o;if(4===this.readyState){let o=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;if(0===o&&(o=s?200:0),o<400)n&&n.complete(),e.next(t),e.complete();else{let s;n&&n.error(t);try{s=new X("ajax error "+o,this,r)}catch(i){s=i}e.error(s)}}}t.onreadystatechange=i,i.subscriber=this,i.progressSubscriber=n,i.request=e,t.onload=o,o.subscriber=this,o.progressSubscriber=n,o.request=e}unsubscribe(){const{done:t,xhr:e}=this;!t&&e&&4!==e.readyState&&"function"==typeof e.abort&&e.abort(),super.unsubscribe()}}class q{constructor(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=$(this.responseType,e)}}const X=(()=>{function t(t,e,n){return Error.call(this),this.message=t,this.name="AjaxError",this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=$(this.responseType,e),this}return t.prototype=Object.create(Error.prototype),t})();function $(t,e){switch(t){case"json":return function(t){return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null")}(e);case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}const K=function(t,e){return X.call(this,"ajax timeout",t,e),this.name="AjaxTimeoutError",this};c.a.ajax=(()=>W.create)();var Y=n("lcII");c.a.webSocket=Y.a;var Q=n("p9/F");c.a.prototype.buffer=function(t){return Object(Q.a)(t)(this)};var J=n("9M8c");c.a.prototype.bufferCount=function(t,e=null){return Object(J.a)(t,e)(this)};var Z=n("D0XW"),tt=n("z+Ro"),et=n("OsX3");c.a.prototype.bufferTime=function(t){let e=arguments.length,n=Z.b;Object(tt.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);let r=null;e>=2&&(r=arguments[1]);let i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),Object(et.a)(t,r,i,n)(this)};var nt=n("FD9M");c.a.prototype.bufferToggle=function(t,e){return Object(nt.a)(t,e)(this)};var rt=n("PfrF");c.a.prototype.bufferWhen=function(t){return Object(rt.a)(t)(this)};var it=n("JIr8");function ot(t){return Object(it.a)(t)(this)}c.a.prototype.catch=ot,c.a.prototype._catch=ot;var st=n("7wxJ");c.a.prototype.combineAll=function(t){return Object(st.a)(t)(this)};var at=n("DH7j");c.a.prototype.combineLatest=function(...t){let e=null;return"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(at.a)(t[0])&&(t=t[0].slice()),this.lift.call(Object(r.a)(this,...t),new h.a(e))},c.a.prototype.concat=function(...t){return this.lift.call(Object(d.a)(this,...t))};var ct=n("0EUg");c.a.prototype.concatAll=function(){return Object(ct.a)()(this)};var lt=n("bOdf");c.a.prototype.concatMap=function(t){return Object(lt.a)(t)(this)};var ut=n("q7zd");c.a.prototype.concatMapTo=function(t){return Object(ut.a)(t)(this)};var ht=n("HrJb");c.a.prototype.count=function(t){return Object(ht.a)(t)(this)};var dt=n("kgNN");c.a.prototype.dematerialize=function(){return Object(dt.a)()(this)};var ft=n("6eBy");c.a.prototype.debounce=function(t){return Object(ft.a)(t)(this)};var pt=n("Kj3r");c.a.prototype.debounceTime=function(t,e=Z.b){return Object(pt.a)(t,e)(this)};var mt=n("xbPD");c.a.prototype.defaultIfEmpty=function(t=null){return Object(mt.a)(t)(this)};var gt=n("3E0/");c.a.prototype.delay=function(t,e=Z.b){return Object(gt.a)(t,e)(this)};var bt=n("coGc");c.a.prototype.delayWhen=function(t,e){return Object(bt.a)(t,e)(this)};var vt=n("02Lk");c.a.prototype.distinct=function(t,e){return Object(vt.a)(t,e)(this)};var yt=n("/uUt");c.a.prototype.distinctUntilChanged=function(t,e){return Object(yt.a)(t,e)(this)};var _t=n("PZkE");c.a.prototype.distinctUntilKeyChanged=function(t,e){return Object(_t.a)(t,e)(this)};var wt=n("vkgz");function St(t,e,n){return Object(wt.a)(t,e,n)(this)}c.a.prototype.do=St,c.a.prototype._do=St;var xt=n("zt7V");c.a.prototype.exhaust=function(){return Object(xt.a)()(this)};var Ct=n("XqQ8");c.a.prototype.exhaustMap=function(t){return Object(Ct.a)(t)(this)};var Ot=n("FQpF");c.a.prototype.expand=function(t,e=Number.POSITIVE_INFINITY,n){return e=(e||0)<1?Number.POSITIVE_INFINITY:e,Object(Ot.a)(t,e,n)(this)};var Tt=n("9ihq");c.a.prototype.elementAt=function(t,e){return Tt.a.apply(void 0,arguments)(this)};var Et=n("pLZG");c.a.prototype.filter=function(t,e){return Object(Et.a)(t,e)(this)};var kt=n("nYR2");function At(t){return Object(kt.a)(t)(this)}c.a.prototype.finally=At,c.a.prototype._finally=At;var Dt=n("cBqT");c.a.prototype.find=function(t,e){return Object(Dt.b)(t,e)(this)};var jt=n("K7De");c.a.prototype.findIndex=function(t,e){return Object(jt.a)(t,e)(this)};var It=n("SxV6");c.a.prototype.first=function(...t){return Object(It.a)(...t)(this)};var Pt=n("OQgR");c.a.prototype.groupBy=function(t,e,n,r){return Object(Pt.b)(t,e,n,r)(this)};var Mt=n("4A3s");c.a.prototype.ignoreElements=function(){return Object(Mt.a)()(this)};var Nt=n("m2j4");c.a.prototype.isEmpty=function(){return Object(Nt.a)()(this)};var Ft=n("tnsW");c.a.prototype.audit=function(t){return Object(Ft.a)(t)(this)};var Rt=n("3UWI");c.a.prototype.auditTime=function(t,e=Z.b){return Object(Rt.a)(t,e)(this)};var Lt=n("NJ9Y");function Vt(t){return t(this)}c.a.prototype.last=function(...t){return Object(Lt.a)(...t)(this)},c.a.prototype.let=Vt,c.a.prototype.letBind=Vt;var Ht=n("Gi4w");c.a.prototype.every=function(t,e){return Object(Ht.a)(t,e)(this)},c.a.prototype.map=function(t,e){return Object(F.a)(t,e)(this)};var Bt=n("CqXF");c.a.prototype.mapTo=function(t){return Object(Bt.a)(t)(this)};var Gt=n("dkDA");c.a.prototype.materialize=function(){return Object(Gt.a)()(this)};var zt=n("yI9Y");c.a.prototype.max=function(t){return Object(zt.a)(t)(this)},c.a.prototype.merge=function(...t){return this.lift.call(Object(w.a)(this,...t))};var Wt=n("bHdf");c.a.prototype.mergeAll=function(t=Number.POSITIVE_INFINITY){return Object(Wt.a)(t)(this)};var Ut=n("5+tZ");function qt(t,e=Number.POSITIVE_INFINITY){return Object(Ut.b)(t,e)(this)}c.a.prototype.mergeMap=qt,c.a.prototype.flatMap=qt;var Xt=n("UXbc");function $t(t,e=Number.POSITIVE_INFINITY){return Object(Xt.a)(t,e)(this)}c.a.prototype.flatMapTo=$t,c.a.prototype.mergeMapTo=$t;var Kt=n("51Bx");c.a.prototype.mergeScan=function(t,e,n=Number.POSITIVE_INFINITY){return Object(Kt.a)(t,e,n)(this)};var Yt=n("FZB8");c.a.prototype.min=function(t){return Object(Yt.a)(t)(this)};var Qt=n("oB13");c.a.prototype.multicast=function(t,e){return Object(Qt.a)(t,e)(this)};var Jt=n("pxpQ");c.a.prototype.observeOn=function(t,e=0){return Object(Jt.b)(t,e)(this)};var Zt=n("uTdr");c.a.prototype.onErrorResumeNext=function(...t){return Object(Zt.a)(...t)(this)};var te=n("Zy1z");c.a.prototype.pairwise=function(){return Object(te.a)()(this)};var ee=n("A3iJ");c.a.prototype.partition=function(t,e){return Object(ee.a)(t,e)(this)};var ne=n("wO+i");c.a.prototype.pluck=function(...t){return Object(ne.a)(...t)(this)};var re=n("NfdI");c.a.prototype.publish=function(t){return Object(re.a)(t)(this)};var ie=n("UGaM");c.a.prototype.publishBehavior=function(t){return Object(ie.a)(t)(this)};var oe=n("05l1");c.a.prototype.publishReplay=function(t,e,n,r){return Object(oe.a)(t,e,n,r)(this)};var se=n("qZ0a");c.a.prototype.publishLast=function(){return Object(se.a)()(this)};var ae=n("4f8F");c.a.prototype.race=function(...t){return Object(ae.a)(...t)(this)};var ce=n("128B");c.a.prototype.reduce=function(t,e){return arguments.length>=2?Object(ce.a)(t,e)(this):Object(ce.a)(t)(this)};var le=n("/d8p");c.a.prototype.repeat=function(t=-1){return Object(le.a)(t)(this)};var ue=n("Gqsl");c.a.prototype.repeatWhen=function(t){return Object(ue.a)(t)(this)};var he=n("un/a");c.a.prototype.retry=function(t=-1){return Object(he.a)(t)(this)};var de=n("MtjB");c.a.prototype.retryWhen=function(t){return Object(de.a)(t)(this)};var fe=n("c6ID");c.a.prototype.sample=function(t){return Object(fe.a)(t)(this)};var pe=n("1Ykd");c.a.prototype.sampleTime=function(t,e=Z.b){return Object(pe.a)(t,e)(this)};var me=n("Kqap");c.a.prototype.scan=function(t,e){return arguments.length>=2?Object(me.a)(t,e)(this):Object(me.a)(t)(this)};var ge=n("Zyez");c.a.prototype.sequenceEqual=function(t,e){return Object(ge.a)(t,e)(this)};var be=n("w1tV");c.a.prototype.share=function(){return Object(be.a)()(this)};var ve=n("UXun");c.a.prototype.shareReplay=function(t,e,n){return t&&"object"==typeof t?Object(ve.a)(t)(this):Object(ve.a)(t,e,n)(this)};var ye=n("cx9U");c.a.prototype.single=function(t){return Object(ye.a)(t)(this)};var _e=n("zP0r");c.a.prototype.skip=function(t){return Object(_e.a)(t)(this)};var we=n("kagm");c.a.prototype.skipLast=function(t){return Object(we.a)(t)(this)};var Se=n("vqkR");c.a.prototype.skipUntil=function(t){return Object(Se.a)(t)(this)};var xe=n("32Ea");c.a.prototype.skipWhile=function(t){return Object(xe.a)(t)(this)};var Ce=n("JX91");c.a.prototype.startWith=function(...t){return Object(Ce.a)(...t)(this)};var Oe=n("tf+s");c.a.prototype.subscribeOn=function(t,e=0){return Object(Oe.a)(t,e)(this)};var Te=n("Y6wi");function Ee(){return Object(Te.a)()(this)}c.a.prototype.switch=Ee,c.a.prototype._switch=Ee;var ke=n("eIep");c.a.prototype.switchMap=function(t){return Object(ke.a)(t)(this)};var Ae=n("aGrj");c.a.prototype.switchMapTo=function(t){return Object(Ae.a)(t)(this)};var De=n("IzEk");c.a.prototype.take=function(t){return Object(De.a)(t)(this)};var je=n("BFxc");c.a.prototype.takeLast=function(t){return Object(je.a)(t)(this)};var Ie=n("1G5W");c.a.prototype.takeUntil=function(t){return Object(Ie.a)(t)(this)};var Pe=n("GJmQ");c.a.prototype.takeWhile=function(t){return Object(Pe.a)(t)(this)};var Me=n("yuhW");c.a.prototype.throttle=function(t,e=Me.a){return Object(Me.b)(t,e)(this)};var Ne=n("gcYM");c.a.prototype.throttleTime=function(t,e=Z.b,n=Me.a){return Object(Ne.a)(t,e,n)(this)};var Fe=n("4hIw");c.a.prototype.timeInterval=function(t=Z.b){return Object(Fe.a)(t)(this)};var Re=n("tS1D");c.a.prototype.timeout=function(t,e=Z.b){return Object(Re.a)(t,e)(this)};var Le=n("syX2");c.a.prototype.timeoutWith=function(t,e,n=Z.b){return Object(Le.a)(t,e,n)(this)};var Ve=n("r0WS");c.a.prototype.timestamp=function(t=Z.b){return Object(Ve.a)(t)(this)};var He=n("IAdc");c.a.prototype.toArray=function(){return Object(He.a)()(this)},n("XypG");var Be=n("mk5/");c.a.prototype.window=function(t){return Object(Be.a)(t)(this)};var Ge=n("lpKW");c.a.prototype.windowCount=function(t,e=0){return Object(Ge.a)(t,e)(this)};var ze=n("Y7HM"),We=n("UHp3");c.a.prototype.windowTime=function(t){let e=Z.b,n=null,r=Number.POSITIVE_INFINITY;return Object(tt.a)(arguments[3])&&(e=arguments[3]),Object(tt.a)(arguments[2])?e=arguments[2]:Object(ze.a)(arguments[2])&&(r=Number(arguments[2])),Object(tt.a)(arguments[1])?e=arguments[1]:Object(ze.a)(arguments[1])&&(n=Number(arguments[1])),Object(We.a)(t,n,r,e)(this)};var Ue=n("sTY7");c.a.prototype.windowToggle=function(t,e){return Object(Ue.a)(t,e)(this)};var qe=n("pXlZ");c.a.prototype.windowWhen=function(t){return Object(qe.a)(t)(this)};var Xe=n("zp1y");c.a.prototype.withLatestFrom=function(...t){return Object(Xe.a)(...t)(this)},c.a.prototype.zip=function(...t){return this.lift.call(Object(D.b)(this,...t))};var $e=n("JmF6");c.a.prototype.zipAll=function(t){return Object($e.a)(t)(this)};var Ke=n("2Vo4");n("7Hc7"),n("qgXg"),n("eNwd"),n("2QA8"),n("kJWO"),n("Lhse"),n("kU1M");var Ye=n("fXoL");let Qe=(()=>{class t{constructor(t,e){this._entityService=t,this._userService=e,this._loadedData=new Ke.a(null),this.loadedDataEmitter=this._loadedData.asObservable(),this.defaultRequestParameters={columns:["**"],limit:1,offset:0,filter_by:[],search_by:[]},this.defaultEntityTypeList=["content_login_page_settings","content_homepage_settings","content_design_settings","settings_payment","settings_analytics","content_email_settings","settings_imprint_gdrp","affiliate_product_page_settings","community_settings","portal_to_content_design_template"]}getSettingsInfo(){return this.settingsInfo}initSet(t){this.defaultRequestParameters.filter_by=[{attribute:"portal_id",operator:"=",value:this._userService.portal_id}];let e=this.defaultRequestParameters;if(t){let e=Object.assign({},this.getSettingsInfo());this.setGeneralInfo(e,t)}else this._entityService.getEntityInfoWithNoAuth("content_settings_selected",e).subscribe(e=>{this.handleInitLoad(e).subscribe(e=>{this.setGeneralInfo(e,t)})})}handleInitLoad(t){const e={content_design_settings_id:null,content_login_page_settings_id:null,content_homepage_settings_id:null,portal_id:this._userService.portal_id};return t&&t.length>0?Object(r.a)(t[0]):this._entityService.addEntity("content_settings_selected",e).pipe(Object(o.map)(t=>(e.portal_id=t,e)))}setGeneralInfo(t,e){this.settingsInfo=t;const n={portal_id:this._userService.portal_id};let r=[];(e||this.defaultEntityTypeList).forEach(t=>{let e=this.defaultRequestParameters;e.filter_by="portal_to_content_design_template"===t?[{attribute:"is_active",value:!0}]:[],r.push(this.generalInitEntity(t,e,n))}),e||"customer"===this._userService.getRole()||"hidden_customer"===this._userService.getRole()||r.push(this.generalInitEntity("portal",{columns:["marketplace_bindings.credentials","marketplace_bindings.marketplace_id","marketplace_bindings.is_active","custom_domain_enabled","custom_domain"]},n)),Object(i.a)(r).subscribe(t=>{t.forEach(t=>{t.subscribe()}),this._loadedData.next(this.settingsInfo)})}generalInitEntity(t,e,n){return this._entityService.getEntityInfoWithNoAuth(t,e).pipe(Object(o.map)(r=>this.generalInitHandler(r,t,e,n).pipe(Object(o.map)(e=>{this.settingsInfo[t+"_id"]=e}))))}generalInitHandler(t,e,n,i){return t&&t.length>0?Object(r.a)(t[0]):this._entityService.addEntity(e,i)}}return t.\u0275fac=function(e){return new(e||t)(Ye["\u0275\u0275inject"](s.a),Ye["\u0275\u0275inject"](a.a))},t.\u0275prov=Ye["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},yoF8:function(t,e,n){"use strict";e.identity=function(t){return t}},yrbL:function(t,e,n){"use strict";e.audit=n("+vT+").audit,e.auditTime=n("0BvR").auditTime,e.buffer=n("HzbE").buffer,e.bufferCount=n("i6Cy").bufferCount,e.bufferTime=n("QUyD").bufferTime,e.bufferToggle=n("C82C").bufferToggle,e.bufferWhen=n("cnJE").bufferWhen,e.catchError=n("rNzc").catchError,e.combineAll=n("FYWq").combineAll,e.combineLatest=n("yESu").combineLatest,e.concat=n("rEZo").concat,e.concatAll=n("c4Wt").concatAll,e.concatMap=n("zL8a").concatMap,e.concatMapTo=n("8b5+").concatMapTo,e.count=n("SqDy").count,e.debounce=n("3/+b").debounce,e.debounceTime=n("dMDw").debounceTime,e.defaultIfEmpty=n("1Z+e").defaultIfEmpty,e.delay=n("U2p0").delay,e.delayWhen=n("AYHy").delayWhen,e.dematerialize=n("VFZO").dematerialize,e.distinct=n("Fh4B").distinct,e.distinctUntilChanged=n("B/hR").distinctUntilChanged,e.distinctUntilKeyChanged=n("Qlto").distinctUntilKeyChanged,e.elementAt=n("X7Z7").elementAt,e.every=n("T/FJ").every,e.exhaust=n("eeun").exhaust,e.exhaustMap=n("/JYr").exhaustMap,e.expand=n("Sxl1").expand,e.filter=n("4ik+").filter,e.finalize=n("44p1").finalize,e.find=n("rxKr").find,e.findIndex=n("VLYi").findIndex,e.first=n("XoMe").first,e.groupBy=n("w1o2").groupBy,e.ignoreElements=n("DXMP").ignoreElements,e.isEmpty=n("fMhY").isEmpty,e.last=n("HmDv").last,e.map=n("q3Kh").map,e.mapTo=n("bSa5").mapTo,e.materialize=n("wgpc").materialize,e.max=n("aOuE").max,e.merge=n("cHgL").merge,e.mergeAll=n("QtHX").mergeAll,e.mergeMap=n("UNqx").mergeMap,e.flatMap=n("UNqx").mergeMap,e.mergeMapTo=n("OHRA").mergeMapTo,e.mergeScan=n("cmCt").mergeScan,e.min=n("jFrH").min,e.multicast=n("7K7o").multicast,e.observeOn=n("AFwO").observeOn,e.onErrorResumeNext=n("q3SL").onErrorResumeNext,e.pairwise=n("Y34a").pairwise,e.partition=n("o4sL").partition,e.pluck=n("DDzh").pluck,e.publish=n("Wxhx").publish,e.publishBehavior=n("NZaV").publishBehavior,e.publishLast=n("ZHwm").publishLast,e.publishReplay=n("GvSz").publishReplay,e.race=n("naeu").race,e.reduce=n("YK4L").reduce,e.repeat=n("ZTPi").repeat,e.repeatWhen=n("nz4u").repeatWhen,e.retry=n("a6us").retry,e.retryWhen=n("F1k1").retryWhen,e.refCount=n("4mvG").refCount,e.sample=n("gzDA").sample,e.sampleTime=n("EzyC").sampleTime,e.scan=n("vrE+").scan,e.sequenceEqual=n("fnxQ").sequenceEqual,e.share=n("XKtA").share,e.shareReplay=n("WHuz").shareReplay,e.single=n("EdHE").single,e.skip=n("a7Bn").skip,e.skipLast=n("WDqD").skipLast,e.skipUntil=n("1VEF").skipUntil,e.skipWhile=n("f6gv").skipWhile,e.startWith=n("RmLz").startWith,e.subscribeOn=n("4xzy").subscribeOn,e.switchAll=n("TAn0").switchAll,e.switchMap=n("6aLS").switchMap,e.switchMapTo=n("MhJ4").switchMapTo,e.take=n("Dxa7").take,e.takeLast=n("76/Q").takeLast,e.takeUntil=n("IW2O").takeUntil,e.takeWhile=n("s3+Z").takeWhile,e.tap=n("pWCv").tap,e.throttle=n("EOBV").throttle,e.throttleTime=n("CdcT").throttleTime,e.timeInterval=n("Z303").timeInterval,e.timeout=n("3n9G").timeout,e.timeoutWith=n("Vf9T").timeoutWith,e.timestamp=n("2Sgo").timestamp,e.toArray=n("Tkif").toArray,e.window=n("Fa1C").window,e.windowCount=n("uXFP").windowCount,e.windowTime=n("067Y").windowTime,e.windowToggle=n("BmJ7").windowToggle,e.windowWhen=n("vUl8").windowWhen,e.withLatestFrom=n("2hO6").withLatestFrom,e.zip=n("eThW").zip,e.zipAll=n("d1Tk").zipAll},yuhW:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));var r=n("zx2A");const i={leading:!0,trailing:!1};function o(t,e=i){return n=>n.lift(new s(t,!!e.leading,!!e.trailing))}class s{constructor(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}call(t,e){return e.subscribe(new a(t,this.durationSelector,this.leading,this.trailing))}}class a extends r.b{constructor(t,e,n,r){super(t),this.destination=t,this.durationSelector=e,this._leading=n,this._trailing=r,this._hasValue=!1}_next(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))}send(){const{_hasValue:t,_sendValue:e}=this;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0}throttle(t){const e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(r.c)(e,new r.a(this)))}tryDurationSelector(t){try{return this.durationSelector(t)}catch(e){return this.destination.error(e),null}}throttlingDone(){const{_throttled:t,_trailing:e}=this;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()}notifyNext(){this.throttlingDone()}notifyComplete(){this.throttlingDone()}}},ywEm:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("ofXK"),i=n("fXoL");let o=(()=>{class t{constructor(t){this.platformId=t,this._isBrowser=!0,this._isBrowser=Object(r.O)(this.platformId)}get isBrowser(){return this._isBrowser}}return t.\u0275fac=function(e){return new(e||t)(i["\u0275\u0275inject"](i.PLATFORM_ID))},t.\u0275prov=i["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})()},yx2s:function(t,e,n){"use strict";var r=n("FWf1");e.canReportError=function(t){for(;t;){var e=t.destination;if(t.closed||t.isStopped)return!1;t=e&&e instanceof r.Subscriber?e:null}return!0}},"z+RT":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var r=n("+A1k"),i={};function o(){return Object(r.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function s(t,e,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}},"z+Ro":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC");function i(t,e){return new r.a(e?n=>e.schedule(o,0,{error:t,subscriber:n}):e=>e.error(t))}function o({error:t,subscriber:e}){e.error(t)}},"zB/H":function(t,e,n){"use strict";var r=n("mbIT"),i=n("GMZp"),o=n("pshJ"),s=n("LBXl");function a(t){return t.reduce((function(t,e){return t.concat(e instanceof s.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,c=this._ctorUnsubscribe,l=this._unsubscribe,u=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var h=0;h<n.length;++h)n[h].remove(this);if(o.isFunction(l)){c&&(this._unsubscribe=void 0);try{l.call(this)}catch(p){e=p instanceof s.UnsubscriptionError?a(p.errors):[p]}}if(r.isArray(u)){h=-1;for(var d=u.length;++h<d;){var f=u[h];if(i.isObject(f))try{f.unsubscribe()}catch(p){e=e||[],p instanceof s.UnsubscriptionError?e=e.concat(a(p.errors)):e.push(p)}}}if(e)throw new s.UnsubscriptionError(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}()},zGRt:function(t,e,n){var r=n("zM65");t.exports=function(t){return r(new Date,t)}},zL8a:function(t,e,n){"use strict";var r=n("UNqx");e.concatMap=function(t,e){return r.mergeMap(t,e,1)}},zM65:function(t,e,n){var r=n("G6+r");t.exports=function(t,e){return r(t,e,{weekStartsOn:1})}},zP0r:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.total=t}call(t,e){return e.subscribe(new s(t,this.total))}}class s extends r.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}},zUnb:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"FunctionToString",(function(){return u})),n.d(r,"InboundFilters",(function(){return g}));var i={};n.r(i),n.d(i,"Express",(function(){return Le})),n.d(i,"Postgres",(function(){return Ge})),n.d(i,"Mysql",(function(){return ze})),n.d(i,"Mongo",(function(){return qe})),n.d(i,"BrowserTracing",(function(){return pn}));var o,s=n("fXoL"),a=n("AytR"),c=n("mrSG"),l=n("6PXS"),u=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){o=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Object(l.f)(this)||this;return o.apply(n,t)}},t.id="FunctionToString",t}(),h=n("8LbN"),d=n("9/Zf"),f=n("+924"),p="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,m=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],g=function(){function t(e){void 0===e&&(e={}),this._options=e,this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var r=n();if(r){var i=r.getIntegration(t);if(i){var o=r.getClient(),s=o?o.getOptions():{};return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(e){}return!1}(t)?(p&&h.c.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(d.d)(t)),!0):function(t,e){return!(!e||!e.length)&&function(t){if(t.message)return[t.message];if(t.exception)try{var e=t.exception.values&&t.exception.values[0]||{},n=e.type,r=e.value,i=void 0===r?"":r;return[""+i,(void 0===n?"":n)+": "+i]}catch(o){return p&&h.c.error("Cannot extract message for event "+Object(d.d)(t)),[]}return[]}(t).some((function(t){return e.some((function(e){return Object(f.a)(t,e)}))}))}(t,e.ignoreErrors)?(p&&h.c.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(d.d)(t)),!0):function(t,e){if(!e||!e.length)return!1;var n=v(t);return!!n&&e.some((function(t){return Object(f.a)(n,t)}))}(t,e.denyUrls)?(p&&h.c.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(d.d)(t)+".\nUrl: "+v(t)),!0):!function(t,e){if(!e||!e.length)return!0;var n=v(t);return!n||e.some((function(t){return Object(f.a)(n,t)}))}(t,e.allowUrls)&&(p&&h.c.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(d.d)(t)+".\nUrl: "+v(t)),!0)}(e,function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),{allowUrls:Object(c.g)(t.whitelistUrls||[],t.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:Object(c.g)(t.blacklistUrls||[],t.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:Object(c.g)(t.ignoreErrors||[],e.ignoreErrors||[],m),ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(i._options,s))?null:e}}return e}))},t.id="InboundFilters",t}();function b(t){void 0===t&&(t=[]);for(var e=t.length-1;e>=0;e--){var n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function v(t){try{if(t.stacktrace)return b(t.stacktrace.frames);var e;try{e=t.exception.values[0].stacktrace.frames}catch(n){}return e?b(e):null}catch(r){return p&&h.c.error("Cannot extract url for event "+Object(d.d)(t)),null}}var y=n("lW6c"),_=n("z+RT"),w=n("HR75"),S=n("6hSO"),x=n("KjyA"),C=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t}),O=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,C(r,n.prototype),r}return Object(c.d)(e,t),e}(Error),T=n("NDfa"),E=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function k(t,e){void 0===e&&(e=!1);var n=t.path,r=t.pass,i=t.port;return t.protocol+"://"+t.publicKey+(e&&r?":"+r:"")+"@"+t.host+(i?":"+i:"")+"/"+(n?n+"/":n)+t.projectId}function A(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function D(t){var e="string"==typeof t?function(t){var e=E.exec(t);if(!e)throw new O("Invalid Sentry Dsn: "+t);var n=Object(c.e)(e.slice(1),6),r=n[0],i=n[1],o=n[2],s=void 0===o?"":o,a=n[3],l=n[4],u=void 0===l?"":l,h="",d=n[5],f=d.split("/");if(f.length>1&&(h=f.slice(0,-1).join("/"),d=f.pop()),d){var p=d.match(/^\d+/);p&&(d=p[0])}return A({host:a,pass:s,path:h,projectId:d,port:u,protocol:r,publicKey:i})}(t):A(t);return function(t){if(T.a){var e=t.port,n=t.projectId,r=t.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new O("Invalid Sentry Dsn: "+e+" missing")})),!n.match(/^\d+$/))throw new O("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(t){return"http"===t||"https"===t}(r))throw new O("Invalid Sentry Dsn: Invalid protocol "+r);if(e&&isNaN(parseInt(e,10)))throw new O("Invalid Sentry Dsn: Invalid port "+e)}}(e),e}var j=n("9AQC"),I=n("kdvv"),P=n("pRiV");function M(t,e,n){void 0===e&&(e=1/0),void 0===n&&(n=1/0);try{return function t(e,n,r,i,o){var s,a;void 0===r&&(r=1/0),void 0===i&&(i=1/0),void 0===o&&(s="function"==typeof WeakSet,a=s?new WeakSet:[],o=[function(t){if(s)return!!a.has(t)||(a.add(t),!1);for(var e=0;e<a.length;e++)if(a[e]===t)return!0;return a.push(t),!1},function(t){if(s)a.delete(t);else for(var e=0;e<a.length;e++)if(a[e]===t){a.splice(e,1);break}}]);var u=Object(c.e)(o,2),h=u[0],d=u[1],f=n;if(f&&"function"==typeof f.toJSON)try{return f.toJSON()}catch(y){}if(null===n||["number","boolean","string"].includes(typeof n)&&!Object(j.h)(n))return n;var p=function(t,e){try{return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(j.m)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(P.b)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":"[object "+Object.getPrototypeOf(e).constructor.name+"]"}catch(y){return"**non-serializable** ("+y+")"}}(e,n);if(!p.startsWith("[object "))return p;if(0===r)return p.replace("object ","");if(h(n))return"[Circular ~]";var m=Array.isArray(n)?[]:{},g=0,b=Object(j.d)(n)||Object(j.f)(n)?Object(l.b)(n):n;for(var v in b)if(Object.prototype.hasOwnProperty.call(b,v)){if(g>=i){m[v]="[MaxProperties ~]";break}m[v]=t(v,b[v],r-1,i,o),g+=1}return d(n),m}("",t,e,n)}catch(r){return{ERROR:"**non-serializable** ("+r+")"}}}function N(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r=M(t,e);return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?N(t,e-1,n):r}var F=[];function R(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}var L="Not capturing exception because it's already been captured.",V=function(){function t(t,e){this._integrations={},this._numProcessing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=D(e.dsn))}return t.prototype.captureException=function(t,e,n){var r=this;if(!Object(d.c)(t)){var i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return r._captureEvent(t,e,n)})).then((function(t){i=t}))),i}p&&h.c.log(L)},t.prototype.captureMessage=function(t,e,n,r){var i=this,o=n&&n.event_id,s=Object(j.j)(t)?this._getBackend().eventFromMessage(String(t),e,n):this._getBackend().eventFromException(t,n);return this._process(s.then((function(t){return i._captureEvent(t,n,r)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,n){if(!(e&&e.originalException&&Object(d.c)(e.originalException))){var r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((function(t){r=t}))),r}p&&h.c.log(L)},t.prototype.captureSession=function(t){this._isEnabled()?"string"!=typeof t.release?p&&h.c.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1})):p&&h.c.warn("SDK not enabled, will not capture session.")},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.getTransport=function(){return this._getBackend().getTransport()},t.prototype.flush=function(t){var e=this;return this._isClientDoneProcessing(t).then((function(n){return e.getTransport().close(t).then((function(t){return n&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=function(t){var e={};return function(t){var e=t.defaultIntegrations&&Object(c.g)(t.defaultIntegrations)||[],n=t.integrations,r=Object(c.g)(R(e));Array.isArray(n)?r=Object(c.g)(r.filter((function(t){return n.every((function(e){return e.name!==t.name}))})),R(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((function(t){return t.name}));return-1!==i.indexOf("Debug")&&r.push.apply(r,Object(c.g)(r.splice(i.indexOf("Debug"),1))),r}(t).forEach((function(t){e[t.name]=t,function(t){-1===F.indexOf(t.name)&&(t.setupOnce(x.b,y.b),F.push(t.name),p&&h.c.log("Integration installed: "+t.name))}(t)})),Object(l.a)(e,"initialized",!0),e}(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return p&&h.c.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var n,r,i=!1,o=!1,s=e.exception&&e.exception.values;if(s){o=!0;try{for(var a=Object(c.h)(s),l=a.next();!l.done;l=a.next()){var u=l.value.mechanism;if(u&&!1===u.handled){i=!0;break}}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var h="ok"===t.status;(h&&0===t.errors||h&&i)&&(t.update(Object(c.a)(Object(c.a)({},i&&{status:"crashed"}),{errors:t.errors||Number(o||i)})),this.captureSession(t))},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientDoneProcessing=function(t){var e=this;return new w.a((function(n){var r=0,i=setInterval((function(){0==e._numProcessing?(clearInterval(i),n(!0)):(r+=1,t&&r>=t&&(clearInterval(i),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var r=this,i=this.getOptions(),o=i.normalizeDepth,s=void 0===o?3:o,a=i.normalizeMaxBreadth,l=void 0===a?1e3:a,u=Object(c.a)(Object(c.a)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:Object(d.g)()),timestamp:t.timestamp||Object(I.b)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var h=e;n&&n.captureContext&&(h=x.a.clone(h).update(n.captureContext));var f=Object(w.c)(u);return h&&(f=h.applyToEvent(u,n)),f.then((function(t){return t&&(t.sdkProcessingMetadata=Object(c.a)(Object(c.a)({},t.sdkProcessingMetadata),{normalizeDepth:M(s)+" ("+typeof s+")"})),"number"==typeof s&&s>0?r._normalizeEvent(t,s,l):t}))},t.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var r=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Object(c.a)(Object(c.a)({},t),t.data&&{data:M(t.data,e,n)})}))}),t.user&&{user:M(t.user,e,n)}),t.contexts&&{contexts:M(t.contexts,e,n)}),t.extra&&{extra:M(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r.sdkProcessingMetadata=Object(c.a)(Object(c.a)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.release,r=e.dist,i=e.maxValueLength,o=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?e.environment:"production"),void 0===t.release&&void 0!==n&&(t.release=n),void 0===t.dist&&void 0!==r&&(t.dist=r),t.message&&(t.message=Object(f.d)(t.message,o));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Object(f.d)(s.value,o));var a=t.request;a&&a.url&&(a.url=Object(f.d)(a.url,o))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=Object(c.g)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){p&&h.c.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,i=this.getOptions(),o=i.beforeSend,s=i.sampleRate,a=this.getTransport();function c(t,e){a.recordLostEvent&&a.recordLostEvent(t,e)}if(!this._isEnabled())return Object(w.b)(new O("SDK not enabled, will not capture event."));var l="transaction"===t.type;return!l&&"number"==typeof s&&Math.random()>s?(c("sample_rate","event"),Object(w.b)(new O("Discarding event because it's not included in the random sample (sampling rate = "+s+")"))):this._prepareEvent(t,n,e).then((function(n){if(null===n)throw c("event_processor",t.type||"event"),new O("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||l||!o?n:function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(Object(j.n)(t))return t.then((function(t){if(!Object(j.i)(t)&&null!==t)throw new O(e);return t}),(function(t){throw new O("beforeSend rejected with "+t)}));if(!Object(j.i)(t)&&null!==t)throw new O(e);return t}(o(n,e))})).then((function(e){if(null===e)throw c("before_send",t.type||"event"),new O("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!l&&i&&r._updateSessionFromEvent(i,e),r._sendEvent(e),e})).then(null,(function(t){if(t instanceof O)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new O("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t}();function H(t,e,n){return{initDsn:t,metadata:e||{},dsn:D(t),tunnel:n}}function B(t){return(t.protocol?t.protocol+":":"")+"//"+t.host+(t.port?":"+t.port:"")+(t.path?"/"+t.path:"")+"/api/"}function G(t,e){return""+B(t)+t.projectId+"/"+e+"/"}function z(t){return Object(l.h)({sentry_key:t.publicKey,sentry_version:"7"})}function W(t){return G(t,"store")}function U(t){return W(t)+"?"+z(t)}function q(t,e){return e||function(t){return G(t,"envelope")}(t)+"?"+z(t)}function X(t,e){return void 0===e&&(e=[]),[t,e]}function $(t){var e=Object(c.e)(t,2),n=e[1],r=JSON.stringify(e[0]);return n.reduce((function(t,e){var n=Object(c.e)(e,2),r=n[0],i=n[1],o=Object(j.j)(i)?String(i):JSON.stringify(i);return t+"\n"+JSON.stringify(r)+"\n"+o}),r)}function K(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function Y(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=Object(c.g)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=Object(c.g)(t.sdk.packages||[],e.packages||[]),t):t}function Q(t,e){var n=K(e),r="aggregates"in t?"sessions":"session";return[X(Object(c.a)(Object(c.a)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:k(e.dsn)}),[[{type:r},t]]),r]}!function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=D(t),this.metadata=e,this._tunnel=n}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return B(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return W(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return U(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return q(this._dsnObject,this._tunnel)}}();var J=function(){function t(){}return t.prototype.sendEvent=function(t){return Object(w.c)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return Object(w.c)(!0)},t}(),Z=function(){function t(t){this._options=t,this._options.dsn||p&&h.c.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new O("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new O("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=function(t,e){var n=K(e),r=t.type||"event",i=(t.sdkProcessingMetadata||{}).transactionSampling||{},o=i.method,s=i.rate;return Y(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata,X(Object(c.a)(Object(c.a)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:k(e.dsn)}),[[{type:r,sample_rates:[{id:o,rate:s}]},t]])}(t,H(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(e).then(null,(function(t){p&&h.c.error("Error while sending event:",t)}))}else this._transport.sendEvent(t).then(null,(function(t){p&&h.c.error("Error while sending event:",t)}))},t.prototype.sendSession=function(t){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=H(this._options.dsn,this._options._metadata,this._options.tunnel),n=Object(c.e)(Q(t,e),1);this._newTransport.send(n[0]).then(null,(function(t){p&&h.c.error("Error while sending session:",t)}))}else this._transport.sendSession(t).then(null,(function(t){p&&h.c.error("Error while sending session:",t)}));else p&&h.c.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new J},t}(),tt=n("1Wj6"),et=n("4Ssk");function nt(t,e,n,r){var i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var rt=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,it=/\((\S*)(?::(\d+))(?::(\d+))\)/,ot=[30,function(t){var e=rt.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=it.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var r=Object(c.e)(mt(e[1]||"?",e[2]),2);return nt(r[1],r[0],e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],st=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,at=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ct=[50,function(t){var e,n=st.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=at.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],o=n[1]||"?";return nt(i=(e=Object(c.e)(mt(o,i),2))[1],o=e[0],n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],lt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ut=[40,function(t){var e=lt.exec(t);return e?nt(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],ht=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,dt=[10,function(t){var e=ht.exec(t);return e?nt(e[2],e[3]||"?",+e[1]):void 0}],ft=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,pt=[20,function(t){var e=ft.exec(t);return e?nt(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],mt=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function gt(t){var e=vt(t),n={type:t&&t.name,value:_t(t)};return e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function bt(t){return{exception:{values:[gt(t)]}}}function vt(t){var e=t.stacktrace||t.stack||"",n=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(yt.test(t.message))return 1}return 0}(t);try{return Object(P.a)(dt,pt,ot,ut,ct)(e,n)}catch(r){}return[]}var yt=/Minified React error #\d+;/i;function _t(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function wt(t,e,n,r){var i;if(Object(j.e)(t)&&t.error)return bt(t.error);if(Object(j.a)(t)||Object(j.b)(t)){var o=t;if("stack"in t)i=bt(t);else{var s=o.name||(Object(j.a)(o)?"DOMError":"DOMException"),a=o.message?s+": "+o.message:s;i=St(a,e,n),Object(d.b)(i,a)}return"code"in o&&(i.tags=Object(c.a)(Object(c.a)({},i.tags),{"DOMException.code":""+o.code})),i}return Object(j.d)(t)?bt(t):Object(j.i)(t)||Object(j.f)(t)?(i=function(t,e,n){var r={exception:{values:[{type:Object(j.f)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(l.d)(t)}]},extra:{__serialized__:N(t)}};if(e){var i=vt(e);i.length&&(r.stacktrace={frames:i})}return r}(t,e,r),Object(d.a)(i,{synthetic:!0}),i):(i=St(t,e,n),Object(d.b)(i,""+t,void 0),Object(d.a)(i,{synthetic:!0}),i)}function St(t,e,n){var r={message:t};if(n&&e){var i=vt(e);i.length&&(r.stacktrace={frames:i})}return r}function xt(t){var e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return Object(w.b)(new O("Not adding Promise due to buffer limit reached."));var i=r();return-1===e.indexOf(i)&&e.push(i),i.then((function(){return n(i)})).then(null,(function(){return n(i).then(null,(function(){}))})),i},drain:function(t){return new w.a((function(n,r){var i=e.length;if(!i)return n(!0);var o=setTimeout((function(){t&&t>0&&n(!1)}),t);e.forEach((function(t){Object(w.c)(t).then((function(){--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function Ct(t,e){return t[e]||t.all||0}function Ot(t,e,n){return void 0===n&&(n=Date.now()),Ct(t,e)>n}function Tt(t,e,n){var r,i,o,s;void 0===n&&(n=Date.now());var a=Object(c.a)({},t),l=e["x-sentry-rate-limits"],u=e["retry-after"];if(l)try{for(var h=Object(c.h)(l.trim().split(",")),d=h.next();!d.done;d=h.next()){var f=d.value.split(":",2),p=parseInt(f[0],10),m=1e3*(isNaN(p)?60:p);if(f[1])try{for(var g=(o=void 0,Object(c.h)(f[1].split(";"))),b=g.next();!b.done;b=g.next())a[b.value]=n+m}catch(v){o={error:v}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}else a.all=n+m}}catch(y){r={error:y}}finally{try{d&&!d.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}else u&&(a.all=n+function(t,e){void 0===e&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(u,n));return a}function Et(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}function kt(t,e,n){void 0===n&&(n=xt(t.bufferSize||30));var r={};return{send:function(t){var i=function(t){var e=Object(c.e)(t,2),n=Object(c.e)(e[1],1);return Object(c.e)(n[0],1)[0].type}(t),o="event"===i?"error":i,s={category:o,body:$(t)};return Ot(r,o)?Object(w.b)({status:"rate_limit",reason:At(r,o)}):n.add((function(){return e(s).then((function(t){var e=t.body,n=t.headers,i=t.reason,s=Et(t.statusCode);return n&&(r=Tt(r,n)),"success"===s?Object(w.c)({status:s,reason:i}):Object(w.b)({status:s,reason:i||e||("rate_limit"===s?At(r,o):"Unknown transport error")})}))}))},flush:function(t){return n.drain(t)}}}function At(t,e){return"Too many "+e+" requests, backing off until: "+new Date(Ct(t,e)).toISOString()}var Dt,jt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,It=Object(_.a)();function Pt(){if(Dt)return Dt;if(Object(et.a)(It.fetch))return Dt=It.fetch.bind(It);var t=It.document,e=It.fetch;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(i){jt&&h.c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",i)}return Dt=e.bind(It)}function Mt(t){return"event"===t?"error":t}var Nt=Object(_.a)(),Ft=function(){function t(t){var e=this;this.options=t,this._buffer=xt(30),this._rateLimits={},this._outcomes={},this._api=H(t.dsn,t._metadata,t.tunnel),this.url=U(this._api.dsn),this.options.sendClientReports&&Nt.document&&Nt.document.addEventListener("visibilitychange",(function(){"hidden"===Nt.document.visibilityState&&e._flushOutcomes()}))}return t.prototype.sendEvent=function(t){return this._sendRequest(function(t,e){var n,r=K(e),i=t.type||"event",o="transaction"===i||!!e.tunnel,s=(t.sdkProcessingMetadata||{}).transactionSampling||{},a=s.method,l=s.rate;Y(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{n=JSON.stringify(t)}catch(d){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=d;try{n=JSON.stringify(M(t))}catch(f){n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:f.message,stack:f.stack}})}}var u={body:n,type:i,url:o?q(e.dsn,e.tunnel):U(e.dsn)};if(o){var h=X(Object(c.a)(Object(c.a)({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!e.tunnel&&{dsn:k(e.dsn)}),[[{type:i,sample_rates:[{id:a,rate:l}]},u.body]]);u.body=$(h)}return u}(t,this._api),t)},t.prototype.sendSession=function(t){return this._sendRequest(function(t,e){var n=Object(c.e)(Q(t,e),2),r=n[1];return{body:$(n[0]),type:r,url:q(e.dsn,e.tunnel)}}(t,this._api),t)},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var n;if(this.options.sendClientReports){var r=Mt(e)+":"+t;jt&&h.c.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){jt&&h.c.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e,n,r=q(this._api.dsn,this._api.tunnel),i=(e=Object.keys(t).map((function(e){var n=Object(c.e)(e.split(":"),2);return{reason:n[1],category:n[0],quantity:t[e]}})),X((n=this._api.tunnel&&k(this._api.dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:Object(I.b)(),discarded_events:e}]]));try{!function(t,e){if("[object Navigator]"===Object.prototype.toString.call(It&&It.navigator)&&"function"==typeof It.navigator.sendBeacon)return It.navigator.sendBeacon.bind(It.navigator)(t,e);Object(et.b)()&&Pt()(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(t){console.error(t)}))}(r,$(i))}catch(o){jt&&h.c.error(o)}}else jt&&h.c.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,i=t.resolve,o=t.reject,s=Et(n.status);this._rateLimits=Tt(this._rateLimits,r),this._isRateLimited(e)&&jt&&h.c.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==s?o(n):i({status:s})},t.prototype._disabledUntil=function(t){var e=Mt(t);return new Date(Ct(this._rateLimits,e))},t.prototype._isRateLimited=function(t){var e=Mt(t);return Ot(this._rateLimits,e)},t}(),Rt=function(t){function e(e,n){void 0===n&&(n=Pt());var r=t.call(this,e)||this;return r._fetch=n,r}return Object(c.d)(e,t),e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:Object(et.e)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new w.a((function(e,i){n._fetch(t.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:o,resolve:e,reject:i})})).catch(i)}))})).then(void 0,(function(e){throw n.recordLostEvent(e instanceof O?"queue_overflow":"network_error",t.type),e}))},e}(Ft),Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.d)(e,t),e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new w.a((function(e,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:r})}},i.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(t.body)}))})).then(void 0,(function(e){throw n.recordLostEvent(e instanceof O?"queue_overflow":"network_error",t.type),e}))},e}(Ft),Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.d)(e,t),e.prototype.eventFromException=function(t,e){return function(t,e,n){var r=wt(t,e&&e.syntheticException||void 0,n);return Object(d.a)(r),r.level=tt.a.Error,e&&e.event_id&&(r.event_id=e.event_id),Object(w.c)(r)}(t,e,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=tt.a.Info),function(t,e,n,r){void 0===e&&(e=tt.a.Info);var i=St(t,n&&n.syntheticException||void 0,r);return i.level=e,n&&n.event_id&&(i.event_id=n.event_id),Object(w.c)(i)}(t,e,n,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e,n,r=Object(c.a)(Object(c.a)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=H(r.dsn,r._metadata,r.tunnel),o=q(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(r);if(Object(et.b)()){var s=Object(c.a)({},r.fetchParameters);return this._newTransport=(e={requestOptions:s,url:o},void 0===n&&(n=Pt()),kt({bufferSize:e.bufferSize},(function(t){var r=Object(c.a)({body:t.body,method:"POST",referrerPolicy:"origin"},e.requestOptions);return n(e.url,r).then((function(t){return t.text().then((function(e){return{body:e,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")},reason:t.statusText,statusCode:t.status}}))}))}))),new Rt(r)}return this._newTransport=function(t){return kt({bufferSize:t.bufferSize},(function(e){return new w.a((function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var t={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};n(t)}},i.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,o)&&i.setRequestHeader(o,t.headers[o]);i.send(e.body)}))}))}({url:o,headers:r.headers}),new Lt(r)},e}(Z),Ht=n("gtzJ"),Bt=Object(_.a)(),Gt=0;function zt(){return Gt>0}function Wt(){Gt+=1,setTimeout((function(){Gt-=1}))}function Ut(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{var r=t.__sentry_wrapped__;if(r)return r;if(Object(l.f)(t))return t}catch(s){return t}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(t){return Ut(t,e)}));return t.apply(this,i)}catch(o){throw Wt(),Object(Ht.c)((function(t){t.addEventProcessor((function(t){return e.mechanism&&(Object(d.b)(t,void 0,void 0),Object(d.a)(t,e.mechanism)),t.extra=Object(c.a)(Object(c.a)({},t.extra),{arguments:r}),t})),Object(Ht.a)(o)})),o}};try{for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o])}catch(a){}Object(l.g)(i,t),Object(l.a)(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return t.name}})}catch(a){}return i}var qt=n("vFt6"),Xt=["fatal","error","warning","log","info","debug","critical"],$t=function(){function t(e){this.name=t.id,this._options=Object(c.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&Object(y.b)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Object(d.d)(t)},{event:t})},t.prototype.setupOnce=function(){var t;this._options.console&&Object(S.a)("console",Kt),this._options.dom&&Object(S.a)("dom",(t=this._options.dom,function(e){var n,r="object"==typeof t?t.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=e.event.target?Object(qt.b)(e.event.target,r):Object(qt.b)(e.event,r)}catch(i){n="<unknown>"}0!==n.length&&Object(y.b)().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})})),this._options.xhr&&Object(S.a)("xhr",Yt),this._options.fetch&&Object(S.a)("fetch",Qt),this._options.history&&Object(S.a)("history",Jt)},t.id="Breadcrumbs",t}();function Kt(t){var e,n={category:"console",data:{arguments:t.args,logger:"console"},level:(e=t.level,"warn"===e?tt.a.Warning:function(t){return-1!==Xt.indexOf(t)}(e)?e:tt.a.Log),message:Object(f.b)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: "+(Object(f.b)(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}Object(y.b)().addBreadcrumb(n,{input:t.args,level:t.level})}function Yt(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,i=e.status_code,o=e.body;Object(y.b)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:t.xhr,input:o})}}function Qt(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?Object(y.b)().addBreadcrumb({category:"fetch",data:t.fetchData,level:tt.a.Error,type:"http"},{data:t.error,input:t.args}):Object(y.b)().addBreadcrumb({category:"fetch",data:Object(c.a)(Object(c.a)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function Jt(t){var e=Object(_.a)(),n=t.from,r=t.to,i=Object(d.e)(e.location.href),o=Object(d.e)(n),s=Object(d.e)(r);o.path||(o=i),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Object(y.b)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}var Zt=function(t){function e(e){return void 0===e&&(e={}),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},t.call(this,Vt,e)||this}return Object(c.d)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),Object(_.a)().document&&(this._isEnabled()?function(t){if(void 0===t&&(t={}),Bt.document)if(t.eventId)if(t.dsn){var e=Bt.document.createElement("script");e.async=!0,e.src=function(t,e){var n=D(t),r=B(n)+"embed/error-page/",i="dsn="+k(n);for(var o in e)if("dsn"!==o)if("user"===o){if(!e.user)continue;e.user.name&&(i+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(i+="&email="+encodeURIComponent(e.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(e[o]);return r+"?"+i}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=Bt.document.head||Bt.document.body;n&&n.appendChild(e)}else jt&&h.c.error("Missing dsn option in showReportDialog call");else jt&&h.c.error("Missing eventId option in showReportDialog call")}(Object(c.a)(Object(c.a)({},t),{dsn:t.dsn||this.getDsn()})):jt&&h.c.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration($t);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(V),te=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ee=function(){function t(e){this.name=t.id,this._options=Object(c.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=Object(_.a)();this._options.setTimeout&&Object(l.e)(t,"setTimeout",ne),this._options.setInterval&&Object(l.e)(t,"setInterval",ne),this._options.requestAnimationFrame&&Object(l.e)(t,"requestAnimationFrame",re),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&Object(l.e)(XMLHttpRequest.prototype,"send",ie);var e=this._options.eventTarget;e&&(Array.isArray(e)?e:te).forEach(oe)},t.id="TryCatch",t}();function ne(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0];return e[0]=Ut(r,{mechanism:{data:{function:Object(P.b)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function re(t){return function(e){return t.apply(this,[Ut(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(P.b)(t)},handled:!0,type:"instrument"}})])}}function ie(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(t){t in r&&"function"==typeof r[t]&&Object(l.e)(r,t,(function(e){var n={mechanism:{data:{function:t,handler:Object(P.b)(e)},handled:!0,type:"instrument"}},r=Object(l.f)(e);return r&&(n.mechanism.data.handler=Object(P.b)(r)),Ut(e,n)}))})),t.apply(this,e)}}function oe(t){var e=Object(_.a)(),n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(l.e)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ut(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(P.b)(r),target:t},handled:!0,type:"instrument"}}))}catch(o){}return e.apply(this,[n,Ut(r,{mechanism:{data:{function:"addEventListener",handler:Object(P.b)(r),target:t},handled:!0,type:"instrument"}}),i])}})),Object(l.e)(n,"removeEventListener",(function(t){return function(e,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&t.call(this,e,o,r)}catch(s){}return t.call(this,e,i,r)}})))}var se=function(){function t(e){this.name=t.id,this._installFunc={onerror:ae,onunhandledrejection:ce},this._options=Object(c.a)({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50;var t=this._options;for(var e in t){var n=this._installFunc[e];n&&t[e]&&(jt&&h.c.log("Global Handler attached: "+e),n(),this._installFunc[e]=void 0)}},t.id="GlobalHandlers",t}();function ae(){Object(S.a)("error",(function(t){var e=Object(c.e)(he(),2),n=e[0],r=e[1];if(n.getIntegration(se)){var i=t.msg,o=t.url,s=t.line,a=t.column,l=t.error;if(!(zt()||l&&l.__sentry_own_request__)){var u=void 0===l&&Object(j.l)(i)?function(t,e,n,r){var i=Object(j.e)(t)?t.message:t,o="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(o=s[1],i=s[2]),le({exception:{values:[{type:o,value:i}]}},e,n,r)}(i,o,s,a):le(wt(l||i,void 0,r,!1),o,s,a);u.level=tt.a.Error,ue(n,l,u,"onerror")}}}))}function ce(){Object(S.a)("unhandledrejection",(function(t){var e=Object(c.e)(he(),2),n=e[0],r=e[1];if(n.getIntegration(se)){var i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(s){}if(zt()||i&&i.__sentry_own_request__)return!0;var o=Object(j.j)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:wt(i,void 0,r,!0);o.level=tt.a.Error,ue(n,i,o,"onunhandledrejection")}}))}function le(t,e,n,r){var i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,h=Object(j.l)(e)&&e.length>0?e:Object(qt.a)();return 0===c.length&&c.push({colno:l,filename:h,function:"?",in_app:!0,lineno:u}),t}function ue(t,e,n,r){Object(d.a)(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function he(){var t=Object(y.b)(),e=t.getClient();return[t,e&&e.getOptions().attachStacktrace]}var de=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){Object(x.b)((function(e,n){var r=Object(y.b)().getIntegration(t);return r?function(t,e,n,r){if(!(n.exception&&n.exception.values&&r&&Object(j.g)(r.originalException,Error)))return n;var i=function t(e,n,r,i){if(void 0===i&&(i=[]),!Object(j.g)(n[r],Error)||i.length+1>=e)return i;var o=gt(n[r]);return t(e,n[r],r,Object(c.g)([o],i))}(e,r.originalException,t);return n.exception.values=Object(c.g)(i,n.exception.values),n}(r._key,r._limit,e,n):e}))},t.id="LinkedErrors",t}(),fe=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var r=n().getIntegration(t);if(r){try{if(function(t,e){return!(!e||!function(t,e){var n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!me(t,e)||!pe(t,e))}(t,e)&&!function(t,e){var n=ge(e),r=ge(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&me(t,e)&&pe(t,e))}(t,e))}(e,r._previousEvent))return jt&&h.c.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(i){return r._previousEvent=e}return r._previousEvent=e}return e}))},t.id="Dedupe",t}();function pe(t,e){var n=be(t),r=be(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if((r=r).length!==(n=n).length)return!1;for(var i=0;i<r.length;i++){var o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function me(t,e){var n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(i){return!1}}function ge(t){return t.exception&&t.exception.values&&t.exception.values[0]}function be(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(n){return}else if(t.stacktrace)return t.stacktrace.frames}var ve=Object(_.a)(),ye=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Object(x.b)((function(e){if(Object(y.b)().getIntegration(t)){if(!ve.navigator&&!ve.location&&!ve.document)return e;var n=e.request&&e.request.url||ve.location&&ve.location.href,r=(ve.document||{}).referrer,i=(ve.navigator||{}).userAgent,o=Object(c.a)(Object(c.a)(Object(c.a)({},e.request&&e.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),s=Object(c.a)(Object(c.a)({},n&&{url:n}),{headers:o});return Object(c.a)(Object(c.a)({},e),{request:s})}return e}))},t.id="UserAgent",t}(),_e=[new r.InboundFilters,new r.FunctionToString,new ee,new $t,new se,new de,new fe,new ye];function we(t){t.startSession({ignoreDuration:!0}),t.captureSession()}var Se,xe,Ce,Oe=n("tyNb"),Te=n("quSY"),Ee=n("pLZG"),ke=n("vkgz"),Ae="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,De="undefined"!=typeof Zone&&!!Zone.current;function je(t){return De?Zone.root.run(t):t()}var Ie=Object(_.a)();function Pe(){var t=Object(y.b)();if(t){var e=t.getScope();if(e)return e.getTransaction()}}var Me=function(){function t(t){var e=this;this._router=t,this.navStart$=this._router.events.pipe(Object(Ee.a)((function(t){return t instanceof Oe.c})),Object(ke.a)((function(t){if(Se){var n=t,r=Object(d.f)(n.url),i=Pe();!i&&Ce&&(i=xe({name:r,op:"navigation"})),i&&(e._routingSpan&&e._routingSpan.finish(),e._routingSpan=i.startChild({description:""+n.url,op:"ui.angular.routing",tags:Object(c.a)({"routing.instrumentation":"@sentry/angular",url:r},n.navigationTrigger&&{navigationTrigger:n.navigationTrigger})}))}else Ae&&h.c.error("Angular integration has tracing enabled, but Tracing integration is not configured")}))),this.navEnd$=this._router.events.pipe(Object(Ee.a)((function(t){return t instanceof Oe.b})),Object(ke.a)((function(){e._routingSpan&&(je((function(){e._routingSpan.finish()})),e._routingSpan=null)}))),this._routingSpan=null,this._subscription=new Te.a,this._subscription.add(this.navStart$.subscribe()),this._subscription.add(this.navEnd$.subscribe())}return t.prototype.ngOnDestroy=function(){this._subscription.unsubscribe()},Object(c.c)([Object(s.Injectable)({providedIn:"root"})],t)}(),Ne=function(){function t(){this.componentName="unknown"}return t.prototype.ngOnInit=function(){var t=Pe();t&&(this._tracingSpan=t.startChild({description:"<"+this.componentName+">",op:"ui.angular.init"}))},t.prototype.ngAfterViewInit=function(){this._tracingSpan&&this._tracingSpan.finish()},Object(c.c)([Object(s.Input)("trace")],t.prototype,"componentName",void 0),Object(c.c)([Object(s.Directive)({selector:"[trace]"})],t)}();!function(){function t(){}t=Object(c.c)([Object(s.NgModule)({declarations:[Ne],exports:[Ne]})],t)}();var Fe=n("Cpvd"),Re=n("i6wd"),Le=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._router=e.router||e.app,this._methods=(Array.isArray(e.methods)?e.methods:[]).concat("use")}return t.prototype.setupOnce=function(){var t,e;this._router?(t=this._router,void 0===(e=this._methods)&&(e=[]),e.forEach((function(e){return function(t,e){var n=t[e];return t[e]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return n.call.apply(n,Object(c.g)([this],He(t,e)))},t}(t,e)}))):Re.a&&h.c.error("ExpressIntegration is missing an Express instance")},t.id="Express",t}();function Ve(t,e){var n=t.length;switch(n){case 2:return function(n,r){var i=r.__sentry_transaction;if(i){var o=i.startChild({description:t.name,op:"express.middleware."+e});r.once("finish",(function(){o.finish()}))}return t.call(this,n,r)};case 3:return function(n,r,i){var o,s=null===(o=r.__sentry_transaction)||void 0===o?void 0:o.startChild({description:t.name,op:"express.middleware."+e});t.call(this,n,r,(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];null===(t=s)||void 0===t||t.finish(),i.call.apply(i,Object(c.g)([this],e))}))};case 4:return function(n,r,i,o){var s,a=null===(s=i.__sentry_transaction)||void 0===s?void 0:s.startChild({description:t.name,op:"express.middleware."+e});t.call(this,n,r,i,(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];null===(t=a)||void 0===t||t.finish(),o.call.apply(o,Object(c.g)([this],e))}))};default:throw new Error("Express middleware takes 2-4 arguments. Got: "+n)}}function He(t,e){return t.map((function(t){return"function"==typeof t?Ve(t,e):Array.isArray(t)?t.map((function(t){return"function"==typeof t?Ve(t,e):t})):t}))}var Be=n("+A1k"),Ge=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._usePgNative=!!e.usePgNative}return t.prototype.setupOnce=function(t,e){var n,r=Object(Be.c)("pg");if(r)if(!this._usePgNative||(null===(n=r.native)||void 0===n?void 0:n.Client)){var i=(this._usePgNative?r.native:r).Client;Object(l.e)(i.prototype,"query",(function(t){return function(n,r,i){var o,s,a,c=null===(s=null===(o=e().getScope())||void 0===o?void 0:o.getSpan())||void 0===s?void 0:s.startChild({description:"string"==typeof n?n:n.text,op:"db"});if("function"==typeof i)return t.call(this,n,r,(function(t,e){var n;null===(n=c)||void 0===n||n.finish(),i(t,e)}));if("function"==typeof r)return t.call(this,n,(function(t,e){var n;null===(n=c)||void 0===n||n.finish(),r(t,e)}));var l=void 0!==r?t.call(this,n,r):t.call(this,n);return Object(j.n)(l)?l.then((function(t){var e;return null===(e=c)||void 0===e||e.finish(),t})):(null===(a=c)||void 0===a||a.finish(),l)}}))}else Re.a&&h.c.error("Postgres Integration was unable to access 'pg-native' bindings.");else Re.a&&h.c.error("Postgres Integration was unable to require `pg` package.")},t.id="Postgres",t}(),ze=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(t,e){var n=Object(Be.c)("mysql/lib/Connection.js");n?Object(l.e)(n,"createQuery",(function(t){return function(n,r,i){var o,s,a=null===(s=null===(o=e().getScope())||void 0===o?void 0:o.getSpan())||void 0===s?void 0:s.startChild({description:"string"==typeof n?n:n.sql,op:"db"});return"function"==typeof i?t.call(this,n,r,(function(t,e,n){var r;null===(r=a)||void 0===r||r.finish(),i(t,e,n)})):"function"==typeof r?t.call(this,n,(function(t,e,n){var i;null===(i=a)||void 0===i||i.finish(),r(t,e,n)})):t.call(this,n,r,i)}})):Re.a&&h.c.error("Mysql Integration was unable to require `mysql` package.")},t.id="Mysql",t}(),We=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],Ue={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]},qe=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._operations=Array.isArray(e.operations)?e.operations:We,this._describeOperations=!("describeOperations"in e)||e.describeOperations,this._useMongoose=!!e.useMongoose}return t.prototype.setupOnce=function(t,e){var n=this._useMongoose?"mongoose":"mongodb",r=Object(Be.c)(n);r?this._instrumentOperations(r.Collection,this._operations,e):Re.a&&h.c.error("Mongo Integration was unable to require `"+n+"` package.")},t.prototype._instrumentOperations=function(t,e,n){var r=this;e.forEach((function(e){return r._patchOperation(t,e,n)}))},t.prototype._patchOperation=function(t,e,n){if(e in t.prototype){var r=this._getSpanContextFromOperationArguments.bind(this);Object(l.e)(t.prototype,e,(function(t){return function(){for(var i,o,s,a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];var h=l[l.length-1],d=n().getScope(),f=null===(i=d)||void 0===i?void 0:i.getSpan();if("function"!=typeof h||"mapReduce"===e&&2===l.length){var p=null===(o=f)||void 0===o?void 0:o.startChild(r(this,e,l)),m=t.call.apply(t,Object(c.g)([this],l));return Object(j.n)(m)?m.then((function(t){var e;return null===(e=p)||void 0===e||e.finish(),t})):(null===(s=p)||void 0===s||s.finish(),m)}var g=null===(a=f)||void 0===a?void 0:a.startChild(r(this,e,l.slice(0,-1)));return t.call.apply(t,Object(c.g)([this],l.slice(0,-1),[function(t,e){var n;null===(n=g)||void 0===n||n.finish(),h(t,e)}]))}}))}},t.prototype._getSpanContextFromOperationArguments=function(t,e,n){var r={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace},i={op:"db",description:e,data:r},o=Ue[e],s=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations;if(!o||!s)return i;try{if("mapReduce"===e){var a=Object(c.e)(n,2),l=a[0],u=a[1];r[o[0]]="string"==typeof l?l:l.name||"<anonymous>",r[o[1]]="string"==typeof u?u:u.name||"<anonymous>"}else for(var h=0;h<o.length;h++)r[o[h]]=JSON.stringify(n[h])}catch(d){}return i},t.id="Mongo",t}(),Xe=n("MBYv"),$e=n("FGHR"),Ke=n("8yT3"),Ye=n("WWQz"),Qe=Object(_.a)(),Je=function(t,e,n){var r;return function(i){e.value>=0&&(i||n)&&(e.delta=e.value-(r||0),(e.delta||void 0===r)&&(r=e.value,t(e)))}},Ze=function(t,e){return{name:t,value:null!=e?e:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},tn=function(t,e){try{if(PerformanceObserver.supportedEntryTypes.includes(t)){if("first-input"===t&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(t){return t.getEntries().map(e)}));return n.observe({type:t,buffered:!0}),n}}catch(r){}},en=function(t,e){var n=function(r){"pagehide"!==r.type&&"hidden"!==Object(_.a)().document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},nn=-1,rn=function(){return nn<0&&(nn="hidden"===Object(_.a)().document.visibilityState?0:1/0,en((function(t){nn=t.timeStamp}),!0)),{get firstHiddenTime(){return nn}}},on={},sn=Object(_.a)(),an=function(){function t(t){void 0===t&&(t=!1),this._reportAllChanges=t,this._measurements={},this._performanceCursor=0,!Object(Be.b)()&&sn&&sn.performance&&sn.document&&(sn.performance.mark&&sn.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return t.prototype.addPerformanceEntries=function(t){var e=this;if(sn&&sn.performance&&sn.performance.getEntries&&I.a){Re.a&&h.c.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,i=Object($e.c)(I.a);if(sn.performance.getEntries().slice(this._performanceCursor).forEach((function(o){var s=Object($e.c)(o.startTime),a=Object($e.c)(o.duration);if(!("navigation"===t.op&&i+s<t.startTimestamp))switch(o.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(r){cn(t,e,r,n)})),cn(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),cn(t,e,"fetch",n,"cache","domainLookupStart"),cn(t,e,"domainLookup",n,"DNS"),function(t,e,n){ln(t,{op:"browser",description:"request",startTimestamp:n+Object($e.c)(e.requestStart),endTimestamp:n+Object($e.c)(e.responseEnd)}),ln(t,{op:"browser",description:"response",startTimestamp:n+Object($e.c)(e.responseStart),endTimestamp:n+Object($e.c)(e.responseEnd)})}(t,e,n)}(t,o,i),n=i+Object($e.c)(o.responseStart),r=i+Object($e.c)(o.requestStart);break;case"mark":case"paint":case"measure":var c=function(t,e,n,r,i){var o=i+n;return ln(t,{description:e.name,endTimestamp:o+r,op:e.entryType,startTimestamp:o}),o}(t,o,s,a,i),l=rn(),u=o.startTime<l.firstHiddenTime;"first-paint"===o.name&&u&&(Re.a&&h.c.log("[Measurements] Adding FP"),e._measurements.fp={value:o.startTime},e._measurements["mark.fp"]={value:c}),"first-contentful-paint"===o.name&&u&&(Re.a&&h.c.log("[Measurements] Adding FCP"),e._measurements.fcp={value:o.startTime},e._measurements["mark.fcp"]={value:c});break;case"resource":var d=o.name.replace(sn.location.origin,"");!function(t,e,n,r,i,o){if("xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType){var s={};"transferSize"in e&&(s["Transfer Size"]=e.transferSize),"encodedBodySize"in e&&(s["Encoded Body Size"]=e.encodedBodySize),"decodedBodySize"in e&&(s["Decoded Body Size"]=e.decodedBodySize);var a=o+r;ln(t,{description:n,endTimestamp:a+i,op:e.initiatorType?"resource."+e.initiatorType:"resource",startTimestamp:a,data:s})}}(t,o,d,s,a,i)}})),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(t),"pageload"===t.op){var o=Object($e.c)(I.a);"number"==typeof n&&(Re.a&&h.c.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(n-t.startTimestamp)},"number"==typeof r&&r<=n&&(this._measurements["ttfb.requestTime"]={value:1e3*(n-r)})),["fcp","fp","lcp"].forEach((function(n){if(e._measurements[n]&&!(o>=t.startTimestamp)){var r=e._measurements[n].value,i=o+Object($e.c)(r),s=Math.abs(1e3*(i-t.startTimestamp));Re.a&&h.c.log("[Measurements] Normalized "+n+" from "+r+" to "+s+" ("+(s-r)+")"),e._measurements[n].value=s}})),this._measurements["mark.fid"]&&this._measurements.fid&&ln(t,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+Object($e.c)(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,t.setMeasurements(this._measurements),function(t,e,n){e&&(Re.a&&h.c.log("[Measurements] Adding LCP Data"),e.element&&t.setTag("lcp.element",Object(qt.b)(e.element)),e.id&&t.setTag("lcp.id",e.id),e.url&&t.setTag("lcp.url",e.url.trim().slice(0,200)),t.setTag("lcp.size",e.size)),n&&n.sources&&(Re.a&&h.c.log("[Measurements] Adding CLS Data"),n.sources.forEach((function(e,n){return t.setTag("cls.source."+(n+1),Object(qt.b)(e.node))})))}(t,this._lcpEntry,this._clsEntry),t.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},t.prototype._trackNavigator=function(t){var e=sn.navigator;if(e){var n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),un(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),un(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),un(e.deviceMemory)&&t.setTag("deviceMemory",String(e.deviceMemory)),un(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}},t.prototype._trackCLS=function(){var t,e,n,r,i,o,s=this;e=Ze("CLS",0),n=0,r=[],(o=tn("layout-shift",i=function(i){i&&!i.hadRecentInput&&(n&&0!==r.length&&i.startTime-r[r.length-1].startTime<1e3&&i.startTime-r[0].startTime<5e3?(n+=i.value,r.push(i)):(n=i.value,r=[i]),n>e.value&&(e.value=n,e.entries=r,t&&t()))}))&&(t=Je((function(t){var e=t.entries.pop();e&&(Re.a&&h.c.log("[Measurements] Adding CLS"),s._measurements.cls={value:t.value},s._clsEntry=e)}),e,void 0),en((function(){o.takeRecords().map(i),t(!0)})))},t.prototype._trackLCP=function(){var t=this;!function(e,n){var r,i=rn(),o=Ze("LCP"),s=function(t){var e=t.startTime;e<i.firstHiddenTime&&(o.value=e,o.entries.push(t)),r&&r()},a=tn("largest-contentful-paint",s);if(a){r=Je((function(e){var n=e.entries.pop();if(n){var r=Object($e.c)(I.a),i=Object($e.c)(n.startTime);Re.a&&h.c.log("[Measurements] Adding LCP"),t._measurements.lcp={value:e.value},t._measurements["mark.lcp"]={value:r+i},t._lcpEntry=n}}),o,n);var c=function(){on[o.id]||(a.takeRecords().map(s),a.disconnect(),on[o.id]=!0,r(!0))};["keydown","click"].forEach((function(t){addEventListener(t,c,{once:!0,capture:!0})})),en(c,!0)}}(0,this._reportAllChanges)},t.prototype._trackFID=function(){var t,e,n,r,i,o=this;e=rn(),n=Ze("FID"),(i=tn("first-input",r=function(r){t&&r.startTime<e.firstHiddenTime&&(n.value=r.processingStart-r.startTime,n.entries.push(r),t(!0))}))&&(t=Je((function(t){var e=t.entries.pop();if(e){var n=Object($e.c)(I.a),r=Object($e.c)(e.startTime);Re.a&&h.c.log("[Measurements] Adding FID"),o._measurements.fid={value:t.value},o._measurements["mark.fid"]={value:n+r}}}),n,void 0),en((function(){i.takeRecords().map(r),i.disconnect()}),!0))},t}();function cn(t,e,n,r,i,o){var s=o?e[o]:e[n+"End"],a=e[n+"Start"];a&&s&&ln(t,{op:"browser",description:null!=i?i:n,startTimestamp:r+Object($e.c)(a),endTimestamp:r+Object($e.c)(s)})}function ln(t,e){var n=e.startTimestamp,r=Object(c.f)(e,["startTimestamp"]);return n&&t.startTimestamp>n&&(t.startTimestamp=n),t.startChild(Object(c.a)({startTimestamp:n},r))}function un(t){return"number"==typeof t&&isFinite(t)}var hn={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]},dn=Object(_.a)(),fn=Object(c.a)({idleTimeout:Xe.a,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),dn&&dn.location){var r,i=dn.location.href;e&&(r=t({name:dn.location.pathname,op:"pageload"})),n&&Object(S.a)("history",(function(e){var n=e.to,o=e.from;void 0===o&&i&&-1!==i.indexOf(n)?i=void 0:o!==n&&(i=void 0,r&&(Re.a&&h.c.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:dn.location.pathname,op:"navigation"}))}))}else Re.a&&h.c.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},hn),pn=function(){function t(e){this.name=t.id,this._configuredIdleTimeout=void 0;var n=hn.tracingOrigins;e&&(this._configuredIdleTimeout=e.idleTimeout,e.tracingOrigins&&Array.isArray(e.tracingOrigins)&&0!==e.tracingOrigins.length?n=e.tracingOrigins:Re.a&&(this._emitOptionsWarning=!0)),this.options=Object(c.a)(Object(c.a)(Object(c.a)({},fn),e),{tracingOrigins:n});var r=this.options._metricOptions;this._metrics=new an(r&&r._reportAllChanges)}return t.prototype.setupOnce=function(t,e){var n=this;this._getCurrentHub=e,this._emitOptionsWarning&&(Re.a&&h.c.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),Re.a&&h.c.warn("[Tracing] We added a reasonable default for you: "+hn.tracingOrigins));var r=this.options,i=r.markBackgroundTransactions,o=r.traceFetch,s=r.traceXHR,a=r.tracingOrigins,l=r.shouldCreateSpanForRequest;(0,r.routingInstrumentation)((function(t){return n._createRouteTransaction(t)}),r.startTransactionOnPageLoad,r.startTransactionOnLocationChange),i&&(Qe&&Qe.document?Qe.document.addEventListener("visibilitychange",(function(){var t=Object($e.a)();Qe.document.hidden&&t&&(Re.a&&h.c.log("[Tracing] Transaction: cancelled -> since tab moved to the background, op: "+t.op),t.status||t.setStatus("cancelled"),t.setTag("visibilitychange","document.hidden"),t.setTag(Ye.a,Ye.b[2]),t.finish())})):Re.a&&h.c.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(e){var n=Object(c.a)(Object(c.a)({},hn),e),r=n.traceXHR,i=n.tracingOrigins,o=n.shouldCreateSpanForRequest,s={},a=function(t){return s[t]||(s[t]=i.some((function(e){return Object(f.a)(t,e)}))&&!Object(f.a)(t,"sentry_key")),s[t]},l=a;"function"==typeof o&&(l=function(t){return a(t)&&o(t)});var u={};n.traceFetch&&Object(S.a)("fetch",(function(t){!function(t,e,n){if(Object($e.b)()&&t.fetchData&&e(t.fetchData.url))if(t.endTimestamp){var r=t.fetchData.__span;if(!r)return;(o=n[r])&&(t.response?o.setHttpStatus(t.response.status):t.error&&o.setStatus("internal_error"),o.finish(),delete n[r])}else{var i=Object($e.a)();if(i){var o=i.startChild({data:Object(c.a)(Object(c.a)({},t.fetchData),{type:"fetch"}),description:t.fetchData.method+" "+t.fetchData.url,op:"http.client"});t.fetchData.__span=o.spanId,n[o.spanId]=o;var s=t.args[0]=t.args[0],a=t.args[1]=t.args[1]||{},l=a.headers;Object(j.g)(s,Request)&&(l=s.headers),l?"function"==typeof l.append?l.append("sentry-trace",o.toTraceparent()):l=Array.isArray(l)?Object(c.g)(l,[["sentry-trace",o.toTraceparent()]]):Object(c.a)(Object(c.a)({},l),{"sentry-trace":o.toTraceparent()}):l={"sentry-trace":o.toTraceparent()},a.headers=l}}}(t,l,u)})),r&&Object(S.a)("xhr",(function(e){!function(e,n,r){if(!(!Object($e.b)()||e.xhr&&e.xhr.__sentry_own_request__)&&e.xhr&&e.xhr.__sentry_xhr__&&n(e.xhr.__sentry_xhr__.url)){var i=e.xhr.__sentry_xhr__;if(e.endTimestamp){var o=e.xhr.__sentry_xhr_span_id__;if(!o)return;(a=r[o])&&(a.setHttpStatus(i.status_code),a.finish(),delete r[o])}else{var s=Object($e.a)();if(s){var a=s.startChild({data:Object(c.a)(Object(c.a)({},i.data),{type:"xhr",method:i.method,url:i.url}),description:i.method+" "+i.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=a.spanId,r[e.xhr.__sentry_xhr_span_id__]=a,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",a.toTraceparent())}catch(t){}}}}}(e,l,u)}))}({traceFetch:o,traceXHR:s,tracingOrigins:a,shouldCreateSpanForRequest:l})},t.prototype._createRouteTransaction=function(t){var e=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,i=n.idleTimeout,o=n.maxTransactionDuration,s="pageload"===t.op?function(){var t,e=(t=Object(_.a)().document.querySelector("meta[name=sentry-trace]"))?t.getAttribute("content"):null;if(e)return Object(Ke.a)(e)}():void 0,a=Object(c.a)(Object(c.a)(Object(c.a)({},t),s),{trimEnd:!0}),l="function"==typeof r?r(a):a,u=void 0===l?Object(c.a)(Object(c.a)({},a),{sampled:!1}):l;!1===u.sampled&&Re.a&&h.c.log("[Tracing] Will not send "+u.op+" transaction because of beforeNavigate."),Re.a&&h.c.log("[Tracing] Starting "+u.op+" transaction on scope");var d=this._getCurrentHub(),f=Object(_.a)().location,p=Object(Fe.b)(d,u,i,!0,{location:f});return p.registerBeforeFinishCallback((function(t,n){e._metrics.addPerformanceEntries(t),function(t,e,n){var r=n-e.startTimestamp;n&&(r>t||r<0)&&(e.setStatus("deadline_exceeded"),e.setTag("maxTransactionDurationExceeded","true"))}(Object($e.d)(o),t,n)})),p.setTag("idleTimeout",this._configuredIdleTimeout),p}Re.a&&h.c.warn("[Tracing] Did not create "+t.op+" transaction because _getCurrentHub is invalid.")},t.id="BrowserTracing",t}();Object(Fe.a)(),n("Ams3"),n("2TOE"),n("BzqX"),n("Nvgl"),n("vGjl"),n("Hgmd"),n("+dQi"),n("lZu9");var mn=n("jhN1"),gn=n("R1ws"),bn=n("tk/3"),vn=n("9YtQ"),yn=n("mo97"),_n=n("VfN6"),wn=n("Fr4G"),Sn=n("24nb"),xn=n("0AqG"),Cn=n("x7+9"),On=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(e){o(e)}}function a(t){try{c(r.throw(t))}catch(e){o(e)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))};let Tn=(()=>{class t{constructor(t,e,n,r,i){this._router=t,this._userService=e,this._entityService=n,this._customerService=r,this._loginStartupService=i,this.checkIfFBQLoaded=()=>new Promise(t=>{let e=0;!function n(){setInterval(()=>{"function"==typeof fbq||e>=30?t("function"==typeof fbq):n(),e++},500)}()})}start(){return On(this,void 0,void 0,(function*(){this._router.events.subscribe(t=>On(this,void 0,void 0,(function*(){if(t instanceof Oe.b){const e=this._userService.getRole();t.urlAfterRedirects.includes("/admin")||t.urlAfterRedirects.includes("/signup")||"hidden_customer"===e||(yield this.prepare())&&("customer"===e?this._customerService.getCustomerInfo().subscribe(t=>{(t.gdpr_acceptation.is_statistics||void 0===t.gdpr_acceptation.is_statistics&&t.gdpr_acceptation.is_accept)&&this.track()}):this.track())}})))}))}prepare(){return new Promise(t=>On(this,void 0,void 0,(function*(){if(this._initialized)t(!0);else{if(!(yield this.getSettings().toPromise()))return void t(!1);const e=yield this.appendFBQScript();e||console.warn("Failed to attach FB Pixel; Api Key: "+this._apiKey),this._initialized=e,t(e)}})))}track(t="PageView"){fbq("track",t)}getSettings(){return this._entityService.getEntity("settings_analytics").filter(t=>{const e=t[0];return this._apiKey=null==e?void 0:e.facebook_pixel,Boolean(this._apiKey&&(null==e?void 0:e.facebook_pixel_is_active))})}appendFBQScript(){try{t=window,e=document,n="script",t.fbq||(r=t.fbq=function(){r.callMethod?r.callMethod.apply(r,arguments):r.queue.push(arguments)},t._fbq||(t._fbq=r),r.push=r,r.loaded=!0,r.version="2.0",r.queue=[],(i=e.createElement(n)).async=!0,i.src="https://connect.facebook.net/en_US/fbevents.js?ngsw-bypass=true",(o=e.getElementsByTagName(n)[0]).parentNode.insertBefore(i,o)),fbq.disablePushState=!0,fbq.allowDuplicatePageViews=!0,fbq("init",this._apiKey)}catch(s){console.error(s)}var t,e,n,r,i,o;return this.checkIfFBQLoaded()}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](Oe.e),s["\u0275\u0275inject"](wn.a),s["\u0275\u0275inject"](Sn.a),s["\u0275\u0275inject"](xn.a),s["\u0275\u0275inject"](Cn.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var En=n("GroS"),kn=n("1S6i"),An=n("ywEm"),Dn=n("jgNO"),jn=n("cp0P"),In=n("4B4X"),Pn=n("sYmb"),Mn=n("ofXK");function Nn(t,e){1&t&&s["\u0275\u0275element"](0,"router-outlet")}let Fn=(()=>{let t=class{constructor(t,e,n,r,i,o,s,a,c,l,u,h,d){this._translateService=t,this._fileManagerService=e,this._userService=n,this._entityService=r,this._router=i,this._route=o,this._location=s,this._facebookPixelService=a,this._alert=c,this._globalEventManagerService=l,this._ssr=u,this._staticDataService=h,this.loginStartupService=d,this.isDataReady=!1,this.isHideProgressBar=!1}ngOnInit(){if(this._ssr.isBrowser){this._facebookPixelService.start();let t=this._location.path();this._router.events.filter(t=>t instanceof Oe.b).subscribe(()=>{const e=this._location.path();this.isHideProgressBar=-1!==this._router.url.indexOf("/admin/media_storage"),t=e}),this._translateService.addLangs(["en","de","sk","cz","hu","mk"]),this._translateService.use(a.a.production?"de":"en");const e=this._entityService.getPortalEntity("portal/language"),n=this._entityService.getPortalEntity("entity/portal",{columns:["id","is_active","is_new_design_enabled","is_old_design_supported","is_leader_board_shown"]});Object(jn.a)([e,n]).pipe(Object(_n.b)(this)).subscribe(([t,e])=>{window.location.pathname.includes("signup")||this._translateService.use(t.code),this._userService.setPortal(e)},t=>{window.localStorage.getItem("portal")&&window.location.href.includes(window.localStorage.getItem("portal").domain)||this._router.navigateByUrl("/login"),console.error(t)}),this.subscribeShowAlert(),this._fileManagerService.fileIssuesChecker(),Dn.a.setListener(this._router),this.loginStartupService.setStartupDesignStaticData()}}subscribeShowAlert(){this._globalEventManagerService.$showAlert.pipe(Object(_n.b)(this)).subscribe(t=>{t.event_status&&("success"===t.event_status?this._alert.showSuccess(t.event_type,t.event_entity):"custom"===t.event_status?this._alert.showCustomError(t.event_message,t.event_entity):this._alert.showError(t.event_type,t.event_entity))})}};return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275directiveInject"](Pn.e),s["\u0275\u0275directiveInject"](yn.a),s["\u0275\u0275directiveInject"](wn.a),s["\u0275\u0275directiveInject"](Sn.a),s["\u0275\u0275directiveInject"](Oe.e),s["\u0275\u0275directiveInject"](Oe.a),s["\u0275\u0275directiveInject"](Mn.o),s["\u0275\u0275directiveInject"](Tn),s["\u0275\u0275directiveInject"](En.a),s["\u0275\u0275directiveInject"](kn.a),s["\u0275\u0275directiveInject"](An.a),s["\u0275\u0275directiveInject"](In.a),s["\u0275\u0275directiveInject"](Cn.a))},t.\u0275cmp=s["\u0275\u0275defineComponent"]({type:t,selectors:[["app-core"]],decls:1,vars:1,consts:[[4,"ngIf"]],template:function(t,e){1&t&&s["\u0275\u0275template"](0,Nn,1,0,"router-outlet",0),2&t&&s["\u0275\u0275property"]("ngIf",e.loginStartupService.completeLoad)},directives:[Mn.u,Oe.j],encapsulation:2}),t=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([Object(_n.a)()],t),t})();var Rn=n("XcSG"),Ln=n("K2QT"),Vn=n("3JgX"),Hn=n("syh9");let Bn=(()=>{class t{constructor(t,e){this._userService=t,this._ssr=e}canActivate(t,e){if(this._ssr.isBrowser)return new Promise(t=>{-1===e.url.indexOf("payment-after-trial")?(this._userService.token&&(this._userService.deleteClient(),window.location.reload()),t(!0)):t(!0)})}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](wn.a),s["\u0275\u0275inject"](An.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Gn=(()=>{class t{constructor(t,e,n){this._userService=t,this._router=e,this._entityService=n}canActivate(){var t,e;const n=null===(e=null===(t=this._userService.client)||void 0===t?void 0:t.portal_member)||void 0===e?void 0:e.user_onboarding_step;if("trial_ended"===this._userService.getPortalType())return this._router.navigateByUrl("/trial-period-end"),!1;if("content_creator"===this._userService.getRole()&&!(null==n?void 0:n.includes("finish"))){let t="/user-onboarding";n&&(t+=n);const e=this._userService.client.portal_member.registered_at;if(Date.now()-e<864e5)return this._router.navigateByUrl(t),!1;this._entityService.update("user_profile",{id:1,user_onboarding_step:"finish"}).subscribe()}return!0}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](wn.a),s["\u0275\u0275inject"](Oe.e),s["\u0275\u0275inject"](Sn.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var zn=n("uPxA"),Wn=n("9g69");let Un=(()=>{class t{constructor(t,e){this._router=t,this._userService=e}canActivate(t,e){return(window.location.href.includes("topic")||window.location.href.includes("thread"))&&(window.location.href.includes("customer")||window.location.href.includes("customer-new"))&&localStorage.setItem("communityUrl",e.url),!0}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](Oe.e),s["\u0275\u0275inject"](wn.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();const qn=[{path:"admin",loadChildren:()=>Promise.all([n.e(2),n.e(3),n.e(5),n.e(4),n.e(8),n.e(12),n.e(10),n.e(14),n.e(19),n.e(20),n.e(13),n.e(25),n.e(18),n.e(39),n.e(0),n.e(46)]).then(n.bind(null,"jkDv")).then(t=>t.AdminModule),canActivate:[Ln.a,Gn,Wn.a,Un]},{path:"customer",loadChildren:()=>Promise.all([n.e(7),n.e(8),n.e(10),n.e(13),n.e(17),n.e(18),n.e(0),n.e(88)]).then(n.bind(null,"d7gL")).then(t=>t.CustomerModule),canActivate:[Ln.a,Un]},{path:"customer-new",loadChildren:()=>Promise.all([n.e(7),n.e(8),n.e(10),n.e(13),n.e(18),n.e(0),n.e(78)]).then(n.bind(null,"tJND")).then(t=>t.CustomerNewModule),canActivate:[Ln.a,Un]},{path:"registration",loadChildren:()=>Promise.all([n.e(7),n.e(0),n.e(58)]).then(n.bind(null,"g/QT")).then(t=>t.RegistrationModule)},{path:"support",loadChildren:()=>Promise.all([n.e(10),n.e(96)]).then(n.bind(null,"jP8V")).then(t=>t.SupportModule),canActivate:[Hn.a]},{path:"login",loadChildren:()=>Promise.all([n.e(7),n.e(0),n.e(57)]).then(n.bind(null,"VJtu")).then(t=>t.AuthenticationModule)},{path:"features",loadChildren:()=>Promise.all([n.e(2),n.e(3),n.e(4),n.e(7),n.e(8),n.e(0),n.e(64)]).then(n.bind(null,"AOQl")).then(t=>t.FeatureModule)},{path:"signup",loadChildren:()=>Promise.all([n.e(0),n.e(91)]).then(n.bind(null,"vMEP")).then(t=>t.SignupSecondStepModule),canActivate:[Bn]},{path:"activate",loadChildren:()=>Promise.all([n.e(2),n.e(3),n.e(4),n.e(7),n.e(8),n.e(0),n.e(69)]).then(n.bind(null,"F1cc")).then(t=>t.ActivateAndCreatePasswordModule)},{path:"forgotpass",loadChildren:()=>Promise.all([n.e(0),n.e(65)]).then(n.bind(null,"astA")).then(t=>t.ForgotpassModule)},{path:"imprint",loadChildren:()=>Promise.all([n.e(2),n.e(3),n.e(4),n.e(7),n.e(8),n.e(10),n.e(13),n.e(17),n.e(18),n.e(0),n.e(29)]).then(n.bind(null,"s53J")).then(t=>t.UserStaticPageModule)},{path:"user-onboarding",loadChildren:()=>n.e(100).then(n.bind(null,"HLLW")).then(t=>t.UserOnboardingModule),canActivate:[Ln.a]},{path:"privacy-policy",loadChildren:()=>Promise.all([n.e(2),n.e(3),n.e(4),n.e(7),n.e(8),n.e(10),n.e(13),n.e(17),n.e(18),n.e(0),n.e(29)]).then(n.bind(null,"s53J")).then(t=>t.UserStaticPageModule)},{path:"terms-conditions",loadChildren:()=>Promise.all([n.e(2),n.e(3),n.e(4),n.e(7),n.e(8),n.e(10),n.e(13),n.e(17),n.e(18),n.e(0),n.e(29)]).then(n.bind(null,"s53J")).then(t=>t.UserStaticPageModule)},{path:"landings",loadChildren:()=>Promise.all([n.e(5),n.e(7),n.e(8),n.e(10),n.e(26),n.e(0),n.e(50)]).then(n.bind(null,"pRpf")).then(t=>t.LandingPagesModule)},{path:"lp",loadChildren:()=>Promise.all([n.e(1),n.e(3),n.e(5),n.e(9),n.e(7),n.e(8),n.e(12),n.e(10),n.e(14),n.e(20),n.e(27),n.e(0),n.e(72)]).then(n.bind(null,"bTzJ")).then(t=>t.LandingNewModule)},{path:"confirmation",loadChildren:()=>n.e(98).then(n.bind(null,"TpLP")).then(t=>t.UserConfirmationModule)},{path:"partner",loadChildren:()=>Promise.all([n.e(8),n.e(36),n.e(0)]).then(n.bind(null,"qAQU")).then(t=>t.PartnerDetailModule)},{path:"trial-period-end",loadChildren:()=>n.e(97).then(n.bind(null,"m9zo")).then(t=>t.TrialPeriodEndModule),canActivate:[Ln.a,zn.a]},{path:"community",loadChildren:()=>Promise.all([n.e(1),n.e(2),n.e(3),n.e(5),n.e(6),n.e(9),n.e(8),n.e(11),n.e(12),n.e(10),n.e(15),n.e(14),n.e(19),n.e(20),n.e(22),n.e(13),n.e(24),n.e(25),n.e(0)]).then(n.bind(null,"CiBS")).then(t=>t.CommunityModule)},{path:"",redirectTo:"login",pathMatch:"full"},{path:"**",component:Vn.a}];let Xn=(()=>{class t{}return t.\u0275mod=s["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=s["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},imports:[[Oe.i.forRoot(qn,{enableTracing:!1})],Oe.i]}),t})();var $n=n("fE3M");class Kn{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}var Yn=n("t4T2"),Qn=n("ec8B"),Jn=n("yiUc"),Zn=n("3jIQ"),tr=n("eIep"),er=n("7s76");let nr=(()=>{let t=class{constructor(t,e,n,r,i,o,s){this._entityService=t,this._userService=e,this._router=n,this._ssr=r,this._staticDataService=i,this._loginStartupService=o,this._communitySettingsService=s,this.pagesWhoNeedLoginData=["login","registration","forgotpass","community"],this._ssr.isBrowser&&(this._communitySettingsService.getSettings(),this._staticDataService.getStaticInfo(),this._router.events.subscribe(t=>{if(t instanceof Oe.b){localStorage.setItem("last_route",t.urlAfterRedirects);let e=t.urlAfterRedirects.split("?")[0].split("/")[1];this.pagesWhoNeedLoginData.includes(e)&&!this._loginStartupService.loginStartupData?(this._loginStartupService.completeLoad=!1,this._loginStartupService.getLoginStartupData()):this._loginStartupService.completeLoad=!0}}))}initAccess(){if(this._ssr.isBrowser)return new Promise(t=>{this._entityService.prolongate().pipe(Object(ke.a)(t=>{this._userService.setClient(t),this.checkStaticPage()||"/login"!==window.location.pathname&&"/"!==window.location.pathname||window.location.search.includes("verification_code")||window.location.search.includes("activation_code")||this.redirect(t.portal.domain)}),Object(tr.a)(()=>this._entityService.getWithNoAuth("entity/portal_type/get"))).subscribe({next:e=>{if(this._userService.setPortalTypes(e),this.checkStaticPage())return void t(!0);const n=window.location.pathname,r=window.location.search,i=this._userService.getRole();let o="admin"===i||"content_creator"===i?"/admin":"/customer";if(this._ssr.isBrowser){const t=localStorage.getItem("last_route");if(n.length>1){let t=n.split("admin"===i||"content_creator"===i?"admin/":"customer/");t.length>1&&(o+="/"+t[1])}t&&n===t&&this._router.navigateByUrl(t+r)}t(!0)},error:e=>{console.warn("err ",e),this.checkStaticPage()?t(!0):(this._userService.deleteClient(),t(!1))}})})}redirect(t){let e=this._userService.getRole(),n=this._userService.token;switch(e){case"admin":case"portal_visitor":case"content_creator":t&&this.centralAdmin(t)&&(this._userService.deleteClient(),a.a.production?window.location.href=t+"/admin?hash="+n:(t=t.slice(t.lastIndexOf("/")+1),window.location.href="http://"+t+":4200/admin?hash="+n)),this._router.navigate(["/admin"]);break;case"customer":this._router.navigateByUrl(this._userService.isNewDesignEnabled?"/customer-new/dashboard"+window.location.search:"/customer/dashboard"+window.location.search);break;default:this._router.navigate(["/login"])}}centralAdmin(t){return a.a.production?window.location.origin!==t:window.location.origin!==t+".loc:4200"}checkStaticPage(){let t=window.location.pathname.split("/");const e=["landings","forgotpass","imprint","privacy-policy","terms-conditions","registration","partner","support","free-course","signup","confirmation","user-onboarding","trial-period-end"];let n=!1;return t.includes("admin")||t.forEach(t=>{e.includes(t)&&(n=!0)}),n}};return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](Sn.a),s["\u0275\u0275inject"](wn.a),s["\u0275\u0275inject"](Oe.e),s["\u0275\u0275inject"](An.a),s["\u0275\u0275inject"](In.a),s["\u0275\u0275inject"](Cn.a),s["\u0275\u0275inject"](er.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([Object(_n.a)()],t),t})();var rr=function(){function t(t){this._options=Object(c.a)({logErrors:!0},t)}return t.prototype.handleError=function(t){var e=this._extractError(t)||"Handled unknown error",n=je((function(){return Ht.a(e)}));this._options.logErrors&&console.error(e),this._options.showDialog&&function(t){void 0===t&&(t={});var e=Object(y.b)(),n=e.getScope();n&&(t.user=Object(c.a)(Object(c.a)({},n.getUser()),t.user)),t.eventId||(t.eventId=e.lastEventId());var r=e.getClient();r&&r.showReportDialog(t)}(Object(c.a)(Object(c.a)({},this._options.dialogOptions),{eventId:n}))},t.prototype._extractError=function(t){if(this._options.extractor){var e=this._defaultExtractor.bind(this);return this._options.extractor(t,e)}return this._defaultExtractor(t)},t.prototype._defaultExtractor=function(t){var e=t;return e&&e.ngOriginalError&&(e=e.ngOriginalError),"string"==typeof e||e instanceof Error?e:e instanceof bn.d?e.error instanceof Error?e.error:e.error instanceof ErrorEvent&&e.error.message?e.error.message:"string"==typeof e.error?"Server returned code "+e.status+' with body "'+e.error+'"':e.message:null},Object(c.c)([Object(s.Injectable)({providedIn:"root"})],t)}(),ir=n("5eHb"),or=n("M7V4"),sr=n("M9IT");class ar{constructor(t){this._translateService=t}getlangPaginatorIntl(){let t=new sr.b;return this.setLanguage(t),this._translateService.onLangChange.subscribe(()=>{this.setLanguage(t)}),t}setLanguage(t){this._translateService.get("MAT_PAGINATOR").subscribe(e=>t.itemsPerPageLabel=e.items_per_page_label+":")}}var cr=n("Egam"),lr=n("KY39"),ur=n("KZTq"),hr=n("nYR2");class dr{constructor(){this._requestCounter=0,this._isStartInterceptor=!1,this._loaderWorked=!1}intercept(t,e){return this._loaderWorked?e.handle(t):this._isStartInterceptor||this.checkOnStartRequest(t)?(clearTimeout(this._timeoutId),this._requestCounter++,e.handle(t).pipe(Object(hr.a)(()=>{this._requestCounter--,0===this._requestCounter&&(this._timeoutId=setTimeout(()=>{this.deleteLoaderFromDOM(),this._loaderWorked=!0},100))}))):e.handle(t)}checkOnStartRequest(t){return t.url.includes("auth/prolongate")&&(this._isStartInterceptor=!0),this._isStartInterceptor}deleteLoaderFromDOM(){var t;null===(t=document.querySelector(".start-loader__container"))||void 0===t||t.remove()}}var fr=n("HDdC");n("qnbw");let pr=(()=>{class t{constructor(){this._needsToCacheMap={},this.cache=new Map}getNeedsToCache(t){return this._needsToCacheMap[t]}setNeedsToCache(t,e){this._needsToCacheMap[t]=e}clearAllNeeds(){this._needsToCacheMap={}}get(t,e){const n=this.cache.get(t.urlWithParams);if(this.getNeedsToCache(e)&&n)return n.response}put(t,e,n){this.setNeedsToCache(n,!0);const r=t.url,i={url:r,response:e,lastRead:Date.now()};this.cache.set(r,i);const o=Date.now()-36e5;this.cache.forEach(t=>{t.lastRead<o&&this.cache.delete(t.url)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),mr=(()=>{class t{constructor(t){this._requestCache=t,this.urls=["entity/language/get","entity/payment_type/get","entity/course_access_type/get","entity/landing_type/get","entity/content_email_template_type/get","entity/mailing_settings_type/get","entity/billing_type/get","entity/user_status/get","entity/user_registration_status/get","entity/event_type/get"]}intercept(t,e){if(this.checkUrl(t)){const n=this._requestCache.get(t,this.getFoundType(t));return n?fr.a.of(n):this.sendRequest(t,e,this._requestCache)}return e.handle(t)}sendRequest(t,e,n){return e.handle(t).pipe(Object(ke.a)(e=>{e instanceof bn.g&&n.put(t,e,this.getFoundType(t))}))}checkUrl(t){const e=t.url.toLowerCase();return!!this.urls.find(t=>e.includes(t))}getFoundType(t){const e=t.url.toLowerCase();for(let n=0;n<this.urls.length;n++)if(e.includes(this.urls[n]))return this.urls[n]}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](pr))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class gr{constructor(){this.storedRouteHandles=new Map,this.allowRetriveCache={users:!0},this.shouldReuseRouteMap=new Map([["user-passport","users"]]),this.isShouldReuseRoute=!0,this.previousRouteKey=""}shouldReuseRoute(t,e){const n=this.getKey(t),r=this.getKey(e);return this.shouldReuseRouteMap.get(n)===r&&(this.allowRetriveCache[r]=this.isShouldReuseRoute),this.previousRouteKey=n,t.routeConfig===e.routeConfig}shouldAttach(t){this.isShouldReuseRoute=!0;const e=this.getKey(t);return!!this.allowRetriveCache[e]&&(this.allowRetriveCache[e]=!1,this.storedRouteHandles.has(this.getKey(t)))}retrieve(t){return""!==this.previousRouteKey&&this.storedRouteHandles.get(this.getKey(t))}shouldDetach(t){const e=this.getKey(t);return!!this.allowRetriveCache.hasOwnProperty(e)}store(t,e){this.storedRouteHandles.set(this.getKey(t),e)}getKey(t){var e;return(null===(e=t.data)||void 0===e?void 0:e.key)?t.data.key:""}}var br=n("Ejl/"),vr=n("P0S7"),yr=n("tmjD"),_r=n("FAJc"),wr=n("FsO2"),Sr=n("HFgz"),xr=n("yZrO");let Cr=(()=>{let t=class{constructor(t,e,n,r,i,o,s,a,c,l,u){this._router=t,this._userService=e,this._entityService=n,this._themeService=r,this._ssr=i,this._fileManagerService=o,this._deviceService=s,this._metaTagService=a,this._settingsService=c,this._newDesignSettingsService=l,this._communityActionService=u,this.getPortalDesignTemplate$=this._entityService.getEntity("portal_to_content_design_template"),this.getContentDesignSettings$=this._entityService.getEntity("content_design_settings"),this.getContentLoginSettings$=this._entityService.getEntity("content_login_page_settings"),this.getNewDesignThemesCode$=this._newDesignSettingsService.getInfo("design_settings_code",{})}getDesignInfo(){if(this._ssr.isBrowser){const t=this._entityService.getWithNoAuth("entity/content_design_template/get"),e=this._entityService.getWithNoAuth("entity/content_design_template_type/get");Object(jn.a)([t,e]).pipe(Object(_n.b)(this)).subscribe(([t,e])=>{let n={},r={};t.forEach(t=>n[t.id]=t),e.forEach(t=>r[t.id]=t),this._themeService.designTemplatesMap=n,this._themeService.designTemplateTypesMap=r,this.setDesignTemplate()},t=>{window.localStorage.getItem("portal")&&window.location.href.includes(window.localStorage.getItem("portal").domain)||this._router.navigateByUrl("/login"),console.error(t)})}}setDesignTemplate(){a.a.production?this._ssr.isBrowser&&this._entityService.checkDomain(window.location.hostname,window.location.hostname).pipe(Object(_n.b)(this)).subscribe(t=>{t.done&&(t.admin?(this._themeService.activateTheme("main"),this.setFavicon()):(this._userService.portal_id&&this._settingsService.initSet(),this.designCombinedHandler()))},t=>console.error(t)):this._ssr.isBrowser&&(this._userService.portal_id&&this._settingsService.initSet(),this.designCombinedHandler())}designCombinedHandler(){this.getNewDesignImages$=this._newDesignSettingsService.getInfo("portal_design_images"),Object(jn.a)([this.getPortalDesignTemplate$,this.getContentDesignSettings$,this.getContentLoginSettings$,this.getNewDesignImages$,this.getNewDesignThemesCode$]).pipe(Object(_n.b)(this)).subscribe(([t,e,n,r,i])=>{this._newDesignSettingsService.setThemesCodeMap(i);const o=t.filter(t=>t.is_active)[0],s=this._themeService.designTemplatesMap[(null==o?void 0:o.content_design_template_id)||1];let a=s?s.code:"main";console.warn("designCodeToActivate",a),this._themeService.activateTheme(a,null==o?void 0:o.custom_content_design),this.settingsDesign=e[0],this.newDesignImages=r[0],this.setFavicon(),this._metaTagService.addTags([{name:"title",content:n[0].title},{name:"keywords",content:n[0].subtitle},{name:"description",content:n[0].description}])},t=>console.error(t))}setFavicon(){const t=this._deviceService.getDeviceInfo();let e,n,r="assets/images/favicon/favicon-32x32.png";this._themeService.findActiveTheme();let i=this._themeService.themeMap.properties["--img-favicon"];i&&(r=i),"Safari"===t.browser?n=document.querySelector("link[rel*='mask-icon']")||document.createElement("link"):(n=document.querySelector("link[rel*='icon']")||document.createElement("link"),n.rel="icon"),e=this._userService.isNewDesignEnabled?this.newDesignImages&&this.newDesignImages.favicon?this._fileManagerService.getImageSrc(this.newDesignImages.favicon):r:this.settingsDesign&&this.settingsDesign.favicon?this._fileManagerService.getImageSrc(this.settingsDesign.favicon):r;const o=document.createElement("canvas"),s=o.getContext("2d"),a=new Image;a.crossOrigin="Anonymous",a.src=e,a.onload=()=>{o.width=a.width,o.height=a.height,s.drawImage(a,0,0),this._communityActionService.$_isNewNotification.subscribe((function(t){if(t){const t=.6*Math.min(o.width,o.height);s.beginPath(),s.arc(o.width-t/2,t/2,t/2,0,2*Math.PI),s.fillStyle="#ff5400",s.fill()}else s.clearRect(0,0,o.width,o.height),s.drawImage(a,0,0);const e=o.toDataURL("image/png");n.rel="icon",n.type="image/png",n.href=e;const r=document.querySelector('link[rel="icon"]');r&&r.remove(),document.head.appendChild(n)}))}}};return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](Oe.e),s["\u0275\u0275inject"](wn.a),s["\u0275\u0275inject"](Sn.a),s["\u0275\u0275inject"](Sr.a),s["\u0275\u0275inject"](An.a),s["\u0275\u0275inject"](yn.a),s["\u0275\u0275inject"](vn.b),s["\u0275\u0275inject"](mn.d),s["\u0275\u0275inject"](Jn.a),s["\u0275\u0275inject"](br.a),s["\u0275\u0275inject"](xr.a))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac,providedIn:"root"}),t=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}([Object(_n.a)()],t),t})();var Or=n("bbBW"),Tr=n("5g99"),Er=n("/I2W"),kr=n("NXyV"),Ar=n("z6cu"),Dr=n("xgIS"),jr=n("LRne"),Ir=n("GyhO"),Pr=n("XNiG"),Mr=n("5yfJ"),Nr=n("VRyK"),Fr=n("lJxs"),Rr=n("NfdI"),Lr=n("IzEk"),Vr=n("3E0/");const Hr="Service workers are disabled or not supported by this browser";class Br{constructor(t){if(this.serviceWorker=t,t){const e=Object(Dr.a)(t,"controllerchange").pipe(Object(Fr.a)(()=>t.controller)),n=Object(kr.a)(()=>Object(jr.a)(t.controller)),r=Object(Ir.a)(n,e);this.worker=r.pipe(Object(Ee.a)(t=>!!t)),this.registration=this.worker.pipe(Object(tr.a)(()=>t.getRegistration()));const i=Object(Dr.a)(t,"message").pipe(Object(Fr.a)(t=>t.data)).pipe(Object(Ee.a)(t=>t&&t.type)).pipe(Object(Rr.a)());i.connect(),this.events=i}else this.worker=this.events=this.registration=Object(kr.a)(()=>Object(Ar.a)(new Error("Service workers are disabled or not supported by this browser")))}postMessage(t,e){return this.worker.pipe(Object(Lr.a)(1),Object(ke.a)(n=>{n.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithStatus(t,e,n){const r=this.waitForStatus(n),i=this.postMessage(t,e);return Promise.all([r,i]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){return this.events.pipe(Object(Ee.a)(e=>e.type===t))}nextEventOfType(t){return this.eventsOfType(t).pipe(Object(Lr.a)(1))}waitForStatus(t){return this.eventsOfType("STATUS").pipe(Object(Ee.a)(e=>e.nonce===t),Object(Lr.a)(1),Object(Fr.a)(t=>{if(!t.status)throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Gr=(()=>{class t{constructor(t){if(this.sw=t,this.subscriptionChanges=new Pr.b,!t.isEnabled)return this.messages=Mr.a,this.notificationClicks=Mr.a,void(this.subscription=Mr.a);this.messages=this.sw.eventsOfType("PUSH").pipe(Object(Fr.a)(t=>t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Object(Fr.a)(t=>t.data)),this.pushManager=this.sw.registration.pipe(Object(Fr.a)(t=>t.pushManager));const e=this.pushManager.pipe(Object(tr.a)(t=>t.getSubscription()));this.subscription=Object(Nr.a)(e,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(t){if(!this.sw.isEnabled)return Promise.reject(new Error(Hr));const e={userVisibleOnly:!0};let n=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),r=new Uint8Array(new ArrayBuffer(n.length));for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return e.applicationServerKey=r,this.pushManager.pipe(Object(tr.a)(t=>t.subscribe(e)),Object(Lr.a)(1)).toPromise().then(t=>(this.subscriptionChanges.next(t),t))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(Object(Lr.a)(1),Object(tr.a)(t=>{if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(t=>{if(!t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(Hr))}decodeBase64(t){return atob(t)}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](Br))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})(),zr=(()=>{class t{constructor(t){if(this.sw=t,!t.isEnabled)return this.available=Mr.a,void(this.activated=Mr.a);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Hr));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(Hr));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}return t.\u0275fac=function(e){return new(e||t)(s["\u0275\u0275inject"](Br))},t.\u0275prov=s["\u0275\u0275defineInjectable"]({token:t,factory:t.\u0275fac}),t})();class Wr{}const Ur=new s.InjectionToken("NGSW_REGISTER_SCRIPT");function qr(t,e,n,r){return()=>{if(!Object(Mn.O)(r)||!("serviceWorker"in navigator)||!1===n.enabled)return;let i;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)i=n.registrationStrategy();else{const[e,...r]=(n.registrationStrategy||"registerWhenStable").split(":");switch(e){case"registerImmediately":i=Object(jr.a)(null);break;case"registerWithDelay":i=Object(jr.a)(null).pipe(Object(Vr.a)(+r[0]||0));break;case"registerWhenStable":i=t.get(s.ApplicationRef).isStable.pipe(Object(Ee.a)(t=>t));break;default:throw new Error("Unknown ServiceWorker registration strategy: "+n.registrationStrategy)}}i.pipe(Object(Lr.a)(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(t=>console.error("Service worker registration failed with:",t)))}}function Xr(t,e){return new Br(Object(Mn.O)(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}let $r=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[{provide:Ur,useValue:e},{provide:Wr,useValue:n},{provide:Br,useFactory:Xr,deps:[Wr,s.PLATFORM_ID]},{provide:s.APP_INITIALIZER,useFactory:qr,deps:[s.Injector,Ur,Wr,s.PLATFORM_ID],multi:!0}]}}}return t.\u0275mod=s["\u0275\u0275defineNgModule"]({type:t}),t.\u0275inj=s["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[Gr,zr]}),t})();const Kr=(new Date).getTime();function Yr(t){return new Kn(t,"./assets/i18n/",".json?ngsw-bypass=true&t="+Kr)}let Qr=(()=>{class t{}var e;return t.\u0275mod=s["\u0275\u0275defineNgModule"]({type:t,bootstrap:[Fn]}),t.\u0275inj=s["\u0275\u0275defineInjector"]({factory:function(e){return new(e||t)},providers:[{provide:Oe.d,useClass:gr},{provide:bn.a,useClass:dr,multi:!0},{provide:bn.a,useClass:Rn.a,multi:!0},{provide:bn.a,useClass:mr,multi:!0},nr,{provide:s.APP_INITIALIZER,useFactory:t=>()=>t.initAccess(),deps:[nr],multi:!0},wr.a,xn.a,vr.a,Ln.a,Un,Wn.a,Bn,Sn.a,En.a,wn.a,Yn.a,lr.a,_r.a,er.a,yn.a,kn.a,Qn.a,Tn,Jn.a,Zn.a,br.a,Cr,Cn.a,In.a,pr,zn.a,Er.a,Hn.a,{provide:s.ErrorHandler,useValue:(e={showDialog:!1},new rr(e))},{provide:Me,deps:[Oe.e]},{provide:s.APP_INITIALIZER,useFactory:()=>()=>{},deps:[Me],multi:!0},{provide:sr.b,deps:[Pn.e],useFactory:t=>new ar(t).getlangPaginatorIntl()},An.a],imports:[[mn.a.withServerTransition({appId:"serverApp"}),gn.b,bn.c,Xn,Or.a,Or.a,vn.a.forRoot(),Pn.c.forRoot({loader:{provide:Pn.b,useFactory:Yr,deps:[bn.b]}}),or.b.forRoot(),ir.c.forRoot({timeOut:5e3,positionClass:"toast-top-right"}),cr.b.forRoot(),ur.a.forRoot(),yr.b.forRoot(),Tr.b.forRoot({provide:Tr.e,useFactory:$n.a}),$r.register("ngsw-worker.js",{enabled:a.a.production})]]}),t})();var Jr;(Jr={dsn:"https://b26669553a234201ae044b4b3a9befd1@sentry.mentortools.com/2",environment:a.a.type,release:"dev-release",integrations:[new i.BrowserTracing({routingInstrumentation:function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),Se=!0,xe=t,Ce=n,e&&Ie&&Ie.location&&t({name:Ie.location.pathname,op:"pageload"})}})],tracesSampleRate:1})._metadata=Jr._metadata||{},Jr._metadata.sdk={name:"sentry.javascript.angular",packages:[{name:"npm:@sentry/angular",version:"6.19.7"}],version:"6.19.7"},function(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=_e),void 0===t.release){var e=Object(_.a)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0),function(t,e){!0===e.debug&&(p?h.c.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=Object(y.b)(),r=n.getScope();r&&r.update(e.initialScope);var i=new t(e);n.bindClient(i)}(Zt,t),t.autoSessionTracking&&function(){if(void 0!==Object(_.a)().document){var t=Object(y.b)();t.captureSession&&(we(t),Object(S.a)("history",(function(t){var e=t.from;void 0!==e&&e!==t.to&&we(Object(y.b)())})))}else jt&&h.c.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}(Jr),a.a.production&&Object(s.enableProdMode)(),document.addEventListener("DOMContentLoaded",()=>{mn.f().bootstrapModule(Qr).catch(t=>{console.error(t),"serviceWorker"in navigator&&a.a.production&&navigator.serviceWorker.register("./ngsw-worker.js")})})},zfKp:function(t,e,n){"use strict";e.observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},zj0I:function(t,e,n){var r=n("yNUO");t.exports=function(t){var e=r(t),n=e.getMonth();return e.setMonth(n-n%3+3,0),e.setHours(0,0,0,0),e}},"zk/k":function(t,e,n){"use strict";e.TimeoutError=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},zp1y:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("l7GE"),i=n("ZUHj");function o(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new s(t,n))}}class s{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new a(t,this.observables,this.project))}}class a extends r.a{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let i=0;i<r;i++)this.toRespond.push(i);for(let o=0;o<r;o++){let t=e[o];this.add(Object(i.a)(this,t,void 0,o))}}notifyNext(t,e,n){this.values[n]=e;const r=this.toRespond;if(r.length>0){const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},zt7V:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("zx2A");function i(){return t=>t.lift(new o)}class o{call(t,e){return e.subscribe(new s(t))}}class s extends r.b{constructor(t){super(t),this.hasCompleted=!1,this.hasSubscription=!1}_next(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(r.c)(t,new r.a(this))))}_complete(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()}notifyComplete(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()}}},zvlq:function(t,e,n){"use strict";var r=n("XdTn");e.asapScheduler=new(n("UGPC").AsapScheduler)(r.AsapAction),e.asap=e.asapScheduler},zx2A:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n("7o/Q"),i=n("HDdC"),o=n("SeVD");class s extends r.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function c(t,e){if(e.closed)return;if(t instanceof i.a)return t.subscribe(e);let n;try{n=Object(o.a)(t)(e)}catch(r){e.error(r)}return n}},zzsZ:function(t,e,n){"use strict";var r=n("Q1FS"),i=n("OAkW"),o=n("2qMH");e.fromArray=function(t,e){return e?o.scheduleArray(t,e):new r.Observable(i.subscribeToArray(t))}}},[[0,23]]]);